403Webshell
Server IP : 69.39.225.240  /  Your IP : 216.73.216.138
Web Server : Apache
System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : reademotions ( 1074)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/reademotions/www/wp-content/plugins/gravityforms/assets/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/reademotions/www/wp-content/plugins/gravityforms/assets/js/dist/admin-components.js.map
{"version":3,"file":"admin-components.js","mappings":";gDACA,IAAIA,EAAQ,eACRC,EAAgB,IAAIC,OAAOF,EAAO,MAClCG,EAAe,IAAID,OAAO,IAAMF,EAAQ,KAAM,MAElD,SAASI,EAAiBC,EAAYC,GACrC,IAEC,OAAOC,mBAAmBF,EAAWG,KAAK,IAG3C,CAFE,MAAOC,GAET,CAEA,GAA0B,IAAtBJ,EAAWK,OACd,OAAOL,EAGRC,EAAQA,GAAS,EAGjB,IAAIK,EAAON,EAAWO,MAAM,EAAGN,GAC3BO,EAAQR,EAAWO,MAAMN,GAE7B,OAAOQ,MAAMC,UAAUC,OAAOC,KAAK,GAAIb,EAAiBO,GAAOP,EAAiBS,GACjF,CAEA,SAASK,EAAOC,GACf,IACC,OAAOZ,mBAAmBY,EAW3B,CAVE,MAAOV,GAGR,IAFA,IAAIW,EAASD,EAAME,MAAMpB,GAEhBqB,EAAI,EAAGA,EAAIF,EAAOV,OAAQY,IAGlCF,GAFAD,EAAQf,EAAiBgB,EAAQE,GAAGd,KAAK,KAE1Ba,MAAMpB,GAGtB,OAAOkB,CACR,CACD,CAuCAI,EAAOC,QAAU,SAAUC,GAC1B,GAA0B,iBAAfA,EACV,MAAM,IAAIC,UAAU,6DAA+DD,EAAa,KAGjG,IAIC,OAHAA,EAAaA,EAAWE,QAAQ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AASpgC,EAAKogC,MAAM5xC,KAAK,SAAE8xC,GAAG,oBAAcA,EAAI9xC,KAAK,SAAEmK,GAAK,iCAA2BA,EAAM6f,OAAM,aAAO7f,EAAMwF,QAAO,YAAW/S,KAAM,IAAI,YAAWA,KAAM,IAC7Jg1C,GAAS,YAGH,iBAAP,OAAyBF,EAAY,mBACjCC,EAAK,iBACLC,EAAK,eAEV,EDkECZ,GAAYloB,OAAOd,eAAiBA,GACpCgpB,GAAY7lB,OAAOX,eAAiBA,GAEpCsmB,GAASvkB,UAAYA,GAErB0kB,GAAc5e,IAAM0f,GACpBd,GAAct7B,OAASq8B,GACvBf,GAAclb,SAAWkc,GACzBhB,GAAc9Z,WAAa+a,GAC3BjB,GAAclX,KAAOoY,GACrBlB,GAAcvW,QAAU0X,GACxBnB,GAAcpb,SAAWwc,GACzBpB,GAAc5d,KAAOif,GACrBrB,GAAcpW,MAAQ0X,GACtBtB,GAAcrrB,MAAQ4sB,GACtBvB,GAAcxb,MAAQgd,GACtBxB,GAAcjrB,KAAO0sB,GACrBzB,GAAcnU,MAAQ6V,GACtB1B,GAAclU,MAAQ6V,GACtB3B,GAAcxT,OAASoV,GACvB5B,GAAcvS,IAAMoU,GACpB7B,GAAcpa,KAAOkc,GACrB9B,GAAczpB,SAAWwrB,GACzB/B,GAAclpB,OAASkrB,GAEvB/B,GAAa/Q,KAAO+S,GACpBhC,GAAalQ,YAAcmS,GAC3BjC,GAAapoB,OAASsqB,GACtBlC,GAAa/lB,OAASkoB,GACtBnC,GAAavO,UAAY2Q,GACzBpC,GAAa5K,WAAaiN,GAC1BrC,GAAarK,KAAO2M,GACpBtC,GAAa39B,OAASkgC,GACtBvC,GAAahK,OAASwM,GACtBxC,GAAa9J,MAAQuM,GACrBzC,GAAaxJ,OAASkM,GACtB1C,GAAahH,QAAU2J,GACvB3C,GAAapB,MAAQgE","sources":["webpack://gravityforms/../../../node_modules/decode-uri-component/index.js","webpack://gravityforms/../../../node_modules/filter-obj/index.js","webpack://gravityforms/../../../node_modules/query-string/index.js","webpack://gravityforms/../../../node_modules/split-on-first/index.js","webpack://gravityforms/../../../node_modules/strict-uri-encode/index.js","webpack://gravityforms/../../../node_modules/underscore.string/helper/defaultToWhiteSpace.js","webpack://gravityforms/../../../node_modules/underscore.string/helper/escapeRegExp.js","webpack://gravityforms/../../../node_modules/underscore.string/helper/htmlEntities.js","webpack://gravityforms/../../../node_modules/underscore.string/helper/makeString.js","webpack://gravityforms/../../../node_modules/underscore.string/stripTags.js","webpack://gravityforms/../../../node_modules/underscore.string/trim.js","webpack://gravityforms/../../../node_modules/underscore.string/unescapeHTML.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/regeneratorRuntime.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/typeof.js","webpack://gravityforms/../../../node_modules/@babel/runtime/regenerator/index.js","webpack://gravityforms/webpack/bootstrap","webpack://gravityforms/webpack/runtime/compat get default export","webpack://gravityforms/webpack/runtime/define property getters","webpack://gravityforms/webpack/runtime/hasOwnProperty shorthand","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/extends.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/createClass.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js","webpack://gravityforms/external var \"gform.utils\"","webpack://gravityforms/../components/html/admin/elements/Alert/index.js","webpack://gravityforms/../components/html/admin/elements/Loader/index.js","webpack://gravityforms/../components/html/admin/elements/Button/index.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_isPlaceholder.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_curry1.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_curry2.js","webpack://gravityforms/../../../node_modules/ramda/es/omit.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_has.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_isArguments.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_isArray.js","webpack://gravityforms/../../../node_modules/ramda/es/empty.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_isString.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_isObject.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_arrayFromIterator.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_includesWith.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_objectIs.js","webpack://gravityforms/../../../node_modules/ramda/es/keys.js","webpack://gravityforms/../../../node_modules/ramda/es/type.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_equals.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_functionName.js","webpack://gravityforms/../../../node_modules/ramda/es/equals.js","webpack://gravityforms/../../../node_modules/ramda/es/isEmpty.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_isTransformer.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_dispatchable.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_xfBase.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_xtake.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_reduced.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_checkForMethod.js","webpack://gravityforms/../../../node_modules/ramda/es/internal/_curry3.js","webpack://gravityforms/../../../node_modules/ramda/es/slice.js","webpack://gravityforms/../../../node_modules/ramda/es/take.js","webpack://gravityforms/../../../node_modules/ramda/es/startsWith.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/typeof.js","webpack://gravityforms/../request/src/object-to-form-data.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://gravityforms/../request/src/clean-empty.js","webpack://gravityforms/../request/src/request.js","webpack://gravityforms/../components/html/admin/elements/Dropdown/index.js","webpack://gravityforms/../components/html/admin/elements/Input/index.js","webpack://gravityforms/../components/html/admin/elements/Link/index.js","webpack://gravityforms/../components/html/admin/elements/StackedIcon/index.js","webpack://gravityforms/../components/html/admin/elements/StatusIndicator/index.js","webpack://gravityforms/../components/html/admin/elements/Textarea/index.js","webpack://gravityforms/../components/html/admin/elements/Toggle/index.js","webpack://gravityforms/../components/html/admin/modules/Dialog/index.js","webpack://gravityforms/../components/html/admin/modules/Flyout/index.js","webpack://gravityforms/external var \"ajaxurl\"","webpack://gravityforms/../components/html/admin/apps/EmbedForm/index.js","webpack://gravityforms/external var \"gform.libraries\"","webpack://gravityforms/../components/react/admin/elements/Box/index.js","webpack://gravityforms/../components/react/admin/elements/Icon/index.js","webpack://gravityforms/external var \"gform.utils.react\"","webpack://gravityforms/../components/react/admin/modules/Loader/index.types.js","webpack://gravityforms/../components/react/admin/modules/Loader/index.js","webpack://gravityforms/../components/react/admin/elements/Button/index.js","webpack://gravityforms/../components/react/admin/elements/Label/index.js","webpack://gravityforms/../components/react/admin/elements/HelpText/index.js","webpack://gravityforms/../components/react/admin/elements/Checkbox/index.js","webpack://gravityforms/../components/react/admin/elements/Text/index.js","webpack://gravityforms/../components/react/admin/elements/FileUpload/index.js","webpack://gravityforms/../components/react/admin/elements/Grid/index.js","webpack://gravityforms/../components/react/admin/elements/Heading/index.js","webpack://gravityforms/../components/react/admin/elements/Image/index.js","webpack://gravityforms/../components/react/admin/elements/Input/index.js","webpack://gravityforms/../components/react/admin/elements/Link/index.js","webpack://gravityforms/../components/react/admin/elements/Radio/index.js","webpack://gravityforms/../components/react/admin/elements/Range/index.js","webpack://gravityforms/../components/react/admin/elements/Select/index.js","webpack://gravityforms/../components/react/admin/elements/Tag/index.js","webpack://gravityforms/../components/react/admin/elements/Textarea/index.js","webpack://gravityforms/../components/react/admin/elements/Toggle/index.js","webpack://gravityforms/../components/react/admin/modules/Card/index.types.js","webpack://gravityforms/../components/react/admin/modules/Card/index.js","webpack://gravityforms/../components/react/admin/utils/colors.js","webpack://gravityforms/../components/react/admin/modules/ColorPicker/index.js","webpack://gravityforms/../components/react/admin/modules/Indicator/index.js","webpack://gravityforms/../components/react/admin/modules/Dialog/index.js","webpack://gravityforms/../components/react/admin/modules/Flyout/index.js","webpack://gravityforms/../components/react/admin/modules/InputGroup/index.js","webpack://gravityforms/../components/react/admin/modules/List/index.js","webpack://gravityforms/../components/react/admin/modules/NavBar/index.js","webpack://gravityforms/../components/react/admin/modules/Steps/index.js","webpack://gravityforms/../components/react/admin/modules/Swatch/index.js","webpack://gravityforms/../components/react/admin/modules/Tooltip/index.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","webpack://gravityforms/../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","webpack://gravityforms/../components/react/admin/modules/Video/index.types.js","webpack://gravityforms/../components/react/admin/modules/Video/index.js","webpack://gravityforms/../components/entry/admin.js","webpack://gravityforms/../components/html/admin/modules/Table/index.js"],"sourcesContent":["'use strict';\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp(token, 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn decodeURIComponent(components.join(''));\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher);\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher);\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n","'use strict';\nmodule.exports = function (obj, predicate) {\n\tvar ret = {};\n\tvar keys = Object.keys(obj);\n\tvar isArr = Array.isArray(predicate);\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tvar key = keys[i];\n\t\tvar val = obj[key];\n\n\t\tif (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {\n\t\t\tret[key] = val;\n\t\t}\n\t}\n\n\treturn ret;\n};\n","'use strict';\nconst strictUriEncode = require('strict-uri-encode');\nconst decodeComponent = require('decode-uri-component');\nconst splitOnFirst = require('split-on-first');\nconst filterObject = require('filter-obj');\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nconst encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier');\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\tcase 'bracket-separator': {\n\t\t\tconst keyValueSep = options.arrayFormat === 'bracket-separator' ?\n\t\t\t\t'[]=' :\n\t\t\t\t'=';\n\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\t// Translate null to an empty string so that it doesn't serialize as 'null'\n\t\t\t\tvalue = value === null ? '' : value;\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), keyValueSep, encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\t\t}\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tcase 'bracket-separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = /(\\[\\])$/.test(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!isArray) {\n\t\t\t\t\taccumulator[key] = value ? decode(value, options) : value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tconst arrayValue = value === null ?\n\t\t\t\t\t[] :\n\t\t\t\t\tvalue.split(options.arrayFormatSeparator).map(item => decode(item, options));\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = arrayValue;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], arrayValue);\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nfunction parse(query, options) {\n\toptions = Object.assign({\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst ret = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn ret;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn ret;\n\t}\n\n\tfor (const param of query.split('&')) {\n\t\tif (param === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet [key, value] = splitOnFirst(options.decode ? param.replace(/\\+/g, ' ') : param, '=');\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : ['comma', 'separator', 'bracket-separator'].includes(options.arrayFormat) ? value : decode(value, options);\n\t\tformatter(decode(key, options), value, ret);\n\t}\n\n\tfor (const key of Object.keys(ret)) {\n\t\tconst value = ret[key];\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const k of Object.keys(value)) {\n\t\t\t\tvalue[k] = parseValue(value[k], options);\n\t\t\t}\n\t\t} else {\n\t\t\tret[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn ret;\n\t}\n\n\treturn (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = ret[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = (object, options) => {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ','\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key])) ||\n\t\t(options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const key of Object.keys(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = object[key];\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\tif (value.length === 0 && options.arrayFormat === 'bracket-separator') {\n\t\t\t\treturn encode(key, options) + '[]';\n\t\t\t}\n\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n};\n\nexports.parseUrl = (url, options) => {\n\toptions = Object.assign({\n\t\tdecode: true\n\t}, options);\n\n\tconst [url_, hash] = splitOnFirst(url, '#');\n\n\treturn Object.assign(\n\t\t{\n\t\t\turl: url_.split('?')[0] || '',\n\t\t\tquery: parse(extract(url), options)\n\t\t},\n\t\toptions && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}\n\t);\n};\n\nexports.stringifyUrl = (object, options) => {\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\t[encodeFragmentIdentifier]: true\n\t}, options);\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = exports.extract(object.url);\n\tconst parsedQueryFromUrl = exports.parse(queryFromUrl, {sort: false});\n\n\tconst query = Object.assign(parsedQueryFromUrl, object.query);\n\tlet queryString = exports.stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\thash = `#${options[encodeFragmentIdentifier] ? encode(object.fragmentIdentifier, options) : object.fragmentIdentifier}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n};\n\nexports.pick = (input, filter, options) => {\n\toptions = Object.assign({\n\t\tparseFragmentIdentifier: true,\n\t\t[encodeFragmentIdentifier]: false\n\t}, options);\n\n\tconst {url, query, fragmentIdentifier} = exports.parseUrl(input, options);\n\treturn exports.stringifyUrl({\n\t\turl,\n\t\tquery: filterObject(query, filter),\n\t\tfragmentIdentifier\n\t}, options);\n};\n\nexports.exclude = (input, filter, options) => {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn exports.pick(input, exclusionFilter, options);\n};\n","'use strict';\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n","'use strict';\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n","var escapeRegExp = require('./escapeRegExp');\n\nmodule.exports = function defaultToWhiteSpace(characters) {\n  if (characters == null)\n    return '\\\\s';\n  else if (characters.source)\n    return characters.source;\n  else\n    return '[' + escapeRegExp(characters) + ']';\n};\n","var makeString = require('./makeString');\n\nmodule.exports = function escapeRegExp(str) {\n  return makeString(str).replace(/([.*+?^=!:${}()|[\\]\\/\\\\])/g, '\\\\$1');\n};\n","/*\nWe're explicitly defining the list of entities that might see in escape HTML strings\n*/\nvar htmlEntities = {\n  nbsp: ' ',\n  cent: '¢',\n  pound: '£',\n  yen: '¥',\n  euro: '€',\n  copy: '©',\n  reg: '®',\n  lt: '<',\n  gt: '>',\n  quot: '\"',\n  amp: '&',\n  apos: '\\''\n};\n\nmodule.exports = htmlEntities;\n","/**\n * Ensure some object is a coerced to a string\n **/\nmodule.exports = function makeString(object) {\n  if (object == null) return '';\n  return '' + object;\n};\n","var makeString = require('./helper/makeString');\n\nmodule.exports = function stripTags(str) {\n  return makeString(str).replace(/<\\/?[^>]+>/g, '');\n};\n","var makeString = require('./helper/makeString');\nvar defaultToWhiteSpace = require('./helper/defaultToWhiteSpace');\nvar nativeTrim = String.prototype.trim;\n\nmodule.exports = function trim(str, characters) {\n  str = makeString(str);\n  if (!characters && nativeTrim) return nativeTrim.call(str);\n  characters = defaultToWhiteSpace(characters);\n  return str.replace(new RegExp('^' + characters + '+|' + characters + '+$', 'g'), '');\n};\n","var makeString = require('./helper/makeString');\nvar htmlEntities = require('./helper/htmlEntities');\n\nmodule.exports = function unescapeHTML(str) {\n  return makeString(str).replace(/\\&([^;]{1,10});/g, function(entity, entityCode) {\n    var match;\n\n    if (entityCode in htmlEntities) {\n      return htmlEntities[entityCode];\n    /*eslint no-cond-assign: 0*/\n    } else if (match = entityCode.match(/^#x([\\da-fA-F]+)$/)) {\n      return String.fromCharCode(parseInt(match[1], 16));\n    /*eslint no-cond-assign: 0*/\n    } else if (match = entityCode.match(/^#(\\d+)$/)) {\n      return String.fromCharCode(~~match[1]);\n    } else {\n      return entity;\n    }\n  });\n};\n","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction _regeneratorRuntime() {\n  \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {\n    return exports;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;\n  var exports = {},\n    Op = Object.prototype,\n    hasOwn = Op.hasOwnProperty,\n    defineProperty = Object.defineProperty || function (obj, key, desc) {\n      obj[key] = desc.value;\n    },\n    $Symbol = \"function\" == typeof Symbol ? Symbol : {},\n    iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n    asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n    toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n  function define(obj, key, value) {\n    return Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: !0,\n      configurable: !0,\n      writable: !0\n    }), obj[key];\n  }\n  try {\n    define({}, \"\");\n  } catch (err) {\n    define = function define(obj, key, value) {\n      return obj[key] = value;\n    };\n  }\n  function wrap(innerFn, outerFn, self, tryLocsList) {\n    var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n      generator = Object.create(protoGenerator.prototype),\n      context = new Context(tryLocsList || []);\n    return defineProperty(generator, \"_invoke\", {\n      value: makeInvokeMethod(innerFn, self, context)\n    }), generator;\n  }\n  function tryCatch(fn, obj, arg) {\n    try {\n      return {\n        type: \"normal\",\n        arg: fn.call(obj, arg)\n      };\n    } catch (err) {\n      return {\n        type: \"throw\",\n        arg: err\n      };\n    }\n  }\n  exports.wrap = wrap;\n  var ContinueSentinel = {};\n  function Generator() {}\n  function GeneratorFunction() {}\n  function GeneratorFunctionPrototype() {}\n  var IteratorPrototype = {};\n  define(IteratorPrototype, iteratorSymbol, function () {\n    return this;\n  });\n  var getProto = Object.getPrototypeOf,\n    NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n  NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n  var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n  function defineIteratorMethods(prototype) {\n    [\"next\", \"throw\", \"return\"].forEach(function (method) {\n      define(prototype, method, function (arg) {\n        return this._invoke(method, arg);\n      });\n    });\n  }\n  function AsyncIterator(generator, PromiseImpl) {\n    function invoke(method, arg, resolve, reject) {\n      var record = tryCatch(generator[method], generator, arg);\n      if (\"throw\" !== record.type) {\n        var result = record.arg,\n          value = result.value;\n        return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n          invoke(\"next\", value, resolve, reject);\n        }, function (err) {\n          invoke(\"throw\", err, resolve, reject);\n        }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n          result.value = unwrapped, resolve(result);\n        }, function (error) {\n          return invoke(\"throw\", error, resolve, reject);\n        });\n      }\n      reject(record.arg);\n    }\n    var previousPromise;\n    defineProperty(this, \"_invoke\", {\n      value: function value(method, arg) {\n        function callInvokeWithMethodAndArg() {\n          return new PromiseImpl(function (resolve, reject) {\n            invoke(method, arg, resolve, reject);\n          });\n        }\n        return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n      }\n    });\n  }\n  function makeInvokeMethod(innerFn, self, context) {\n    var state = \"suspendedStart\";\n    return function (method, arg) {\n      if (\"executing\" === state) throw new Error(\"Generator is already running\");\n      if (\"completed\" === state) {\n        if (\"throw\" === method) throw arg;\n        return doneResult();\n      }\n      for (context.method = method, context.arg = arg;;) {\n        var delegate = context.delegate;\n        if (delegate) {\n          var delegateResult = maybeInvokeDelegate(delegate, context);\n          if (delegateResult) {\n            if (delegateResult === ContinueSentinel) continue;\n            return delegateResult;\n          }\n        }\n        if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n          if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n          context.dispatchException(context.arg);\n        } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n        state = \"executing\";\n        var record = tryCatch(innerFn, self, context);\n        if (\"normal\" === record.type) {\n          if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n          return {\n            value: record.arg,\n            done: context.done\n          };\n        }\n        \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n      }\n    };\n  }\n  function maybeInvokeDelegate(delegate, context) {\n    var method = delegate.iterator[context.method];\n    if (undefined === method) {\n      if (context.delegate = null, \"throw\" === context.method) {\n        if (delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method)) return ContinueSentinel;\n        context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a 'throw' method\");\n      }\n      return ContinueSentinel;\n    }\n    var record = tryCatch(method, delegate.iterator, context.arg);\n    if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n    var info = record.arg;\n    return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n  }\n  function pushTryEntry(locs) {\n    var entry = {\n      tryLoc: locs[0]\n    };\n    1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n  }\n  function resetTryEntry(entry) {\n    var record = entry.completion || {};\n    record.type = \"normal\", delete record.arg, entry.completion = record;\n  }\n  function Context(tryLocsList) {\n    this.tryEntries = [{\n      tryLoc: \"root\"\n    }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);\n  }\n  function values(iterable) {\n    if (iterable) {\n      var iteratorMethod = iterable[iteratorSymbol];\n      if (iteratorMethod) return iteratorMethod.call(iterable);\n      if (\"function\" == typeof iterable.next) return iterable;\n      if (!isNaN(iterable.length)) {\n        var i = -1,\n          next = function next() {\n            for (; ++i < iterable.length;) {\n              if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n            }\n            return next.value = undefined, next.done = !0, next;\n          };\n        return next.next = next;\n      }\n    }\n    return {\n      next: doneResult\n    };\n  }\n  function doneResult() {\n    return {\n      value: undefined,\n      done: !0\n    };\n  }\n  return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n    value: GeneratorFunctionPrototype,\n    configurable: !0\n  }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n    value: GeneratorFunction,\n    configurable: !0\n  }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n    var ctor = \"function\" == typeof genFun && genFun.constructor;\n    return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n  }, exports.mark = function (genFun) {\n    return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun;\n  }, exports.awrap = function (arg) {\n    return {\n      __await: arg\n    };\n  }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n    return this;\n  }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n    void 0 === PromiseImpl && (PromiseImpl = Promise);\n    var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n    return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n      return result.done ? result.value : iter.next();\n    });\n  }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n    return this;\n  }), define(Gp, \"toString\", function () {\n    return \"[object Generator]\";\n  }), exports.keys = function (val) {\n    var object = Object(val),\n      keys = [];\n    for (var key in object) {\n      keys.push(key);\n    }\n    return keys.reverse(), function next() {\n      for (; keys.length;) {\n        var key = keys.pop();\n        if (key in object) return next.value = key, next.done = !1, next;\n      }\n      return next.done = !0, next;\n    };\n  }, exports.values = values, Context.prototype = {\n    constructor: Context,\n    reset: function reset(skipTempReset) {\n      if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {\n        \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);\n      }\n    },\n    stop: function stop() {\n      this.done = !0;\n      var rootRecord = this.tryEntries[0].completion;\n      if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n      return this.rval;\n    },\n    dispatchException: function dispatchException(exception) {\n      if (this.done) throw exception;\n      var context = this;\n      function handle(loc, caught) {\n        return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n      }\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i],\n          record = entry.completion;\n        if (\"root\" === entry.tryLoc) return handle(\"end\");\n        if (entry.tryLoc <= this.prev) {\n          var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n            hasFinally = hasOwn.call(entry, \"finallyLoc\");\n          if (hasCatch && hasFinally) {\n            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n          } else if (hasCatch) {\n            if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n          } else {\n            if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n            if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n          }\n        }\n      }\n    },\n    abrupt: function abrupt(type, arg) {\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i];\n        if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n          var finallyEntry = entry;\n          break;\n        }\n      }\n      finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n      var record = finallyEntry ? finallyEntry.completion : {};\n      return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n    },\n    complete: function complete(record, afterLoc) {\n      if (\"throw\" === record.type) throw record.arg;\n      return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n    },\n    finish: function finish(finallyLoc) {\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i];\n        if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n      }\n    },\n    \"catch\": function _catch(tryLoc) {\n      for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n        var entry = this.tryEntries[i];\n        if (entry.tryLoc === tryLoc) {\n          var record = entry.completion;\n          if (\"throw\" === record.type) {\n            var thrown = record.arg;\n            resetTryEntry(entry);\n          }\n          return thrown;\n        }\n      }\n      throw new Error(\"illegal catch attempt\");\n    },\n    delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n      return this.delegate = {\n        iterator: values(iterable),\n        resultName: resultName,\n        nextLoc: nextLoc\n      }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n    }\n  }, exports;\n}\nmodule.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(obj) {\n  \"@babel/helpers - typeof\";\n\n  return (module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n    return typeof obj;\n  } : function (obj) {\n    return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n  }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports), _typeof(obj);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","// TODO(Babel 8): Remove this file.\n\nvar runtime = require(\"../helpers/regeneratorRuntime\")();\nmodule.exports = runtime;\n\n// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=\ntry {\n  regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n  if (typeof globalThis === \"object\") {\n    globalThis.regeneratorRuntime = runtime;\n  } else {\n    Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n  }\n}\n","// 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 = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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 = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","export default function _extends() {\n  _extends = Object.assign ? Object.assign.bind() : function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n    return target;\n  };\n  return _extends.apply(this, arguments);\n}","export default function _classCallCheck(instance, Constructor) {\n  if (!(instance instanceof Constructor)) {\n    throw new TypeError(\"Cannot call a class as a function\");\n  }\n}","function _defineProperties(target, props) {\n  for (var i = 0; i < props.length; i++) {\n    var descriptor = props[i];\n    descriptor.enumerable = descriptor.enumerable || false;\n    descriptor.configurable = true;\n    if (\"value\" in descriptor) descriptor.writable = true;\n    Object.defineProperty(target, descriptor.key, descriptor);\n  }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n  if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n  if (staticProps) _defineProperties(Constructor, staticProps);\n  Object.defineProperty(Constructor, \"prototype\", {\n    writable: false\n  });\n  return Constructor;\n}","export default function _arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n  for (var i = 0, arr2 = new Array(len); i < len; i++) {\n    arr2[i] = arr[i];\n  }\n  return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n  var n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === \"Object\" && o.constructor) n = o.constructor.name;\n  if (n === \"Map\" || n === \"Set\") return Array.from(o);\n  if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n  return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n  if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n  if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n  throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","export default function _defineProperty(obj, key, value) {\n  if (key in obj) {\n    Object.defineProperty(obj, key, {\n      value: value,\n      enumerable: true,\n      configurable: true,\n      writable: true\n    });\n  } else {\n    obj[key] = value;\n  }\n  return obj;\n}","var __WEBPACK_NAMESPACE_OBJECT__ = gform.utils;","import {\n\tconsoleInfo,\n\tcookieStorage,\n\tdelegate,\n\tgetClosest,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function alertTemplate\n * @description Generates the markup for an alert in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}                     options                      The options for the component template.\n * @param {string}                     options.content              The content of the alert.\n * @param {string}                     options.ctaLabel             The label for the call-to-action button.\n * @param {string}                     options.ctaLink              The link href for the call-to-action button.\n * @param {object}                     options.customAttributes     Any custom attributes.\n * @param {Array}                      options.customClasses        An array of additional classes for the toggle.\n * @param {string}                     options.dismissableAriaLabel The aria-label for the dismiss button.\n * @param {string}                     options.dismissableTitle     The title for the dismiss button.\n * @param {boolean}                    options.hasCta               Whether or not the alert has a call-to-action button.\n * @param {string}                     options.id                   Id for the alert, auto generated if not passed.\n * @param {boolean}                    options.isDismissable        Whether or not the alert is dismissable.\n * @param {boolean}                    options.isInline             Whether or not the alert is inline.\n * @param {string}                     options.selector             The data-js selector string for the alert.\n * @param {string|number|Array|object} options.spacing              The spacing for the component, string, number, object or array.\n * @param {string}                     options.theme                Theme for the toggle, primary or cosmos.\n * @param {string}                     options.type                 The type of the alert. Default, notice, success, error and accessibility.\n *\n * @return {String}\n * @example\n * import { alertTemplate } from '@gravityforms/components/html/admin/elements/Alert';\n *\n * function Example() {\n *      const alertTemplateHTML = alertTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', alertTemplateHTML );\n * }\n *\n */\nexport const alertTemplate = ( {\n\tcontent = '',\n\tctaLabel = '',\n\tctaLink = '',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdismissableAriaLabel = '',\n\tdismissableTitle = '',\n\thasCta = false,\n\tid = uniqueId( 'alert' ),\n\tisDismissable = false,\n\tisInline = false,\n\tspacing = '',\n\ttheme = 'primary',\n\ttype = 'default',\n} ) => {\n\tconst componentAttrs = objectToAttributes( {\n\t\t...customAttributes,\n\t\tid,\n\t\tclass: [\n\t\t\t'gform-alert',\n\t\t\t`gform-alert--${ type }`,\n\t\t\t`gform-alert--theme-${ theme }`,\n\t\t\tisInline && 'gform-alert--inline',\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\tconst iconAttrs = objectToAttributes( {\n\t\t'aria-hidden': 'true',\n\t\tclass: [\n\t\t\t'gform-alert__icon',\n\t\t\t'gform-icon',\n\t\t\ttype === 'default' && 'gform-icon--campaign',\n\t\t\ttype === 'notice' && 'gform-icon--circle-notice-fine',\n\t\t\ttype === 'success' && 'gform-icon--circle-check-fine',\n\t\t\ttype === 'error' && 'gform-icon--circle-error-fine',\n\t\t\ttype === 'accessibility' && 'gform-icon--accessibility',\n\t\t],\n\t} );\n\n\treturn `\n\t\t<div ${ componentAttrs }>\n\t\t\t<span ${ iconAttrs }></span>\n\t\t\t<div class=\"gform-alert__message-wrap\">\n\t\t\t\t<p class=\"gform-alert__message\">${ content }</p>\n\t\t\t\t${ hasCta ? `\n\t\t\t\t\t<a\n\t\t\t\t\t\tclass=\"gform-alert__cta gform-button gform-button--white gform-button--size-xs\"\n\t\t\t\t\t\thref=\"${ ctaLink }\"\n\t\t\t\t\t\ttarget=\"_blank\"\n\t\t\t\t\t\ttitle=\"title for a11y\"\n\t\t\t\t\t>\n\t\t\t\t\t\t${ ctaLabel }\n\t\t\t\t\t</a>\n\t\t\t\t` : '' }\n\t\t\t</div>\n\t\t\t${ isDismissable ? `\n\t\t\t\t<button\n\t\t\t\t\tclass=\"gform-alert__dismiss\"\n\t\t\t\t\taria-label=\"${ dismissableAriaLabel }\"\n\t\t\t\t\ttitle=\"${ dismissableTitle }\"\n\t\t\t\t\tdata-js=\"gform-alert-dismiss-trigger\"\n\t\t\t\t>\n\t\t\t\t\t<span class=\"gform-icon gform-icon--delete\"></span>\n\t\t\t\t</button>\n\t\t\t` : '' }\n\t\t</div>\n\t`;\n};\n\n/**\n * @class Alert\n * @description A alert component with 5 styles, default, notice, success, error and accessibility. It also allows for a cookie to store dismissed state.\n *\n * @since 1.1.16\n *\n * @borrows alertTemplate as alertTemplate\n *\n * @param {object}                     options                      The options for the component.\n * @param {string}                     options.content              The content of the alert.\n * @param {string}                     options.ctaLabel             The label for the call-to-action button.\n * @param {string}                     options.ctaLink              The link href for the call-to-action button.\n * @param {object}                     options.customAttributes     Any custom attributes for the component.\n * @param {Array}                      options.customClasses        An array of additional classes for the component.\n * @param {string}                     options.dismissableAriaLabel The aria-label for the dismiss button.\n * @param {string}                     options.dismissableTitle     The title for the dismiss button.\n * @param {boolean}                    options.hasCta               Whether or not the alert has a call-to-action button.\n * @param {string}                     options.id                   Id for the component, auto generated if not passed.\n * @param {boolean}                    options.isDismissable        Whether or not the alert is dismissable.\n * @param {boolean}                    options.isInline             Whether or not the alert is inline.\n * @param {string}                     options.rendered             Is the component already rendered in the dom, eg by php?\n * @param {string}                     options.renderOnInit         Render the component on init of the class?\n * @param {string|number|Array|object} options.spacing              Spacing for the component.\n * @param {string}                     options.target               The target to render to. Any valid css selector string.\n * @param {string}                     options.targetPosition       The insert position for the component relative to the target.\n * @param {string}                     options.theme                Theme for the component, primary or cosmos.\n * @param {string}                     options.type                 The type of the alert. Default, notice, success, error and accessibility.\n *\n * @return {Class} The class instance.\n * @example\n * import Alert from '@gravityforms/components/html/admin/elements/Alert';\n *\n * function Example() {\n *      const alertInstance = new Alert( {\n *          content: 'This is an alert',\n *          id: 'my-alert',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          type: 'error',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      alertInstance.init();\n * }\n *\n */\nexport default class Alert {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tcontainer: document,\n\t\t\t\tcontent: '',\n\t\t\t\tcookieName: '',\n\t\t\t\tctaLabel: '',\n\t\t\t\tctaLink: '',\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\tdismissableAriaLabel: '',\n\t\t\t\tdismissableTitle: '',\n\t\t\t\thasCta: false,\n\t\t\t\tid: uniqueId( 'alert' ),\n\t\t\t\tisDismissable: false,\n\t\t\t\tisInline: false,\n\t\t\t\trendered: false,\n\t\t\t\trenderOnInit: true,\n\t\t\t\tspacing: '',\n\t\t\t\ttarget: '',\n\t\t\t\ttargetPosition: 'afterbegin',\n\t\t\t\ttheme: 'cosmos',\n\t\t\t\ttype: 'default',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/alert/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/alert/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Alert\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\talertTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.alert = getNode( `#${ this.options.id }`, document, true );\n\t}\n\n\t/**\n\t * @memberof Alert\n\t * @description Dismiss the alert and store a cookie if name is set.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tdismissAlert( e ) {\n\t\tconst parentEl = getClosest( e.target, `#${ this.options.id }` );\n\t\tparentEl.style.display = 'none';\n\t\tif ( this.options.cookieName ) {\n\t\t\tconst cookieValue = uniqueId( 'gform-alert' );\n\t\t\tcookieStorage.set( this.options.cookieName, cookieValue, 1, true );\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Alert\n\t * @description Bind event listeners for the alert.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tbindEvents() {\n\t\tdelegate(\n\t\t\t`#${ this.options.id }`,\n\t\t\t'[data-js=\"gform-alert-dismiss-trigger\"]',\n\t\t\t'click',\n\t\t\tthis.dismissAlert.bind( this )\n\t\t);\n\t}\n\n\t/**\n\t * @memberof Alert\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/alert/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.bindEvents();\n\t\tthis.render();\n\n\t\t/**\n\t\t * @event gform/alert/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/alert/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized alert component.` );\n\t}\n}\n","import {\n\tconsoleInfo,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n\tviewport,\n} from '@gravityforms/utils';\n\n/**\n * @function loaderTemplate\n * @description Generates the markup for a loader in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}                     options                         The options for the component template.\n * @param {string}                     options.background              The background color for the loader.\n * @param {object}                     options.customAttributes        Any custom attributes.\n * @param {Array}                      options.customClasses           An array of additional classes for the toggle.\n * @param {boolean}                    options.displayText             Whether to display the loader text.\n * @param {string}                     options.foreground              The foreground color for the loader.\n * @param {string}                     options.id                      Id for the loader, auto generated if not passed.\n * @param {string}                     options.mask                    The mask for the loader.\n * @param {string}                     options.maskTheme               The mask theme for the loader.\n * @param {string}                     options.position                The position for the loader.\n * @param {string}                     options.size                    The size for the loader.\n * @param {string|number|Array|object} options.spacing                 The spacing for the component, string, number, object or array.\n * @param {string}                     options.text                    The text for the loader.\n * @param {string}                     options.textColor               The text color for the loader.\n * @param {string}                     options.theme                   Theme for the toggle, primary or cosmos.\n * @param {string}                     options.type                    Type for the loader, spinner or bar.\n * @param {object}                     options.wrapperCustomAttributes Any custom attributes for the textarea wrapper.\n * @param {Array}                      options.wrapperCustomClasses    Any custom classes for the textarea wrapper.\n * @param {string}                     options.wrapperTagName          Tag to use for the textarea wrapper. Defaults to 'div',\n *\n * @return {String}\n * @example\n * import { loaderTemplate } from '@gravityforms/components/html/admin/elements/Loader';\n *\n * function Example() {\n *      const loaderTemplateHTML = loaderTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', loaderTemplateHTML );\n * }\n *\n */\nexport const loaderTemplate = ( {\n\tbackground = '#ecedf8',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisplayText = true,\n\tforeground = '#242748',\n\tid = '',\n\tmask = true,\n\tmaskTheme = 'light',\n\tposition = 'center',\n\tsize = 5,\n\tspacing = '',\n\ttext = '',\n\ttextColor = '#000',\n\ttheme = 'primary',\n\ttype = 'simple',\n\twrapperCustomAttributes = {},\n\twrapperCustomClasses = [],\n\twrapperTagName = 'div',\n} ) => {\n\tconst wrapperAttrs = objectToAttributes( {\n\t\t...wrapperCustomAttributes,\n\t\tid: `${ id }-mask`,\n\t\tclass: [\n\t\t\t'gform-loader__mask',\n\t\t\t`gform-loader__mask--theme-${ maskTheme }`,\n\t\t\t`gform-loader__mask--theme-${ theme }`,\n\t\t\t`gform-loader__mask--position-${ position }`,\n\t\t\t...wrapperCustomClasses,\n\t\t],\n\t\trole: 'alert',\n\t} );\n\tconst componentAttrs = objectToAttributes( {\n\t\t...customAttributes,\n\t\tid,\n\t\tclass: [\n\t\t\t'gform-loader',\n\t\t\t`gform-loader--${ type }`,\n\t\t\t`gform-loader--theme-${ theme }`,\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\treturn `\n\t\t\t${ mask ? `<${ wrapperTagName } ${ wrapperAttrs }>` : '' }\n\t\t\t\t${ mask ? `<div id=\"${ id }-mask-positioner\" class=\"gform-loader__mask-positioner\">` : '' }\n\t\t\t\t\t<span ${ componentAttrs }></span>\n\t\t\t\t\t${ mask && text && displayText ? `<span id=\"${ id }-text\" class=\"gform-loader__text\">${ text }</span>` : '' }\n\t\t\t\t\t${ mask && text && ! displayText ? `<span class=\"gform-visually-hidden\">${ text }</span>` : '' }\n\t\t\t\t${ mask ? `</div>` : '' }\n\t\t\t${ mask ? `</${ wrapperTagName }>` : '' }\n\t\t\t<style id=\"${ id }-style\">\n\t\t\t\t#${ id } {\n\t\t\t\t\t${ type === 'simple' ? `\n\t\t\t\t\t\tborder-bottom-color: ${ foreground };\n\t\t\t\t\t\tborder-left-color: ${ foreground };\n\t\t\t\t\t\tborder-right-color: ${ background };\n\t\t\t\t\t\tborder-top-color: ${ background };\n\t\t\t\t\t\tfont-size: ${ size }px;\n\t\t\t\t\t` : '' }\n\t\t\t\t}\n\t\t\t\t#${ id }-text {\n\t\t\t\t\t${ textColor ? `color: ${ textColor };` : '' }\n\t\t\t\t}\n\t\t\t</style>\n\t\t`;\n};\n\n/**\n * @class Loader\n * @description A loader component that can be used as a simple spinner or a full masked element with spinner and text as needed.\n *\n * @since 1.1.16\n *\n * @borrows loaderTemplate as loaderTemplate\n *\n * @param {object}  options                         The options for the component.\n * @param {string}  options.background              The background color for the loader.\n * @param {object}  options.customAttributes        Any custom attributes for the component.\n * @param {Array}   options.customClasses           An array of additional classes for the component.\n * @param {boolean} options.displayNoneOnHide       On hide should it use display none or just opacity?\n * @param {boolean} options.displayText             Whether to display the loader text.\n * @param {string}  options.foreground              The foreground color for the loader.\n * @param {string}  options.id                      Id for the component, auto generated if not passed.\n * @param {string}  options.mask                    The mask for the loader.\n * @param {string}  options.maskTheme               The mask theme for the loader.\n * @param {string}  options.position                The position for the loader.\n * @param {string}  options.rendered                Is the component already rendered in the dom, eg by php?\n * @param {string}  options.renderOnInit            Render the component on init of the class?\n * @param {string}  options.showOnRender            Show the component on render?\n * @param {string}  options.size                    The size for the loader.\n * @param {string}  options.spacing                 Spacing for the component.\n * @param {string}  options.target                  The target to render to. Any valid css selector string.\n * @param {string}  options.targetPosition          The insert position for the component relative to the target.\n * @param {string}  options.text                    Text to show below the loader or for screen readers based on the displayText option if loader mask is enabled. Required for a11y if mask is enabled.\n * @param {string}  options.textColor               The text color for the loader.\n * @param {string}  options.theme                   Theme for the component, primary or cosmos.\n * @param {string}  options.type                    Type for the loader, spinner or bar.\n * @param {object}  options.wrapperCustomAttributes Any custom attributes for the textarea wrapper.\n * @param {Array}   options.wrapperCustomClasses    Any custom classes for the textarea wrapper.\n * @param {string}  options.wrapperTagName          Tag to use for the textarea wrapper. Defaults to 'div',\n *\n * @return {Class} The class instance.\n * @example\n * import Loader from '@gravityforms/components/html/admin/elements/Loader';\n *\n * function Example() {\n *      const loaderInstance = new Loader( {\n *          id: 'example-loader',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      loaderInstance.init();\n * }\n *\n */\nexport default class Loader {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tbackground: '#ecedf8', // background color for the loader\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\tdisplayNoneOnHide: true, // on hide should it use display none or just opacity?\n\t\t\t\tdisplayText: true, // should we display the text or make it only available to screen readers if loader mask is enabled\n\t\t\t\tforeground: '#242748', // the color of the loader\n\t\t\t\tid: uniqueId( 'loader' ), // the id for the loader\n\t\t\t\tmask: true, // should the loader mask an area? If false we assume the implementation will handle the details (layout, a11y, etc.).\n\t\t\t\tmaskTheme: 'light', // background mask theme, none, light, or dark\n\t\t\t\tposition: 'center', // vertical position, auto, top, center, bottom, or sticky if loader mask is enabled\n\t\t\t\trendered: false, // is the loader already rendered in the dom?\n\t\t\t\trenderOnInit: true, // should we render this loader on init?\n\t\t\t\tshowOnRender: true, // visible on render?\n\t\t\t\tsize: 5, // size of the loader, decimal int values\n\t\t\t\ttarget: '', // node to inject the loader to (uses insertAdjacentHtml)\n\t\t\t\ttargetPosition: 'afterbegin', // insert position for the loader markup\n\t\t\t\ttext: '', // text to show below the loader or for screen readers based on the displayText option if loader mask is enabled. Required for a11y if mask is enabled.\n\t\t\t\ttextColor: '#000', // text color\n\t\t\t\ttheme: 'cosmos', // theme for the loader, primary or cosmos\n\t\t\t\ttype: 'simple', // loader type\n\t\t\t\twrapperCustomAttributes: {},\n\t\t\t\twrapperCustomClasses: [],\n\t\t\t\twrapperTagName: 'div',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/loader/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/loader/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Sets the vertical position for the loader.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tpositionLoader() {\n\t\tconst { position, target } = this.options;\n\t\tconst targetNode = getNode( target, document, true );\n\t\tconst { maskPositioner } = this.elements;\n\t\tconst targetVisibleHeight = viewport.elVisibleHeight( targetNode );\n\t\tconst viewportHeight = viewport.height();\n\t\tconst { top } = targetNode.getBoundingClientRect();\n\t\tlet windowScroll = 0;\n\n\t\t// Account for window scroll in our top positioning when:\n\t\t// - position auto, target height greater than window height, and scrolled past top of target\n\t\t// - position fixed, window height greater than target visible height, and haven't scrolled past top of target\n\t\tif (\n\t\t\t( position === 'auto' && ( targetNode.offsetHeight > viewportHeight ) && top < 0 ) ||\n\t\t\t( position === 'sticky' && ( targetVisibleHeight < viewportHeight ) && top > 0 )\n\t\t) {\n\t\t\twindowScroll = Math.abs( targetNode.getBoundingClientRect().top );\n\t\t}\n\n\t\tmaskPositioner.style.top = `${ windowScroll + ( ( targetVisibleHeight / 2 ) - ( maskPositioner.offsetHeight / 2 ) ) }px`;\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Removes the injected nodes from the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tremoveLoader() {\n\t\tconst { loaderEl, style } = this.elements;\n\n\t\tloaderEl.parentNode.removeChild( loaderEl );\n\t\tstyle.parentNode.removeChild( style );\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Reveal the loader.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tshowLoader() {\n\t\tconst { mask, position } = this.options;\n\t\tconst { loaderEl } = this.elements;\n\n\t\tloaderEl.style.display = '';\n\t\tloaderEl.style.opacity = '';\n\n\t\tif ( mask && ( position === 'auto' || position === 'sticky' ) ) {\n\t\t\tthis.positionLoader();\n\t\t}\n\n\t\ttrigger( { event: 'gform/loader/post_show', native: false, data: { instance: this } } );\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Hide the loader.\n\t *\n\t * @fires gform/loader/post_hide\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thideLoader() {\n\t\tconst { displayNoneOnHide } = this.options;\n\t\tconst { loaderEl } = this.elements;\n\t\tif ( displayNoneOnHide ) {\n\t\t\tloaderEl.style.display = 'none';\n\t\t} else {\n\t\t\tloaderEl.style.opacity = '0';\n\t\t}\n\n\t\t/**\n\t\t * @event gform/loader/post_hide\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed hiding in the dom.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/loader/post_hide', native: false, data: { instance: this } } );\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Handles initial visibility for the loader. If showOnRender is false, hides the loader.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tsetInitialUI() {\n\t\tconst { mask, position, showOnRender } = this.options;\n\t\tif ( ! showOnRender ) {\n\t\t\tthis.hideLoader();\n\t\t}\n\t\tif ( showOnRender && mask && ( position === 'auto' || position === 'sticky' ) ) {\n\t\t\tthis.positionLoader();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Store the elements on the elements object of this instance.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tstoreElements() {\n\t\tconst { id } = this.options;\n\t\tthis.elements = {\n\t\t\tloader: getNode( `#${ id }`, document, true ),\n\t\t\tmask: getNode( `#${ id }-mask`, document, true ),\n\t\t\tmaskPositioner: getNode( `#${ id }-mask-positioner`, document, true ),\n\t\t\tstyle: getNode( `#${ id }-style`, document, true ),\n\t\t};\n\t\tthis.elements.loaderEl = this.elements.mask ? this.elements.mask : this.elements.loader;\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\t\t\tif ( this.options.mask ) {\n\t\t\t\trenderTarget.style.position = 'relative';\n\t\t\t}\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\tloaderTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.loader = getNode( `#${ this.options.id }`, document, true );\n\t\tthis.elements.wrapper = this.elements.loader.parentNode;\n\t}\n\n\t/**\n\t * @memberof Loader\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/loader/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\t\tthis.storeElements();\n\t\tthis.setInitialUI();\n\n\t\t/**\n\t\t * @event gform/loader/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/loader/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized loader component.` );\n\t}\n}\n","import Loader from '../Loader';\nimport {\n\tconsoleError,\n\tconsoleInfo,\n\tdeepMerge,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function buttonTemplate\n * @description The template function used to generate our button html.\n *\n * @since 1.0.5\n *\n * @param {object}                     options               The options object for the class.\n * @param {string}                     options.activeText    If interactive, what is the active text when the button is active?\n * @param {string}                     options.activeType    What is the active type? Supports loading currently.\n * @param {string}                     options.attributes    Arbitrary attributes for the button.\n * @param {Array}                      options.customClasses Custom classes for the button.\n * @param {string}                     options.html          Arbitrary html to append inside the button.\n * @param {string}                     options.icon          Icon name if wishing to use an icon button.\n * @param {string}                     options.iconPosition  Icon position if using one. leading or trailing.\n * @param {string}                     options.id            Id for the button.\n * @param {boolean}                    options.interactive   Is the button interactive? If true the button has two states it transitions, set by activeType.\n * @param {string}                     options.label         The  label for the button. If interactive, the text displayed when inactive.\n * @param {boolean}                    options.round         Does the button have round corners?\n * @param {string}                     options.size          Size of the button.\n * @param {string|number|Array|object} options.spacing       The spacing for the component, string, number, object or array.\n * @param {string}                     options.type          The button type.\n *\n * @return {string} The button html.\n * @example\n * import { buttonTemplate } from '@gravityforms/components/html/admin/elements/Button';\n *\n * function Example() {\n *      const buttonHTML = buttonTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', buttonHTML );\n * }\n *\n */\nexport const buttonTemplate = ( {\n\tactiveText = '',\n\tactiveType = '',\n\tattributes = '',\n\tcustomClasses = [],\n\thtml = '',\n\ticon = '',\n\ticonPosition = 'leading',\n\tid = uniqueId( 'button' ),\n\tinteractive = false,\n\tlabel = '',\n\tround = false,\n\tsize = 'size-r',\n\tspacing = '',\n\ttype = 'primary',\n} ) => {\n\tconst componentAttrs = objectToAttributes( {\n\t\tid,\n\t\tclass: [\n\t\t\t'gform-button',\n\t\t\t`gform-button--${ size }`,\n\t\t\t`gform-button--${ type }`,\n\t\t\tround ? 'gform-button--round' : '',\n\t\t\tinteractive ? `gform-button--interactive` : '',\n\t\t\tactiveType ? `gform-button--active-type-${ activeType }` : '',\n\t\t\ticon && iconPosition === 'leading' ? 'gform-button--icon-leading' : '',\n\t\t\ticon && iconPosition === 'trailing' ? 'gform-button--icon-trailing' : '',\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\tconst iconHtml = icon ? `<i class=\"gform-button__icon gform-button__icon--inactive gform-icon gform-icon--${ icon }\" data-js=\"button-icon\"></i>` : '';\n\n\treturn `\n\t\t<button ${ componentAttrs } ${ attributes }>\n\t\t\t${ icon && iconPosition === 'leading' ? iconHtml : '' }\n\t\t\t${ label ? `<span class=\"gform-button__text gform-button__text--inactive\" data-js=\"button-inactive-text\">${ label }</span>` : '' }\n\t\t\t${ interactive ? `<span class=\"gform-button__text gform-button__text--active\" data-js=\"button-active-text\">${ activeText }</span>` : '' }\n\t\t\t${ icon && iconPosition === 'trailing' ? iconHtml : '' }\n\t\t\t${ html }\n\t\t</button>\n\t`;\n};\n\n/**\n * @class Button\n * @description A button component that returns an instance method and event api.\n *\n * @since 1.0.5\n *\n * @borrows buttonTemplate as buttonTemplate\n *\n * @param {object}                     options                                 The options object for the class.\n * @param {string}                     options.activeText                      If interactive, what is the active text when the button is active?\n * @param {string}                     options.activeType                      What is the active type? Supports loading currently.\n * @param {string}                     options.attributes                      Arbitrary attributes for the button.\n * @param {Array}                      options.customClasses                   Custom classes for the button.\n * @param {boolean}                    options.disableWhileActive              If interactive, disable the button while active?\n * @param {string}                     options.html                            Arbitrary html to append inside the button.\n * @param {string}                     options.icon                            Icon name if wishing to use an icon button.\n * @param {string}                     options.iconPosition                    Icon position if using one. leading or trailing.\n * @param {string}                     options.id                              Id for the button.\n * @param {boolean}                    options.interactive                     Is the button interactive? If true the button has two states it transitions, set by activeType.\n * @param {boolean}                    options.interactiveOnClick              If interactive, does clicking the button swap the active state and fire the callbacks?\n * @param {string}                     options.label                           The  label for the button. If interactive, the text displayed when inactive.\n * @param {object}                     options.loaderOptions                   All valid options for the loader component if using an interactive loader button.\n * @param {string}                     options.loaderOptions.additionalClasses Additional classes for the loader element.\n * @param {string}                     options.loaderOptions.background        Background color for the loader.\n * @param {string}                     options.loaderOptions.foreground        The color of the loader.\n * @param {boolean}                    options.loaderOptions.mask              Should the loader mask an area?\n * @param {boolean}                    options.loaderOptions.showOnRender      Visible on render?\n * @param {number}                     options.loaderOptions.size              Size of the loader, decimal int values.\n * @param {boolean}                    options.lockSize                        If interactive, lock the width of the button when transitioning states?\n * @param {Function}                   options.onActive                        If interactive, a callback to fire when button goes into its active state.\n * @param {Function}                   options.onInactive                      If interactive, a callback to fire when button goes into its inactive state.\n * @param {boolean}                    options.rendered                        Is this button already rendered in the dom, eg by php?\n * @param {boolean}                    options.renderOnInit                    Render this button on init?\n * @param {boolean}                    options.round                           Does the button have round corners?\n * @param {string}                     options.size                            Size of the button.\n * @param {string|number|Array|object} options.spacing                         The spacing for the component, string, number, object or array.\n * @param {string}                     options.target                          The target to render to. Any valid css selector string.\n * @param {string}                     options.type                            The button type.\n *\n * @return {this}\n * @example\n * import Button from '@gravityforms/components/html/admin/elements/Button';\n *\n * function Example() {\n *      const buttonInstance = new Button( {\n *          id: 'example-button',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      buttonInstance.init();\n * }\n *\n */\nexport default class Button {\n\tconstructor( options = {} ) {\n\t\tthis.options = deepMerge(\n\t\t\t{\n\t\t\t\tactiveText: '', // if interactive, what is the active text when the button is active?\n\t\t\t\tactiveType: '', // what is the active type? Supports loading currently.\n\t\t\t\tattributes: '', // arbitrary attributes for the button.\n\t\t\t\tcustomClasses: [], // custom classes for the button.\n\t\t\t\tdisableWhileActive: true, // if interactive, disable the button while active?\n\t\t\t\thtml: '', // arbitrary html to append inside the button.\n\t\t\t\ticon: '', // icon name if wishing to use an icon button.\n\t\t\t\ticonPosition: 'leading', // icon position if using one. leading or trailing.\n\t\t\t\tid: uniqueId( 'button' ), // id for the button.\n\t\t\t\tinteractive: false, // is the button interactive? If true the button has two states it transitions, set by activeType.\n\t\t\t\tinteractiveOnClick: true, // If interactive, does clicking the button swap the active state and fire the callbacks?\n\t\t\t\tlabel: '', // the  label for the button. If interactive, teh text displayed when inactive.\n\t\t\t\tloaderOptions: { // all valid options for the loader component if using an interactive loader button.\n\t\t\t\t\tadditionalClasses: 'gform-button__loader', // additional classes for the loader element.\n\t\t\t\t\tbackground: 'transparent', // background color for the loader.\n\t\t\t\t\tforeground: '#3e7da6', // the color of the loader.\n\t\t\t\t\tmask: false, // should the loader mask an area?\n\t\t\t\t\tshowOnRender: false, // visible on render?\n\t\t\t\t\tsize: 1, // size of the loader, decimal int values.\n\t\t\t\t},\n\t\t\t\tlockSize: true, // if interactive, lock the width of the button when transitioning states?\n\t\t\t\tonActive: () => {}, // if interactive, a callback to fire when button goes into its active state.\n\t\t\t\tonInactive: () => {}, // if interactive, a callback to fire when button goes into its inactive state.\n\t\t\t\trendered: false, // is this button already rendered in the dom, eg by php?\n\t\t\t\trenderOnInit: true, // render this button on init?\n\t\t\t\tround: false, // does the button have round corners?\n\t\t\t\tsize: 'size-r', // size of the button.\n\t\t\t\ttarget: '', // the target to render to. Any valid css selector string.\n\t\t\t\ttype: 'primary', // the button type.\n\t\t\t},\n\t\t\toptions,\n\t\t);\n\n\t\tif ( ! this.options.target && ! this.options.rendered ) {\n\t\t\tconsoleError( 'You must supply a target to the button component.' );\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * @event gform/button/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/button/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.elements = {};\n\t\tthis.instances = {};\n\t\tthis.state = {\n\t\t\tactive: false,\n\t\t};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description If interactive, handles activating this button and swapping the ui state, plus\n\t * executing any callbacks and firing useful events.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @fires gform/button/activated\n\t *\n\t * @return {void}\n\t */\n\tactivateButton() {\n\t\tconst { activeType, disableWhileActive, lockSize, onActive } = this.options;\n\t\tconst { button } = this.elements;\n\t\t/**\n\t\t * @event gform/button/activated\n\t\t * @type {object}\n\t\t * @description Fired when an interactive button is activated on document.\n\t\t *\n\t\t * @property {object} instance The Button class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/button/activated', native: false, data: { instance: this } } );\n\t\tif ( lockSize ) {\n\t\t\tconst rect = button.getBoundingClientRect();\n\t\t\tbutton.style.width = `${ rect.width }px`;\n\t\t}\n\t\tif ( disableWhileActive ) {\n\t\t\tbutton.disabled = true;\n\t\t}\n\t\tthis.elements.button.classList.add( 'gform-button--activated' );\n\t\tif ( activeType === 'loader' ) {\n\t\t\tthis.instances.loader.showLoader();\n\t\t}\n\t\tthis.state.active = true;\n\t\tonActive( this );\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description If interactive, handles deactivating this button and swapping the ui state, plus\n\t * executing any callbacks and firing useful events.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @fires gform/button/deactivated\n\t *\n\t * @return {void}\n\t */\n\tdeactivateButton() {\n\t\tconst { activeType, disableWhileActive, lockSize, onInactive } = this.options;\n\t\tconst { button } = this.elements;\n\t\t/**\n\t\t * @event gform/button/deactivated\n\t\t * @type {object}\n\t\t * @description Fired when an interactive button is deactivated on document.\n\t\t *\n\t\t * @property {object} instance The Button class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/button/deactivated', native: false, data: { instance: this } } );\n\t\tthis.elements.button.classList.remove( 'gform-button--activated' );\n\t\tif ( activeType === 'loader' ) {\n\t\t\tthis.instances.loader.hideLoader();\n\t\t}\n\t\tif ( disableWhileActive ) {\n\t\t\tbutton.disabled = false;\n\t\t}\n\t\tif ( lockSize ) {\n\t\t\tbutton.style.width = '';\n\t\t}\n\t\tthis.state.active = false;\n\t\tonInactive( this );\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description If interactive and button is not active, activate it.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleButtonClick() {\n\t\tif ( this.state.active ) {\n\t\t\treturn;\n\t\t}\n\t\tthis.activateButton();\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description Stores useful HTMLElements on the instance in the elements namespace after render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tstoreElements() {\n\t\tconst { button } = this.elements;\n\t\tconst { activeText, icon, label } = this.options;\n\t\tif ( activeText ) {\n\t\t\tthis.elements.activeText = getNode( 'button-active-text', button );\n\t\t}\n\t\tif ( icon ) {\n\t\t\tthis.elements.icon = getNode( 'button-icon', button );\n\t\t}\n\t\tif ( label ) {\n\t\t\tthis.elements.inactiveText = getNode( 'button-inactive-text', button );\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description If interactive render the elements that are present on active state.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trenderInteractive() {\n\t\tconst { activeType, interactive, loaderOptions } = this.options;\n\t\tconst { button } = this.elements;\n\t\tif ( ! interactive ) {\n\t\t\treturn;\n\t\t}\n\t\tif ( activeType === 'loader' ) {\n\t\t\tloaderOptions.target = `#${ button.id }`;\n\t\t\tthis.instances.loader = new Loader( loaderOptions );\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\t'beforeend',\n\t\t\t\tbuttonTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.button = getNode( `#${ this.options.id }`, document, true );\n\n\t\tthis.renderInteractive();\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized button component on ${ target }.` );\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description Bind event handles for the button instance.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tbindEvents() {\n\t\tconst { interactive, interactiveOnClick } = this.options;\n\t\tif ( interactive && interactiveOnClick ) {\n\t\t\tthis.elements.button.addEventListener( 'click', this.handleButtonClick.bind( this ) );\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Button\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/button/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\t\tthis.storeElements();\n\t\tthis.bindEvents();\n\n\t\t/**\n\t\t * @event gform/button/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/button/post_render', native: false, data: { instance: this } } );\n\t}\n}\n","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n  try {\n    var info = gen[key](arg);\n    var value = info.value;\n  } catch (error) {\n    reject(error);\n    return;\n  }\n  if (info.done) {\n    resolve(value);\n  } else {\n    Promise.resolve(value).then(_next, _throw);\n  }\n}\nexport default function _asyncToGenerator(fn) {\n  return function () {\n    var self = this,\n      args = arguments;\n    return new Promise(function (resolve, reject) {\n      var gen = fn.apply(self, args);\n      function _next(value) {\n        asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n      }\n      function _throw(err) {\n        asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n      }\n      _next(undefined);\n    });\n  };\n}","export default function _taggedTemplateLiteral(strings, raw) {\n  if (!raw) {\n    raw = strings.slice(0);\n  }\n  return Object.freeze(Object.defineProperties(strings, {\n    raw: {\n      value: Object.freeze(raw)\n    }\n  }));\n}","export default function _isPlaceholder(a) {\n  return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;\n}","import _isPlaceholder from \"./_isPlaceholder.js\";\n/**\n * Optimized internal one-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\nexport default function _curry1(fn) {\n  return function f1(a) {\n    if (arguments.length === 0 || _isPlaceholder(a)) {\n      return f1;\n    } else {\n      return fn.apply(this, arguments);\n    }\n  };\n}","import _curry1 from \"./_curry1.js\";\nimport _isPlaceholder from \"./_isPlaceholder.js\";\n/**\n * Optimized internal two-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\nexport default function _curry2(fn) {\n  return function f2(a, b) {\n    switch (arguments.length) {\n      case 0:\n        return f2;\n\n      case 1:\n        return _isPlaceholder(a) ? f2 : _curry1(function (_b) {\n          return fn(a, _b);\n        });\n\n      default:\n        return _isPlaceholder(a) && _isPlaceholder(b) ? f2 : _isPlaceholder(a) ? _curry1(function (_a) {\n          return fn(_a, b);\n        }) : _isPlaceholder(b) ? _curry1(function (_b) {\n          return fn(a, _b);\n        }) : fn(a, b);\n    }\n  };\n}","import _curry2 from \"./internal/_curry2.js\";\n/**\n * Returns a partial copy of an object omitting the keys specified.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Object\n * @sig [String] -> {String: *} -> {String: *}\n * @param {Array} names an array of String property names to omit from the new object\n * @param {Object} obj The object to copy from\n * @return {Object} A new object with properties from `names` not on it.\n * @see R.pick\n * @example\n *\n *      R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}\n */\n\nvar omit =\n/*#__PURE__*/\n_curry2(function omit(names, obj) {\n  var result = {};\n  var index = {};\n  var idx = 0;\n  var len = names.length;\n\n  while (idx < len) {\n    index[names[idx]] = 1;\n    idx += 1;\n  }\n\n  for (var prop in obj) {\n    if (!index.hasOwnProperty(prop)) {\n      result[prop] = obj[prop];\n    }\n  }\n\n  return result;\n});\n\nexport default omit;","export default function _has(prop, obj) {\n  return Object.prototype.hasOwnProperty.call(obj, prop);\n}","import _has from \"./_has.js\";\nvar toString = Object.prototype.toString;\n\nvar _isArguments =\n/*#__PURE__*/\nfunction () {\n  return toString.call(arguments) === '[object Arguments]' ? function _isArguments(x) {\n    return toString.call(x) === '[object Arguments]';\n  } : function _isArguments(x) {\n    return _has('callee', x);\n  };\n}();\n\nexport default _isArguments;","/**\n * Tests whether or not an object is an array.\n *\n * @private\n * @param {*} val The object to test.\n * @return {Boolean} `true` if `val` is an array, `false` otherwise.\n * @example\n *\n *      _isArray([]); //=> true\n *      _isArray(null); //=> false\n *      _isArray({}); //=> false\n */\nexport default Array.isArray || function _isArray(val) {\n  return val != null && val.length >= 0 && Object.prototype.toString.call(val) === '[object Array]';\n};","import _curry1 from \"./internal/_curry1.js\";\nimport _isArguments from \"./internal/_isArguments.js\";\nimport _isArray from \"./internal/_isArray.js\";\nimport _isObject from \"./internal/_isObject.js\";\nimport _isString from \"./internal/_isString.js\";\n/**\n * Returns the empty value of its argument's type. Ramda defines the empty\n * value of Array (`[]`), Object (`{}`), String (`''`), and Arguments. Other\n * types are supported if they define `<Type>.empty`,\n * `<Type>.prototype.empty` or implement the\n * [FantasyLand Monoid spec](https://github.com/fantasyland/fantasy-land#monoid).\n *\n * Dispatches to the `empty` method of the first argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.3.0\n * @category Function\n * @sig a -> a\n * @param {*} x\n * @return {*}\n * @example\n *\n *      R.empty(Just(42));      //=> Nothing()\n *      R.empty([1, 2, 3]);     //=> []\n *      R.empty('unicorns');    //=> ''\n *      R.empty({x: 1, y: 2});  //=> {}\n */\n\nvar empty =\n/*#__PURE__*/\n_curry1(function empty(x) {\n  return x != null && typeof x['fantasy-land/empty'] === 'function' ? x['fantasy-land/empty']() : x != null && x.constructor != null && typeof x.constructor['fantasy-land/empty'] === 'function' ? x.constructor['fantasy-land/empty']() : x != null && typeof x.empty === 'function' ? x.empty() : x != null && x.constructor != null && typeof x.constructor.empty === 'function' ? x.constructor.empty() : _isArray(x) ? [] : _isString(x) ? '' : _isObject(x) ? {} : _isArguments(x) ? function () {\n    return arguments;\n  }() : void 0 // else\n  ;\n});\n\nexport default empty;","export default function _isString(x) {\n  return Object.prototype.toString.call(x) === '[object String]';\n}","export default function _isObject(x) {\n  return Object.prototype.toString.call(x) === '[object Object]';\n}","export default function _arrayFromIterator(iter) {\n  var list = [];\n  var next;\n\n  while (!(next = iter.next()).done) {\n    list.push(next.value);\n  }\n\n  return list;\n}","export default function _includesWith(pred, x, list) {\n  var idx = 0;\n  var len = list.length;\n\n  while (idx < len) {\n    if (pred(x, list[idx])) {\n      return true;\n    }\n\n    idx += 1;\n  }\n\n  return false;\n}","// Based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\nfunction _objectIs(a, b) {\n  // SameValue algorithm\n  if (a === b) {\n    // Steps 1-5, 7-10\n    // Steps 6.b-6.e: +0 != -0\n    return a !== 0 || 1 / a === 1 / b;\n  } else {\n    // Step 6.a: NaN == NaN\n    return a !== a && b !== b;\n  }\n}\n\nexport default typeof Object.is === 'function' ? Object.is : _objectIs;","import _curry1 from \"./internal/_curry1.js\";\nimport _has from \"./internal/_has.js\";\nimport _isArguments from \"./internal/_isArguments.js\"; // cover IE < 9 keys issues\n\nvar hasEnumBug = !\n/*#__PURE__*/\n{\n  toString: null\n}.propertyIsEnumerable('toString');\nvar nonEnumerableProps = ['constructor', 'valueOf', 'isPrototypeOf', 'toString', 'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString']; // Safari bug\n\nvar hasArgsEnumBug =\n/*#__PURE__*/\nfunction () {\n  'use strict';\n\n  return arguments.propertyIsEnumerable('length');\n}();\n\nvar contains = function contains(list, item) {\n  var idx = 0;\n\n  while (idx < list.length) {\n    if (list[idx] === item) {\n      return true;\n    }\n\n    idx += 1;\n  }\n\n  return false;\n};\n/**\n * Returns a list containing the names of all the enumerable own properties of\n * the supplied object.\n * Note that the order of the output array is not guaranteed to be consistent\n * across different JS platforms.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Object\n * @sig {k: v} -> [k]\n * @param {Object} obj The object to extract properties from\n * @return {Array} An array of the object's own properties.\n * @see R.keysIn, R.values\n * @example\n *\n *      R.keys({a: 1, b: 2, c: 3}); //=> ['a', 'b', 'c']\n */\n\n\nvar keys = typeof Object.keys === 'function' && !hasArgsEnumBug ?\n/*#__PURE__*/\n_curry1(function keys(obj) {\n  return Object(obj) !== obj ? [] : Object.keys(obj);\n}) :\n/*#__PURE__*/\n_curry1(function keys(obj) {\n  if (Object(obj) !== obj) {\n    return [];\n  }\n\n  var prop, nIdx;\n  var ks = [];\n\n  var checkArgsLength = hasArgsEnumBug && _isArguments(obj);\n\n  for (prop in obj) {\n    if (_has(prop, obj) && (!checkArgsLength || prop !== 'length')) {\n      ks[ks.length] = prop;\n    }\n  }\n\n  if (hasEnumBug) {\n    nIdx = nonEnumerableProps.length - 1;\n\n    while (nIdx >= 0) {\n      prop = nonEnumerableProps[nIdx];\n\n      if (_has(prop, obj) && !contains(ks, prop)) {\n        ks[ks.length] = prop;\n      }\n\n      nIdx -= 1;\n    }\n  }\n\n  return ks;\n});\nexport default keys;","import _curry1 from \"./internal/_curry1.js\";\n/**\n * Gives a single-word string description of the (native) type of a value,\n * returning such answers as 'Object', 'Number', 'Array', or 'Null'. Does not\n * attempt to distinguish user Object types any further, reporting them all as\n * 'Object'.\n *\n * @func\n * @memberOf R\n * @since v0.8.0\n * @category Type\n * @sig (* -> {*}) -> String\n * @param {*} val The value to test\n * @return {String}\n * @example\n *\n *      R.type({}); //=> \"Object\"\n *      R.type(1); //=> \"Number\"\n *      R.type(false); //=> \"Boolean\"\n *      R.type('s'); //=> \"String\"\n *      R.type(null); //=> \"Null\"\n *      R.type([]); //=> \"Array\"\n *      R.type(/[A-z]/); //=> \"RegExp\"\n *      R.type(() => {}); //=> \"Function\"\n *      R.type(undefined); //=> \"Undefined\"\n */\n\nvar type =\n/*#__PURE__*/\n_curry1(function type(val) {\n  return val === null ? 'Null' : val === undefined ? 'Undefined' : Object.prototype.toString.call(val).slice(8, -1);\n});\n\nexport default type;","import _arrayFromIterator from \"./_arrayFromIterator.js\";\nimport _includesWith from \"./_includesWith.js\";\nimport _functionName from \"./_functionName.js\";\nimport _has from \"./_has.js\";\nimport _objectIs from \"./_objectIs.js\";\nimport keys from \"../keys.js\";\nimport type from \"../type.js\";\n/**\n * private _uniqContentEquals function.\n * That function is checking equality of 2 iterator contents with 2 assumptions\n * - iterators lengths are the same\n * - iterators values are unique\n *\n * false-positive result will be returned for comparision of, e.g.\n * - [1,2,3] and [1,2,3,4]\n * - [1,1,1] and [1,2,3]\n * */\n\nfunction _uniqContentEquals(aIterator, bIterator, stackA, stackB) {\n  var a = _arrayFromIterator(aIterator);\n\n  var b = _arrayFromIterator(bIterator);\n\n  function eq(_a, _b) {\n    return _equals(_a, _b, stackA.slice(), stackB.slice());\n  } // if *a* array contains any element that is not included in *b*\n\n\n  return !_includesWith(function (b, aItem) {\n    return !_includesWith(eq, aItem, b);\n  }, b, a);\n}\n\nexport default function _equals(a, b, stackA, stackB) {\n  if (_objectIs(a, b)) {\n    return true;\n  }\n\n  var typeA = type(a);\n\n  if (typeA !== type(b)) {\n    return false;\n  }\n\n  if (a == null || b == null) {\n    return false;\n  }\n\n  if (typeof a['fantasy-land/equals'] === 'function' || typeof b['fantasy-land/equals'] === 'function') {\n    return typeof a['fantasy-land/equals'] === 'function' && a['fantasy-land/equals'](b) && typeof b['fantasy-land/equals'] === 'function' && b['fantasy-land/equals'](a);\n  }\n\n  if (typeof a.equals === 'function' || typeof b.equals === 'function') {\n    return typeof a.equals === 'function' && a.equals(b) && typeof b.equals === 'function' && b.equals(a);\n  }\n\n  switch (typeA) {\n    case 'Arguments':\n    case 'Array':\n    case 'Object':\n      if (typeof a.constructor === 'function' && _functionName(a.constructor) === 'Promise') {\n        return a === b;\n      }\n\n      break;\n\n    case 'Boolean':\n    case 'Number':\n    case 'String':\n      if (!(typeof a === typeof b && _objectIs(a.valueOf(), b.valueOf()))) {\n        return false;\n      }\n\n      break;\n\n    case 'Date':\n      if (!_objectIs(a.valueOf(), b.valueOf())) {\n        return false;\n      }\n\n      break;\n\n    case 'Error':\n      return a.name === b.name && a.message === b.message;\n\n    case 'RegExp':\n      if (!(a.source === b.source && a.global === b.global && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline && a.sticky === b.sticky && a.unicode === b.unicode)) {\n        return false;\n      }\n\n      break;\n  }\n\n  var idx = stackA.length - 1;\n\n  while (idx >= 0) {\n    if (stackA[idx] === a) {\n      return stackB[idx] === b;\n    }\n\n    idx -= 1;\n  }\n\n  switch (typeA) {\n    case 'Map':\n      if (a.size !== b.size) {\n        return false;\n      }\n\n      return _uniqContentEquals(a.entries(), b.entries(), stackA.concat([a]), stackB.concat([b]));\n\n    case 'Set':\n      if (a.size !== b.size) {\n        return false;\n      }\n\n      return _uniqContentEquals(a.values(), b.values(), stackA.concat([a]), stackB.concat([b]));\n\n    case 'Arguments':\n    case 'Array':\n    case 'Object':\n    case 'Boolean':\n    case 'Number':\n    case 'String':\n    case 'Date':\n    case 'Error':\n    case 'RegExp':\n    case 'Int8Array':\n    case 'Uint8Array':\n    case 'Uint8ClampedArray':\n    case 'Int16Array':\n    case 'Uint16Array':\n    case 'Int32Array':\n    case 'Uint32Array':\n    case 'Float32Array':\n    case 'Float64Array':\n    case 'ArrayBuffer':\n      break;\n\n    default:\n      // Values of other types are only equal if identical.\n      return false;\n  }\n\n  var keysA = keys(a);\n\n  if (keysA.length !== keys(b).length) {\n    return false;\n  }\n\n  var extendedStackA = stackA.concat([a]);\n  var extendedStackB = stackB.concat([b]);\n  idx = keysA.length - 1;\n\n  while (idx >= 0) {\n    var key = keysA[idx];\n\n    if (!(_has(key, b) && _equals(b[key], a[key], extendedStackA, extendedStackB))) {\n      return false;\n    }\n\n    idx -= 1;\n  }\n\n  return true;\n}","export default function _functionName(f) {\n  // String(x => x) evaluates to \"x => x\", so the pattern may not match.\n  var match = String(f).match(/^function (\\w*)/);\n  return match == null ? '' : match[1];\n}","import _curry2 from \"./internal/_curry2.js\";\nimport _equals from \"./internal/_equals.js\";\n/**\n * Returns `true` if its arguments are equivalent, `false` otherwise. Handles\n * cyclical data structures.\n *\n * Dispatches symmetrically to the `equals` methods of both arguments, if\n * present.\n *\n * @func\n * @memberOf R\n * @since v0.15.0\n * @category Relation\n * @sig a -> b -> Boolean\n * @param {*} a\n * @param {*} b\n * @return {Boolean}\n * @example\n *\n *      R.equals(1, 1); //=> true\n *      R.equals(1, '1'); //=> false\n *      R.equals([1, 2, 3], [1, 2, 3]); //=> true\n *\n *      const a = {}; a.v = a;\n *      const b = {}; b.v = b;\n *      R.equals(a, b); //=> true\n */\n\nvar equals =\n/*#__PURE__*/\n_curry2(function equals(a, b) {\n  return _equals(a, b, [], []);\n});\n\nexport default equals;","import _curry1 from \"./internal/_curry1.js\";\nimport empty from \"./empty.js\";\nimport equals from \"./equals.js\";\n/**\n * Returns `true` if the given value is its type's empty value; `false`\n * otherwise.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category Logic\n * @sig a -> Boolean\n * @param {*} x\n * @return {Boolean}\n * @see R.empty\n * @example\n *\n *      R.isEmpty([1, 2, 3]);   //=> false\n *      R.isEmpty([]);          //=> true\n *      R.isEmpty('');          //=> true\n *      R.isEmpty(null);        //=> false\n *      R.isEmpty({});          //=> true\n *      R.isEmpty({length: 0}); //=> false\n */\n\nvar isEmpty =\n/*#__PURE__*/\n_curry1(function isEmpty(x) {\n  return x != null && equals(x, empty(x));\n});\n\nexport default isEmpty;","export default function _isTransformer(obj) {\n  return obj != null && typeof obj['@@transducer/step'] === 'function';\n}","import _isArray from \"./_isArray.js\";\nimport _isTransformer from \"./_isTransformer.js\";\n/**\n * Returns a function that dispatches with different strategies based on the\n * object in list position (last argument). If it is an array, executes [fn].\n * Otherwise, if it has a function with one of the given method names, it will\n * execute that function (functor case). Otherwise, if it is a transformer,\n * uses transducer [xf] to return a new transformer (transducer case).\n * Otherwise, it will default to executing [fn].\n *\n * @private\n * @param {Array} methodNames properties to check for a custom implementation\n * @param {Function} xf transducer to initialize if object is transformer\n * @param {Function} fn default ramda implementation\n * @return {Function} A function that dispatches on object in list position\n */\n\nexport default function _dispatchable(methodNames, xf, fn) {\n  return function () {\n    if (arguments.length === 0) {\n      return fn();\n    }\n\n    var args = Array.prototype.slice.call(arguments, 0);\n    var obj = args.pop();\n\n    if (!_isArray(obj)) {\n      var idx = 0;\n\n      while (idx < methodNames.length) {\n        if (typeof obj[methodNames[idx]] === 'function') {\n          return obj[methodNames[idx]].apply(obj, args);\n        }\n\n        idx += 1;\n      }\n\n      if (_isTransformer(obj)) {\n        var transducer = xf.apply(null, args);\n        return transducer(obj);\n      }\n    }\n\n    return fn.apply(this, arguments);\n  };\n}","export default {\n  init: function () {\n    return this.xf['@@transducer/init']();\n  },\n  result: function (result) {\n    return this.xf['@@transducer/result'](result);\n  }\n};","import _curry2 from \"./_curry2.js\";\nimport _reduced from \"./_reduced.js\";\nimport _xfBase from \"./_xfBase.js\";\n\nvar XTake =\n/*#__PURE__*/\nfunction () {\n  function XTake(n, xf) {\n    this.xf = xf;\n    this.n = n;\n    this.i = 0;\n  }\n\n  XTake.prototype['@@transducer/init'] = _xfBase.init;\n  XTake.prototype['@@transducer/result'] = _xfBase.result;\n\n  XTake.prototype['@@transducer/step'] = function (result, input) {\n    this.i += 1;\n    var ret = this.n === 0 ? result : this.xf['@@transducer/step'](result, input);\n    return this.n >= 0 && this.i >= this.n ? _reduced(ret) : ret;\n  };\n\n  return XTake;\n}();\n\nvar _xtake =\n/*#__PURE__*/\n_curry2(function _xtake(n, xf) {\n  return new XTake(n, xf);\n});\n\nexport default _xtake;","export default function _reduced(x) {\n  return x && x['@@transducer/reduced'] ? x : {\n    '@@transducer/value': x,\n    '@@transducer/reduced': true\n  };\n}","import _isArray from \"./_isArray.js\";\n/**\n * This checks whether a function has a [methodname] function. If it isn't an\n * array it will execute that function otherwise it will default to the ramda\n * implementation.\n *\n * @private\n * @param {Function} fn ramda implemtation\n * @param {String} methodname property to check for a custom implementation\n * @return {Object} Whatever the return value of the method is.\n */\n\nexport default function _checkForMethod(methodname, fn) {\n  return function () {\n    var length = arguments.length;\n\n    if (length === 0) {\n      return fn();\n    }\n\n    var obj = arguments[length - 1];\n    return _isArray(obj) || typeof obj[methodname] !== 'function' ? fn.apply(this, arguments) : obj[methodname].apply(obj, Array.prototype.slice.call(arguments, 0, length - 1));\n  };\n}","import _curry1 from \"./_curry1.js\";\nimport _curry2 from \"./_curry2.js\";\nimport _isPlaceholder from \"./_isPlaceholder.js\";\n/**\n * Optimized internal three-arity curry function.\n *\n * @private\n * @category Function\n * @param {Function} fn The function to curry.\n * @return {Function} The curried function.\n */\n\nexport default function _curry3(fn) {\n  return function f3(a, b, c) {\n    switch (arguments.length) {\n      case 0:\n        return f3;\n\n      case 1:\n        return _isPlaceholder(a) ? f3 : _curry2(function (_b, _c) {\n          return fn(a, _b, _c);\n        });\n\n      case 2:\n        return _isPlaceholder(a) && _isPlaceholder(b) ? f3 : _isPlaceholder(a) ? _curry2(function (_a, _c) {\n          return fn(_a, b, _c);\n        }) : _isPlaceholder(b) ? _curry2(function (_b, _c) {\n          return fn(a, _b, _c);\n        }) : _curry1(function (_c) {\n          return fn(a, b, _c);\n        });\n\n      default:\n        return _isPlaceholder(a) && _isPlaceholder(b) && _isPlaceholder(c) ? f3 : _isPlaceholder(a) && _isPlaceholder(b) ? _curry2(function (_a, _b) {\n          return fn(_a, _b, c);\n        }) : _isPlaceholder(a) && _isPlaceholder(c) ? _curry2(function (_a, _c) {\n          return fn(_a, b, _c);\n        }) : _isPlaceholder(b) && _isPlaceholder(c) ? _curry2(function (_b, _c) {\n          return fn(a, _b, _c);\n        }) : _isPlaceholder(a) ? _curry1(function (_a) {\n          return fn(_a, b, c);\n        }) : _isPlaceholder(b) ? _curry1(function (_b) {\n          return fn(a, _b, c);\n        }) : _isPlaceholder(c) ? _curry1(function (_c) {\n          return fn(a, b, _c);\n        }) : fn(a, b, c);\n    }\n  };\n}","import _checkForMethod from \"./internal/_checkForMethod.js\";\nimport _curry3 from \"./internal/_curry3.js\";\n/**\n * Returns the elements of the given list or string (or object with a `slice`\n * method) from `fromIndex` (inclusive) to `toIndex` (exclusive).\n *\n * Dispatches to the `slice` method of the third argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.4\n * @category List\n * @sig Number -> Number -> [a] -> [a]\n * @sig Number -> Number -> String -> String\n * @param {Number} fromIndex The start index (inclusive).\n * @param {Number} toIndex The end index (exclusive).\n * @param {*} list\n * @return {*}\n * @example\n *\n *      R.slice(1, 3, ['a', 'b', 'c', 'd']);        //=> ['b', 'c']\n *      R.slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd']\n *      R.slice(0, -1, ['a', 'b', 'c', 'd']);       //=> ['a', 'b', 'c']\n *      R.slice(-3, -1, ['a', 'b', 'c', 'd']);      //=> ['b', 'c']\n *      R.slice(0, 3, 'ramda');                     //=> 'ram'\n */\n\nvar slice =\n/*#__PURE__*/\n_curry3(\n/*#__PURE__*/\n_checkForMethod('slice', function slice(fromIndex, toIndex, list) {\n  return Array.prototype.slice.call(list, fromIndex, toIndex);\n}));\n\nexport default slice;","import _curry2 from \"./internal/_curry2.js\";\nimport _dispatchable from \"./internal/_dispatchable.js\";\nimport _xtake from \"./internal/_xtake.js\";\nimport slice from \"./slice.js\";\n/**\n * Returns the first `n` elements of the given list, string, or\n * transducer/transformer (or object with a `take` method).\n *\n * Dispatches to the `take` method of the second argument, if present.\n *\n * @func\n * @memberOf R\n * @since v0.1.0\n * @category List\n * @sig Number -> [a] -> [a]\n * @sig Number -> String -> String\n * @param {Number} n\n * @param {*} list\n * @return {*}\n * @see R.drop\n * @example\n *\n *      R.take(1, ['foo', 'bar', 'baz']); //=> ['foo']\n *      R.take(2, ['foo', 'bar', 'baz']); //=> ['foo', 'bar']\n *      R.take(3, ['foo', 'bar', 'baz']); //=> ['foo', 'bar', 'baz']\n *      R.take(4, ['foo', 'bar', 'baz']); //=> ['foo', 'bar', 'baz']\n *      R.take(3, 'ramda');               //=> 'ram'\n *\n *      const personnel = [\n *        'Dave Brubeck',\n *        'Paul Desmond',\n *        'Eugene Wright',\n *        'Joe Morello',\n *        'Gerry Mulligan',\n *        'Bob Bates',\n *        'Joe Dodge',\n *        'Ron Crotty'\n *      ];\n *\n *      const takeFive = R.take(5);\n *      takeFive(personnel);\n *      //=> ['Dave Brubeck', 'Paul Desmond', 'Eugene Wright', 'Joe Morello', 'Gerry Mulligan']\n * @symb R.take(-1, [a, b]) = [a, b]\n * @symb R.take(0, [a, b]) = []\n * @symb R.take(1, [a, b]) = [a]\n * @symb R.take(2, [a, b]) = [a, b]\n */\n\nvar take =\n/*#__PURE__*/\n_curry2(\n/*#__PURE__*/\n_dispatchable(['take'], _xtake, function take(n, xs) {\n  return slice(0, n < 0 ? Infinity : n, xs);\n}));\n\nexport default take;","import _curry2 from \"./internal/_curry2.js\";\nimport equals from \"./equals.js\";\nimport take from \"./take.js\";\n/**\n * Checks if a list starts with the provided sublist.\n *\n * Similarly, checks if a string starts with the provided substring.\n *\n * @func\n * @memberOf R\n * @since v0.24.0\n * @category List\n * @sig [a] -> [a] -> Boolean\n * @sig String -> String -> Boolean\n * @param {*} prefix\n * @param {*} list\n * @return {Boolean}\n * @see R.endsWith\n * @example\n *\n *      R.startsWith('a', 'abc')                //=> true\n *      R.startsWith('b', 'abc')                //=> false\n *      R.startsWith(['a'], ['a', 'b', 'c'])    //=> true\n *      R.startsWith(['b'], ['a', 'b', 'c'])    //=> false\n */\n\nvar startsWith =\n/*#__PURE__*/\n_curry2(function (prefix, list) {\n  return equals(take(prefix.length, list), prefix);\n});\n\nexport default startsWith;","export default function _typeof(obj) {\n  \"@babel/helpers - typeof\";\n\n  return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) {\n    return typeof obj;\n  } : function (obj) {\n    return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n  }, _typeof(obj);\n}","export default function( obj, rootName, ignoreList ) {\n\tconst formData = new window.FormData();\n\n\tfunction appendFormData( data, root ) {\n\t\tif ( ! ignore( root ) ) {\n\t\t\troot = root || '';\n\t\t\tif ( data instanceof window.File ) {\n\t\t\t\tformData.append( root, data );\n\t\t\t} else if ( Array.isArray( data ) ) {\n\t\t\t\tfor ( let i = 0; i < data.length; i++ ) {\n\t\t\t\t\tappendFormData( data[ i ], root + '[' + i + ']' );\n\t\t\t\t}\n\t\t\t} else if ( typeof data === 'object' && data ) {\n\t\t\t\tfor ( const key in data ) {\n\t\t\t\t\tif ( data.hasOwnProperty( key ) ) {\n\t\t\t\t\t\tif ( root === '' ) {\n\t\t\t\t\t\t\tappendFormData( data[ key ], key );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tappendFormData( data[ key ], root + '.' + key );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if ( data !== null && typeof data !== 'undefined' ) {\n\t\t\t\tformData.append( root, data );\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction ignore( root ) {\n\t\treturn (\n\t\t\tArray.isArray( ignoreList ) &&\n\t\t\tignoreList.some( ( x ) => x === root )\n\t\t);\n\t}\n\n\tappendFormData( obj, rootName );\n\n\treturn formData;\n};\n","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n  return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","export default function _arrayWithHoles(arr) {\n  if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n  var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"];\n  if (_i == null) return;\n  var _arr = [];\n  var _n = true;\n  var _d = false;\n  var _s, _e;\n  try {\n    for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {\n      _arr.push(_s.value);\n      if (i && _arr.length === i) break;\n    }\n  } catch (err) {\n    _d = true;\n    _e = err;\n  } finally {\n    try {\n      if (!_n && _i[\"return\"] != null) _i[\"return\"]();\n    } finally {\n      if (_d) throw _e;\n    }\n  }\n  return _arr;\n}","export default function _nonIterableRest() {\n  throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","/**\n * Removes null and undefined entries from an object recursively\n *\n * @param obj\n * @returns {*}\n */\n\nconst cleanEmpty = ( obj ) => Object.entries( obj )\n\t.map( ( [ k, v ] ) => [ k, v && typeof v === 'object' ? cleanEmpty( v ) : v ] )\n\t.reduce( ( a, [ k, v ] ) => ( v == null ? a : ( a[ k ] = v, a ) ), {} ); /* eslint-disable-line */\n\nexport default cleanEmpty;\n","import { omit, startsWith, isEmpty } from 'ramda';\nimport objectToFormData from './object-to-form-data';\nimport { stringify } from 'query-string';\nimport stripTags from 'underscore.string/stripTags';\nimport trim from 'underscore.string/trim';\nimport unescapeHTML from 'underscore.string/unescapeHTML';\nimport cleanEmpty from './clean-empty';\n\nexport default async function request( key, endpoints = {}, options = {} ) {\n\tconst defaultOptions = { method: 'GET', ...options };\n\tconst newOptions = omit( [ 'body' ], defaultOptions );\n\tconst handleBody = newOptions.method !== 'GET' && newOptions.method !== 'HEAD';\n\tlet url = newOptions.baseUrl;\n\n\t// encode as multipart/form-data\n\tif ( handleBody ) {\n\t\tconst parseBody = options.body ? options.body : {};\n\t\tif ( endpoints[ key ].nonce ) {\n\t\t\tparseBody._ajax_nonce = endpoints[ key ].nonce;\n\t\t}\n\t\tif ( endpoints[ key ].action ) {\n\t\t\tparseBody.action = endpoints[ key ].action;\n\t\t}\n\t\tnewOptions.body = objectToFormData( parseBody );\n\t}\n\n\t// todo: the real fix here is to check the content-type and encode as required,\n\t// since body is already an associative array\n\t// override if POSTing json\n\tif ( newOptions.json ) {\n\t\tnewOptions.body = JSON.stringify( newOptions.json );\n\t}\n\n\t// any params destined to become query parameters\n\tconst params = newOptions.params || {};\n\n\tif ( ! handleBody && endpoints[ key ].nonce ) {\n\t\tparams._ajax_nonce = endpoints[ key ].nonce;\n\t}\n\n\tif ( ! handleBody && endpoints[ key ].action ) {\n\t\tparams.action = endpoints[ key ].action;\n\t}\n\n\tif ( params && ! isEmpty( params ) ) {\n\t\tconst filteredParams = cleanEmpty( params );\n\t\tconst p = stringify( filteredParams, { arrayFormat: 'bracket' } );\n\t\turl = `${ url }?${ p }`;\n\t}\n\n\tconst headers = newOptions.headers\n\t\t? {\n\t\t\t...newOptions.headers,\n\t\t}\n\t\t: {};\n\n\tconsole.info( `Fetching url: ${ url }` );\n\tconsole.info( 'with options', { ...newOptions, body: newOptions.body } );\n\tconsole.info( 'and headers: ', headers );\n\tconst start = Date.now();\n\n\t// do the fetch\n\treturn window\n\t\t.fetch( url, { ...newOptions, headers } )\n\t\t.then( ( response ) => {\n\t\t\tif ( response.ok ) {\n\t\t\t\treturn response.text().then( ( text ) => {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst data = JSON.parse( text );\n\t\t\t\t\t\tconst time = Date.now() - start;\n\t\t\t\t\t\tconsole.info(\n\t\t\t\t\t\t\t`Data for ${ key } in ${ time }ms:`,\n\t\t\t\t\t\t\tdata\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tdata,\n\t\t\t\t\t\t\tstatus: response.status,\n\t\t\t\t\t\t\ttotalPages: response.headers.get(\n\t\t\t\t\t\t\t\t'x-wp-totalpages'\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\ttotalPosts: response.headers.get( 'x-wp-total' ),\n\t\t\t\t\t\t};\n\t\t\t\t\t} catch ( error ) {\n\t\t\t\t\t\tconst message = trim(\n\t\t\t\t\t\t\tstripTags( unescapeHTML( text ) )\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst err = new Error(\n\t\t\t\t\t\t\t`Invalid server response. ${ message }`\n\t\t\t\t\t\t);\n\t\t\t\t\t\terr.detail = {\n\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\tdata: message,\n\t\t\t\t\t\t\tstatus: response.status,\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t\ttext,\n\t\t\t\t\t\t};\n\t\t\t\t\t\tthrow err;\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\t// we get 40x's and 500's with valid json\n\t\t\t// we also seem to get errors with application/json which are actually html/text? (see #92408)\n\t\t\t// ie expected errors - need to make sure these get handled!!\n\t\t\tif (\n\t\t\t\tstartsWith(\n\t\t\t\t\tresponse.headers.get( 'Content-Type' ),\n\t\t\t\t\t'application/json'\n\t\t\t\t)\n\t\t\t) {\n\t\t\t\treturn response.text().then( ( text ) => {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst data = JSON.parse( text );\n\t\t\t\t\t\tconsole.info( `Data for ${ key }:`, data );\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tdata,\n\t\t\t\t\t\t\tstatus: response.status,\n\t\t\t\t\t\t};\n\t\t\t\t\t} catch ( error ) {\n\t\t\t\t\t\tconst message = trim(\n\t\t\t\t\t\t\tstripTags( unescapeHTML( text ) )\n\t\t\t\t\t\t);\n\t\t\t\t\t\tconst err = new Error(\n\t\t\t\t\t\t\t`Invalid server response. ${ message }`\n\t\t\t\t\t\t);\n\t\t\t\t\t\terr.detail = {\n\t\t\t\t\t\t\turl,\n\t\t\t\t\t\t\tdata: message,\n\t\t\t\t\t\t\tstatus: response.status,\n\t\t\t\t\t\t\terror,\n\t\t\t\t\t\t\ttext,\n\t\t\t\t\t\t};\n\t\t\t\t\t\tthrow err;\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\t// error\n\t\t\treturn response.text().then( ( data ) => {\n\t\t\t\tconst message = trim( stripTags( unescapeHTML( data ) ) );\n\t\t\t\tconst err = new Error(\n\t\t\t\t\t`Unknown server response. ${ message }`\n\t\t\t\t);\n\t\t\t\terr.detail = {\n\t\t\t\t\turl,\n\t\t\t\t\tdata: message,\n\t\t\t\t\tstatus: response.status,\n\t\t\t\t};\n\t\t\t\tthrow err;\n\t\t\t} );\n\t\t} )\n\t\t.catch( ( error ) => {\n\t\t\tconsole.info( JSON.stringify( error ) );\n\t\t\tconsole.info( error.detail );\n\t\t\treturn { error };\n\t\t} );\n}\n","import request from '@gravityforms/request';\nimport {\n\tconsoleInfo,\n\tconsoleError,\n\tdebounce,\n\tdelegate,\n\tgetNodes,\n\tgetClosest,\n\tsaferHtml,\n\ttrigger,\n} from '@gravityforms/utils';\n\nexport const dropdownListItems = ( data = [] ) => {\n\treturn data.map( ( entry ) => {\n\t\t// Entry has children, make this a group and recursively output children within a <ul>.\n\t\tif ( entry.listData ) {\n\t\t\treturn saferHtml`\n\t\t\t<li class=\"gform-dropdown__group\">\n\t\t\t\t<span class=\"gform-dropdown__group-text\">${ entry.label }</span>\n\t\t\t\t<ul class=\"gform-dropdown__list gform-dropdown__list--grouped\" data-js=\"gform-dropdown-list\">` +\n\t\t\t\t\tdropdownListItems( entry.listData ) +\n\t\t\t\t`</ul>\n\t\t\t</li>\n\t\t\t`;\n\t\t}\n\n\t\t// Entry does not have listData, make this an <li>.\n\t\treturn saferHtml`\n\t\t<li class=\"gform-dropdown__item\">\n\t\t\t<button type=\"button\" class=\"gform-dropdown__trigger ui-state-disabled\" data-js=\"gform-dropdown-trigger\" data-value=\"${ entry.value }\">\n\t\t\t\t<span class=\"gform-dropdown__trigger-text\" data-value=\"${ entry.value }\">${ entry.label }</span>\n\t\t\t</button>\n\t\t</li>\n\t\t`;\n\t} ).join( '' );\n};\n\n/**\n * @function dropdownTemplate\n * @description Generates the markup for a dropdown in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}  options                        The options for the component template.\n * @param {string}  options.attributes             The attributes to add to the wrapper element, space seperated.\n * @param {string}  options.container              The container to append the dropdown to.\n * @param {string}  options.dropdownListAttributes The attributes to add to the dropdown list element.\n * @param {boolean} options.hasSearch              Whether or not to show the search input.\n * @param {Array}   options.listData               The list data for the dropdown.\n * @param {string}  options.searchAriaText         The aria text for the search input.\n * @param {string}  options.searchInputId          The id for the search input.\n * @param {string}  options.searchPlaceholder      The placeholder for the search input.\n * @param {string}  options.selector               The selector for the dropdown.\n * @param {string}  options.triggerAriaId          The id for the trigger aria.\n * @param {string}  options.triggerAriaText        The aria text for the trigger.\n * @param {string}  options.triggerClasses         The classes for the trigger.\n * @param {string}  options.triggerId              The id for the trigger.\n * @param {string}  options.triggerPlaceholder     The placeholder for the trigger.\n * @param {string}  options.triggerSelected        The selected item for the trigger.\n * @param {string}  options.triggerTitle           The title for the trigger.\n * @param {string}  options.wrapperClasses         The classes for the wrapper, space seperated string.\n *\n * @return {String}\n * @example\n * import { dropdownTemplate } from '@gravityforms/components/html/admin/elements/Dropdown';\n *\n * function Example() {\n *      const dropdownTemplateHTML = dropdownTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', dropdownTemplateHTML );\n * }\n *\n */\nexport const dropdownTemplate = ( options ) => ( `\n\t<article class=\"${ options.wrapperClasses }\" data-js=\"${ options.selector }\" ${ options.attributes }>\n\t\t${ options.triggerTitle ? '' : `\n\t\t\t<span\n\t\t\t\tclass=\"gform-visually-hidden\"\n\t\t\t\tid=\"${ options.triggerAriaId }\"\n\t\t\t>${ options.triggerAriaText }</span>\n\t\t` }\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\taria-expanded=\"false\"\n\t\t\taria-haspopup=\"listbox\"\n\t\t\t${ options.triggerTitle ? '' : `aria-labelledby=\"${ options.triggerAriaId } ${ options.triggerId }\"` }\n\t\t\tclass=\"${ options.triggerClasses } gform-dropdown__control${ options.triggerSelected ? `` : ` gform-dropdown__control--placeholder` }\"\n\t\t\tdata-js=\"gform-dropdown-control\"\n\t\t\tid=\"${ options.triggerId }\"\n\t\t\t${ options.triggerTitle ? `title=\"${ options.triggerTitle }\"` : '' }\n\t\t>\n\t\t\t<span \n\t\t\t\tclass=\"gform-dropdown__control-text\" \n\t\t\t\tdata-js=\"gform-dropdown-control-text\"\n\t\t\t>\n\t\t\t\t${ options.triggerSelected ? options.triggerSelected : options.triggerPlaceholder }\n\t\t\t</span>\n\t\t\t<i class=\"gform-spinner gform-dropdown__spinner\"></i>\n\t\t\t<i class=\"gform-icon gform-icon--chevron gform-dropdown__chevron\"></i>\n\t\t</button>\n\t\t<div\n\t\t\taria-labelledby=\"${ options.triggerAriaId }\"\n\t\t\tclass=\"gform-dropdown__container\"\n\t\t\trole=\"listbox\"\n\t\t\tdata-js=\"gform-dropdown-container\"\n\t\t\ttabIndex=\"-1\"\n\t\t>\n\t\t\t${ options.hasSearch ? `\n\t\t\t<div class=\"gform-dropdown__search\">\n\t\t\t\t<label htmlFor=\"${ options.searchInputId }\" class=\"gform-visually-hidden\">${ options.searchAriaText }</label>\n\t\t\t\t<input\n\t\t\t\t\tid=\"${ options.searchInputId }\"\n\t\t\t\t\ttype=\"text\" class=\"gform-input gform-dropdown__search-input\"\n\t\t\t\t\tplaceholder=\"${ options.searchPlaceholder }\"\n\t\t\t\t\tdata-js=\"gform-dropdown-search\"\n\t\t\t\t/>\n\t\t\t\t<i class=\"gform-icon gform-icon--search gform-dropdown__search-icon\"></i>\n\t\t\t</div>\n\t\t\t` : '' }\n\t\t\t<div class=\"gform-dropdown__list-container\" ${ options.dropdownListAttributes }>\n\t\t\t\t<ul class=\"gform-dropdown__list\" data-js=\"gform-dropdown-list\">\n\t\t\t\t\t${ dropdownListItems( options.listData ) }\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t</article>\n` );\n\n/**\n * @class Dropdown\n * @description A dropdown component that can be used for simple stylized selects, more complex ones with simple fuzzy text search, or async dropdowns that get their data from rest or admin ajax.\n *\n * @since 1.1.16\n *\n * @borrows dropdownTemplate as dropdownTemplate\n *\n * @param {object}   options                            The options for the component.\n * @param {boolean}  options.autoPosition               Whether or not to auto position the dropdown above or below based on available room.\n * @param {string}   options.attributes                 The attributes to add to the wrapper element, space seperated.\n * @param {string}   options.baseUrl                    The base url for the request if async.\n * @param {boolean}  options.closeOnSelect              Whether or not to close the dropdown when an item is selected.\n * @param {string}   options.container                  The container to append the dropdown to.\n * @param {boolean}  options.detectTitleLength          Whether or not to detect the length of the title and adjust the width of the dropdown.\n * @param {string}   options.dropdownListAttributes     The attributes to add to the dropdown list element.\n * @param {object}   options.endpoints                  The endpoints for the request if async.\n * @param {object}   options.endpointArgs               The arguments for the request if async.\n * @param {string}   options.endpointKey                The key for the endpoint if async.\n * @param {object}   options.endpointRequestOptions     The request options for the request if async.\n * @param {boolean}  options.endpointUseRest            Whether or not to use the rest api for the request if async.\n * @param {boolean}  options.hasSearch                  Whether or not to show the search input.\n * @param {string}   options.insertPosition             The position to insert the dropdown in the dom.\n * @param {Array}    options.listData                   The list data for the dropdown.\n * @param {function} options.onItemSelect               The callback function to run when an item is selected.\n * @param {function} options.onOpen                     The callback function to run when the dropdown is opened.\n * @param {function} options.onClose                    The callback function to run when the dropdown is closed.\n * @param {boolean}  options.render                     Whether or not to render the dropdown.\n * @param {boolean}  options.renderListData             Whether or not to render the list data.\n * @param {string}   options.renderTarget               The target to render the dropdown to.\n * @param {string}   options.reveal                     The reveal type for the dropdown.\n * @param {string}   options.searchAriaText             The aria text for the search input.\n * @param {string}   options.searchInputId              The id for the search input.\n * @param {string}   options.searchPlaceholder          The placeholder for the search input.\n * @param {string}   options.searchType                 Basic or async. async requires endpoint config and key, plus baseUrl\n * @param {string}   options.selector                   The selector for the dropdown.\n * @param {boolean}  options.showSpinner                Whether or not to show the spinner when searching for results or page is reloading.\n * @param {boolean}  options.swapLabel                  Whether or not to swap the label and value on select of an item.\n * @param {Number}   options.titleLengthThresholdMedium The threshold for the medium title length.\n * @param {Number}   options.titleLengthThresholdLong   The threshold for the long title length.\n * @param {string}   options.triggerAriaId              The id for the trigger aria.\n * @param {string}   options.triggerAriaText            The aria text for the trigger.\n * @param {string}   options.triggerClasses             The classes for the trigger.\n * @param {string}   options.triggerId                  The id for the trigger.\n * @param {string}   options.triggerPlaceholder         The placeholder for the trigger.\n * @param {string}   options.triggerSelected            The selected item for the trigger.\n * @param {string}   options.triggerTitle               The title for the trigger.\n * @param {string}   options.wrapperClasses             The classes for the wrapper, space seperated string.\n *\n * @return {Class} The class instance.\n * @example\n * import Dropdown from '@gravityforms/components/html/admin/elements/Dropdown';\n *\n * function Example() {\n *      const dropdownInstance = new Dropdown( {\n *          render: true,\n *          renderTarget: '#example-target',\n *      } );\n * }\n *\n */\nexport default class Dropdown {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tautoPosition: false,\n\t\t\t\tattributes: '',\n\t\t\t\tbaseUrl: '',\n\t\t\t\tcloseOnSelect: true,\n\t\t\t\tcontainer: '',\n\t\t\t\tdetectTitleLength: false,\n\t\t\t\tdropdownListAttributes: 'data-simplebar',\n\t\t\t\tendpoints: {},\n\t\t\t\tendpointArgs: {},\n\t\t\t\tendpointKey: '',\n\t\t\t\tendpointRequestOptions: {},\n\t\t\t\tendpointUseRest: false,\n\t\t\t\thasSearch: true,\n\t\t\t\tinsertPosition: 'afterbegin',\n\t\t\t\tlistData: [],\n\t\t\t\tonItemSelect() {},\n\t\t\t\tonOpen() {},\n\t\t\t\tonClose() {},\n\t\t\t\trender: false,\n\t\t\t\trenderListData: false,\n\t\t\t\trenderTarget: '',\n\t\t\t\treveal: 'click',\n\t\t\t\tsearchAriaText: '',\n\t\t\t\tsearchInputId: 'gform-form-switcher-search',\n\t\t\t\tsearchPlaceholder: '',\n\t\t\t\tsearchType: 'basic', // basic or async. async requires endpoint config and key, plus baseUrl\n\t\t\t\tselector: 'gform-dropdown',\n\t\t\t\tshowSpinner: false,\n\t\t\t\tswapLabel: true,\n\t\t\t\ttitleLengthThresholdMedium: 23,\n\t\t\t\ttitleLengthThresholdLong: 32,\n\t\t\t\ttriggerAriaId: 'gform-form-switcher-label',\n\t\t\t\ttriggerAriaText: '',\n\t\t\t\ttriggerClasses: '',\n\t\t\t\ttriggerId: 'gform-form-switcher-control',\n\t\t\t\ttriggerPlaceholder: '',\n\t\t\t\ttriggerSelected: '',\n\t\t\t\ttriggerTitle: '',\n\t\t\t\twrapperClasses: 'gform-dropdown',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\tthis.elements = {};\n\t\tthis.templates = {\n\t\t\tdropdownListItems,\n\t\t\tdropdownTemplate,\n\t\t};\n\n\t\t/**\n\t\t * @event gform/dropdown/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/dropdown/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.state = {\n\t\t\tisMock: this.options.endpoints?.get_posts?.action === 'mock_endpoint',\n\t\t\topen: false,\n\t\t\tunloading: false,\n\t\t};\n\n\t\tif ( this.options.render ) {\n\t\t\tthis.render();\n\t\t}\n\n\t\tthis.options.container = this.options.container ? document.querySelectorAll( this.options.container )[ 0 ] : document;\n\t\tthis.elements.container = getNodes( this.options.selector, false, this.options.container )[ 0 ];\n\n\t\tif ( ! this.elements.container ) {\n\t\t\tconsoleError( `Gform dropdown couldn't find [data-js=\"${ this.options.selector }\"] to instantiate on.` );\n\t\t\treturn;\n\t\t}\n\t\tthis.elements.titleEl = getNodes( 'gform-dropdown-control-text', false, this.elements.container )[ 0 ];\n\t\tthis.elements.dropdownList = getNodes( 'gform-dropdown-list', false, this.elements.container )[ 0 ];\n\t\tthis.elements.dropdownContainer = getNodes( 'gform-dropdown-container', false, this.elements.container )[ 0 ];\n\n\t\tif ( this.options.renderListData && ! this.options.render ) {\n\t\t\tthis.renderListData();\n\t\t}\n\n\t\tthis.init();\n\n\t\tthis.hideSpinnerEl = function() {\n\t\t\tthis.elements.container.classList.remove( 'gform-dropdown--show-spinner' );\n\t\t};\n\n\t\tthis.showSpinnerEl = function() {\n\t\t\tthis.elements.container.classList.add( 'gform-dropdown--show-spinner' );\n\t\t};\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Handles item selection in the dropdown list.\n\t *\n\t * @fires  gform/dropdown/item_selected\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleChange( e ) {\n\t\t/**\n\t\t * @event gform/dropdown/item_selected\n\t\t * @type {object}\n\t\t * @description Fired when the component has an item selected in the dropdown list.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t * @property {object} event    The Component event object for the list item.\n\t\t */\n\t\ttrigger( { event: 'gform/dropdown/item_selected', native: false, data: { instance: this, event: e } } );\n\t\tthis.elements.control.setAttribute( 'data-value', e.target.dataset.value );\n\t\tthis.options.onItemSelect( e.target.dataset.value );\n\t\tif ( this.options.showSpinner ) {\n\t\t\tthis.showSpinnerEl();\n\t\t}\n\t\tif ( this.options.swapLabel ) {\n\t\t\tthis.elements.controlText.innerText = e.target.innerText;\n\t\t\tif ( this.elements.controlText.innerText === this.options.triggerPlaceholder ) {\n\t\t\t\tthis.elements.control.classList.add( 'gform-dropdown__control--placeholder' );\n\t\t\t} else {\n\t\t\t\tthis.elements.control.classList.remove( 'gform-dropdown__control--placeholder' );\n\t\t\t}\n\t\t}\n\t\tif ( this.options.closeOnSelect ) {\n\t\t\tthis.handleControl();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Handles the control trigger being interacted with and either opens or closes the dropdown.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleControl() {\n\t\tif ( this.state.open ) {\n\t\t\tthis.closeDropdown();\n\t\t} else {\n\t\t\tthis.openDropdown();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description If autoposition is true, automatically places the dropdown above or below the control based on the viewport.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandlePosition() {\n\t\tif ( ! this.options.autoPosition ) {\n\t\t\treturn;\n\t\t}\n\t\tconst roomBelow = this.elements.container.parentNode.offsetHeight - (\n\t\t\tthis.elements.container.offsetTop +\n\t\t\tthis.elements.container.offsetHeight +\n\t\t\tthis.elements.dropdownContainer.offsetHeight\n\t\t);\n\t\tif ( roomBelow < 10 ) {\n\t\t\tthis.elements.container.classList.add( 'gform-dropdown--position-top' );\n\t\t} else {\n\t\t\tthis.elements.container.classList.remove( 'gform-dropdown--position-top' );\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Modifies all needed classes that open the dropdown, and adjust state, plus also calling any callbacks.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\topenDropdown() {\n\t\tif ( this.state.open ) {\n\t\t\treturn;\n\t\t}\n\t\tthis.options.onOpen();\n\t\tthis.elements.container.classList.add( 'gform-dropdown--reveal' );\n\t\tsetTimeout( function() {\n\t\t\tthis.elements.container.classList.add( 'gform-dropdown--open' );\n\t\t\tthis.elements.control.setAttribute( 'aria-expanded', 'true' );\n\t\t\tthis.state.open = true;\n\t\t\tthis.handlePosition();\n\t\t}.bind( this ), 25 );\n\t\tsetTimeout( function() {\n\t\t\tthis.elements.container.classList.remove( 'gform-dropdown--reveal' );\n\t\t}.bind( this ), 200 );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Modifies all needed classes that close the dropdown, and adjust state, plus also calling any callbacks.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tcloseDropdown() {\n\t\tthis.options.onClose();\n\t\tthis.state.open = false;\n\t\tthis.elements.container.classList.remove( 'gform-dropdown--open' );\n\t\tthis.elements.container.classList.add( 'gform-dropdown--hide' );\n\t\tthis.elements.control.setAttribute( 'aria-expanded', 'false' );\n\t\tsetTimeout( function() {\n\t\t\tthis.elements.container.classList.remove( 'gform-dropdown--hide' );\n\t\t}.bind( this ), 150 );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Opens the dropdown on the hover event.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleMouseenter() {\n\t\tif ( this.options.reveal !== 'hover' || this.state.open || this.state.unloading ) {\n\t\t\treturn;\n\t\t}\n\t\tthis.openDropdown();\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Closes the dropdown on mouseleave if reveal type is hover.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleMouseleave() {\n\t\tif ( this.options.reveal !== 'hover' || this.state.unloading ) {\n\t\t\treturn;\n\t\t}\n\t\tthis.closeDropdown();\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Handles accessibility for the dropdown.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleA11y( e ) {\n\t\tif ( ! this.state.open ) {\n\t\t\treturn;\n\t\t}\n\t\tif ( e.keyCode === 27 ) {\n\t\t\tthis.closeDropdown();\n\t\t\tthis.elements.control.focus();\n\t\t\treturn;\n\t\t}\n\t\tif ( e.keyCode === 9 && ! getClosest( e.target, '[data-js=\"' + this.options.selector + '\"]' ) ) {\n\t\t\tthis.elements.triggers[ 0 ].focus();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Does a basic text search on the dropdown items.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleBasicSearch( e ) {\n\t\tconst search = e.target.value.toLowerCase();\n\t\tthis.elements.triggers.forEach( ( entry ) => {\n\t\t\tif ( entry.innerText.toLowerCase().includes( search ) ) {\n\t\t\t\tentry.parentNode.style.display = '';\n\t\t\t} else {\n\t\t\t\tentry.parentNode.style.display = 'none';\n\t\t\t}\n\t\t} );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Handles applying the rest response items as dropdown items.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tparseRestResponse = ( items ) => {\n\t\treturn items.map( ( item ) => ( { value: item.id, label: item.title.rendered } ) );\n\t};\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Handles hitting endpoints for lists data according to endpoint arguments passed in options.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleAsyncSearch = debounce( async ( e ) => {\n\t\tif ( e.target.value.trim().length === 0 ) {\n\t\t\tthis.elements.dropdownList.innerHTML = dropdownListItems( this.options.listData );\n\t\t\treturn;\n\t\t}\n\n\t\tconst passedArgs = this.options.endpointArgs;\n\t\tconst options = {\n\t\t\tbaseUrl: this.options.baseUrl,\n\t\t\tmethod: 'POST',\n\t\t\tbody: {\n\t\t\t\t...passedArgs,\n\t\t\t\tsearch: e.target.value,\n\t\t\t},\n\t\t\t...this.options.endpointRequestOptions,\n\t\t};\n\t\tif ( options.method === 'GET' ) {\n\t\t\toptions.params = options.body;\n\t\t}\n\t\tif ( this.state.isMock ) {\n\t\t\tconsoleInfo( 'Mock endpoint, data that would have been sent is:' );\n\t\t\tconsoleInfo( options );\n\t\t\treturn;\n\t\t}\n\t\tthis.showSpinnerEl();\n\t\tconst response = await request( this.options.endpointKey, this.options.endpoints, options );\n\t\tthis.hideSpinnerEl();\n\t\tif ( ! this.options.endpointUseRest && response?.data?.success ) {\n\t\t\tthis.elements.dropdownList.innerHTML = dropdownListItems( response.data.data );\n\t\t}\n\t\tif ( this.options.endpointUseRest && response.data.length ) {\n\t\t\tthis.elements.dropdownList.innerHTML = dropdownListItems( this.parseRestResponse( response.data ) );\n\t\t}\n\t}, { wait: 300 } );\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Delegates search handling to either basic or async handlers based on search type in options.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\thandleSearch( e ) {\n\t\tif ( this.options.searchType === 'basic' ) {\n\t\t\tthis.handleBasicSearch( e );\n\t\t\treturn;\n\t\t}\n\t\tthis.handleAsyncSearch( e );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Stores the dropdown triggers and reveal controls on the instance as HTMLElements.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tstoreTriggers() {\n\t\tthis.elements.control = getNodes( 'gform-dropdown-control', false, this.elements.container )[ 0 ];\n\t\tthis.elements.controlText = getNodes( 'gform-dropdown-control-text', false, this.elements.control )[ 0 ];\n\t\tthis.elements.triggers = getNodes( 'gform-dropdown-trigger', true, this.elements.container );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tthis.options.renderTarget = this.options.renderTarget ? document.querySelectorAll( this.options.renderTarget )[ 0 ] : document.body;\n\t\tthis.options.renderTarget.insertAdjacentHTML(\n\t\t\tthis.options.insertPosition,\n\t\t\tdropdownTemplate( this.options )\n\t\t);\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Renders the list data into the already rendered dropdown when called.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trenderListData() {\n\t\tthis.elements.dropdownList.innerHTML = dropdownListItems( this.options.listData );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Sets up various dom variables on init, like long title handling.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tsetup() {\n\t\tif ( this.options.reveal === 'hover' ) {\n\t\t\tthis.elements.container.classList.add( 'gform-dropdown--hover' );\n\t\t}\n\t\tif ( this.options.detectTitleLength ) {\n\t\t\t// add a class to the container of the dropdown if displayed title is long.\n\t\t\t// class doesnt do anything by default, you have to wire css if you want to do some handling for long titles\n\t\t\t// dropdown is just always full width of its container\n\t\t\tconst title = this.elements.titleEl ? this.elements.titleEl.innerText : '';\n\t\t\tif ( title.length > this.options.titleLengthThresholdMedium && title.length <= this.options.titleLengthThresholdLong ) {\n\t\t\t\tthis.elements.container.parentNode.classList.add( 'gform-dropdown--medium-title' );\n\t\t\t} else if ( title.length > this.options.titleLengthThresholdLong ) {\n\t\t\t\tthis.elements.container.parentNode.classList.add( 'gform-dropdown--long-title' );\n\t\t\t}\n\t\t}\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized dropdown component on [data-js=\"${ this.options.selector }\"].` );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Binds all the events for the component.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tbindEvents() {\n\t\tconst container = `[data-js=\"${ this.options.selector }\"]`;\n\n\t\tdelegate( container, '[data-js=\"gform-dropdown-trigger\"]', 'click', this.handleChange.bind( this ) );\n\t\tdelegate( container, '[data-js=\"gform-dropdown-control\"]', 'click', this.handleControl.bind( this ) );\n\t\tdelegate( container, '[data-js=\"gform-dropdown-search\"]', 'keyup', this.handleSearch.bind( this ) );\n\n\t\tthis.elements.container.addEventListener( 'mouseenter', this.handleMouseenter.bind( this ) );\n\t\tthis.elements.container.addEventListener( 'mouseleave', this.handleMouseleave.bind( this ) );\n\t\tthis.elements.container.addEventListener( 'keyup', this.handleA11y.bind( this ) );\n\n\t\tdocument.addEventListener( 'keyup', this.handleA11y.bind( this ) );\n\t\tdocument.addEventListener( 'click', function( event ) {\n\t\t\tif ( this.elements.container.contains( event.target ) || ! this.state.open ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.handleControl();\n\t\t}.bind( this ), true );\n\n\t\t// store unloading state to make sure item stays closed during this event\n\t\taddEventListener( 'beforeunload', function() {\n\t\t\tthis.state.unloading = true;\n\t\t}.bind( this ) );\n\t}\n\n\t/**\n\t * @memberof Dropdown\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/dropdown/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.storeTriggers();\n\t\tthis.bindEvents();\n\t\tthis.setup();\n\n\t\t/**\n\t\t * @event gform/dropdown/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/dropdown/post_render', native: false, data: { instance: this } } );\n\t}\n}\n","import {\n\tconsoleInfo,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function inputTemplate\n * @description Generates the markup for a input in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}                     options                  The options for the component template.\n * @param {object}                     options.customAttributes Any custom attributes.\n * @param {Array}                      options.customClasses    An array of additional classes for the toggle.\n * @param {string}                     options.id               Id for the input, auto generated if not passed.\n * @param {string}                     options.inputPrefix      The prefix for the input.\n * @param {string}                     options.inputSuffix      The suffix for the input.\n * @param {String}                     options.label            For radio or checkboxes, the label text.\n * @param {String}                     options.labelAttributes  Any other arbitrary attributes to add to the label.\n * @param {String}                     options.labelClasses     Space separated string of classes to add to the label.\n * @param {String}                     options.placeholder      Input placeholder text.\n * @param {string|number|Array|object} options.spacing          The spacing for the component, string, number, object or array.\n * @param {string}                     options.theme            Theme for the toggle, primary or cosmos.\n * @param {String}                     options.type             Input type: `text`, `email`, `tel`, `url`, `checkbox` or `radio`.\n * @param {String}                     options.value            The value for the input.\n *\n * @return {String}\n * @example\n * import { inputTemplate } from '@gravityforms/components/html/admin/elements/Input';\n *\n * function Example() {\n *      const inputTemplateHTML = inputTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', inputTemplateHTML );\n * }\n *\n */\nexport const inputTemplate = ( {\n\tactionButton = false,\n\tactionButtonIcon = 'eye',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tid = uniqueId( 'input' ),\n\tinputPrefix = '',\n\tinputSuffix = '',\n\tlabel = '',\n\tlabelAttributes = '',\n\tlabelClasses = '',\n\tplaceholder = '',\n\tspacing = '',\n\ttheme = 'primary',\n\ttype = 'text',\n\tvalue = '',\n} ) => {\n\tlet labelHtml = '';\n\tconst placeholderAttr = placeholder && ( type !== 'radio' || type !== 'checkbox' ) ? ` placeholder=\"${ placeholder }\"` : '';\n\tconst inputWrapperClasses = `${ inputPrefix ? 'gform-input-add-on-wrapper--prefix' : '' } ${ inputSuffix ? 'gform-input-add-on-wrapper--suffix' : '' } ${ actionButton ? 'gform-input-add-on-wrapper--action-button' : '' }`;\n\tconst inputWrapperOpen = inputPrefix || inputSuffix || actionButton ? `<div class=\"gform-input-add-on-wrapper ${ inputWrapperClasses }\">` : '';\n\tconst inputWrapperClose = inputPrefix || inputSuffix || actionButton ? `</div>` : '';\n\tconst inputPrefixContent = inputPrefix ? `<div class=\"gform-input__add-on gform-input__add-on--prefix\">${ inputPrefix }</div>` : '';\n\tconst inputSuffixContent = inputSuffix ? `<div class=\"gform-input__add-on gform-input__add-on--suffix\">${ inputSuffix }</div>` : '';\n\tlet actionButtonContent = '';\n\n\tif ( actionButton ) {\n\t\tactionButtonContent = `\n\t\t\t<button class=\"gform-button gform-button--size-sm gform-button--secondary gform-button--icon-leading gform-input__add-on gform-input__add-on--action-button\">\n\t\t\t\t<i class=\"gform-button__icon gform-common-icon gform-common-icon--${ actionButtonIcon }\" data-js=\"button-icon\"></i>\n\t\t\t</button>\n\t\t`;\n\t}\n\n\tif ( label && ( type === 'radio' || type === 'checkbox' ) ) {\n\t\tconst forAttr = id ? ` for=\"${ id }\"` : '';\n\n\t\tlabelHtml = `\n\t\t\t<label\n\t\t\t\t${ forAttr }\n\t\t\t\tclass=\"gform-label gform-input__label gform-input__label--${ type } ${ labelClasses }\"\n\t\t\t\t${ labelAttributes }\n\t\t\t>\n\t\t\t\t${ label }\n\t\t\t</label>\n\t\t`;\n\t}\n\n\tconst componentAttrs = objectToAttributes( {\n\t\t...customAttributes,\n\t\tid,\n\t\ttype,\n\t\tvalue,\n\t\tclass: [\n\t\t\t'gform-input',\n\t\t\t`gform-input--theme-${ theme }`,\n\t\t\t( type !== 'radio' && type !== 'checkbox' ) && `gform-input`,\n\t\t\t( type !== 'radio' && type !== 'checkbox' ) && `gform-input--text`,\n\t\t\t( type === 'radio' || type === 'checkbox' ) && `gform-input--${ type }`,\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\treturn `\n\t\t${ inputWrapperOpen }\n\t\t\t${ inputPrefixContent }\n\t\t\t<input\n\t\t\t\t${ placeholderAttr }\n\t\t\t\t${ componentAttrs }\n\t\t\t/>\n\t\t\t${ inputSuffixContent }\n\t\t\t${ actionButtonContent }\n\t\t${ inputWrapperClose }\n\t\t${ labelHtml }\n\t`;\n};\n\n/**\n * @class Input\n * @description A input component .\n *\n * @since 1.1.16\n *\n * @borrows inputTemplate as inputTemplate\n *\n * @param {object} options                  The options for the component.\n * @param {object} options.customAttributes Any custom attributes for the component.\n * @param {Array}  options.customClasses    An array of additional classes for the component.\n * @param {string} options.id               Id for the component, auto generated if not passed.\n * @param {string} options.inputPrefix      The prefix for the input.\n * @param {string} options.inputSuffix      The suffix for the input.\n * @param {String} options.label            For radio or checkboxes, the label text.\n * @param {String} options.labelAttributes  Any other arbitrary attributes to add to the label.\n * @param {String} options.labelClasses     Space separated string of classes to add to the label.\n * @param {String} options.placeholder      Input placeholder text.\n * @param {string} options.rendered         Is the component already rendered in the dom, eg by php?\n * @param {string} options.renderOnInit     Render the component on init of the class?\n * @param {string} options.spacing          Spacing for the component.\n * @param {string} options.target           The target to render to. Any valid css selector string.\n * @param {string} options.targetPosition   The insert position for the component relative to the target.\n * @param {string} options.theme            Theme for the component, primary or cosmos.\n * @param {String} options.type             Input type: `text`, `email`, `tel`, `url`, `checkbox` or `radio`.\n * @param {String} options.value            The value for the input.\n *\n * @return {Class} The class instance.\n * @example\n * import Input from '@gravityforms/components/html/admin/elements/Input';\n *\n * function Example() {\n *      const inputInstance = new Input( {\n *          id: 'example-input',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      inputInstance.init();\n * }\n *\n */\nexport default class Input {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tactionButton: false,\n\t\t\t\tactionButtonIcon: 'eye',\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\tid: '',\n\t\t\t\tinputPrefix: '',\n\t\t\t\tinputSuffix: '',\n\t\t\t\tlabel: '',\n\t\t\t\tlabelAttributes: '',\n\t\t\t\tlabelClasses: '',\n\t\t\t\tplaceholder: '',\n\t\t\t\trendered: false,\n\t\t\t\trenderOnInit: true,\n\t\t\t\tspacing: '',\n\t\t\t\ttarget: '',\n\t\t\t\ttargetPosition: 'afterbegin',\n\t\t\t\ttheme: 'cosmos',\n\t\t\t\ttype: 'text',\n\t\t\t\tvalue: '',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/input/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/input/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.options.id = this.options.id || uniqueId( 'toggle' );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Input\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\tinputTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.input = getNode( `#${ this.options.id }`, document, true );\n\t}\n\n\t/**\n\t * @memberof Input\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/input/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\n\t\t/**\n\t\t * @event gform/input/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/input/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized input component.` );\n\t}\n}\n","import {\n\tconsoleInfo,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function linkTemplate\n * @description Generates the markup for a link in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}                     options                  The options for the component template.\n * @param {object}                     options.customAttributes Any custom attributes.\n * @param {Array}                      options.customClasses    An array of additional classes for the toggle.\n * @param {string}                     options.href             Href for the link.\n * @param {string}                     options.id               Id for the link, auto generated if not passed.\n * @param {string}                     options.label            Text label for the link.\n * @param {string}                     options.linkTarget       Target for the link, eg _blank.\n * @param {string|number|Array|object} options.spacing          The spacing for the component, string, number, object or array.\n * @param {string}                     options.theme            Theme for the toggle, primary or cosmos.\n *\n * @return {String}\n * @example\n * import { linkTemplate } from '@gravityforms/components/html/admin/elements/Link';\n *\n * function Example() {\n *      const linkTemplateHTML = linkTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', linkTemplateHTML );\n * }\n *\n */\nexport const linkTemplate = ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\thref = '',\n\tid = uniqueId( 'link' ),\n\tlabel = '',\n\tlinkTarget = '_self',\n\tspacing = '',\n\ttheme = 'cosmos',\n} ) => {\n\tconst componentAttrs = objectToAttributes( {\n\t\t...customAttributes,\n\t\tid,\n\t\thref,\n\t\ttarget: linkTarget,\n\t\tclass: [\n\t\t\t'gform-link',\n\t\t\t`gform-link--theme-${ theme }`,\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\treturn `\n\t\t<a ${ componentAttrs }${ linkTarget === '_blank' ? ` rel=\"noopener\"` : `` }>\n\t\t\t<span class=\"gform-link__label\">${ label }</span>\n\t\t</a>\n\t`;\n};\n\n/**\n * @class Link\n * @description A link component .\n *\n * @since 1.1.16\n *\n * @borrows linkTemplate as linkTemplate\n *\n * @param {object} options                  The options for the component.\n * @param {object} options.customAttributes Any custom attributes for the component.\n * @param {Array}  options.customClasses    An array of additional classes for the component.\n * @param {string} options.href             Href for the link.\n * @param {string} options.id               Id for the component, auto generated if not passed.\n * @param {string} options.label            Text label for the link.\n * @param {string} options.linkTarget       Target for the link, eg _blank.\n * @param {string} options.rendered         Is the component already rendered in the dom, eg by php?\n * @param {string} options.renderOnInit     Render the component on init of the class?\n * @param {string} options.spacing          Spacing for the component.\n * @param {string} options.target           The target to render to. Any valid css selector string.\n * @param {string} options.targetPosition   The insert position for the component relative to the target.\n * @param {string} options.theme            Theme for the component, primary or cosmos.\n *\n * @return {Class} The class instance.\n * @example\n * import Link from '@gravityforms/components/html/admin/elements/Link';\n *\n * function Example() {\n *      const linkInstance = new Link( {\n *          id: 'example-link',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      linkInstance.init();\n * }\n *\n */\nexport default class Link {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\thref: '',\n\t\t\t\tid: '',\n\t\t\t\tlabel: '',\n\t\t\t\tlinkTarget: '_self',\n\t\t\t\trendered: false,\n\t\t\t\trenderOnInit: true,\n\t\t\t\tspacing: '',\n\t\t\t\ttarget: '',\n\t\t\t\ttargetPosition: 'afterbegin',\n\t\t\t\ttheme: 'cosmos',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/link/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/link/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.options.id = this.options.id || uniqueId( 'toggle' );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Link\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\tlinkTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.link = getNode( `#${ this.options.id }`, document, true );\n\t}\n\n\t/**\n\t * @memberof Link\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/link/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\n\t\t/**\n\t\t * @event gform/link/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/link/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized link component.` );\n\t}\n}\n\n","import {\n\tconsoleInfo,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function stackedIconTemplate\n * @description Generates the markup for a stackedIcon in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}                     options                  The options for the component template.\n * @param {object}                     options.customAttributes Any custom attributes.\n * @param {Array}                      options.customClasses    An array of additional classes for the toggle.\n * @param {string}                     options.id               Id for the stackedIcon, auto generated if not passed.\n * @param {string|number|Array|object} options.spacing          The spacing for the component, string, number, object or array.\n * @param {string}                     options.tagName          Tag to use for the icon wrapper. Defaults to 'span',\n * @param {string}                     options.theme            Theme for the toggle, primary or cosmos.\n * @param {string}                     options.type             The icon name string.\n *\n * @return {String}\n * @example\n * import { stackedIconTemplate } from '@gravityforms/components/html/admin/elements/StackedIcon';\n *\n * function Example() {\n *      const stackedIconTemplateHTML = stackedIconTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', stackedIconTemplateHTML );\n * }\n *\n */\nexport const stackedIconTemplate = ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tid = '',\n\tspacing = '',\n\ttagName = 'span',\n\ttheme = 'primary',\n\ttype = '',\n} ) => {\n\tconst componentAttrs = objectToAttributes( {\n\t\t...customAttributes,\n\t\tid,\n\t\tclass: [\n\t\t\t'gform-st-icon',\n\t\t\t`gform-st-icon--theme-${ theme }`,\n\t\t\t`gform-st-icon--${ type }`,\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\treturn `\n\t\t<${ tagName } ${ componentAttrs }></${ tagName }>\n\t`;\n};\n\n/**\n * @class StackedIcon\n * @description A stackedIcon component .\n *\n * @since 1.1.16\n *\n * @borrows stackedIconTemplate as stackedIconTemplate\n *\n * @param {object} options                  The options for the component.\n * @param {object} options.customAttributes Any custom attributes for the component.\n * @param {Array}  options.customClasses    An array of additional classes for the component.\n * @param {string} options.id               Id for the component, auto generated if not passed.\n * @param {string} options.rendered         Is the component already rendered in the dom, eg by php?\n * @param {string} options.renderOnInit     Render the component on init of the class?\n * @param {string} options.spacing          Spacing for the component.\n * @param {string} options.target           The target to render to. Any valid css selector string.\n * @param {string} options.targetPosition   The insert position for the component relative to the target.\n * @param {string} options.theme            Theme for the component, primary or cosmos.\n *\n * @return {Class} The class instance.\n * @example\n * import StackedIcon from '@gravityforms/components/html/admin/elements/StackedIcon';\n *\n * function Example() {\n *      const stackedIconInstance = new StackedIcon( {\n *          id: 'example-stackedIcon',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      stackedIconInstance.init();\n * }\n *\n */\nexport default class StackedIcon {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\tid: '',\n\t\t\t\trendered: false,\n\t\t\t\trenderOnInit: true,\n\t\t\t\tspacing: '',\n\t\t\t\ttarget: '',\n\t\t\t\ttargetPosition: 'afterbegin',\n\t\t\t\ttheme: 'cosmos',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/stacked_icon/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/stacked_icon/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.options.id = this.options.id || uniqueId( 'toggle' );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof StackedIcon\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\tstackedIconTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.stackedIcon = getNode( `#${ this.options.id }`, document, true );\n\t}\n\n\t/**\n\t * @memberof StackedIcon\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/stacked_icon/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\n\t\t/**\n\t\t * @event gform/stacked_icon/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/stacked_icon/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized stackedIcon component.` );\n\t}\n}\n\n","import {\n\tconsoleInfo,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function statusIndicatorTemplate\n * @description Generates the markup for a statusIndicator in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}                     options                  The options for the component template.\n * @param {object}                     options.customAttributes Any custom attributes.\n * @param {Array}                      options.customClasses    An array of additional classes for the toggle.\n * @param {Boolean}                    options.hasDot           Whether or not to include the svg dot.\n * @param {string}                     options.id               Id for the statusIndicator, auto generated if not passed.\n * @param {Boolean}                    options.isStatic         Whether or not the indicator should be active (`button`) or static (`span`).\n * @param {String}                     options.label            Status indicator label.\n * @param {Boolean}                    options.pill             Whether or not to apply fully rounded \"pill\" css to the indicator.\n * @param {string|number|Array|object} options.spacing          The spacing for the component, string, number, object or array.\n * @param {String}                     options.status           Type of indicator: `active`, `inactive`, or `error`.\n * @param {string}                     options.theme            Theme for the toggle, primary or cosmos.\n *\n * @return {String}\n * @example\n * import { statusIndicatorTemplate } from '@gravityforms/components/html/admin/elements/StatusIndicator';\n *\n * function Example() {\n *      const statusIndicatorTemplateHTML = statusIndicatorTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', statusIndicatorTemplateHTML );\n * }\n *\n */\nexport const statusIndicatorTemplate = ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\thasDot = true,\n\tid = '',\n\tisStatic = false,\n\tlabel = '',\n\tpill = true,\n\tstatus = 'active',\n\tspacing = '',\n\ttheme = 'cosmos',\n} ) => {\n\tconst tag = isStatic ? 'span' : 'button';\n\tconst componentAttrs = objectToAttributes( {\n\t\t...customAttributes,\n\t\tid,\n\t\tclass: [\n\t\t\t'gform-status-indicator',\n\t\t\t`gform-status-indicator--theme-${ theme }`,\n\t\t\t`gform-status--${ status }`,\n\t\t\t! pill ? 'gform-status--no-pill' : '',\n\t\t\t! hasDot ? 'gform-status--no-icon' : '',\n\t\t\tisStatic ? 'gform-status--no-hover' : '',\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\treturn `\n\t\t<${ tag } ${ componentAttrs }>\n\t\t\t${ hasDot ? '<svg viewBox=\"0 0 6 6\" xmlns=\"http://www.w3.org/2000/svg\"> <circle cx=\"3\" cy=\"2\" r=\"1\" stroke-width=\"2\"/></svg>' : '' }\n\t\t\t<span class=\"gform-status-indicator-status\">${ label }</span>\n\t\t</${ tag }>\n\t`;\n};\n\n/**\n * @class StatusIndicator\n * @description A statusIndicator component .\n *\n * @since 1.1.16\n *\n * @borrows statusIndicatorTemplate as statusIndicatorTemplate\n *\n * @param {object}  options                  The options for the component.\n * @param {object}  options.customAttributes Any custom attributes for the component.\n * @param {Array}   options.customClasses    An array of additional classes for the component.\n * @param {Boolean} options.hasDot           Whether or not to include the svg dot.\n * @param {string}  options.id               Id for the component, auto generated if not passed.\n * @param {Boolean} options.isStatic         Whether or not the indicator should be active (`button`) or static (`span`).\n * @param {String}  options.label            Status indicator label.\n * @param {Boolean} options.pill             Whether or not to apply fully rounded \"pill\" css to the indicator.\n * @param {string}  options.rendered         Is the component already rendered in the dom, eg by php?\n * @param {string}  options.renderOnInit     Render the component on init of the class?\n * @param {string}  options.spacing          Spacing for the component.\n * @param {String}  options.status           Type of indicator: `active`, `inactive`, or `error`.\n * @param {string}  options.target           The target to render to. Any valid css selector string.\n * @param {string}  options.targetPosition   The insert position for the component relative to the target.\n * @param {string}  options.theme            Theme for the component, primary or cosmos.\n *\n * @return {Class} The class instance.\n * @example\n * import StatusIndicator from '@gravityforms/components/html/admin/elements/StatusIndicator';\n *\n * function Example() {\n *      const statusIndicatorInstance = new StatusIndicator( {\n *          id: 'example-statusIndicator',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      statusIndicatorInstance.init();\n * }\n *\n */\nexport default class StatusIndicator {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\thasDot: true,\n\t\t\t\tid: '',\n\t\t\t\tisStatic: false,\n\t\t\t\tlabel: '',\n\t\t\t\tpill: true,\n\t\t\t\trendered: false,\n\t\t\t\trenderOnInit: true,\n\t\t\t\tspacing: '',\n\t\t\t\tstatus: 'active',\n\t\t\t\ttarget: '',\n\t\t\t\ttargetPosition: 'afterbegin',\n\t\t\t\ttheme: 'cosmos',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/status_indicator/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/status_indicator/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.options.id = this.options.id || uniqueId( 'toggle' );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof StatusIndicator\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\tstatusIndicatorTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.statusIndicator = getNode( `#${ this.options.id }`, document, true );\n\t}\n\n\t/**\n\t * @memberof StatusIndicator\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/status_indicator/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\n\t\t/**\n\t\t * @event gform/status_indicator/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/status_indicator/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized statusIndicator component.` );\n\t}\n}\n","import {\n\tconsoleInfo,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function helpTextTemplate\n * @description The markup for form field helper text.\n *\n * @since 1.1.18\n *\n * @param {string} id       Optional id. Auto generated if not passed.\n * @param {string} helpText Optional helper text.\n *\n * @return {string}\n */\nexport const helpTextTemplate = (\n\thelpText = '',\n\tid = '',\n) => {\n\tconst componentProps = objectToAttributes( {\n\t\tclass: [\n\t\t\t'gform-input-help-text',\n\t\t],\n\t\tid: `${ id }-help-text`,\n\t} );\n\n\treturn `\n\t\t<span ${ componentProps }>\n\t\t\t${ helpText }\n\t\t</span>\n\t`;\n};\n\n/**\n * @function labelTemplate\n * @description The markup for form field label.\n *\n * @since 1.1.18\n *\n * @param {string}  id                    Optional id. Auto generated if not passed.\n * @param {string}  label                 Label for the textarea.\n * @param {object}  labelCustomAttributes Any custom attributes for the label.\n * @param {Array}   labelCustomClasses    Any custom classes for the label.\n * @param {boolean} labelVisible          If the label should be visible. Defaults to true.\n *\n * @return {string}\n */\nexport const labelTemplate = (\n\tid = '',\n\tlabel = '',\n\tlabelCustomAttributes = {},\n\tlabelCustomClasses = [],\n\tlabelVisible = true,\n) => {\n\tconst componentProps = objectToAttributes( {\n\t\tclass: [\n\t\t\t'gform-label',\n\t\t\t'gform-input__label',\n\t\t\t'gform-input__label--textarea',\n\t\t\t! labelVisible ? 'gform-visually-hidden' : '',\n\t\t\t...labelCustomClasses,\n\t\t],\n\t\tfor: id,\n\t\t...labelCustomAttributes,\n\t} );\n\n\treturn `\n\t\t<label ${ componentProps }>\n\t\t\t${ label }\n\t\t</label>\n\t`;\n};\n\n/**\n * @function textareaTemplate\n * @description The markup for a textarea.\n *\n * @since 1.1.18\n *\n * @requires labelTemplate as labelTemplate\n * @requires helpTextTemplate as helpTextTemplate\n *\n * @param {Object}                     options                         The options for the component template.\n * @param {object}                     options.customAttributes        Any custom attributes for the textarea.\n * @param {Array}                      options.customClasses           Any custom classes for the textarea.\n * @param {string}                     options.helpText                Optional helper text.\n * @param {string}                     options.id                      Optional id. Auto generated if not passed.\n * @param {string}                     options.label                   Label for the textarea.\n * @param {object}                     options.labelCustomAttributes   Any custom attributes for the label.\n * @param {Array}                      options.labelCustomClasses      Any custom classes for the label.\n * @param {boolean}                    options.labelVisible            If the label should be visible. Defaults to true.\n * @param {boolean}                    options.disabled                If the textarea should be disabled.  Defaults to false.\n * @param {string}                     options.placeholder             Optional placeholder text.\n * @param {string|number|Array|object} options.spacing                 The spacing for the component, string, number, object or array.\n * @param {string}                     options.theme                   Theme for the toggle, primary or cosmos.\n * @param {string}                     options.value                   Optional initial value for the textarea.\n * @param {object}                     options.wrapperCustomAttributes Any custom attributes for the textarea wrapper.\n * @param {Array}                      options.wrapperCustomClasses    Any custom classes for the textarea wrapper.\n * @param {string}                     options.wrapperTagName          Tag to use for the textarea wrapper. Defaults to 'div',\n *\n * @return {string}\n * @example\n * import { textareaTemplate } from '@gravityforms/components/html/admin/elements/Textarea';\n *\n * function Example() {\n *      const textareaHTML = textareaTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', textareaHTML );\n * }\n */\nexport const textareaTemplate = ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\thelpText = '',\n\tid = '',\n\tlabel = '',\n\tlabelCustomAttributes = {},\n\tlabelCustomClasses = [],\n\tlabelVisible = true,\n\tdisabled = false,\n\tplaceholder = '',\n\tspacing = '',\n\ttheme = 'cosmos',\n\tvalue = '',\n\twrapperCustomAttributes = {},\n\twrapperCustomClasses = [],\n\twrapperTagName = 'div',\n} ) => {\n\tconst wrapperProps = objectToAttributes( {\n\t\tclass: [\n\t\t\t'gform-input-wrapper',\n\t\t\t`gform-input-wrapper--theme-${ theme }`,\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...wrapperCustomClasses,\n\t\t],\n\t\t...wrapperCustomAttributes,\n\t} );\n\tconst componentProps = {\n\t\tclass: [\n\t\t\t'gform-input',\n\t\t\t'gform-input--textarea',\n\t\t\t...customClasses,\n\t\t],\n\t\tid,\n\t\tname: id,\n\t\tplaceholder,\n\t\t...customAttributes,\n\t};\n\tif ( helpText ) {\n\t\tcomponentProps[ 'aria-describedby' ] = `${ id }-help-text`;\n\t}\n\tif ( disabled ) {\n\t\tcomponentProps.disabled = 'disabled';\n\t}\n\tconst labelHtml = labelTemplate(\n\t\tid,\n\t\tlabel,\n\t\tlabelCustomAttributes,\n\t\tlabelCustomClasses,\n\t\tlabelVisible,\n\t);\n\tconst helpTextHtml = helpTextTemplate(\n\t\thelpText,\n\t\tid,\n\t);\n\n\treturn `\n\t\t<${ wrapperTagName } ${ wrapperProps }>\n\t\t\t${ label && labelHtml }\n\t\t\t<textarea ${ objectToAttributes( componentProps ) }>${ value }</textarea>\n\t\t\t${ helpText && helpTextHtml }\n\t\t</${ wrapperTagName }>\n\t`;\n};\n\n/**\n * @class Textarea\n * @description A textarea component to use wherever textarea form fields are needed.\n *\n * @since 1.1.18\n *\n * @borrows textareaTemplate as textareaTemplate\n *\n * @param {object}  options                         The options for the component.\n * @param {object}  options.customAttributes        Any custom attributes for the textarea.\n * @param {Array}   options.customClasses           Any custom classes for the textarea.\n * @param {string}  options.helpText                Optional helper text.\n * @param {string}  options.id                      Optional id. Auto generated if not passed.\n * @param {string}  options.label                   Label for the textarea.\n * @param {object}  options.labelCustomAttributes   Any custom attributes for the label.\n * @param {Array}   options.labelCustomClasses      Any custom classes for the label.\n * @param {boolean} options.labelVisible            If the label should be visible. Defaults to true.\n * @param {string}  options.placeholder             Optional placeholder text.\n * @param {string}  options.rendered                Is the component already rendered in the dom, eg by php?\n * @param {string}  options.renderOnInit            Render the component on init of the class?\n * @param {string}  options.spacing                 Spacing for the component.\n * @param {string}  options.target                  The target to render to. Any valid css selector string.\n * @param {string}  options.targetPosition          The insert position for the component relative to the target.\n * @param {string}  options.theme                   Theme for the component, primary or cosmos.\n * @param {string}  options.value                   Optional initial value for the textarea.\n * @param {object}  options.wrapperCustomAttributes Any custom attributes for the textarea wrapper.\n * @param {Array}   options.wrapperCustomClasses    Any custom classes for the textarea wrapper.\n * @param {string}  options.wrapperTagName          Tag to use for the textarea wrapper. Defaults to 'div',\n *\n * @return {Class} The class instance.\n * @example\n * import Textarea from '@gravityforms/components/html/admin/elements/Textarea';\n *\n * function Example() {\n *      const textareaInstance = new Textarea( {\n *          id: 'example-textarea',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      textareaInstance.init();\n * }\n *\n */\nexport default class Textarea {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\thelpText: '',\n\t\t\t\tid: '',\n\t\t\t\tlabel: '',\n\t\t\t\tlabelCustomAttributes: {},\n\t\t\t\tlabelCustomClasses: [],\n\t\t\t\tlabelVisible: true,\n\t\t\t\tplaceholder: '',\n\t\t\t\trendered: false,\n\t\t\t\trenderOnInit: true,\n\t\t\t\tspacing: '',\n\t\t\t\ttarget: '',\n\t\t\t\ttargetPosition: 'afterbegin',\n\t\t\t\ttheme: 'cosmos',\n\t\t\t\tvalue: '',\n\t\t\t\twrapperCustomAttributes: {},\n\t\t\t\twrapperCustomClasses: [],\n\t\t\t\twrapperTagName: 'div',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/textarea/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/textarea/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.options.id = this.options.id || uniqueId( 'textarea' );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Textarea\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\ttextareaTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.textarea = getNode( `#${ this.options.id }`, document, true );\n\t\tthis.elements.wrapper = this.elements.textarea.parentNode;\n\t}\n\n\t/**\n\t * @memberof Textarea\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/textarea/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\n\t\t/**\n\t\t * @event gform/textarea/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/textarea/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized textarea component.` );\n\t}\n}\n","import {\n\tconsoleInfo,\n\tgetNode,\n\tobjectToAttributes,\n\tspacerClasses,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function toggleTemplate\n * @description Generates the markup for a toggle in the admin.\n *\n * @since 1.1.16\n *\n * @param {object}                     options                  The options for the component template.\n * @param {object}                     options.customAttributes Any custom attributes.\n * @param {Array}                      options.customClasses    An array of additional classes for the toggle.\n * @param {boolean}                    options.disabled         If the toggle is disabled.\n * @param {boolean}                    options.icons            Do we use the checkmark and x icons for this instance.\n * @param {string}                     options.id               Id for the toggle, auto generated if not passed.\n * @param {boolean}                    options.initialChecked   Is it checked on render?\n * @param {string}                     options.label            The label, required for accessibility.\n * @param {string}                     options.labelPosition    Position for the label, defaults to right.\n * @param {boolean}                    options.labelVisible     Is the label visible?\n * @param {string}                     options.name             Name for the input.\n * @param {string}                     options.size             Size for the toggle. Small (size-s), medium (size-m), or large (size-l).\n * @param {string|number|Array|object} options.spacing          The spacing for the component, string, number, object or array.\n * @param {string}                     options.theme            Theme for the toggle, primary or cosmos.\n *\n * @return {String}\n * @example\n * import { toggleTemplate } from '@gravityforms/components/html/admin/elements/Toggle';\n *\n * function Example() {\n *      const toggleHTML = toggleTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', toggleHTML );\n * }\n *\n */\nexport const toggleTemplate = ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\ticons = false,\n\tid = '',\n\tinitialChecked = false,\n\tlabel = '',\n\tlabelPosition = 'right',\n\tlabelVisible = false,\n\tname = '',\n\tsize = 'size-s',\n\tspacing = '',\n\ttheme = 'primary',\n} ) => {\n\tconst componentAttrs = objectToAttributes( {\n\t\t...customAttributes,\n\t\tclass: [\n\t\t\t'gform-toggle',\n\t\t\ticons ? 'gform-toggle--with-icons' : '',\n\t\t\ttheme === 'cosmos' ? 'gform-toggle--theme-cosmos' : '',\n\t\t\t`gform-toggle--label-${ labelPosition }`,\n\t\t\t`gform-toggle--${ size }`,\n\t\t\t...Object.keys( spacerClasses( spacing ) ),\n\t\t\t...customClasses,\n\t\t],\n\t} );\n\n\tconst labelClassName = [\n\t\t'gform-toggle__label',\n\t\t! labelVisible ? 'gform-visually-hidden' : '',\n\t];\n\n\treturn `\n\t\t<div ${ componentAttrs }>\n\t\t\t<input\n\t\t\t\tchecked=\"${ initialChecked }\"\n\t\t\t\tclass=\"gform-toggle__toggle\"\n\t\t\t\tid=\"${ id }\"\n\t\t\t\tname=\"${ name }\"\n\t\t\t\ttype=\"checkbox\"\n\t\t\t\t${ disabled ? 'disabled' : '' }\n\t\t\t/>\n\t\t\t<label\n\t\t\t\tclass=\"${ labelClassName.join( ' ' ) }\"\n\t\t\t\tfor=\"${ id }\"\n\t\t\t>\n\t\t\t\t${ label }\n\t\t\t</label>\n\t\t</div>\n\t`;\n};\n\n/**\n * @class Toggle\n * @description A toggle component to use wherever boolean based form fields are needed.\n *\n * @since 1.1.16\n *\n * @borrows toggleTemplate as toggleTemplate\n *\n * @param {object}  options                  The options for the component.\n * @param {object}  options.customAttributes Any custom attributes for the component.\n * @param {Array}   options.customClasses    An array of additional classes for the component.\n * @param {Array}   options.disabled         Is the toggle disabled on render?\n * @param {boolean} options.icons            Do we use the checkmark and x icons for this instance?\n * @param {string}  options.id               Id for the component, auto generated if not passed.\n * @param {boolean} options.initialChecked   Is it checked on render?\n * @param {string}  options.label            The label, required for accessibility.\n * @param {string}  options.labelPosition    Position for the label, defaults to right.\n * @param {boolean} options.labelVisible     Is the label visible?\n * @param {string}  options.rendered         Is the component already rendered in the dom, eg by php?\n * @param {string}  options.renderOnInit     Render the component on init of the class?\n * @param {string}  options.name             Name for the input.\n * @param {string}  options.size             Size for the component. Small (size-s), medium (size-m), or large (size-l).\n * @param {string}  options.spacing          Spacing for the component.\n * @param {string}  options.target           The target to render to. Any valid css selector string.\n * @param {string}  options.targetPosition   The insert position for the component relative to the target.\n * @param {string}  options.theme            Theme for the component, primary or cosmos.\n *\n * @return {Class} The class instance.\n * @example\n * import Toggle from '@gravityforms/components/html/admin/elements/Toggle';\n *\n * function Example() {\n *      const toggleInstance = new Toggle( {\n *          id: 'example-toggle',\n *          label: 'Example Toggle',\n *          name: 'example-toggle',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      toggleInstance.init();\n * }\n *\n */\nexport default class Toggle {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tcustomAttributes: {},\n\t\t\t\tcustomClasses: [],\n\t\t\t\tdisabled: false,\n\t\t\t\ticons: false,\n\t\t\t\tid: '',\n\t\t\t\tinitialChecked: false,\n\t\t\t\tlabel: '',\n\t\t\t\tlabelPosition: 'right',\n\t\t\t\tlabelVisible: false,\n\t\t\t\tname: '',\n\t\t\t\trendered: false,\n\t\t\t\trenderOnInit: true,\n\t\t\t\tsize: 'size-s',\n\t\t\t\tspacing: '',\n\t\t\t\ttarget: '',\n\t\t\t\ttargetPosition: 'afterbegin',\n\t\t\t\ttheme: 'cosmos',\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/toggle/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/toggle/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.options.id = this.options.id || uniqueId( 'toggle' );\n\n\t\tthis.elements = {};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Toggle\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { rendered, target, targetPosition } = this.options;\n\n\t\tif ( ! rendered ) {\n\t\t\tconst renderTarget = getNode( target, document, true );\n\n\t\t\trenderTarget.insertAdjacentHTML(\n\t\t\t\ttargetPosition,\n\t\t\t\ttoggleTemplate( this.options )\n\t\t\t);\n\t\t}\n\n\t\tthis.elements.input = getNode( `#${ this.options.id }`, document, true );\n\t\tthis.elements.wrapper = this.elements.input.parentNode;\n\t}\n\n\t/**\n\t * @memberof Toggle\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/toggle/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\n\t\t/**\n\t\t * @event gform/toggle/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/toggle/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized toggle component.` );\n\t}\n}\n","import {\n\tbodyLock,\n\tconsoleInfo,\n\tfocusLoop,\n\tgetClosest,\n\tgetNodes,\n\ttrigger,\n\tuniqueId,\n} from '@gravityforms/utils';\n\n/**\n * @function dialogTemplate\n * @description The template function that returns html for the dialog. Options below are passed from constructor and\n * described there.\n *\n * @since 1.0.6\n *\n * @param {object}  options                         The options for the dialog.\n * @param {string}  options.alertButtonText         The text for the alert button.\n * @param {string}  options.cancelButtonText        The text for the cancel button.\n * @param {string}  options.closeButtonClasses      The classes for the close button. Space seperated string.\n * @param {string}  options.closeButtonTitle        The title for the close button.\n * @param {string}  options.confirmButtonAttributes The attributes for the confirm button. Space seperated string.\n * @param {string}  options.confirmButtonIcon       The icon for the confirm button.\n * @param {string}  options.confirmButtonText       The text for the confirm button.\n * @param {string}  options.content                 The content for the dialog. HTML allowed.\n * @param {string}  options.id                      The id for the dialog.\n * @param {boolean} options.maskBlur                Whether to blur the background when the dialog is open.\n * @param {string}  options.maskClasses             The classes for the mask. Space seperated string.\n * @param {boolean} options.maskTheme               Background mask theme, `none`, `light` or `dark`.\n * @param {string}  options.mode                    The mode for the dialog. `alert`, `confirm` or `dialog`.\n * @param {string}  options.position                The position for the dialog. `center`, `top` or `bottom`.\n * @param {string}  options.title                   The title for the dialog.\n * @param {string}  options.titleIcon               The icon for the title.\n * @param {string}  options.titleIconColor          The color for the title icon.\n * @param {string}  options.wrapperClasses          The classes for the wrapper. Space seperated string.\n * @param {number}  options.zIndex                  The z-index for the dialog.\n *\n * @returns string\n * @example\n * import { dialogTemplate } from '@gravityforms/components/html/admin/modules/Dialog';\n *\n * function Example() {\n *      const dialogHTML = dialogTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', dialogHTML );\n * }\n *\n */\nexport const dialogTemplate = ( {\n\talertButtonText = '',\n\tcancelButtonText = '',\n\tcloseButtonClasses = '',\n\tcloseButtonTitle = '',\n\tconfirmButtonAttributes = '',\n\tconfirmButtonIcon = '',\n\tconfirmButtonText = '',\n\tcontent = '',\n\tid = '',\n\tmaskBlur = true,\n\tmaskClasses = '',\n\tmaskTheme = 'none',\n\tmode = '',\n\tposition = 'fixed',\n\ttitle = '',\n\ttitleIcon = '',\n\ttitleIconColor = '',\n\twrapperClasses = '',\n\tzIndex = 10,\n} ) =>\n\t`\n\t<div class=\"${ maskClasses } gform-dialog__mask--position-${ position } gform-dialog__mask--theme-${ maskTheme }${ maskBlur ? ` gform-dialog__mask--blur` : '' }\" data-js=\"gform-dialog-mask\" style=\"z-index: ${ zIndex };\">\n\t\t<article \n\t\t\tid=\"${ id }\" \n\t\t\tclass=\"${ wrapperClasses }\"\n\t\t\tdata-js=\"${ id }\"\n\t\t>\n\t\t\t<button \n\t\t\t\tclass=\"${ closeButtonClasses } gform-button gform-button--secondary gform-button--circular gform-button--size-xs\"\n\t\t\t\tdata-js=\"gform-dialog-close\"\n\t\t\t\tstyle=\"z-index: ${ zIndex + 1 };\"\n\t\t\t\ttitle=\"${ closeButtonTitle }\"\n\t\t\t>\n\t\t\t\t<span class=\"gform-button__icon gform-icon gform-icon--delete\"></span>\n\t\t\t</button>\n\t\t\t${ title ? '<header class=\"gform-dialog__head\" data-js=\"gform-dialog-header\">' : '' }\n\t\t\t${ title ? `<h5 class=\"gform-dialog__title${ titleIcon ? ` gform-dialog__title--has-icon` : '' }\">${ titleIcon ? `<span class=\"gform-dialog__title-icon gform-icon gform-icon--${ titleIcon }\"${ titleIconColor ? ` style=\"color: ${ titleIconColor };\"` : '' }></span>` : '' }${ title }</h5>` : '' }\n\t\t\t${ title ? '</header>' : '' }\n\t\t\t<div class=\"gform-dialog__content\" data-js=\"gform-dialog-content\">${ content }</div>\n\t\t\t${ ( mode === 'dialog' || mode === 'alert' ) ? '<footer class=\"gform-dialog__footer\" data-js=\"gform-dialog-footer\">' : '' }\n\t\t\t${ mode === 'dialog' ? `\n\t\t\t\t<button\n\t\t\t\t\tclass=\"gform-dialog__cancel gform-button gform-button--white\"\n\t\t\t\t\tdata-js=\"gform-dialog-cancel\"\n\t\t\t\t>\n\t\t\t\t\t${ cancelButtonText }\n\t\t\t\t</button>\n\t\t\t\t<button\n\t\t\t\t\tid=\"${ id }-dialog-confirm-button\"\n\t\t\t\t\tclass=\"gform-dialog__confirm gform-button gform-button--primary${ confirmButtonIcon ? ` gform-button--icon-leading` : '' }\"\n\t\t\t\t\tdata-js=\"gform-dialog-confirm\"\n\t\t\t\t\t${ confirmButtonAttributes }\n\t\t\t\t>\n\t\t\t\t\t${ confirmButtonIcon ? `<span class=\"gform-button__icon gform-icon gform-icon--${ confirmButtonIcon }\"></span>` : '' }${ confirmButtonText }\n\t\t\t\t</button>\n\t\t\t` : '' }\n\t\t\t${ mode === 'alert' ? `\n\t\t\t\t<button\n\t\t\t\t\tclass=\"gform-dialog__alert gform-button gform-button--primary\"\n\t\t\t\t\tdata-js=\"gform-dialog-alert\"\n\t\t\t\t>\n\t\t\t\t\t${ alertButtonText }\n\t\t\t\t</button>\n\t\t\t` : '' }\n\t\t\t${ ( mode === 'dialog' || mode === 'alert' ) ? '</footer>' : '' }\n\t\t</article>\n\t</div>\n\t`;\n\n/**\n * @class Dialog\n * @description A dialog component to house modals, dialogs or prompts.\n *\n * @since 1.0.6\n *\n * @borrows dialogTemplate as dialogTemplate\n *\n * @param {object}   options                         The options for the dialog.\n * @param {string}   options.alertButtonText         The text for the alert button.\n * @param {string}   options.cancelButtonText        The text for the cancel button.\n * @param {string}   options.closeButtonClasses      The classes for the close button. Space seperated string.\n * @param {string}   options.closeButtonTitle        The title for the close button.\n * @param {string}   options.confirmButtonAttributes The attributes for the confirm button. Space seperated string.\n * @param {string}   options.confirmButtonIcon       The icon for the confirm button.\n * @param {string}   options.confirmButtonText       The text for the confirm button.\n * @param {string}   options.content                 The content for the dialog. HTML allowed.\n * @param {string}   options.id                      The id for the dialog.\n * @param {boolean}  options.lockBody                Whether to lock the body behind the dialog\n * @param {boolean}  options.maskBlur                Whether to blur the background when the dialog is open.\n * @param {string}   options.maskClasses             The classes for the mask. Space seperated string.\n * @param {boolean}  options.maskTheme               Background mask theme, `none`, `light` or `dark`.\n * @param {string}   options.mode                    The mode for the dialog. `alert`, `confirm` or `dialog`.\n * @param {function} options.onClose                 Function to fire when closed\n * @param {function} options.onConfirm               Function to fire when confirm button is clicked in dialog mode\n * @param {function} options.onOpen                  Function to fire when opened\n * @param {string}   options.position                The position for the dialog. `center`, `top` or `bottom`.\n * @param {boolean}  options.renderOnInit            Render on initialization?\n * @param {string}   options.target                  Append target for the dialog and its mask. Uses querySelectorAll\n * @param {string}   options.title                   The title for the dialog.\n * @param {string}   options.titleIcon               The icon for the title.\n * @param {string}   options.titleIconColor          The color for the title icon.\n * @param {string}   options.triggers                The optional selector[s] of the trigger that shows it\n * @param {string}   options.wrapperClasses          The classes for the wrapper. Space seperated string.\n * @param {number}   options.zIndex                  The z-index for the dialog.\n *\n * @return {Class} The class instance.\n * @example\n * import Dialog from '@gravityforms/components/html/admin/modules/Dialog';\n *\n * function Example() {\n *      const dialogInstance = new Dialog( {\n *          id: 'example-dialog',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      dialogInstance.init();\n * }\n *\n */\nexport default class Dialog {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\talertButtonText: '', // text for the ok button if in alert mode\n\t\t\t\tanimationDelay: 250, // animationDelay for the dialog\n\t\t\t\tcancelButtonText: '', // text for the cancel button if in dialog mode\n\t\t\t\tcloseButtonClasses: 'gform-dialog__close', // classes for the close button\n\t\t\t\tcloseButtonTitle: '', // text for the close button title\n\t\t\t\tcloseOnMaskClick: true, // does clicking the mask close the dialog?\n\t\t\t\tcloseOnConfirmClick: true, // does clicking the confirm button close the dialog?\n\t\t\t\tconfirmButtonAttributes: '', // arbitrary additional attributes for the confirm button.\n\t\t\t\tconfirmButtonIcon: '', // if in dialog mode, the optional confirmation button icon before the button text\n\t\t\t\tconfirmButtonText: '', // the text for teh confirmation button if in dialog mode\n\t\t\t\tid: uniqueId( 'dialog' ), // id for the dialog\n\t\t\t\tlockBody: false, // whether to lock the body behind the dialog\n\t\t\t\tmaskBlur: true, // whether the background mask has a blur effect or not\n\t\t\t\tmaskClasses: 'gform-dialog__mask', // classes for the mask\n\t\t\t\tmaskTheme: 'light', // background mask theme, none, light or dark\n\t\t\t\tmode: '', // mode for the dialog: can be modal, alert or dialog\n\t\t\t\tonClose: () => {}, // function to fire when closed\n\t\t\t\tonConfirm: () => {}, // function to fire when confirm button is clicked in dialog mode\n\t\t\t\tonOpen: () => {}, // function to fire when opened\n\t\t\t\tposition: 'fixed', // fixed or absolute position?\n\t\t\t\trenderOnInit: true, // render on initialization?\n\t\t\t\ttarget: 'body', // append target for the dialog and its mask. Uses querySelectorAll\n\t\t\t\ttitle: '', // the optional title for the dialog\n\t\t\t\ttitleIcon: '', // the optional title icon for the dialog\n\t\t\t\ttitleIconColor: '', // the optional title icon color for the dialog\n\t\t\t\ttriggers: '', // the optional selector[s] of the trigger that shows it\n\t\t\t\twrapperClasses: 'gform-dialog', // classes for the wrapper\n\t\t\t\tzIndex: 10, // z-index for the dialog\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/dialog/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/dialog/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.elements = {};\n\t\tthis.state = {\n\t\t\topen: false,\n\t\t};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Dialog\n\t * @description Opens the dialog and fires the onOpen function that can be passed in.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @return {void}\n\t */\n\tshowDialog() {\n\t\tconst { mask } = this.elements;\n\t\tif ( this.options.lockBody ) {\n\t\t\tbodyLock.lock();\n\t\t}\n\t\tthis.options.onOpen();\n\t\tmask.classList.add( 'gform-dialog--anim-in-ready' );\n\t\twindow.setTimeout( () => {\n\t\t\tmask.classList.add( 'gform-dialog--anim-in-active' );\n\t\t}, 25 );\n\t\tthis.elements.closeButton.focus();\n\t\tthis.state.open = true;\n\t}\n\n\t/**\n\t * @memberof Dialog\n\t * @description Closes the dialog and fires the onClose function that can be passed in. Can be used by external\n\t * developers by firing the method on the instance. Also closes all instances if the event 'gform/dialog/close-all' is\n\t * fired on the document.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @return {void}\n\t */\n\tcloseDialog = () => {\n\t\tconst { mask } = this.elements;\n\t\tconst { animationDelay, onClose } = this.options;\n\t\tif ( ! mask.classList.contains( 'gform-dialog--anim-in-active' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tmask.classList.remove( 'gform-dialog--anim-in-active' );\n\n\t\twindow.setTimeout( () => {\n\t\t\tmask.classList.remove( 'gform-dialog--anim-in-ready' );\n\t\t}, animationDelay );\n\n\t\tthis.state.open = false;\n\t\tif ( this.elements.activeTrigger ) {\n\t\t\tthis.elements.activeTrigger.focus();\n\t\t}\n\t\tif ( this.options.lockBody ) {\n\t\t\tbodyLock.unlock();\n\t\t}\n\t\tonClose();\n\t};\n\n\t/**\n\t * @memberof Dialog\n\t * @description Closes all instances except the one that gets passed the activeId when the event 'gform/dialog/close' is\n\t * fired on the document.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @return {void}\n\t */\n\tmaybeCloseDialog = ( e ) => {\n\t\tif ( e.detail?.activeId === this.options.id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.closeDialog();\n\t};\n\n\t/**\n\t * @memberof Dialog\n\t * @description Handles accessibility focus looping on the dialog using the focusLoop util.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @param {PointerEvent} e The event object.\n\t *\n\t * @return {void}\n\t */\n\thandleKeyEvents = ( e ) =>\n\t\tfocusLoop(\n\t\t\te,\n\t\t\tthis.elements.activeTrigger,\n\t\t\tthis.elements.dialog,\n\t\t\tthis.closeDialog\n\t\t);\n\n\t/**\n\t * @memberof Dialog\n\t * @description Handles opening/closing the dialog on a trigger click.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @param {PointerEvent} e The event object.\n\t *\n\t * @return {void}\n\t */\n\thandleTriggerClick = ( e ) => {\n\t\tthis.elements.activeTrigger = e.target;\n\t\tif ( this.state.open ) {\n\t\t\tthis.closeDialog();\n\t\t} else {\n\t\t\tthis.showDialog();\n\t\t}\n\t};\n\n\t/**\n\t * @memberof Dialog\n\t * @description Handles closing the dialog on mask click.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @param {PointerEvent} e The event object.\n\t *\n\t * @return {void}\n\t */\n\thandleMaskClick = ( e ) => {\n\t\tif ( e.target.id === this.options.id || getClosest( e.target, `[data-js=\"${ this.options.id }\"]` ) ) {\n\t\t\treturn;\n\t\t}\n\t\tthis.closeDialog();\n\t};\n\n\t/**\n\t * @memberof Dialog\n\t * @description Handles a confirm button click and closes if the option is true.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @param {PointerEvent} e The event object.\n\t *\n\t * @return {void}\n\t */\n\thandleConfirm = ( e ) => {\n\t\tconst { onConfirm } = this.options;\n\t\ttrigger( { event: 'gform/dialog/confirm', native: false, data: { instance: this, button: e.target } } );\n\n\t\tif ( this.options.closeOnConfirmClick ) {\n\t\t\tthis.closeDialog();\n\t\t}\n\n\t\tonConfirm();\n\t};\n\n\t/**\n\t * @memberof Dialog\n\t * @description Stores useful HTMLElements on the instance in the elements namespace after render\n\t *\n\t * @since 1.0.6\n\t *\n\t * @return {void}\n\t */\n\tstoreElements() {\n\t\tconst dialog = getNodes( this.options.id )[ 0 ];\n\t\tthis.elements = {\n\t\t\tactiveTrigger: null,\n\t\t\talertButton: getNodes( 'gform-dialog-alert', false, dialog )[ 0 ],\n\t\t\tcontent: getNodes( 'gform-dialog-content', false, dialog )[ 0 ],\n\t\t\tcancelButton: getNodes( 'gform-dialog-cancel', false, dialog )[ 0 ],\n\t\t\tcloseButton: getNodes( 'gform-dialog-close', false, dialog )[ 0 ],\n\t\t\tconfirmButton: getNodes( 'gform-dialog-confirm', false, dialog )[ 0 ],\n\t\t\tdialog,\n\t\t\tfooter: getNodes( 'gform-dialog-footer', false, dialog )[ 0 ],\n\t\t\theader: getNodes( 'gform-dialog-header', false, dialog )[ 0 ],\n\t\t\tmask: dialog.parentNode,\n\t\t\ttriggers: this.options.triggers ? getNodes( this.options.triggers, true, document, true ) : [],\n\t\t};\n\t}\n\n\t/**\n\t * @memberof Dialog\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst { target } = this.options;\n\t\tconst renderTarget = getNodes( target, false, document, true )[ 0 ];\n\n\t\trenderTarget.insertAdjacentHTML(\n\t\t\t'beforeend',\n\t\t\tdialogTemplate( this.options )\n\t\t);\n\t}\n\n\t/**\n\t * @memberof Dialog\n\t * @description Binds the events for this component.\n\t *\n\t * @since 1.0.6\n\t *\n\t * @return {void}\n\t */\n\tbindEvents() {\n\t\tthis.elements.dialog.addEventListener( 'keydown', this.handleKeyEvents );\n\t\tthis.elements.closeButton.addEventListener( 'click', this.closeDialog );\n\n\t\tif ( this.options.triggers ) {\n\t\t\tgetNodes( this.options.triggers, true, document, true )\n\t\t\t\t.forEach( ( t ) => t.addEventListener( 'click', this.handleTriggerClick ) );\n\t\t}\n\n\t\tif ( this.options.closeOnMaskClick ) {\n\t\t\tthis.elements.mask.addEventListener( 'click', this.handleMaskClick );\n\t\t}\n\n\t\tif ( this.elements.alertButton ) {\n\t\t\tthis.elements.alertButton.addEventListener( 'click', this.closeDialog );\n\t\t}\n\n\t\tif ( this.elements.cancelButton ) {\n\t\t\tthis.elements.cancelButton.addEventListener( 'click', this.closeDialog );\n\t\t}\n\n\t\tif ( this.elements.confirmButton ) {\n\t\t\tthis.elements.confirmButton.addEventListener( 'click', this.handleConfirm );\n\t\t}\n\n\t\tdocument.addEventListener( 'gform/dialog/close', this.maybeCloseFlyout );\n\t\tdocument.addEventListener( 'gform/dialog/close-all', this.closeFlyout );\n\t}\n\n\t/**\n\t * @memberof Dialog\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/dialog/post_render\n\t *\n\t * @since 1.1.16\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\t\tthis.storeElements();\n\t\tthis.bindEvents();\n\n\t\t/**\n\t\t * @event gform/dialog/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.0.6\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/dialog/post_render', native: false, data: { instance: this } } );\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized dialog component.` );\n\t}\n}\n","import {\n\tconsoleError,\n\tconsoleInfo,\n\tdelay,\n\tfocusLoop,\n\tgetClosest,\n\tgetNodes,\n\tresize,\n\tsimpleBar,\n\ttrigger,\n\tuniqueId,\n\tviewport,\n} from '@gravityforms/utils';\n\n/**\n * @function flyoutTemplate\n * @description The template function that returns html for the flyout. Options below are passed from constructor and\n * described there.\n *\n * @since 1.0.5\n *\n * @param {Object}  options                    The options for the flyout.\n * @param {String}  options.closeButtonClasses The classes for the close button.\n * @param {String}  options.closeButtonTitle   The title for the close button.\n * @param {String}  options.content            The content for the flyout.\n * @param {String}  options.description        The description for the flyout. Found under the title in the header.\n * @param {Number}  options.desktopWidth       The flyout desktop width in percentage.\n * @param {String}  options.direction          Direction to fly in from, left or right.\n * @param {Boolean} options.expandable         Whether the flyout shows an extra trigger to allow expanding to a larger width.\n * @param {String}  options.expandableTitle    The title for the expandable trigger.\n * @param {String}  options.id                 The id for the flyout.\n * @param {Number}  options.maxWidth           The flyout max width in pixels.\n * @param {Number}  options.mobileBreakpoint   The breakpoint for mobile in pixels.\n * @param {Number}  options.mobileWidth        The flyout mobile width in percentage.\n * @param {String}  options.position           The position of the flyout, fixed or absolute positioning\n * @param {Boolean} options.showDivider        Whether to show the divider between the header and content.\n * @param {Boolean} options.simplebar          Whether to use simplebar for the content.\n * @param {String}  options.title              The title for the flyout.\n * @param {String}  options.wrapperClasses     The classes for the wrapper.\n * @param {Number}  options.zIndex             The z-index for the flyout.\n *\n * @returns {String}\n * @example\n * import { flyoutTemplate } from '@gravityforms/components/html/admin/modules/Flyout';\n *\n * function Example() {\n *      const flyoutTemplateHTML = flyoutTemplateTemplate( options );\n *      document.body.insertAdjacentHTML( 'beforeend', flyoutTemplateHTML );\n * }\n *\n */\nexport const flyoutTemplate = ( {\n\tid = '',\n\tcloseButtonClasses = '',\n\tcloseButtonTitle = '',\n\tcontent = '',\n\tdescription = '',\n\tdesktopWidth = 0,\n\tdirection = '',\n\texpandable = false,\n\texpandableTitle = '',\n\tmaxWidth = 0,\n\tmobileBreakpoint = 0,\n\tmobileWidth = 0,\n\tposition = '',\n\tshowDivider = true,\n\tsimplebar = false,\n\ttitle = '',\n\twrapperClasses = '',\n\tzIndex = 10,\n} ) =>\n\t`\n\t<article \n\t\tid=\"${ id }\" \n\t\tclass=\"${ wrapperClasses } gform-flyout--${ direction } gform-flyout--${ position } ${ showDivider ? 'gform-flyout--divider' : 'gform-flyout--no-divider' }${ description ? '' : ' gform-flyout--no-description' }\"\n\t\tstyle=\"z-index: ${ zIndex };\"\n\t\tdata-js=\"${ id }\"\n\t>\n\t\t<button \n\t\t\tclass=\"${ closeButtonClasses } gform-button gform-button--secondary gform-button--circular gform-button--size-xs\"\n\t\t\tdata-js=\"gform-flyout-close\" \n\t\t\ttitle=\"${ closeButtonTitle }\"\n\t\t>\n\t\t\t<i class=\"gform-button__icon gform-icon gform-icon--delete\"></i>\n\t\t</button>\n\t\t${ expandable ? `\n\t\t<button \n\t\t\tclass=\"gform-flyout__expand\"\n\t\t\tstyle=\"z-index: ${ zIndex + 2 };\"\n\t\t\tdata-js=\"gform-flyout-expand\" \n\t\t\ttitle=\"${ expandableTitle }\"\n\t\t>\n\t\t\t<span class=\"gform-flyout__expand-icon gform-icon gform-icon--chevron\"></span>\n\t\t</button>\n\t\t<div class=\"gform-flyout__expand-rail\" style=\"z-index: ${ zIndex + 1 };\"></div>\n\t\t` : `` }\n\t\t${ title || description ? '<header class=\"gform-flyout__head\">' : '' }\n\t\t${ title ? `<h5 class=\"gform-flyout__title\">${ title }</h5>` : '' }\n\t\t${ description ? `<div class=\"gform-flyout__desc\"><p>${ description }</p></div>` : '' }\n\t\t${ title || description ? '</header>' : '' }\n\t\t<div class=\"gform-flyout__body\"${ simplebar ? ' data-simplebar' : '' }><div class=\"gform-flyout__body-inner\" data-js=\"flyout-content\">${ content }</div></div>\n\t</article>\n\t<style>\n\t\t#${ id } { \n\t\t\tmax-width: ${ maxWidth ? `${ maxWidth }px` : 'none' };\n\t\t\twidth: ${ mobileWidth }%; \n\t\t}\n\t\t#${ id }.gform-flyout--expanded {\n\t\t\twidth: ${ expandable ? `calc( ${ mobileWidth }% - 50px)` : `${ mobileWidth }%` };\n\t\t}\n\t\t@media only screen and (min-width: ${ mobileBreakpoint }px) {\n\t\t\t#${ id } { \n\t\t\t\twidth: ${ desktopWidth }%; \n\t\t\t}\n\t\t}\n\t</style>\n\t`;\n\n/**\n * @class Flyout\n * @description Embeds an html flyout component to house off canvas content that overlays a container pain from either the\n * right or the left.\n *\n * @since 1.0.5\n *\n * @borrows flyoutTemplate as flyoutTemplate\n *\n * @param {object}   options                     The options for the flyout.\n * @param {number}   options.animationDelay      Total runtime of close animation. must be synced with css.\n * @param {string}   options.closeButtonClasses  Classes for the close button.\n * @param {string}   options.closeButtonTitle    Text for the close button title.\n * @param {boolean}  options.closeOnOutsideClick Close the flyout on a click outside of it?\n * @param {string}   options.content             The html content.\n * @param {boolean}  options.expandable          Whether the flyout shows an extra trigger to allow expanding to a larger width (set below).\n * @param {string}   options.expandableTitle     Title/a11y text for the expandable button.\n * @param {number}   options.expandableWidth     Width to expand to if expandable is true.\n * @param {string}   options.description         The optional description for the flyout.\n * @param {number}   options.desktopWidth        Desktop width in percent.\n * @param {string}   options.direction           Direction to fly in from, left or right.\n * @param {string}   options.id                  Id for the flyout.\n * @param {string}   options.insertPosition      Insert position relative to target.\n * @param {boolean}  options.lockBody            Whether to lock body scroll when open.\n * @param {number}   options.maxWidth            Max width in pixels.\n * @param {number}   options.mobileBreakpoint    Mobile breakpoint.\n * @param {number}   options.mobileWidth         Mobile width in percent.\n * @param {function} options.onClose             Function to fire when closed.\n * @param {function} options.onOpen              Function to fire when opened.\n * @param {string}   options.position            Fixed or absolute positioning.\n * @param {boolean}  options.renderOnInit        Render on initialization?\n * @param {boolean}  options.showDivider         Show the divider below optional title?\n * @param {boolean}  options.simplebar           Enable the simple bar ui for the body content scroll?\n * @param {string}   options.target              The selector to append the flyout to.\n * @param {string}   options.title               The optional title for the flyout.\n * @param {string}   options.triggers            The selector[s] of the trigger that shows it.\n * @param {string}   options.wrapperClasses      Additional classes for the wrapper.\n * @param {number}   options.zIndex              Z-index for the flyout.\n *\n * @return {Class} The class instance.\n * @example\n * import Flyout from '@gravityforms/components/html/admin/modules/Flyout';\n *\n * function Example() {\n *      const flyoutInstance = new Flyout( {\n *          id: 'example-flyout',\n *          renderOnInit: false,\n *          target: '#example-target',\n *          targetPosition: 'beforeend',\n *          theme: 'cosmos',\n *      } );\n *\n *      // Some time later we can render it. This is only done if we set renderOnInit to false.\n *      // If true it will render on initialization.\n *      flyoutInstance.init();\n * }\n *\n */\nexport default class Flyout {\n\tconstructor( options = {} ) {\n\t\tthis.options = {};\n\t\tObject.assign(\n\t\t\tthis.options,\n\t\t\t{\n\t\t\t\tanimationDelay: 170, // total runtime of close animation. must be synced with css\n\t\t\t\tcloseButtonClasses: 'gform-flyout__close', // classes for the close button\n\t\t\t\tcloseButtonTitle: '', // text for the close button title\n\t\t\t\tcloseOnOutsideClick: true, // close the flyout on a click outside of it?\n\t\t\t\tcontent: '', // the html content\n\t\t\t\texpandable: false, // whether the flyout shows an extra trigger to allow expanding to a larger width (set below)\n\t\t\t\texpandableTitle: '', // title/a11y text for the expandable button\n\t\t\t\texpandableWidth: 100, // width to expand to if expandable is true\n\t\t\t\tdescription: '', // the optional description for the flyout\n\t\t\t\tdesktopWidth: 60, // desktop width in percent\n\t\t\t\tdirection: 'right', // direction to fly in from, left or right\n\t\t\t\tid: uniqueId( 'flyout' ), // id for the flyout\n\t\t\t\tinsertPosition: 'beforeend', // insert position relative to target\n\t\t\t\tlockBody: false, // whether to lock body scroll when open\n\t\t\t\tmaxWidth: 850, // max width in pixels\n\t\t\t\tmobileBreakpoint: 768, // mobile breakpoint\n\t\t\t\tmobileWidth: 100, // mobile width in percent\n\t\t\t\tonClose: () => {}, // function to fire when closed\n\t\t\t\tonOpen: () => {}, // function to fire when opened\n\t\t\t\tposition: 'fixed', // fixed or absolute positioning\n\t\t\t\trenderOnInit: true, // render on initialization?\n\t\t\t\tshowDivider: true, // show the divider below optional title?\n\t\t\t\tsimplebar: false, // enable the simple bar ui for the body content scroll?\n\t\t\t\ttarget: 'body', // the selector to append the flyout to\n\t\t\t\ttitle: '', // the optional title for the flyout\n\t\t\t\ttriggers: '[data-js=\"gform-trigger-flyout\"]', // the selector[s] of the trigger that shows it\n\t\t\t\twrapperClasses: 'gform-flyout', // additional classes for the wrapper\n\t\t\t\tzIndex: 10, // z-index for the flyout\n\t\t\t},\n\t\t\toptions\n\t\t);\n\n\t\t/**\n\t\t * @event gform/flyout/pre_init\n\t\t * @type {object}\n\t\t * @description Fired before the component has started any internal init functions. A great chance to augment the options.\n\t\t *\n\t\t * @since 1.1.16\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/flyout/pre_init', native: false, data: { instance: this } } );\n\n\t\tthis.elements = {};\n\t\tthis.state = {\n\t\t\texpanded: false,\n\t\t\topen: false,\n\t\t\tunExpandedWidth: 0,\n\t\t};\n\n\t\tif ( this.options.renderOnInit ) {\n\t\t\tthis.init();\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Opens the flyout and fires the onOpen function that can be passed in.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tshowFlyout() {\n\t\tconst { flyout } = this.elements;\n\t\tthis.options.onOpen();\n\t\tsimpleBar.reInitChildren( flyout );\n\t\tflyout.classList.add( 'gform-flyout--anim-in-ready' );\n\t\twindow.setTimeout( () => {\n\t\t\tflyout.classList.add( 'gform-flyout--anim-in-active' );\n\t\t}, 25 );\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Closes the flyout and fires the onClose function that can be passed in. Can be used by external\n\t * developers by firing the method on the instance. Also closes all instances if the event 'gform/flyout/close-all' is\n\t * fired on the document.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tcloseFlyout = () => {\n\t\tconst { flyout } = this.elements;\n\t\tconst { animationDelay, onClose } = this.options;\n\t\tif ( ! flyout.classList.contains( 'gform-flyout--anim-in-active' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tflyout.classList.remove( 'gform-flyout--anim-in-active' );\n\n\t\twindow.setTimeout( () => {\n\t\t\tflyout.classList.remove( 'gform-flyout--anim-in-ready' );\n\t\t}, animationDelay );\n\n\t\tthis.state.open = false;\n\t\tthis.shrinkFlyout();\n\t\tonClose();\n\t};\n\n\t/**\n\t * @memberof Flyout\n\t * @description Closes all instances except the one that gets passed the activeId when the event 'gform/flyout/close' is\n\t * fired on the document.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tmaybeCloseFlyout = ( e ) => {\n\t\tif ( e.detail?.activeId === this.options.id ) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.elements.flyout.classList.remove( 'anim-in-ready' );\n\t\tthis.elements.flyout.classList.remove( 'anim-in-active' );\n\t\tthis.elements.flyout.classList.remove( 'anim-out-ready' );\n\t\tthis.elements.flyout.classList.remove( 'anim-out-active' );\n\t\tthis.state.open = false;\n\t\tthis.shrinkFlyout();\n\t};\n\n\t/**\n\t * @memberof Flyout\n\t * @description Hides the expander button if the flyout fills its available space.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tupdateFlyoutWidth() {\n\t\tconst { animationDelay, expandable } = this.options;\n\t\tif ( ! expandable || this.state.expanded ) {\n\t\t\treturn;\n\t\t}\n\t\tconst { flyout, expandableTrigger } = this.elements;\n\t\t// if resizeParent is set it means we are not position fixed, and hence use parent width, otherwise use viewport\n\t\tconst containerWidth = this.elements.resizeParent ? this.elements.resizeParent.clientWidth : viewport.width();\n\t\tconst flyoutWidth = flyout.clientWidth;\n\n\t\t// include the width of the rail (buffer, 50px) outside of the flyout to determine if we need to show/hide\n\t\tif ( containerWidth <= flyoutWidth + 50 ) {\n\t\t\tflyout.classList.add( 'gform-flyout--hide-expander' );\n\t\t\twindow.setTimeout( () => {\n\t\t\t\t// set display none so focus is ignored on keyboard nav after animations run\n\t\t\t\texpandableTrigger.style.display = 'none';\n\t\t\t}, animationDelay );\n\t\t} else {\n\t\t\texpandableTrigger.style.display = '';\n\t\t\twindow.setTimeout( () => {\n\t\t\t\tflyout.classList.remove( 'gform-flyout--hide-expander' );\n\t\t\t}, 20 );\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Handles accessibility focus looping on the flyout using the focusLoop util.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @param {KeyboardEvent} e The event object.\n\t *\n\t * @return {void}\n\t */\n\thandleKeyEvents = ( e ) =>\n\t\tfocusLoop(\n\t\t\te,\n\t\t\tthis.elements.activeTrigger,\n\t\t\tthis.elements.flyout,\n\t\t\tthis.closeFlyout\n\t\t);\n\n\t/**\n\t * @memberof Flyout\n\t * @description Handles opening/closing the flyout on a trigger click.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @param {PointerEvent} e The event object.\n\t *\n\t * @return {void}\n\t */\n\thandleTriggerClick = ( e ) => {\n\t\tthis.elements.activeTrigger = e.target;\n\t\tif ( this.state.open ) {\n\t\t\tthis.closeFlyout();\n\t\t\tthis.elements.activeTrigger.focus();\n\t\t\tthis.state.open = false;\n\t\t} else {\n\t\t\tthis.showFlyout();\n\t\t\tthis.elements.closeButton.focus();\n\t\t\tthis.state.open = true;\n\t\t}\n\t};\n\n\t/**\n\t * @memberof Flyout\n\t * @description Expands the flyout to the defined expandableWidth while removing the max-width setting.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\texpandFlyout() {\n\t\tconst { expandableWidth, expandable } = this.options;\n\t\tif ( ! expandable || this.state.expanded ) {\n\t\t\treturn;\n\t\t}\n\t\tconst { flyout } = this.elements;\n\t\tthis.state.unExpandedWidth = flyout.clientWidth;\n\t\tflyout.style.width = `${ this.state.unExpandedWidth }px`;\n\t\tflyout.style.transition = 'none';\n\n\t\tdelay( () => {\n\t\t\tflyout.style.maxWidth = 'none';\n\t\t}, 20 ).delay( () => {\n\t\t\tflyout.style.transition = '';\n\t\t}, 20 ).delay( () => {\n\t\t\tflyout.style.width = `calc(${ expandableWidth }% - 50px)`;\n\t\t\tflyout.classList.add( 'gform-flyout--expanded' );\n\t\t\tthis.state.expanded = true;\n\t\t}, 20 );\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Returns the flyout to its natural width. The complexity comes from handling a mix of max-width\n\t * (which doesnt animate) and % widths for responsive.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tshrinkFlyout() {\n\t\tconst { animationDelay, expandable } = this.options;\n\t\tif ( ! expandable || ! this.state.expanded ) {\n\t\t\treturn;\n\t\t}\n\t\tconst { flyout } = this.elements;\n\t\tflyout.style.width = `${ this.state.unExpandedWidth }px`;\n\t\tflyout.classList.remove( 'gform-flyout--expanded' );\n\t\twindow.setTimeout( () => {\n\t\t\tflyout.style.width = '';\n\t\t\tflyout.style.maxWidth = '';\n\t\t}, animationDelay );\n\t\tthis.state.expanded = false;\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Handles expanding the flyout on a trigger click if the option is enabled.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\thandleExpandable = () => {\n\t\tif ( this.state.expanded ) {\n\t\t\tthis.shrinkFlyout();\n\t\t} else {\n\t\t\tthis.expandFlyout();\n\t\t}\n\t};\n\n\t/**\n\t * @memberof Flyout\n\t * @description Handle window resize events for the flyout\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\thandleResize = () => {\n\t\tthis.updateFlyoutWidth();\n\t};\n\n\t/**\n\t * @memberof Flyout\n\t * @description Stores useful HTMLElements on the instance in the elements namespace after render.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tstoreElements() {\n\t\tconst flyout = getNodes( this.options.id )[ 0 ];\n\t\tthis.elements = {\n\t\t\tactiveTrigger: null,\n\t\t\tcontent: getNodes( 'flyout-content', false, flyout )[ 0 ],\n\t\t\tcloseButton: getNodes( 'gform-flyout-close', false, flyout )[ 0 ],\n\t\t\texpandableTrigger: this.options.expandable ? getNodes( 'gform-flyout-expand', false, flyout )[ 0 ] : null,\n\t\t\tflyout,\n\t\t\tresizeParent: this.options.position === 'fixed' ? null : flyout.parentNode,\n\t\t\ttriggers: getNodes( this.options.triggers, true, document, true ),\n\t\t};\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Renders the component into the dom.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\trender() {\n\t\tconst target = document.querySelectorAll( this.options.target )[ 0 ];\n\t\tif ( ! target ) {\n\t\t\tconsoleError( `Flyout could not render as ${ this.options.target } could not be found.` );\n\t\t\treturn;\n\t\t}\n\n\t\ttarget.insertAdjacentHTML(\n\t\t\tthis.options.insertPosition,\n\t\t\tflyoutTemplate( this.options )\n\t\t);\n\n\t\tconsoleInfo( `Gravity Forms Admin: Initialized flyout component on ${ this.options.target }.` );\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Bind events to the component.\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tbindEvents() {\n\t\tthis.elements.flyout.addEventListener( 'keydown', this.handleKeyEvents );\n\t\tthis.elements.closeButton.addEventListener( 'click', this.closeFlyout );\n\n\t\tgetNodes( this.options.triggers, true, document, true )\n\t\t\t.forEach( ( t ) => t.addEventListener( 'click', this.handleTriggerClick ) );\n\n\t\tresize( this.handleResize );\n\n\t\tdocument.addEventListener( 'gform/flyout/close', this.maybeCloseFlyout );\n\t\tdocument.addEventListener( 'gform/flyout/close-all', this.closeFlyout );\n\n\t\tif ( this.options.expandable ) {\n\t\t\tthis.elements.expandableTrigger.addEventListener( 'click', this.handleExpandable );\n\t\t}\n\n\t\tif ( this.options.closeOnOutsideClick ) {\n\t\t\tdocument.addEventListener( 'click', function( event ) {\n\t\t\t\tif ( this.elements.flyout.contains( event.target ) || ! this.state.open || getClosest( event.target, '#TB_window' ) ) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tthis.closeFlyout();\n\t\t\t}.bind( this ) );\n\t\t}\n\t}\n\n\t/**\n\t * @memberof Flyout\n\t * @description Initialize the component.\n\t *\n\t * @fires gform/flyout/post_render\n\t *\n\t * @since 1.0.5\n\t *\n\t * @return {void}\n\t */\n\tinit() {\n\t\tthis.render();\n\t\tthis.storeElements();\n\t\tthis.bindEvents();\n\t\tthis.updateFlyoutWidth();\n\n\t\t/**\n\t\t * @event gform/flyout/post_render\n\t\t * @type {object}\n\t\t * @description Fired when the component has completed rendering and all class init functions have completed.\n\t\t *\n\t\t * @since 1.0.5\n\t\t *\n\t\t * @property {object} instance The Component class instance.\n\t\t */\n\t\ttrigger( { event: 'gform/flyout/post_render', native: false, data: { instance: this } } );\n\t}\n}\n","var __WEBPACK_NAMESPACE_OBJECT__ = ajaxurl;","import baseUrl from 'ajaxUrl';\nimport request from '@gravityforms/request';\n\nimport { buttonTemplate as Button } from '../../elements/Button';\nimport Dialog from '../../modules/Dialog';\nimport Dropdown, { dropdownTemplate } from '../../elements/Dropdown';\nimport Flyout from '../../modules/Flyout';\nimport { inputTemplate } from '../../elements/Input';\nimport Loader from '../../elements/Loader';\nimport { statusIndicatorTemplate as StatusIndicator } from '../../elements/StatusIndicator';\n\nimport {\n\tconsoleInfo,\n\tconsoleError,\n\tclipboard,\n\tdeepMerge,\n\tdelegate,\n\tescapeHtml,\n\tisEmptyObject,\n\tisFormDirty,\n\tgetClosest,\n\tgetNodes,\n\tsaferHtml,\n\tsprintf,\n\ttrigger,\n\tvsprintf,\n} from '@gravityforms/utils';\n\nexport default class EmbedForm {\n\t/**\n\t * @param {Object} options\n\t */\n\tconstructor( options = {} ) {\n\t\tthis.options = deepMerge(\n\t\t\t{\n\t\t\t\tdata: {},\n\t\t\t\tendpoints: {},\n\t\t\t\tdialog: {\n\t\t\t\t\tcloseOnConfirmClick: false,\n\t\t\t\t\tcloseOnMaskClick: false,\n\t\t\t\t\tconfirmButtonIcon: 'floppy-disk',\n\t\t\t\t\tid: 'dialog-embed-form-unsaved-changes',\n\t\t\t\t\tmode: 'dialog',\n\t\t\t\t\ttitleIcon: 'circle-delete',\n\t\t\t\t\ttitleIconColor: '#DD301D',\n\t\t\t\t\twrapperClasses: 'gform-dialog gform-dialog--embed-form-unsaved',\n\t\t\t\t\tzIndex: 100000,\n\t\t\t\t},\n\t\t\t\tdialogLoader: {\n\t\t\t\t\tadditionalClasses: 'gform-dialog__confirm-loader',\n\t\t\t\t\tbackground: '#3e7da6',\n\t\t\t\t\tforeground: '#fff',\n\t\t\t\t\tmask: false,\n\t\t\t\t\tshowOnRender: false,\n\t\t\t\t\tsize: 1.5,\n\t\t\t\t},\n\t\t\t\tflyout: {\n\t\t\t\t\tcloseOnOutsideClick: false,\n\t\t\t\t\tmaxWidth: 540,\n\t\t\t\t\tmobileBreakpoint: 1200,\n\t\t\t\t\tposition: 'absolute',\n\t\t\t\t\tsimplebar: true,\n\t\t\t\t\ttarget: '[data-js=\"form-editor\"]',\n\t\t\t\t\ttriggers: '[data-js=\"embed-flyout-trigger\"]',\n\t\t\t\t\twrapperClasses: 'gform-flyout gform-flyout--embed-form',\n\t\t\t\t\tzIndex: 95,\n\t\t\t\t},\n\t\t\t\ti18n: {},\n\t\t\t\turls: {},\n\t\t\t},\n\t\t\toptions,\n\t\t);\n\n\t\ttrigger( { event: 'gform/embed_form/pre_init', native: false, data: { instance: this } } );\n\n\t\tif ( isEmptyObject( this.options.data ) || isEmptyObject( this.options.i18n ) ) {\n\t\t\tconsoleError( 'The embed form component requires data and language strings to instantiate.' );\n\t\t\treturn;\n\t\t}\n\n\t\tthis.instances = {};\n\t\tthis.elements = {};\n\t\tthis.properties = {\n\t\t\tpostTypes: this.options.data?.post_types || [],\n\t\t};\n\t\tthis.state = {\n\t\t\taddToActiveCPT: this.properties.postTypes?.[ 0 ] ? this.properties.postTypes[ 0 ].slug : '',\n\t\t\tcreateNewActiveCPT: this.properties.postTypes?.[ 0 ] ? this.properties.postTypes[ 0 ].slug : '',\n\t\t\tisMock: this.options.endpoints?.create_post_with_block?.action === 'mock_endpoint',\n\t\t\tredirectRequested: false,\n\t\t\tredirectType: '',\n\t\t};\n\n\t\tthis.init();\n\t}\n\n\t/**\n\t * @function redirectToEditor\n\t * @description Redirect to the edit screen for the passed post id and append the form id with gfAddBlock\n\t * query arg to trigger the insert dialog scoped to GF in Gutenberg.\n\t *\n\t * @param {Number} id The post id to redirect to\n\t * @param {Boolean} blockFilter Whether to filter the list\n\t */\n\tredirectToEditor( id = 0, blockFilter = true ) {\n\t\tconst url = `${ sprintf( this.options.urls.edit_post, id ) }${ blockFilter ? `&gfAddBlock=${ this.options.data.form_id }` : `` }`;\n\t\tif ( this.state.isMock ) {\n\t\t\tconsoleInfo( `Currently in mock state, if live would have redirected to: ${ url }` );\n\t\t\treturn url;\n\t\t}\n\t\twindow.location.href = url;\n\t}\n\n\t/**\n\t * @function getGroupHTML\n\t * @description Takes passed html and wraps it in a group that has spacing and a border at the top for\n\t * each section of the flyout\n\t *\n\t * @param {string} content Inner html to inject in the flyout group\n\t * @returns {string} HTML for the flyout group\n\t */\n\n\tgetGroupHTML( content ) {\n\t\treturn `<div class=\"gform-embed-form__flyout-group\" data-js=\"embed-flyout-group\">${ content }</div>`;\n\t}\n\n\t/**\n\t * @function getGroupTitle\n\t * @description Takes a passed string and wraps it in title html for a group int he flyout.\n\t *\n\t * @param {string} content The text for the title of the group\n\t * @returns {string} HTML for the title of the group\n\t */\n\n\tgetGroupTitle( content ) {\n\t\treturn saferHtml`<h6 class=\"gform-embed-form__group-title\">${ content }</h6>`;\n\t}\n\n\t/**\n\t * @function getGroupActionButton\n\t * @description Prints the button at the bottom of a group that is the action for that group, either\n\t * add to post/page, or create new page and insert.\n\t *\n\t * @param {string} label The button label\n\t * @param {string} attr The data js attribute for our event listeners in this class to bind to\n\t * @returns {string} HTML for the action button of the group\n\t */\n\n\tgetGroupActionButton( label = '', attr = '' ) {\n\t\treturn `<div class=\"gform-embed-form__flyout-group-footer\">${\n\t\t\tButton( {\n\t\t\t\tattributes: `data-js=\"${ attr }\"`,\n\t\t\t\tlabel: escapeHtml( label ),\n\t\t\t\ttype: 'white',\n\t\t\t} )\n\t\t}</div>`;\n\t}\n\n\t/**\n\t * @function getPostTypeSwitcher\n\t * @description The post type radio group that is found in both add to and create sections of the flyout.\n\t * Shows/hides the input/dropdown below it that is associated with it.\n\t *\n\t * @param {string} name Name attribute for the input\n\t * @param {string} id Id for the input\n\t * @param {string} label Label template for the input. Should include a %1$s, %2$s, %3$s for the sprintf to use to\n\t * apply screenreader text and visible label. %1$s and %2$s are opening and closing spans of hidden text for screenreaders,\n\t * %3$s is visible text. Eg will produce: <span class=\"gform-embed-form__visually-hidden\">Create New:</span> Post\n\t * @returns {string} HTML for the post switcher for the group\n\t */\n\n\tgetPostTypeSwitcher( name = '', id = '', label = '' ) {\n\t\treturn `<article class=\"gform-embed-form__post-type-switcher\">${\n\t\t\tthis.properties.postTypes.map( ( postType, i ) => {\n\t\t\t\tconst customAttributes = {\n\t\t\t\t\tname,\n\t\t\t\t\t'data-js': 'post-type-switcher',\n\t\t\t\t\t'data-type': postType.slug,\n\t\t\t\t};\n\t\t\t\tif ( i === 0 ) {\n\t\t\t\t\tcustomAttributes.checked = 'checked';\n\t\t\t\t}\n\t\t\t\treturn inputTemplate( {\n\t\t\t\t\tcustomAttributes,\n\t\t\t\t\tlabel: sprintf( label, `<span class=\"gform-embed-form__visually-hidden\">`, `</span>`, escapeHtml( postType.label ) ),\n\t\t\t\t\tid: saferHtml`${ id }${ postType.slug }`,\n\t\t\t\t\ttype: 'radio',\n\t\t\t\t\tvalue: saferHtml`${ postType.slug }`,\n\t\t\t\t} );\n\t\t\t} ).join( '' )\n\t\t}</article>`;\n\t}\n\n\t/**\n\t * @function getFormIdHtml\n\t * @description Uses status indicator component to print the form id in a highlighted form.\n\t *\n\t * @returns {string} HTML for the form id display indicator at top of the flyout content.\n\t */\n\n\tgetFormIdHtml() {\n\t\tconst formIdIndicator = StatusIndicator( {\n\t\t\thasDot: false,\n\t\t\tisStatic: true,\n\t\t\tlabel: saferHtml`${ vsprintf( this.options.i18n.id, [ this.options.data.form_id ] ) }`,\n\t\t\tpill: false,\n\t\t\tstatus: 'inactive',\n\t\t} );\n\n\t\treturn `<div class=\"gform-embed-form__form-id\"><p>${ formIdIndicator }</p></div>`;\n\t}\n\n\t/**\n\t * @function getDropdownOptions\n\t * @description Returns the options for getting the html for a dropdown for the insert to existing typeahead for each\n\t * post type.\n\t *\n\t * @param {object} postType The post type object containing slug and label\n\t * @returns {object} {{searchPlaceholder: (*|string), triggerAriaId: string, searchInputId: (*|string), searchAriaText: (*|string), triggerAriaText: (*|string), wrapperClasses: string, listData: *[], triggerId: string, hasSearch: boolean, selector: string, dropdownListAttributes: string, triggerPlaceholder: (*|string)}}\n\t */\n\n\tgetDropdownOptions( postType = {} ) {\n\t\tconst dropdownData = this.options.data?.items?.[ postType.slug ] || {};\n\t\treturn {\n\t\t\tattributes: `data-type=\"${ postType.slug }\"`,\n\t\t\tdropdownListAttributes: 'data-simplebar',\n\t\t\thasSearch: dropdownData.count > 5,\n\t\t\tlistData: dropdownData.entries || [],\n\t\t\tsearchAriaText: escapeHtml( vsprintf( this.options.i18n.add_search_aria_text, [ postType.slug ] ) ),\n\t\t\tsearchInputId: saferHtml`gform-form-switcher-search-add-to-form-${ postType.slug }`,\n\t\t\tsearchPlaceholder: escapeHtml( vsprintf( this.options.i18n.add_search_aria_text, [ postType.slug ] ) ),\n\t\t\tselector: `gform-dropdown-add-to-form-${ postType.slug }`,\n\t\t\ttriggerAriaId: `gform-form-switcher-label-add-to-form-${ postType.slug }`,\n\t\t\ttriggerAriaText: escapeHtml( this.options.i18n.add_trigger_aria_text ),\n\t\t\ttriggerId: `gform-form-switcher-control-add-to-form-${ postType.slug }`,\n\t\t\ttriggerPlaceholder: escapeHtml( vsprintf( this.options.i18n.add_dropdown_placeholder, [ postType.label ] ) ),\n\t\t\twrapperClasses: 'gform-dropdown gform-embed-form__dropdown',\n\t\t};\n\t}\n\n\t/**\n\t * @function getDropdownOptions\n\t * @description Returns the options for getting the html for a dropdown for the insert to existing typeahead for each\n\t * post type.\n\t *\n\t * @returns {string} HTML for the dropdown\n\t */\n\n\tgetAddToDropdowns() {\n\t\treturn this.properties.postTypes.map( ( postType, i ) => ( `\n\t\t\t\t<article \n\t\t\t\t\tclass=\"gform-embed-form__dropdown-wrapper${ i !== 0 ? ' gform-embed-form--hidden' : '' }\" \n\t\t\t\t\tdata-js=\"embed-flyout-post-type-action-container\" \n\t\t\t\t\tdata-type=\"${ escapeHtml( postType.slug ) }\"\n\t\t\t\t>\n\t\t\t\t\t${ dropdownTemplate( this.getDropdownOptions( postType ) ) }\n\t\t\t\t</article>\n\t\t` ) ).join( '' );\n\t}\n\n\t/**\n\t * @function getCreateNewInputs\n\t * @description Gets the html for all the passed post types for inputs that will take the title of a new post\n\t * to be created.\n\t *\n\t * @returns {string} HTML for the create new post inputs\n\t */\n\n\tgetCreateNewInputs() {\n\t\treturn this.properties.postTypes.map( ( postType, i ) => {\n\t\t\tconst inputOptions = {\n\t\t\t\tcustomAttributes: { 'data-js': 'create-new-post-input', 'data-type': postType.slug },\n\t\t\t\tplaceholder: escapeHtml( vsprintf( this.options.i18n.create_placeholder, [ postType.label ] ) ),\n\t\t\t\ttype: 'text',\n\t\t\t};\n\n\t\t\treturn `\n\t\t\t\t<article \n\t\t\t\t\tclass=\"gform-embed-form__create-input-wrapper${ i !== 0 ? ' gform-embed-form--hidden' : '' }\" \n\t\t\t\t\tdata-js=\"embed-flyout-post-type-action-container\" \n\t\t\t\t\tdata-type=\"${ escapeHtml( postType.slug ) }\"\n\t\t\t\t>\n\t\t\t\t\t${ inputTemplate( inputOptions ) }\n\t\t\t\t</article>\n\t\t`;\n\t\t} ).join( '' );\n\t}\n\n\t/**\n\t * @function getAddToExistingContentHtml\n\t * @description Compiles all the HTML for the add to existing content flyout group.\n\t *\n\t * @returns {string} HTML for add to existing content\n\t */\n\n\tgetAddToExistingContentHtml() {\n\t\tlet html = this.getGroupTitle( this.options.i18n.add_title );\n\t\thtml += this.getPostTypeSwitcher( 'add_post_type', 'embed-form-add-to-post-', this.options.i18n.add_post_type_choice_label );\n\t\thtml += this.getAddToDropdowns();\n\t\thtml += this.getGroupActionButton( this.options.i18n.add_button_label, 'embed-form-add-to-post-trigger' );\n\t\treturn this.getGroupHTML( html );\n\t}\n\n\t/**\n\t * @function getCreateNewContentHtml\n\t * @description Compiles all the HTML for the create new content flyout group.\n\t *\n\t * @returns {string} HTML for create new content\n\t */\n\n\tgetCreateNewContentHtml() {\n\t\tlet html = this.getGroupTitle( this.options.i18n.create_title );\n\t\thtml += this.getPostTypeSwitcher( 'create_new_in_post_type', 'embed-form-create-new-', this.options.i18n.create_post_type_choice_label );\n\t\thtml += this.getCreateNewInputs();\n\t\thtml += this.getGroupActionButton( this.options.i18n.create_button_label, 'embed-form-create-post-trigger' );\n\t\treturn this.getGroupHTML( html );\n\t}\n\n\t/**\n\t * @function getShortcodeTrigger\n\t * @description Creates the button and link test for the copy shortcode button at bottom of the embed flyout.\n\t *\n\t * @returns {string} HTML for shortcode trigger\n\t */\n\n\tgetShortcodeTrigger() {\n\t\tconst link = sprintf(\n\t\t\tescapeHtml( this.options.i18n.shortcode_helper ),\n\t\t\t`<a href=\"${ this.options.urls.shortcode_docs }\" rel=\"noopener\" target=\"_blank\">`,\n\t\t\t`</a>`\n\t\t);\n\t\tconst html = saferHtml`\n\t\t\t<span class=\"gform-embed-form__shortcode-copy-label\" data-js=\"shortcode-copy-label\" aria-hidden=\"false\">${ this.options.i18n.shortcode_button_label }</span>\n\t\t\t<span class=\"gform-embed-form__shortcode-copy-copied\" data-js=\"shortcode-copy-copied\" aria-hidden=\"true\">\n\t\t\t\t<i class=\"gform-embed-form__shortcode-copy-icon gform-icon gform-icon--circle-check-alt\"></i>\n\t\t\t\t${ this.options.i18n.shortcode_button_copied }\n\t\t\t</span>\n\t\t`;\n\t\treturn `<div class=\"gform-embed-form__shortcode-footer\" aria-live=\"assertive\">${\n\t\t\tButton( {\n\t\t\t\tattributes: `data-js=\"embed-form-shortcode-trigger\"`,\n\t\t\t\tcustomClasses: [ 'gform-embed-form__shortcode-trigger' ],\n\t\t\t\thtml,\n\t\t\t\ticon: 'copy',\n\t\t\t\tlabel: ``,\n\t\t\t\ttype: 'white',\n\t\t\t} )\n\t\t}<p class=\"gform-embed-form__shortcode-footer-helper\">${ link }</p></div>`;\n\t}\n\n\t/**\n\t * @function getShortcodeHtml\n\t * @description Compiles all the HTML for the copy shortcode flyout group.\n\t *\n\t * @returns {string} HTML for shortcode trigger\n\t */\n\n\tgetShortcodeHtml() {\n\t\tlet html = this.getGroupTitle( this.options.i18n.shortcode_title );\n\t\thtml += saferHtml`<article class=\"gform-embed-form__shortcode-description\"><p>${ this.options.i18n.shortcode_description }</p></article>`;\n\t\thtml += this.getShortcodeTrigger();\n\t\treturn this.getGroupHTML( html );\n\t}\n\n\t/**\n\t * @function generateFlyoutContent\n\t * @description Compiles all the HTML for the flyout body\n\t *\n\t * @returns {string} HTML for the flyout content arg\n\t */\n\n\tgenerateFlyoutContent() {\n\t\tlet html = this.getFormIdHtml();\n\t\thtml += this.getAddToExistingContentHtml();\n\t\thtml += this.getCreateNewContentHtml();\n\t\thtml += this.getShortcodeHtml();\n\t\treturn html;\n\t}\n\n\t/**\n\t * @function resetConfirmDialogState\n\t * @description Resets the dislaog state after a save event.\n\t *\n\t * @param e\n\t */\n\n\tresetConfirmDialogState( e ) {\n\t\tconst { elements: { cancelButton, closeButton, confirmButton } } = this.instances.dialog;\n\t\tcancelButton.disabled = false;\n\t\tcloseButton.disabled = false;\n\t\tconfirmButton.disabled = false;\n\t\tconfirmButton.style.width = ``;\n\t\tthis.instances.dialogLoader.hideLoader();\n\t\tconfirmButton.classList.remove( 'gform-dialog__confirm-button--saving' );\n\n\t\tif ( e && e.type === 'gform/form_editor_saver/post_save_error' ) {\n\t\t\tthis.state.redirectRequested = false;\n\t\t\tthis.state.redirectType = '';\n\t\t}\n\t}\n\n\t/**\n\t * @function handleDialogConfirm\n\t * @description Handles the confirm action if the form was in a dirty state. Disables the ui while the save process is occurring.\n\t */\n\n\thandleDialogConfirm() {\n\t\tconst { elements: { cancelButton, closeButton, confirmButton } } = this.instances.dialog;\n\t\tcancelButton.disabled = true;\n\t\tcloseButton.disabled = true;\n\t\tconfirmButton.disabled = true;\n\t\tconfirmButton.style.width = `${ confirmButton.offsetWidth }px`;\n\t\tthis.instances.dialogLoader.showLoader();\n\t\tif ( ! confirmButton.classList.contains( 'gform-dialog__confirm-saving--initialized' ) ) {\n\t\t\tconfirmButton.classList.add( 'gform-dialog__confirm-saving--initialized' );\n\t\t\tconfirmButton.insertAdjacentHTML( 'beforeend', `\n\t\t\t\t<span class=\"gform-dialog__confirm-saving-text\">${ this.options.i18n.dialog_confirm_saving }</span>\n\t\t\t` );\n\t\t}\n\t\tconfirmButton.classList.add( 'gform-dialog__confirm-button--saving' );\n\t}\n\n\t/**\n\t * @function wrapDialogConfirmText\n\t * @description Wraps the confirm dialog button text in a span for loading state. Replace eventually with proper loader component in dialog.\n\t */\n\n\twrapDialogConfirmText() {\n\t\tconst html = this.instances.dialog.elements.confirmButton.innerHTML;\n\t\tthis.instances.dialog.elements.confirmButton.innerHTML = `<span class=\"gform-dialog__confirm-button--idle-text\">${ html }</span>`;\n\t}\n\n\t/**\n\t * @function render\n\t * @description Instantiates a flyout and passes in all required html\n\t */\n\n\trender() {\n\t\tthis.instances.flyout = new Flyout( {\n\t\t\tcontent: this.generateFlyoutContent(),\n\t\t\ttitle: this.options.i18n.title,\n\t\t\t...this.options.flyout,\n\t\t} );\n\t\tthis.instances.dialog = new Dialog( {\n\t\t\tcancelButtonText: this.options.i18n.dialog_cancel_text,\n\t\t\tcloseButtonTitle: this.options.i18n.dialog_close_title,\n\t\t\tconfirmButtonText: this.options.i18n.dialog_confirm_text,\n\t\t\tcontent: this.options.i18n.dialog_content,\n\t\t\tonConfirm: this.handleDialogConfirm.bind( this ),\n\t\t\ttitle: this.options.i18n.dialog_title,\n\t\t\t...this.options.dialog,\n\t\t} );\n\t\tthis.wrapDialogConfirmText();\n\t\tthis.instances.dialogLoader = new Loader( {\n\t\t\ttarget: `#${ this.instances.dialog.elements.confirmButton.id }`,\n\t\t\t...this.options.dialogLoader,\n\t\t} );\n\t}\n\n\t/**\n\t * @function storeElements\n\t * @description Stores useful HTMLElements on the instance in the elements namespace after render\n\t */\n\n\tstoreElements() {\n\t\tconst { flyout } = this.instances.flyout.elements;\n\t\tthis.elements = {\n\t\t\taddToExistingDropdowns: getNodes( '.gform-embed-form__dropdown', true, flyout, true ),\n\t\t\taddToExistingTrigger: getNodes( 'embed-form-add-to-post-trigger', false, flyout )[ 0 ],\n\t\t\tcreateNewInputs: getNodes( 'create-new-post-input', true, flyout ),\n\t\t\tcreateNewTrigger: getNodes( 'embed-form-create-post-trigger', false, flyout )[ 0 ],\n\t\t\tshortcodeTrigger: getNodes( 'embed-form-shortcode-trigger', false, flyout )[ 0 ],\n\t\t};\n\t}\n\n\t/**\n\t * @function handlePostTypeSwitcherChange\n\t * @description Whenever the post type radios change their state, this updates the class state to track the current\n\t * selection for each group type.\n\t *\n\t * @param e The event object\n\t */\n\n\thandlePostTypeSwitcherChange( e ) {\n\t\tconst input = e.delegateTarget;\n\t\tconst group = getClosest( input, '[data-js=\"embed-flyout-group\"]' );\n\n\t\tif ( input.name === 'create_new_in_post_type' ) {\n\t\t\tthis.state.createNewActiveCPT = input.value;\n\t\t} else {\n\t\t\tthis.state.addToActiveCPT = input.value;\n\t\t}\n\n\t\tgetNodes( 'embed-flyout-post-type-action-container', true, group )\n\t\t\t.forEach( ( container ) => {\n\t\t\t\tif ( container.dataset.type === input.dataset.type ) {\n\t\t\t\t\tcontainer.classList.remove( 'gform-embed-form--hidden' );\n\t\t\t\t} else {\n\t\t\t\t\tcontainer.classList.add( 'gform-embed-form--hidden' );\n\t\t\t\t}\n\t\t\t} );\n\t}\n\n\t/**\n\t * @function handlePostSaveRedirect\n\t * @description Listens to post save events from the ajax form saver. If the current state is redirectRequested\n\t * then executes the current type.\n\t */\n\n\thandlePostSaveRedirect() {\n\t\tif ( ! this.state.redirectRequested ) {\n\t\t\treturn;\n\t\t}\n\t\tthis.resetConfirmDialogState();\n\t\tif ( this.state.redirectType === 'addToPost' ) {\n\t\t\tthis.handleAddToPost();\n\t\t} else if ( this.state.redirectType === 'createPost' ) {\n\t\t\tthis.handleCreatePost();\n\t\t}\n\n\t\tthis.state.redirectRequested = false;\n\t\tthis.state.redirectType = '';\n\t}\n\n\t/**\n\t * @function handleAddToPost\n\t * @description When a user clicks the add to post button, this handles whether or not they get sent there,\n\t * or focuses the select if they have not made a selection yet.\n\t */\n\n\thandleAddToPost() {\n\t\tconst dropdownContainer = this.elements.addToExistingDropdowns.filter( ( el ) => el.dataset.type === this.state.addToActiveCPT )[ 0 ];\n\t\tconst control = getNodes( 'gform-dropdown-control', false, dropdownContainer )[ 0 ];\n\n\t\tif ( ! control.dataset.value ) {\n\t\t\tcontrol.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst isDirty = isFormDirty();\n\n\t\tif ( isDirty ) {\n\t\t\tthis.state.redirectRequested = true;\n\t\t\tthis.state.redirectType = 'addToPost';\n\t\t\tthis.instances.dialog.showDialog();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.instances.dialog.closeDialog();\n\t\tthis.redirectToEditor( control.dataset.value );\n\t}\n\n\t/**\n\t * @function handleCreatePostClick\n\t * @description When a user clicks the create post button, this handles whether or not it gets created and then\n\t * they get sent there, or focuses the input if they have not typed a title yet.\n\t *\n\t * @returns {Promise<void>}\n\t */\n\n\tasync handleCreatePost() {\n\t\tconst input = this.elements.createNewInputs.filter( ( el ) => el.dataset.type === this.state.createNewActiveCPT )[ 0 ];\n\t\tconst value = escapeHtml( input.value.trim() );\n\n\t\tif ( ! value ) {\n\t\t\tinput.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst isDirty = isFormDirty();\n\n\t\tif ( isDirty ) {\n\t\t\tthis.state.redirectRequested = true;\n\t\t\tthis.state.redirectType = 'createPost';\n\t\t\tthis.instances.dialog.showDialog();\n\t\t\treturn;\n\t\t}\n\n\t\tthis.instances.dialog.closeDialog();\n\n\t\tconst options = {\n\t\t\tbaseUrl,\n\t\t\tmethod: 'POST',\n\t\t\tbody: {\n\t\t\t\tform_id: this.options.data.form_id,\n\t\t\t\tpost_title: value,\n\t\t\t\tpost_type: input.dataset.type,\n\t\t\t},\n\t\t};\n\n\t\tif ( this.state.isMock ) {\n\t\t\tconsoleInfo( 'Mock endpoint, data that would have been sent is:' );\n\t\t\tconsoleInfo( options );\n\t\t} else {\n\t\t\tconst response = await request( 'create_post_with_block', this.options.endpoints, options );\n\t\t\tif ( response?.data?.success ) {\n\t\t\t\tthis.redirectToEditor( response.data.data.ID, false );\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * @function handleCopyShortcodeClick\n\t * @description Copies the shortcode to the clipboard when that button is clicked\n\t *\n\t * @param e The event object\n\t */\n\n\thandleCopyShortcodeClick( e ) {\n\t\tconst button = e.delegateTarget;\n\t\tconst copyLabel = getNodes( 'shortcode-copy-label', false, button )[ 0 ];\n\t\tconst copyText = getNodes( 'shortcode-copy-copied', false, button )[ 0 ];\n\t\tconst shortcode = `[gravityform id=\"${ this.options.data.form_id }\" title=\"true\"]`;\n\t\tclipboard( shortcode );\n\t\tsetTimeout( () => {\n\t\t\tcopyLabel.setAttribute( 'aria-hidden', 'true' );\n\t\t\tcopyText.setAttribute( 'aria-hidden', 'false' );\n\t\t\tbutton.classList.add( 'gform-embed-form__shortcode-trigger--copied' );\n\t\t}, 100 );\n\t\tsetTimeout( () => {\n\t\t\tcopyLabel.setAttribute( 'aria-hidden', 'false' );\n\t\t\tcopyText.setAttribute( 'aria-hidden', 'true' );\n\t\t\tbutton.classList.remove( 'gform-embed-form__shortcode-trigger--copied' );\n\t\t}, 2000 );\n\t}\n\n\t/**\n\t * @function bindDropdowns\n\t * @description After render, this instantiates the dropdown behaviors and stores the instances on our instance.\n\t */\n\n\tbindDropdowns() {\n\t\tthis.instances.dropdowns = {};\n\t\tthis.properties.postTypes.forEach( ( postType ) => {\n\t\t\tthis.instances.dropdowns[ `gform-dropdown-add-to-form-${ postType.slug }` ] = new Dropdown( {\n\t\t\t\tbaseUrl,\n\t\t\t\tendpoints: this.options.endpoints,\n\t\t\t\tendpointArgs: {\n\t\t\t\t\tpost_type: postType.slug,\n\t\t\t\t},\n\t\t\t\tendpointKey: 'get_posts',\n\t\t\t\tlistData: this.options.data.items[ postType.slug ].entries,\n\t\t\t\tsearchType: 'async',\n\t\t\t\tselector: `gform-dropdown-add-to-form-${ postType.slug }`,\n\t\t\t} );\n\t\t} );\n\t}\n\n\t/**\n\t * @function flyoutShouldStayOpen\n\t * @description Logic that handles whether we should close the flyout on document clicks, excluding clicks in our dialog or flyout.\n\t *\n\t * @param target The click target\n\t */\n\n\tflyoutShouldStayOpen( target ) {\n\t\tconst { elements: { flyout }, state } = this.instances.flyout;\n\t\treturn flyout.contains( target ) ||\n\t\t\t! state.open ||\n\t\t\tgetClosest( target, '[data-js=\"gform-dialog-mask\"]' ) ||\n\t\t\ttarget.dataset.js === 'gform-dialog-mask';\n\t}\n\n\t/**\n\t * @function bindEvents\n\t * @description Binds all events after render.\n\t */\n\n\tbindEvents() {\n\t\tconst { elements: { flyout }, closeFlyout } = this.instances.flyout;\n\n\t\tdelegate( flyout, '[data-js=\"post-type-switcher\"]', 'change', this.handlePostTypeSwitcherChange.bind( this ) );\n\t\tdelegate( flyout, '[data-js=\"embed-form-add-to-post-trigger\"]', 'click', this.handleAddToPost.bind( this ) );\n\t\tdelegate( flyout, '[data-js=\"embed-form-create-post-trigger\"]', 'click', this.handleCreatePost.bind( this ) );\n\t\tdelegate( flyout, '[data-js=\"embed-form-shortcode-trigger\"]', 'click', this.handleCopyShortcodeClick.bind( this ) );\n\n\t\tdocument.addEventListener( 'gform/form_editor_saver/post_save_success', this.handlePostSaveRedirect.bind( this ) );\n\t\tdocument.addEventListener( 'gform/form_editor_saver/post_save_error', this.resetConfirmDialogState.bind( this ) );\n\n\t\tdocument.addEventListener( 'click', function( event ) {\n\t\t\tif ( this.flyoutShouldStayOpen( event.target ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcloseFlyout();\n\t\t}.bind( this ) );\n\t}\n\n\t/**\n\t * @function init\n\t * @description It really ties the room together.\n\t */\n\n\tinit() {\n\t\tthis.render();\n\t\tthis.storeElements();\n\t\tthis.bindDropdowns();\n\t\tthis.bindEvents();\n\n\t\ttrigger( { event: 'gform/embed_form/post_render', native: false, data: { instance: this } } );\n\t}\n}\n","var __WEBPACK_NAMESPACE_OBJECT__ = gform.libraries;","import { React, classnames, PropTypes } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Box\n * @description Renders a simple box component for containing width or height.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {JSX.Element}                props.children         React element children.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.display          The display property for the box.\n * @param {boolean}                    props.setDisplay       Whether to set the display property for the box.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.tagName          The tagname for the box, defaults to `div`.\n * @param {string}                     props.unit             The css units for the x and y props.\n * @param {number}                     props.x                The width property.\n * @param {string}                     props.xProp            The css property in react style syntax for the width, defaults to maxWidth.\n * @param {number}                     props.y                The height property.\n * @param {string}                     props.yProp            The css property in react style syntax for the height, defaults to minHeight.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The icon component.\n *\n * @example\n * import Box from '@gravityforms/components/react/admin/elements/Box';\n *\n * return (\n *     <Box tagName=\"span\">\n *         { 'children' }\n *     </Box>\n * );\n *\n */\nconst Box = forwardRef( ( {\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisplay = 'block',\n\tsetDisplay = true,\n\tspacing = '',\n\ttagName = 'div',\n\tunit = 'px',\n\tx = 0,\n\txProp = 'maxWidth',\n\ty = 0,\n\tyProp = 'minHeight',\n}, ref ) => {\n\tconst style = {};\n\tif ( setDisplay ) {\n\t\tstyle.display = display;\n\t}\n\tif ( x ) {\n\t\tstyle[ xProp ] = `${ x }${ unit }`;\n\t}\n\tif ( y ) {\n\t\tstyle[ yProp ] = `${ y }${ unit }`;\n\t}\n\tconst boxProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-box': true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tstyle,\n\t\tref,\n\t\t...customAttributes,\n\t};\n\n\tconst Container = tagName;\n\n\treturn <Container { ...boxProps }>{ children }</Container>;\n} );\n\nBox.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisplay: PropTypes.string,\n\tsetDisplay: PropTypes.bool,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttagName: PropTypes.string,\n\tunit: PropTypes.string,\n\tx: PropTypes.number,\n\txProp: PropTypes.string,\n\ty: PropTypes.number,\n\tyProp: PropTypes.string,\n};\n\nBox.displayName = 'Box';\n\nexport default Box;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Icon\n * @description Renders a simple icon component.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {JSX.Element}                props.children         React element children.\n * @param {object}                     props.customAttributes Custom attributes for the component\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.icon             The name for the icon to use from the icon library specified in iconPrefix.\n * @param {string}                     props.iconPrefix       The prefix for the icon library to be used.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The icon component.\n *\n * @example\n * import Icon from '@gravityforms/components/react/admin/elements/Icon';\n *\n * return <Icon icon=\"exclamation\" iconPrefix=\"gform-common-icon\" />;\n *\n */\nconst Icon = forwardRef( ( {\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\ticon = '',\n\ticonPrefix = 'gform-icon',\n\tspacing = '',\n}, ref ) => {\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t[ `${ iconPrefix }` ]: true,\n\t\t\t[ `${ iconPrefix }--${ icon }` ]: true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tref,\n\t\t...customAttributes,\n\t};\n\treturn <span { ...componentProps }>{ children }</span>;\n} );\n\nIcon.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ticon: PropTypes.string,\n\ticonPrefix: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n};\n\nIcon.displayName = 'Icon';\n\nexport default Icon;\n","var __WEBPACK_NAMESPACE_OBJECT__ = gform.utils.react;","import { React } from '@gravityforms/libraries';\n\n/**\n * @function Ring\n * @description A svg based ring spinner.\n *\n * @since 1.1.15\n *\n * @param {number} size           Size in pixels for the loader.\n * @param {object} componentProps Component properties from consumer.\n * @param {string} foreground     Color for the loader foreground element.\n * @param {number} lineWeight     Line weight for the svg stroke of this loader.\n * @param {number} speed          Speed in seconds for the animation of this component.\n *\n * @return {JSX.Element} A ring spinner with elastic animation.\n */\nexport function Ring( {\n\tsize = 40,\n\tcomponentProps = {},\n\tforeground = '',\n\tlineWeight = 2,\n\tspeed = 2,\n} ) {\n\tconst strokeWidth = lineWeight * 50 / size;\n\tconst circleStyle = {\n\t\tanimation: `animation: gformLoaderStretch calc(${ speed }s * 0.75) ease-in-out infinite`,\n\t};\n\tif ( foreground ) {\n\t\tcircleStyle.stroke = foreground;\n\t}\n\n\treturn (\n\t\t<svg\n\t\t\t{ ...componentProps }\n\t\t\theight={ size }\n\t\t\twidth={ size }\n\t\t\tviewBox=\"25 25 50 50\"\n\t\t\tstyle={ {\n\t\t\t\tanimation: `gformLoaderRotate ${ speed }s linear infinite`,\n\t\t\t\theight: `${ size }px`,\n\t\t\t\twidth: `${ size }px`,\n\t\t\t} }\n\t\t>\n\t\t\t<circle\n\t\t\t\tcx=\"50\"\n\t\t\t\tcy=\"50\"\n\t\t\t\tr=\"20\"\n\t\t\t\tstrokeWidth={ strokeWidth }\n\t\t\t\tstyle={ circleStyle }\n\t\t\t/>\n\t\t</svg>\n\t);\n}\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { ConditionalWrapper } from '@gravityforms/react-utils';\nimport { spacerClasses } from '@gravityforms/utils';\nimport { Ring } from './index.types';\n\nconst { forwardRef } = React;\n\n/**\n * @module Loader\n * @description A loader component with variations, optional mask and text display.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                      Component props.\n * @param {string}                     props.background           The background color for the loader shape itself.\n * @param {JSX.Element}                props.children             React element children.\n * @param {object}                     props.customAttributes     Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses        Custom classes for the component.\n * @param {boolean}                    props.displayText          Whether or not to display the passed text.\n * @param {string}                     props.foreground           The foreground color for the loader.\n * @param {number}                     props.lineWeight           The line weight for the loader. Used if type is `ring`.\n * @param {boolean}                    props.mask                 Whether to place the loader on a mask that covers an area using position absolute.\n * @param {object}                     props.maskCustomAttributes Custom attributes for the mask.\n * @param {string|Array|object}        props.maskCustomClasses    Custom classes for the mask.\n * @param {string}                     props.maskTheme            Them for the mask, controls background color, one of `light` or `dark`.\n * @param {number}                     props.size                 The size in px for the loader.\n * @param {string|number|Array|object} props.spacing              The spacing for the component, as a string, number, array, or object.\n * @param {number}                     props.speed                The speed for the animation of the component, in seconds.\n * @param {string}                     props.text                 Optional text, either hidden or visible. Pass nothing to not render element.\n * @param {string}                     props.textColor            The color for the text as css property value.\n * @param {object}                     props.textCustomAttributes Custom attributes for the text.\n * @param {string|Array|object}        props.textCustomClasses    Custom classes for the text.\n * @param {string}                     props.type                 The type for the loader. Default to `ring`.\n * @param {object|null}                ref                        Ref to the component.\n *\n * @return {JSX.Element} The Loader component.\n *\n * @example\n * import Loader from '@gravityforms/components/react/admin/modules/Loader';\n *\n * return (\n *     <Loader displayText={ true } type=\"ring\" size={ 60 }>\n *         { children }\n *     </Loader>\n * );\n *\n */\nconst Loader = forwardRef( ( {\n\tbackground = '',\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisplayText = true,\n\tforeground = '',\n\tlineWeight = 5,\n\tmask = false,\n\tmaskCustomAttributes = {},\n\tmaskCustomClasses = [],\n\tmaskTheme = 'light',\n\tsize = 40,\n\tspacing = '',\n\tspeed = 2,\n\ttext = '',\n\ttextColor = '#000',\n\ttextCustomAttributes = {},\n\ttextCustomClasses = [],\n\ttype = 'ring',\n}, ref ) => {\n\tconst maskProps = mask ? {\n\t\tclassName: classnames( {\n\t\t\t'gform-loader__mask': true,\n\t\t\t[ `gform-loader__mask--theme-${ maskTheme }` ]: true,\n\t\t}, maskCustomClasses ),\n\t\t...maskCustomAttributes,\n\t} : {};\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-loader': true,\n\t\t\t[ `gform-loader--${ type }` ]: true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\tconst textProps = text ? {\n\t\tclassName: classnames( {\n\t\t\t'gform-loader__text': displayText,\n\t\t\t'gform-visually-hidden': ! displayText,\n\t\t}, textCustomClasses ),\n\t\tstyle: {\n\t\t\tcolor: textColor,\n\t\t},\n\t\t...textCustomAttributes,\n\t} : {};\n\n\tconst getLoader = () => {\n\t\tswitch ( type ) {\n\t\t\tcase 'ring':\n\t\t\t\treturn (\n\t\t\t\t\t<Ring\n\t\t\t\t\t\tbackground={ background }\n\t\t\t\t\t\tcomponentProps={ componentProps }\n\t\t\t\t\t\tforeground={ foreground }\n\t\t\t\t\t\tlineWeight={ lineWeight }\n\t\t\t\t\t\tsize={ size }\n\t\t\t\t\t\tspeed={ speed }\n\t\t\t\t\t\tref={ ref }\n\t\t\t\t\t/>\n\t\t\t\t);\n\t\t\tdefault:\n\t\t\t\treturn (\n\t\t\t\t\t<span { ...componentProps } ref={ ref } />\n\t\t\t\t);\n\t\t}\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<ConditionalWrapper\n\t\t\t\tcondition={ mask }\n\t\t\t\twrapper={ ( ch ) => <div { ...maskProps }>{ ch }</div> }\n\t\t\t>\n\t\t\t\t<ConditionalWrapper\n\t\t\t\t\tcondition={ ! mask && text && displayText }\n\t\t\t\t\twrapper={ ( ch ) => <span className=\"gform-loader__inner\">{ ch }</span> }\n\t\t\t\t>\n\t\t\t\t\t{ getLoader() }\n\t\t\t\t\t{ text && <span { ...textProps }>{ text }</span> }\n\t\t\t\t\t{ children }\n\t\t\t\t</ConditionalWrapper>\n\t\t\t</ConditionalWrapper>\n\t\t</>\n\t);\n} );\n\nLoader.propTypes = {\n\tbackground: PropTypes.string,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisplayText: PropTypes.bool,\n\tforeground: PropTypes.string,\n\tlineWeight: PropTypes.number,\n\tmask: PropTypes.bool,\n\tmaskCustomAttributes: PropTypes.object,\n\tmaskCustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tmaskTheme: PropTypes.string,\n\tsize: PropTypes.number,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tspeed: PropTypes.number,\n\ttext: PropTypes.string,\n\ttextColor: PropTypes.string,\n\ttextCustomAttributes: PropTypes.object,\n\ttextCustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttype: PropTypes.string,\n};\n\nLoader.displayName = 'Loader';\n\nexport default Loader;\n","import { React, classnames, PropTypes } from '@gravityforms/libraries';\nimport Icon from '../Icon';\nimport Loader from '../../modules/Loader';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\nconst buttonSizeToTypographyMap = {\n\t'size-height-s': 'size-text-xs',\n\t'size-height-m': 'size-text-sm',\n\t'size-height-l': 'size-text-sm',\n\t'size-height-xl': 'size-text-sm',\n\t'size-height-xxl': 'size-text-md',\n};\n\n/**\n * @module Button\n * @description A highly configurable button component.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                    Component props.\n * @param {boolean}                    props.active             Whether the button is active or not.\n * @param {string}                     props.activeText         The active text when the button is active.\n * @param {string}                     props.activeType         The active type, currently supports `loader`.\n * @param {JSX.Element|null}           props.children           React element children.\n * @param {boolean}                    props.circular           Whether the button is a circular shape or not.\n * @param {object}                     props.customAttributes   Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses      Custom classes for the component.\n * @param {boolean}                    props.disabled           Whether the button is disabled or not.\n * @param {boolean}                    props.disableWhileActive Whether to disable the button while active.\n * @param {string}                     props.icon               Icon name if using an icon button.\n * @param {object}                     props.iconAttributes     Custom attributes for the icon.\n * @param {string}                     props.iconPosition       Icon position if using one, `leading` or `trailing`.\n * @param {string}                     props.iconPrefix         The prefix for the icon library to be used.\n * @param {string}                     props.label              The label for the button, or the text displayed when inactive.\n * @param {object}                     props.loaderProps        All valid options for the loader component if loader button is active.\n * @param {boolean}                    props.lockSize           If interactive, whether to lock the width of the button when transitioning states.\n * @param {Function}                   props.onClick            On click handler for the button.\n * @param {string}                     props.size               Size of the button.\n * @param {string|number|Array|object} props.spacing            The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.type               The button type.\n * @param {string}                     props.width              The button width, `auto` or `full`.\n * @param {string}                     props.ariaLabel          The aria-label text for the button.\n * @param {object|null}                ref                      Ref to the component.\n *\n * @return {JSX.Element} The button component.\n *\n * @example\n * import Button from '@gravityforms/components/react/admin/elements/Button';\n *\n * return (\n *     <Button onClick={ () => {} } size=\"size-height-xl\" type=\"white\">\n *         { 'Click me' }\n *     </Button>\n * );\n *\n */\nconst Button = forwardRef( ( {\n\tactive = false,\n\tactiveText = '',\n\tactiveType = '',\n\tchildren = null,\n\tcircular = false,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\tdisableWhileActive = true,\n\ticon = '',\n\ticonAttributes = {},\n\ticonPosition = '',\n\ticonPrefix = 'gform-icon',\n\tlabel = '',\n\tloaderProps = {\n\t\tcustomClasses: 'gform-button__loader', // additional classes for the loader element.\n\t\tlineWeight: 2, // line weight of the loader.\n\t\tsize: 16, // size of the loader, decimal int values.\n\t},\n\tlockSize = true, /* eslint-disable-line */\n\tonClick = () => {},\n\tsize = 'size-r',\n\tspacing = '',\n\ttype = 'primary-new',\n\twidth = 'auto',\n\tariaLabel = '',\n}, ref ) => {\n\tconst attributes = {\n\t\tclassName: classnames( {\n\t\t\t'gform-button': true,\n\t\t\t[ `gform-button--${ size }` ]: true,\n\t\t\t[ `gform-button--${ type }` ]: true,\n\t\t\t[ `gform-button--width-${ width }` ]: true,\n\t\t\t'gform-button--circular': circular,\n\t\t\t'gform-button--activated': active,\n\t\t\t[ `gform-button--active-type-${ activeType }` ]: activeType,\n\t\t\t'gform-button--loader-after': 'loader' === activeType,\n\t\t\t'gform-button--icon-leading': icon && iconPosition === 'leading',\n\t\t\t'gform-button--icon-trailing': icon && iconPosition === 'trailing',\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tonClick,\n\t\tdisabled: disabled || ( disableWhileActive && active ),\n\t\tref,\n\t\t...customAttributes,\n\t};\n\n\tif ( ariaLabel ) {\n\t\tattributes[ 'aria-label' ] = ariaLabel;\n\t}\n\n\tconst iconProps = {\n\t\t...iconAttributes,\n\t\tcustomClasses: classnames(\n\t\t\t[ 'gform-button__icon' ],\n\t\t\t( iconAttributes.customClasses || [] ),\n\t\t),\n\t\ticon,\n\t\ticonPrefix,\n\t};\n\tconst textSize = buttonSizeToTypographyMap[ size ];\n\tconst textInactiveClassName = classnames( {\n\t\t'gform-button__text': true,\n\t\t'gform-button__text--inactive': true,\n\t\t[ `gform-typography--${ textSize }` ]: 0 === size.indexOf( 'size-height-' ),\n\t} );\n\tconst textActiveClassName = classnames( {\n\t\t'gform-button__text': true,\n\t\t'gform-button__text--active': true,\n\t\t[ `gform-typography--${ textSize }` ]: 0 === size.indexOf( 'size-height-' ),\n\t} );\n\tconst showActiveText = activeText && active;\n\n\treturn (\n\t\t<button { ...attributes }>\n\t\t\t{ icon && ( ! label || iconPosition === 'leading' ) && <Icon { ...iconProps } /> }\n\t\t\t{ label && ! showActiveText && <span className={ textInactiveClassName }>{ label }</span> }\n\t\t\t{ showActiveText && <span className={ textActiveClassName }>{ activeText }</span> }\n\t\t\t{ icon && iconPosition === 'trailing' && <Icon { ...iconProps } /> }\n\t\t\t{ 'loader' === activeType && active && <Loader { ...loaderProps } /> }\n\t\t\t{ children }\n\t\t</button>\n\t);\n} );\n\nButton.propTypes = {\n\tactive: PropTypes.bool,\n\tactiveText: PropTypes.string,\n\tactiveType: PropTypes.oneOf( [ 'loader' ] ),\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcircular: PropTypes.bool,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\tdisableWhileActive: PropTypes.bool,\n\ticon: PropTypes.string,\n\ticonAttributes: PropTypes.object,\n\ticonPosition: PropTypes.oneOf( [ 'leading', 'trailing' ] ),\n\ticonPrefix: PropTypes.string,\n\tlabel: PropTypes.string,\n\tloaderProps: PropTypes.object,\n\tlockSize: PropTypes.bool,\n\tonClick: PropTypes.func,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttype: PropTypes.string,\n\twidth: PropTypes.string,\n};\n\nButton.displayName = 'Button';\n\nexport default Button;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Label\n * @description A label component.\n *\n * @since 1.1.18\n *\n * @param {object}                     props                  Component props.\n * @param {JSX.Element|string}         props.children         React element children.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.htmlFor          The for attribute for the label.\n * @param {boolean}                    props.isVisible        If label is visible (true) or hidden (false).\n * @param {string}                     props.label            Label text.\n * @param {string}                     props.size             The font size for the label.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.weight           The font weight for the label.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The Label component.\n *\n * @example\n * import Label from '@gravityforms/components/react/admin/elements/Label';\n *\n * return <Label htmlFor=\"input-id\">{ 'Input label' }</Label>;\n *\n */\nconst Label = forwardRef( ( {\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\thtmlFor = '',\n\tisVisible = true,\n\tlabel = '',\n\tsize = 'text-sm',\n\tspacing = '',\n\tweight = 'medium',\n}, ref ) => {\n\tif ( ! label && ! children ) {\n\t\treturn null;\n\t}\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-label': true,\n\t\t\t[ `gform-typography--size-${ size }` ]: true,\n\t\t\t[ `gform-typography--weight-${ weight }` ]: true,\n\t\t\t'gform-visually-hidden': ! isVisible,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\thtmlFor,\n\t\tref,\n\t\t...customAttributes,\n\t};\n\n\treturn (\n\t\t<label { ...componentProps }>{ label }{ children }</label>\n\t);\n} );\n\nLabel.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\thtmlFor: PropTypes.string,\n\tisVisible: PropTypes.bool,\n\tlabel: PropTypes.string,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tweight: PropTypes.string,\n};\n\nLabel.displayName = 'Label';\n\nexport default Label;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module HelpText\n * @description A form input helper text component.\n *\n * @since 1.1.18\n *\n * @param {object}                     props                  Component props.\n * @param {string}                     props.content          Helper text.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.id               Id for the helper text.\n * @param {string}                     props.size             The font size for the helper text.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.weight           The font weight for the label.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The help text component.\n *\n * @example\n * import HelpText from '@gravityforms/components/react/admin/elements/HelpText';\n *\n * return <HelpText content=\"This is required.\" />;\n *\n */\nconst HelpText = forwardRef( ( {\n\tcontent = '',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tid = '',\n\tsize = 'text-xs',\n\tspacing = '',\n\tweight = 'regular',\n}, ref ) => {\n\tif ( ! content ) {\n\t\treturn null;\n\t}\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-input-help-text': true,\n\t\t\t[ `gform-typography--size-${ size }` ]: true,\n\t\t\t[ `gform-typography--weight-${ weight }` ]: true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tid,\n\t\tref,\n\t\t...customAttributes,\n\t};\n\n\treturn (\n\t\t<span { ...componentProps }>{ content }</span>\n\t);\n} );\n\nHelpText.propTypes = {\n\tcontent: PropTypes.string,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tid: PropTypes.string,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tweight: PropTypes.string,\n};\n\nHelpText.displayName = 'HelpText';\n\nexport default HelpText;\n","import { React, classnames, PropTypes } from '@gravityforms/libraries';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport Label from '../Label';\nimport HelpText from '../HelpText';\n\nconst { forwardRef, useState } = React;\n\n/**\n * @module Checkbox\n * @description A checkbox input component.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                    Component props.\n * @param {object}                     props.customAttributes   Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses      Custom classes for the component.\n * @param {boolean}                    props.disabled           If checkbox is disabled.\n * @param {object}                     props.helpTextAttributes Custom attribute for the help text.\n * @param {string}                     props.id                 Optional id. Auto generated if not passed.\n * @param {boolean}                    props.initialChecked     Whether it is checked on initial render.\n * @param {object}                     props.labelAttributes    Custom attributes for the label.\n * @param {string}                     props.name               The name attribute for the checkbox.\n * @param {Function}                   props.onBlur             On blur function handler.\n * @param {Function}                   props.onChange           On change function handler.\n * @param {Function}                   props.onFocus            On focus function handler.\n * @param {string}                     props.size               The checkbox size, small (`size-sm`) or medium (`size-md`).\n * @param {string|number|Array|object} props.spacing            The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.theme              The theme of the checkbox.\n * @param {string}                     props.value              The checkbox value.\n * @param {object}                     props.wrapperAttributes  Custom attributes for the wrapper element.\n * @param {string|Array|object}        props.wrapperClasses     Custom classes for the wrapper element.\n * @param {string}                     props.wrapperTagName     Tag to use for the checkbox wrapper. Defaults to `div`.\n * @param {object|null}                ref                      Ref to the component.\n *\n * @return {JSX.Element} The checkbox component.\n *\n * @example\n * import Checkbox from '@gravityforms/components/react/admin/elements/Checkbox';\n *\n * return (\n *     <Checkbox />\n *         checked={ true }\n *         labelAttributes={ {\n *             label: 'Check me!',\n *         } }\n *         id=\"checkbox\"\n *         onChange={ () => {} }\n *     />\n * );\n *\n */\nconst Checkbox = forwardRef( ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\thelpTextAttributes = {},\n\tid = '',\n\tinitialChecked = false,\n\tlabelAttributes = {},\n\tname = '',\n\tonBlur = () => {},\n\tonChange = () => {},\n\tonFocus = () => {},\n\tsize = 'size-sm',\n\tspacing = '',\n\ttheme = 'cosmos',\n\tvalue = '',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n\twrapperTagName = 'div',\n}, ref ) => {\n\tconst [ inputChecked, setInputChecked ] = useState( initialChecked );\n\tconst inputId = id || uniqueId( 'checkbox' );\n\tconst helpTextId = `${ inputId }-help-text`;\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input-wrapper': true,\n\t\t\t[ `gform-input-wrapper--theme-${ theme }` ]: true,\n\t\t\t'gform-input-wrapper--checkbox': true,\n\t\t\t'gform-input-wrapper--disabled': disabled,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst inputProps = {\n\t\t...customAttributes,\n\t\tchecked: inputChecked,\n\t\tclassName: classnames( {\n\t\t\t'gform-input--checkbox': true,\n\t\t\t[ `gform-input--${ size }` ]: true,\n\t\t}, customClasses ),\n\t\tid: inputId,\n\t\tname,\n\t\tonBlur,\n\t\tonChange: ( e ) => {\n\t\t\tconst { checked: inputCheckedState } = e.target;\n\t\t\tsetInputChecked( inputCheckedState );\n\t\t\tonChange( inputCheckedState, e );\n\t\t},\n\t\tonFocus,\n\t\ttype: 'checkbox',\n\t\tvalue,\n\t};\n\n\tif ( helpTextAttributes.content ) {\n\t\tinputProps[ 'aria-describedby' ] = helpTextId;\n\t}\n\tif ( disabled ) {\n\t\tinputProps.disabled = true;\n\t}\n\n\tconst labelProps = {\n\t\t...labelAttributes,\n\t\thtmlFor: inputId,\n\t};\n\n\tconst helpTextProps = {\n\t\t...helpTextAttributes,\n\t\tid: helpTextId,\n\t};\n\n\tconst Container = wrapperTagName;\n\n\treturn (\n\t\t<Container { ...wrapperProps }>\n\t\t\t<input { ...inputProps } />\n\t\t\t<Label { ...labelProps } />\n\t\t\t<HelpText { ...helpTextProps } />\n\t\t</Container>\n\t);\n} );\n\nCheckbox.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\thelpTextAttributes: PropTypes.object,\n\tid: PropTypes.string,\n\tinitialChecked: PropTypes.bool,\n\tlabelAttributes: PropTypes.object,\n\tname: PropTypes.string,\n\tonBlur: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonFocus: PropTypes.func,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttheme: PropTypes.string,\n\tvalue: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\twrapperTagName: PropTypes.string,\n};\n\nCheckbox.displayName = 'Checkbox';\n\nexport default Checkbox;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Text\n * @description Wraps html text with some preset style options in a configurable tag container.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {boolean}                    props.asHtml           Whether or not to accept HTML in the content\n * @param {JSX.Element}                props.children         React element children.\n * @param {string}                     props.content          The text content.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.size             The font size for the heading.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.tagName          The tag used for the container element.\n * @param {string}                     props.weight           The font weight for the heading.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The text component.\n *\n * @example\n * import Text from '@gravityforms/components/react/admin/elements/Text';\n *\n * return <Text content=\"Hello world\" />;\n *\n */\nconst Text = forwardRef( ( {\n\tasHtml = false,\n\tchildren = null,\n\tcontent = '',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tsize = 'text-md',\n\tspacing = '',\n\ttagName = 'div',\n\tweight = 'regular',\n}, ref ) => {\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-text': true,\n\t\t\t[ `gform-typography--size-${ size }` ]: true,\n\t\t\t[ `gform-typography--weight-${ weight }` ]: true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tref,\n\t\t...customAttributes,\n\t};\n\n\tif ( asHtml ) {\n\t\tcomponentProps.dangerouslySetInnerHTML = { __html: content };\n\t}\n\n\tconst Container = tagName;\n\n\treturn asHtml ? <Container { ...componentProps } /> : (\n\t\t<Container { ...componentProps }>\n\t\t\t{ content }\n\t\t\t{ children }\n\t\t</Container>\n\t);\n} );\n\nText.propTypes = {\n\tasHtml: PropTypes.bool,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcontent: PropTypes.string,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttagName: PropTypes.string,\n\tweight: PropTypes.string,\n};\n\nText.displayName = 'Text';\n\nexport default Text;\n","import { React, PropTypes, FileDrop, classnames } from '@gravityforms/libraries';\nimport Icon from '../Icon';\nimport Text from '../Text';\nimport Button from '../Button';\n\nconst { forwardRef, useState, useEffect, useRef } = React;\n\n/**\n * @module FileUpload\n * @description A file upload component.\n *\n * @since 1.1.15\n *\n * @param {object}              props                   Component props.\n * @param {Array}               props.allowedFileTypes  The allowed file types.\n * @param {object}              props.customAttributes  Custom attributes for the component.\n * @param {string|Array|object} props.customClasses     Custom classes for the component.\n * @param {boolean}             props.disabled          Whether this component should be disabled.\n * @param {string}              props.fileURL           The url for an already uploaded file.\n * @param {object}              props.i18n              Translated strings for the UI.\n * @param {string}              props.id                ID of the file input.\n * @param {string|number}       props.maxHeight         The maximum height for the image.\n * @param {string|number}       props.maxWidth          The maximum width for the image.\n * @param {string}              props.name              The name attribute for the file input.\n * @param {object}              props.previewAttributes Attributes for the preview.\n * @param {Array}               props.previewClasses    Classes for the preview.\n * @param {string}              props.theme             The theme for the component.\n * @param {string}              props.uploadIcon        The icon to show for the upload button.\n * @param {string}              props.uploadIconPrefix  The prefix to use for the upload button icon.\n * @param {object}              props.wrapperAttributes Custom attributes for the wrapper element.\n * @param {string|Array|object} props.wrapperClasses    Custom classes for the wrapper element.\n * @param {object|null}         ref                     Ref to the component.\n *\n * @return {JSX.Element} The file upload component.\n *\n * @example\n * import FileUpload from '@gravityforms/components/react/admin/elements/FileUpload';\n *\n * return <FileUpload name=\"file-upload\" />;\n *\n */\nconst FileUpload = forwardRef( ( {\n\tallowedFileTypes = [],\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\tfileURL = '',\n\ti18n = {},\n\tid = '',\n\tmaxHeight = '',\n\tmaxWidth = '',\n\tname = '',\n\tpreviewAttributes = {},\n\tpreviewClasses = [],\n\ttheme = 'cosmos',\n\tuploadIcon = 'upload-file',\n\tuploadIconPrefix = 'gform-common-icon',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n}, ref ) => {\n\tconst [ selectedFile, setSelectedFile ] = useState();\n\tconst [ preview, setPreview ] = useState( fileURL );\n\tconst [ hasFileURL, setHasFileURL ] = useState( fileURL );\n\tconst fileInputRef = useRef( null );\n\n\tuseEffect( () => {\n\t\tif ( ! selectedFile ) {\n\t\t\tfileInputRef.current.value = null;\n\t\t\treturn;\n\t\t}\n\n\t\tconst objectUrl = URL.createObjectURL( selectedFile );\n\t\tsetPreview( objectUrl );\n\n\t\t// This frees up memory once we're done with the URL.\n\t\treturn () => URL.revokeObjectURL( objectUrl );\n\t}, [ selectedFile ] );\n\n\t/**\n\t * @function onSelectFile\n\t * @description Handler for selecting a file.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {Array} files Array of files.\n\t *\n\t * @return {Function} Function to clear timeout.\n\t */\n\tconst onSelectFile = ( files ) => {\n\t\tconst delayed = setTimeout( () => {\n\t\t\tif ( ! files || files.length === 0 ) {\n\t\t\t\tsetSelectedFile( undefined );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetSelectedFile( files[ 0 ] );\n\t\t\tfileInputRef.current.files = files;\n\t\t\tsetHasFileURL( false );\n\t\t}, 0 );\n\n\t\treturn () => clearTimeout( delayed );\n\t};\n\n\t/**\n\t * @function onFileInputChange\n\t * @description Handler for change event on file input.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {object} event Event object.\n\t *\n\t * @return {void}\n\t */\n\tconst onFileInputChange = ( event ) => {\n\t\tconst { files } = event.target;\n\t\tonSelectFile( files );\n\t};\n\n\t/**\n\t * @function onTargetClick\n\t * @description Handler for click event on file drop target.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {object} event Event object.\n\t *\n\t * @return {void}\n\t */\n\tconst onTargetClick = ( event ) => {\n\t\tevent.preventDefault();\n\t\tif ( disabled ) {\n\t\t\treturn;\n\t\t}\n\t\tfileInputRef.current.click();\n\t};\n\n\t/**\n\t * @function handleRemove\n\t * @description Handler for removing file from file upload field.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @return {void}\n\t */\n\tconst handleRemove = () => {\n\t\tsetPreview( null );\n\t\tsetSelectedFile( null );\n\t\tsetHasFileURL( false );\n\t};\n\n\t/**\n\t * @function renderFileOptions\n\t * @description Renders allowed file type options.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @return {string} String list of allowed file types.\n\t */\n\tconst renderFileOptions = () => {\n\t\tconst fileOptions = allowedFileTypes;\n\n\t\treturn fileOptions.join( ', ' );\n\t};\n\n\tconst removeButtonProps = {\n\t\tonClick: handleRemove,\n\t\tclassName: 'gform-file-upload__remove',\n\t\tlabel: i18n.delete || '',\n\t\ttype: 'secondary',\n\t};\n\n\tconst replaceButtonProps = {\n\t\tonClick: onTargetClick,\n\t\tclassName: 'gform-file-upload__replace',\n\t\tlabel: i18n.replace || '',\n\t};\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-file-upload__wrapper': true,\n\t\t\t[ `gform-file-upload__wrapper--theme-${ theme }` ]: true,\n\t\t\t'gform-file-upload__wrapper--has-preview': preview,\n\t\t\t'gform-file-upload__wrapper--disabled': disabled,\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst uploaderProps = {\n\t\t...customAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-file-upload': true,\n\t\t\t[ `gform-file-upload--theme-${ theme }` ]: true,\n\t\t}, customClasses ),\n\t};\n\n\tconst previewProps = {\n\t\t...previewAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-file-upload__preview': true,\n\t\t\t[ `gform-file-upload__preview--theme-${ theme }` ]: true,\n\t\t}, previewClasses ),\n\t};\n\n\tconst previewImgProps = {\n\t\tsrc: preview,\n\t\talt: 'Image Preview',\n\t};\n\n\tconst fileDropProps = {\n\t\tonTargetClick,\n\t\tonDrop: ( files ) => {\n\t\t\tif ( disabled ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tonSelectFile( files );\n\t\t},\n\t};\n\n\tconst fileInputProps = {\n\t\tonChange: onFileInputChange,\n\t\tref: fileInputRef,\n\t\ttype: 'file',\n\t\tid,\n\t\tname,\n\t};\n\n\tconst buttonsWrapperProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-file-upload__buttons-wrapper': true,\n\t\t} ),\n\t};\n\n\tconst fileUrlInputProps = {\n\t\tname: `${ name }_file_url`,\n\t\ttype: 'hidden',\n\t\tvalue: fileURL,\n\t};\n\n\treturn (\n\t\t<div { ...wrapperProps }>\n\t\t\t{ preview &&\n\t\t\t<div { ...previewProps }>\n\t\t\t\t{ /* eslint-disable-next-line jsx-a11y/alt-text */ }\n\t\t\t\t<img { ...previewImgProps } />\n\t\t\t</div>\n\t\t\t}\n\t\t\t<div { ...uploaderProps }>\n\t\t\t\t<FileDrop { ...fileDropProps }>\n\t\t\t\t\t<Icon\n\t\t\t\t\t\tcustomClasses={ [ 'gform-file-upload__icon' ] }\n\t\t\t\t\t\ticon={ uploadIcon }\n\t\t\t\t\t\ticonPrefix={ uploadIconPrefix }\n\t\t\t\t\t\tspacing={ 2 }\n\t\t\t\t\t/>\n\t\t\t\t\t<Text customClasses={ [ 'gform-file-upload__message' ] }>\n\t\t\t\t\t\t<span className=\"gform-file-upload__bold-text\">{ i18n.click_to_upload }</span> { i18n.drag_n_drop }\n\t\t\t\t\t</Text>\n\t\t\t\t\t<Text customClasses={ [ 'gform-file-upload__filetypes' ] }>\n\t\t\t\t\t\t{ renderFileOptions() } ({ i18n.max } { maxWidth }x{ maxHeight }px)\n\t\t\t\t\t</Text>\n\t\t\t\t</FileDrop>\n\t\t\t\t<input className=\"gform-file-upload__input\" { ...fileInputProps } />\n\t\t\t\t{ hasFileURL && preview && <input { ...fileUrlInputProps } /> }\n\t\t\t</div>\n\t\t\t{ ( selectedFile || preview ) &&\n\t\t\t<div { ...buttonsWrapperProps }>\n\t\t\t\t<Button { ...replaceButtonProps } />\n\t\t\t\t<Button { ...removeButtonProps } />\n\t\t\t</div>\n\t\t\t}\n\t\t</div>\n\t);\n} );\n\nFileUpload.propTypes = {\n\tallowedFileTypes: PropTypes.array,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\tfileURL: PropTypes.string,\n\ti18n: PropTypes.object,\n\tid: PropTypes.string,\n\tmaxHeight: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t] ),\n\tmaxWidth: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t] ),\n\tname: PropTypes.string,\n\tpreviewAttributes: PropTypes.object,\n\tpreviewClasses: PropTypes.array,\n\ttheme: PropTypes.string,\n\tuploadIcon: PropTypes.string,\n\tuploadIconPrefix: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n};\n\nFileUpload.displayName = 'FileUpload';\n\nexport default FileUpload;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Grid\n * @description A grid component in react.\n *\n * @since 1.1.18\n *\n * @param {object}                     props                  Component props.\n * @param {string}                     props.alignItems       The `align-items` CSS property, only applies if grid is container.\n * @param {JSX.Element|null}           props.children         The React children to contain in the grid component.\n * @param {number}                     props.columnSpacing    The column spacing between grid items.\n * @param {boolean}                    props.container        Whether the grid component is a container or not.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.direction        The `flex-direction` CSS property, only applies if grid is container.\n * @param {string}                     props.elementType      The element type, one of `list` or `div`.\n * @param {boolean}                    props.item             Whether the grid component is an item or not.\n * @param {string}                     props.justifyContent   The `justify-content` CSS property, only applies if grid is container.\n * @param {number}                     props.rowSpacing       The row spacing between grid items.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.type             The grid type, one of `fixed` or `fluid`, only applies if grid is container.\n * @param {number}                     props.width            The width of the grid item in a 12-column grid, from 1 to 12.\n * @param {boolean}                    props.wrap             Whether to wrap grid items or not, only applies if grid is container.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The functional grid component in React.\n *\n * @example\n * import Grid from '@gravityforms/components/react/admin/elements/Grid';\n *\n * return (\n *     <Grid container columnSpacing={ 4 } rowSpacing={ 4 }>\n *         <Grid item>\n *             { 'Grid item 1' }\n *         </Grid>\n *         <Grid item>\n *             { 'Grid item 2' }\n *         </Grid>\n *         <Grid item>\n *             { 'Grid item 3' }\n *         </Grid>\n *     </Grid>\n * );\n *\n */\nconst Grid = forwardRef( ( {\n\talignItems = 'center',\n\tchildren = null,\n\tcolumnSpacing = 0,\n\tcontainer,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdirection = 'row',\n\telementType = 'list',\n\titem,\n\tjustifyContent = 'center',\n\trowSpacing = 0,\n\tspacing = '',\n\ttype = 'fixed',\n\twidth = 0,\n\twrap,\n}, ref ) => {\n\tconst attributes = {\n\t\tclassName: classnames( {\n\t\t\t'gform-grid': true,\n\t\t\t[ `gform-grid--${ elementType }` ]: elementType,\n\t\t\t[ `gform-grid--${ type }` ]: container,\n\t\t\t'gform-grid--wrap': container && wrap,\n\t\t\t'gform-grid--container': container,\n\t\t\t'gform-grid--item': item,\n\t\t\t[ `gform-grid--col-spacing-${ columnSpacing }` ]: container && columnSpacing && Number.isInteger( columnSpacing ),\n\t\t\t[ `gform-grid--row-spacing-${ rowSpacing }` ]: container && rowSpacing && Number.isInteger( rowSpacing ),\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tref,\n\t\t...customAttributes,\n\t};\n\tif ( container ) {\n\t\tattributes.style = {\n\t\t\talignItems,\n\t\t\tflexDirection: direction,\n\t\t\tjustifyContent,\n\t\t};\n\t} else {\n\t\tconst isFixed = 'fixed' === type;\n\t\tif ( width && ! isFixed ) {\n\t\t\tattributes.style.flexBasis = `${ width * 100 / 12 }%`;\n\t\t}\n\t}\n\n\tconst isList = 'list' === elementType;\n\tlet Component = 'div';\n\tif ( container && isList ) {\n\t\tComponent = 'ul';\n\t} else if ( item && isList ) {\n\t\tComponent = 'li';\n\t}\n\n\treturn (\n\t\t<Component { ...attributes }>\n\t\t\t{ children }\n\t\t</Component>\n\t);\n} );\n\nGrid.propTypes = {\n\talignItems: PropTypes.string,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcolumnSpacing: PropTypes.number,\n\tcontainer: PropTypes.bool,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdirection: PropTypes.string,\n\telementType: PropTypes.oneOf( [ 'list', 'div' ] ),\n\titem: PropTypes.bool,\n\tjustifyContent: PropTypes.string,\n\trowSpacing: PropTypes.number,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttype: PropTypes.oneOf( [ 'fixed', 'fluid' ] ),\n\twidth: PropTypes.number,\n\twrap: PropTypes.bool,\n};\n\nGrid.displayName = 'Grid';\n\nexport default Grid;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Heading\n * @description The heading component.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {JSX.Element}                props.children         React element children.\n * @param {string}                     props.content          The text content.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.size             The font size for the heading.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.tagName          The tag used for the heading, from `h1` to `h6`.\n * @param {string}                     props.weight           The font weight for the heading.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The heading component.\n *\n * @example\n * import Heading from '@gravityforms/components/react/admin/elements/Heading';\n *\n * return <Heading tagName=\"h2\">{ 'Heading text' }</Heading>;\n *\n */\nconst Heading = forwardRef( ( {\n\tchildren = null,\n\tcontent = '',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tsize = 'display-3xl',\n\tspacing = '',\n\ttagName = 'h1',\n\tweight = 'semibold',\n}, ref ) => {\n\tconst headingAttributes = {\n\t\tclassName: classnames( {\n\t\t\t'gform-heading': true,\n\t\t\t'gform-text': true,\n\t\t\t[ `gform-typography--size-${ size }` ]: true,\n\t\t\t[ `gform-typography--weight-${ weight }` ]: true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tref,\n\t\t...customAttributes,\n\t};\n\n\tconst Container = tagName;\n\n\treturn (\n\t\t<Container { ...headingAttributes }>\n\t\t\t{ content }\n\t\t\t{ children }\n\t\t</Container>\n\t);\n} );\n\nHeading.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcontent: PropTypes.string,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttagName: PropTypes.string,\n\tweight: PropTypes.string,\n};\n\nHeading.displayName = 'Heading';\n\nexport default Heading;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\nconst possiblePositions = [\n\t'center',\n\t'top',\n\t'bottom',\n\t'left',\n\t'right',\n\t'top left',\n\t'top center',\n\t'top right',\n\t'center left',\n\t'center center',\n\t'center right',\n\t'bottom left',\n\t'bottom center',\n\t'bottom right',\n];\n\n/**\n * @module Image\n * @description An image component in react.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                   Component props.\n * @param {string}                     props.altText           The alt text for the image.\n * @param {boolean}                    props.asBg              Whether the image is a background image or not.\n * @param {number}                     props.aspectRatio       The aspect ratio of the image, as width / height. This only applies to background images.\n * @param {JSX.Element|string}         props.caption           The caption for the image. This only applies if the image is a background image.\n * @param {object}                     props.captionAttributes Attributes for the image caption element.\n * @param {object}                     props.customAttributes  Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses     Custom classes for the component.\n * @param {number}                     props.height            The height of the image, in px. This only applies if the image is a background image.\n * @param {object}                     props.imageAttributes   Attributes for the image element.\n * @param {string}                     props.imagePosition     The position of the image, if it is a background image.\n * @param {boolean}                    props.lazyload          Whether to lazyload the image or not.\n * @param {string|number|Array|object} props.spacing           The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.url               The url of the image.\n * @param {number}                     props.width             The width of the image, in px.\n * @param {object|null}                ref                     Ref to the component.\n *\n * @return {JSX.Element} Return the function image component in React.\n *\n * @example\n * import Image from '@gravityforms/components/react/admin/elements/Image';\n *\n * return (\n *     <Image\n *         asBg={ true }\n *         aspectRatio={ 1.5 }\n *         url=\"https://path.to.image/\"\n *     />\n * );\n *\n */\nconst Image = forwardRef( ( {\n\taltText = '',\n\tasBg = false,\n\taspectRatio = 0,\n\tcaption = null,\n\tcaptionAttributes = {},\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\theight = 0,\n\timageAttributes = {},\n\timagePosition = 'center',\n\tlazyload = false,\n\tspacing = '',\n\turl = '',\n\twidth = 0,\n}, ref ) => {\n\t/**\n\t * @function getBackgroundPosition\n\t * @description Get the background position for the background image.\n\t *\n\t * @param {string} position The background image position.\n\t *\n\t * @return {string} The position of the background image.\n\t */\n\tconst getBackgroundPosition = ( position ) => {\n\t\tif ( ! possiblePositions.includes( position ) ) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn position;\n\t};\n\n\t/**\n\t * @function getBackgroundImage\n\t * @description Get the markup in react for a background image.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {object} props                 Props for the background image.\n\t * @param {object} props.attributes      The attributes for the image wrapper.\n\t * @param {object} props.imageAttributes The attributes for the background image.\n\t *\n\t * @return {JSX.Element} The background image.\n\t */\n\tconst getBackgroundImage = ( {\n\t\tattributes,\n\t\timageAttributes: bgImageAttributes,\n\t} ) => {\n\t\treturn (\n\t\t\t<div { ...attributes }>\n\t\t\t\t<div { ...bgImageAttributes } />\n\t\t\t</div>\n\t\t);\n\t};\n\n\t/**\n\t * @function getImageCaption\n\t * @description Get the markup in react for a caption for the image component.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {object}              props                  Props for the caption.\n\t * @param {JSX.Element|string}  props.children         React element children.\n\t * @param {object}              props.customAttributes Custom attributes for the caption.\n\t * @param {string|Array|object} props.customClasses    Custom classes for the caption.\n\t *\n\t * @return {JSX.Element} The caption for the image component.\n\t */\n\tconst getImageCaption = ( {\n\t\tchildren = null,\n\t\tcustomAttributes: captionCustomAttributes = {},\n\t\tcustomClasses: captionCustomClasses = [],\n\t} ) => {\n\t\tconst captionAttrs = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-image__caption': true,\n\t\t\t}, captionCustomClasses ),\n\t\t\t...captionCustomAttributes,\n\t\t};\n\n\t\treturn (\n\t\t\t<figcaption { ...captionAttrs }>\n\t\t\t\t{ children }\n\t\t\t</figcaption>\n\t\t);\n\t};\n\n\t/**\n\t * @function getImageWithCaption\n\t * @description Get the markup in react for an image with caption.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {object}             props                   Props for the image with caption.\n\t * @param {object}             props.attributes        The attributes for the image wrapper.\n\t * @param {JSX.Element|string} props.caption           The caption for the image, can be a string or react children.\n\t * @param {object}             props.captionAttributes The attributes for the caption element.\n\t * @param {object}             props.imageAttributes   The attributes for the image.\n\t *\n\t * @return {JSX.Element} The image with caption.\n\t */\n\tconst getImageWithCaption = ( {\n\t\tattributes,\n\t\tcaption: captionElement,\n\t\tcaptionAttributes: captionElementAttributes,\n\t\timageAttributes: imgAttributes,\n\t} ) => {\n\t\treturn (\n\t\t\t<figure { ...attributes }>\n\t\t\t\t<img { ...imgAttributes } />{ /* eslint-disable-line jsx-a11y/alt-text */ }\n\t\t\t\t{ captionElement && getImageCaption( {\n\t\t\t\t\t...captionElementAttributes,\n\t\t\t\t\tchildren: captionElement,\n\t\t\t\t} ) }\n\t\t\t</figure>\n\t\t);\n\t};\n\n\tconst attrs = {\n\t\tclassName: classnames( {\n\t\t\t'gform-image': true,\n\t\t\t'gform-image--bg': asBg,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tref,\n\t\t...customAttributes,\n\t};\n\tconst imageAttrs = {\n\t\t...imageAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-image__image': true,\n\t\t}, imageAttributes.customClasses ),\n\t};\n\n\tif ( asBg ) { // Background image.\n\t\timageAttrs.style = {\n\t\t\tbackground: `center / cover no-repeat url('${ url }')`,\n\t\t\tbackgroundPosition: getBackgroundPosition( imagePosition ),\n\t\t\t...( imageAttributes.style || {} ),\n\t\t};\n\t\tif ( aspectRatio ) {\n\t\t\tconst padding = Math.round( ( 10000 / aspectRatio ) ) / 100; // Round to nearest 2 decimals.\n\t\t\timageAttrs.style.paddingBottom = `${ padding }%`;\n\t\t}\n\t\tif ( width ) {\n\t\t\tattrs.style = {\n\t\t\t\t...( customAttributes.style || {} ),\n\t\t\t\twidth: `${ width }px`,\n\t\t\t};\n\t\t}\n\t\timageAttrs.role = 'img';\n\t\timageAttrs[ 'aria-label' ] = altText;\n\t} else { // Normal image.\n\t\tconst imageStyles = {};\n\t\timageAttrs.src = url;\n\t\timageAttrs.alt = altText;\n\t\tif ( width ) {\n\t\t\timageStyles.width = `${ width }px`;\n\t\t}\n\t\tif ( height ) {\n\t\t\timageStyles.height = `${ height }px`;\n\t\t}\n\t\tif ( 'lazy' === lazyload ) {\n\t\t\timageAttrs.lazyload = 'lazy';\n\t\t}\n\t\timageAttrs.style = {\n\t\t\t...( imageAttributes.style || {} ),\n\t\t\t...imageStyles,\n\t\t};\n\t}\n\n\treturn asBg\n\t\t? getBackgroundImage( {\n\t\t\tattributes: attrs,\n\t\t\timageAttributes: imageAttrs,\n\t\t} )\n\t\t: ( getImageWithCaption( {\n\t\t\tattributes: attrs,\n\t\t\timageAttributes: imageAttrs,\n\t\t\tcaption,\n\t\t\tcaptionAttributes,\n\t\t} ) );\n} );\n\nImage.propTypes = {\n\taltText: PropTypes.string,\n\tasBg: PropTypes.bool,\n\taspectRatio: PropTypes.number,\n\tcaption: PropTypes.node,\n\tcaptionAttributes: PropTypes.object,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\theight: PropTypes.number,\n\timageAttributes: PropTypes.object,\n\timagePosition: PropTypes.string,\n\tlazyload: PropTypes.bool,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\turl: PropTypes.string,\n\twidth: PropTypes.number,\n};\n\nImage.displayName = 'Image';\n\nexport default Image;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport { useStateWithDep } from '@gravityforms/react-utils';\nimport Label from '../Label';\nimport HelpText from '../HelpText';\n\nconst { useState, forwardRef } = React;\n\n/**\n * @module Input\n * @description A multi type input component that supports standard text, email, tel.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                    Component props.\n * @param {boolean}                    props.controlled         Whether the input is controlled or not.\n * @param {object}                     props.customAttributes   Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses      Custom classes for the component.\n * @param {boolean}                    props.disabled           If input is disabled.\n * @param {boolean}                    props.error              If the field is in error state or not.\n * @param {object}                     props.helpTextAttributes Custom attribute for the help text.\n * @param {string}                     props.helpTextPosition   The position of the help text.\n * @param {string}                     props.id                 Optional id. Auto generated if not passed.\n * @param {object}                     props.labelAttributes    Any custom attributes for the label.\n * @param {string}                     props.name               The name attribute for the input.\n * @param {Function}                   props.onBlur             On blur function handler.\n * @param {Function}                   props.onChange           On change function handler.\n * @param {Function}                   props.onFocus            On focus function handler.\n * @param {string}                     props.placeholder        The optional placeholder attribute for the input.\n * @param {boolean}                    props.required           Whether the field is required or not.\n * @param {object}                     props.requiredLabel      Required label properties.\n * @param {string}                     props.size               The input size: regular (`size-r`), large (`size-l`), or extra large (`size-xl`).\n * @param {string|number|Array|object} props.spacing            The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.theme              The theme of the input.\n * @param {string}                     props.type               The input type.\n * @param {string}                     props.value              The input value.\n * @param {object}                     props.wrapperAttributes  Custom attributes for the wrapper element.\n * @param {string|Array|object}        props.wrapperClasses     Custom classes for the wrapper element.\n * @param {object}                     props.wrapperTagName     Tag to use for the input wrapper. Defaults to `div`.\n * @param {object|null}                ref                      Ref to the component.\n *\n * @return {JSX.Element} The input component.\n *\n * @example\n * import Input from '@gravityforms/components/react/admin/elements/Input';\n *\n * return (\n *     <Input\n *         onChange={ () => {} }\n *         placeholder=\"I am a placeholder\"\n *     />\n * );\n *\n */\nconst Input = forwardRef( ( {\n\tcontrolled = false,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\terror = false,\n\thelpTextAttributes = {\n\t\tsize: 'text-xs',\n\t\tweight: 'regular',\n\t},\n\thelpTextPosition = 'below',\n\tid = '',\n\tlabelAttributes = {\n\t\tsize: 'text-sm',\n\t\tweight: 'medium',\n\t},\n\tname = '',\n\tonBlur = () => {},\n\tonChange = () => {},\n\tonFocus = () => {},\n\tplaceholder = '',\n\trequired = false,\n\trequiredLabel = {\n\t\tsize: 'text-sm',\n\t\tweight: 'medium',\n\t},\n\tsize = 'size-r',\n\tspacing = '',\n\ttheme = 'cosmos',\n\ttype = 'text',\n\tvalue = '',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n\twrapperTagName = 'div',\n}, ref ) => {\n\tconst useStateFxn = controlled ? useStateWithDep : useState;\n\tconst [ inputValue, setInputValue ] = useStateFxn( value );\n\tconst inputId = id || uniqueId( 'input' );\n\tconst helpTextId = `${ inputId }-help-text`;\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input-wrapper': true,\n\t\t\t[ `gform-input-wrapper--theme-${ theme }` ]: true,\n\t\t\t'gform-input-wrapper--input': true,\n\t\t\t'gform-input-wrapper--disabled': disabled,\n\t\t\t...spacerClasses( spacing ),\n\t\t\t'gform-input-wrapper--required': required,\n\t\t\t'gform-input-wrapper--error': error,\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst inputProps = {\n\t\t...customAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input': true,\n\t\t\t'gform-typography--size-text-sm': 'cosmos' === theme,\n\t\t\t[ `gform-input--${ size }` ]: true,\n\t\t\t[ `gform-input--${ type }` ]: true,\n\t\t}, customClasses ),\n\t\tid: inputId,\n\t\tname,\n\t\tonBlur,\n\t\tonChange: ( e ) => {\n\t\t\tconst { value: newInputValue } = e.target;\n\t\t\tsetInputValue( newInputValue );\n\t\t\tonChange( newInputValue, e );\n\t\t},\n\t\tonFocus,\n\t\ttype,\n\t\tvalue: inputValue,\n\t};\n\n\tif ( placeholder ) {\n\t\tinputProps.placeholder = placeholder;\n\t}\n\tif ( disabled ) {\n\t\tinputProps.disabled = true;\n\t}\n\tif ( helpTextAttributes.content ) {\n\t\tinputProps[ 'aria-describedby' ] = helpTextId;\n\t}\n\n\tif ( required ) {\n\t\tinputProps.required = true;\n\t}\n\n\tconst labelProps = {\n\t\t...labelAttributes,\n\t\thtmlFor: inputId,\n\t};\n\n\tconst helpTextProps = {\n\t\t...helpTextAttributes,\n\t\tid: helpTextId,\n\t};\n\n\tconst requiredLabelProps = {\n\t\tcustomClasses: classnames(\n\t\t\t[ 'gform-input-help-text--required' ],\n\t\t),\n\t\tid: helpTextId,\n\t\t...requiredLabel,\n\t};\n\n\tconst Container = wrapperTagName;\n\n\treturn (\n\t\t<Container { ...wrapperProps }>\n\t\t\t<Label { ...labelProps } />{ required && <HelpText { ...requiredLabelProps } /> }\n\t\t\t{ helpTextPosition === 'above' && <HelpText { ...helpTextProps } /> }\n\t\t\t<input { ...inputProps } />\n\t\t\t{ helpTextPosition === 'below' && <HelpText { ...helpTextProps } /> }\n\t\t</Container>\n\t);\n} );\n\nInput.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\terror: PropTypes.bool,\n\thelpTextAttributes: PropTypes.object,\n\thelpTextPosition: PropTypes.string,\n\tid: PropTypes.string,\n\tlabelAttributes: PropTypes.object,\n\tname: PropTypes.string,\n\tonBlur: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonFocus: PropTypes.func,\n\tplaceholder: PropTypes.string,\n\trequired: PropTypes.bool,\n\trequiredLabel: PropTypes.object,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttheme: PropTypes.string,\n\ttype: PropTypes.string,\n\tvalue: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\twrapperTagName: PropTypes.string,\n};\n\nInput.displayName = 'Input';\n\nexport default Input;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Link\n * @description A link component in React.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {JSX.Element|null}           props.children         React element children.\n * @param {string}                     props.content          Text content for the link.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.href             The href attribute for the link.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.target           The target attribute for the link.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The link component.\n *\n * @example\n * import Link from '@gravityforms/components/react/admin/elements/Link';\n *\n * return <Link href=\"https://path.to.link/\" target=\"_blank\">{ 'Click me' }</Link>;\n *\n */\nconst Link = forwardRef( ( {\n\tchildren = null,\n\tcontent = '',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\thref = '',\n\tspacing = '',\n\ttarget = '',\n}, ref ) => {\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-link': true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\thref,\n\t\ttarget,\n\t\tref,\n\t\t...customAttributes,\n\t};\n\tif ( target === '_blank' ) {\n\t\tcomponentProps.rel = 'noopener';\n\t}\n\n\treturn (\n\t\t<a { ...componentProps }>\n\t\t\t{ content }\n\t\t\t{ children }\n\t\t</a>\n\t);\n} );\n\nLink.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcontent: PropTypes.string,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\thref: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttarget: PropTypes.string,\n};\n\nLink.displayName = 'Link';\n\nexport default Link;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport Label from '../Label';\nimport HelpText from '../HelpText';\n\nconst { useState, forwardRef } = React;\n\n/**\n * @module Radio\n * @description A radio input component.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                    Component props.\n * @param {object}                     props.customAttributes   Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses      Custom classes for the component.\n * @param {boolean}                    props.disabled           If radio is disabled.\n * @param {object}                     props.helpTextAttributes Custom attribute for the help text.\n * @param {string}                     props.id                 Optional id. Auto generated if not passed.\n * @param {boolean}                    props.initialChecked     Is it checked on render?\n * @param {object}                     props.labelAttributes    Any custom attributes for the label.\n * @param {string}                     props.name               The name attribute for the radio.\n * @param {Function}                   props.onBlur             On blur function handler.\n * @param {Function}                   props.onChange           On change function handler.\n * @param {Function}                   props.onFocus            On focus function handler.\n * @param {string}                     props.size               The radio size: small (`size-sm`) or medium (`size-md`).\n * @param {string|number|Array|object} props.spacing            The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.theme              The theme of the radio.\n * @param {string}                     props.value              The radio value.\n * @param {object}                     props.wrapperAttributes  Custom attributes for the wrapper element.\n * @param {string|Array|object}        props.wrapperClasses     Custom classes for the wrapper element.\n * @param {object}                     props.wrapperTagName     Tag to use for the radio wrapper. Defaults to `div`.\n * @param {object|null}                ref                      Ref to the component.\n *\n * @return {JSX.Element} The radio component.\n *\n * @example\n * import Radio from '@gravityforms/components/react/admin/elements/Radio';\n *\n * return <Radio id=\"radio-id\" name=\"radio-name\" onChange={ () => {} } value=\"radio-value\" />;\n *\n */\nconst Radio = forwardRef( ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\thelpTextAttributes = {},\n\tid = '',\n\tinitialChecked = false,\n\tlabelAttributes = {},\n\tname = '',\n\tonBlur = () => {},\n\tonChange = () => {},\n\tonFocus = () => {},\n\tsize = 'size-sm',\n\tspacing = '',\n\ttheme = 'cosmos',\n\tvalue = '',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n\twrapperTagName = 'div',\n}, ref ) => {\n\tconst [ inputChecked, setInputChecked ] = useState( initialChecked );\n\tconst inputId = id || uniqueId( 'radio' );\n\tconst helpTextId = `${ inputId }-help-text`;\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input-wrapper': true,\n\t\t\t[ `gform-input-wrapper--theme-${ theme }` ]: true,\n\t\t\t'gform-input-wrapper--radio': true,\n\t\t\t'gform-input-wrapper--disabled': disabled,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst inputProps = {\n\t\t...customAttributes,\n\t\tchecked: inputChecked,\n\t\tclassName: classnames( {\n\t\t\t'gform-input--radio': true,\n\t\t\t[ `gform-input--${ size }` ]: true,\n\t\t}, customClasses ),\n\t\tid: inputId,\n\t\tname,\n\t\tonBlur,\n\t\tonChange: ( e ) => {\n\t\t\tconst { checked: inputCheckedState } = e.target;\n\t\t\tsetInputChecked( inputCheckedState );\n\t\t\tonChange( inputCheckedState, e );\n\t\t},\n\t\tonFocus,\n\t\ttype: 'radio',\n\t\tvalue,\n\t};\n\n\tif ( helpTextAttributes.content ) {\n\t\tinputProps[ 'aria-describedby' ] = helpTextId;\n\t}\n\tif ( disabled ) {\n\t\tinputProps.disabled = true;\n\t}\n\n\tconst labelProps = {\n\t\t...labelAttributes,\n\t\thtmlFor: inputId,\n\t};\n\n\tconst helpTextProps = {\n\t\t...helpTextAttributes,\n\t\tid: helpTextId,\n\t};\n\n\tconst Container = wrapperTagName;\n\n\treturn (\n\t\t<Container { ...wrapperProps }>\n\t\t\t<input { ...inputProps } />\n\t\t\t<Label { ...labelProps } />\n\t\t\t<HelpText { ...helpTextProps } />\n\t\t</Container>\n\t);\n} );\n\nRadio.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\thelpTextAttributes: PropTypes.object,\n\tid: PropTypes.string,\n\tinitialChecked: PropTypes.bool,\n\tlabelAttributes: PropTypes.object,\n\tname: PropTypes.string,\n\tonBlur: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonFocus: PropTypes.func,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttheme: PropTypes.string,\n\tvalue: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\twrapperTagName: PropTypes.string,\n};\n\nRadio.displayName = 'Radio';\n\nexport default Radio;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport Label from '../Label';\nimport HelpText from '../HelpText';\n\nconst { useState, forwardRef } = React;\n\n/**\n * @module Range\n * @description A multi type input component that supports standard text, email, tel.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                    Component props.\n * @param {object}                     props.customAttributes   Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses      Custom classes for the component.\n * @param {boolean}                    props.disabled           If input is disabled.\n * @param {object}                     props.helpTextAttributes Custom attribute for the help text.\n * @param {string}                     props.helpTextPosition   The position of the help text.\n * @param {string}                     props.id                 Optional id. Auto generated if not passed.\n * @param {object}                     props.labelAttributes    Any custom attributes for the label.\n * @param {number}                     props.max                Maximum value for the range.\n * @param {number}                     props.min                Minimum value for the range.\n * @param {string}                     props.name               The name attribute for the input.\n * @param {Function}                   props.onBlur             On blur function handler.\n * @param {Function}                   props.onChange           On change function handler.\n * @param {Function}                   props.onFocus            On focus function handler.\n * @param {boolean}                    props.showValueInput     Whether to display the value input or not.\n * @param {string|number|Array|object} props.spacing            The spacing for the component, as a string, number, array, or object.\n * @param {number}                     props.step               The step size of the range.\n * @param {string}                     props.theme              The theme of the range.\n * @param {number}                     props.value              The input value.\n * @param {string}                     props.valueInputPosition The position of the value input, one of `before` or `after`.\n * @param {string}                     props.valueInputSuffix   Suffix for the value input.\n * @param {object}                     props.wrapperAttributes  Custom attributes for the wrapper element.\n * @param {string|Array|object}        props.wrapperClasses     Custom classes for the wrapper element.\n * @param {object}                     props.wrapperTagName     Tag to use for the input wrapper. Defaults to `div`.\n * @param {object|null}                ref                      Ref to the component.\n *\n * @return {JSX.Element} The range component.\n *\n * @example\n * import Range from '@gravityforms/components/react/admin/elements/Range';\n *\n * return (\n *     <Range\n *         max={ 100 }\n *         min={ 0 }\n *         name=\"range-name\"\n *         onChange={ () => {} }\n *         step={ 5 }\n *         value={ 50 }\n *     />\n * );\n *\n */\nconst Range = forwardRef( ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\thelpTextAttributes = {\n\t\tsize: 'text-xs',\n\t\tweight: 'regular',\n\t},\n\thelpTextPosition = 'below',\n\tid = '',\n\tlabelAttributes = {\n\t\tsize: 'text-sm',\n\t\tweight: 'medium',\n\t},\n\tmax = 0,\n\tmin = 0,\n\tname = '',\n\tonBlur = () => {},\n\tonChange = () => {},\n\tonFocus = () => {},\n\tshowValueInput = false,\n\tspacing = '',\n\tstep = 1,\n\ttheme = 'cosmos',\n\tvalue = 0,\n\tvalueInputPosition = 'before',\n\tvalueInputSuffix = '',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n\twrapperTagName = 'div',\n}, ref ) => {\n\tconst [ inputValue, setInputValue ] = useState( value );\n\tconst inputId = id || uniqueId( 'input' );\n\tconst helpTextId = `${ inputId }-help-text`;\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input-wrapper': true,\n\t\t\t[ `gform-input-wrapper--theme-${ theme }` ]: true,\n\t\t\t'gform-input-wrapper--input': true,\n\t\t\t'gform-input-wrapper--disabled': disabled,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst inputProps = {\n\t\t...customAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input': true,\n\t\t\t'gform-input--range': true,\n\t\t\t'gform-input--theme-cosmos': true,\n\t\t}, customClasses ),\n\t\tid: inputId,\n\t\tmax,\n\t\tmin,\n\t\tstep,\n\t\tname,\n\t\tonBlur,\n\t\tonChange: ( e ) => {\n\t\t\tconst { value: newInputValue } = e.target;\n\t\t\tsetInputValue( newInputValue );\n\t\t\tonChange( newInputValue, e );\n\t\t},\n\t\tonFocus,\n\t\ttype: 'range',\n\t\tvalue: inputValue,\n\t};\n\n\tif ( disabled ) {\n\t\tinputProps.disabled = true;\n\t}\n\n\tconst labelProps = {\n\t\t...labelAttributes,\n\t\thtmlFor: inputId,\n\t};\n\n\tconst helpTextProps = {\n\t\t...helpTextAttributes,\n\t\tid: helpTextId,\n\t};\n\n\tconst inputWrapperProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-input-range-wrapper': true,\n\t\t} ),\n\t};\n\n\tconst Container = wrapperTagName;\n\n\t/**\n\t * @function getValueInput\n\t * @description Get the value input for the range component.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @return {JSX.Element} The value input react markup.\n\t */\n\tconst getValueInput = () => {\n\t\tconst valueInputProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input--range-value-input': true,\n\t\t\t} ),\n\t\t\tdisabled,\n\t\t\tmax,\n\t\t\tmin,\n\t\t\tonChange: ( e ) => {\n\t\t\t\tconst { value: newInputValue } = e.target;\n\t\t\t\tsetInputValue( newInputValue );\n\t\t\t},\n\t\t\ttype: 'number',\n\t\t\tvalue: inputValue,\n\t\t};\n\n\t\tconst containerProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input-range-value-wrapper': true,\n\t\t\t} ),\n\t\t};\n\n\t\treturn (\n\t\t\t<div { ...containerProps }>\n\t\t\t\t<input { ...valueInputProps } />\n\t\t\t\t{ valueInputSuffix && <div className=\"gform-input--range__suffix\">{ valueInputSuffix }</div> }\n\t\t\t</div>\n\t\t);\n\t};\n\n\treturn (\n\t\t<Container { ...wrapperProps }>\n\t\t\t<Label { ...labelProps } />\n\t\t\t{ helpTextPosition === 'above' && <HelpText { ...helpTextProps } /> }\n\t\t\t<div { ...inputWrapperProps } >\n\t\t\t\t{ showValueInput && valueInputPosition === 'before' && getValueInput() }\n\t\t\t\t<input { ...inputProps } />\n\t\t\t\t{ showValueInput && valueInputPosition === 'after' && getValueInput() }\n\t\t\t</div>\n\t\t\t{ helpTextPosition === 'below' && <HelpText { ...helpTextProps } /> }\n\t\t</Container>\n\t);\n} );\n\nRange.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\thelpTextAttributes: PropTypes.object,\n\thelpTextPosition: PropTypes.string,\n\tid: PropTypes.string,\n\tlabelAttributes: PropTypes.object,\n\tmax: PropTypes.number,\n\tmin: PropTypes.number,\n\tname: PropTypes.string,\n\tonBlur: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonFocus: PropTypes.func,\n\tshowValueInput: PropTypes.bool,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tstep: PropTypes.number,\n\ttheme: PropTypes.string,\n\tvalue: PropTypes.number,\n\tvalueInputPosition: PropTypes.oneOf( [ 'before', 'after' ] ),\n\tvalueInputSuffix: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\twrapperTagName: PropTypes.string,\n};\n\nRange.displayName = 'Range';\n\nexport default Range;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport Label from '../Label';\nimport HelpText from '../HelpText';\nimport { uniqueId, isObject, isEmptyObject, slugify, spacerClasses } from '@gravityforms/utils';\n\nconst { useState, forwardRef } = React;\n\n/**\n * @module Select\n * @description A select component to display a list of items.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                    Component props.\n * @param {object}                     props.customAttributes   Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses      Custom classes for the component.\n * @param {boolean}                    props.disabled           If select is disabled.\n * @param {string}                     props.helpTextAttributes Custom attribute for the help text.\n * @param {string}                     props.helpTextPosition   The position of the help text. Above or below.\n * @param {string}                     props.id                 Optional id. Auto generated if not passed.\n * @param {string}                     props.initialValue       Initial value for the select.\n * @param {string}                     props.labelAttributes    Any custom attributes for the label.\n * @param {string}                     props.name               The name attribute for the select.\n * @param {Function}                   props.onBlur             On blur function handler.\n * @param {Function}                   props.onChange           On change function handler.\n * @param {Function}                   props.onFocus            On focus function handler.\n * @param {Array}                      props.options            An array of options, each option as an object in the following structure:\n *                                                              {\n *                                                              customOptionAttrs: {}, // Key-value pairs of custom attributes.\n *                                                              customOptionClasses: [], // Array of strings of custom classes.\n *                                                              label: '', // Label as a string.\n *                                                              value: '', // Value as a string.\n *                                                              }\n * @param {string}                     props.size               The select size. Regular (size-r) or extra large (size-xl).\n * @param {string|number|Array|object} props.spacing            The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.theme              The theme of the select.\n * @param {object}                     props.wrapperAttributes  Custom attributes for the wrapper element.\n * @param {string|Array|object}        props.wrapperClasses     Custom classes for the wrapper element.\n * @param {object}                     props.wrapperTagName     Tag to use for the textarea wrapper. Defaults to `div`.\n * @param {string}                     props.ariaLabel          The aria-label text for the select element.\n * @param {object|null}                ref                      Ref to the component.\n *\n * @return {JSX.Element} The select component.\n *\n * @example\n * import Select from '@gravityforms/components/react/admin/elements/Select';\n *\n * return (\n *     <Select\n *         name=\"select-name\"\n *         onChange={ () => {} }\n *         options={ [\n *             {\n *                 label: 'Option 1',\n *                 value: 'option-1',\n *             },\n *             {\n *                 label: 'Option 2',\n *                 value: 'option-2',\n *             },\n *             {\n *                 label: 'Option 3',\n *                 value: 'option-3',\n *             },\n *         ] }\n *     />\n * );\n *\n */\nconst Select = forwardRef( ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\thelpTextAttributes = {},\n\thelpTextPosition = 'below',\n\tid = '',\n\tinitialValue = '',\n\tlabelAttributes = {},\n\tname = '',\n\tonBlur = () => {},\n\tonChange = () => {},\n\tonFocus = () => {},\n\toptions = [],\n\tsize = 'size-r',\n\tspacing = '',\n\ttheme = 'cosmos',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n\twrapperTagName = 'div',\n\tariaLabel = '',\n}, ref ) => {\n\tconst [ selectValue, setSelectValue ] = useState( initialValue );\n\tconst inputId = id || uniqueId( 'gform-select' );\n\tconst helpTextId = `${ inputId }-help-text`;\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input-wrapper': true,\n\t\t\t[ `gform-input-wrapper--theme-${ theme }` ]: true,\n\t\t\t'gform-input-wrapper--select': true,\n\t\t\t'gform-input-wrapper--disabled': disabled,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst selectProps = {\n\t\t...customAttributes,\n\t\tclassName: classnames( [\n\t\t\t'gform-select',\n\t\t\t`gform-select--${ size }`,\n\t\t], customClasses ),\n\t\tid: inputId,\n\t\tname,\n\t\tonBlur,\n\t\tonChange: ( e ) => {\n\t\t\tconst { value: newSelectValue } = e.target;\n\t\t\tsetSelectValue( newSelectValue );\n\t\t\tonChange( newSelectValue, e );\n\t\t},\n\t\tonFocus,\n\t\tvalue: selectValue,\n\t};\n\n\tif ( disabled ) {\n\t\tselectProps.disabled = true;\n\t}\n\tif ( helpTextAttributes.content ) {\n\t\tselectProps[ 'aria-describedby' ] = helpTextId;\n\t}\n\n\tif ( ariaLabel ) {\n\t\tselectProps[ 'aria-label' ] = ariaLabel;\n\t}\n\n\tconst labelProps = {\n\t\t...labelAttributes,\n\t\thtmlFor: inputId,\n\t};\n\n\tconst helpTextProps = {\n\t\t...helpTextAttributes,\n\t\tid: helpTextId,\n\t};\n\n\tconst getSubOptions = ( choices = [] ) => {\n\t\tif ( isObject( choices ) && ! isEmptyObject( choices ) ) {\n\t\t\treturn Object.entries( choices ).map( ( [ key ] ) => choices[ key ] );\n\t\t}\n\t\treturn choices;\n\t};\n\n\tconst Container = wrapperTagName;\n\n\tconst getOption = ( ( {\n\t\tcustomOptionAttributes = {},\n\t\tcustomOptionClasses = [],\n\t\tlabel = '',\n\t\tvalue = '',\n\t}, index ) => {\n\t\treturn (\n\t\t\t<option\n\t\t\t\tclassName={ classnames( [\n\t\t\t\t\t'gform-select__option',\n\t\t\t\t], customOptionClasses ) }\n\t\t\t\tkey={ `${ slugify( label ) }-${ index }` }\n\t\t\t\tvalue={ value }\n\t\t\t\t{ ...customOptionAttributes }\n\t\t\t>\n\t\t\t\t{ label }\n\t\t\t</option>\n\t\t);\n\t} );\n\n\tconst getOptions = options.map( ( data, index ) => {\n\t\tconst subOptions = getSubOptions( data.choices );\n\t\treturn subOptions.length ? (\n\t\t\t<optgroup label={ data.label } key={ `${ slugify( data.label ) }-${ index }` }>\n\t\t\t\t{ subOptions.map( ( subData, subIndex ) => getOption( subData, subIndex ) ) }\n\t\t\t</optgroup>\n\t\t) : getOption( data, index );\n\t} );\n\n\treturn (\n\t\t<Container { ...wrapperProps }>\n\t\t\t<Label { ...labelProps } />\n\t\t\t{ helpTextPosition === 'above' && <HelpText { ...helpTextProps } /> }\n\t\t\t<div className=\"gform-select__wrapper\">\n\t\t\t\t<select { ...selectProps }>\n\t\t\t\t\t{ getOptions }\n\t\t\t\t</select>\n\t\t\t</div>\n\t\t\t{ helpTextPosition === 'below' && <HelpText { ...helpTextProps } /> }\n\t\t</Container>\n\t);\n} );\n\nSelect.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\thelpTextAttributes: PropTypes.object,\n\thelpTextPosition: PropTypes.string,\n\tid: PropTypes.string,\n\tinitialValue: PropTypes.string,\n\tlabelAttributes: PropTypes.object,\n\tname: PropTypes.string,\n\tonBlur: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonFocus: PropTypes.func,\n\toptions: PropTypes.array,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttheme: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\twrapperTagName: PropTypes.string,\n};\n\nSelect.displayName = 'Select';\n\nexport default Select;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module Tag\n * @description A tag component.\n *\n * @since 1.1.18\n *\n * @param {object}                     props                      Component props.\n * @param {JSX.Element}                props.children             React element children.\n * @param {string}                     props.content              Tag text.\n * @param {object}                     props.customAttributes     Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses        Custom classes for the component.\n * @param {string}                     props.size                 The font size for the label.\n * @param {string|number|Array|object} props.spacing              The spacing for the component, as a string, number, array, or object.\n * @param {boolean}                    props.triangleTag          Whether to show a triangle arrow for the tag.\n * @param {string}                     props.triangleTagDirection The direction of the triangle arrow.\n * @param {string}                     props.type                 The tag type.\n * @param {string}                     props.weight               The font weight for the label.\n * @param {object|null}                ref                        Ref to the component.\n *\n * @return {JSX.Element} The Tag component.\n *\n * @example\n * import Tag from '@gravityforms/components/react/admin/elements/Tag';\n *\n * return <Tag triangleTag>{ 'Elite' }</Tag>;\n *\n */\nconst Tag = forwardRef( ( {\n\tchildren = null,\n\tcontent = '',\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tsize = 'text-xs',\n\tspacing = '',\n\ttriangleTag = false,\n\ttriangleTagDirection = 'left',\n\ttype = 'chathams',\n\tweight = 'semibold',\n}, ref ) => {\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-tag': true,\n\t\t\t[ `gform-tag--type-${ type }` ]: true,\n\t\t\t[ `gform-typography--size-${ size }` ]: true,\n\t\t\t[ `gform-typography--weight-${ weight }` ]: true,\n\t\t\t[ `gform-tag--triangle-${ triangleTagDirection }` ]: triangleTag,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tref,\n\t\t...customAttributes,\n\t};\n\n\treturn (\n\t\t<span { ...componentProps }>\n\t\t\t{ triangleTag && <span className={ 'gform-tag__triangle' } /> }\n\t\t\t{ content }\n\t\t\t{ children }\n\t\t</span>\n\t);\n} );\n\nTag.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcontent: PropTypes.string,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttriangleTag: PropTypes.bool,\n\ttriangleTagDirection: PropTypes.string,\n\ttype: PropTypes.string,\n\tweight: PropTypes.string,\n};\n\nTag.displayName = 'Tag';\n\nexport default Tag;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport { useStateWithDep } from '@gravityforms/react-utils';\nimport Label from '../Label';\nimport HelpText from '../HelpText';\n\nconst { useState, forwardRef } = React;\n\n/**\n * @module Textarea\n * @description A textarea component.\n *\n * @since 1.1.18\n *\n * @param {object}                     props                    Component props.\n * @param {boolean}                    props.controlled         Whether the textarea is controlled or not.\n * @param {object}                     props.customAttributes   Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses      Custom classes for the component.\n * @param {boolean}                    props.disabled           If textarea is disabled.\n * @param {object}                     props.helpTextAttributes Custom attribute for the help text.\n * @param {string}                     props.helpTextPosition   The position of the help text.\n * @param {string}                     props.id                 Optional id. Auto generated if not passed.\n * @param {object}                     props.labelAttributes    Custom attributes for the label.\n * @param {string}                     props.name               The name of the textarea.\n * @param {Function}                   props.onBlur             On blur function handler.\n * @param {Function}                   props.onChange           On change function handler.\n * @param {Function}                   props.onFocus            On focus function handler.\n * @param {string}                     props.placeholder        The optional placeholder attribute for the textarea.\n * @param {string|number|Array|object} props.spacing            The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.theme              The theme of the textarea.\n * @param {string}                     props.value              The textarea's initial value.\n * @param {object}                     props.wrapperAttributes  Custom attributes for the wrapper element.\n * @param {string|Array|object}        props.wrapperClasses     Custom classes for the wrapper element.\n * @param {object}                     props.wrapperTagName     Tag to use for the textarea wrapper. Defaults to `div`.\n * @param {object|null}                ref                      Ref to the component.\n *\n * @return {JSX.Element} The Textarea component.\n *\n * @example\n * import Textarea from '@gravityforms/components/react/admin/elements/Textarea';\n *\n * return (\n *     <Textarea\n *         id=\"textarea-id\"\n *         placeholder=\"Textarea placeholder\"\n *         onChange={ () => {} }\n *     />\n * );\n *\n */\nconst Textarea = forwardRef( ( {\n\tcontrolled = false,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\thelpTextAttributes = {},\n\thelpTextPosition = 'above',\n\tid = '',\n\tlabelAttributes = {},\n\tname = '',\n\tonBlur = () => {},\n\tonChange = () => {},\n\tonFocus = () => {},\n\tplaceholder = '',\n\tspacing = '',\n\ttheme = 'cosmos',\n\tvalue = '',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n\twrapperTagName = 'div',\n}, ref ) => {\n\tconst useStateFxn = controlled ? useStateWithDep : useState;\n\tconst [ inputValue, setInputValue ] = useStateFxn( value );\n\n\tconst inputId = id || uniqueId( 'gform-textarea' );\n\tconst helpTextId = `${ inputId }-help-text`;\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input-wrapper': true,\n\t\t\t'gform-input-wrapper--textarea': true,\n\t\t\t'gform-input-wrapper--disabled': disabled,\n\t\t\t[ `gform-input-wrapper--theme-${ theme }` ]: true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst inputProps = {\n\t\t...customAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-input': true,\n\t\t\t'gform-input--textarea': true,\n\t\t}, customClasses ),\n\t\tid: inputId,\n\t\tname,\n\t\tonBlur,\n\t\tonChange: ( e ) => {\n\t\t\tconst { value: newInputValue } = e.target;\n\t\t\tsetInputValue( newInputValue );\n\t\t\tonChange( newInputValue, e );\n\t\t},\n\t\tonFocus,\n\t\tvalue: inputValue,\n\t};\n\n\tif ( placeholder ) {\n\t\tinputProps.placeholder = placeholder;\n\t}\n\tif ( helpTextAttributes.content ) {\n\t\tinputProps[ 'aria-describedby' ] = helpTextId;\n\t}\n\tif ( disabled ) {\n\t\tinputProps.disabled = 'disabled';\n\t}\n\n\tconst labelProps = {\n\t\t...labelAttributes,\n\t\thtmlFor: inputId,\n\t};\n\n\tconst helpTextProps = {\n\t\t...helpTextAttributes,\n\t\tid: helpTextId,\n\t};\n\n\tconst Container = wrapperTagName;\n\n\treturn (\n\t\t<Container { ...wrapperProps }>\n\t\t\t<Label { ...labelProps } />\n\t\t\t{ helpTextPosition === 'above' && <HelpText { ...helpTextProps } /> }\n\t\t\t<textarea { ...inputProps } />\n\t\t\t{ helpTextPosition === 'below' && <HelpText { ...helpTextProps } /> }\n\t\t</Container>\n\t);\n} );\n\nTextarea.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\thelpTextAttributes: PropTypes.object,\n\thelpTextPosition: PropTypes.string,\n\tid: PropTypes.string,\n\tlabelAttributes: PropTypes.object,\n\tname: PropTypes.string,\n\tonBlur: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonFocus: PropTypes.func,\n\tplaceholder: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttheme: PropTypes.string,\n\tvalue: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\twrapperTagName: PropTypes.string,\n};\n\nTextarea.displayName = 'Textarea';\n\nexport default Textarea;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport Label from '../Label';\n\nconst { useState, forwardRef } = React;\n\n/**\n * @module Toggle\n * @description A toggle component to use wherever boolean based form fields are needed.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                   Component props.\n * @param {JSX.Element}                props.children          React element children.\n * @param {object}                     props.customAttributes  Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses     Custom classes for the component.\n * @param {boolean}                    props.disabled          If toggle is disabled.\n * @param {boolean}                    props.icons             Do we use the checkmark and x icons for this instance.\n * @param {string}                     props.id                Id for the toggle, auto generated if not passed.\n * @param {boolean}                    props.initialChecked    Is it checked on render?\n * @param {object}                     props.labelAttributes   Attributes for the label component.\n * @param {string}                     props.name              Name for the input.\n * @param {Function}                   props.onBlur            On blur function handler.\n * @param {Function}                   props.onChange          On change function handler.\n * @param {Function}                   props.onFocus           On focus function handler.\n * @param {string}                     props.size              Size for the toggle. Small (`size-s`), medium (`size-m`), or large (`size-l`).\n * @param {string|number|Array|object} props.spacing           The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.theme             Theme for the toggle, one of `primary` or `cosmos`.\n * @param {object}                     props.wrapperAttributes Custom attributes for the wrapper element.\n * @param {string|Array|object}        props.wrapperClasses    Custom classes for the wrapper element.\n * @param {object}                     props.wrapperTagName    Tag to use for the toggle wrapper. Defaults to `div`.\n * @param {string}                     props.ariaLabel         The aria-label text for the toggle.\n * @param {object|null}                ref                     Ref to the component.\n *\n * @return {JSX.Element} The toggle component.\n *\n * @example\n * import Toggle from '@gravityforms/components/react/admin/elements/Toggle';\n *\n * return <Toggle disabled={ true } initialChecked={ true } onChange={ () => {} } />;\n *\n */\n\nconst Toggle = forwardRef( ( {\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdisabled = false,\n\ticons = false,\n\tid = '',\n\tinitialChecked = false,\n\tlabelAttributes = {},\n\tname = '',\n\tonBlur = () => {},\n\tonChange = () => {},\n\tonFocus = () => {},\n\tsize = 'size-s',\n\tspacing = '',\n\ttheme = 'cosmos',\n\twrapperAttributes = {},\n\twrapperClasses = [],\n\twrapperTagName = 'div',\n\tariaLabel = '',\n}, ref ) => {\n\tconst [ checked, setChecked ] = useState( initialChecked );\n\tconst inputId = id || uniqueId( 'toggle' );\n\n\tconst wrapperProps = {\n\t\t...wrapperAttributes,\n\t\tclassName: classnames( {\n\t\t\t'gform-toggle': true,\n\t\t\t'gform-toggle--with-icons': icons,\n\t\t\t[ `gform-toggle--theme-${ theme }` ]: true,\n\t\t\t[ `gform-toggle--${ size }` ]: true,\n\t\t\t'gform-toggle--disabled': disabled,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, wrapperClasses ),\n\t\tref,\n\t};\n\n\tconst inputProps = {\n\t\t...customAttributes,\n\t\tchecked,\n\t\tclassName: classnames( [\n\t\t\t'gform-toggle__toggle',\n\t\t], customClasses ),\n\t\tdisabled,\n\t\tid: inputId,\n\t\tname,\n\t\tonBlur,\n\t\tonChange: ( event ) => {\n\t\t\tconst { checked: toggleChecked } = event.target;\n\t\t\tsetChecked( toggleChecked );\n\t\t\tsetTimeout( () => {\n\t\t\t\tonChange( toggleChecked );\n\t\t\t}, 150 );\n\t\t},\n\t\tonFocus,\n\t\ttype: 'checkbox',\n\t};\n\n\tif ( ariaLabel ) {\n\t\tinputProps[ 'aria-label' ] = ariaLabel;\n\t}\n\n\tconst labelProps = {\n\t\t...labelAttributes,\n\t\tcustomClasses: classnames( [\n\t\t\t'gform-toggle__label',\n\t\t], labelAttributes.customClasses ),\n\t\thtmlFor: inputId,\n\t};\n\n\tconst Container = wrapperTagName;\n\n\treturn (\n\t\t<Container { ...wrapperProps }>\n\t\t\t<input { ...inputProps } />\n\t\t\t<Label { ...labelProps } />\n\t\t\t{ children }\n\t\t</Container>\n\t);\n} );\n\nToggle.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdisabled: PropTypes.bool,\n\ticons: PropTypes.bool,\n\tid: PropTypes.string,\n\tinitialChecked: PropTypes.bool,\n\tlabelAttributes: PropTypes.object,\n\tname: PropTypes.string,\n\tonBlur: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonFocus: PropTypes.func,\n\tsize: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttheme: PropTypes.string,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\twrapperTagName: PropTypes.string,\n};\n\nToggle.displayName = 'Toggle';\n\nexport default Toggle;\n","import { React, classnames } from '@gravityforms/libraries';\nimport Image from '../../elements/Image';\nimport Button from '../../elements/Button';\nimport Box from '../../elements/Box';\nimport Heading from '../../elements/Heading';\nimport Text from '../../elements/Text';\nimport Link from '../../elements/Link';\nimport Tag from '../../elements/Tag';\n\n/**\n * @function FormTemplateCard\n * @description A template inside the card component.\n *\n * @since 1.1.15\n *\n * @param {string}           bgColor                                       The background color of the card.\n * @param {object}           blankButtonAttributes                         The attributes for the blank button.\n * @param {object}           bottomBoxAttributes                           Custom attributes for the bottom box component.\n * @param {JSX.Element|null} bottomChildren                                React elements for the bottom container.\n * @param {object}           headingAttributes                             Custom attributes for the card heading component.\n * @param {object}           imageAttributes                               Custom attributes for the card image component.\n * @param {object}           primaryCtaAttrs                               Custom attributes for the primary CTA.\n * @param {object}           secondaryCtaAttrs                             Custom attributes for the secondary CTA.\n * @param {string}           style                                         The style of the form template card.\n * @param {object}           tagAttributes                                 Custom attributes for the tag component.\n * @param {object}           textAttributes                                Custom attributes for the card text component.\n * @param {object}           topBoxAttributes                              Custom attributes for the top box component.\n * @param {JSX.Element|null} topChildren                                   React elements for the top container.\n *\n * @return {JSX.Element} The Card component.\n */\nexport const FormTemplateCard = ( {\n\tbgColor = '',\n\tblankButtonAttributes = {},\n\tbottomBoxAttributes = {},\n\tbottomChildren = null,\n\theadingAttributes = {},\n\timageAttributes = {},\n\tprimaryCtaAttrs = {},\n\tsecondaryCtaAttrs = {},\n\tstyle = '',\n\ttagAttributes = {},\n\ttextAttributes = {},\n\ttopBoxAttributes = {},\n\ttopChildren = null,\n} ) => {\n\tconst getImage = () => {\n\t\tconst imageAttrs = {\n\t\t\t...imageAttributes,\n\t\t\tcustomClasses: [\n\t\t\t\t'gform-card__image',\n\t\t\t\t...( imageAttributes.customClasses || [] ),\n\t\t\t],\n\t\t};\n\n\t\treturn <Image { ...imageAttrs } />;\n\t};\n\n\tconst getBlankIcon = () => {\n\t\treturn (\n\t\t\t<span className=\"gform-button gform-button--size-height-xl gform-button--white\">\n\t\t\t\t<span className=\"gform-icon gform-icon--plus-regular gform-button__icon\"></span>\n\t\t\t</span>\n\t\t);\n\t};\n\n\tconst getCta = ( ctaAttrs, position ) => {\n\t\tconst ctaProps = {\n\t\t\t...ctaAttrs,\n\t\t\tcustomClasses: classnames( {\n\t\t\t\t[ `gform-card__form-template-${ position }-button` ]: true,\n\t\t\t\t'gform-button': true,\n\t\t\t\t'gform-button--size-xs': true,\n\t\t\t\t'gform-button--width-auto': true,\n\t\t\t\t'gform-button--white': position === 'secondary',\n\t\t\t} ),\n\t\t\tsize: 'size-xs',\n\t\t};\n\n\t\tif ( position === 'primary' ) {\n\t\t\tctaProps.type = 'primary-new';\n\t\t}\n\n\t\tif ( ctaProps.ctaType === 'button' ) {\n\t\t\treturn <Button { ...ctaProps } />;\n\t\t}\n\n\t\tif ( ctaProps.ctaType === 'link' ) {\n\t\t\treturn <Link { ...ctaProps } />;\n\t\t}\n\t};\n\n\tconst getImageBoxHover = () => {\n\t\treturn (\n\t\t\t<div className={ 'gform-card__form-template-hover-buttons' }>\n\t\t\t\t<div className={ 'gform-card__form-template-buttons-container' }>\n\t\t\t\t\t{\n\t\t\t\t\t\tprimaryCtaAttrs &&\n\t\t\t\t\t\tObject.keys( primaryCtaAttrs ).length &&\n\t\t\t\t\t\tgetCta( primaryCtaAttrs, 'primary' )\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tsecondaryCtaAttrs &&\n\t\t\t\t\t\tObject.keys( secondaryCtaAttrs ).length &&\n\t\t\t\t\t\tgetCta( secondaryCtaAttrs, 'secondary' )\n\t\t\t\t\t}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t};\n\n\tconst getImageBox = () => {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{ getImageBoxHover() }\n\t\t\t\t{ getImage() }\n\t\t\t</>\n\t\t);\n\t};\n\n\tconst getInnerTopBoxContent = () => {\n\t\tswitch ( style ) {\n\t\t\tcase 'form-template':\n\t\t\t\treturn getImageBox();\n\t\t\tcase 'form-template-blank':\n\t\t\t\treturn getBlankIcon();\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t};\n\n\tconst getExtra = () => {\n\t\tif ( style === 'form-template' ) {\n\t\t\tif ( ! tagAttributes || ! tagAttributes.content ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tconst tagAttrs = {\n\t\t\t\t...tagAttributes,\n\t\t\t\tcustomClasses: [\n\t\t\t\t\t'gform-card__label',\n\t\t\t\t\t`gform-tag--type-gradient-${ tagAttributes.content }`,\n\t\t\t\t],\n\t\t\t\ttype: 'upgrade',\n\t\t\t};\n\n\t\t\treturn <Tag { ...tagAttrs } />;\n\t\t} else if ( style === 'form-template-blank' ) {\n\t\t\treturn (\n\t\t\t\t<button className=\"gform-card__form-template-blank-button\" { ...blankButtonAttributes }>\n\t\t\t\t\t{\n\t\t\t\t\t\theadingAttributes.content &&\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t<span className=\"gform-card__form-template-blank-button-text gform-visually-hidden\">\n\t\t\t\t\t\t\t\t{ headingAttributes.content }\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t</button>\n\t\t\t);\n\t\t}\n\t};\n\n\tconst getTopBox = () => {\n\t\tconst topBoxAttrs = {\n\t\t\t...topBoxAttributes,\n\t\t\tcustomClasses: classnames(\n\t\t\t\t{\n\t\t\t\t\t'gform-card__top-container': true,\n\t\t\t\t\t[ `gform-util-gform-admin-background-color-${ bgColor }` ]: bgColor,\n\t\t\t\t},\n\t\t\t\ttopBoxAttributes.customClasses || [],\n\t\t\t),\n\t\t};\n\n\t\treturn (\n\t\t\t<Box { ...topBoxAttrs }>\n\t\t\t\t{ getInnerTopBoxContent() }\n\t\t\t\t{ topChildren }\n\t\t\t</Box>\n\t\t);\n\t};\n\n\tconst getHeading = () => {\n\t\tif ( ! headingAttributes.content ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn <Heading { ...headingAttributes } />;\n\t};\n\n\tconst getTextContent = () => {\n\t\tif ( style !== 'form-template' ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif ( ! textAttributes.content ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn <Text { ...textAttributes } />;\n\t};\n\n\tconst getBottomBox = () => {\n\t\tconst bottomBoxAttrs = {\n\t\t\t...bottomBoxAttributes,\n\t\t\tcustomClasses: [\n\t\t\t\t'gform-card__bottom-container',\n\t\t\t\t...( bottomBoxAttributes.customClasses || [] ),\n\t\t\t],\n\t\t};\n\n\t\treturn (\n\t\t\t<Box { ...bottomBoxAttrs }>\n\t\t\t\t{ getHeading() }\n\t\t\t\t{ getTextContent() }\n\t\t\t\t{ bottomChildren }\n\t\t\t</Box>\n\t\t);\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t{ getExtra() }\n\t\t\t{ getTopBox() }\n\t\t\t{ getBottomBox() }\n\t\t</>\n\t);\n};\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\nimport { FormTemplateCard } from './index.types';\n\nconst { forwardRef } = React;\n\n/**\n * @module Card\n * @description A card component.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                   Component props.\n * @param {JSX.Element|null}           props.afterCard         React elements for after the card.\n * @param {JSX.Element|null}           props.beforeCard        React elements for before the card.\n * @param {JSX.Element|null}           props.children          React element children.\n * @param {object}                     props.contentAttributes Custom attributes for the card content component.\n * @param {object}                     props.customAttributes  Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses     Custom classes for the component.\n * @param {string|number|Array|object} props.spacing           The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.style             The style of the card.\n * @param {object|null}                ref                     Ref to the component.\n *\n * @return {JSX.Element} The Card component.\n *\n * @example\n * import Card from '@gravityforms/components/react/admin/modules/Card';\n *\n * const Example = () => {\n *     \tconst cardArgs = {\n * \t\t    contentAttributes: {\n * \t\t\t    bgColor: 'hex',\n * \t\t\t    headingAttributes: {\n * \t\t\t\t    content: 'Title',\n * \t\t\t\t    tagName: 'h2',\n * \t\t\t    },\n * \t\t\t    primaryCtaAttrs: {\n * \t\t\t\t    ctaType: 'button',\n * \t\t\t\t    onClick: handler(),\n * \t\t\t    },\n * \t\t\t    secondaryCtaAttrs: {\n * \t\t\t\t    ctaType: 'link',\n * \t\t\t\t    href: 'link href',\n * \t\t\t    },\n * \t\t\t    imageAttributes: {\n * \t\t\t\t    asBg: true,\n * \t\t\t\t    url: 'src',\n * \t\t\t    },\n * \t\t    },\n *      };\n *\n *      return <Card { ...cardArgs } />;\n * }\n *\n */\nconst Card = forwardRef( ( {\n\tafterCard = null,\n\tbeforeCard = null,\n\tchildren = null,\n\tcontentAttributes = {},\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tspacing = 0,\n\tstyle = '',\n}, ref ) => {\n\tconst attributes = {\n\t\tclassName: classnames( {\n\t\t\t'gform-card': true,\n\t\t\t[ `gform-card--${ style }` ]: style,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\tconst getCardContent = () => {\n\t\tconst cardContentAttributes = {\n\t\t\tstyle,\n\t\t\t...contentAttributes,\n\t\t};\n\n\t\tswitch ( style ) {\n\t\t\tcase 'form-template':\n\t\t\tcase 'form-template-blank':\n\t\t\t\treturn <FormTemplateCard { ...cardContentAttributes } />;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t};\n\n\treturn (\n\t\t<article { ...attributes } ref={ ref }>\n\t\t\t{ beforeCard }\n\t\t\t{ getCardContent() }\n\t\t\t{ children }\n\t\t\t{ afterCard }\n\t\t</article>\n\t);\n} );\n\nCard.propTypes = {\n\tafterCard: PropTypes.node,\n\tbeforeCard: PropTypes.node,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcontentAttributes: PropTypes.object,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tstyle: PropTypes.string,\n};\n\nCard.displayName = 'Card';\n\nexport default Card;\n","/**\n * Converts a hex value into an array of RGB values.\n *\n * @param {string} hex\n *\n * @return {*}\n */\nexport const hexToRGB = ( hex ) => {\n\tconst hexArray = hex.replace( '#', '' ).match( /.{1,2}/g );\n\treturn {\n\t\tR: parseInt( hexArray[ 0 ], 16 ),\n\t\tG: parseInt( hexArray[ 1 ], 16 ),\n\t\tB: parseInt( hexArray[ 2 ], 16 ),\n\t};\n};\n","import { React, PropTypes, classnames, HexColorPicker, HexColorInput } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\nimport Label from '../../elements/Label';\nimport Button from '../../elements/Button';\nimport { hexToRGB } from '../../utils/colors';\n\nconst { useState, useEffect, useRef, useLayoutEffect } = React;\n\n/**\n * @module ColorPicker\n * @description A color picker with HEX and RBG support.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {object}                     props.i18n             Translated strings for the UI.\n * @param {Function}                   props.onCancel         Custom callback to fire when the picker is closed.\n * @param {Function}                   props.onChange         Custom callback to fire when the picker is changed.\n * @param {Function}                   props.onSave           Custom callback to fire when the picker is saved/applied.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {object}                     props.triggerRef       Ref object representing the trigger used to display this picker.\n * @param {string}                     props.value            The initial value to use when the picker is instantiated.\n *\n * @return {Object} The ColorPicker component.\n *\n * @example\n * import Card from '@gravityforms/components/react/admin/modules/ColorPicker';\n *\n * return ( <ColorPicker onSave={ () => { handleSave(); } } value=\"#000\" /> );\n *\n */\nconst ColorPicker = ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\ti18n = {},\n\tonCancel = () => {},\n\tonChange = () => {},\n\tonSave = () => {},\n\tspacing = '',\n\ttriggerRef = { current: null },\n\tvalue = '#315f92',\n} ) => {\n\tconst [ color, setColor ] = useState( value );\n\tconst [ rgbColor, setRgbColor ] = useState( hexToRGB( value ) );\n\tconst [ position, setPosition ] = useState( false );\n\tconst [ coords, setCoords ] = useState( false );\n\n\tconst selfRef = useRef( null );\n\n\tuseEffect( () => {\n\t\tsetRgbColor( hexToRGB( color ) );\n\t}, [ color ] );\n\n\t// Update the position of the color picker when it is rendered/instantiated.\n\tuseLayoutEffect( () => {\n\t\tconst getPosition = () => {\n\t\t\tif ( ! selfRef.current || ! triggerRef.current ) {\n\t\t\t\treturn 'above';\n\t\t\t}\n\n\t\t\tconst picker = selfRef.current;\n\t\t\tconst source = triggerRef.current;\n\n\t\t\treturn ( source.getBoundingClientRect().top - 20 ) > picker.offsetHeight ? 'above' : 'below';\n\t\t};\n\n\t\tsetPosition( getPosition() );\n\t\tsetCoords( {\n\t\t\tleft: ( triggerRef?.current?.offsetLeft || 0 ) + ( triggerRef?.current?.offsetWidth / 2 || 0 ),\n\t\t\ttop: getPosition() === 'above'\n\t\t\t\t? ( triggerRef?.current?.offsetTop || 0 ) - 10\n\t\t\t\t: ( triggerRef?.current?.offsetBottom || 0 ) + ( triggerRef?.current?.offsetHeight ) + 10,\n\t\t} );\n\t}, [ triggerRef ] );\n\n\tuseEffect( () => {\n\t\tconst handleOutsideClick = ( e ) => {\n\t\t\tif ( ! selfRef.current ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( selfRef.current.contains( e.target ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( triggerRef.current.contains( e.target ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\thandleClose();\n\t\t};\n\n\t\tdocument.addEventListener( 'click', handleOutsideClick );\n\n\t\treturn () => document.removeEventListener( 'click', handleOutsideClick );\n\t} );\n\n\t/**\n\t * @function handleOnChange\n\t * @description Handler for the hex color picker change event.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {string} newValue The new color value.\n\t *\n\t * @return {void}\n\t */\n\tconst handleOnChange = ( newValue ) => {\n\t\tsetColor( newValue );\n\t\tonChange( newValue );\n\t};\n\n\t/**\n\t * @function handleClose\n\t * @description Handle the hex color picker close event.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @return {void}\n\t */\n\tconst handleClose = () => {\n\t\tonCancel();\n\t};\n\n\t/**\n\t * @function renderRGBInput\n\t * @description Render the RGB input field.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {string} colorPart The color value.\n\t * @param {number} index     The index of the color.\n\t *\n\t * @return {JSX.Element}\n\t */\n\tconst renderRGBInput = ( colorPart, index ) => {\n\t\tconst labelProps = {\n\t\t\thtmlFor: index,\n\t\t};\n\n\t\tconst inputProps = {\n\t\t\treadOnly: true,\n\t\t\tvalue: colorPart,\n\t\t\ttype: 'text',\n\t\t\tid: index,\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input': true,\n\t\t\t} ),\n\t\t};\n\n\t\tconst wrapperProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input--picker-input': true,\n\t\t\t\t'gform-input--picker-input--rgb': true,\n\t\t\t} ),\n\t\t\tkey: index,\n\t\t};\n\n\t\treturn (\n\t\t\t<div { ...wrapperProps }>\n\t\t\t\t<Label { ...labelProps } label={ index } />\n\t\t\t\t<input { ...inputProps } />\n\t\t\t</div>\n\t\t);\n\t};\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-input--picker': true,\n\t\t\t[ `gform-input--picker--pos-${ position }` ]: true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tstyle: {\n\t\t\ttop: coords.top,\n\t\t\tleft: coords.left,\n\t\t},\n\t\tref: selfRef,\n\t\t...customAttributes,\n\t};\n\n\tconst hexInputWrapperProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-input--picker-input': true,\n\t\t} ),\n\t};\n\n\tconst hexInputProps = {\n\t\tcolor,\n\t\tonChange: handleOnChange,\n\t\tclassName: classnames( {\n\t\t\t'gform-input': true,\n\t\t} ),\n\t};\n\n\tconst saveButtonProps = {\n\t\ttype: 'primary-new',\n\t\tlabel: i18n?.apply || '',\n\t\tonClick: () => onSave( color ),\n\t\tsize: 'size-xs',\n\t};\n\n\treturn (\n\t\t<div { ...componentProps }>\n\t\t\t<div className=\"gform-input__picker-ui\">\n\t\t\t\t<HexColorPicker color={ color } onChange={ handleOnChange } />\n\t\t\t\t<div className=\"gform-input__picker-inputs\">\n\t\t\t\t\t<div { ...hexInputWrapperProps } >\n\t\t\t\t\t\t<Label label={ i18n?.hex || '' } />\n\t\t\t\t\t\t<HexColorInput { ...hexInputProps } />\n\t\t\t\t\t</div>\n\t\t\t\t\t{ Object.keys( rgbColor ).map( ( index ) => renderRGBInput( rgbColor[ index ], index ) ) }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div className=\"gform-input__picker-controls\">\n\t\t\t\t<Button { ...saveButtonProps } />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nColorPicker.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ti18n: PropTypes.object,\n\tonCancel: PropTypes.func,\n\tonChange: PropTypes.func,\n\tonSave: PropTypes.func,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttriggerRef: PropTypes.object,\n\tvalue: PropTypes.string,\n};\n\nexport default ColorPicker;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\nimport Icon from '../../elements/Icon';\n\nconst { forwardRef } = React;\n\n/**\n * @module Indicator\n * @description A indicator component.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {string}                     props.bgColor          Background color for the indicator.\n * @param {JSX.Element}                props.children         React element children.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {string}                     props.icon             The icon of the indicator if the type is `unstyled`.\n * @param {string}                     props.iconColor        The color of the icon if the type is `unstyled`.\n * @param {string}                     props.iconPrefix       The prefix for the icon library to be used.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.type             The type of the indicator, one of `unstyled`, `info`, `card`, `warning`, `success`, or `error`.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @returns {JSX.Element} The Indicator component.\n *\n * @example\n * import Indicator from '@gravityforms/components/react/admin/modules/Indicator';\n *\n * return (\n *     <Indicator icon=\"api\" type=\"info\">\n *         { children }\n *     </Indicator>\n * );\n *\n */\nconst Indicator = forwardRef( ( {\n\tbgColor = 'black',\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = {},\n\ticon = '',\n\ticonColor = 'white',\n\ticonPrefix = 'gform-common-icon',\n\tspacing = '',\n\ttype = 'unstyled',\n}, ref ) => {\n\tconst getIcon = () => {\n\t\tswitch ( type ) {\n\t\t\tcase 'unstyled':\n\t\t\t\treturn icon;\n\t\t\tcase 'info':\n\t\t\t\treturn 'information-circle';\n\t\t\tcase 'card':\n\t\t\t\treturn 'credit-card';\n\t\t\tcase 'warning':\n\t\t\t\treturn 'exclamation';\n\t\t\tcase 'success':\n\t\t\t\treturn 'check-circle';\n\t\t\tcase 'error':\n\t\t\t\treturn 'exclamation-circle';\n\t\t\tdefault:\n\t\t\t\treturn icon;\n\t\t}\n\t};\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-indicator': true,\n\t\t\t[ `gform-indicator--${ type }` ]: true,\n\t\t\t[ `gform-util-gform-admin-background-color-${ bgColor }` ]: type === 'unstyled',\n\t\t\t[ `gform-util-gform-admin-color-${ iconColor }` ]: type === 'unstyled',\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\treturn (\n\t\t<span { ...componentProps } ref={ ref }>\n\t\t\t<Icon icon={ getIcon() } iconPrefix={ iconPrefix } />\n\t\t\t{ children }\n\t\t</span>\n\t);\n} );\n\nIndicator.propTypes = {\n\tbgColor: PropTypes.string,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ticon: PropTypes.string,\n\ticonColor: PropTypes.string,\n\ticonPrefix: PropTypes.string,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttype: PropTypes.string,\n};\n\nIndicator.displayName = 'Indicator';\n\nexport default Indicator;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { bodyLock, getClosest, uniqueId } from '@gravityforms/utils';\nimport { useStateWithDep, useFocusTrap } from '@gravityforms/react-utils';\nimport Indicator from '../Indicator';\n\nconst { useState, useEffect, useRef, forwardRef } = React;\n\n/**\n * @module Dialog\n * @description A dialog component in react that handle full screen containers, modals, alerts and dialogs.\n *\n * @since 1.1.15\n *\n * @param {object}              props                          Component props.\n * @param {string}              props.alertButtonText          If in alert mode, the text for the ok button below content.\n * @param {string}              props.alignment                Position of message in window.\n * @param {boolean}             props.animateModal             When in modal or dialog mode, animate the dialog in with a fade in and up?\n * @param {number}              props.animationDelay           The css animation delay for the reveal/hide effect. Synchronize with css if modifying the built-in 250 ms delay.\n * @param {string}              props.buttonWidth              The button width, one of  `auto` or `full`.\n * @param {string}              props.cancelButtonHeight       The height for the cancel button.\n * @param {string}              props.cancelButtonText         If in dialog mode, the white cancel buttons text is set here.\n * @param {string}              props.cancelButtonType         The type of the cancel button.\n * @param {JSX.Element}         props.children                 React element children.\n * @param {string}              props.closeButtonSize          The close button size. Default is `xs`.\n * @param {string}              props.closeButtonTitle         The close button title for accessibility purposes.\n * @param {string}              props.closeButtonType          The close button type. Default is `round`. Also supports `unstyled`.\n * @param {boolean}             props.closeOnMaskClick         Whether to close if the background mask is clicked.\n * @param {object}              props.confirmButtonAttributes  Arbitrary additional html attributes for the confirm button if in dialog mode.\n * @param {string}              props.confirmButtonHeight      The height of the confirm button.\n * @param {string}              props.confirmButtonIcon        If in dialog mode, the optional confirmation button icon before the button text.\n * @param {string}              props.confirmButtonText        If in dialog mode, the confirmation button text.\n * @param {string}              props.confirmButtonType        The type of the confirm button.\n * @param {string}              props.content                  Container content. Can only be strings. Use React children for html.\n * @param {string|Array|object} props.customCloseButtonClasses Custom classes for the close button as array.\n * @param {string|Array|object} props.customMaskClasses        Custom classes for the mask as array.\n * @param {string|Array|object} props.customWrapperClasses     Custom classes for the wrapper as array.\n * @param {string}              props.id                       The id for the dialog. If not passed auto generated using uniqueId from our utils with a prefix of `dialog`.\n * @param {boolean}             props.isOpen                   Prop to control whether the dialog is currently open.\n * @param {boolean}             props.lockBody                 Whether to lock the body behind the dialog to prevent interaction or scrolling.\n * @param {boolean}             props.maskBlur                 Whether to blur behind the mask for the dialog.\n * @param {string}              props.maskTheme                Mask background color scheme: `none`, `light` or `dark`.\n * @param {string}              props.mode                     Container mode: `container`, `modal`, `alert` or `dialog`.\n * @param {Function}            props.onClose                  Function to execute when the dialog closes.\n * @param {Function}            props.onCloseAfterAnimation    Function to execute after the dialog close animation.\n * @param {Function}            props.onOpen                   Function to execute when the dialog opens.\n * @param {Function}            props.onOpenAfterAnimation     Function to execute after the dialog open animation.\n * @param {string}              props.position                 Position for the mask: `fixed`, `absolute`.\n * @param {boolean}             props.showCloseButton          Whether to show the close button top right or not.\n * @param {string}              props.theme                    Theme for the dialog, one of `gravity-blue` or `cosmos`.\n * @param {string}              props.title                    Title for the dialog. Does not show in container mode.\n * @param {string}              props.titleIndicatorType       Indicator type for the dialog title.\n * @param {number}              props.zIndex                   The z-index for the dialog.\n * @param {object|null}         ref                            Ref to the component.\n *\n * @return {JSX.Element} Return the functional dialog component in React.\n *\n * @example\n * import Dialog from '@gravityforms/components/react/admin/modules/Dialog';\n *\n * const Example = () => {\n *     \tconst dialogArgs = {\n * \t\t    closeOnMaskClick: false,\n * \t\t    customCloseButtonClasses: [ 'gform-example--exit-button' ],\n * \t\t    customWrapperClasses: [\n * \t\t\t    'gform-example',\n * \t\t    ],\n * \t\t    id: 'test-id',\n * \t\t    isOpen,\n * \t\t    lockBody: true,\n * \t\t    mode: 'container',\n * \t\t    zIndex: 100001,\n *      };\n *\n *      return (\n *          <Dialog { ...dialogArgs }>\n *              { children }\n *          </Dialog>\n *      );\n * }\n *\n */\n\nconst Dialog = forwardRef( ( {\n\talertButtonText = '',\n\talignment = 'center',\n\tanimateModal = false,\n\tanimationDelay = 250,\n\tbuttonWidth = 'auto',\n\tcancelButtonHeight = 'height-l',\n\tcancelButtonText = '',\n\tcancelButtonType = 'white',\n\tchildren = null,\n\tcloseButtonSize = 'xs',\n\tcloseButtonTitle = '',\n\tcloseButtonType = 'round',\n\tcloseOnMaskClick = true,\n\tconfirmButtonAttributes = {},\n\tconfirmButtonHeight = 'height-l',\n\tconfirmButtonIcon = '',\n\tconfirmButtonText = '',\n\tconfirmButtonType = 'primary-new',\n\tcontent = '',\n\tcustomCloseButtonClasses = [],\n\tcustomMaskClasses = [],\n\tcustomWrapperClasses = [],\n\tid = '',\n\tisOpen = false,\n\tlockBody = false,\n\tmaskBlur = true,\n\tmaskTheme = 'none',\n\tmode = '',\n\tonClose = () => {},\n\tonCloseAfterAnimation = () => {},\n\tonOpen = () => {},\n\tonOpenAfterAnimation = () => {},\n\tposition = 'fixed',\n\tshowCloseButton = true,\n\ttheme = 'gravity-blue',\n\ttitle = '',\n\ttitleIndicatorType = '',\n\tzIndex = 10,\n}, ref ) => {\n\tconst [ animationReady, setAnimationReady ] = useState( false );\n\tconst [ animationActive, setAnimationActive ] = useState( false );\n\tconst [ modalAnimation, setModalAnimation ] = useState( false );\n\tconst [ dialogActive, setDialogActive ] = useStateWithDep( isOpen );\n\tconst trapRef = useFocusTrap( dialogActive );\n\tconst mountedRef = useRef( true );\n\tconst closeRef = useRef( true );\n\n\tuseEffect( () => {\n\t\tif ( dialogActive ) {\n\t\t\tshowDialog();\n\t\t} else if ( ! dialogActive && mountedRef.current ) {\n\t\t\tcloseDialog();\n\t\t}\n\t}, [ dialogActive ] );\n\n\tuseEffect( () => {\n\t\tif ( animateModal ) {\n\t\t\tsetTimeout( () => {\n\t\t\t\tsetModalAnimation( true );\n\t\t\t}, 200 );\n\t\t}\n\t\treturn () => {\n\t\t\tmountedRef.current = false;\n\t\t};\n\t}, [ animateModal ] );\n\n\tuseEffect( () => {\n\t\tcloseRef.current.addEventListener( 'keydown', handleEscapeRequest );\n\n\t\treturn () => {\n\t\t\tif ( ! closeRef.current ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcloseRef.current.removeEventListener( 'keydown', handleEscapeRequest );\n\t\t};\n\t} );\n\n\tconst handleEscapeRequest = ( e ) => {\n\t\tif ( getClosest( e.target, '.gform-dialog' ) !== closeRef.current ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( e.key !== 'Escape' ) {\n\t\t\treturn;\n\t\t}\n\n\t\tcloseDialog();\n\t};\n\n\tconst closeDialog = () => {\n\t\tsetAnimationActive( false );\n\n\t\tsetTimeout( () => {\n\t\t\tsetAnimationReady( false );\n\t\t\tonCloseAfterAnimation();\n\t\t}, animationDelay );\n\n\t\tif ( lockBody ) {\n\t\t\tbodyLock.unlock();\n\t\t}\n\t\tonClose();\n\t};\n\n\tconst showDialog = () => {\n\t\tsetAnimationReady( true );\n\n\t\tsetTimeout( () => {\n\t\t\tsetAnimationActive( true );\n\t\t\tsetTimeout( () => onOpenAfterAnimation, animationDelay );\n\t\t}, 25 );\n\n\t\tif ( lockBody ) {\n\t\t\tbodyLock.lock();\n\t\t}\n\t\tonOpen();\n\t};\n\n\tconst handleMaskClick = ( e ) => {\n\t\tif ( e.target.classList.contains( 'gform-dialog__mask' ) && closeOnMaskClick && dialogActive ) {\n\t\t\te.stopPropagation();\n\t\t\tsetDialogActive( false );\n\t\t}\n\t};\n\n\tconst maskProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-dialog__mask': true,\n\t\t\t'gform-dialog--anim-in-ready': animationReady,\n\t\t\t'gform-dialog--anim-in-active': animationReady && animationActive,\n\t\t\t[ `gform-dialog__mask--position-${ position }` ]: true,\n\t\t\t[ `gform-dialog__mask--theme-${ maskTheme }` ]: true,\n\t\t\t[ `gform-dialog--alignment-${ alignment }` ]: mode !== 'container',\n\t\t\t'gform-dialog__mask--blur': maskBlur,\n\t\t}, customMaskClasses ),\n\t\tonClick: handleMaskClick,\n\t\tstyle: {\n\t\t\tzIndex,\n\t\t},\n\t};\n\n\tconst wrapperProps = {\n\t\tid: id || uniqueId( 'dialog-' ),\n\t\tclassName: classnames( {\n\t\t\t'gform-dialog': true,\n\t\t\t'gform-dialog--animated': animateModal,\n\t\t\t'gform-dialog--animate-reveal': modalAnimation,\n\t\t\t'gform-dialog--container': mode === 'container',\n\t\t\t[ `gform-dialog__theme--${ theme }` ]: true,\n\t\t}, customWrapperClasses ),\n\t};\n\n\tconst closeButtonLabelProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-button__icon': true,\n\t\t\t'gform-common-icon': true,\n\t\t\t'gform-common-icon--x': true,\n\t\t} ),\n\t};\n\n\tconst contentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-dialog__content': true,\n\t\t} ),\n\t};\n\n\tconst closeButtonProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-dialog__close': true,\n\t\t\t'gform-button': true,\n\t\t\t'gform-button--unstyled': closeButtonType === 'unstyled',\n\t\t\t'gform-button--white': closeButtonType === 'round',\n\t\t\t'gform-button--circular': closeButtonType === 'round' || closeButtonType === 'simplified',\n\t\t\t'gform-button--simplified': closeButtonType === 'simplified',\n\t\t\t[ `gform-button--size-${ closeButtonSize }` ]: true,\n\t\t}, customCloseButtonClasses ),\n\t\tonClick: () => setDialogActive( false ),\n\t\tstyle: {\n\t\t\tzIndex: zIndex + 1,\n\t\t},\n\t\ttitle: closeButtonTitle,\n\t};\n\n\tif ( closeButtonProps.ariaLabel ) {\n\t\tcloseButtonProps[ 'aria-label' ] = closeButtonProps.ariaLabel;\n\t} else {\n\t\tcloseButtonProps[ 'aria-label' ] = closeButtonTitle;\n\t}\n\n\tconst getTitleIndicator = () => {\n\t\tif ( ! titleIndicatorType ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn <Indicator type={ titleIndicatorType } />;\n\t};\n\n\tconst getTitle = () => {\n\t\tconst headerProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-dialog__head': true,\n\t\t\t} ),\n\t\t\t'data-js': 'gform-dialog-header',\n\t\t};\n\n\t\tconst headingProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-dialog__title': true,\n\t\t\t\t'gform-dialog__title--has-icon': !! titleIndicatorType,\n\t\t\t} ),\n\t\t};\n\n\t\treturn (\n\t\t\t<header { ...headerProps }>\n\t\t\t\t{ getTitleIndicator() } <h5 { ...headingProps }>{ title }</h5>\n\t\t\t</header>\n\t\t);\n\t};\n\n\tconst getConfirmButtonIcon = () => {\n\t\tconst iconProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-button__icon': true,\n\t\t\t\t[ `gform-icon gform-icon--${ confirmButtonIcon }` ]: true,\n\t\t\t} ),\n\t\t};\n\n\t\treturn (\n\t\t\t<span { ...iconProps } />\n\t\t);\n\t};\n\n\tconst getDialogButtons = () => {\n\t\tconst cancelButtonProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-dialog__cancel': true,\n\t\t\t\t'gform-button': true,\n\t\t\t\t[ `gform-button--size-${ cancelButtonHeight }` ]: true,\n\t\t\t\t[ `gform-button--${ cancelButtonType }` ]: true,\n\t\t\t\t[ `gform-button--width-${ buttonWidth }` ]: true,\n\t\t\t} ),\n\t\t\tonClick: () => setDialogActive( false ),\n\t\t\t'data-js': 'gform-dialog-cancel',\n\t\t};\n\n\t\tconst confirmButtonProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-dialog__confirm': true,\n\t\t\t\t'gform-button': true,\n\t\t\t\t[ `gform-button--size-${ confirmButtonHeight }` ]: true,\n\t\t\t\t[ `gform-button--${ confirmButtonType }` ]: true,\n\t\t\t\t'gform-button--icon-leading': confirmButtonIcon,\n\t\t\t\t[ `gform-button--width-${ buttonWidth }` ]: true,\n\t\t\t} ),\n\t\t\t'data-js': 'gform-dialog-confirm',\n\t\t\t...confirmButtonAttributes,\n\t\t};\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<button { ...cancelButtonProps }>\n\t\t\t\t\t{ cancelButtonText }\n\t\t\t\t</button>\n\t\t\t\t<button { ...confirmButtonProps }>\n\t\t\t\t\t{ confirmButtonIcon && getConfirmButtonIcon() }{ confirmButtonText }\n\t\t\t\t</button>\n\t\t\t</>\n\t\t);\n\t};\n\n\tconst getAlertButtons = () => {\n\t\tconst buttonProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-dialog__alert': true,\n\t\t\t\t'gform-button': true,\n\t\t\t\t[ `gform-button--size-${ confirmButtonHeight }` ]: true,\n\t\t\t\t[ `gform-button--${ confirmButtonType }` ]: true,\n\t\t\t\t[ `gform-button--width-${ buttonWidth }` ]: true,\n\t\t\t} ),\n\t\t\tonClick: () => setDialogActive( false ),\n\t\t\t'data-js': 'gform-dialog-alert',\n\t\t};\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<button { ...buttonProps }>\n\t\t\t\t\t{ alertButtonText }\n\t\t\t\t</button>\n\t\t\t</>\n\t\t);\n\t};\n\n\tconst getFooter = () => {\n\t\tconst footerProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-dialog__footer': true,\n\t\t\t} ),\n\t\t\t'data-js': 'gform-dialog-footer',\n\t\t};\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<footer { ...footerProps }>\n\t\t\t\t\t{ mode === 'dialog' && getDialogButtons() }\n\t\t\t\t\t{ mode === 'alert' && getAlertButtons() }\n\t\t\t\t</footer>\n\t\t\t</>\n\t\t);\n\t};\n\n\treturn (\n\t\t<div { ...maskProps } ref={ trapRef }>\n\t\t\t<article { ...wrapperProps } ref={ closeRef }>\n\t\t\t\t{ showCloseButton && <button { ...closeButtonProps } >\n\t\t\t\t\t<span { ...closeButtonLabelProps } />\n\t\t\t\t</button> }\n\t\t\t\t{ mode !== 'container' && title && getTitle() }\n\t\t\t\t<div { ...contentProps }>\n\t\t\t\t\t{ mode !== 'container' && content }\n\t\t\t\t\t{ children }\n\t\t\t\t</div>\n\t\t\t\t{ ( mode === 'dialog' || mode === 'alert' ) && getFooter() }\n\t\t\t</article>\n\t\t</div>\n\t);\n} );\n\nDialog.propTypes = {\n\talertButtonText: PropTypes.string,\n\talignment: PropTypes.string,\n\tanimateModal: PropTypes.bool,\n\tanimationDelay: PropTypes.number,\n\tbuttonWidth: PropTypes.string,\n\tcancelButtonHeight: PropTypes.string,\n\tcancelButtonText: PropTypes.string,\n\tcancelButtonType: PropTypes.string,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcloseButtonSize: PropTypes.string,\n\tcloseButtonTitle: PropTypes.string,\n\tcloseButtonType: PropTypes.string,\n\tcloseOnMaskClick: PropTypes.bool,\n\tconfirmButtonAttributes: PropTypes.object,\n\tconfirmButtonHeight: PropTypes.string,\n\tconfirmButtonIcon: PropTypes.string,\n\tconfirmButtonText: PropTypes.string,\n\tconfirmButtonType: PropTypes.string,\n\tcontent: PropTypes.string,\n\tcustomCloseButtonClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tcustomMaskClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tcustomWrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tid: PropTypes.string,\n\tisOpen: PropTypes.bool,\n\tlockBody: PropTypes.bool,\n\tmaskBlur: PropTypes.bool,\n\tmaskTheme: PropTypes.string,\n\tmode: PropTypes.string,\n\tonClose: PropTypes.func,\n\tonCloseAfterAnimation: PropTypes.func,\n\tonOpen: PropTypes.func,\n\tonOpenAfterAnimation: PropTypes.func,\n\tposition: PropTypes.string,\n\tshowCloseButton: PropTypes.bool,\n\ttheme: PropTypes.string,\n\ttitle: PropTypes.string,\n\ttitleIndicatorType: PropTypes.string,\n\tzIndex: PropTypes.number,\n};\n\nDialog.displayName = 'Dialog';\n\nexport default Dialog;\n","import { React, classnames, PropTypes } from '@gravityforms/libraries';\nimport { uniqueId } from '@gravityforms/utils';\nimport {\n\tuseStateWithDep,\n\tConditionalWrapper,\n} from '@gravityforms/react-utils';\nimport Button from '../../elements/Button';\nimport Heading from '../../elements/Heading';\nimport Text from '../../elements/Text';\n\nconst { Fragment, forwardRef, useState, useEffect } = React;\n\n/**\n * @module Flyout\n * @description A flyout component in react.\n *\n * @since 1.1.18\n *\n * @param {object}              props                                   Component props.\n * @param {JSX.Element}         props.afterContent                      Any custom content to be placed after the body of the flyout.\n * @param {number}              props.animationDelay                    Total runtime of close animation. Synchronize with css if modifying the built-in 170 ms delay.\n * @param {JSX.Element}         props.beforeContent                     Any custom content to be placed before the header of the flyout.\n * @param {JSX.Element}         props.children                          React element children.\n * @param {object}              props.closeButtonCustomAttributes       Custom attributes for the close button.\n * @param {object}              props.customAttributes                  Custom attributes for the component.\n * @param {string|Array|object} props.customBodyClasses                 Custom classes for the flyout body as array.\n * @param {string|Array|object} props.customClasses                     Custom classes for the component.\n * @param {string|Array|object} props.customInnerBodyClasses            Custom classes for the flyout inner_body as array.\n * @param {string}              props.description                       Subheading description for the flyout.\n * @param {number}              props.desktopWidth                      Width in % for the flyout on desktop.\n * @param {string}              props.direction                         Flyout direction, left or right.\n * @param {object}              props.headerHeadingCustomAttributes     Custom attributes for the header heading.\n * @param {object}              props.headerDescriptionCustomAttributes Custom attributes for the header description.\n * @param {string}              props.id                                Flyout id.\n * @param {boolean}             props.isOpen                            Prop to control whether the dialog is currently open.\n * @param {number}              props.maxWidth                          Max width in pixels for the flyout.\n * @param {number}              props.mobileBreakpoint                  Mobile breakpoint in pixels for the flyout.\n * @param {number}              props.mobileWidth                       Width in % for the flyout on mobile.\n * @param {Function}            props.onClose                           Function to fire on flyout close.\n * @param {Function}            props.onOpen                            Function to fire on flyout open.\n * @param {string}              props.position                          The position of the flyout, `absolute` or `fixed`.\n * @param {boolean}             props.showDivider                       Whether or not to show the divider border below title.\n * @param {string}              props.title                             The title of the flyout.\n * @param {number}              props.zIndex                            z-index of the flyout.\n * @param {object|null}         ref                                     Ref to the component.\n *\n * @return {JSX.Element} The Flyout component.\n *\n * @example\n * import Flyout from '@gravityforms/components/react/admin/modules/Flyout';\n *\n * return (\n *     <Flyout direction=\"right\" title=\"Flyout title\">\n *         { children }\n *     </Flyout>\n * );\n *\n */\nconst Flyout = forwardRef( ( {\n\tafterContent = null,\n\tanimationDelay = 170,\n\tbeforeContent = null,\n\tchildren = null,\n\tcloseButtonCustomAttributes = {\n\t\tcustomClasses: [],\n\t\ticon: 'delete',\n\t\ticonPrefix: 'gform-icon',\n\t\tsize: 'size-xs',\n\t\ttitle: '',\n\t\ttype: 'round',\n\t},\n\tcustomAttributes = {},\n\tcustomBodyClasses = [],\n\tcustomClasses = [],\n\tcustomInnerBodyClasses = [],\n\tdescription = '',\n\tdesktopWidth = 0,\n\tdirection = '',\n\theaderHeadingCustomAttributes = {},\n\theaderDescriptionCustomAttributes = {},\n\tid = uniqueId(),\n\tisOpen = false,\n\tmaxWidth = 0,\n\tmobileBreakpoint = 0,\n\tmobileWidth = 0,\n\tonClose = () => {},\n\tonOpen = () => {},\n\tposition = 'fixed',\n\tshowDivider = true,\n\ttitle = '',\n\tzIndex = 10,\n}, ref ) => {\n\tconst [ animationReady, setAnimationReady ] = useState( false );\n\tconst [ animationActive, setAnimationActive ] = useState( false );\n\tconst [ flyoutActive, setFlyoutActive ] = useStateWithDep( isOpen );\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-flyout': true,\n\t\t\t'gform-flyout--anim-in-ready': animationReady,\n\t\t\t'gform-flyout--anim-in-active': animationActive,\n\t\t\t[ `gform-flyout--${ direction }` ]: true,\n\t\t\t[ `gform-flyout--${ position }` ]: true,\n\t\t\t'gform-flyout--divider': showDivider,\n\t\t\t'gform-flyout--no-divider': ! showDivider,\n\t\t\t'gform-flyout--no-description': ! description,\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\tuseEffect( () => {\n\t\tif ( flyoutActive ) {\n\t\t\tshowFlyout();\n\t\t} else if ( ! flyoutActive ) {\n\t\t\tcloseFlyout();\n\t\t}\n\t}, [ flyoutActive ] );\n\n\t/**\n\t * @function showFlyout\n\t * @description Opens the flyout and fires the `onOpen` function if passed in.\n\t *\n\t * @since 1.1.18\n\t *\n\t * @return {void}\n\t */\n\tconst showFlyout = () => {\n\t\tsetAnimationReady( true );\n\t\tsetTimeout( () => {\n\t\t\tsetAnimationActive( true );\n\t\t\tonOpen();\n\t\t}, 25 );\n\t};\n\n\t/**\n\t * @function closeFlyout\n\t * @description Closes the flyout and fires the `onClose` function if passed in.\n\t *\n\t * @since 1.1.18\n\t *\n\t * @return {void}\n\t */\n\tconst closeFlyout = () => {\n\t\tsetAnimationActive( false );\n\n\t\tsetTimeout( () => {\n\t\t\tsetAnimationReady( false );\n\t\t\tonClose();\n\t\t}, animationDelay );\n\t};\n\n\t/**\n\t * @function getHeader\n\t * @description Returns the header of the flyout that contains the title and description.\n\t *\n\t * @since 1.1.18\n\t *\n\t * @return {JSX.Element}\n\t */\n\tconst getHeader = () => {\n\t\tlet buttonType = 'unstyled';\n\t\tif ( closeButtonCustomAttributes.type === 'round' ) {\n\t\t\tbuttonType = 'white';\n\t\t} else if ( closeButtonCustomAttributes.type === 'simplified' ) {\n\t\t\tbuttonType = 'simplified';\n\t\t}\n\n\t\tconst closeButtonProps = {\n\t\t\t...closeButtonCustomAttributes,\n\t\t\tcustomClasses: classnames(\n\t\t\t\t{\n\t\t\t\t\t'gform-button': true,\n\t\t\t\t\t'gform-flyout__close': true,\n\t\t\t\t},\n\t\t\t\tcloseButtonCustomAttributes.customClasses || [],\n\t\t\t),\n\t\t\tcircular: closeButtonCustomAttributes.type === 'round' || closeButtonCustomAttributes.type === 'simplified',\n\t\t\tonClick: () => setFlyoutActive( false ),\n\t\t\ttype: buttonType,\n\t\t};\n\n\t\tconst headerProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-flyout__head': true,\n\t\t\t} ),\n\t\t};\n\n\t\tconst headingProps = {\n\t\t\tcustomClasses: classnames( {\n\t\t\t\t'gform-flyout__title': true,\n\t\t\t} ),\n\t\t\tcontent: title,\n\t\t\tsize: 'display-xs',\n\t\t\ttagName: 'h3',\n\t\t\tweight: 'SemiBold',\n\t\t\t...headerHeadingCustomAttributes,\n\t\t};\n\n\t\tconst descriptionProps = {\n\t\t\tcustomClasses: classnames( {\n\t\t\t\t'gform-gform-flyout__desc': true,\n\t\t\t} ),\n\t\t\tcontent: description,\n\t\t\t...headerDescriptionCustomAttributes,\n\t\t};\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<ConditionalWrapper\n\t\t\t\t\tcondition={ title || description }\n\t\t\t\t\twrapper={ ( ch ) => <header { ...headerProps }>{ ch }</header> }\n\t\t\t\t>\n\t\t\t\t\t<Heading { ...headingProps } />\n\t\t\t\t\t{ description && <Text { ...descriptionProps } /> }\n\t\t\t\t</ConditionalWrapper>\n\t\t\t\t<Button\t{ ...closeButtonProps } />\n\t\t\t</>\n\t\t);\n\t};\n\n\t/**\n\t * @function getBody\n\t * @description Returns the body that wrap the children of the flyout.\n\t *\n\t * @since 1.1.18\n\t *\n\t * @return {JSX.Element}\n\t */\n\tconst getBody = () => {\n\t\tconst bodyProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-flyout__body': true,\n\t\t\t}, customBodyClasses ),\n\t\t};\n\n\t\tconst innerBodyProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-flyout__body-inner': true,\n\t\t\t}, customInnerBodyClasses ),\n\t\t};\n\n\t\treturn (\n\t\t\t<div { ...bodyProps } >\n\t\t\t\t<div { ...innerBodyProps } >\n\t\t\t\t\t{ children }\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t};\n\n\t/**\n\t * @function getCSS\n\t * @description Returns the CSS used to handle the width and mobile media query.\n\t *\n\t * @since 1.1.18\n\t *\n\t * @return {string} The CSS for the flyout.\n\t */\n\tconst getCSS = () => {\n\t\tlet css = `#${ id } {\n\t\t\tmax-width: ${ maxWidth ? `${ maxWidth }px` : 'none' };\n\t\t\twidth: ${ mobileWidth }%;\n\t\t\tz-index: ${ zIndex }\n\t\t}\n\t\t`;\n\n\t\tif ( mobileBreakpoint ) {\n\t\t\tcss += `\n\t\t\t\t@media only screen and (min-width: ${ mobileBreakpoint }px) {\n\t\t\t\t\t#${ id } {\n\t\t\t\t\t\twidth: ${ desktopWidth }%;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t`;\n\t\t}\n\n\t\treturn css;\n\t};\n\n\treturn (\n\t\t<Fragment ref={ ref }>\n\t\t\t<article id={ id } { ...componentProps } >\n\t\t\t\t{ beforeContent }\n\t\t\t\t{ getHeader() }\n\t\t\t\t{ getBody() }\n\t\t\t\t{ afterContent }\n\t\t\t</article>\n\t\t\t<style>\n\t\t\t\t{ getCSS() }\n\t\t\t</style>\n\t\t</Fragment>\n\t);\n} );\n\nFlyout.propTypes = {\n\tafterContent: PropTypes.node,\n\tanimationDelay: PropTypes.number,\n\tbeforeContent: PropTypes.node,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcloseButtonCustomAttributes: PropTypes.object,\n\tcustomAttributes: PropTypes.object,\n\tcustomBodyClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tcustomInnerBodyClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdescription: PropTypes.string,\n\tdesktopWidth: PropTypes.number,\n\tdirection: PropTypes.string,\n\theaderHeadingCustomAttributes: PropTypes.object,\n\theaderDescriptionCustomAttributes: PropTypes.object,\n\tid: PropTypes.string,\n\tisOpen: PropTypes.bool,\n\tmaxWidth: PropTypes.number,\n\tmobileBreakpoint: PropTypes.number,\n\tmobileWidth: PropTypes.number,\n\tonClose: PropTypes.func,\n\tonOpen: PropTypes.func,\n\tposition: PropTypes.oneOf( [ 'absolute', 'fixed' ] ),\n\tshowDivider: PropTypes.bool,\n\ttitle: PropTypes.string,\n\tzIndex: PropTypes.number,\n};\n\nFlyout.displayName = 'Flyout';\n\nexport default Flyout;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { ConditionalWrapper } from '@gravityforms/react-utils';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport Checkbox from '../../elements/Checkbox';\nimport Radio from '../../elements/Radio';\n\nconst { forwardRef } = React;\n\n/**\n * @module InputGroup\n * @description A inputgroup component that wraps checkboxes or radios and handles their state changes as one\n * aggregate.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                   Component props.\n * @param {JSX.Element}                props.children          React element children.\n * @param {boolean}                    props.childrenBelow     Render children below or above group if found?\n * @param {object}                     props.customAttributes  Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses     Custom classes for the component.\n * @param {Array}                      props.data              The data for the inputs.\n * @param {string}                     props.id                The id of the input group.\n * @param {string}                     props.inputType         The input type, one of `radio` or `checkbox`.\n * @param {Function}                   props.onChange          On change function handler.\n * @param {string|number|Array|object} props.spacing           The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.tagName           Tagname for the container.\n * @param {boolean}                    props.useWrapper        Whether to use a wrapper around the inputs or not.\n * @param {object}                     props.wrapperAttributes Custom attributes for the wrapper component.\n * @param {string}                     props.wrapperTagName    Tagname for the wrapper.\n * @param {object|null}                ref                     Ref to the component.\n *\n * @returns {JSX.Element} The InputGroup component.\n *\n * @example\n * import InputGroup from '@gravityforms/components/react/admin/modules/InputGroup';\n *\n * return (\n *      <InputGroup\n * \t\t    id=\"setup-wizard-form-types\"\n * \t        data={ [ { ...input1Data }, { ...input2Data } ] }\n *          onChange={ () => { handleInputChange(); } }\n *          useWrapper={ true }\n * \t    />\n *          { children }\n *      </Indicator>\n * );\n *\n */\nconst InputGroup = forwardRef( ( {\n\tchildren = null,\n\tchildrenBelow = true,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tdata = [],\n\tid = '',\n\tinputType = 'checkbox',\n\tonChange = () => {},\n\tspacing = '',\n\ttagName = 'div',\n\tuseWrapper = false,\n\twrapperAttributes = {},\n\twrapperTagName = 'div',\n}, ref ) => {\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-input-group': true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\tconst inputId = id || uniqueId( 'input-group' );\n\tconst InputContainer = inputType === 'checkbox' ? Checkbox : Radio;\n\n\tconst handleOnChange = ( checked, e ) => {\n\t\tonChange( checked, e );\n\t};\n\n\tconst getWrapper = ( ch ) => {\n\t\tconst Wrapper = wrapperTagName;\n\t\tconst wrapperProps = {\n\t\t\t...wrapperAttributes,\n\t\t\tclassName: classnames(\n\t\t\t\t[ 'gform-input-group__wrapper' ],\n\t\t\t\twrapperAttributes.customClasses || [],\n\t\t\t),\n\t\t};\n\t\treturn <Wrapper { ...wrapperProps }>{ ch }</Wrapper>;\n\t};\n\n\tconst Container = tagName;\n\n\treturn (\n\t\t<Container { ...componentProps } ref={ ref }>\n\t\t\t{ ! childrenBelow && children }\n\t\t\t{\n\t\t\t\tdata.map( ( props, index ) => (\n\t\t\t\t\t<ConditionalWrapper\n\t\t\t\t\t\tcondition={ useWrapper }\n\t\t\t\t\t\tkey={ `${ inputId }-${ index }` }\n\t\t\t\t\t\twrapper={ getWrapper }\n\t\t\t\t\t>\n\t\t\t\t\t\t<InputContainer { ...props } type={ inputType } onChange={ handleOnChange } />\n\t\t\t\t\t</ConditionalWrapper>\n\t\t\t\t) )\n\t\t\t}\n\t\t\t{ childrenBelow && children }\n\t\t</Container>\n\t);\n} );\n\nInputGroup.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tchildrenBelow: PropTypes.bool,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tdata: PropTypes.array,\n\tid: PropTypes.string,\n\tinputType: PropTypes.string,\n\tonChange: PropTypes.func,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttagName: PropTypes.string,\n\tuseWrapper: PropTypes.bool,\n\twrapperAttributes: PropTypes.object,\n\twrapperTagName: PropTypes.string,\n};\n\nInputGroup.displayName = 'InputGroup';\n\nexport default InputGroup;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\n\nconst { forwardRef } = React;\n\n/**\n * @module List\n * @description A list component to display a list of items.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {Array}                      props.listItems        An array of list items to display.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.type             The list type, one of `unordered` or `ordered`.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element}\n *\n * @example\n * import List from '@gravityforms/components/react/admin/modules/List';\n *\n * return (\n *      <List\n *          listItems={\n * \t            [\n * \t                'Example list item 1.',\n * \t                'Example list item 2.',\n *                  'Example list item 3.',\n * \t            ]\n * \t        }\n * \t        spacing={ { '': 6, md: 8 } }\n * \t    />\n * );\n *\n */\nconst List = forwardRef( ( {\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tlistItems = [],\n\tspacing = '',\n\ttype = 'unordered',\n}, ref ) => {\n\tconst isUnordered = type === 'unordered';\n\tconst listAttributes = {\n\t\tclassName: classnames( {\n\t\t\t'gform-list': true,\n\t\t\t'gform-list--unordered': isUnordered,\n\t\t\t'gform-list--ordered': ! isUnordered,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\tconst Component = isUnordered ? 'ul' : 'ol';\n\n\treturn (\n\t\t<Component { ...listAttributes } ref={ ref }>\n\t\t\t{\n\t\t\t\tlistItems.map( ( listItem, index ) => (\n\t\t\t\t\t<li\n\t\t\t\t\t\tclassName=\"gform-list__item\"\n\t\t\t\t\t\tkey={ index }\n\t\t\t\t\t>\n\t\t\t\t\t\t{ listItem }\n\t\t\t\t\t</li>\n\t\t\t\t) )\n\t\t\t}\n\t\t</Component>\n\t);\n} );\n\nList.propTypes = {\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tlistItems: PropTypes.array,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttype: PropTypes.string,\n};\n\nList.displayName = 'List';\n\nexport default List;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\n\nconst { forwardRef } = React;\n\n/**\n * @module NavBar\n * @description The main nav used in various admin apps, without nav items.\n *\n * @since 1.1.15\n *\n * @param {object}              props                  Component props.\n * @param {JSX.Element}         props.children         React element children.\n * @param {object}              props.customAttributes Custom attributes for the component.\n * @param {string|Array|object} props.customClasses    Custom classes for the component.\n * @param {object|null}         ref                    Ref to the component.\n *\n * @return {JSX.Element} The text component.\n *\n * @example\n * import NavBar from '@gravityforms/components/react/admin/modules/NavBar';\n *\n * return (\n *     <NavBar customClasses={ [ 'example-class' ] }>\n *         { children }\n *     </NavBar>\n * );\n *\n */\nconst NavBar = forwardRef( ( {\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n}, ref ) => {\n\tconst navAttributes = {\n\t\tclassName: classnames( {\n\t\t\t'gform-nav-bar': true,\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\treturn (\n\t\t<nav { ...navAttributes } ref={ ref }>\n\t\t\t<div className=\"gform-nav-bar__logo\" />\n\t\t\t{ children }\n\t\t</nav>\n\t);\n} );\n\nNavBar.propTypes = {\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n};\n\nNavBar.displayName = 'NavBar';\n\nexport default NavBar;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses, uniqueId } from '@gravityforms/utils';\nimport Icon from '../../elements/Icon';\n\nconst { forwardRef } = React;\n\n/**\n * @module Steps\n * @description A steps component to display steps and show active step.\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {number}                     props.activeStep       The active step number.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {number}                     props.numSteps         The total number of steps.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element}\n *\n * @example\n * import Steps from '@gravityforms/components/react/admin/modules/Steps';\n *\n * return (\n *     <Steps customClasses={ [ 'example-class' ] } numSteps={ 7 } />\n * );\n *\n */\nconst Steps = forwardRef( ( {\n\tactiveStep = 1,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tnumSteps = 1,\n\tspacing = '',\n}, ref ) => {\n\tconst className = classnames( {\n\t\t'gform-steps': true,\n\t\t...spacerClasses( spacing ),\n\t}, customClasses );\n\tconst id = uniqueId( 'step' );\n\n\treturn (\n\t\t<ol className={ className } { ...customAttributes } ref={ ref }>\n\t\t\t{\n\t\t\t\t[ ...Array( numSteps ).keys() ].map( ( num, i ) => {\n\t\t\t\t\tconst stepNum = num + 1;\n\t\t\t\t\tconst itemClassName = classnames( {\n\t\t\t\t\t\t'gform-steps__step': true,\n\t\t\t\t\t\t'gform-steps__step--active': stepNum === activeStep,\n\t\t\t\t\t\t'gform-steps__step--completed': stepNum < activeStep,\n\t\t\t\t\t} );\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<li key={ `${ id }-${ i }` } className={ itemClassName }>\n\t\t\t\t\t\t\t<span className=\"gform-steps__step-count\">{ stepNum }</span>\n\t\t\t\t\t\t\t<Icon customClasses={ [ 'gform-steps__step-icon' ] } icon=\"check-mark-alt\" iconPrefix=\"gform-common-icon\" />\n\t\t\t\t\t\t</li>\n\t\t\t\t\t);\n\t\t\t\t} )\n\t\t\t}\n\t\t</ol>\n\t);\n} );\n\nSteps.propTypes = {\n\tactiveStep: PropTypes.number,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tnumSteps: PropTypes.number,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n};\n\nSteps.displayName = 'Steps';\n\nexport default Steps;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { spacerClasses } from '@gravityforms/utils';\nimport Icon from '../../elements/Icon';\nimport Label from '../../elements/Label';\nimport ColorPicker from '../ColorPicker';\n\nconst { useState, useEffect, useRef, forwardRef } = React;\n\n/**\n * @module Swatch\n * @description Allows users to select from a pallete of swatches, or add their own using a color picker\n *\n * @since 1.1.15\n *\n * @param {object}                     props                  Component props.\n * @param {boolean}                    props.allowNew         Whether to display an icon to add new swatches to the palette.\n * @param {object}                     props.customAttributes Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses    Custom classes for the component.\n * @param {object}                     props.i18n             Translated strings for the UI.\n * @param {string}                     props.id               The ID for the component.\n * @param {object}                     props.labelAttributes  Custom attributes to apply to the label for each swatch.\n * @param {string}                     props.name             The name of the component.\n * @param {Array}                      props.palette          An array of hex color values to display as default palette options.\n * @param {Array}                      props.paletteCustom    An array of hex color values to display as custom/editable palette options.\n * @param {string|number|Array|object} props.spacing          The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.value            The initial hex value to select.\n * @param {object|null}                ref                    Ref to the component.\n *\n * @return {JSX.Element} The Swatch component.\n *\n * @example\n * import Swatch from '@gravityforms/components/react/admin/modules/Swatch';\n *\n * return (\n *     <Swatch customClasses={ [ 'example-class' ] } palette={ [ '#000', '#111' ] } />\n * );\n *\n */\nconst Swatch = forwardRef( ( {\n\tallowNew = true,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\ti18n = {},\n\tid = '',\n\tlabelAttributes = {\n\t\tsize: 'text-sm',\n\t\tweight: 'medium',\n\t},\n\tname = '',\n\tpalette = [],\n\tpaletteCustom = [],\n\tspacing = '',\n\tvalue = '',\n}, ref ) => {\n\tconst [ showPicker, setShowPicker ] = useState( false );\n\tconst [ selectedColor, setSelectedColor ] = useState( value );\n\tconst [ color, setColor ] = useState( value );\n\tconst [ colorBeingModified, setColorBeingModified ] = useState( palette.length + 1 );\n\tconst [ customPaletteOptions, setCustomPaletteOptions ] = useState( paletteCustom );\n\tconst [ currentRef, setCurrentRef ] = useState( null );\n\n\tconst allInputRef = useRef( null );\n\tconst addNewRef = useRef( document.querySelector( `[data-js-setting-name=\"${ name }\"] .gform-input--swatch__option--new` ) );\n\tconst swatchRefs = useRef( [] );\n\n\tuseEffect( () => {\n\t\tconst newPaletteString = JSON.stringify( customPaletteOptions );\n\t\tallInputRef.current.value = newPaletteString;\n\n\t\tif ( customPaletteOptions.length === 0 ) {\n\t\t\tsetSelectedColor( value );\n\t\t}\n\t}, [ customPaletteOptions, value ] );\n\n\tuseEffect( () => {\n\t\tif ( ! currentRef || ! currentRef.current ) {\n\t\t\tsetCurrentRef( addNewRef );\n\t\t}\n\t}, [ setCurrentRef, currentRef ] );\n\n\t/**\n\t * @function handlePickerCancel\n\t * @description Handler for the cancel event on the swatch.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @return {void}\n\t */\n\tconst handlePickerCancel = () => {\n\t\tsetShowPicker( false );\n\t};\n\n\t/**\n\t * @function handlePickerDelete\n\t * @description Handler for the delete event on the swatch.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {number} index Index of the swatch palette.\n\t *\n\t * @return {void}\n\t */\n\tconst handlePickerDelete = ( index ) => {\n\t\tsetCustomPaletteOptions( ( prevPalette ) => prevPalette.filter( ( item, thisIndex ) => thisIndex !== index ) );\n\t\thandlePickerCancel();\n\t};\n\n\t/**\n\t * @function handlePickerSave\n\t * @description Handler for the save event on the swatch.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {string} swatch The swatch value.\n\t *\n\t * @return {void}\n\t */\n\tconst handlePickerSave = ( swatch ) => {\n\t\tsetColor( swatch );\n\t\tif ( ! customPaletteOptions.includes( swatch ) ) {\n\t\t\tsetCustomPaletteOptions( ( prevPalette ) => {\n\t\t\t\tconst newPalette = prevPalette;\n\t\t\t\tnewPalette[ colorBeingModified ] = swatch;\n\t\t\t\treturn newPalette;\n\t\t\t} );\n\t\t}\n\t\tsetSelectedColor( swatch );\n\t\tsetShowPicker( false );\n\t};\n\n\t/**\n\t * @function handleColorChange\n\t * @description Handler for the color change event.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {object} event Event object.\n\t *\n\t * @return {void}\n\t */\n\tconst handleColorChange = ( event ) => {\n\t\tsetSelectedColor( event.target.value );\n\t};\n\n\t/**\n\t * @function renderSwatchOption\n\t * @description Render the swatch option.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @param {string}  swatch   The swatch value.\n\t * @param {number}  index    The index of the swatch palette.\n\t * @param {boolean} isCustom Whether the swatch is custom or not.\n\t *\n\t * @return {JSX.Element} The swatch option.\n\t */\n\tconst renderSwatchOption = ( swatch, index, isCustom = false ) => {\n\t\tconst liProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input--swatch__option': true,\n\t\t\t} ),\n\t\t\tkey: index,\n\t\t};\n\n\t\tconst labelProps = {\n\t\t\thtmlFor: `${ name }_${ swatch }_${ index }`,\n\t\t\tlabel: i18n?.swatch || '',\n\t\t\tisVisible: false,\n\t\t\t...labelAttributes,\n\t\t};\n\n\t\tconst swatchInputProps = {\n\t\t\tonChange: handleColorChange,\n\t\t\ttype: 'radio',\n\t\t\tname,\n\t\t\tvalue: swatch,\n\t\t\tid: `${ name }_${ swatch }_${ index }`,\n\t\t\tchecked: swatch === selectedColor,\n\t\t};\n\n\t\tif ( isCustom ) {\n\t\t\tswatchInputProps.onClick = () => {\n\t\t\t\tsetColor( swatch );\n\t\t\t\tsetCurrentRef( { current: swatchRefs.current[ index ] } );\n\t\t\t\tsetColorBeingModified( index );\n\t\t\t\tsetShowPicker( true );\n\t\t\t};\n\t\t}\n\n\t\tconst swatchSpanProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input--swatch__option-preview': true,\n\t\t\t} ),\n\t\t\tstyle: {\n\t\t\t\tbackgroundColor: swatch,\n\t\t\t},\n\t\t\tonClick: ( e ) => {\n\t\t\t\tif ( e.target.classList.contains( 'gform-input--swatch-delete' ) ) {\n\t\t\t\t\thandlePickerDelete( index );\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tdocument.getElementById( `${ name }_${ swatch }_${ index }` ).click();\n\t\t\t},\n\t\t\tref: isCustom ? ( el ) => ( swatchRefs.current[ index ] = el ) : null,\n\t\t};\n\n\t\tconst iconProps = {\n\t\t\ticon: 'check',\n\t\t\tcustomClasses: classnames( {\n\t\t\t\t'gform-input--swatch-selected': true,\n\t\t\t} ),\n\t\t};\n\n\t\tconst deleteIconProps = {\n\t\t\ticon: 'delete',\n\t\t\tcustomClasses: classnames( {\n\t\t\t\t'gform-input--swatch-delete': true,\n\t\t\t} ),\n\t\t};\n\n\t\treturn (\n\t\t\t<li { ...liProps }>\n\t\t\t\t<Label { ...labelProps } />\n\t\t\t\t<input { ...swatchInputProps } />\n\t\t\t\t<span { ...swatchSpanProps } >\n\t\t\t\t\t{ swatch === selectedColor && <Icon { ...iconProps } /> }\n\t\t\t\t\t{ isCustom && <Icon { ...deleteIconProps } /> }\n\t\t\t\t</span>\n\t\t\t</li>\n\t\t);\n\t};\n\n\t/**\n\t * @function renderAddNewSwatchOption\n\t * @description Render the add new swatch option.\n\t *\n\t * @since 1.1.15\n\t *\n\t * @return {JSX.Element} The add new swatch option.\n\t */\n\tconst renderAddNewSwatchOption = () => {\n\t\tconst liProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input--swatch__option': true,\n\t\t\t\t'gform-input--swatch__option--new': true,\n\t\t\t} ),\n\t\t\tkey: 'add-new',\n\t\t};\n\n\t\tconst swatchSpanProps = {\n\t\t\tclassName: classnames( {\n\t\t\t\t'gform-input--swatch__option-preview': true,\n\t\t\t\t'gform-input--swatch__option-preview--new': true,\n\t\t\t} ),\n\t\t\tonClick: () => {\n\t\t\t\tsetCurrentRef( addNewRef );\n\t\t\t\tsetColorBeingModified( customPaletteOptions.length + 1 );\n\t\t\t\tsetShowPicker( true );\n\t\t\t},\n\t\t\tref: addNewRef,\n\t\t};\n\n\t\tconst iconProps = {\n\t\t\ticon: 'plus-regular',\n\t\t};\n\n\t\treturn (\n\t\t\t<li { ...liProps }>\n\t\t\t\t<span { ...swatchSpanProps } >\n\t\t\t\t\t<Icon { ...iconProps } />\n\t\t\t\t</span>\n\t\t\t</li>\n\t\t);\n\t};\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-input--swatch': true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, customClasses ),\n\t\tid,\n\t\t'data-js-setting-name': name,\n\t\t...customAttributes,\n\t};\n\n\tconst swatchOptionsProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-input--swatch-options': true,\n\t\t} ),\n\t};\n\n\tconst allSwatchesInputProps = {\n\t\tname: `${ name }-all-swatches`,\n\t\tdefaultValue: JSON.stringify( customPaletteOptions ),\n\t\tid: `${ name }-all-swatches`,\n\t\ttype: 'hidden',\n\t\tref: allInputRef,\n\t};\n\n\tconst pickerProps = {\n\t\tvalue: color,\n\t\tonSave: handlePickerSave,\n\t\tonCancel: handlePickerCancel,\n\t\ttriggerRef: currentRef,\n\t\ti18n: i18n?.colorPicker || {},\n\t};\n\n\treturn (\n\t\t<div { ...componentProps } ref={ ref }>\n\t\t\t<div style={ { height: '0' } } />\n\t\t\t<ul { ...swatchOptionsProps }>\n\t\t\t\t{ palette.map( ( swatch, index ) => renderSwatchOption( swatch, index ) ) }\n\t\t\t\t{ customPaletteOptions.map( ( swatch, index ) => renderSwatchOption( swatch, index, true ) ) }\n\t\t\t\t{ allowNew && renderAddNewSwatchOption() }\n\t\t\t</ul>\n\t\t\t{ showPicker && <ColorPicker { ...pickerProps } /> }\n\t\t\t<input { ...allSwatchesInputProps } />\n\t\t</div>\n\t);\n} );\n\nSwatch.propTypes = {\n\tallowNew: PropTypes.bool,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ti18n: PropTypes.object,\n\tid: PropTypes.string,\n\tlabelAttributes: PropTypes.object,\n\tname: PropTypes.string,\n\tpalette: PropTypes.array,\n\tpaletteCustom: PropTypes.array,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tvalue: PropTypes.string,\n};\n\nSwatch.displayName = 'Swatch';\n\nexport default Swatch;\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { debounce, uniqueId } from '@gravityforms/utils';\nimport Icon from '../../elements/Icon';\nimport Text from '../../elements/Text';\n\nconst { useEffect, useRef, useState, forwardRef } = React;\n\n// Constants set in CSS.\nconst TRIGGER_HEIGHT = 16;\nconst TRIGGER_WIDTH = 16;\nconst TOOLTIP_OFFSET = 14;\n\n/**\n * @module Tooltip\n * @description A tooltip component to display contextual messages.\n *\n * @since 1.1.15\n *\n * @param {object}              props                         Component props.\n * @param {number}              props.buffer                  The buffer from the edge of the window, in px.\n * @param {JSX.Element}         props.children                React element children.\n * @param {string}              props.content                 Tooltip content. Can only be strings. Use React children for html.\n * @param {object}              props.contentAttributes       Attributes for the tooltip content text component.\n * @param {object}              props.customAttributes        Custom attributes for the component.\n * @param {string|Array|object} props.customClasses           Custom classes for the component.\n * @param {string}              props.icon                    The name for the icon to use from the Gform admin icon library.\n * @param {number}              props.intentDelay             The delay to detect intent before the tooltip displays, in ms.\n * @param {string}              props.id                      The id for the tooltip. If not passed auto generated using uniqueId from our utils with a prefix of `tooltip`.\n * @param {number}              props.maxWidth                The max width of the tooltip, in px.\n * @param {string}              props.position                The position of the tooltip, one of `top`, `right`, `bottom`, or `left`.\n * @param {string}              props.theme                   The theme of the tooltip, one of `chathams` or `port`.\n * @param {object}              props.tooltipCustomAttributes Custom attributes for the tooltip.\n * @param {string}              type                          The type of the tooltip button, one of `default`, `success`, or `error`.\n * @param {object|null}         ref                           Ref to the component.\n *\n * @return {JSX.Element} Return the functional tooltip component in React.\n *\n * @example\n * import Tooltip from '@gravityforms/components/react/admin/modules/Tooltip';\n *\n * return (\n *      <Tooltip customClasses={ [ 'example-class' ] } maxWidth={ 200 }>\n *          { children }\n *      </Tooltip>\n * );\n *\n */\nconst Tooltip = forwardRef( ( {\n\tbuffer = 0,\n\tchildren = null,\n\tcontent = '',\n\tcontentAttributes = {},\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\ticon = 'question-mark',\n\tintentDelay = 500,\n\tid = '',\n\tmaxWidth = 0,\n\tposition = 'top',\n\ttheme = 'chathams',\n\ttooltipCustomAttributes = {},\n\ttype = 'default',\n}, ref ) => {\n\tconst tooltipId = id || uniqueId( 'tooltip' );\n\n\tconst tooltipRef = useRef();\n\tconst [ width, setWidth ] = useState( 0 );\n\tconst [ intent, setIntent ] = useState( false );\n\tconst [ animationReady, setAnimationReady ] = useState( false );\n\tconst [ animationActive, setAnimationActive ] = useState( false );\n\tconst [ tooltipPosition, setTooltipPosition ] = useState( 'top' );\n\n\tconst setIntentTrue = () => {\n\t\tsetIntent( true );\n\t\tif ( tooltipRef.current && ! width ) {\n\t\t\tsetWidth( tooltipRef.current.offsetWidth + 1 );\n\t\t}\n\t};\n\tconst setIntentFalse = () => {\n\t\tsetIntent( false );\n\t\tif ( animationReady ) {\n\t\t\tsetAnimationActive( false );\n\t\t}\n\t\tdebouncedFadeIn.cancel();\n\t};\n\n\tconst debouncedFadeIn = debounce( () => {\n\t\tsetAnimationReady( true );\n\t\tsetTooltipPosition( position );\n\t\trequestAnimationFrame( () => {\n\t\t\tconst smartPosition = getSmartPosition( buffer, position, tooltipRef );\n\t\t\tsetTooltipPosition( smartPosition );\n\t\t\tsetAnimationActive( true );\n\t\t} );\n\t}, { wait: intentDelay } );\n\n\tuseEffect( () => {\n\t\tif ( intent ) {\n\t\t\tdebouncedFadeIn();\n\t\t}\n\t}, [ intent ] );\n\n\t/**\n\t * @function getPercentageInFrame\n\t * @description Get the percentage of an area that is within frame, whether the box area is defined by width and height.\n\t *\n\t * @param {number} w            The width of the box.\n\t * @param {number} h            The width of the box.\n\t * @param {number} offsetLeft   The left offset of the box, which is subtracted from the box area.\n\t * @param {number} offsetRight  The right offset of the box, which is subtracted from the box area.\n\t * @param {number} offsetTop    The top offset of the box, which is subtracted from the box area.\n\t * @param {number} offsetBottom The bottom offset of the box, which is subtracted from the box area.\n\t *\n\t * @return {number} The percentage of the box area that is within frame, as a decimal.\n\t */\n\tconst getPercentageInFrame = (\n\t\tw,\n\t\th,\n\t\toffsetLeft,\n\t\toffsetRight,\n\t\toffsetTop,\n\t\toffsetBottom\n\t) => {\n\t\tconst area = w * h;\n\t\tlet offsetArea = 0;\n\n\t\tif ( offsetLeft > 0 ) {\n\t\t\toffsetArea += offsetLeft * h;\n\t\t}\n\t\tif ( offsetRight > 0 ) {\n\t\t\toffsetArea += offsetRight * h;\n\t\t}\n\t\tif ( offsetTop > 0 ) {\n\t\t\toffsetArea += offsetTop * w;\n\t\t}\n\t\tif ( offsetBottom > 0 ) {\n\t\t\toffsetArea += offsetBottom * w;\n\t\t}\n\t\tif ( offsetTop > 0 && offsetLeft > 0 ) {\n\t\t\toffsetArea -= offsetTop * offsetLeft;\n\t\t}\n\t\tif ( offsetTop > 0 && offsetRight > 0 ) {\n\t\t\toffsetArea -= offsetTop * offsetRight;\n\t\t}\n\t\tif ( offsetBottom > 0 && offsetLeft > 0 ) {\n\t\t\toffsetArea -= offsetBottom * offsetLeft;\n\t\t}\n\t\tif ( offsetBottom > 0 && offsetRight > 0 ) {\n\t\t\toffsetArea -= offsetBottom * offsetRight;\n\t\t}\n\n\t\treturn ( area - offsetArea ) / area;\n\t};\n\n\t/**\n\t * @function getNewPositionPercentageInFrame\n\t * @description Get the new position percentage in frame from the old position.\n\t *\n\t * @param {string}  from  Initial position of rect, one of `top`, `bottom`, `left`, or `right`.\n\t * @param {string}  to    Final position of rect, one of `top`, `bottom`, `left`, or `right`.\n\t * @param {DOMRect} rect  The DOMRect object of rect.\n\t * @param {Window}  frame The DOM element of the frame.\n\t * @param {number}  bf    The buffer from the edge of the frame, in px.\n\t *\n\t * @return {number} The new position percentage in frame.\n\t */\n\tconst getNewPositionPercentageInFrame = ( from, to, rect, frame, bf ) => {\n\t\tconst frameWidth = frame.innerWidth;\n\t\tconst frameHeight = frame.innerHeight;\n\t\tconst fromRectTopDiff = bf - rect.top;\n\t\tconst fromRectBottomDiff = rect.bottom - ( frameHeight - bf );\n\t\tconst fromRectLeftDiff = bf - rect.left;\n\t\tconst fromRectRightDiff = rect.right - ( frameWidth - bf );\n\t\tlet toRectTopY, toRectBottomY, toRectLeftX, toRectRightX;\n\t\tlet toRectTopDiff, toRectBottomDiff, toRectLeftDiff, toRectRightDiff;\n\n\t\tswitch ( from ) {\n\t\t\tcase 'top':\n\t\t\t\tswitch ( to ) {\n\t\t\t\t\tcase 'top':\n\t\t\t\t\t\t// Top to Top.\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\t\t// Top to Bottom.\n\t\t\t\t\t\ttoRectTopY = rect.bottom + ( 2 * ( TOOLTIP_OFFSET + ( TRIGGER_HEIGHT / 2 ) ) );\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = fromRectLeftDiff;\n\t\t\t\t\t\ttoRectRightDiff = fromRectRightDiff;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'left':\n\t\t\t\t\t\t// Top to Left.\n\t\t\t\t\t\ttoRectTopY = rect.bottom + TOOLTIP_OFFSET + ( TRIGGER_WIDTH / 2 ) - ( rect.height / 2 );\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.left + ( rect.width / 2 ) - ( TRIGGER_WIDTH / 2 ) - TOOLTIP_OFFSET - rect.width;\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'right': // Top to Right.\n\t\t\t\t\t\ttoRectTopY = rect.bottom + TOOLTIP_OFFSET + ( TRIGGER_WIDTH / 2 ) - ( rect.height / 2 );\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.left + ( rect.width / 2 ) + ( TRIGGER_WIDTH / 2 ) + TOOLTIP_OFFSET;\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// Top to anything else.\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tswitch ( to ) {\n\t\t\t\t\tcase 'top':\n\t\t\t\t\t\t// Bottom to Top.\n\t\t\t\t\t\ttoRectTopY = rect.top - ( 2 * ( TOOLTIP_OFFSET + ( TRIGGER_HEIGHT / 2 ) ) ) - rect.height;\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = fromRectLeftDiff;\n\t\t\t\t\t\ttoRectRightDiff = fromRectRightDiff;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\t\t// Bottom to Bottom.\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase 'left':\n\t\t\t\t\t\t// Bottom to Left.\n\t\t\t\t\t\ttoRectTopY = rect.top - TOOLTIP_OFFSET - ( TRIGGER_WIDTH / 2 ) - ( rect.height / 2 );\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.left + ( rect.width / 2 ) - ( TRIGGER_WIDTH / 2 ) - TOOLTIP_OFFSET - rect.width;\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'right':\n\t\t\t\t\t\t// Bottom to Right.\n\t\t\t\t\t\ttoRectTopY = rect.top - TOOLTIP_OFFSET - ( TRIGGER_WIDTH / 2 ) - ( rect.height / 2 );\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.left + ( rect.width / 2 ) + ( TRIGGER_WIDTH / 2 ) + TOOLTIP_OFFSET;\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// Bottom to anything else.\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'left':\n\t\t\t\tswitch ( to ) {\n\t\t\t\t\tcase 'top':\n\t\t\t\t\t\t// Left to Top.\n\t\t\t\t\t\ttoRectTopY = rect.top + ( rect.height / 2 ) - ( TRIGGER_HEIGHT / 2 ) - TOOLTIP_OFFSET - rect.height;\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.right + TOOLTIP_OFFSET + ( TRIGGER_WIDTH / 2 ) - ( rect.width / 2 );\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\t\t// Left to Bottom.\n\t\t\t\t\t\ttoRectTopY = rect.top + ( rect.height / 2 ) + ( TRIGGER_HEIGHT / 2 ) + TOOLTIP_OFFSET;\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.right + TOOLTIP_OFFSET + ( TRIGGER_WIDTH / 2 ) - ( rect.width / 2 );\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'left':\n\t\t\t\t\t\t// Left to Left.\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tcase 'right':\n\t\t\t\t\t\t// Left to Right.\n\t\t\t\t\t\ttoRectLeftX = rect.right + ( 2 * ( TOOLTIP_OFFSET + ( TRIGGER_WIDTH / 2 ) ) );\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = fromRectTopDiff;\n\t\t\t\t\t\ttoRectBottomDiff = fromRectBottomDiff;\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// Left to anything else.\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'right':\n\t\t\t\tswitch ( to ) {\n\t\t\t\t\tcase 'top':\n\t\t\t\t\t\t// Right to Top.\n\t\t\t\t\t\ttoRectTopY = rect.top + ( rect.height / 2 ) - ( TRIGGER_HEIGHT / 2 ) - TOOLTIP_OFFSET - rect.height;\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.left - TOOLTIP_OFFSET - ( TRIGGER_WIDTH / 2 ) - ( rect.width / 2 );\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'bottom':\n\t\t\t\t\t\t// Right to Bottom.\n\t\t\t\t\t\ttoRectTopY = rect.top + ( rect.height / 2 ) + ( TRIGGER_HEIGHT / 2 ) + TOOLTIP_OFFSET;\n\t\t\t\t\t\ttoRectBottomY = toRectTopY + rect.height;\n\t\t\t\t\t\ttoRectLeftX = rect.left - TOOLTIP_OFFSET - ( TRIGGER_WIDTH / 2 ) - ( rect.width / 2 );\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = bf - toRectTopY;\n\t\t\t\t\t\ttoRectBottomDiff = toRectBottomY - ( frameHeight - bf );\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'left':\n\t\t\t\t\t\t// Right to Left.\n\t\t\t\t\t\ttoRectLeftX = rect.left - ( 2 * ( TOOLTIP_OFFSET + ( TRIGGER_WIDTH / 2 ) ) ) - rect.width;\n\t\t\t\t\t\ttoRectRightX = toRectLeftX + rect.width;\n\t\t\t\t\t\ttoRectTopDiff = fromRectTopDiff;\n\t\t\t\t\t\ttoRectBottomDiff = fromRectBottomDiff;\n\t\t\t\t\t\ttoRectLeftDiff = bf - toRectLeftX;\n\t\t\t\t\t\ttoRectRightDiff = toRectRightX - ( frameWidth - bf );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'right':\n\t\t\t\t\t\t// Right to Right.\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// Right to anything else.\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t}\n\n\t\treturn getPercentageInFrame(\n\t\t\trect.width,\n\t\t\trect.height,\n\t\t\ttoRectLeftDiff,\n\t\t\ttoRectRightDiff,\n\t\t\ttoRectTopDiff,\n\t\t\ttoRectBottomDiff,\n\t\t);\n\t};\n\n\t/**\n\t * @function getSmartPosition\n\t * @description Get smart position based on area in the frame.\n\t *\n\t * @param {number} bf   The buffer from the edge of the frame, in px.\n\t * @param {string} pos  The current position of the tooltip.\n\t * @param {object} tRef The ref object of the tooltip.\n\t *\n\t * @return {string} The smart position based on area.\n\t */\n\tconst getSmartPosition = ( bf, pos, tRef ) => {\n\t\tif ( ! tRef.current ) {\n\t\t\t// No tooltip ref, return early.\n\t\t\treturn pos;\n\t\t}\n\n\t\tconst tooltipRect = tRef.current.getBoundingClientRect();\n\t\tconst frame = tRef.current.ownerDocument.defaultView;\n\t\tconst frameWidth = frame.innerWidth;\n\t\tconst frameHeight = frame.innerHeight;\n\t\tconst currentRectTopDiff = bf - tooltipRect.top;\n\t\tconst currentRectBottomDiff = tooltipRect.bottom - ( frameHeight - bf );\n\t\tconst currentRectLeftDiff = bf - tooltipRect.left;\n\t\tconst currentRectRightDiff = tooltipRect.right - ( frameWidth - bf );\n\n\t\tconst currentPercentageInFrame = getPercentageInFrame(\n\t\t\ttooltipRect.width,\n\t\t\ttooltipRect.height,\n\t\t\tcurrentRectLeftDiff,\n\t\t\tcurrentRectRightDiff,\n\t\t\tcurrentRectTopDiff,\n\t\t\tcurrentRectBottomDiff,\n\t\t);\n\t\tconst positions = {};\n\n\t\tswitch ( pos ) {\n\t\t\tcase 'top':\n\t\t\t\tpositions.top = currentPercentageInFrame;\n\t\t\t\tpositions.bottom = getNewPositionPercentageInFrame( 'top', 'bottom', tooltipRect, frame, bf );\n\t\t\t\tpositions.left = getNewPositionPercentageInFrame( 'top', 'left', tooltipRect, frame, bf );\n\t\t\t\tpositions.right = getNewPositionPercentageInFrame( 'top', 'right', tooltipRect, frame, bf );\n\t\t\t\t// Current position is largest in frame, return original position.\n\t\t\t\tbreak;\n\t\t\tcase 'bottom':\n\t\t\t\tpositions.top = getNewPositionPercentageInFrame( 'bottom', 'top', tooltipRect, frame, bf );\n\t\t\t\tpositions.bottom = currentPercentageInFrame;\n\t\t\t\tpositions.left = getNewPositionPercentageInFrame( 'bottom', 'left', tooltipRect, frame, bf );\n\t\t\t\tpositions.right = getNewPositionPercentageInFrame( 'bottom', 'right', tooltipRect, frame, bf );\n\t\t\t\t// Current position is largest in frame, return original position.\n\t\t\t\tbreak;\n\t\t\tcase 'left':\n\t\t\t\tpositions.top = getNewPositionPercentageInFrame( 'left', 'top', tooltipRect, frame, bf );\n\t\t\t\tpositions.bottom = getNewPositionPercentageInFrame( 'left', 'bottom', tooltipRect, frame, bf );\n\t\t\t\tpositions.left = currentPercentageInFrame;\n\t\t\t\tpositions.right = getNewPositionPercentageInFrame( 'left', 'right', tooltipRect, frame, bf );\n\t\t\t\t// Current position is largest in frame, return original position.\n\t\t\t\tbreak;\n\t\t\tcase 'right':\n\t\t\t\tpositions.top = getNewPositionPercentageInFrame( 'right', 'top', tooltipRect, frame, bf );\n\t\t\t\tpositions.bottom = getNewPositionPercentageInFrame( 'right', 'bottom', tooltipRect, frame, bf );\n\t\t\t\tpositions.left = getNewPositionPercentageInFrame( 'right', 'left', tooltipRect, frame, bf );\n\t\t\t\tpositions.right = currentPercentageInFrame;\n\t\t\t\t// Current position is largest in frame, return original position.\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn pos;\n\t\t}\n\n\t\tconst smartPosition = Object.keys( positions ).reduce( ( carry, ps ) => {\n\t\t\tif ( positions[ ps ] > positions[ carry ] ) {\n\t\t\t\treturn ps;\n\t\t\t}\n\n\t\t\treturn carry;\n\t\t}, pos );\n\n\t\treturn smartPosition;\n\t};\n\n\t/**\n\t * @function TooltipContent\n\t * @description The tooltip content if content exists, otherwise null.\n\t *\n\t * @param {string} con         Tooltip content. Can only be strings.\n\t * @param {object} cAttributes Custom attributes for the tooltip content.\n\t *\n\t * @return {JSX.Element|null}\n\t */\n\tconst TooltipContent = ( {\n\t\tcon = '',\n\t\tcAttributes = { size: 'text-xs' },\n\t} ) => {\n\t\tif ( ! con ) {\n\t\t\treturn null;\n\t\t}\n\n\t\tconst { customClasses: cClasses, ...rest } = cAttributes;\n\t\tconst className = classnames( [\n\t\t\t'gform-tooltip__tooltip-content',\n\t\t], cClasses );\n\n\t\tconst attributes = {\n\t\t\tcustomClasses: className,\n\t\t\t...rest,\n\t\t};\n\n\t\treturn <Text { ...attributes }>{ con }</Text>;\n\t};\n\n\tconst attributes = {\n\t\tclassName: classnames( {\n\t\t\t'gform-tooltip': true,\n\t\t\t[ `gform-tooltip--position-${ tooltipPosition }` ]: true,\n\t\t\t[ `gform-tooltip--theme-${ theme }` ]: true,\n\t\t\t[ `gform-tooltip--type-${ type }` ]: true,\n\t\t\t'gform-tooltip--initialized': !! width,\n\t\t\t'gform-tooltip--anim-in-ready': animationReady,\n\t\t\t'gform-tooltip--anim-in-active': animationReady && animationActive,\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\tconst triggerAttributes = {\n\t\tclassName: 'gform-tooltip__trigger',\n\t\t'aria-describedby': tooltipId,\n\t\tonBlur: setIntentFalse,\n\t\tonFocus: setIntentTrue,\n\t\tonMouseEnter: setIntentTrue,\n\t\tonMouseLeave: setIntentFalse,\n\t};\n\n\tconst tooltipAttributes = {\n\t\tclassName: 'gform-tooltip__tooltip',\n\t\trole: 'tooltip',\n\t\tid: tooltipId,\n\t\tonTransitionEnd: () => {\n\t\t\tif ( ! animationActive ) {\n\t\t\t\tsetAnimationReady( false );\n\t\t\t}\n\t\t},\n\t\t...tooltipCustomAttributes,\n\t};\n\tconst style = {};\n\tif ( width ) {\n\t\tstyle.width = width + 'px';\n\t}\n\tif ( maxWidth ) {\n\t\tstyle.maxWidth = maxWidth + 'px';\n\t}\n\ttooltipAttributes.style = style;\n\n\treturn (\n\t\t<div { ...attributes } ref={ ref }>\n\t\t\t<button { ...triggerAttributes }>\n\t\t\t\t<Icon icon={ icon } />\n\t\t\t</button>\n\t\t\t<div ref={ tooltipRef } { ...tooltipAttributes }>\n\t\t\t\t<TooltipContent con={ content } cAttributes={ contentAttributes } />\n\t\t\t\t{ children }\n\t\t\t\t<span className=\"gform-tooltip__tooltip-arrow\" />\n\t\t\t</div>\n\t\t</div>\n\t);\n} );\n\nTooltip.propTypes = {\n\tbuffer: PropTypes.number,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcontent: PropTypes.string,\n\tcontentAttributes: PropTypes.object,\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ticon: PropTypes.string,\n\tintentDelay: PropTypes.number,\n\tid: PropTypes.string,\n\tmaxWidth: PropTypes.number,\n\tposition: PropTypes.string,\n\ttheme: PropTypes.string,\n\ttooltipCustomAttributes: PropTypes.object,\n\ttype: PropTypes.string,\n};\n\nTooltip.displayName = 'Tooltip';\n\nexport default Tooltip;\n","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n  if (source == null) return {};\n  var target = objectWithoutPropertiesLoose(source, excluded);\n  var key, i;\n  if (Object.getOwnPropertySymbols) {\n    var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n    for (i = 0; i < sourceSymbolKeys.length; i++) {\n      key = sourceSymbolKeys[i];\n      if (excluded.indexOf(key) >= 0) continue;\n      if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n      target[key] = source[key];\n    }\n  }\n  return target;\n}","export default function _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n  return target;\n}","import { React } from '@gravityforms/libraries';\nimport { useScript } from '@gravityforms/react-utils';\nimport { trigger } from '@gravityforms/utils';\n\nconst { useRef, useEffect, useState } = React;\n\nconst VIDYARD_LIBRARY_SRC = 'https://play.vidyard.com/embed/v4.js';\nconst videoDefaultOptions = {\n\tvidyard: {\n\t\taspect: '16:10',\n\t\ttype: 'inline',\n\t},\n};\n\n/**\n * @function Vidyard\n * @description A vidyard video player.\n *\n * @since 1.2.2\n *\n * @param {object} componentProps Component properties from consumer.\n * @param {object} videoOptions   Video options for player type from consumer. See https://knowledge.vidyard.com/hc/en-us/articles/360009879754-Use-query-strings-to-override-player-settings.\n *\n * @return {JSX.Element} A vidyard video instance.\n */\nexport function Vidyard( {\n\tcomponentProps = {},\n\tvideoOptions = {},\n} ) {\n\tconst videoRef = useRef( null );\n\tconst [ loading, error ] = useScript( { src: VIDYARD_LIBRARY_SRC } );\n\tconst [ rendered, setRendered ] = useState( false );\n\n\tuseEffect( () => {\n\t\t// if we are loading, errored, don't have a vidref, or weren't supplied uuid for video, no point in going on.\n\t\tif ( loading || error || ! videoRef.current || ! videoOptions.uuid ) {\n\t\t\treturn;\n\t\t}\n\t\t// get the vidyard api from the loaded script.\n\t\tconst { api: vidyardApi } = window.VidyardV4;\n\t\t// create the final video options.\n\t\tconst options = Object.assign( {}, videoDefaultOptions.vidyard, videoOptions, {\n\t\t\tcontainer: videoRef.current,\n\t\t} );\n\n\t\t/**\n\t\t * @function controlPlayer\n\t\t * @description Listen on document for custom events to either play or pause the player using the vidyard api.\n\t\t *\n\t\t * @since 1.2.2\n\t\t *\n\t\t * @param {CustomEvent} e The event object.\n\t\t *\n\t\t * @return {void}\n\t\t */\n\t\tconst controlPlayer = ( e ) => {\n\t\t\tif ( e.type !== 'gform/video/pauseAll' && e.detail.uuid !== videoOptions.uuid ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst player = vidyardApi.getPlayersByUUID( videoOptions.uuid )[ 0 ];\n\t\t\tlet eventType = '';\n\t\t\tif ( e.type === 'gform/video/play' ) {\n\t\t\t\tplayer.play();\n\t\t\t\teventType = 'playing';\n\t\t\t} else if ( e.type === 'gform/video/pause' || e.type === 'gform/video/pauseAll' ) {\n\t\t\t\tplayer.pause();\n\t\t\t\teventType = 'paused';\n\t\t\t}\n\t\t\ttrigger( { event: `gform/video/${ eventType }`, native: false, data: {\n\t\t\t\toptions,\n\t\t\t\tplayer,\n\t\t\t} } );\n\t\t};\n\n\t\t// render the player into the dom on the react ref.\n\t\tvidyardApi\n\t\t\t.renderPlayer( options ).then( ( player ) => {\n\t\t\t\t// set rendered state\n\t\t\t\tsetRendered( true );\n\t\t\t\t// after player render bind listeners in promise.\n\t\t\t\tdocument.addEventListener( 'gform/video/pause', controlPlayer );\n\t\t\t\tdocument.addEventListener( 'gform/video/pauseAll', controlPlayer );\n\t\t\t\tdocument.addEventListener( 'gform/video/play', controlPlayer );\n\t\t\t\t// trigger an event for consumers with instance.\n\t\t\t\ttrigger( { event: 'gform/video/rendered', native: false, data: {\n\t\t\t\t\toptions,\n\t\t\t\t\tplayer,\n\t\t\t\t} } );\n\t\t\t} );\n\n\t\treturn () => {\n\t\t\t// on unmount clean up listeners and destroy player.\n\t\t\tconst player = vidyardApi.getPlayersByUUID( videoOptions.uuid )[ 0 ];\n\t\t\tvidyardApi.destroyPlayer( player );\n\t\t\tdocument.removeEventListener( 'gform/video/pause', controlPlayer );\n\t\t\tdocument.removeEventListener( 'gform/video/pauseAll', controlPlayer );\n\t\t\tdocument.removeEventListener( 'gform/video/play', controlPlayer );\n\t\t};\n\t}, [ loading, error, videoOptions ] );\n\n\tif ( loading ) {\n\t\treturn <h3>Loading Vidyard API...</h3>;\n\t}\n\tif ( error ) {\n\t\treturn <h3>Failed to load Vidyard API: { error.message }</h3>;\n\t}\n\n\tconst style = {\n\t\tdisplay: rendered ? 'block' : 'none',\n\t};\n\n\treturn (\n\t\t<div ref={ videoRef } { ...componentProps } style={ style } />\n\t);\n}\n","import { React, PropTypes, classnames } from '@gravityforms/libraries';\nimport { aspectRatioToPadding, spacerClasses, trigger } from '@gravityforms/utils';\nimport { Vidyard } from './index.types';\nimport Button from '../../elements/Button';\nimport Text from '../../elements/Text';\n\nconst { useState, forwardRef } = React;\n\n/**\n * @module Video\n * @description A video component.\n *\n * @since 1.2.2\n *\n * @param {object}                     props                          Component props.\n * @param {string}                     props.aspectRatio              The aspect ratio for the video, needed if using placeholder.\n * @param {JSX.Element}                props.children                 React element children.\n * @param {object}                     props.customAttributes         Custom attributes for the component.\n * @param {string|Array|object}        props.customClasses            Custom classes for the component.\n * @param {boolean}                    props.placeholderButton        Whether to display a play button over the placeholder if passed.\n * @param {object}                     props.placeholderButtonProps   The props for the play button.\n * @param {string|Array|object}        props.placeholderCustomClasses Custom classes for the placeholder image container.\n * @param {string}                     props.placeholderImage         String for the placeholder image. Valid url or encoded inline image.\n * @param {string}                     props.placeholderText          Text to display over the placeholder.\n * @param {object}                     props.placeholderTextProps     Props for the text component displayed over the placeholder.\n * @param {string|number|Array|object} props.spacing                  The spacing for the component, as a string, number, array, or object.\n * @param {string}                     props.type                     The type used in the types module to determine which video library to spin up.\n * @param {object}                     props.videoOptions             The options object for the video player based on type.\n * @param {object}                     props.wrapperAttributes        Custom attributes for the wrapper component.\n * @param {string|Array|object}        props.wrapperClasses           Custom classes for the wrapper component.\n * @param {object|null}                ref                            Ref to the component.\n *\n * @returns {JSX.Element} The Video component.\n *\n * @example\n * import Video from '@gravityforms/components/react/admin/modules/Video';\n *\n * return (\n *      <Video\n *          customClasses={ [ 'example-class' ] }\n *          type=\"Vidyard\"\n *          aspectRatio=\"16:9\"\n *          videoOptions={ { uuid: 'example-id' } }\n *      >\n *          { children }\n *      </Video>\n * );\n *\n */\nconst Video = forwardRef( ( {\n\taspectRatio = '',\n\tchildren = null,\n\tcustomAttributes = {},\n\tcustomClasses = [],\n\tplaceholderButton = false,\n\tplaceholderButtonProps = {},\n\tplaceholderCustomClasses = [],\n\tplaceholderImage = '',\n\tplaceholderText = '',\n\tplaceholderTextProps = {},\n\tspacing = '',\n\ttype = 'vidyard',\n\tvideoOptions = {},\n\twrapperAttributes = {},\n\twrapperClasses = [],\n}, ref ) => {\n\tconst [ videoPlaying, setVideoPlaying ] = useState( false );\n\tconst [ videoRevealed, setVideoRevealed ] = useState( false );\n\n\tconst wrapperProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-video__wrapper': true,\n\t\t\t...spacerClasses( spacing ),\n\t\t}, wrapperClasses ),\n\t\tstyle: {\n\t\t\tpaddingTop: aspectRatio.length ? `${ aspectRatioToPadding( aspectRatio ) }%` : 0,\n\t\t},\n\t\t...wrapperAttributes,\n\t};\n\n\tconst componentProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-video': true,\n\t\t\t[ `gform-video--type-${ type }` ]: true,\n\t\t\t'gform-video--has-ratio': aspectRatio.length,\n\t\t\t'gform-video--has-placeholder': placeholderImage.length,\n\t\t\t'gform-video--playing': videoPlaying,\n\t\t\t'gform-video--revealed': videoRevealed,\n\t\t}, customClasses ),\n\t\t...customAttributes,\n\t};\n\n\tconst plhdrProps = {\n\t\tclassName: classnames( {\n\t\t\t'gform-video__placeholder': true,\n\t\t\t'gform-video__placeholder--has-ratio': aspectRatio.length,\n\t\t\t'gform-video__placeholder--playing': videoPlaying,\n\t\t\t'gform-video__placeholder--revealed': videoRevealed,\n\t\t}, placeholderCustomClasses ),\n\t\tstyle: {\n\t\t\tbackgroundImage: `url(\"${ placeholderImage }\")`,\n\t\t\tpaddingTop: aspectRatio.length ? `${ aspectRatioToPadding( aspectRatio ) }%` : 0,\n\t\t},\n\t};\n\n\tconst plhdrButtonProps = {\n\t\tcustomClasses: [ 'gform-button--video-play' ],\n\t\ticon: 'play-arrow',\n\t\ticonPrefix: 'gform-common-icon',\n\t\tonClick: () => {\n\t\t\ttrigger( { event: 'gform/video/play', native: false, data: { uuid: videoOptions.uuid } } );\n\t\t\tsetTimeout( () => {\n\t\t\t\tsetVideoPlaying( true );\n\t\t\t}, 300 );\n\t\t\tsetTimeout( () => {\n\t\t\t\tsetVideoRevealed( true );\n\t\t\t}, 900 );\n\t\t},\n\t\t...placeholderButtonProps,\n\t};\n\n\tconst Player = () => {\n\t\tswitch ( type ) {\n\t\t\tcase 'vidyard':\n\t\t\t\treturn <Vidyard componentProps={ componentProps } videoOptions={ videoOptions } />;\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t}\n\t};\n\n\treturn (\n\t\t<div { ...wrapperProps } ref={ ref }>\n\t\t\t{ placeholderImage.length > 0 &&\n\t\t\t\t<div { ...plhdrProps }>\n\t\t\t\t\t<div className=\"gform-video__placeholder-inner\">\n\t\t\t\t\t\t{ placeholderText.length > 0 &&\n\t\t\t\t\t\t\t<Text { ...placeholderTextProps } />\n\t\t\t\t\t\t}\n\t\t\t\t\t\t{ placeholderButton &&\n\t\t\t\t\t\t\t<Button { ...plhdrButtonProps } />\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t}\n\t\t\t{ Player() }\n\t\t\t{ children }\n\t\t</div>\n\t);\n} );\n\nVideo.propTypes = {\n\taspectRatio: PropTypes.string,\n\tchildren: PropTypes.oneOfType( [\n\t\tPropTypes.arrayOf( PropTypes.node ),\n\t\tPropTypes.node,\n\t] ),\n\tcustomAttributes: PropTypes.object,\n\tcustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tplaceholderButton: PropTypes.bool,\n\tplaceholderButtonProps: PropTypes.object,\n\tplaceholderCustomClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\tplaceholderImage: PropTypes.string,\n\tplaceholderText: PropTypes.string,\n\tplaceholderTextProps: PropTypes.object,\n\tspacing: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.number,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n\ttype: PropTypes.string,\n\tvideoOptions: PropTypes.object,\n\twrapperAttributes: PropTypes.object,\n\twrapperClasses: PropTypes.oneOfType( [\n\t\tPropTypes.string,\n\t\tPropTypes.array,\n\t\tPropTypes.object,\n\t] ),\n};\n\nVideo.displayName = 'Video';\n\nexport default Video;\n","import Alert, { alertTemplate } from '../html/admin/elements/Alert';\nimport Button, { buttonTemplate } from '../html/admin/elements/Button';\nimport Dropdown, { dropdownTemplate, dropdownListItems } from '../html/admin/elements/Dropdown';\nimport Input, { inputTemplate } from '../html/admin/elements/Input';\nimport Link, { linkTemplate } from '../html/admin/elements/Link';\nimport Loader, { loaderTemplate } from '../html/admin/elements/Loader';\nimport StackedIcon, { stackedIconTemplate } from '../html/admin/elements/StackedIcon';\nimport StatusIndicator, { statusIndicatorTemplate } from '../html/admin/elements/StatusIndicator';\nimport Textarea, { textareaTemplate } from '../html/admin/elements/Textarea';\nimport Toggle, { toggleTemplate } from '../html/admin/elements/Toggle';\n\nimport Dialog, { dialogTemplate } from '../html/admin/modules/Dialog';\nimport Flyout, { flyoutTemplate } from '../html/admin/modules/Flyout';\nimport Table from '../html/admin/modules/Table';\n\nimport EmbedForm from '../html/admin/apps/EmbedForm';\n\nimport ReactBox from '../react/admin/elements/Box';\nimport ReactButton from '../react/admin/elements/Button';\nimport ReactCheckbox from '../react/admin/elements/Checkbox';\nimport ReactFileUpload from '../react/admin/elements/FileUpload';\nimport ReactGrid from '../react/admin/elements/Grid';\nimport ReactHeading from '../react/admin/elements/Heading';\nimport ReactHelpText from '../react/admin/elements/HelpText';\nimport ReactIcon from '../react/admin/elements/Icon';\nimport ReactImage from '../react/admin/elements/Image';\nimport ReactInput from '../react/admin/elements/Input';\nimport ReactLabel from '../react/admin/elements/Label';\nimport ReactLink from '../react/admin/elements/Link';\nimport ReactRadio from '../react/admin/elements/Radio';\nimport ReactRange from '../react/admin/elements/Range';\nimport ReactSelect from '../react/admin/elements/Select';\nimport ReactTag from '../react/admin/elements/Tag';\nimport ReactText from '../react/admin/elements/Text';\nimport ReactTextarea from '../react/admin/elements/Textarea';\nimport ReactToggle from '../react/admin/elements/Toggle';\n\nimport ReactCard from '../react/admin/modules/Card';\nimport ReactColorPicker from '../react/admin/modules/ColorPicker';\nimport ReactDialog from '../react/admin/modules/Dialog';\nimport ReactFlyout from '../react/admin/modules/Flyout';\nimport ReactIndicator from '../react/admin/modules/Indicator';\nimport ReactInputGroup from '../react/admin/modules/InputGroup';\nimport ReactList from '../react/admin/modules/List';\nimport ReactLoader from '../react/admin/modules/Loader';\nimport ReactNavBar from '../react/admin/modules/NavBar';\nimport ReactSteps from '../react/admin/modules/Steps';\nimport ReactSwatch from '../react/admin/modules/Swatch';\nimport ReactTooltip from '../react/admin/modules/Tooltip';\nimport ReactVideo from '../react/admin/modules/Video';\n\nwindow.gform = window.gform || {};\nwindow.gform.components = window.gform.components || {};\nwindow.gform.components.admin = window.gform.components.admin || {};\nwindow.gform.components.admin.html = window.gform.components.admin.html || {};\nwindow.gform.components.admin.html.apps = window.gform.components.admin.html.apps || {};\nwindow.gform.components.admin.html.elements = window.gform.components.admin.html.elements || {};\nwindow.gform.components.admin.html.modules = window.gform.components.admin.html.modules || {};\nwindow.gform.components.admin.react = window.gform.components.admin.react || {};\nwindow.gform.components.admin.react.elements = window.gform.components.admin.react.elements || {};\nwindow.gform.components.admin.react.modules = window.gform.components.admin.react.modules || {};\n\n/**\n * @function init\n * @description Take all components and put them on the gform.components.admin namespace.\n */\n\nconst init = () => {\n\tconst htmlApps = window.gform.components.admin.html.apps;\n\tconst htmlElements = window.gform.components.admin.html.elements;\n\tconst htmlModules = window.gform.components.admin.html.modules;\n\tconst reactElements = window.gform.components.admin.react.elements;\n\tconst reactModules = window.gform.components.admin.react.modules;\n\n\thtmlElements.Alert = Alert;\n\thtmlElements.Button = Button;\n\thtmlElements.Dropdown = Dropdown;\n\thtmlElements.Input = Input;\n\thtmlElements.Link = Link;\n\thtmlElements.Loader = Loader;\n\thtmlElements.StackedIcon = StackedIcon;\n\thtmlElements.StatusIndicator = StatusIndicator;\n\thtmlElements.Textarea = Textarea;\n\thtmlElements.Toggle = Toggle;\n\n\thtmlElements.Alert.alertTemplate = alertTemplate;\n\thtmlElements.Button.buttonTemplate = buttonTemplate;\n\thtmlElements.Dropdown.dropdownTemplate = dropdownTemplate;\n\thtmlElements.Dropdown.dropdownListItems = dropdownListItems;\n\thtmlElements.Input.inputTemplate = inputTemplate;\n\thtmlElements.Link.linkTemplate = linkTemplate;\n\thtmlElements.Loader.loaderTemplate = loaderTemplate;\n\thtmlElements.StackedIcon.stackedIconTemplate = stackedIconTemplate;\n\thtmlElements.StatusIndicator.statusIndicatorTemplate = statusIndicatorTemplate;\n\thtmlElements.Textarea.textareaTemplate = textareaTemplate;\n\thtmlElements.Toggle.toggleTemplate = toggleTemplate;\n\n\thtmlModules.Dialog = Dialog;\n\thtmlModules.Flyout = Flyout;\n\thtmlModules.Table = Table;\n\n\thtmlModules.Dialog.dialogTemplate = dialogTemplate;\n\thtmlModules.Flyout.flyoutTemplate = flyoutTemplate;\n\n\thtmlApps.EmbedForm = EmbedForm;\n\n\treactElements.Box = ReactBox;\n\treactElements.Button = ReactButton;\n\treactElements.Checkbox = ReactCheckbox;\n\treactElements.FileUpload = ReactFileUpload;\n\treactElements.Grid = ReactGrid;\n\treactElements.Heading = ReactHeading;\n\treactElements.HelpText = ReactHelpText;\n\treactElements.Icon = ReactIcon;\n\treactElements.Image = ReactImage;\n\treactElements.Input = ReactInput;\n\treactElements.Label = ReactLabel;\n\treactElements.Link = ReactLink;\n\treactElements.Radio = ReactRadio;\n\treactElements.Range = ReactRange;\n\treactElements.Select = ReactSelect;\n\treactElements.Tag = ReactTag;\n\treactElements.Text = ReactText;\n\treactElements.Textarea = ReactTextarea;\n\treactElements.Toggle = ReactToggle;\n\n\treactModules.Card = ReactCard;\n\treactModules.ColorPicker = ReactColorPicker;\n\treactModules.Dialog = ReactDialog;\n\treactModules.Flyout = ReactFlyout;\n\treactModules.Indicator = ReactIndicator;\n\treactModules.InputGroup = ReactInputGroup;\n\treactModules.List = ReactList;\n\treactModules.Loader = ReactLoader;\n\treactModules.NavBar = ReactNavBar;\n\treactModules.Steps = ReactSteps;\n\treactModules.Swatch = ReactSwatch;\n\treactModules.Tooltip = ReactTooltip;\n\treactModules.Video = ReactVideo;\n};\n\ninit();\n","export const createTable = ( {\n\tdata = {},\n\touterBorder = true,\n\tresponsive = false,\n} ) => {\n\tconst classes = [ 'gform-table' ];\n\n\tif ( responsive ) {\n\t\tclasses.push( 'gform-table--responsive' );\n\t}\n\n\tif ( ! outerBorder ) {\n\t\tclasses.push( 'gform-table--no-outer-border' );\n\t}\n\n\tconst tableClasses = classes.join( ' ' );\n\tlet thead = '';\n\tlet tbody = '';\n\n\tif ( data?.thead ) {\n\t\tthead += '<thead><tr>';\n\t\tthead += data.thead.map( ( entry ) => `<th scope=\"${ entry.scope }\">${ entry.content }</th>` ).join( '' );\n\t\tthead += '</tr></thead>';\n\t}\n\n\tif ( data?.tbody ) {\n\t\ttbody += '<tbody>';\n\t\ttbody += data.tbody.map( ( row ) => `<tr>${ row.map( ( entry ) => `<td data-header=\"${ entry.header }\">${ entry.content }</td>` ).join( '' ) }</tr>` ).join( '' );\n\t\ttbody += '</tbody>';\n\t}\n\n\treturn `<table class=\"${ tableClasses }\">\n\t\t${ thead }\n\t\t${ tbody }\n\t</table>`;\n};\n\nexport default createTable;\n"],"names":["token","singleMatcher","RegExp","multiMatcher","decodeComponents","components","split","decodeURIComponent","join","err","length","left","slice","right","Array","prototype","concat","call","decode","input","tokens","match","i","module","exports","encodedURI","TypeError","replace","replaceMap","exec","result","entries","Object","keys","key","customDecodeURIComponent","obj","predicate","ret","isArr","isArray","val","indexOf","strictUriEncode","decodeComponent","splitOnFirst","filterObject","encodeFragmentIdentifier","Symbol","validateArrayFormatSeparator","value","encode","options","strict","encodeURIComponent","keysSorter","sort","a","b","Number","map","removeHash","hashStart","extract","queryStart","parseValue","parseNumbers","isNaN","trim","parseBooleans","toLowerCase","parse","query","assign","arrayFormat","arrayFormatSeparator","formatter","accumulator","undefined","includes","isEncodedArray","newValue","item","test","arrayValue","parserForArrayFormat","create","param","k","reduce","Boolean","stringify","object","shouldFilter","skipNull","skipEmptyString","index","keyValueSep","encoderForArrayFormat","objectCopy","filter","x","parseUrl","url","url_","hash","parseFragmentIdentifier","fragmentIdentifier","stringifyUrl","queryFromUrl","parsedQueryFromUrl","queryString","getHash","pick","exclude","exclusionFilter","string","separator","separatorIndex","str","charCodeAt","toString","toUpperCase","escapeRegExp","characters","source","makeString","nbsp","cent","pound","yen","euro","copy","reg","lt","gt","quot","amp","apos","defaultToWhiteSpace","nativeTrim","String","htmlEntities","entity","entityCode","fromCharCode","parseInt","_typeof","_regeneratorRuntime","__esModule","Op","hasOwn","hasOwnProperty","defineProperty","desc","$Symbol","iteratorSymbol","iterator","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","define","enumerable","configurable","writable","wrap","innerFn","outerFn","self","tryLocsList","protoGenerator","Generator","generator","context","Context","makeInvokeMethod","tryCatch","fn","arg","type","ContinueSentinel","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","this","getProto","getPrototypeOf","NativeIteratorPrototype","values","Gp","defineIteratorMethods","forEach","method","_invoke","AsyncIterator","PromiseImpl","invoke","resolve","reject","record","__await","then","unwrapped","error","previousPromise","callInvokeWithMethodAndArg","state","Error","done","delegate","delegateResult","maybeInvokeDelegate","sent","_sent","dispatchException","abrupt","info","resultName","next","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","push","resetTryEntry","completion","reset","iterable","iteratorMethod","doneResult","displayName","isGeneratorFunction","genFun","ctor","constructor","name","mark","setPrototypeOf","__proto__","awrap","async","Promise","iter","reverse","pop","skipTempReset","prev","charAt","stop","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","runtime","regeneratorRuntime","accidentalStrictMode","globalThis","Function","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","d","definition","o","get","prop","_extends","bind","target","arguments","apply","_classCallCheck","instance","Constructor","_defineProperties","props","descriptor","_createClass","protoProps","staticProps","_arrayLikeToArray","arr","len","arr2","_unsupportedIterableToArray","minLen","from","_toConsumableArray","_defineProperty","gform","utils","alertTemplate","content","ctaLabel","ctaLink","customAttributes","customClasses","dismissableAriaLabel","dismissableTitle","hasCta","id","uniqueId","isDismissable","isInline","spacing","theme","componentAttrs","objectToAttributes","class","spacerClasses","iconAttrs","Alert","container","document","cookieName","rendered","renderOnInit","targetPosition","trigger","event","native","data","elements","init","getNode","insertAdjacentHTML","alert","e","getClosest","style","display","cookieValue","cookieStorage","dismissAlert","bindEvents","render","consoleInfo","loaderTemplate","background","displayText","foreground","mask","maskTheme","position","size","text","textColor","wrapperCustomAttributes","wrapperCustomClasses","wrapperTagName","wrapperAttrs","role","Loader","displayNoneOnHide","showOnRender","targetNode","maskPositioner","targetVisibleHeight","viewport","viewportHeight","top","getBoundingClientRect","windowScroll","offsetHeight","Math","abs","loaderEl","parentNode","removeChild","opacity","positionLoader","hideLoader","loader","renderTarget","wrapper","storeElements","setInitialUI","buttonTemplate","activeText","activeType","attributes","html","icon","iconPosition","interactive","label","round","iconHtml","Button","deepMerge","disableWhileActive","interactiveOnClick","loaderOptions","additionalClasses","lockSize","onActive","onInactive","instances","active","consoleError","button","rect","width","disabled","classList","add","showLoader","remove","activateButton","inactiveText","renderInteractive","addEventListener","handleButtonClick","asyncGeneratorStep","gen","_next","_throw","_asyncToGenerator","args","_taggedTemplateLiteral","strings","raw","freeze","defineProperties","_isPlaceholder","_curry1","f1","_curry2","f2","_b","_a","names","idx","_has","_isArguments","empty","_isArray","_isString","_isObject","_arrayFromIterator","list","_includesWith","pred","is","hasEnumBug","propertyIsEnumerable","nonEnumerableProps","hasArgsEnumBug","contains","nIdx","ks","checkArgsLength","_uniqContentEquals","aIterator","bIterator","stackA","stackB","eq","_equals","aItem","f","typeA","equals","valueOf","message","global","ignoreCase","multiline","sticky","unicode","keysA","extendedStackA","extendedStackB","_isTransformer","_dispatchable","methodNames","xf","transducer","XTake","_xfBase","_checkForMethod","methodname","_curry3","f3","c","_c","fromIndex","toIndex","xs","Infinity","prefix","rootName","ignoreList","formData","window","FormData","appendFormData","root","some","ignore","File","append","_slicedToArray","_i","_s","_e","_arr","_n","_d","cleanEmpty","v","request","endpoints","defaultOptions","newOptions","omit","handleBody","baseUrl","parseBody","body","nonce","_ajax_nonce","action","objectToFormData","json","JSON","params","isEmpty","filteredParams","p","headers","console","start","Date","now","fetch","response","ok","time","status","totalPages","totalPosts","stripTags","unescapeHTML","detail","startsWith","catch","dropdownListItems","listData","saferHtml","dropdownTemplate","wrapperClasses","selector","triggerTitle","triggerAriaId","triggerAriaText","triggerId","triggerClasses","triggerSelected","triggerPlaceholder","hasSearch","searchInputId","searchAriaText","searchPlaceholder","dropdownListAttributes","Dropdown","items","title","debounce","dropdownList","innerHTML","passedArgs","endpointArgs","search","endpointRequestOptions","isMock","showSpinnerEl","endpointKey","hideSpinnerEl","endpointUseRest","success","parseRestResponse","wait","autoPosition","closeOnSelect","detectTitleLength","insertPosition","onItemSelect","onOpen","onClose","renderListData","reveal","searchType","showSpinner","swapLabel","titleLengthThresholdMedium","titleLengthThresholdLong","templates","get_posts","open","unloading","querySelectorAll","getNodes","titleEl","dropdownContainer","control","setAttribute","dataset","controlText","innerText","handleControl","closeDropdown","openDropdown","offsetTop","setTimeout","handlePosition","keyCode","focus","triggers","handleAsyncSearch","handleBasicSearch","handleChange","handleSearch","handleMouseenter","handleMouseleave","handleA11y","storeTriggers","setup","inputTemplate","actionButton","actionButtonIcon","inputPrefix","inputSuffix","labelAttributes","labelClasses","placeholder","labelHtml","placeholderAttr","inputWrapperClasses","inputWrapperOpen","inputWrapperClose","inputPrefixContent","inputSuffixContent","actionButtonContent","forAttr","Input","linkTemplate","href","linkTarget","Link","link","stackedIconTemplate","tagName","StackedIcon","stackedIcon","statusIndicatorTemplate","hasDot","isStatic","pill","tag","StatusIndicator","statusIndicator","textareaTemplate","helpText","labelCustomAttributes","labelCustomClasses","labelVisible","wrapperProps","componentProps","for","labelTemplate","helpTextHtml","helpTextTemplate","Textarea","textarea","toggleTemplate","icons","initialChecked","labelPosition","labelClassName","Toggle","dialogTemplate","alertButtonText","cancelButtonText","closeButtonClasses","closeButtonTitle","confirmButtonAttributes","confirmButtonIcon","confirmButtonText","maskBlur","maskClasses","mode","titleIcon","titleIconColor","zIndex","Dialog","animationDelay","activeTrigger","lockBody","bodyLock","activeId","closeDialog","focusLoop","dialog","showDialog","onConfirm","closeOnConfirmClick","closeOnMaskClick","closeButton","alertButton","cancelButton","confirmButton","footer","header","handleKeyEvents","t","handleTriggerClick","handleMaskClick","handleConfirm","maybeCloseFlyout","closeFlyout","flyoutTemplate","description","desktopWidth","direction","expandable","expandableTitle","maxWidth","mobileBreakpoint","mobileWidth","showDivider","simplebar","Flyout","flyout","shrinkFlyout","showFlyout","expanded","expandFlyout","updateFlyoutWidth","closeOnOutsideClick","expandableWidth","unExpandedWidth","simpleBar","expandableTrigger","resizeParent","clientWidth","transition","delay","resize","handleResize","handleExpandable","ajaxurl","EmbedForm","dialogLoader","i18n","urls","isEmptyObject","properties","postTypes","post_types","addToActiveCPT","slug","createNewActiveCPT","create_post_with_block","redirectRequested","redirectType","blockFilter","sprintf","edit_post","form_id","location","attr","escapeHtml","postType","checked","formIdIndicator","vsprintf","dropdownData","count","add_search_aria_text","add_trigger_aria_text","add_dropdown_placeholder","getDropdownOptions","inputOptions","create_placeholder","getGroupTitle","add_title","getPostTypeSwitcher","add_post_type_choice_label","getAddToDropdowns","getGroupActionButton","add_button_label","getGroupHTML","create_title","create_post_type_choice_label","getCreateNewInputs","create_button_label","shortcode_helper","shortcode_docs","shortcode_button_label","shortcode_button_copied","shortcode_title","shortcode_description","getShortcodeTrigger","getFormIdHtml","getAddToExistingContentHtml","getCreateNewContentHtml","getShortcodeHtml","offsetWidth","dialog_confirm_saving","generateFlyoutContent","dialog_cancel_text","dialog_close_title","dialog_confirm_text","dialog_content","handleDialogConfirm","dialog_title","wrapDialogConfirmText","addToExistingDropdowns","addToExistingTrigger","createNewInputs","createNewTrigger","shortcodeTrigger","delegateTarget","group","resetConfirmDialogState","handleAddToPost","handleCreatePost","el","isFormDirty","redirectToEditor","post_title","post_type","ID","copyLabel","copyText","shortcode","clipboard","dropdowns","js","handlePostTypeSwitcherChange","handleCopyShortcodeClick","handlePostSaveRedirect","flyoutShouldStayOpen","bindDropdowns","libraries","Box","forwardRef","React","ref","children","setDisplay","unit","xProp","y","yProp","boxProps","className","classnames","Container","propTypes","PropTypes","Icon","iconPrefix","react","Ring","lineWeight","speed","strokeWidth","circleStyle","animation","stroke","height","viewBox","cx","cy","r","maskCustomAttributes","maskCustomClasses","textCustomAttributes","textCustomClasses","maskProps","textProps","color","ConditionalWrapper","condition","ch","buttonSizeToTypographyMap","circular","iconAttributes","loaderProps","onClick","ariaLabel","iconProps","textSize","textInactiveClassName","textActiveClassName","showActiveText","Label","htmlFor","isVisible","weight","HelpText","useState","Checkbox","helpTextAttributes","onBlur","onChange","onFocus","wrapperAttributes","inputChecked","setInputChecked","inputId","helpTextId","inputProps","inputCheckedState","labelProps","helpTextProps","Text","asHtml","dangerouslySetInnerHTML","__html","useEffect","useRef","FileUpload","allowedFileTypes","fileURL","maxHeight","previewAttributes","previewClasses","uploadIcon","uploadIconPrefix","selectedFile","setSelectedFile","preview","setPreview","hasFileURL","setHasFileURL","fileInputRef","objectUrl","URL","createObjectURL","revokeObjectURL","current","onSelectFile","files","delayed","clearTimeout","onTargetClick","preventDefault","click","removeButtonProps","delete","replaceButtonProps","uploaderProps","previewProps","previewImgProps","src","alt","fileDropProps","onDrop","fileInputProps","buttonsWrapperProps","fileUrlInputProps","FileDrop","click_to_upload","drag_n_drop","max","Grid","alignItems","columnSpacing","elementType","justifyContent","rowSpacing","isInteger","flexDirection","flexBasis","isList","Component","Heading","headingAttributes","possiblePositions","Image","bgImageAttributes","altText","asBg","aspectRatio","caption","captionAttributes","imageAttributes","imagePosition","lazyload","attrs","imageAttrs","backgroundPosition","padding","paddingBottom","imageStyles","captionCustomAttributes","captionCustomClasses","captionAttrs","captionElement","captionElementAttributes","imgAttributes","getImageWithCaption","controlled","helpTextPosition","required","requiredLabel","useStateWithDep","inputValue","setInputValue","newInputValue","requiredLabelProps","rel","Radio","Range","min","showValueInput","step","valueInputPosition","valueInputSuffix","inputWrapperProps","getValueInput","valueInputProps","containerProps","Select","initialValue","selectValue","setSelectValue","selectProps","newSelectValue","getOption","customOptionAttributes","customOptionClasses","slugify","getOptions","subOptions","choices","isObject","getSubOptions","subData","subIndex","Tag","triangleTag","triangleTagDirection","setChecked","toggleChecked","FormTemplateCard","bottomBoxAttrs","topBoxAttrs","bgColor","blankButtonAttributes","bottomBoxAttributes","bottomChildren","primaryCtaAttrs","secondaryCtaAttrs","tagAttributes","textAttributes","topBoxAttributes","topChildren","getCta","ctaAttrs","ctaProps","ctaType","tagAttrs","getExtra","getInnerTopBoxContent","Card","afterCard","beforeCard","contentAttributes","cardContentAttributes","getCardContent","hexToRGB","hex","hexArray","R","G","B","useLayoutEffect","ColorPicker","onCancel","onSave","triggerRef","setColor","rgbColor","setRgbColor","setPosition","coords","setCoords","selfRef","getPosition","picker","offsetLeft","offsetBottom","handleOutsideClick","handleClose","removeEventListener","handleOnChange","hexInputWrapperProps","hexInputProps","saveButtonProps","HexColorPicker","HexColorInput","colorPart","readOnly","renderRGBInput","Indicator","iconColor","getIcon","alignment","animateModal","buttonWidth","cancelButtonHeight","cancelButtonType","closeButtonSize","closeButtonType","confirmButtonHeight","confirmButtonType","customCloseButtonClasses","customMaskClasses","customWrapperClasses","isOpen","onCloseAfterAnimation","onOpenAfterAnimation","showCloseButton","titleIndicatorType","animationReady","setAnimationReady","animationActive","setAnimationActive","modalAnimation","setModalAnimation","dialogActive","setDialogActive","trapRef","useFocusTrap","mountedRef","closeRef","handleEscapeRequest","stopPropagation","closeButtonLabelProps","contentProps","closeButtonProps","buttonProps","footerProps","headerProps","headingProps","cancelButtonProps","confirmButtonProps","Fragment","afterContent","beforeContent","closeButtonCustomAttributes","customBodyClasses","customInnerBodyClasses","headerHeadingCustomAttributes","headerDescriptionCustomAttributes","flyoutActive","setFlyoutActive","css","bodyProps","innerBodyProps","buttonType","descriptionProps","getHeader","InputGroup","childrenBelow","inputType","useWrapper","InputContainer","getWrapper","Wrapper","List","listItems","isUnordered","listAttributes","listItem","NavBar","navAttributes","Steps","activeStep","numSteps","num","stepNum","itemClassName","Swatch","allowNew","palette","paletteCustom","showPicker","setShowPicker","selectedColor","setSelectedColor","colorBeingModified","setColorBeingModified","customPaletteOptions","setCustomPaletteOptions","currentRef","setCurrentRef","allInputRef","addNewRef","querySelector","swatchRefs","newPaletteString","liProps","swatchSpanProps","handlePickerCancel","handlePickerDelete","prevPalette","thisIndex","handleColorChange","renderSwatchOption","swatch","isCustom","swatchInputProps","backgroundColor","getElementById","deleteIconProps","swatchOptionsProps","allSwatchesInputProps","defaultValue","pickerProps","newPalette","colorPicker","TOOLTIP_OFFSET","Tooltip","buffer","intentDelay","tooltipCustomAttributes","tooltipId","tooltipRef","setWidth","intent","setIntent","tooltipPosition","setTooltipPosition","setIntentTrue","setIntentFalse","debouncedFadeIn","cancel","requestAnimationFrame","smartPosition","getSmartPosition","getPercentageInFrame","w","h","offsetRight","area","offsetArea","getNewPositionPercentageInFrame","to","frame","bf","toRectTopY","toRectLeftX","toRectTopDiff","toRectBottomDiff","toRectLeftDiff","toRectRightDiff","frameWidth","innerWidth","frameHeight","innerHeight","fromRectTopDiff","fromRectBottomDiff","bottom","fromRectLeftDiff","fromRectRightDiff","TRIGGER_WIDTH","TRIGGER_HEIGHT","pos","tRef","tooltipRect","ownerDocument","defaultView","currentRectTopDiff","currentRectBottomDiff","currentRectLeftDiff","currentRectRightDiff","currentPercentageInFrame","positions","carry","ps","TooltipContent","con","cAttributes","cClasses","rest","excluded","sourceKeys","getOwnPropertySymbols","sourceSymbolKeys","triggerAttributes","onMouseEnter","onMouseLeave","tooltipAttributes","onTransitionEnd","videoDefaultOptions","aspect","Vidyard","videoOptions","videoRef","useScript","loading","setRendered","uuid","vidyardApi","VidyardV4","api","controlPlayer","player","getPlayersByUUID","eventType","play","pause","renderPlayer","destroyPlayer","Video","placeholderButton","placeholderButtonProps","placeholderCustomClasses","placeholderImage","placeholderText","placeholderTextProps","videoPlaying","setVideoPlaying","videoRevealed","setVideoRevealed","paddingTop","aspectRatioToPadding","plhdrProps","backgroundImage","plhdrButtonProps","htmlApps","htmlElements","htmlModules","reactElements","reactModules","admin","apps","modules","Table","outerBorder","responsive","classes","tableClasses","thead","tbody","scope","row","ReactBox","ReactButton","ReactCheckbox","ReactFileUpload","ReactGrid","ReactHeading","ReactHelpText","ReactIcon","ReactImage","ReactInput","ReactLabel","ReactLink","ReactRadio","ReactRange","ReactSelect","ReactTag","ReactText","ReactTextarea","ReactToggle","ReactCard","ReactColorPicker","ReactDialog","ReactFlyout","ReactIndicator","ReactInputGroup","ReactList","ReactLoader","ReactNavBar","ReactSteps","ReactSwatch","ReactTooltip","ReactVideo"],"sourceRoot":""}

Youez - 2016 - github.com/yon3zu
LinuXploit