{"version":3,"file":"for-color-scheme.js","sources":["webpack://@jotforminc/umd-bundler/../../libs/colorscheme/src/utils/styles.js","webpack://@jotforminc/umd-bundler/../../../node_modules/.pnpm/react@18.3.0/node_modules/react/cjs/react.production.min.js","webpack://@jotforminc/umd-bundler/../../../node_modules/.pnpm/react@18.3.0/node_modules/react/index.js","webpack://@jotforminc/umd-bundler/../../../node_modules/.pnpm/@swc+helpers@0.5.12/node_modules/@swc/helpers/esm/_define_property.js","webpack://@jotforminc/umd-bundler/../../libs/colorscheme/src/utils/colorSchemes.js","webpack://@jotforminc/umd-bundler/../../libs/colorscheme/src/components/ColorSchemeManager.js","webpack://@jotforminc/umd-bundler/../../libs/colorscheme/src/utils/actions.js","webpack://@jotforminc/umd-bundler/../../../node_modules/.pnpm/@swc+helpers@0.5.12/node_modules/@swc/helpers/esm/_object_spread_props.js","webpack://@jotforminc/umd-bundler/../../../node_modules/.pnpm/@swc+helpers@0.5.12/node_modules/@swc/helpers/esm/_object_spread.js"],"sourcesContent":["import React from 'react';\nimport { generateNewColorSchemeCSS } from './actions';\n\nconst styleProps = [\n 'alignment',\n 'lineSpacing',\n 'background',\n 'fontcolor',\n 'formWidth',\n 'labelWidth',\n // 'font',\n 'fontsize',\n 'colorScheme',\n 'pageColor',\n 'inputColor',\n 'pageBackgroundImage',\n 'formBackgroundImage',\n 'font',\n 'buttonStyle'\n];\n\nexport const Styles = {\n layout: {\n containers: [\n { id: 'properties', text: 'Properties' },\n { id: 'injectCSS', text: 'Custom CSS' }\n ],\n lines: [\n { id: 'line1', length: 'two', containerID: 'properties' },\n { id: 'line2', length: 'two', containerID: 'properties' },\n {\n id: 'line3',\n length: 'two',\n containerID: 'properties',\n children: [React.createElement('hr', {\n key: 'styles-layout-hr-1',\n style: {\n backgroundColor: '#ece9e6', height: '1px', border: 0, margin: '0'\n }\n })]\n },\n { id: 'line4', length: 'two', containerID: 'properties' },\n { id: 'line5', length: 'two', containerID: 'properties' },\n { id: 'line6', length: 'two', containerID: 'injectCSS' }\n ],\n columns: [\n {\n id: 'column1', length: 'one', lineID: 'line1', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column2', length: 'one', lineID: 'line1', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column3', length: 'one', lineID: 'line2', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column4', length: 'one', lineID: 'line2', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column5', length: 'one', lineID: 'line4', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column6', length: 'one', lineID: 'line4', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column7', length: 'one', lineID: 'line5', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column8', length: 'one', lineID: 'line5', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column9', length: 'two', lineID: 'line6', attributes: { style: { padding: '25px' } }\n }\n ]\n },\n elementsToLayout: {\n column1: ['formWidth'],\n column2: ['alignment'],\n column3: ['lineSpacing'],\n column4: ['labelWidth'],\n column5: ['background'],\n column6: ['fontcolor'],\n column7: ['font'],\n column8: ['fontsize'],\n column9: ['injectCSS']\n }\n};\n\nStyles.minidesignerStylesLayout = {\n layout: {\n containers: [\n { id: 'properties', text: 'Properties' },\n { id: 'colors', text: 'Custom CSS' },\n { id: 'layout', text: 'Layout' }\n ],\n lines: [\n { id: 'line1', length: 'two', containerID: 'properties' },\n { id: 'line2', length: 'two', containerID: 'properties' },\n {\n id: 'line3',\n length: 'two',\n containerID: 'properties',\n attributes: { className: 'line v4-hide' },\n children: [React.createElement('hr', {\n key: 'styles-layout-hr-1',\n style: {\n backgroundColor: '#ece9e6', height: '1px', border: 0, margin: '0'\n }\n })]\n },\n { id: 'line5', length: 'two', containerID: 'properties' },\n { id: 'line6', length: 'two', containerID: 'colors' },\n { id: 'line7', length: 'two', containerID: 'colors' },\n { id: 'line8', length: 'two', containerID: 'colors' },\n { id: 'line9', length: 'two', containerID: 'colors' },\n { id: 'line10', length: 'one', containerID: 'properties' },\n { id: 'line11', length: 'one', containerID: 'properties' },\n { id: 'line12', length: 'one', containerID: 'layout' }\n ],\n columns: [\n {\n id: 'column1', length: 'one', lineID: 'line1', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column2', length: 'one', lineID: 'line1', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column3', length: 'one', lineID: 'line2', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column4', length: 'one', lineID: 'line2', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column5', length: 'one', lineID: 'line7', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column6', length: 'one', lineID: 'line7', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column7', length: 'one', lineID: 'line5', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column8', length: 'one', lineID: 'line5', attributes: { style: { padding: '25px', paddingTop: 0 } }\n },\n {\n id: 'column9', length: 'two', lineID: 'line6', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column10', length: 'one', lineID: 'line8', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column11', length: 'one', lineID: 'line8', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column12', length: 'one', lineID: 'line9', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column13', length: 'one', lineID: 'line9', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column14', length: 'one', lineID: 'line10', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column15', length: 'one', lineID: 'line11', attributes: { style: { padding: '25px' } }\n },\n {\n id: 'column16', length: 'one', lineID: 'line12', attributes: { style: { padding: '25px' } }\n }\n ]\n },\n elementsToLayout: {\n column1: ['formWidth'],\n column2: ['alignment'],\n column3: ['lineSpacing'],\n column4: ['labelWidth'],\n column5: ['pageColor'],\n column6: ['pageBackgroundImage'],\n column7: ['font'],\n column8: ['fontsize'],\n column9: ['colorScheme'],\n column10: ['background'],\n column11: ['formBackgroundImage'],\n column12: ['fontcolor'],\n column13: ['inputColor'],\n column14: ['buttonStyle'],\n column15: ['injectCSS'],\n column16: ['layoutPicker']\n }\n};\n\nlet styleJSON = {};\nlet formProperties;\n\n// LESS lighten function alternative\n// Example : less : lighten(#FFF, 10%) => (#FFF, 10)\nfunction lightenColor(color, percent) {\n try {\n let col = color;\n let usePound = false;\n if (col[0] === '#') {\n col = col.slice(1);\n usePound = true;\n }\n if (col.length === 3) { // Convert 3 digit to 6 digit hex\n col = `${col[0]}${col[0]}${col[1]}${col[1]}${col[2]}${col[2]}`;\n }\n const num = parseInt(col, 16);\n const amt = Math.round(2.55 * percent);\n const R = (num >> 16) + amt;\n const B = (num >> 8 & 0x00FF) + amt;\n const G = (num & 0x0000FF) + amt;\n const lighten = (0x1000000 + (R < 255 ? R < 1 ? 0 : R : 255) * 0x10000 + //eslint-disable-line\n (B < 255 ? B < 1 ? 0 : B : 255) * 0x100 + //eslint-disable-line\n (G < 255 ? G < 1 ? 0 : G : 255)).toString(16).slice(1); //eslint-disable-line\n if (usePound) {\n return `#${lighten}`;\n }\n return lighten;\n } catch (e) {\n return color;\n }\n}\n\nfunction generateAlignmentRule(name, newValue) {\n let value = formProperties.alignment;\n if (name === 'alignment') {\n value = newValue;\n }\n styleJSON['@labelAlign'] = value;\n const topRules = `\n display: block;\n float: none;\n text-align: left;\n width: 100%;\n `;\n const leftRightRules = `\n display: inline-block;\n float: left;\n text-align: ${value === 'Left' ? 'left' : 'right'};\n `;\n const alignmentRule = `\n .form-label.form-label-auto {\n ${value === 'Top' ? topRules : leftRightRules}\n }\n `;\n return alignmentRule;\n}\n\nfunction generateLineSpacingRule(name, newValue) {\n let value = formProperties.lineSpacing;\n if (name === 'lineSpacing') {\n value = newValue;\n }\n styleJSON['@lineSpacing'] = value;\n const rule = `\n .form-line {\n margin-top: ${value}px;\n margin-bottom: ${value}px;\n }\n `;\n return rule;\n}\n\n// unclosed paranthesis check for rgb, rgba\nfunction unclosedParanthesesCheck(str) {\n return /[()]/.test(str) && (str.match(/\\(/g) || '').length === (str.match(/\\)/g) || '').length;\n}\n// add missing paranthesis for rgb, rgba\nfunction addMissingParantheses(s) {\n let missedOpen = 0;\n const stack = [];\n for (let i = 0; i < s.length; i++) {\n if (s[i] === '(') {\n stack.push(s[i]);\n } else if (s[i] === ')') {\n if (!stack.pop()) {\n missedOpen++;\n }\n }\n }\n return Array(missedOpen + 1).join('(') + s + Array(stack.length + 1).join(')');\n}\n\nfunction generateBackgroundRule(name, newValue, schemeColor) {\n let value = schemeColor || formProperties.background;\n if (name === 'background') {\n value = schemeColor || newValue;\n }\n let clrFrame = typeof value === 'string' ? value.replace(new RegExp(/\\\"/gi), '\\'') : '';\n if (clrFrame.indexOf('rgb') > -1 && !unclosedParanthesesCheck(clrFrame)) {\n clrFrame = addMissingParantheses(clrFrame);\n }\n styleJSON['@clrFrame'] = clrFrame;\n const rule = `\n .supernova .form-all, .form-all {\n background-color: ${clrFrame};\n }\n `;\n return rule;\n}\n\nfunction generateFontColorRule(name, newValue, schemeColor) {\n let value = schemeColor || formProperties.fontcolor;\n if (name === 'fontcolor') {\n value = schemeColor || newValue;\n }\n styleJSON['@clrText'] = value;\n styleJSON['@clrLabel'] = value;\n // If header color is specified we mustn't change it.\n const headerColor = (styleJSON && styleJSON['@clrHeader'] && styleJSON['@clrHeader'].length > 0) ? styleJSON['@clrHeader'] : value;\n const rule = `\n .form-all {\n color: ${value};\n }\n .form-header-group .form-header {\n color: ${headerColor};\n }\n .form-header-group .form-subHeader {\n color: ${value};\n }\n .form-label-top,\n .form-label-left,\n .form-label-right,\n .form-html,\n .form-checkbox-item label,\n .form-radio-item label,\n span.FITB .qb-checkbox-label,\n span.FITB .qb-radiobox-label,\n span.FITB .form-radio label,\n span.FITB .form-checkbox label,\n [data-blotid][data-type=checkbox] [data-labelid],\n [data-blotid][data-type=radiobox] [data-labelid],\n span.FITB-inptCont[data-type=checkbox] label,\n span.FITB-inptCont[data-type=radiobox] label {\n color: ${value};\n }\n .form-sub-label {\n color: ${lightenColor(value, 10)};\n }\n `;\n return rule;\n}\n\nfunction generateWidthRule(name, newValue) {\n let value = formProperties.formWidth;\n if (name === 'formWidth') {\n value = newValue;\n }\n styleJSON['@formWidth'] = value;\n const rule = `\n .form-all {\n max-width: ${value}px;\n width: 100%;\n }\n `;\n return rule;\n}\n\nfunction generateLabelWidthRule(name, newValue) {\n let value = formProperties.labelWidth;\n if (name === 'labelWidth') {\n value = newValue;\n }\n styleJSON['@labelWidth'] = value;\n const rule = `\n .form-label.form-label-left,\n .form-label.form-label-right,\n .form-label.form-label-left.form-label-auto,\n .form-label.form-label-right.form-label-auto {\n width: ${value}px;\n }\n `;\n return rule;\n}\n\nfunction generateFontLink() {\n const fontFamilyString = ['@font', '@headerFont', '@buttonFont', '@pbButtonFont', '@labelFont']\n .filter(fontPropPrefix => ['jotform', 'google'].indexOf(styleJSON[`${fontPropPrefix}Type`]) !== -1 && styleJSON[`${fontPropPrefix}Family`])\n .map(fontPropPrefix => styleJSON[`${fontPropPrefix}Family`].replace(/ /g, '+'))\n .join('|');\n\n return fontFamilyString ? `//cdn.jotfor.ms/fonts/?family=${fontFamilyString}` : '';\n}\n\nfunction generateFontRule(name, newValue) {\n let fontFamily = formProperties.font;\n\n if (name === 'font') {\n fontFamily = newValue.value;\n\n styleJSON['@fontType'] = newValue.type;\n styleJSON['@fontFamily'] = fontFamily;\n styleJSON['@fontLink'] = generateFontLink() || '';\n\n // just for fixing forms already having @googleFontLink props\n delete styleJSON['@googleFontLink'];\n }\n // @fontFamily\n // @buttonFontFamily\n // @pbButtonFontFamily\n // @headerFontFamily\n // @labelFontFamily\n const rule = `\n .form-all {\n font-family: ${fontFamily}, sans-serif;\n }\n `;\n return rule;\n}\n\nfunction generateFontSizeRule(name, newValue) {\n let value = formProperties.fontsize;\n if (name === 'fontsize') {\n value = newValue;\n }\n const rule = `\n .form-all {\n font-size: ${value}px\n }\n `;\n return rule;\n}\n\nfunction generateWindowBackgroundRule(name, newValue, color) {\n let value = color || styleJSON['@clrBg'];\n if (name === 'pageColor') {\n value = color || newValue;\n }\n styleJSON['@clrBg'] = value;\n const rule = `\n .supernova {\n background-color: ${value};\n }\n .supernova body {\n background: transparent;\n }\n `;\n return rule;\n}\n\nfunction generateTextInputBackgroundRule(name, newValue, color) {\n let value = color || styleJSON['@clrTextInputBg'];\n if (name === 'inputColor') {\n value = color || newValue;\n }\n styleJSON['@clrTextInputBg'] = value;\n const rule = `\n .form-textbox,\n .form-textarea,\n .form-dropdown,\n .form-radio-other-input,\n .form-checkbox-other-input,\n .form-captcha input,\n .form-spinner input {\n background-color: ${value};\n }\n `;\n return rule;\n}\n\nfunction generateErrorBackgroundRule(color) {\n styleJSON['@clrErrorBg'] = color;\n const rule = `\n .form-line-error {\n overflow: hidden;\n transition: none;\n background-color: ${color};\n }\n\n .form-line-error .form-error-message {\n background-color: #DC2626;\n clear: both;\n float: none;\n }\n\n .form-line-error .form-error-arrow {\n border-bottom-color: #FF3200;\n }\n\n .form-line-error input:not(#coupon-input),\n .form-line-error textarea,\n .form-line-error .form-validation-error {\n border: 1px solid #c61515;\n box-shadow: 0 0 3px #c61515;\n }\n `;\n return rule;\n}\n\nfunction generatePageBackgroundImageRule(name, newValue) {\n let backgroundUrl = styleJSON['@bgURL'];\n if (name === 'pageBackgroundImage') {\n backgroundUrl = newValue;\n }\n\n const repeat = styleJSON['@bgRepeat'] === 'true' ? 'repeat' : 'no-repeat';\n const fixed = styleJSON['@bgAttach'] !== 'false' ? 'fixed' : 'scroll';\n const cover = styleJSON['@bgCover'] !== 'false' ? 'cover' : 'auto';\n\n styleJSON['@bgURL'] = backgroundUrl;\n\n const backgroundRules = `\n .supernova {\n background-repeat: ${repeat};\n background-size:${cover};\n background-attachment: ${fixed};\n background-position: center top;\n }`;\n\n if (!backgroundUrl || backgroundUrl === '|nobackground|') {\n return `\n ${backgroundRules}\n\n .supernova, #stage {\n background-image: none;\n }\n `;\n }\n\n return `\n ${backgroundRules}\n\n .supernova, #stage {\n background-image: url(\"${backgroundUrl}\");\n }`;\n}\n\nfunction generateFormBackgroundImageRule(name, newValue) {\n let backgroundUrl = styleJSON['@frameBgURL'];\n if (name === 'formBackgroundImage') {\n backgroundUrl = newValue;\n }\n\n styleJSON['@frameBgURL'] = backgroundUrl;\n\n if (!backgroundUrl || backgroundUrl === '|nobackground|') {\n return `\n .form-all {\n background-image: none;\n }\n `;\n }\n\n const repeat = styleJSON['@bgRepeat'] === 'true' ? 'repeat' : 'no-repeat';\n const fixed = styleJSON['@bgAttach'] !== 'false' ? 'fixed' : 'scroll';\n const cover = styleJSON['@bgCover'] !== 'false' ? 'cover' : 'auto';\n\n return `\n .form-all {\n background-image: url(\"${backgroundUrl}\");\n background-repeat: ${repeat};\n background-size:${cover};\n background-attachment: ${fixed};\n background-position: center top;\n }\n `;\n}\n\nStyles.generatePreferencesStyle = (name, newValue, formProps) => {\n formProperties = formProps;\n styleJSON = formProperties.styleJSON || {};\n let _injectCSS = formProperties.injectCSS;\n const isNewDefaultTheme = formProperties.defaultTheme && formProperties.defaultTheme === 'v2';\n const isCdnColorScheme = window.location.href.indexOf('cdnColorScheme') === -1;\n const advancedDesingerProps = [\n 'clrButtonBorder', 'clrTextInputBorder', 'clrDropdownBorder', 'okColor', 'clrButtonBg', 'clrErrorMsg', 'clrTextInputFont', 'clrDropdownBg', 'pbClrButtonBorder', 'collapseTextColor',\n 'collapseBgColor', 'clrDropdownFont', 'clrHeader', 'clrActive'];\n try {\n if (typeof styleJSON === typeof 'string') {\n styleJSON = JSON.parse(styleJSON);\n }\n } catch (e) {\n styleJSON = {};\n }\n\n function generateInjectCSS() {\n let result = '/*PREFERENCES STYLE*/';\n\n result += generateFontRule(name, newValue);\n result += generateAlignmentRule(name, newValue);\n result += generateLineSpacingRule(name, newValue);\n result += generateWidthRule(name, newValue);\n result += generateLabelWidthRule(name, newValue);\n result += generateFontSizeRule(name, newValue);\n\n if (name === 'colorScheme' || name === 'statelessColorScheme') {\n result += generateWindowBackgroundRule(name, newValue, newValue.clrBg);\n result += generateBackgroundRule(name, newValue, newValue.clrFrame);\n result += generateFontColorRule(name, newValue, newValue.clrText);\n result += generateTextInputBackgroundRule(name, newValue, newValue.clrTextInputBg);\n result += generateErrorBackgroundRule(newValue.clrErrorBg);\n } else {\n result += generateBackgroundRule(name, newValue);\n result += generateFontColorRule(name, newValue);\n result += generateWindowBackgroundRule(name, newValue);\n result += generateTextInputBackgroundRule(name, newValue);\n }\n result += generatePageBackgroundImageRule(name, newValue);\n result += generateFormBackgroundImageRule(name, newValue);\n result += '/*PREFERENCES STYLE*/';\n return result;\n }\n\n if (!isNewDefaultTheme) {\n return {\n injectCSS: generateInjectCSS(),\n styleJSON: JSON.stringify(styleJSON)\n };\n }\n\n switch (true) {\n case name === 'buttonStyle':\n delete styleJSON['@pbButtonCustomTemplate'];\n delete styleJSON['@buttonCustomTemplate'];\n\n if (newValue.length > 0) {\n styleJSON['@buttonCustomTemplate'] = `form-submit-button-${newValue}`;\n }\n\n return { styleJSON: JSON.stringify(styleJSON) };\n case name === 'colorScheme' && typeof newValue === 'object':\n advancedDesingerProps.forEach(key => delete styleJSON[`@${key}`]);\n styleJSON.newThemeProps = newValue;\n _injectCSS = generateNewColorSchemeCSS(styleJSON);\n break;\n case name === 'statelessColorScheme' && typeof newValue === 'object':\n advancedDesingerProps.forEach(key => delete styleJSON[`@${key}`]);\n styleJSON.newThemeProps = newValue;\n _injectCSS = '';\n break;\n case _injectCSS.indexOf('/* NEW THEME STYLE */') > -1:\n _injectCSS = _injectCSS.match(/((\\/\\*PREFERENCES STYLE\\*\\/)([\\s\\S]*?)(\\/\\* NEW THEME STYLE \\*\\/)([\\s\\S]*?)(\\/\\* NEW THEME STYLE \\*\\/)([\\s\\S]*?)([\\s\\S]*?)(\\/\\*PREFERENCES STYLE\\*\\/))/);\n _injectCSS = _injectCSS ? _injectCSS[0] : generateNewColorSchemeCSS(styleJSON);\n break;\n default:\n _injectCSS = '';\n }\n\n return {\n injectCSS: isCdnColorScheme ? _injectCSS + generateInjectCSS() : generateInjectCSS(),\n styleJSON: JSON.stringify(styleJSON)\n };\n};\n\nStyles.generateInjectCSS = (newStyles, formProperties) => {\n let { injectCSS } = formProperties;\n\n if (newStyles.injectCSS === undefined) {\n return injectCSS;\n }\n\n const hasPreferencesStyles = injectCSS?.indexOf('/*PREFERENCES STYLE*/') > -1;\n const hasInspectSeparator = injectCSS?.indexOf('/*__INSPECT_SEPERATOR__*/') > -1;\n\n if (injectCSS && hasPreferencesStyles) {\n injectCSS = injectCSS.replace(/(\\/\\*PREFERENCES STYLE\\*\\/)([\\s\\S]*)(\\/\\*PREFERENCES STYLE\\*\\/)/gm, '');\n }\n\n if (hasInspectSeparator) {\n const [jotformStyles, userStyles] = injectCSS.split('/*__INSPECT_SEPERATOR__*/');\n\n return `${jotformStyles + (newStyles.injectCSS || '')}/*__INSPECT_SEPERATOR__*/${userStyles}`;\n }\n\n // if there is no inspect separator, assume that all styles are user styles\n return `${newStyles.injectCSS || ''}/*__INSPECT_SEPERATOR__*/${injectCSS}`;\n};\n\nStyles.handleStylePropsChange = (name, value, temp, formProperties) => {\n const styles = Styles.generatePreferencesStyle(name, value, formProperties);\n let stylePropsTemp = temp;\n console.log(styles, formProperties);\n if (name !== 'colorScheme') {\n stylePropsTemp = {\n ...stylePropsTemp,\n injectCSS: Styles.generateInjectCSS(styles, formProperties),\n styleJSON: styles.styleJSON\n };\n } else {\n stylePropsTemp = {\n background: value.clrFrame,\n fontcolor: value.clrText,\n injectCSS: Styles.generateInjectCSS(styles, formProperties),\n styleJSON: styles.styleJSON\n };\n }\n // if font is changed and it is a google font replace import statement on older injectCSS if any\n let { injectCSS } = stylePropsTemp;\n if (injectCSS[0] === '@') { // means google font was added from big Designer\n if (value && value.type && value.type === 'jotform') {\n injectCSS = injectCSS.replace(/@import.*.\";/, `@import \"${value.link}\";`);\n }\n }\n stylePropsTemp.injectCSS = injectCSS;\n\n return stylePropsTemp;\n};\n\nStyles.prepareFormStyleFormat = (event, formProperties) => {\n const { name, value } = event.target;\n\n let temp = {\n [name]: value\n };\n\n if (name === 'font') {\n temp = {\n [name]: value.value\n };\n }\n\n if (styleProps.indexOf(name) >= 0) {\n temp = Styles.handleStylePropsChange(name, value, temp, formProperties);\n }\n\n return temp;\n};\n\nStyles.uploadOrganizationLogo = (data, formProperties) => {\n const expectedImgHeight = 140; // px\n\n let { url } = data;\n const localUrlPattern = /^\\//; // check starts with /\n const checkProtocolPattern = /^(http|https|ftp)/;\n // If url is local image, add jotform.com before\n if (url && localUrlPattern.test(url)) {\n url = `https://www.jotform.com${url}`;\n }\n if (url && !checkProtocolPattern.test(url)) { // we need to add protocol\n url = `http://${url}`; // or may be https?\n }\n const styles = formProperties.styleJSON;\n const styleJSON = typeof styles === 'string' ? JSON.parse(styles) : styles;\n let imgHeight = parseInt(data.dimensions.height, 10);\n let imgWidth = parseInt(data.dimensions.width, 10);\n const formWidth = styleJSON['@formWidth'] || formProperties.formWidth;\n let parsedFormWidth = formWidth ? formWidth.match(/\\d+/) : '';\n if (parsedFormWidth && parsedFormWidth[0]) {\n parsedFormWidth = parseInt(parsedFormWidth[0], 10);\n }\n if (imgHeight > expectedImgHeight) {\n const proportion = expectedImgHeight / imgHeight;\n imgWidth = Math.round(imgWidth * proportion);\n if (imgWidth.length === 0) {\n imgWidth = 0;\n }\n imgHeight = expectedImgHeight;\n }\n if (imgWidth > parsedFormWidth) { // if imgWidth is greater than form width, lets fix it to form width\n const proportion = parsedFormWidth / imgWidth;\n imgHeight = Math.round(imgHeight * proportion);\n if (imgHeight.length === 0) {\n imgHeight = 0;\n }\n imgWidth = parsedFormWidth;\n }\n styleJSON['@formCover'] = '1';\n styleJSON['@formCoverImg'] = url;\n styleJSON['@formCoverImgWidth'] = imgWidth;\n styleJSON['@formCoverImgHeight'] = imgHeight;\n styleJSON['@formCoverPosition'] = 'Top';\n styleJSON['@formCoverTopPosition'] = 'Center';\n styleJSON['@formCoverBottomMargin'] = 32;\n\n return { styleJSON: JSON.stringify(styleJSON) };\n};\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1 scheme.name === name);\n if (!colorScheme) {\n throw new Error('Color scheme not found');\n }\n return colorScheme;\n }\n\n onClearColorScheme = () => {\n const styleTag = document.getElementById(this.colorShemeStyleTagId);\n if (styleTag) {\n styleTag.remove();\n }\n\n this.onChange({\n target: {\n name: 'statelessColorScheme',\n value: ''\n }\n });\n };\n\n onUpdateColorScheme = schemeName => {\n if (schemeName === 'isClear') {\n this.onClearColorScheme();\n return;\n }\n\n const selectedColorScheme = this.findColorSchemeByName(schemeName);\n if (selectedColorScheme) {\n this.appendCssFile();\n\n this.onChange({\n target: {\n name: 'statelessColorScheme',\n value: selectedColorScheme\n }\n });\n }\n };\n\n appendCssFile = () => {\n const styleTagId = this.colorShemeStyleTagId;\n const styleFileName = `color-scheme${this.isNewDefaultTheme ? '' : '-odt'}`;\n let styleTag = document.getElementById(styleTagId);\n if (styleTag) {\n return false;\n }\n\n styleTag = document.createElement('link');\n styleTag.rel = 'stylesheet';\n styleTag.type = 'text/css';\n styleTag.href = `/stylebuilder/static/${styleFileName}.css`;\n styleTag.id = styleTagId;\n\n document.head.appendChild(styleTag);\n };\n}\n","import {\n colorSchemeListV3New,\n oldColorSchemes\n} from './colorSchemes';\n\nexport const getColorSchemeList = isNewDefaultTheme => {\n if (!isNewDefaultTheme) {\n return oldColorSchemes;\n }\n return colorSchemeListV3New;\n};\n\n/* eslint-disable complexity */\nexport const generateNewColorSchemeCSS = styleJSON => {\n const _styleJSON = typeof styleJSON === 'string' ? JSON.parse(styleJSON) : styleJSON;\n let newThemeProps = _styleJSON.newThemeProps || {};\n newThemeProps = typeof newThemeProps === 'string' ? JSON.parse(newThemeProps) : newThemeProps; // eslint-disable-line no-unused-vars\n\n const schemeProps = {\n 'dark-color-2x': 'input-border-color',\n 'label-color': 'clrText',\n 'light-color': 'main-light-color',\n 'input-bg-color': 'clrTextInputBg',\n 'dark-color': 'rating-item-bg-color',\n 'hover-color': 'rating-item-bg-hover',\n 'sub-label-color': 'form-sublabel-color',\n 'form-bg-color': 'clrFrame',\n 'main-color': 'clrBg',\n 'active-bg-color': 'clrActive',\n 'error-bg-color': 'clrErrorBg',\n 'white-color': 'control-nextButton-textColor',\n 'submit-button-bg-color': 'control-button-bg-color',\n 'submit-button-hover-bg': 'submit-button--hover',\n 'back-button-hover-bg': 'back-button--hover',\n 'next-button-hover-bg': 'next-button--hover',\n 'default-back-bgcolor': 'default-back-bgcolor',\n 'default-blue-color': 'default-blue-color',\n 'default-grey-color': 'default-grey-color',\n 'default-grey-light-color': 'default-grey-light-color',\n 'empty-state-grey-color': 'empty-state-grey-color',\n 'empty-state-grey-light-color': 'empty-state-grey-light-color',\n 'default-dark-color': 'default-dark-color',\n 'default-blue-light-color': 'default-blue-light-color',\n 'default-blue-light2x-color': 'default-blue-light2x-color'\n };\n\n if (!_styleJSON.newThemeProps) {\n return '';\n }\n\n Object.entries(schemeProps).forEach(([key, value]) => {\n if (!newThemeProps[key]) newThemeProps[key] = newThemeProps[value];\n });\n\n return `\n /*PREFERENCES STYLE*/\n /* NEW THEME STYLE */\n\n /* colors */\n\n .calendar-new-header-withSVG .calendar-new-header .nextYear svg,\n .calendar-new-header-withSVG .calendar-new-header .nextMonth svg,\n .calendar-new-header-withSVG .calendar-new-header .previousYear svg,\n .calendar-new-header-withSVG .calendar-new-header .previousMonth svg,\n .FITB-inptCont .form-textbox, .FITB-inptCont .form-dropdown,\n span.FITB-inptCont[data-type=selectbox] select,\n span.FITB-inptCont[data-type=timebox] select,\n .rating-item label,\n .currentDate,\n .pickerItem select,\n .appointmentCalendar .calendarDay,\n .calendar.popup table tbody td,\n .calendar-new-header > *,\n span.form-sub-label, label.form-sub-label, div.form-header-group .form-subHeader,\n .rating-item-title.for-to > label:first-child,\n .rating-item-title.for-from > label:first-child,\n .rating-item-title .editor-container * {\n color: ${newThemeProps['label-color']};\n }\n .rating-item input:hover+label,\n .appointmentSlotsContainer > *,\n li[data-type=control_fileupload] .qq-upload-button,\n li[data-type=control_fileupload] .jfUpload-heading,\n .form-textbox::placeholder {\n color: ${newThemeProps['default-blue-color'] || newThemeProps['dark-color-2x']};\n }\n .clear-pad-btn,\n .appointmentCalendar .dayOfWeek,\n .calendar.popup th {\n color: ${newThemeProps['default-blue-color'] || newThemeProps['white-color']};\n }\n\n .until-text,\n .form-submit-reset {\n color: ${newThemeProps['default-dark-color'] || newThemeProps['label-color']};\n }\n .appointmentCalendar .calendarDay.isSelected:after {\n color: ${newThemeProps['input-bg-color']};\n }\n .form-pagebreak-next,\n .form-pagebreak-back,\n .form-collapse-table,\n .form-matrix-column-headers,\n .form-matrix-row-headers,\n .form-spinner-button-container>* {\n color: ${newThemeProps['default-dark-color'] || newThemeProps['white-color']};\n }\n .stageEmpty,\n .btn-barebone,\n .formPage-stuff,\n .scrollToTop .scrollToTop-text {\n color: ${newThemeProps['empty-state-grey-color'] || newThemeProps['white-color']};\n }\n .scrollToTop svg {\n fill: ${newThemeProps['empty-state-grey-color'] || newThemeProps['white-color']};\n }\n .form-dropdown:not(.time-dropdown):not(:required),\n .form-dropdown:not(:required),\n .form-dropdown:required:invalid,\n .form-spinner-input {\n color: ${newThemeProps['default-grey-color'] || newThemeProps['dark-600'] || newThemeProps['label-color']};\n }\n .FITB:not(.formRender) .qb-datebox input:not([data-labelid]), .FITB:not(.formRender) .qb-selectbox input:not([data-labelid]),\n .FITB:not(.formRender) .qb-signaturebox input:not([data-labelid]), .FITB:not(.formRender) .qb-textbox input:not([data-labelid]),\n .FITB:not(.formRender) .qb-timebox input:not([data-labelid]), span.FITB-inptCont[data-type=datebox] label,\n span.FITB-inptCont[data-type=signaturebox] label, span.FITB-inptCont[data-type=textbox] label, span.FITB-inptCont[data-type=timebox] label,\n span.FITB-inptCont[data-type=datebox] input:focus~label, span.FITB-inptCont[data-type=datebox] input:valid~label,\n span.FITB-inptCont[data-type=signaturebox] input:focus~label, span.FITB-inptCont[data-type=signaturebox] input:valid~label,\n span.FITB-inptCont[data-type=textbox] input:focus~label, span.FITB-inptCont[data-type=textbox] input:valid~label,\n span.FITB-inptCont[data-type=timebox] input:focus~label, span.FITB-inptCont[data-type=timebox] input:valid~label {\n color: ${newThemeProps['default-grey-color'] || newThemeProps['next-bg-color'] || newThemeProps['a11y-fitb-label'] || newThemeProps['dark-color-2x']};\n }\n\n .appointmentCalendar .calendarWeek .calendarDay.isUnavailable,\n .calendar tr.days td.otherDay,\n .calendar tr.days td:hover:not(.unselectable) {\n color: ${newThemeProps['default-grey-light-color'] || newThemeProps['a11y-calendarOtherDay'] || newThemeProps['light-color']};\n }\n\n /* border-colors */\n .form-dropdown,\n .form-textarea,\n .form-textbox,\n li[data-type=control_fileupload] .qq-upload-button,\n .rating-item label,\n .rating-item input:focus+label,\n .rating-item input:checked+label,\n .jf-form-buttons,\n .form-checkbox+label:before, .form-checkbox+span:before, .form-radio+label:before, .form-radio+span:before,\n .signature-pad-passive,\n .signature-wrapper,\n .appointmentCalendarContainer,\n .appointmentField .timezonePickerName,\n .appointmentDayPickerButton,\n .appointmentCalendarContainer .monthYearPicker .pickerItem+.pickerItem,\n .appointmentCalendarContainer .monthYearPicker,\n .appointmentCalendar .calendarDay.isActive .calendarDayEach, .appointmentCalendar .calendarDay.isToday .calendarDayEach, .appointmentCalendar .calendarDay:not(.empty):hover .calendarDayEach,\n .calendar.popup:before,\n .calendar-new-month,\n .form-matrix-column-headers, .form-matrix-table td, .form-matrix-table td:last-child,\n .form-matrix-table th, .form-matrix-table th:last-child, .form-matrix-table tr:last-child td, .form-matrix-table tr:last-child th, .form-matrix-table tr:not([role=group])+tr[role=group] th,\n .form-matrix-headers.form-matrix-column-headers,\n .isSelected .form-matrix-column-headers:nth-last-of-type(2),\n li[data-type=control_inline] input[type=email], li[data-type=control_inline] input[type=number],\n li[data-type=control_inline] input[type=tel], li[data-type=control_inline] input[type=text]:not(#productSearch-input), .form-line[data-payment=true] .form-textbox,\n .form-line[data-payment=true] .select-area,\n .form-line[data-payment=true] #coupon-input,\n .form-line[data-payment=true] #coupon-container input,\n .form-line[data-payment=true] input#productSearch-input,\n .form-line[data-payment=true] .form-product-category-item:after,\n .form-line[data-payment=true] .filter-container .dropdown-container .select-content,\n .form-line[data-payment=true] .form-textbox.form-product-custom_quantity,\n .form-line[data-payment=\"true\"] .form-product-item .p_checkbox .select_border,\n .form-line[data-payment=\"true\"] .form-product-item .form-product-container .form-sub-label-container span.select_cont,\n .form-line[data-payment=true] select.form-dropdown,\n .form-line[data-payment=true] #payment-category-dropdown .select-area,\n .form-line[data-payment=true] #payment-sorting-products-dropdown .select-area,\n .form-line[data-payment=true] .dropdown-container .select-content,\n .form-line[data-payment=\"true\"] hr,\n .form-line[data-payment=true] .p_item_separator,\n .form-line[data-payment=\"true\"] .payment_footer.new_ui,\n .form-line.card-3col .form-product-item.new_ui,\n .form-line.card-2col .form-product-item.new_ui,\n .form-line[data-payment=true] .form-product-category-item,\n .form-line[data-payment=true] .payment-form-table span.form-sub-label-container iframe,\n .form-line[data-type=control_square] .payment-form-table span.form-sub-label-container iframe{\n border-color: ${newThemeProps['dark-color-2x']};\n }\n .stageEmpty,\n .form-page-break:before,\n .welcome-page-break:before,\n .thankyou-page-break:before,\n .form-cover-break:before,\n .form-page-break:after,\n .welcome-page-break:after,\n .thankyou-page-break:after,\n .form-cover-break:after {\n border-color: ${newThemeProps['empty-state-grey-light-color'] || newThemeProps['white-color']};\n }\n\n .rating-item input:hover+label,\n .appointmentSlot,\n .form-checkbox:checked+label:before, .form-checkbox:checked+span:before, .form-checkbox:checked+span label:before,\n .form-radio:checked+label:before, .form-radio:checked+span:before,\n .form-dropdown:focus, .form-textarea:focus, .form-textbox:focus, .signature-wrapper:focus,\n .form-line[data-payment=\"true\"] .form-product-item .p_checkbox .checked,\n .form-dropdown:hover, .form-textarea:hover, .form-textbox:hover, .signature-wrapper:hover {\n border-color: ${newThemeProps['default-blue-color'] || newThemeProps['dark-color-2x']};\n }\n\n .calendar tr.days td:hover:not(.unselectable):after {\n border-color: ${newThemeProps['light-color']};\n }\n .form-header-group,\n .form-buttons-wrapper, .form-pagebreak, .form-submit-clear-wrapper,\n .form-pagebreak-next,\n .form-pagebreak-back,\n .form-checkbox:hover+label:before, .form-checkbox:hover+span:before, .form-radio:hover+label:before, .form-radio:hover+span:before,\n .divider {\n border-color: ${newThemeProps['main-color']};\n }\n .form-pagebreak-back:focus, .form-pagebreak-next:focus, .form-submit-button:focus {\n border-color: ${newThemeProps['input-border-color--focus']};\n }\n /* background-colors */\n\n .form-matrix-values,\n .form-matrix-values,\n .signature-wrapper,\n .signature-pad-passive,\n .form-checkbox+label:before, .form-checkbox+span:before,\n .form-radio+label:before, .form-radio+span:before, \n .form-line[data-payment=true] #coupon-input,\n .form-line[data-payment=true] input#productSearch-input,\n .form-line[data-payment=true] .select-area,\n .form-line[data-payment=true] .custom_quantity,\n .form-line[data-payment=true] .filter-container .select-content,\n .form-line[data-payment=true] .p_checkbox .select_border,\n .form-line[data-payment=true] #payment-category-dropdown .select-area,\n .form-line[data-payment=true] #payment-sorting-products-dropdown .select-area,\n .form-line[data-payment=true] .dropdown-container .select-content {\n background-color: ${newThemeProps['input-bg-color']};\n }\n .form-line-active {\n background-color: ${newThemeProps['active-bg-color']};\n }\n .stageEmpty {\n background-color: ${newThemeProps['main-color'] || newThemeProps['dark-color-2x']};\n }\n .form-matrix-column-headers,\n .form-matrix-row-headers,\n .form-spinner-button-container>*,\n .appointmentDayPickerButton,\n .form-collapse-table,\n .form-collapse-table:hover {\n background-color: ${newThemeProps['default-back-bgcolor'] || newThemeProps['dark-color-2x']};\n }\n .calendar.popup, .calendar.popup table,\n .calendar.popup table tbody td:after {\n background-color: ${newThemeProps['form-bg-color']};\n }\n .form-line-error {\n background-color: ${newThemeProps['error-bg-color']};\n }\n\n .appointmentCalendar .calendarDay.isActive .calendarDayEach,\n .appointmentFieldRow.forSelectedDate,\n .calendar.popup tr.days td.selected:after,\n .calendar.popup:after,\n .submit-button,\n .form-checkbox:checked+label:before, .form-checkbox:checked+span:before, .form-checkbox:checked+span label:before,\n .form-radio+label:after, .form-radio+span:after,\n .rating-item input:checked+label,\n .appointmentCalendar .calendarDay:after,\n .form-line[data-payment=\"true\"] .form-product-item .p_checkbox .checked,\n .rating-item input:focus+label,\n .formPage-removePage:hover,\n .btn-barebone:hover, .btn-barebone:active {\n background-color: ${newThemeProps['dark-color-2x']};\n }\n .appointmentSlot.active {\n background-color: ${newThemeProps['dark-color-2x']} !important;\n }\n .clear-pad-btn,\n .appointmentCalendar .dayOfWeek,\n .calendar.popup th {\n background-color: ${newThemeProps['default-blue-light-color'] || newThemeProps['dark-600'] || newThemeProps['label-color']};\n }\n .appointmentField .timezonePicker:hover+.timezonePickerName,\n .form-spinner-button-container>*:hover {\n background-color: ${newThemeProps['default-blue-light-color'] || newThemeProps['hover-color']};\n }\n\n li[data-type=control_fileupload] .qq-upload-button {\n background-color: ${newThemeProps['default-blue-light2x-color'] || newThemeProps['input-bg-color']};\n }\n .JotFormBuilder .appContainer #app li.form-line[data-type=control_matrix].isSelected .questionLine-editButton.forRemove:after,\n .JotFormBuilder .appContainer #app li.form-line[data-type=control_matrix].isSelected .questionLine-editButton.forRemove:before {\n background-color: ${newThemeProps['default-grey-color'] || newThemeProps['white-color']};\n }\n .page-section li.form-line-active[data-type=\"control_button\"] {\n background-color: ${newThemeProps['active-bg-color']};\n }\n .appointmentDayPickerButton:after,\n .form-collapse-table:after {\n background-color: ${newThemeProps['a11y-fitb-label'] || newThemeProps['default-grey-color'] || newThemeProps['form-bg-color']};\n }\n\n /* shadow */\n .form-dropdown:hover, .form-textarea:hover, .form-textbox:hover, .signature-wrapper:hover,\n .calendar.popup:before,\n .jSignature:hover,\n li[data-type=control_fileupload] .qq-upload-button-hover,\n .form-line[data-payment=\"true\"] .form-product-item .p_checkbox .checked,\n .form-line[data-payment=\"true\"] .form-product-item .p_checkbox:hover .select_border,\n .form-checkbox:hover+label:before, .form-checkbox:hover+span:before, .form-radio:hover+label:before, .form-radio:hover+span:before,\n .calendar.popup:before {\n border-color: ${newThemeProps['input-border-color--hover']};\n box-shadow: 0 0 0 1px ${newThemeProps['input-box-shadow--hover']};\n }\n .form-dropdown:focus, .form-textarea:focus, .form-textbox:focus, .signature-wrapper:focus,\n li[data-type=control_fileupload] .qq-upload-button-focus,\n .form-checkbox:focus+label:before, .form-checkbox:focus+span:before, .form-radio:focus+label:before, .form-radio:focus+span:before,\n .calendar.popup:before {\n border-color: ${newThemeProps['input-border-color--focus']};\n box-shadow: 0 0 0 1px ${newThemeProps['input-box-shadow--focus']};\n }\n .calendar.popup table tbody td{\n box-shadow: none;\n }\n\n .form-product-item .form-product-container .form-sub-label-container span.select_cont:focus select,\n .form-product-item .form-product-container .form-sub-label-container span.select_cont select:focus,\n .form-checkbox.form-product-input:focus ~ .select_border,\n .form-pagebreak-next:focus,\n .form-pagebreak-back:focus,\n .preview-submission-button:focus,\n .form-submit-button:focus,\n .form-collapse-table:focus {\n border-color: ${newThemeProps['input-border-color--focus']} !important;\n box-shadow: 0 0 1px 3px ${newThemeProps['input-box-shadow--focus']} !important;\n }\n\n /* button colors */\n .submit-button {\n background-color: ${newThemeProps['submit-button-bg-color']};\n border-color: ${newThemeProps['submit-button-bg-color']};\n }\n .submit-button:hover {\n background-color: ${newThemeProps['submit-button-hover-bg']};\n border-color: ${newThemeProps['submit-button-hover-bg']};\n }\n .form-pagebreak-next,\n .form-pagebreak-back {\n background-color: ${newThemeProps['default-blue-color'] || newThemeProps['next-bg-color'] || newThemeProps['main-color']};\n }\n .form-pagebreak-back:hover {\n background-color: ${newThemeProps['back-button--hover']};\n border-color: ${newThemeProps['back-button--hover']};\n }\n .form-pagebreak-next:hover {\n background-color: ${newThemeProps['next-button--hover']};\n border-color: ${newThemeProps['next-button--hover']};\n }\n .form-sacl-button, .form-submit-print {\n background-color: transparent;\n color: ${newThemeProps['default-dark-color'] || newThemeProps['input-border-color']};\n border-color: ${newThemeProps['input-border-color']};\n }\n .form-sacl-button:hover, .form-submit-print:hover,\n .appointmentSlot:not(.disabled):not(.active):hover,\n .appointmentDayPickerButton:hover,\n .rating-item input:hover+label {\n background-color: ${newThemeProps['hover-color']};\n }\n\n /* payment styles */\n\n .form-line[data-payment=true] .form-product-category-item.title_collapsed.has_selected_product .selected-items-icon {\n background-color: ${newThemeProps['category-btn-color']};\n border-color: ${newThemeProps['category-btn-color']};\n }\n .form-line[data-payment=true].form-line.card-3col .form-product-item,\n .form-line[data-payment=true].form-line.card-2col .form-product-item {\n background-color: ${newThemeProps['product-item-bg']};\n }\n\n /* icons */\n .appointmentField .timezonePickerName:before,\n [data-blotid][data-type=timebox]:after,\n span.FITB-inptCont[data-type=timebox] .FITB-inptCont-inner:after {\n ${newThemeProps['timezone-icon'] ? `background-image: ${newThemeProps['timezone-icon']};` : ''}\n }\n .appointmentCalendarContainer .monthYearPicker .pickerArrow.prev:after {\n ${newThemeProps['app-arrow-up-icon'] ? `background-image: ${newThemeProps['app-arrow-up-icon']};` : ''}\n }\n .appointmentCalendarContainer .monthYearPicker .pickerArrow.next:after {\n ${newThemeProps['app-arrow-down-icon'] ? `background-image: ${newThemeProps['app-arrow-down-icon']};` : ''}\n }\n .appointmentField .timezonePickerName:after {\n ${newThemeProps['app-arrow-icon'] ? `background-image: ${newThemeProps['app-arrow-icon']};` : ''}\n width: 11px;\n }\n li[data-type=control_datetime] [data-wrapper-react=true].extended>div+.form-sub-label-container .form-textbox:placeholder-shown,\n li[data-type=control_datetime] [data-wrapper-react=true]:not(.extended) .form-textbox:not(.time-dropdown):placeholder-shown,\n .appointmentCalendarContainer .currentDate,\n span[data-type=\"datebox\"]:after {\n ${newThemeProps['calendar-icon'] ? `background-image: ${newThemeProps['calendar-icon']};` : ''}\n }\n .form-star-rating-star.Stars {\n ${newThemeProps['star-rating-icon'] ? `background-image: ${newThemeProps['star-rating-icon']} !important;` : ''}\n }\n .signature-pad-passive, .signature-placeholder:after {\n ${newThemeProps['signature-icon'] ? `background-image: ${newThemeProps['signature-icon']};` : ''}\n }\n .form-spinner-button.form-spinner-up:before {\n ${newThemeProps['spinner-up-icon'] ? `background-image: ${newThemeProps['spinner-up-icon']};` : ''}\n }\n .form-spinner-button.form-spinner-down:before {\n ${newThemeProps['spinner-down-icon'] ? `background-image: ${newThemeProps['spinner-down-icon']};` : ''}\n }\n li[data-type=control_fileupload] .qq-upload-button:before {\n ${newThemeProps['file-upload-icon'] ? `background-image: ${newThemeProps['file-upload-icon']};` : ''}\n }\n span[data-type=signaturebox]:after {\n ${newThemeProps['app-arrow-right-icon'] ? `background-image: ${newThemeProps['fitb-pencil-icon']};` : ''}\n }\n\n /* NEW THEME STYLE */\n /*PREFERENCES STYLE*/\n `;\n};\n\nwindow.getColorSchemeList = getColorSchemeList;\n","function ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n\n if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n\n return target;\n}\nexport { _object_spread_props as _ };\n","import { _ as _define_property } from \"./_define_property.js\";\n\nfunction _object_spread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(\n Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n })\n );\n }\n\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n\n return target;\n}\nexport { _object_spread as _ };\n"],"names":["formProperties","l","Symbol","for","n","p","q","r","t","u","v","w","x","y","z","iterator","B","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","C","Object","assign","D","E","a","b","e","props","context","refs","updater","F","G","prototype","isReactComponent","setState","Error","forceUpdate","H","constructor","isPureReactComponent","I","Array","isArray","J","hasOwnProperty","K","current","L","key","ref","__self","__source","M","d","c","k","h","call","g","arguments","length","children","f","m","defaultProps","$$typeof","type","_owner","O","P","Q","replace","toString","S","R","push","next","done","value","String","keys","join","T","_status","_result","then","default","U","V","transition","exports","Children","map","forEach","apply","count","toArray","only","Component","Fragment","Profiler","PureComponent","StrictMode","Suspense","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentDispatcher","ReactCurrentBatchConfig","ReactCurrentOwner","cloneElement","createContext","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","_context","createElement","createFactory","bind","createRef","forwardRef","render","isValidElement","lazy","_payload","_init","memo","compare","startTransition","unstable_act","useCallback","useContext","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useSyncExternalStore","useTransition","version","module","_define_property","obj","defineProperty","enumerable","configurable","writable","colorSchemeListV3New","name","order","style","borderColor","backgroundColor","color","colors","clrText","clrFrame","clrBg","clrActive","clrErrorBg","clrTextInputBg","border","lineHeight","oldColorSchemes","marginRight","accessibleThemes","accessibleThemesV3","ColorSchemeManager","findColorSchemeByName","colorScheme","find","scheme","styleTag","document","getElementById","colorShemeStyleTagId","remove","onChange","target","schemeName","onClearColorScheme","selectedColorScheme","appendCssFile","styleTagId","styleFileName","isNewDefaultTheme","rel","href","id","head","appendChild","getColorSchemeList","generateNewColorSchemeCSS","styleJSON","_styleJSON","JSON","parse","newThemeProps","entries","window","styleProps","Styles","layout","containers","text","lines","containerID","React","height","margin","columns","lineID","attributes","padding","paddingTop","elementsToLayout","column1","column2","column3","column4","column5","column6","column7","column8","column9","minidesignerStylesLayout","className","column10","column11","column12","column13","column14","column15","column16","generateBackgroundRule","newValue","schemeColor","str","background","RegExp","indexOf","test","match","addMissingParantheses","s","missedOpen","stack","i","pop","generateFontColorRule","fontcolor","headerColor","lightenColor","percent","col","usePound","slice","num","parseInt","amt","Math","round","lighten","generateWindowBackgroundRule","generateTextInputBackgroundRule","generatePreferencesStyle","formProps","_injectCSS","injectCSS","defaultTheme","isCdnColorScheme","location","advancedDesingerProps","generateInjectCSS","fontFamily","result","font","generateFontLink","fontFamilyString","filter","fontPropPrefix","generateAlignmentRule","alignment","topRules","leftRightRules","lineSpacing","formWidth","labelWidth","fontsize","generatePageBackgroundImageRule","backgroundUrl","repeat","fixed","cover","backgroundRules","generateFormBackgroundImageRule","stringify","newStyles","undefined","hasPreferencesStyles","hasInspectSeparator","jotformStyles","userStyles","split","handleStylePropsChange","temp","styles","stylePropsTemp","console","log","source","ownKeys","getOwnPropertySymbols","concat","sym","getOwnPropertyDescriptor","getOwnPropertyDescriptors","defineProperties","object","enumerableOnly","symbols","link","prepareFormStyleFormat","event","uploadOrganizationLogo","data","url","localUrlPattern","checkProtocolPattern","imgHeight","dimensions","imgWidth","width","parsedFormWidth"],"mappings":"8QA+LIA,E,0BC/LJ;;;;;;;;CAQC,EACY,IAAIC,EAAEC,OAAOC,GAAG,CAAC,iBAAiBC,EAAEF,OAAOC,GAAG,CAAC,gBAAgBE,EAAEH,OAAOC,GAAG,CAAC,kBAAkBG,EAAEJ,OAAOC,GAAG,CAAC,qBAAqBI,EAAEL,OAAOC,GAAG,CAAC,kBAAkBK,EAAEN,OAAOC,GAAG,CAAC,kBAAkBM,EAAEP,OAAOC,GAAG,CAAC,iBAAiBO,EAAER,OAAOC,GAAG,CAAC,qBAAqBQ,EAAET,OAAOC,GAAG,CAAC,kBAAkBS,EAAEV,OAAOC,GAAG,CAAC,cAAcU,EAAEX,OAAOC,GAAG,CAAC,cAAcW,EAAEZ,OAAOa,QAAQ,CAC7WC,EAAE,CAACC,UAAU,WAAW,MAAM,CAAC,CAAC,EAAEC,mBAAmB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