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,CAAAkB,CAAA,EAEH,EACED,CAAI,CAAAE,IAAQ,CAAG,IACf,IAAAC,CAAU,CAAIH,CAAM,CAEpBA,CAAA,CAAS,IAAAF,GAAQ,CAAkBK,CAC7B,CAAClN,OAAO,CAAC,SAAIgN,CAAU,EACzB,CAAAF,CAAQ,CAAAK,GAAI,CAAAH,CAAQ,CAAC,GACrBF,CAAI,CAAAhB,GAAA,CAAAkB,CAAY,EACqBI,CAA3Bf,CAAiB,CAAAW,CAAU,OAAAH,GAAA,EACnC7M,OAAY,UAAUqN,CAAA,EACrBN,CAAA,CAAAjB,GAAA,CAAAuB,CAAA,EACJ,GAEJ,EAED,OAAkCP,CAChC,CAAI9M,OAAK,UAAAgN,CAAmB,EAC5B,IAAIM,CAAE,CAAEhB,CAAA,CAAAd,CAAA,CAAAwB,CAAA,EACNM,CAAA,EACDZ,CAAA,CAAAN,WAAA,CAAAjQ,IAAA,CAAAmR,CAAA,EAGH,EACDZ,CAAA,CAED,CAhEwC,CACpCN,WAAQ,CAAIpM,OAAE,UAAAmM,CAAA,KACZA,CAAA,CAAIhM,IAAI,EACR,IAAAyL,CAAA,KAAAiB,GAAA,CACAnB,CAAwB,CAAAS,CAAK,CAACP,CAAG,EAClCS,CAAA,CAAAF,CAAA,CAAAhM,IAAA,CAAArC,KAAA,EAAA8N,CAAA,CACA,CACA,EA2DDL,CAAA,CAAAgC,OAAA,CAAA/B,CAAA,CAEAD,CAAA,CAAAgC,OAAA,CAAAC,eAA+B,CAAGhB,CAAS,CAAAhB,CAAK,kBAAiB,EAEjED,CAAA,CAAAgC,OAAA,CAAAE,aAA8B,CAAGjB,CAAS,CAAAhB,CAAG,CAAE,eAAgB,EAAAD,CAAA,CAAAgC,OAAA,CAAAG,YAAA,CAAAlB,CAAA,CAAAhB,CAAA","sources":["webpack://_N_E/./node_modules/@sm/webassets/dist/components/SurveyTheme/context.js","webpack://_N_E/./node_modules/@sm/webassets/dist/components/SurveyTheme/getFontWeights.js","webpack://_N_E/./node_modules/@sm/webassets/dist/components/SurveyTheme/helpers.js","webpack://_N_E/./node_modules/@sm/webassets/dist/components/SurveyTheme/SurveyTheme.js","webpack://_N_E/./node_modules/@sm/webassets/dist/components/SurveyTheme/index.js","webpack://_N_E/./node_modules/@sm/webassets/dist/components/SurveyTheme/isDark.js","webpack://_N_E/./node_modules/@sm/webassets/dist/components/SurveyTheme/SurveyTheme.graphql","webpack://_N_E/"],"sourcesContent":["function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from 'react';\nimport { createTheming, createUseStyles } from 'react-jss';\n/** Create a React context which JSS would need to wrap on */\nvar SurveyThemeContext = /*#__PURE__*/React.createContext({});\nSurveyThemeContext.displayName = 'SurveyTheme';\n\n/** Use JSS custom hook to create the wrapper */\nvar theming = createTheming(SurveyThemeContext);\n\n/** Expose the associated hooks with aliases */\nvar useSurveyTheme = theming.useTheme,\n SurveyThemeProvider = theming.ThemeProvider;\n\n/** Recreation of `react-jss`'s `CreateUseStylesOptions`, which is dynamic and does not get exported */\nexport { useSurveyTheme, SurveyThemeProvider };\n/**\n * For convenience, expose a custom hook which would carry the theming context wrapper along,\n * as well as injecting style sheet name-space / class name prefix as \"sm\" by default.\n *\n * Note: One may still utilize the stock `createUseStyles()` hook to construct styles regardless\n * relying on a survey theme or not; however if they do, please keep in mind that the recommended\n * way per JSS documentation is to pass in `theming` context wrapper every time.\n * ( https://cssinjs.org/react-jss/?v=v10.8.1#using-custom-theming-context )\n *\n */\nexport var createSurveyStyles = function createSurveyStyles(styles) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return createUseStyles(styles, _objectSpread({\n theming: theming,\n name: 'sm'\n }, opts));\n};\n\n/**\n * The context wrapper constructed by JSS `createTheming()` hook.\n * Note: `theming.context` points to the same SurveyThemeContext we just instantiated\n */\nexport default theming;\n//# sourceMappingURL=context.js.map","export var defaultFontWeightOptions = {\n ultralight: 200,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700\n};\n// Collection of themes with unique font weights.\nvar fontInfo = [{\n fontName: 'Montserrat',\n fontWeightOptions: {\n ultralight: 400,\n light: 400,\n regular: 400,\n medium: 400,\n bold: 700\n }\n}, {\n fontName: 'Open Sans Condensed',\n fontWeightOptions: {\n ultralight: 300,\n light: 300,\n regular: 300,\n medium: 300,\n bold: 700\n }\n}];\nvar getFontWeights = function getFontWeights() {\n var fontFamily = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var fontItem = fontInfo.find(function (t) {\n return t.fontName === fontFamily.split(',')[0];\n });\n return fontItem ? fontItem.fontWeightOptions : defaultFontWeightOptions;\n};\nexport default getFontWeights;\n//# sourceMappingURL=getFontWeights.js.map","var _excluded = [\"__typename\"],\n _excluded2 = [\"theme\"];\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport { WrenchTheme } from '@wds/styles';\nimport isDark from './isDark';\nimport getFontWeights, { defaultFontWeightOptions as fontWeightOption } from './getFontWeights';\nvar fontStyleOption = {\n INHERIT: 'inherit',\n INITIAL: 'initial',\n ITALIC: 'italic',\n NORMAL: 'normal',\n OBLIQUE: 'oblique'\n};\nvar textDecorationOption = {\n NONE: 'none',\n UNDERLINE: 'underline'\n};\nexport var breakpoints = {\n 'xxs': {\n 'max': '480px'\n },\n 'xs': {\n 'min': '481px',\n 'max': '640px'\n },\n 'sm': {\n 'min': '641px',\n 'max': '768px'\n },\n 'md': {\n 'min': '769px',\n 'max': '1024px'\n },\n 'lg': {\n 'min': '1025px',\n 'max': '1200px'\n },\n 'xl': {\n 'min': '1201px'\n }\n};\n\n/** Possible Styles to format */\n\nvar formatStyle = function formatStyle(kvPair, styles) {\n switch (kvPair[0]) {\n case 'fontWeight':\n if (styles.fontFamily) {\n var fontWeights = getFontWeights(styles.fontFamily);\n return _defineProperty({}, kvPair[0], fontWeights[kvPair[1].toLowerCase()]);\n }\n return _defineProperty({}, kvPair[0], fontWeightOption[kvPair[1].toLowerCase()]);\n case 'fontStyle':\n return _defineProperty({}, kvPair[0], fontStyleOption[kvPair[1]]);\n case 'fontFamily':\n if (kvPair[1] === 'National2') {\n // add fallback-fonts and also use Wrench spelling of font: `'National 2'` vs `National2`\n return _defineProperty({}, kvPair[0], WrenchTheme.type.fontFamily.base);\n }\n return _defineProperty({}, kvPair[0], kvPair[1]);\n case 'textDecoration':\n return _defineProperty({}, kvPair[0], textDecorationOption[kvPair[1]]);\n case 'backgroundImage':\n return kvPair[1].url ? _defineProperty({}, kvPair[0], \"url(\".concat(kvPair[1].url, \")\")) : null;\n default:\n if (typeof kvPair[1] === 'object') {\n // format nested data recursively\n return _defineProperty({}, kvPair[0], formatCommonStyle(kvPair[1]));\n }\n return _defineProperty({}, kvPair[0], kvPair[1]);\n }\n};\n/** Formats data recursively */\nvar formatCommonStyle = function formatCommonStyle(_ref10) {\n var __typename = _ref10.__typename,\n styles = _objectWithoutProperties(_ref10, _excluded);\n var entries = Object.entries(styles);\n return entries.reduce(function (acc, args) {\n var _ref11 = args,\n _ref12 = _slicedToArray(_ref11, 2),\n key = _ref12[0],\n val = _ref12[1];\n return val === null || val === undefined ? acc : _objectSpread(_objectSpread({}, acc), formatStyle([key, val], styles));\n }, {});\n};\n\n/** Standardizes the formatting to be CSS/JSS compatible */\nexport var formatEntity = function formatEntity(data) {\n return data && formatCommonStyle(data) || undefined;\n};\n\n/** Collapses `Maybe` (`T | null | undefined`) to `T | undefined` */\nexport var defaultNullToUndefined = function defaultNullToUndefined(arg) {\n return arg === null ? undefined : arg;\n};\n\n/** Format GraphQL to Theme representation */\nexport var formatTheme = function formatTheme() {\n var _response$survey, _artifacts$background;\n var response = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _ref13 = (response === null || response === void 0 ? void 0 : (_response$survey = response.survey) === null || _response$survey === void 0 ? void 0 : _response$survey.design) || {},\n theme = _ref13.theme,\n settings = _objectWithoutProperties(_ref13, _excluded2);\n var _ref14 = theme || {},\n _ref14$name = _ref14.name,\n name = _ref14$name === void 0 ? \"Default\" : _ref14$name,\n selectedColorPalette = _ref14.selectedColorPalette,\n layout = _ref14.layout,\n surveyPage = _ref14.surveyPage,\n surveyTitle = _ref14.surveyTitle,\n pageTitle = _ref14.pageTitle,\n questionTitle = _ref14.questionTitle,\n questionBody = _ref14.questionBody,\n button = _ref14.button,\n error = _ref14.error,\n exitLink = _ref14.exitLink,\n artifacts = _ref14.artifacts,\n isAccessible = _ref14.isAccessible,\n isCustomTheme = _ref14.isCustomTheme;\n var logo = settings.logo,\n progressBar = settings.progressBar;\n var surveyPageBackgroundImage = artifacts === null || artifacts === void 0 ? void 0 : (_artifacts$background = artifacts.background) === null || _artifacts$background === void 0 ? void 0 : _artifacts$background.url;\n var smFont = \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\";\n var surveyTheme = _objectSpread(_objectSpread(_objectSpread(_objectSpread({\n name: name,\n fontFamily: smFont,\n fontSize: {\n body: 16\n },\n fontWeight: fontWeightOption,\n layout: defaultNullToUndefined(layout),\n isAccessible: isAccessible && !isCustomTheme,\n isCustomTheme: isCustomTheme,\n isDark: isDark((selectedColorPalette === null || selectedColorPalette === void 0 ? void 0 : selectedColorPalette.primaryBackgroundColor) || '#fff'),\n surveyPage: _objectSpread(_objectSpread({}, formatEntity(surveyPage)), surveyPageBackgroundImage && {\n backgroundImage: \"url(\".concat(surveyPageBackgroundImage, \")\")\n }),\n surveyTitle: formatEntity(surveyTitle),\n pageTitle: formatEntity(pageTitle),\n questionTitle: formatEntity(questionTitle),\n questionBody: _objectSpread({\n color: selectedColorPalette === null || selectedColorPalette === void 0 ? void 0 : selectedColorPalette.answerColor\n }, formatEntity(questionBody)),\n button: formatEntity(button),\n error: formatEntity(error),\n exitLink: formatEntity(exitLink)\n }, logo && {\n logo: formatEntity(logo)\n }), progressBar && {\n progressBar: formatEntity(progressBar)\n }), formatEntity(selectedColorPalette)), {}, {\n breakpoints: breakpoints\n });\n return surveyTheme;\n};\n//# sourceMappingURL=helpers.js.map","var _jsxFileName = \"/repo/packages/webassets/src/components/SurveyTheme/SurveyTheme.tsx\",\n _this = this;\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nimport React from 'react';\nimport { useQuery } from 'react-apollo';\nimport { SurveyThemeProvider } from './context';\nimport { formatTheme } from './helpers';\nimport getSurveyDesign from './SurveyTheme.graphql';\n/** A simple wrapper composes inner children with the fetched theming info. */\nvar SurveyTheme = function SurveyTheme(_ref) {\n var children = _ref.children,\n surveyId = _ref.surveyId,\n targetEndPoint = _ref.targetEndPoint,\n headers = _ref.headers;\n var queryOptions = {\n variables: {\n id: surveyId\n },\n // acquire data even when an error occurs\n errorPolicy: 'all',\n partialRefetch: true\n };\n\n // enable query context if tgtEndPoint provided\n if (targetEndPoint) {\n queryOptions.context = {};\n queryOptions.context.targetPath = \"/lo-graphql/\".concat(targetEndPoint);\n // include headers if provided\n if (headers) {\n queryOptions.context.headers = headers;\n }\n }\n var _useQuery = useQuery(getSurveyDesign, queryOptions),\n data = _useQuery.data,\n loading = _useQuery.loading,\n fetchError = _useQuery.error,\n refetch = _useQuery.refetch;\n\n /* No-op on the loading state.\n * The wrapping component should know better how to compose with a representable skeleton.\n */\n if (loading) {\n return null;\n }\n var surveyTheme = formatTheme(data);\n return /*#__PURE__*/React.createElement(SurveyThemeProvider, {\n theme: _objectSpread(_objectSpread({}, surveyTheme), fetchError && {\n refetch: refetch,\n fetchError: fetchError\n }),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 5\n }\n }, children);\n};\nexport default SurveyTheme;\n//# sourceMappingURL=SurveyTheme.js.map","import SurveyTheme from './SurveyTheme';\nimport getFontWeights from './getFontWeights';\nimport theming, { useSurveyTheme, createSurveyStyles, SurveyThemeProvider } from './context';\nexport { SurveyTheme, getFontWeights, SurveyThemeProvider, useSurveyTheme, createSurveyStyles, theming };\nexport { default as isDark, relativeLuminance } from './isDark';\n//# sourceMappingURL=index.js.map","/**\n * Relative luminance of a color\n * from http://www.w3.org/TR/WCAG20/#relativeluminancedef\n */\nvar relativeLuminanceInner = function relativeLuminanceInner(R8bit, G8bit, B8bit) {\n var RsRGB = R8bit / 255;\n var GsRGB = G8bit / 255;\n var BsRGB = B8bit / 255;\n var R = RsRGB <= 0.03928 ? RsRGB / 12.92 : Math.pow((RsRGB + 0.055) / 1.055, 2.4);\n var G = GsRGB <= 0.03928 ? GsRGB / 12.92 : Math.pow((GsRGB + 0.055) / 1.055, 2.4);\n var B = BsRGB <= 0.03928 ? BsRGB / 12.92 : Math.pow((BsRGB + 0.055) / 1.055, 2.4);\n\n // For the sRGB colorspace, the relative luminance of a color is defined as:\n return 0.2126 * R + 0.7152 * G + 0.0722 * B;\n};\nvar hexRegex = /^#[a-fA-F0-9]{6}$/;\nvar reducedHexRegex = /^#[a-fA-F0-9]{3}$/;\nvar rgbOrRgbaRegex = /^rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3}).*\\)$/i;\n\n/**\n * Convert RGB, RGBA or Hex into relative luminance\n *\n * Based on http://www.w3.org/TR/WCAG20/#relativeluminancedef\n *\n * @param rgbaOrHex RGB, RGBA or Hex color (`rgb(255,255,255)`, `rgba(255,255,255,1)`, `#FFF`, `#FFFFFF`)\n * @returns {number} number between `0` and `1`;\n */\nexport var relativeLuminance = function relativeLuminance(rgbaOrHex) {\n var color = rgbaOrHex !== null && rgbaOrHex !== void 0 ? rgbaOrHex : '';\n var rgbMatched = (color !== null && color !== void 0 ? color : '').match(rgbOrRgbaRegex);\n if (rgbMatched) {\n return relativeLuminanceInner(parseInt(\"\".concat(rgbMatched[1]), 10), parseInt(\"\".concat(rgbMatched[2]), 10), parseInt(\"\".concat(rgbMatched[3]), 10));\n }\n if (color.match(hexRegex)) {\n return relativeLuminanceInner(parseInt(\"\".concat(color[1]).concat(color[2]), 16), parseInt(\"\".concat(color[3]).concat(color[4]), 16), parseInt(\"\".concat(color[5]).concat(color[6]), 16));\n }\n if (color.match(reducedHexRegex)) {\n return relativeLuminanceInner(parseInt(\"\".concat(color[1]).concat(color[1]), 16), parseInt(\"\".concat(color[2]).concat(color[2]), 16), parseInt(\"\".concat(color[3]).concat(color[3]), 16));\n }\n throw Error('relativeLuminance: Invalid color format');\n};\n\n/**\n * Determines if a color is considered \"dark\" - as in dark theme\n *\n * @param color RGB, RGBA or Hex color (`rgb(255,255,255)`, `rgba(255,255,255,1)`, `#FFF`, `#FFFFFF`)\n * @returns {boolean} `true` if the color is considered \"dark\"\n */\nvar isDark = function isDark(color) {\n return relativeLuminance(color) < 0.5;\n};\nexport default isDark;\n//# sourceMappingURL=isDark.js.map","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"getSurveyDesign\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"survey\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"design\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"theme\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isAccessible\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isCustomTheme\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"layout\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"surveyPage\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"overlayColor\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"surveyTitle\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"commonStyles\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pageTitle\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"commonStyles\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"questionTitle\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"commonStyles\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"questionBody\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"highlightColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontSize\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontFamily\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontWeight\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontStyle\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"textDecoration\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"error\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"commonStyles\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"button\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"commonStyles\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"exitLink\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"commonStyles\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"artifacts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"background\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"},\"arguments\":[],\"directives\":[]}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"selectedColorPalette\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"paletteColors\"},\"directives\":[]}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logo\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"image\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"},\"arguments\":[],\"directives\":[]}]}}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"progressBar\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"position\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"showPercent\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"showPageNumber\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}]}},{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"paletteColors\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ColorPalette\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"titleColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"questionColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"answerColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"primaryAccentColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"secondaryAccentColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"primaryBackgroundColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"secondaryBackgroundColor\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"commonStyles\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"CommonStyle\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"color\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontSize\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontFamily\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontWeight\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fontStyle\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"textDecoration\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"backgroundColor\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"backgroundImage\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":1421}};\n doc.loc.source = {\"body\":\"query getSurveyDesign($id: ID!) {\\n survey(id: $id) {\\n id\\n design {\\n theme {\\n id\\n name\\n isAccessible\\n isCustomTheme\\n layout\\n surveyPage {\\n overlayColor\\n }\\n surveyTitle {\\n ...commonStyles\\n }\\n pageTitle {\\n ...commonStyles\\n }\\n questionTitle {\\n ...commonStyles\\n }\\n questionBody {\\n highlightColor\\n fontSize\\n fontFamily\\n fontWeight\\n fontStyle\\n textDecoration\\n }\\n error {\\n ...commonStyles\\n }\\n button {\\n ...commonStyles\\n }\\n exitLink {\\n ...commonStyles\\n }\\n artifacts {\\n background {\\n url\\n }\\n }\\n selectedColorPalette {\\n ...paletteColors\\n }\\n }\\n logo {\\n enabled\\n image {\\n url\\n }\\n }\\n progressBar {\\n enabled\\n position\\n showPercent\\n showPageNumber\\n }\\n }\\n }\\n}\\n\\nfragment paletteColors on ColorPalette {\\n titleColor\\n questionColor\\n answerColor\\n primaryAccentColor\\n secondaryAccentColor\\n primaryBackgroundColor\\n secondaryBackgroundColor\\n}\\n\\nfragment commonStyles on CommonStyle {\\n color\\n fontSize\\n fontFamily\\n fontWeight\\n fontStyle\\n textDecoration\\n backgroundColor\\n backgroundImage {\\n url\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"getSurveyDesign\"] = oneQuery(doc, \"getSurveyDesign\");\n \n module.exports[\"paletteColors\"] = oneQuery(doc, \"paletteColors\");\n \n module.exports[\"commonStyles\"] = oneQuery(doc, \"commonStyles\");\n \n","\"use strict\";\n(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[4693],{\n\n/***/ 6322:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Uu\": function() { return /* binding */ SurveyThemeProvider; },\n/* harmony export */ \"tF\": function() { return /* binding */ createSurveyStyles; },\n/* harmony export */ \"u7\": function() { return /* binding */ useSurveyTheme; }\n/* harmony export */ });\n/* harmony import */ var _swc_helpers_src_type_of_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2222);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7294);\n/* harmony import */ var react_jss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1928);\n/* harmony import */ var react_jss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(389);\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\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}\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return (typeof key === \"undefined\" ? \"undefined\" : (0,_swc_helpers_src_type_of_mjs__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .Z)(key)) === \"symbol\" ? key : String(key);\n}\nfunction _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\n\n\n/** Create a React context which JSS would need to wrap on */ var SurveyThemeContext = /*#__PURE__*/ react__WEBPACK_IMPORTED_MODULE_1__.createContext({});\nSurveyThemeContext.displayName = \"SurveyTheme\";\n/** Use JSS custom hook to create the wrapper */ var theming = (0,react_jss__WEBPACK_IMPORTED_MODULE_2__/* .createTheming */ .d5)(SurveyThemeContext);\n/** Expose the associated hooks with aliases */ var useSurveyTheme = theming.useTheme, SurveyThemeProvider = theming.ThemeProvider;\n/** Recreation of `react-jss`'s `CreateUseStylesOptions`, which is dynamic and does not get exported */ \n/**\n * For convenience, expose a custom hook which would carry the theming context wrapper along,\n * as well as injecting style sheet name-space / class name prefix as \"sm\" by default.\n *\n * Note: One may still utilize the stock `createUseStyles()` hook to construct styles regardless\n * relying on a survey theme or not; however if they do, please keep in mind that the recommended\n * way per JSS documentation is to pass in `theming` context wrapper every time.\n * ( https://cssinjs.org/react-jss/?v=v10.8.1#using-custom-theming-context )\n *\n */ var createSurveyStyles = function createSurveyStyles(styles) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return (0,react_jss__WEBPACK_IMPORTED_MODULE_3__/* .createUseStyles */ .QM)(styles, _objectSpread({\n theming: theming,\n name: \"sm\"\n }, opts));\n};\n/**\n * The context wrapper constructed by JSS `createTheming()` hook.\n * Note: `theming.context` points to the same SurveyThemeContext we just instantiated\n */ /* harmony default export */ __webpack_exports__[\"ZP\"] = (theming); //# sourceMappingURL=context.js.map\n\n\n/***/ }),\n\n/***/ 3918:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Q\": function() { return /* binding */ defaultFontWeightOptions; }\n/* harmony export */ });\nvar defaultFontWeightOptions = {\n ultralight: 200,\n light: 300,\n regular: 400,\n medium: 500,\n bold: 700\n};\n// Collection of themes with unique font weights.\nvar fontInfo = [\n {\n fontName: \"Montserrat\",\n fontWeightOptions: {\n ultralight: 400,\n light: 400,\n regular: 400,\n medium: 400,\n bold: 700\n }\n },\n {\n fontName: \"Open Sans Condensed\",\n fontWeightOptions: {\n ultralight: 300,\n light: 300,\n regular: 300,\n medium: 300,\n bold: 700\n }\n }\n];\nvar getFontWeights = function getFontWeights() {\n var fontFamily = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n var fontItem = fontInfo.find(function(t) {\n return t.fontName === fontFamily.split(\",\")[0];\n });\n return fontItem ? fontItem.fontWeightOptions : defaultFontWeightOptions;\n};\n/* harmony default export */ __webpack_exports__[\"Z\"] = (getFontWeights); //# sourceMappingURL=getFontWeights.js.map\n\n\n/***/ }),\n\n/***/ 993:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Qu\": function() { return /* binding */ formatTheme; }\n/* harmony export */ });\n/* unused harmony exports breakpoints, formatEntity, defaultNullToUndefined */\n/* harmony import */ var _swc_helpers_src_type_of_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2222);\n/* harmony import */ var _wds_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4779);\n/* harmony import */ var _isDark__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2561);\n/* harmony import */ var _getFontWeights__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3918);\n\nvar _excluded = [\n \"__typename\"\n], _excluded2 = [\n \"theme\"\n];\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _slicedToArray(arr, i) {\n return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();\n}\nfunction _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}\nfunction _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}\nfunction _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}\nfunction _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for(; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0){\n ;\n }\n } catch (err) {\n _d = !0, _e = err;\n } finally{\n try {\n if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;\n } finally{\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\nfunction _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}\nfunction _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}\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\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}\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return (typeof key === \"undefined\" ? \"undefined\" : (0,_swc_helpers_src_type_of_mjs__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .Z)(key)) === \"symbol\" ? key : String(key);\n}\nfunction _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\n\n\n\nvar fontStyleOption = {\n INHERIT: \"inherit\",\n INITIAL: \"initial\",\n ITALIC: \"italic\",\n NORMAL: \"normal\",\n OBLIQUE: \"oblique\"\n};\nvar textDecorationOption = {\n NONE: \"none\",\n UNDERLINE: \"underline\"\n};\nvar breakpoints = {\n \"xxs\": {\n \"max\": \"480px\"\n },\n \"xs\": {\n \"min\": \"481px\",\n \"max\": \"640px\"\n },\n \"sm\": {\n \"min\": \"641px\",\n \"max\": \"768px\"\n },\n \"md\": {\n \"min\": \"769px\",\n \"max\": \"1024px\"\n },\n \"lg\": {\n \"min\": \"1025px\",\n \"max\": \"1200px\"\n },\n \"xl\": {\n \"min\": \"1201px\"\n }\n};\n/** Possible Styles to format */ var formatStyle = function formatStyle(kvPair, styles) {\n switch(kvPair[0]){\n case \"fontWeight\":\n if (styles.fontFamily) {\n var fontWeights = (0,_getFontWeights__WEBPACK_IMPORTED_MODULE_2__/* [\"default\"] */ .Z)(styles.fontFamily);\n return _defineProperty({}, kvPair[0], fontWeights[kvPair[1].toLowerCase()]);\n }\n return _defineProperty({}, kvPair[0], _getFontWeights__WEBPACK_IMPORTED_MODULE_2__/* .defaultFontWeightOptions */ .Q[kvPair[1].toLowerCase()]);\n case \"fontStyle\":\n return _defineProperty({}, kvPair[0], fontStyleOption[kvPair[1]]);\n case \"fontFamily\":\n if (kvPair[1] === \"National2\") {\n // add fallback-fonts and also use Wrench spelling of font: `'National 2'` vs `National2`\n return _defineProperty({}, kvPair[0], _wds_styles__WEBPACK_IMPORTED_MODULE_1__/* .WrenchTheme.type.fontFamily.base */ .Qb.type.fontFamily.base);\n }\n return _defineProperty({}, kvPair[0], kvPair[1]);\n case \"textDecoration\":\n return _defineProperty({}, kvPair[0], textDecorationOption[kvPair[1]]);\n case \"backgroundImage\":\n return kvPair[1].url ? _defineProperty({}, kvPair[0], \"url(\".concat(kvPair[1].url, \")\")) : null;\n default:\n if (typeof kvPair[1] === \"object\") {\n // format nested data recursively\n return _defineProperty({}, kvPair[0], formatCommonStyle(kvPair[1]));\n }\n return _defineProperty({}, kvPair[0], kvPair[1]);\n }\n};\n/** Formats data recursively */ var formatCommonStyle = function formatCommonStyle(_ref10) {\n var __typename = _ref10.__typename, styles = _objectWithoutProperties(_ref10, _excluded);\n var entries = Object.entries(styles);\n return entries.reduce(function(acc, args) {\n var _ref11 = args, _ref12 = _slicedToArray(_ref11, 2), key = _ref12[0], val = _ref12[1];\n return val === null || val === undefined ? acc : _objectSpread(_objectSpread({}, acc), formatStyle([\n key,\n val\n ], styles));\n }, {});\n};\n/** Standardizes the formatting to be CSS/JSS compatible */ var formatEntity = function formatEntity(data) {\n return data && formatCommonStyle(data) || undefined;\n};\n/** Collapses `Maybe` (`T | null | undefined`) to `T | undefined` */ var defaultNullToUndefined = function defaultNullToUndefined(arg) {\n return arg === null ? undefined : arg;\n};\n/** Format GraphQL to Theme representation */ var formatTheme = function formatTheme() {\n var _response$survey, _artifacts$background;\n var response = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _ref13 = (response === null || response === void 0 ? void 0 : (_response$survey = response.survey) === null || _response$survey === void 0 ? void 0 : _response$survey.design) || {}, theme = _ref13.theme, settings = _objectWithoutProperties(_ref13, _excluded2);\n var _ref14 = theme || {}, _ref14$name = _ref14.name, name = _ref14$name === void 0 ? \"Default\" : _ref14$name, selectedColorPalette = _ref14.selectedColorPalette, layout = _ref14.layout, surveyPage = _ref14.surveyPage, surveyTitle = _ref14.surveyTitle, pageTitle = _ref14.pageTitle, questionTitle = _ref14.questionTitle, questionBody = _ref14.questionBody, button = _ref14.button, error = _ref14.error, exitLink = _ref14.exitLink, artifacts = _ref14.artifacts, isAccessible = _ref14.isAccessible, isCustomTheme = _ref14.isCustomTheme;\n var logo = settings.logo, progressBar = settings.progressBar;\n var surveyPageBackgroundImage = artifacts === null || artifacts === void 0 ? void 0 : (_artifacts$background = artifacts.background) === null || _artifacts$background === void 0 ? void 0 : _artifacts$background.url;\n var smFont = \"'National 2', 'Helvetica Neue', Helvetica, Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', '游ゴシック', '游ゴシック体', YuGothic, 'Yu Gothic', 'MS ゴシック', 'MS Gothic', sans-serif\";\n var surveyTheme = _objectSpread(_objectSpread(_objectSpread(_objectSpread({\n name: name,\n fontFamily: smFont,\n fontSize: {\n body: 16\n },\n fontWeight: _getFontWeights__WEBPACK_IMPORTED_MODULE_2__/* .defaultFontWeightOptions */ .Q,\n layout: defaultNullToUndefined(layout),\n isAccessible: isAccessible && !isCustomTheme,\n isCustomTheme: isCustomTheme,\n isDark: (0,_isDark__WEBPACK_IMPORTED_MODULE_3__/* [\"default\"] */ .Z)((selectedColorPalette === null || selectedColorPalette === void 0 ? void 0 : selectedColorPalette.primaryBackgroundColor) || \"#fff\"),\n surveyPage: _objectSpread(_objectSpread({}, formatEntity(surveyPage)), surveyPageBackgroundImage && {\n backgroundImage: \"url(\".concat(surveyPageBackgroundImage, \")\")\n }),\n surveyTitle: formatEntity(surveyTitle),\n pageTitle: formatEntity(pageTitle),\n questionTitle: formatEntity(questionTitle),\n questionBody: _objectSpread({\n color: selectedColorPalette === null || selectedColorPalette === void 0 ? void 0 : selectedColorPalette.answerColor\n }, formatEntity(questionBody)),\n button: formatEntity(button),\n error: formatEntity(error),\n exitLink: formatEntity(exitLink)\n }, logo && {\n logo: formatEntity(logo)\n }), progressBar && {\n progressBar: formatEntity(progressBar)\n }), formatEntity(selectedColorPalette)), {}, {\n breakpoints: breakpoints\n });\n return surveyTheme;\n}; //# sourceMappingURL=helpers.js.map\n\n\n/***/ }),\n\n/***/ 4693:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"hX\": function() { return /* reexport */ SurveyTheme_SurveyTheme; },\n \"u7\": function() { return /* reexport */ context/* useSurveyTheme */.u7; }\n});\n\n// UNUSED EXPORTS: SurveyThemeProvider, createSurveyStyles, getFontWeights, isDark, relativeLuminance, theming\n\n// EXTERNAL MODULE: ./node_modules/@swc/helpers/src/_type_of.mjs\nvar _type_of = __webpack_require__(2222);\n// EXTERNAL MODULE: ./node_modules/react/index.js\nvar react = __webpack_require__(7294);\n// EXTERNAL MODULE: ./node_modules/@apollo/react-hooks/lib/react-hooks.esm.js\nvar react_hooks_esm = __webpack_require__(8499);\n// EXTERNAL MODULE: ./node_modules/@sm/webassets/dist/components/SurveyTheme/context.js\nvar context = __webpack_require__(6322);\n// EXTERNAL MODULE: ./node_modules/@sm/webassets/dist/components/SurveyTheme/helpers.js\nvar helpers = __webpack_require__(993);\n// EXTERNAL MODULE: ./node_modules/@sm/webassets/dist/components/SurveyTheme/SurveyTheme.graphql\nvar SurveyTheme_graphql = __webpack_require__(9177);\nvar SurveyTheme_graphql_default = /*#__PURE__*/__webpack_require__.n(SurveyTheme_graphql);\n;// CONCATENATED MODULE: ./node_modules/@sm/webassets/dist/components/SurveyTheme/SurveyTheme.js\n\nvar _jsxFileName = \"/repo/packages/webassets/src/components/SurveyTheme/SurveyTheme.tsx\", _this = undefined;\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n enumerableOnly && (symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n })), keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _objectSpread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = null != arguments[i] ? arguments[i] : {};\n i % 2 ? ownKeys(Object(source), !0).forEach(function(key) {\n _defineProperty(target, key, source[key]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _defineProperty(obj, key, value) {\n key = _toPropertyKey(key);\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}\nfunction _toPropertyKey(arg) {\n var key = _toPrimitive(arg, \"string\");\n return (typeof key === \"undefined\" ? \"undefined\" : (0,_type_of/* default */.Z)(key)) === \"symbol\" ? key : String(key);\n}\nfunction _toPrimitive(input, hint) {\n if (typeof input !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (typeof res !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}\n\n\n\n\n\n/** A simple wrapper composes inner children with the fetched theming info. */ var SurveyTheme = function SurveyTheme(_ref) {\n var children = _ref.children, surveyId = _ref.surveyId, targetEndPoint = _ref.targetEndPoint, headers = _ref.headers;\n var queryOptions = {\n variables: {\n id: surveyId\n },\n // acquire data even when an error occurs\n errorPolicy: \"all\",\n partialRefetch: true\n };\n // enable query context if tgtEndPoint provided\n if (targetEndPoint) {\n queryOptions.context = {};\n queryOptions.context.targetPath = \"/lo-graphql/\".concat(targetEndPoint);\n // include headers if provided\n if (headers) {\n queryOptions.context.headers = headers;\n }\n }\n var _useQuery = (0,react_hooks_esm/* useQuery */.aM)((SurveyTheme_graphql_default()), queryOptions), data = _useQuery.data, loading = _useQuery.loading, fetchError = _useQuery.error, refetch = _useQuery.refetch;\n /* No-op on the loading state.\n * The wrapping component should know better how to compose with a representable skeleton.\n */ if (loading) {\n return null;\n }\n var surveyTheme = (0,helpers/* formatTheme */.Qu)(data);\n return /*#__PURE__*/ react.createElement(context/* SurveyThemeProvider */.Uu, {\n theme: _objectSpread(_objectSpread({}, surveyTheme), fetchError && {\n refetch: refetch,\n fetchError: fetchError\n }),\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 62,\n columnNumber: 5\n }\n }, children);\n};\n/* harmony default export */ var SurveyTheme_SurveyTheme = (SurveyTheme); //# sourceMappingURL=SurveyTheme.js.map\n\n// EXTERNAL MODULE: ./node_modules/@sm/webassets/dist/components/SurveyTheme/getFontWeights.js\nvar getFontWeights = __webpack_require__(3918);\n;// CONCATENATED MODULE: ./node_modules/@sm/webassets/dist/components/SurveyTheme/index.js\n\n\n\n\n //# sourceMappingURL=index.js.map\n\n\n/***/ }),\n\n/***/ 2561:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* unused harmony export relativeLuminance */\n/**\n * Relative luminance of a color\n * from http://www.w3.org/TR/WCAG20/#relativeluminancedef\n */ var relativeLuminanceInner = function relativeLuminanceInner(R8bit, G8bit, B8bit) {\n var RsRGB = R8bit / 255;\n var GsRGB = G8bit / 255;\n var BsRGB = B8bit / 255;\n var R = RsRGB <= 0.03928 ? RsRGB / 12.92 : Math.pow((RsRGB + 0.055) / 1.055, 2.4);\n var G = GsRGB <= 0.03928 ? GsRGB / 12.92 : Math.pow((GsRGB + 0.055) / 1.055, 2.4);\n var B = BsRGB <= 0.03928 ? BsRGB / 12.92 : Math.pow((BsRGB + 0.055) / 1.055, 2.4);\n // For the sRGB colorspace, the relative luminance of a color is defined as:\n return 0.2126 * R + 0.7152 * G + 0.0722 * B;\n};\nvar hexRegex = /^#[a-fA-F0-9]{6}$/;\nvar reducedHexRegex = /^#[a-fA-F0-9]{3}$/;\nvar rgbOrRgbaRegex = /^rgba?\\(\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3})\\s*,\\s*(\\d{1,3}).*\\)$/i;\n/**\n * Convert RGB, RGBA or Hex into relative luminance\n *\n * Based on http://www.w3.org/TR/WCAG20/#relativeluminancedef\n *\n * @param rgbaOrHex RGB, RGBA or Hex color (`rgb(255,255,255)`, `rgba(255,255,255,1)`, `#FFF`, `#FFFFFF`)\n * @returns {number} number between `0` and `1`;\n */ var relativeLuminance = function relativeLuminance(rgbaOrHex) {\n var color = rgbaOrHex !== null && rgbaOrHex !== void 0 ? rgbaOrHex : \"\";\n var rgbMatched = (color !== null && color !== void 0 ? color : \"\").match(rgbOrRgbaRegex);\n if (rgbMatched) {\n return relativeLuminanceInner(parseInt(\"\".concat(rgbMatched[1]), 10), parseInt(\"\".concat(rgbMatched[2]), 10), parseInt(\"\".concat(rgbMatched[3]), 10));\n }\n if (color.match(hexRegex)) {\n return relativeLuminanceInner(parseInt(\"\".concat(color[1]).concat(color[2]), 16), parseInt(\"\".concat(color[3]).concat(color[4]), 16), parseInt(\"\".concat(color[5]).concat(color[6]), 16));\n }\n if (color.match(reducedHexRegex)) {\n return relativeLuminanceInner(parseInt(\"\".concat(color[1]).concat(color[1]), 16), parseInt(\"\".concat(color[2]).concat(color[2]), 16), parseInt(\"\".concat(color[3]).concat(color[3]), 16));\n }\n throw Error(\"relativeLuminance: Invalid color format\");\n};\n/**\n * Determines if a color is considered \"dark\" - as in dark theme\n *\n * @param color RGB, RGBA or Hex color (`rgb(255,255,255)`, `rgba(255,255,255,1)`, `#FFF`, `#FFFFFF`)\n * @returns {boolean} `true` if the color is considered \"dark\"\n */ var isDark = function isDark(color) {\n return relativeLuminance(color) < 0.5;\n};\n/* harmony default export */ __webpack_exports__[\"Z\"] = (isDark); //# sourceMappingURL=isDark.js.map\n\n\n/***/ }),\n\n/***/ 9177:\n/***/ (function(module) {\n\n\nvar doc = {\n \"kind\": \"Document\",\n \"definitions\": [\n {\n \"kind\": \"OperationDefinition\",\n \"operation\": \"query\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"getSurveyDesign\"\n },\n \"variableDefinitions\": [\n {\n \"kind\": \"VariableDefinition\",\n \"variable\": {\n \"kind\": \"Variable\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"id\"\n }\n },\n \"type\": {\n \"kind\": \"NonNullType\",\n \"type\": {\n \"kind\": \"NamedType\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"ID\"\n }\n }\n },\n \"directives\": []\n }\n ],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"survey\"\n },\n \"arguments\": [\n {\n \"kind\": \"Argument\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"id\"\n },\n \"value\": {\n \"kind\": \"Variable\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"id\"\n }\n }\n }\n ],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"id\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"design\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"theme\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"id\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"name\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"isAccessible\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"isCustomTheme\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"layout\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"surveyPage\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"overlayColor\"\n },\n \"arguments\": [],\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"surveyTitle\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"FragmentSpread\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"commonStyles\"\n },\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"pageTitle\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"FragmentSpread\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"commonStyles\"\n },\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"questionTitle\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"FragmentSpread\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"commonStyles\"\n },\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"questionBody\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"highlightColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontSize\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontFamily\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontWeight\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontStyle\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"textDecoration\"\n },\n \"arguments\": [],\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"error\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"FragmentSpread\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"commonStyles\"\n },\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"button\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"FragmentSpread\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"commonStyles\"\n },\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"exitLink\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"FragmentSpread\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"commonStyles\"\n },\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"artifacts\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"background\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"url\"\n },\n \"arguments\": [],\n \"directives\": []\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"selectedColorPalette\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"FragmentSpread\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"paletteColors\"\n },\n \"directives\": []\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"logo\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"enabled\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"image\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"url\"\n },\n \"arguments\": [],\n \"directives\": []\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"progressBar\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"enabled\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"position\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"showPercent\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"showPageNumber\"\n },\n \"arguments\": [],\n \"directives\": []\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n }\n ]\n }\n },\n {\n \"kind\": \"FragmentDefinition\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"paletteColors\"\n },\n \"typeCondition\": {\n \"kind\": \"NamedType\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"ColorPalette\"\n }\n },\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"titleColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"questionColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"answerColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"primaryAccentColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"secondaryAccentColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"primaryBackgroundColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"secondaryBackgroundColor\"\n },\n \"arguments\": [],\n \"directives\": []\n }\n ]\n }\n },\n {\n \"kind\": \"FragmentDefinition\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"commonStyles\"\n },\n \"typeCondition\": {\n \"kind\": \"NamedType\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"CommonStyle\"\n }\n },\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"color\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontSize\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontFamily\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontWeight\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"fontStyle\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"textDecoration\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"backgroundColor\"\n },\n \"arguments\": [],\n \"directives\": []\n },\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"backgroundImage\"\n },\n \"arguments\": [],\n \"directives\": [],\n \"selectionSet\": {\n \"kind\": \"SelectionSet\",\n \"selections\": [\n {\n \"kind\": \"Field\",\n \"name\": {\n \"kind\": \"Name\",\n \"value\": \"url\"\n },\n \"arguments\": [],\n \"directives\": []\n }\n ]\n }\n }\n ]\n }\n }\n ],\n \"loc\": {\n \"start\": 0,\n \"end\": 1421\n }\n};\ndoc.loc.source = {\n \"body\": \"query getSurveyDesign($id: ID!) {\\n survey(id: $id) {\\n id\\n design {\\n theme {\\n id\\n name\\n isAccessible\\n isCustomTheme\\n layout\\n surveyPage {\\n overlayColor\\n }\\n surveyTitle {\\n ...commonStyles\\n }\\n pageTitle {\\n ...commonStyles\\n }\\n questionTitle {\\n ...commonStyles\\n }\\n questionBody {\\n highlightColor\\n fontSize\\n fontFamily\\n fontWeight\\n fontStyle\\n textDecoration\\n }\\n error {\\n ...commonStyles\\n }\\n button {\\n ...commonStyles\\n }\\n exitLink {\\n ...commonStyles\\n }\\n artifacts {\\n background {\\n url\\n }\\n }\\n selectedColorPalette {\\n ...paletteColors\\n }\\n }\\n logo {\\n enabled\\n image {\\n url\\n }\\n }\\n progressBar {\\n enabled\\n position\\n showPercent\\n showPageNumber\\n }\\n }\\n }\\n}\\n\\nfragment paletteColors on ColorPalette {\\n titleColor\\n questionColor\\n answerColor\\n primaryAccentColor\\n secondaryAccentColor\\n primaryBackgroundColor\\n secondaryBackgroundColor\\n}\\n\\nfragment commonStyles on CommonStyle {\\n color\\n fontSize\\n fontFamily\\n fontWeight\\n fontStyle\\n textDecoration\\n backgroundColor\\n backgroundImage {\\n url\\n }\\n}\\n\",\n \"name\": \"GraphQL request\",\n \"locationOffset\": {\n \"line\": 1,\n \"column\": 1\n }\n};\nvar names = {};\nfunction unique(defs) {\n return defs.filter(function(def) {\n if (def.kind !== \"FragmentDefinition\") return true;\n var name = def.name.value;\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n });\n}\n// Collect any fragment/type references from a node, adding them to the refs Set\nfunction collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n}\nvar definitionRefs = {};\n(function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n})();\nfunction findOperation(doc, name) {\n for(var i = 0; i < doc.definitions.length; i++){\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n}\nfunction oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [\n findOperation(doc, operationName)\n ]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n while(newRefs.size > 0){\n var prevRefs = newRefs;\n newRefs = new Set();\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n return newDoc;\n}\nmodule.exports = doc;\nmodule.exports.getSurveyDesign = oneQuery(doc, \"getSurveyDesign\");\nmodule.exports.paletteColors = oneQuery(doc, \"paletteColors\");\nmodule.exports.commonStyles = oneQuery(doc, \"commonStyles\");\n\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","d","SurveyThemeProvider","createSurveyStyles","useSurveyTheme","_swc_helpers_src_type_of_mjs__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_1__","react_jss__WEBPACK_IMPORTED_MODULE_2__","react_jss__WEBPACK_IMPORTED_MODULE_3__","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","apply","_defineProperty","obj","key","value","_toPropertyKey","defineProperty","configurable","writable","arg","_toPrimitive","Z","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","Number","SurveyThemeContext","createContext","displayName","theming","d5","useTheme","ThemeProvider","styles","opts","arguments","length","QM","_objectSpread","target","i","source","forEach","getOwnPropertyDescriptors","defineProperties","name","defaultFontWeightOptions","ultralight","light","regular","medium","bold","fontInfo","fontName","fontWeightOptions","getFontWeights","fontFamily","fontItem","find","t","split","formatTheme","_wds_styles__WEBPACK_IMPORTED_MODULE_1__","_isDark__WEBPACK_IMPORTED_MODULE_3__","_getFontWeights__WEBPACK_IMPORTED_MODULE_2__","_excluded","_excluded2","_arrayLikeToArray","arr","len","arr2","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceSymbolKeys","indexOf","prototype","propertyIsEnumerable","sourceKeys","fontStyleOption","INHERIT","INITIAL","ITALIC","NORMAL","OBLIQUE","textDecorationOption","NONE","UNDERLINE","breakpoints","formatStyle","kvPair","fontWeights","toLowerCase","Q","Qb","type","base","url","concat","formatCommonStyle","_ref10","__typename","entries","reduce","acc","args","_ref12","_arrayWithHoles","Array","isArray","_iterableToArrayLimit","_i","iterator","_s","_e","_x","_r","_arr","_n","_d","next","done","err","return","_unsupportedIterableToArray","o","minLen","n","toString","slice","constructor","from","test","_nonIterableRest","val","formatEntity","data","_response$survey","_artifacts$background","response","_ref13","survey","design","theme","settings","_ref14","_ref14$name","selectedColorPalette","layout","surveyPage","surveyTitle","pageTitle","questionTitle","questionBody","button","error","exitLink","artifacts","isAccessible","isCustomTheme","logo","progressBar","surveyPageBackgroundImage","background","fontSize","body","fontWeight","isDark","primaryBackgroundColor","backgroundImage","color","answerColor","SurveyTheme_SurveyTheme","context","u7","_type_of","react","react_hooks_esm","helpers","SurveyTheme_graphql","SurveyTheme_graphql_default","_this","_ref","children","surveyId","targetEndPoint","headers","queryOptions","variables","id","errorPolicy","partialRefetch","targetPath","_useQuery","aM","loading","fetchError","refetch","surveyTheme","Qu","createElement","Uu","__self","__source","fileName","lineNumber","columnNumber","relativeLuminanceInner","R8bit","G8bit","B8bit","RsRGB","GsRGB","BsRGB","Math","pow","hexRegex","reducedHexRegex","rgbOrRgbaRegex","relativeLuminance","rgbaOrHex","rgbMatched","match","parseInt","Error","module","doc","loc","collectFragmentReferences","node","refs","kind","add","selectionSet","selections","selection","variableDefinitions","def","definitions","definitionRefs","findOperation","element","oneQuery","operationName","newDoc","hasOwnProperty","opRefs","Set","allRefs","newRefs","refName","size","prevRefs","has","childRefs","childRef","op","exports","getSurveyDesign","paletteColors","commonStyles"],"sourceRoot":""}