{"version":3,"sources":["webpack:///../node_modules/redux-form/es/createFieldProps.js","webpack:///../node_modules/redux-form/es/events/getValue.js","webpack:///../node_modules/redux-form/es/isReactNative.js","webpack:///../node_modules/redux-form/es/events/onChangeValue.js","webpack:///../node_modules/redux-form/es/util/eventConsts.js","webpack:///../node_modules/redux-form/es/util/validateComponentProp.js","webpack:///../node_modules/redux-form/es/ConnectedField.js","webpack:///../node_modules/redux-form/es/util/shallowCompare.js","webpack:///../node_modules/redux-form/es/util/prefixName.js","webpack:///../node_modules/redux-form/es/createField.js","webpack:///../node_modules/redux-form/es/Field.js","webpack:///./Scripts/Actions/LocalizationCookie.action.js","webpack:///./Scripts/Components/LocalizationCookieComponent.js","webpack:///./Scripts/Containers/LocalizationCookie.Container.js"],"names":["es_createFieldProps","_ref","name","_ref2","getIn","toJS","deepEqual","asyncError","asyncValidating","onBlur","onChange","onDrop","onDragStart","dirty","dispatch","onFocus","form","format","initial","pristine","parse","props","state","submitError","submitFailed","submitting","syncError","syncWarning","value","validate","_value","custom","warn","objectWithoutPropertiesLoose_default","error","warning","formattedFieldValue","defaultFormattedValue","formatFieldValue","input","type","extends_default","checked","undefined","createFieldProps_processProps","meta","active","autofilled","invalid","touched","valid","visited","events_getValue","event","isReactNative","Object","isEvent","nativeEvent","text","detypedEvent","_detypedEvent$target","target","files","dataTransfer","options","result","index","length","option","selected","push","getSelectedValues","es_isReactNative","window","navigator","product","events_onChangeValue","normalize","dataKey","util_validateComponentProp","propName","componentName","react_is","Error","propsToNotUpdateFor","isObject","entity","isFunction","eventPreventDefault","preventDefault","eventDataTransferGetData","key","getData","eventDataTransferSetData","setData","es_ConnectedField","structure","ConnectedField","_Component","_this","_len","arguments","args","Array","_key","call","apply","this","concat","ref","react_default","a","createRef","isPristine","getValue","handleChange","_this$props","_reduxForm","previousValue","newValue","defaultPrevented","change","asyncValidate","handleFocus","_this$props2","focus","handleBlur","_this$props3","blur","handleDragStart","_this$props4","handleDrop","_this$props5","inheritsLoose_default","_proto","prototype","shouldComponentUpdate","nextProps","_this2","nextPropsKeys","keys","thisPropsKeys","children","some","prop","immutableProps","indexOf","getRenderedComponent","current","render","_this$props6","component","forwardRef","rest","_createFieldProps","react","propTypes","prop_types_default","object","es","ownProps","_ownProps$_reduxForm","initialValues","formState","getFormState","initialState","syncErrors","plain","_error","getSyncError","syncWarnings","_warning","getSyncWarning","connector","customizer","objectValue","otherValue","indexOrkey","other","stack","util_shallowCompare","instance","nextState","propsEqual","isEqualWith_default","stateEqual","prefixName","sectionPrefix","es_createField","setIn","Field","previousValues","getValues","componentDidMount","register","UNSAFE_componentWillReceiveProps","oldName","newName","unregister","componentWillUnmount","browser_default","createClass_default","get","string","isRequired","func","oneOfType","arrayOf","bool","react_lifecycles_compat_es","ReduxFormContext","__webpack_exports__","loadError","payload","setLocalizationCookie","values","buyButton","_asyncToGenerator","regeneratorRuntime","mark","_callee","response","returnData","wrap","_context","prev","next","post","sent","json","ok","abrupt","status","location","reload","stop","_x","renderField","className","label","_ref$meta","createElement","_extends","placeholder","LocalizationCookieComponent","handleSubmit","isDataError","anyTouched","onSubmit","translate","showEmailForm","onClick","reduxForm","errors","postalCode","connect","localized","setCookie","reset","Components_LocalizationCookieComponent"],"mappings":"qOA+GeA,EA7EK,SAAAC,EAAAC,EAAAC,GACpB,IAAAC,EAAAH,EAAAG,MACAC,EAAAJ,EAAAI,KACAC,EAAAL,EAAAK,UAEAC,EAAAJ,EAAAI,WACAC,EAAAL,EAAAK,gBACAC,EAAAN,EAAAM,OACAC,EAAAP,EAAAO,SACAC,EAAAR,EAAAQ,OACAC,EAAAT,EAAAS,YACAC,EAAAV,EAAAU,MACAC,EAAAX,EAAAW,SACAC,EAAAZ,EAAAY,QACAC,EAAAb,EAAAa,KACAC,EAAAd,EAAAc,OACAC,EAAAf,EAAAe,QAEAC,GADAhB,EAAAiB,MACAjB,EAAAgB,UACAE,EAAAlB,EAAAkB,MACAC,EAAAnB,EAAAmB,MACAC,EAAApB,EAAAoB,YACAC,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AAK,aAAaqJ,UAAWsF,EAAarM,KAAK,OAAOuM,MAAOU,YAAU,6BACrGpO,EAAMqO,eAAiB5I,EAAAC,EAAAkI,cAACnD,EAAA,GAAMgD,UAAU,cAAc5O,KAAK,QAAQqJ,UAAWsF,EAAarM,KAAK,OAAOuM,MAAOU,YAAU,uBACzH3I,EAAAC,EAAAkI,cAAA,KAAGH,UAAU,6BAA6Ba,QAASN,GAAgBI,YAAU,6BAEhFH,IAAgBC,GAAczI,EAAAC,EAAAkI,cAAA,OAAKH,UAAU,0CAA0CW,YAAU,yBAiB/FL,EAZfA,EAA8BQ,aAC1B5O,KAAM,yBACNa,SAAU,SAAC0L,GACP,IAAMsC,KAKN,OAJKtC,EAAOuC,aACRD,EAAOC,WAAaL,YAAU,+BAG3BI,IAReD,CAU3BR,GCLYW,sBA1BS,SAACzO,GACrB,OACIgO,YAAahO,EAAM0O,UAAUV,cAIV,SAACxO,EAAUkJ,GAClC,OAAGA,EAASwD,WAEJyC,UAAW,SAAC1C,GACRzM,EAASwM,EAAsBC,EAAQvD,EAASwD,YAChD1M,EAASoP,YAAM,8BAMnBD,UAAW,SAAC1C,GACRzM,EAASwM,EAAsBC,IAC/BzM,EAASoP,YAAM,8BAOhBH,CA9BqB,SAAC1O,GACjC,OAAQyF,EAAAC,EAAAkI,cAACkB,GAA4BX,SAAUnO,EAAM4O,UAAWP,cAAerO,EAAMqO,cAAeJ,YAAcjO,EAAMiO,YAAa9B,UAAWnM,EAAMmM","file":"0.6600eff27ca175ddcfed.js","sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\n\nvar processProps = function processProps(type, props, _value, deepEqual) {\n var value = props.value;\n\n if (type === 'checkbox') {\n return _extends({}, props, {\n checked: !!value\n });\n }\n\n if (type === 'radio') {\n return _extends({}, props, {\n checked: deepEqual(value, _value),\n value: _value\n });\n }\n\n if (type === 'select-multiple') {\n return _extends({}, props, {\n value: value || []\n });\n }\n\n if (type === 'file') {\n return _extends({}, props, {\n value: value || undefined\n });\n }\n\n return props;\n};\n\nvar createFieldProps = function createFieldProps(_ref, name, _ref2) {\n var getIn = _ref.getIn,\n toJS = _ref.toJS,\n deepEqual = _ref.deepEqual;\n\n var asyncError = _ref2.asyncError,\n asyncValidating = _ref2.asyncValidating,\n onBlur = _ref2.onBlur,\n onChange = _ref2.onChange,\n onDrop = _ref2.onDrop,\n onDragStart = _ref2.onDragStart,\n dirty = _ref2.dirty,\n dispatch = _ref2.dispatch,\n onFocus = _ref2.onFocus,\n form = _ref2.form,\n format = _ref2.format,\n initial = _ref2.initial,\n parse = _ref2.parse,\n pristine = _ref2.pristine,\n props = _ref2.props,\n state = _ref2.state,\n submitError = _ref2.submitError,\n submitFailed = _ref2.submitFailed,\n submitting = _ref2.submitting,\n syncError = _ref2.syncError,\n syncWarning = _ref2.syncWarning,\n validate = _ref2.validate,\n value = _ref2.value,\n _value = _ref2._value,\n warn = _ref2.warn,\n custom = _objectWithoutPropertiesLoose(_ref2, [\"asyncError\", \"asyncValidating\", \"onBlur\", \"onChange\", \"onDrop\", \"onDragStart\", \"dirty\", \"dispatch\", \"onFocus\", \"form\", \"format\", \"initial\", \"parse\", \"pristine\", \"props\", \"state\", \"submitError\", \"submitFailed\", \"submitting\", \"syncError\", \"syncWarning\", \"validate\", \"value\", \"_value\", \"warn\"]);\n\n var error = syncError || asyncError || submitError;\n var warning = syncWarning;\n\n var formatFieldValue = function formatFieldValue(value, format) {\n if (format === null) {\n return value;\n }\n\n var defaultFormattedValue = value == null ? '' : value;\n return format ? format(value, name) : defaultFormattedValue;\n };\n\n var formattedFieldValue = formatFieldValue(value, format);\n return {\n input: processProps(custom.type, {\n name: name,\n onBlur: onBlur,\n onChange: onChange,\n onDragStart: onDragStart,\n onDrop: onDrop,\n onFocus: onFocus,\n value: formattedFieldValue\n }, _value, deepEqual),\n meta: _extends({}, toJS(state), {\n active: !!(state && getIn(state, 'active')),\n asyncValidating: asyncValidating,\n autofilled: !!(state && getIn(state, 'autofilled')),\n dirty: dirty,\n dispatch: dispatch,\n error: error,\n form: form,\n initial: initial,\n warning: warning,\n invalid: !!error,\n pristine: pristine,\n submitting: !!submitting,\n submitFailed: !!submitFailed,\n touched: !!(state && getIn(state, 'touched')),\n valid: !error,\n visited: !!(state && getIn(state, 'visited'))\n }),\n custom: _extends({}, custom, props)\n };\n};\n\nexport default createFieldProps;","import isEvent from './isEvent';\n\nvar getSelectedValues = function getSelectedValues(options) {\n var result = [];\n\n if (options) {\n for (var index = 0; index < options.length; index++) {\n var option = options[index];\n\n if (option.selected) {\n result.push(option.value);\n }\n }\n }\n\n return result;\n};\n\nvar getValue = function getValue(event, isReactNative) {\n if (isEvent(event)) {\n if (!isReactNative && event.nativeEvent && event.nativeEvent.text !== undefined) {\n return event.nativeEvent.text;\n }\n\n if (isReactNative && event.nativeEvent !== undefined) {\n return event.nativeEvent.text;\n }\n\n var detypedEvent = event;\n var _detypedEvent$target = detypedEvent.target,\n type = _detypedEvent$target.type,\n value = _detypedEvent$target.value,\n checked = _detypedEvent$target.checked,\n files = _detypedEvent$target.files,\n dataTransfer = detypedEvent.dataTransfer;\n\n if (type === 'checkbox') {\n return !!checked;\n }\n\n if (type === 'file') {\n return files || dataTransfer && dataTransfer.files;\n }\n\n if (type === 'select-multiple') {\n return getSelectedValues(event.target.options);\n }\n\n return value;\n }\n\n return event;\n};\n\nexport default getValue;","var isReactNative = typeof window !== 'undefined' && window.navigator && window.navigator.product && window.navigator.product === 'ReactNative';\nexport default isReactNative;","import getValue from './getValue';\nimport isReactNative from '../isReactNative';\n\nvar onChangeValue = function onChangeValue(event, _ref) {\n var name = _ref.name,\n parse = _ref.parse,\n normalize = _ref.normalize;\n // read value from input\n var value = getValue(event, isReactNative); // parse value if we have a parser\n\n if (parse) {\n value = parse(value, name);\n } // normalize value\n\n\n if (normalize) {\n value = normalize(name, value);\n }\n\n return value;\n};\n\nexport default onChangeValue;","export var dataKey = 'text';","import { isValidElementType } from 'react-is';\n\nvar validateComponentProp = function validateComponentProp(props, propName, componentName) {\n if (!isValidElementType(props[propName])) {\n return new Error('Invalid prop `' + propName + '` supplied to' + ' `' + componentName + '`.');\n }\n\n return null;\n};\n\nexport default validateComponentProp;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport React, { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport createFieldProps from './createFieldProps';\nimport onChangeValue from './events/onChangeValue';\nimport { dataKey } from './util/eventConsts';\nimport plain from './structure/plain';\nimport isReactNative from './isReactNative';\nimport validateComponentProp from './util/validateComponentProp';\nimport isEvent from './events/isEvent';\nvar propsToNotUpdateFor = ['_reduxForm'];\n\nvar isObject = function isObject(entity) {\n return entity && typeof entity === 'object';\n};\n\nvar isFunction = function isFunction(entity) {\n return entity && typeof entity === 'function';\n};\n\nvar eventPreventDefault = function eventPreventDefault(event) {\n if (isObject(event) && isFunction(event.preventDefault)) {\n event.preventDefault();\n }\n};\n\nvar eventDataTransferGetData = function eventDataTransferGetData(event, key) {\n if (isObject(event) && isObject(event.dataTransfer) && isFunction(event.dataTransfer.getData)) {\n return event.dataTransfer.getData(key);\n }\n};\n\nvar eventDataTransferSetData = function eventDataTransferSetData(event, key, value) {\n if (isObject(event) && isObject(event.dataTransfer) && isFunction(event.dataTransfer.setData)) {\n event.dataTransfer.setData(key, value);\n }\n};\n\nvar createConnectedField = function createConnectedField(structure) {\n var deepEqual = structure.deepEqual,\n getIn = structure.getIn;\n\n var getSyncError = function getSyncError(syncErrors, name) {\n var error = plain.getIn(syncErrors, name); // Because the error for this field might not be at a level in the error structure where\n // it can be set directly, it might need to be unwrapped from the _error property\n\n return error && error._error ? error._error : error;\n };\n\n var getSyncWarning = function getSyncWarning(syncWarnings, name) {\n var warning = getIn(syncWarnings, name); // Because the warning for this field might not be at a level in the warning structure where\n // it can be set directly, it might need to be unwrapped from the _warning property\n\n return warning && warning._warning ? warning._warning : warning;\n };\n\n var ConnectedField =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(ConnectedField, _Component);\n\n function ConnectedField() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _Component.call.apply(_Component, [this].concat(args)) || this;\n _this.ref = React.createRef();\n\n _this.isPristine = function () {\n return _this.props.pristine;\n };\n\n _this.getValue = function () {\n return _this.props.value;\n };\n\n _this.handleChange = function (event) {\n var _this$props = _this.props,\n name = _this$props.name,\n dispatch = _this$props.dispatch,\n parse = _this$props.parse,\n normalize = _this$props.normalize,\n onChange = _this$props.onChange,\n _reduxForm = _this$props._reduxForm,\n previousValue = _this$props.value;\n var newValue = onChangeValue(event, {\n name: name,\n parse: parse,\n normalize: normalize\n });\n var defaultPrevented = false;\n\n if (onChange) {\n // Can't seem to find a way to extend Event in React Native,\n // thus I simply avoid adding preventDefault() in a RN environment\n // to prevent the following error:\n // `One of the sources for assign has an enumerable key on the prototype chain`\n // Reference: https://github.com/facebook/react-native/issues/5507\n if (!isReactNative && isEvent(event)) {\n onChange(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n } else {\n defaultPrevented = onChange(event, newValue, previousValue, name);\n }\n }\n\n if (!defaultPrevented) {\n // dispatch change action\n dispatch(_reduxForm.change(name, newValue)); // call post-change callback\n\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, newValue, 'change');\n }\n }\n };\n\n _this.handleFocus = function (event) {\n var _this$props2 = _this.props,\n name = _this$props2.name,\n dispatch = _this$props2.dispatch,\n onFocus = _this$props2.onFocus,\n _reduxForm = _this$props2._reduxForm;\n var defaultPrevented = false;\n\n if (onFocus) {\n if (!isReactNative) {\n onFocus(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), name);\n } else {\n defaultPrevented = onFocus(event, name);\n }\n }\n\n if (!defaultPrevented) {\n dispatch(_reduxForm.focus(name));\n }\n };\n\n _this.handleBlur = function (event) {\n var _this$props3 = _this.props,\n name = _this$props3.name,\n dispatch = _this$props3.dispatch,\n parse = _this$props3.parse,\n normalize = _this$props3.normalize,\n onBlur = _this$props3.onBlur,\n _reduxForm = _this$props3._reduxForm,\n _value = _this$props3._value,\n previousValue = _this$props3.value;\n var newValue = onChangeValue(event, {\n name: name,\n parse: parse,\n normalize: normalize\n }); // for checkbox and radio, if the value property of checkbox or radio equals\n // the value passed by blur event, then fire blur action with previousValue.\n\n if (newValue === _value && _value !== undefined) {\n newValue = previousValue;\n }\n\n var defaultPrevented = false;\n\n if (onBlur) {\n if (!isReactNative) {\n onBlur(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n } else {\n defaultPrevented = onBlur(event, newValue, previousValue, name);\n }\n }\n\n if (!defaultPrevented) {\n // dispatch blur action\n dispatch(_reduxForm.blur(name, newValue)); // call post-blur callback\n\n if (_reduxForm.asyncValidate) {\n _reduxForm.asyncValidate(name, newValue, 'blur');\n }\n }\n };\n\n _this.handleDragStart = function (event) {\n var _this$props4 = _this.props,\n name = _this$props4.name,\n onDragStart = _this$props4.onDragStart,\n value = _this$props4.value;\n eventDataTransferSetData(event, dataKey, value == null ? '' : value);\n\n if (onDragStart) {\n onDragStart(event, name);\n }\n };\n\n _this.handleDrop = function (event) {\n var _this$props5 = _this.props,\n name = _this$props5.name,\n dispatch = _this$props5.dispatch,\n onDrop = _this$props5.onDrop,\n _reduxForm = _this$props5._reduxForm,\n previousValue = _this$props5.value;\n var newValue = eventDataTransferGetData(event, dataKey);\n var defaultPrevented = false;\n\n if (onDrop) {\n onDrop(_extends({}, event, {\n preventDefault: function preventDefault() {\n defaultPrevented = true;\n return eventPreventDefault(event);\n }\n }), newValue, previousValue, name);\n }\n\n if (!defaultPrevented) {\n // dispatch change action\n dispatch(_reduxForm.change(name, newValue));\n eventPreventDefault(event);\n }\n };\n\n return _this;\n }\n\n var _proto = ConnectedField.prototype;\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps) {\n var _this2 = this;\n\n var nextPropsKeys = Object.keys(nextProps);\n var thisPropsKeys = Object.keys(this.props); // if we have children, we MUST update in React 16\n // https://twitter.com/erikras/status/915866544558788608\n\n return !!(this.props.children || nextProps.children || nextPropsKeys.length !== thisPropsKeys.length || nextPropsKeys.some(function (prop) {\n if (~(nextProps.immutableProps || []).indexOf(prop)) {\n return _this2.props[prop] !== nextProps[prop];\n }\n\n return !~propsToNotUpdateFor.indexOf(prop) && !deepEqual(_this2.props[prop], nextProps[prop]);\n }));\n };\n\n _proto.getRenderedComponent = function getRenderedComponent() {\n return this.ref.current;\n };\n\n _proto.render = function render() {\n var _this$props6 = this.props,\n component = _this$props6.component,\n forwardRef = _this$props6.forwardRef,\n name = _this$props6.name,\n _reduxForm = _this$props6._reduxForm,\n normalize = _this$props6.normalize,\n onBlur = _this$props6.onBlur,\n onChange = _this$props6.onChange,\n onFocus = _this$props6.onFocus,\n onDragStart = _this$props6.onDragStart,\n onDrop = _this$props6.onDrop,\n immutableProps = _this$props6.immutableProps,\n rest = _objectWithoutPropertiesLoose(_this$props6, [\"component\", \"forwardRef\", \"name\", \"_reduxForm\", \"normalize\", \"onBlur\", \"onChange\", \"onFocus\", \"onDragStart\", \"onDrop\", \"immutableProps\"]);\n\n var _createFieldProps = createFieldProps(structure, name, _extends({}, rest, {\n form: _reduxForm.form,\n onBlur: this.handleBlur,\n onChange: this.handleChange,\n onDrop: this.handleDrop,\n onDragStart: this.handleDragStart,\n onFocus: this.handleFocus\n })),\n custom = _createFieldProps.custom,\n props = _objectWithoutPropertiesLoose(_createFieldProps, [\"custom\"]);\n\n if (forwardRef) {\n custom.ref = this.ref;\n }\n\n if (typeof component === 'string') {\n var input = props.input,\n meta = props.meta; // eslint-disable-line no-unused-vars\n // flatten input into other props\n\n return createElement(component, _extends({}, input, custom));\n } else {\n return createElement(component, _extends({}, props, custom));\n }\n };\n\n return ConnectedField;\n }(Component);\n\n ConnectedField.propTypes = {\n component: validateComponentProp,\n props: PropTypes.object\n };\n var connector = connect(function (state, ownProps) {\n var name = ownProps.name,\n _ownProps$_reduxForm = ownProps._reduxForm,\n initialValues = _ownProps$_reduxForm.initialValues,\n getFormState = _ownProps$_reduxForm.getFormState;\n var formState = getFormState(state);\n var initialState = getIn(formState, \"initial.\" + name);\n var initial = initialState !== undefined ? initialState : initialValues && getIn(initialValues, name);\n var value = getIn(formState, \"values.\" + name);\n var submitting = getIn(formState, 'submitting');\n var syncError = getSyncError(getIn(formState, 'syncErrors'), name);\n var syncWarning = getSyncWarning(getIn(formState, 'syncWarnings'), name);\n var pristine = deepEqual(value, initial);\n return {\n asyncError: getIn(formState, \"asyncErrors.\" + name),\n asyncValidating: getIn(formState, 'asyncValidating') === name,\n dirty: !pristine,\n pristine: pristine,\n state: getIn(formState, \"fields.\" + name),\n submitError: getIn(formState, \"submitErrors.\" + name),\n submitFailed: getIn(formState, 'submitFailed'),\n submitting: submitting,\n syncError: syncError,\n syncWarning: syncWarning,\n initial: initial,\n value: value,\n _value: ownProps.value // save value passed in (for radios)\n\n };\n }, undefined, undefined, {\n forwardRef: true\n });\n return connector(ConnectedField);\n};\n\nexport default createConnectedField;","import _isEqualWith from \"lodash/isEqualWith\";\n\nvar customizer = function customizer(objectValue, otherValue, indexOrkey, object, other, stack) {\n // https://lodash.com/docs/4.17.4#isEqualWith\n if (stack) {\n // Shallow compares\n // For 1st level, stack === undefined.\n // -> Do nothing (and implicitly return undefined so that it goes to compare 2nd level)\n // For 2nd level and up, stack !== undefined.\n // -> Compare by === operator\n return objectValue === otherValue;\n }\n};\n\nvar shallowCompare = function shallowCompare(instance, nextProps, nextState) {\n var propsEqual = _isEqualWith(instance.props, nextProps, customizer);\n\n var stateEqual = _isEqualWith(instance.state, nextState, customizer);\n\n return !propsEqual || !stateEqual;\n};\n\nexport default shallowCompare;","var formatName = function formatName(_ref, name) {\n var sectionPrefix = _ref._reduxForm.sectionPrefix;\n return sectionPrefix ? sectionPrefix + \".\" + name : name;\n};\n\nexport default formatName;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inheritsLoose from \"@babel/runtime/helpers/inheritsLoose\";\nimport React, { Component, createElement } from 'react';\nimport { polyfill } from 'react-lifecycles-compat';\nimport PropTypes from 'prop-types';\nimport invariant from 'invariant';\nimport createConnectedField from './ConnectedField';\nimport shallowCompare from './util/shallowCompare';\nimport prefixName from './util/prefixName';\nimport plain from './structure/plain';\nimport { withReduxForm } from './ReduxFormContext';\nimport validateComponentProp from './util/validateComponentProp';\n\nvar createField = function createField(structure) {\n var ConnectedField = createConnectedField(structure);\n var setIn = structure.setIn;\n\n var Field =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(Field, _Component);\n\n function Field(props) {\n var _this;\n\n _this = _Component.call(this, props) || this;\n _this.ref = React.createRef();\n _this.ref = React.createRef();\n\n _this.normalize = function (name, value) {\n var normalize = _this.props.normalize;\n\n if (!normalize) {\n return value;\n }\n\n var previousValues = _this.props._reduxForm.getValues();\n\n var previousValue = _this.value;\n var nextValues = setIn(previousValues, name, value);\n return normalize(value, previousValue, nextValues, previousValues, name);\n };\n\n if (!props._reduxForm) {\n throw new Error('Field must be inside a component decorated with reduxForm()');\n }\n\n return _this;\n }\n\n var _proto = Field.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n var _this2 = this;\n\n this.props._reduxForm.register(this.name, 'Field', function () {\n return _this2.props.validate;\n }, function () {\n return _this2.props.warn;\n });\n };\n\n _proto.shouldComponentUpdate = function shouldComponentUpdate(nextProps, nextState) {\n return shallowCompare(this, nextProps, nextState);\n };\n\n _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps) {\n var oldName = prefixName(this.props, this.props.name);\n var newName = prefixName(nextProps, nextProps.name);\n\n if (oldName !== newName || // use deepEqual here because they could be a function or an array of functions\n !plain.deepEqual(this.props.validate, nextProps.validate) || !plain.deepEqual(this.props.warn, nextProps.warn)) {\n // unregister old name\n this.props._reduxForm.unregister(oldName); // register new name\n\n\n this.props._reduxForm.register(newName, 'Field', function () {\n return nextProps.validate;\n }, function () {\n return nextProps.warn;\n });\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.props._reduxForm.unregister(this.name);\n };\n\n _proto.getRenderedComponent = function getRenderedComponent() {\n invariant(this.props.forwardRef, 'If you want to access getRenderedComponent(), ' + 'you must specify a forwardRef prop to Field');\n return this.ref.current ? this.ref.current.getRenderedComponent() : undefined;\n };\n\n _proto.render = function render() {\n return createElement(ConnectedField, _extends({}, this.props, {\n name: this.name,\n normalize: this.normalize,\n ref: this.ref\n }));\n };\n\n _createClass(Field, [{\n key: \"name\",\n get: function get() {\n return prefixName(this.props, this.props.name);\n }\n }, {\n key: \"dirty\",\n get: function get() {\n return !this.pristine;\n }\n }, {\n key: \"pristine\",\n get: function get() {\n return !!(this.ref.current && this.ref.current.isPristine());\n }\n }, {\n key: \"value\",\n get: function get() {\n return this.ref.current && this.ref.current.getValue();\n }\n }]);\n\n return Field;\n }(Component);\n\n Field.propTypes = {\n name: PropTypes.string.isRequired,\n component: validateComponentProp,\n format: PropTypes.func,\n normalize: PropTypes.func,\n onBlur: PropTypes.func,\n onChange: PropTypes.func,\n onFocus: PropTypes.func,\n onDragStart: PropTypes.func,\n onDrop: PropTypes.func,\n parse: PropTypes.func,\n props: PropTypes.object,\n validate: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n warn: PropTypes.oneOfType([PropTypes.func, PropTypes.arrayOf(PropTypes.func)]),\n forwardRef: PropTypes.bool,\n immutableProps: PropTypes.arrayOf(PropTypes.string),\n _reduxForm: PropTypes.object\n };\n polyfill(Field);\n return withReduxForm(Field);\n};\n\nexport default createField;","import createField from './createField';\nimport plain from './structure/plain';\nexport default createField(plain);","import { post } from '../Services/http';\r\nimport { catchError } from './Error.action';\r\n\r\nexport const HTTP_ERROR = \"HTTP_ERROR\"\r\n\r\nexport const loadError = error => ({\r\n type: HTTP_ERROR,\r\n payload: {\r\n error,\r\n }\r\n})\r\n\r\nexport const setLocalizationCookie = (values, buyButton=null) => async (dispatch) => {\r\n const response = await post('/api/localization/set', values)\r\n const returnData = await response.json()\r\n\r\n \r\n \r\n if(!response.ok) {\r\n return loadError(response.status)\r\n }\r\n else {\r\n if(buyButton) {\r\n buyButton()\r\n }\r\n window.location.reload();\r\n return (\r\n returnData\r\n )\r\n \r\n }\r\n \r\n\r\n /*return \r\n .then(response => response.json())\r\n .then(res => {\r\n var date = new Date();\r\n //date.setTime(date.getTime() + (365*24*60*60*1000));\r\n //document.cookie = \"Localization=\" + res + \";expires\" + date.toUTCString() + \";path=/\";\r\n window.location.reload();\r\n }).then(() => {\r\n if(buyButton) {\r\n buyButton();\r\n }\r\n })\r\n .catch(ex => dispatch(catchError(ex, error => {\r\n return loadError(error)\r\n })));*/\r\n}","import React from 'react'\r\nimport { Field, reduxForm } from 'redux-form'\r\nimport { translate } from '../Services/translation'\r\n\r\nconst renderField = ({\r\n input,\r\n className,\r\n label,\r\n type,\r\n meta: { touched, error, warning } }) => (\r\n <div>\r\n <input {...input} className={className} placeholder={label} type={type} />\r\n {touched &&\r\n ((error && <span>{error}</span>) ||\r\n (warning && <span>{warning}</span>))}\r\n </div>\r\n\r\n )\r\n\r\n\r\nlet LocalizationCookieComponent = (props) => {\r\n const { handleSubmit,isDataError,anyTouched } = props;\r\n return (\r\n <form onSubmit={handleSubmit} className=\"row\">\r\n <div className=\"columns small-12 zip-code-popup--form\">\r\n <Field className=\"form__input\" name=\"postalCode\" component={renderField} type=\"text\" label={translate(\"loalization.input.label\")}/>\r\n {props.showEmailForm && <Field className=\"form__input\" name=\"email\" component={renderField} type=\"text\" label={translate(\"email.input.label\")}/>}\r\n <a className=\"button product__buy-button\" onClick={handleSubmit} >{translate('loalization.button.text')}</a>\r\n </div>\r\n {isDataError && !anyTouched && <div className='columns small-12 zip-code-popup--error'>{translate('localization.error')}</div>}\r\n </form>\r\n )\r\n}\r\n\r\nLocalizationCookieComponent = reduxForm({\r\n form: 'LocalizationCookieForm',\r\n validate: (values) => {\r\n const errors = {}\r\n if (!values.postalCode) {\r\n errors.postalCode = translate('localization.requirederror');\r\n }\r\n\r\n return errors\r\n }\r\n})(LocalizationCookieComponent)\r\n\r\nexport default LocalizationCookieComponent;\r\n","import React from 'react'\r\nimport {connect } from 'react-redux'\r\nimport {reset} from 'redux-form';\r\n\r\nimport {setLocalizationCookie} from '../Actions/LocalizationCookie.action'\r\n\r\nimport LocalizationCookieComponent from '../Components/LocalizationCookieComponent'\r\n\r\n\r\nconst LocalizationCookieContainer = (props) => {\r\n return (<LocalizationCookieComponent onSubmit={props.setCookie} showEmailForm={props.showEmailForm} isDataError= {props.isDataError} buyButton={props.buyButton} />)\r\n}\r\n\r\nconst mapStateToProps = (state) => {\r\n return {\r\n isDataError: state.localized.isDataError,\r\n }\r\n}\r\n\r\nconst mapDispatchToProps = (dispatch, ownProps) => {\r\n if(ownProps.buyButton) {\r\n return {\r\n setCookie: (values) => {\r\n dispatch(setLocalizationCookie(values, ownProps.buyButton)) \r\n dispatch(reset('LocalizationCookieForm'))\r\n }\r\n }\r\n }\r\n else {\r\n return {\r\n setCookie: (values) => {\r\n dispatch(setLocalizationCookie(values)) \r\n dispatch(reset('LocalizationCookieForm'))\r\n }\r\n }\r\n }\r\n}\r\n\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(LocalizationCookieContainer)"],"sourceRoot":""}