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AE,IAAHD,EAAGC,GAAAn8D,UAAAm8D,GAAO,OAAQC,GAAeF,EAAIhmD,QAAO,CAACmmD,EAAGC,IAAeA,EAAED,IAAOD,EAAO,EAE1FG,EAAatuD,GACjB,SAAAmI,GAAiC,IAAxB,MAAE7U,EAAK,OAAEi7D,EAAS,IAAIpmD,EACpC,OAAO7U,EAAMtB,OAASgO,EAAM,CAC1B1M,QACAi7D,OAAQ,IAAIA,EAAS,sCAAqCvuD,MACxD,CAAE1M,QAAOi7D,SACf,EAEW/sB,EAAalhC,GACjB,SAAAkI,GAAiC,IAAxB,MAAElV,EAAK,OAAEi7D,EAAS,IAAI/lD,EACpC,OAAOlV,EAAMtB,OAASsO,EAAM,CAC1BhN,QACAi7D,OAAQ,IAAIA,EAAS,kCAAiCjuD,MACpD,CAAEhN,QAAOi7D,SACf,EAEWC,EAAY,SAAAjkD,GAAiC,IAAxB,MAAEjX,EAAK,OAAEi7D,EAAS,IAAIhkD,EACtD,MAAQ,QAAQ7M,KAAKpK,GAEjB,CAAEA,QAAOi7D,UADT,CAAEj7D,QAAOi7D,OAAQ,IAAIA,EAAQ,8BAEnC,C","sources":["webpack://zenbusiness.com/./src/client/utils/AddressAutocompleterUtils.js","webpack://zenbusiness.com/./src/client/utils/AppEntryPoint.js","webpack://zenbusiness.com/./src/client/utils/AuthService.js","webpack://zenbusiness.com/./src/client/utils/BoldPengiunService.js","webpack://zenbusiness.com/./src/client/utils/ClientLogger.js","webpack://zenbusiness.com/./src/client/utils/CookieUtils.js","webpack://zenbusiness.com/./src/client/utils/DataCleaningUtils.js","webpack://zenbusiness.com/./src/client/utils/FieldValidator.js","webpack://zenbusiness.com/./src/client/utils/FlowService.js","webpack://zenbusiness.com/./src/client/utils/FormationDateUtils.js","webpack://zenbusiness.com/./src/client/utils/FreeAccountUtils.js","webpack://zenbusiness.com/./src/client/utils/GoogleUtils.js","webpack://zenbusiness.com/./src/client/utils/IntercomService.js","webpack://zenbusiness.com/./src/client/utils/LinkableTextUtils.js","webpack://zenbusiness.com/./src/client/utils/OrderDataTrackService.js","webpack://zenbusiness.com/./src/client/utils/OrderUtils.js","webpack://zenbusiness.com/./src/client/utils/PartnerUtils.js","webpack://zenbusiness.com/./src/client/utils/PaymentUtils.js","webpack://zenbusiness.com/./src/client/utils/PlaidService.js","webpack://zenbusiness.com/./src/client/utils/PlanService.js","webpack://zenbusiness.com/./src/client/utils/PricingUtils.js","webpack://zenbusiness.com/./src/client/utils/PlanUtils.js","webpack://zenbusiness.com/./src/client/utils/Pricing_v2/plans.js","webpack://zenbusiness.com/./src/client/utils/Pricing_v2/standaloneServices.js","webpack://zenbusiness.com/./src/client/utils/Pricing_v2/stateFees.js","webpack://zenbusiness.com/./src/client/utils/Pricing_v2/index.js","webpack://zenbusiness.com/./src/client/utils/Pricing_v2/expediteFees.js","webpack://zenbusiness.com/./src/client/utils/PrincipalsUtil.js","webpack://zenbusiness.com/./src/client/utils/ProductService.js","webpack://zenbusiness.com/./src/client/utils/ProgressBar.js","webpack://zenbusiness.com/./src/client/utils/QuickFormationCreate.js","webpack://zenbusiness.com/./src/client/utils/ReducerStorage.js","webpack://zenbusiness.com/./src/client/utils/RenderUtils.js","webpack://zenbusiness.com/./src/client/utils/ReportingUtils.js","webpack://zenbusiness.com/./src/client/utils/ShareASaleService.js","webpack://zenbusiness.com/./src/client/utils/ShareASaleUtils.js","webpack://zenbusiness.com/./src/client/utils/StripeService.js","webpack://zenbusiness.com/./src/client/utils/GoogleAdUtils.js","webpack://zenbusiness.com/./src/client/utils/ThirdPartyTracking.js","webpack://zenbusiness.com/./src/client/utils/UreekaService.js","webpack://zenbusiness.com/./src/client/utils/UrlUtils.js","webpack://zenbusiness.com/./src/client/utils/VisitorCookie.js","webpack://zenbusiness.com/./src/client/utils/VmaUtils.js","webpack://zenbusiness.com/./src/client/utils/avo.js","webpack://zenbusiness.com/./src/client/utils/avoRudderstack.js","webpack://zenbusiness.com/./src/client/utils/initializationUtils.js","webpack://zenbusiness.com/./src/client/utils/isPlaidLinkSuccessful.js","webpack://zenbusiness.com/./src/client/utils/pfUtils.js","webpack://zenbusiness.com/./src/client/utils/selectors.js","webpack://zenbusiness.com/./src/client/utils/validators.js"],"sourcesContent":["\nimport _find from 'lodash/find';\nimport _trim from 'lodash/trim';\nimport _indexOf from 'lodash/indexOf';\n\nrequire('cleave.js/dist/addons/cleave-phone.us');\n\nconst\n  getAddressType = (matchedResult, type, isLong) => {\n    const\n      addressComponent = _find(matchedResult.address_components, (comp) => {\n        return _indexOf(comp.types, type) !== -1;\n      });\n\n    if (addressComponent) {\n      return addressComponent[isLong ? 'long_name' : 'short_name'];\n    }\n\n    return '';\n  },\n\n  getStreetNumber = (address, matchedResult) => {\n    const\n      streetNum = getAddressType(matchedResult, 'street_number', false),\n      route = getAddressType(matchedResult, 'route', false);\n\n    if (streetNum) {\n      return streetNum;\n    }\n\n    const idx = address.indexOf(route.split(' ')[0]);\n    if (idx > -1) {\n      return _trim(address.substring(0, idx));\n    }\n    return '';\n  },\n\n  getCity = (address, matchedResult) => {\n    const\n      lcAddress = address.toLowerCase(),\n      addressParts = lcAddress.split(', '),\n      locality = getAddressType(matchedResult, 'locality', true),\n      neighborhood = getAddressType(matchedResult, 'neighborhood', true);\n\n    if (locality && _indexOf(addressParts, locality.toLowerCase()) !== -1) {\n      return locality;\n    }\n    if (neighborhood && _indexOf(addressParts, neighborhood.toLowerCase()) !== -1) {\n      return neighborhood;\n    }\n    // Now, if any locality exists, return it even if it did not match exactly.\n    if (locality) {\n      return locality;\n    }\n\n    const\n      sublocalityLevel1 = getAddressType(matchedResult, 'sublocality_level_1', true),\n      sublocality = getAddressType(matchedResult, 'sublocality', true);\n\n    if (sublocalityLevel1) {\n      return sublocalityLevel1;\n    }\n    if (sublocality) {\n      return sublocality;\n    }\n    if (neighborhood) {\n      return neighborhood;\n    }\n    return '';\n  },\n  getCounty = (address, matchedResult) => {\n    const county = getAddressType(matchedResult, 'administrative_area_level_2');\n\n    if (county) {\n      return county;\n    }\n\n    const\n      state = getAddressType(matchedResult, 'administrative_area_level_1', false),\n      city = getCity(address, matchedResult);\n\n    if (state === 'VA') {\n      return `${city} (city)`;\n    }\n    return '';\n  };\n\nexport const buildAddress = (address, matchedResult, addressLine2) => {\n  const\n    route = getAddressType(matchedResult, 'route', true),\n    streetNumber = getStreetNumber(address, matchedResult),\n    addressLine1 = streetNumber ? _trim([ streetNumber, route ].join(' ')) : route,\n    city = getCity(address, matchedResult),\n    county = getCounty(address, matchedResult, 'administrative_area_level_2'),\n    state = getAddressType(matchedResult, 'administrative_area_level_1', false),\n    stateName = getAddressType(matchedResult, 'administrative_area_level_1', true),\n    zip = getAddressType(matchedResult, 'postal_code', false),\n    zipSuffix = getAddressType(matchedResult, 'postal_code_suffix', false),\n    zipCode = zipSuffix ? [zip, zipSuffix].join('-') : zip,\n    lat = matchedResult.geometry.location.lat(),\n    lng = matchedResult.geometry.location.lng();\n\n  return {\n    addressLine1,\n    addressLine2: addressLine2 || '',\n    city,\n    county,\n    state,\n    stateName,\n    zipCode,\n    lat,\n    lng,\n    addressIsGoogle: true\n  };\n};\n\nexport const validateGeoResult = (matchedResult, origAddress) => {\n  if (!matchedResult || !matchedResult.types) {\n    return false;\n  }\n  if (_indexOf(matchedResult.types, 'premise') < 0 && _indexOf(matchedResult.types, 'subpremise') < 0 && _indexOf(matchedResult.types, 'street_address') < 0) {\n    return false;\n  }\n\n  const\n    matchedStreetNum = getAddressType(matchedResult, 'street_number', false),\n    matchedRoute = getAddressType(matchedResult, 'route', false).split(' ')[0],\n    idx = origAddress.indexOf(matchedRoute),\n    addressStreetNum = _trim(origAddress.substring(0, idx));\n\n  if (matchedStreetNum !== addressStreetNum) {\n    return false;\n  }\n  return true;\n};\n\n\nexport default {\n  buildAddress,\n  validateGeoResult\n};\n","const key = 'entryPoint';\n\nlet entryPoint = null;\n\nexport const setAppEntryPoint = (data) => {\n  entryPoint = data || window.location.pathname + window.location.search;\n  if (window.sessionStorage) {\n    sessionStorage.setItem(key, entryPoint);\n  }\n  return entryPoint;\n};\n\nexport const getAppEntryPoint = () => {\n  if (!entryPoint) {\n    entryPoint = sessionStorage.getItem(key) || '/';\n  }\n  return entryPoint;\n};\n\n// Helper function that will allow us to extract the heading\nexport const getQueryParameterByName = (name, queryString = document.location.search) => {\n  const regex = new RegExp(`[?&]${name}=([^&]*)`),\n    results = regex.exec(queryString);\n  if (!results) { return ''; }\n  if (!results[1]) { return ''; }\n  return decodeURIComponent(results[1].replace(/\\+/g, ' '));\n};\n","import _isString from 'lodash/isString';\nimport decode from 'jwt-decode';\nimport auth0 from 'auth0-js';\nimport Promise from 'promise';\n\nimport logger from './ClientLogger';\nimport { reportError } from './ReportingUtils';\n\nconst\n  // clientId = 'T42rhgVXFHlB1vEKhBxKo8zsX99WavFL0', // production clientId\n  clientId = 'liinIbvP490BKJxJX1TGmNxlTvBcVRAu', // dev clientId\n  domain = 'login.dev.zenbusiness.com';\nconst audience = 'https://zen-business-core-api';\nconst scope = 'openid profile email';\n\nlet\n  auth = new auth0.WebAuth({\n    clientID: clientId,\n    domain,\n    audience,\n    scope,\n    allowSignUp: false\n  }),\n  accessToken = null,\n  idToken = null,\n  loggedIn = false,\n  timeout = null,\n  oboEmail = null,\n  email = null;\n\nconst getStorageItem = (key) => {\n  let value = '';\n  if (window.sessionStorage) {\n    value = window.sessionStorage.getItem(key) || '';\n  }\n  if (!value && window.localStorage) {\n    value = window.localStorage.getItem(key) || '';\n  }\n  return value;\n};\n\nconst setStorageItem = (key, value) => {\n  if (window.sessionStorage) {\n    window.sessionStorage.setItem(key, value);\n  }\n};\n\nconst removeStorageItem = (key) => {\n  if (window.localStorage) {\n    window.localStorage.removeItem(key);\n  }\n  if (window.sessionStorage) {\n    window.sessionStorage.removeItem(key);\n  }\n};\n\nconst\n  ID_TOKEN_KEY = 'id_token',\n  ACCESS_TOKEN_KEY = 'access_token',\n  OBO_KEY = 'obo',\n  EMAIL_KEY = 'loggin_in_email',\n  createAction = 'Auth0: Registration',\n  createActionComplete = 'Auth0: Registration Complete',\n  loginAction = 'Auth0: Login',\n  loginActionComplete = 'Auth0: Login Complete',\n  resetAction = 'Auth0: reset password',\n  resetActionComplete = 'Auth0: reset password Complete',\n  storage = window.localStorage,\n  clearTokens = () => {\n    idToken = null;\n    loggedIn = false;\n    accessToken = null;\n    oboEmail = null;\n    email = null;\n    if (timeout) {\n      window.clearInterval(timeout);\n      timeout = null;\n    }\n    removeStorageItem(ID_TOKEN_KEY);\n    removeStorageItem(ACCESS_TOKEN_KEY);\n    removeStorageItem(OBO_KEY);\n    removeStorageItem(EMAIL_KEY);\n  },\n  setupLoggedIn = () => {\n    if (timeout) {\n      window.clearInterval(timeout);\n      timeout = null;\n    }\n    if (!idToken) {\n      loggedIn = false;\n      return false;\n    }\n\n    const token = decode(idToken);\n    if (!token.exp) {\n      loggedIn = true;\n      return true;\n    }\n    loggedIn = true;\n    const expireDate = new Date(0);\n\n    expireDate.setUTCSeconds(token.exp);\n\n    const\n      expireMS = expireDate.getTime();\n\n    if (expireMS - new Date().getTime() < 60000) { // 1 minute\n      loggedIn = false;\n      return false;\n    }\n\n    loggedIn = true;\n    timeout = window.setInterval(() => {\n      if (expireMS - new Date().getTime() < 60000) {\n        clearTokens();\n      }\n    }, 5000); // 5 seconds\n\n    return true;\n  },\n  // Helper function that will allow us to extract the access_token and id_token\n  getParameterByName = (name) => {\n    const match = RegExp(`[#&]${name}=([^&]*)`).exec(window.location.hash);\n    return match && decodeURIComponent(match[1].replace(/\\+/g, ' '));\n  };\n\nexport const init = () => {\n  if (storage) {\n    accessToken = getStorageItem(ACCESS_TOKEN_KEY);\n    accessToken = accessToken && accessToken !== 'null' ? accessToken : null;\n\n    idToken = getStorageItem(ID_TOKEN_KEY);\n    idToken = idToken && idToken !== 'null' ? idToken : null;\n\n    oboEmail = getStorageItem(OBO_KEY);\n    oboEmail = oboEmail && oboEmail !== 'null' ? oboEmail : null;\n\n    email = getStorageItem(EMAIL_KEY);\n    email = email && email !== 'null' ? email : null;\n\n    setupLoggedIn();\n  }\n};\n\nexport const initializeAuth0 = (response) => {\n  const { auth0: { clientID, domain: overrideDomain } } = response;\n  auth = new auth0.WebAuth({\n    clientID,\n    domain: overrideDomain || domain,\n    audience,\n    scope,\n    allowSignUp: false\n  });\n};\n\nexport const getIdToken = () => {\n  return getStorageItem(ID_TOKEN_KEY);\n};\n\nexport const getAccessToken = () => {\n  return getStorageItem(ACCESS_TOKEN_KEY);\n};\n\nexport const getOBO = () => {\n  return getStorageItem(OBO_KEY);\n};\n\nexport const getLoggedInEmail = () => {\n  return getStorageItem(EMAIL_KEY);\n};\n\nexport const isLoggedIn = () => {\n  return loggedIn;\n};\n\nexport const login = (loginData, rt) => {\n  return new Promise((resolve, reject) => {\n    const location = document.location,\n      redirectUri = `${location.protocol}//${location.host}/d/callback`,\n      stateValue = `zen-${Math.floor(Math.random() * 1000000)}`,\n      { email: username, password } = loginData,\n      redirectToAfterSuccessfulLogin = rt || '/d/dashboard';\n\n    if (storage) {\n      setStorageItem('auth0StateValue', stateValue);\n    }\n\n    if (redirectToAfterSuccessfulLogin && _isString(redirectToAfterSuccessfulLogin)) {\n      if (storage) {\n        setStorageItem('loginRedirectTo', redirectToAfterSuccessfulLogin);\n      }\n    }\n\n    if (username && password) {\n      logger.logAction(loginAction, { username });\n\n      auth.login({\n        redirectUri,\n        responseType: 'token id_token',\n        state: stateValue,\n        username,\n        password\n      }, (err) => {\n        if (err) {\n          logger.error(loginActionComplete, err);\n          reject({ success: false, err });\n          return;\n        }\n        logger.logAction(loginActionComplete, { username });\n        resolve({ success: true });\n      });\n    }\n  });\n};\n\nexport const resetPassword = (username) => {\n  return new Promise((resolve, reject) => {\n    logger.logAction(resetAction, { username });\n\n    auth.changePassword({\n      email: username,\n      connection: 'Username-Password-Authentication'\n    }, (err) => {\n      if (err) {\n        logger.error(resetActionComplete, err);\n        reject({ success: false, err });\n        return;\n      }\n      logger.logAction(resetActionComplete, { username });\n      resolve({ success: true });\n    });\n  });\n};\n\nexport const loginAndGoToPage = (rt, clearAuthStorage = false) => {\n  let urlForLoginPage = '/d/login';\n\n  if (rt && _isString(rt)) {\n    if (storage) {\n      setStorageItem('loginRedirectTo', rt);\n    }\n    urlForLoginPage += `?redirectTo=${encodeURIComponent(rt)}`;\n  } else if (storage) {\n    removeStorageItem('loginRedirectTo');\n  }\n  if (clearAuthStorage) {\n    window.sessionStorage.clear();\n    clearTokens();\n  }\n\n  document.location = urlForLoginPage;\n};\n\nexport const logout = () => {\n  const location = document.location,\n    returnTo = `${location.protocol}//${location.host}`;\n\n  clearTokens();\n  auth.logout({\n    returnTo\n  });\n};\n\nexport const recordLoginInformation = (cb) => {\n  const state = getParameterByName('state');\n\n  accessToken = getParameterByName('access_token');\n  idToken = getParameterByName('id_token');\n\n  if (storage) {\n    const storageState = getStorageItem('auth0StateValue');\n    if (state !== storageState) {\n      reportError(new Error('State Values did not agree'), {\n        metaData: {\n          accessToken,\n          idToken,\n          state,\n          storageState\n        }\n      });\n      clearTokens();\n      cb({});\n      return {};\n    }\n\n    setStorageItem(ACCESS_TOKEN_KEY, accessToken);\n    setStorageItem(ID_TOKEN_KEY, idToken);\n  }\n\n  setupLoggedIn();\n\n  return auth.client.userInfo(accessToken, (err, user) => {\n    if (err) {\n      logout();\n      return;\n    }\n    email = user.email;\n    if (!user.email) {\n      reportError(new Error('No Login Email returned'), {\n        metaData: {\n          accessToken,\n          idToken,\n          user\n        }\n      });\n    }\n    if (storage) {\n      setStorageItem(EMAIL_KEY, user.email);\n    }\n    cb(user);\n  });\n};\n\nexport const signup = (data, accountId) => {\n  return new Promise((resolve, reject) => {\n    const { account } = data;\n\n    // Account information isn't sent to this method if user is already logged in.\n    if (!account || _isString(account)) {\n      resolve({ success: true });\n    }\n\n    const metadata = {\n      zenbusiness_account_id: accountId,\n      first_name: account.first_name,\n      middle_name: account.middle_name,\n      last_name: account.last_name,\n      suffix: account.suffix,\n      phone: account.phone\n    };\n\n    logger.logAction(createAction, { email: account.email, ...metadata });\n    auth.signup({\n      connection: 'Username-Password-Authentication',\n      email: account.email ? account.email.toLowerCase() : '',\n      password: account.password,\n      user_metadata: metadata\n    }, (err) => {\n      if (err) {\n        if (err.code && err.code === 'user_exists') {\n          logger.logAction(createActionComplete, { email: account.email, alreadyExists: true });\n          // Signup unable to be completed as user exists, prompt user to login prior to finishing.\n          resolve({ success: true, userExists: true });\n          return;\n        }\n        reportError(new Error('Auth0 Signup Error'), { metaData: { email: account.email, message: err.message } });\n        logger.error(createActionComplete, err);\n        reject({ success: false, err });\n        return;\n      }\n      logger.logAction(createActionComplete, { email: account.email });\n      resolve({ success: true });\n    });\n  });\n};\n\nexport const getLoginRedirectTo = () => {\n  return getStorageItem('loginRedirectTo');\n};\n\nexport const removeLoginRedirectTo = () => {\n  removeStorageItem('loginRedirectTo');\n};\n\nconst PROFILE_CLAIM = 'https://www.zenbusiness.com/profile';\nexport const getAccountUUID = () => {\n  if (idToken) {\n    const decodedToken = decode(idToken);\n    return decodedToken?.[PROFILE_CLAIM]?.accountUuid || '';\n  }\n  return null;\n};\n\nexport default {\n  initializeAuth0,\n  getAccountUUID,\n  getIdToken,\n  getAccessToken,\n  getOBO,\n  getLoggedInEmail,\n  getLoginRedirectTo,\n  isLoggedIn,\n  login,\n  loginAndGoToPage,\n  logout,\n  recordLoginInformation,\n  removeLoginRedirectTo,\n  signup\n};\n","import React from 'react';\n\nlet\n  enabled = true,\n  url = '',\n  id = '',\n  installed = false;\n\nconst\n  loadJS = (callback) => {\n    const\n      ref = window.document.getElementsByTagName('script')[0],\n      script = window.document.createElement('script');\n\n    script.src = url;\n    script.async = true;\n    if (script.readyState) {\n      script.onreadystatechange = function() {\n        if (script.readyState === 'loaded' || script.readyState === 'complete') {\n          script.onreadystatechange = null;\n          installed = true;\n          callback(true);\n        }\n      };\n    } else {\n      script.onload = function() {\n        installed = true;\n        callback(true);\n      };\n    }\n    ref.parentNode.insertBefore(script, ref);\n  };\n\nexport const initializeBoldPenguin = (response) => {\n  const { boldPenguin } = response;\n\n  enabled = boldPenguin.enabled;\n  url = boldPenguin.url;\n  id = boldPenguin.id;\n};\n\nexport const loadBoldPenguin = (callback) => {\n  if (enabled && !installed) {\n    loadJS(callback);\n  } else {\n    callback(enabled);\n  }\n};\n\nexport const displayBoldPenguin = ({ firstName, lastName, companyName, zipCode, phoneNumber }) => {\n  if (!enabled) {\n    return null;\n  }\n  const answers = {};\n\n  answers.mqs_first_name = firstName;\n  answers.mqs_last_name = lastName;\n  answers.mqs_business_name = companyName;\n  answers.mqs_zipcode = zipCode ? zipCode.substring(0, 5) : '';\n  answers.mqs_phone = phoneNumber ? phoneNumber.replace(/-/g, '') : '';\n\n  return (\n    <embeddable-penguin client_id={id} answers={JSON.stringify(answers)} />\n  );\n};\n\nexport const isBoldPenguinEnabled = () => {\n  return enabled;\n};\n\nexport default {\n  initializeBoldPenguin,\n  displayBoldPenguin,\n  isBoldPenguinEnabled\n};\n","import env from '../config';\n\nconst\n  infoCSS = 'color: #22cc22',\n  errorCSS = 'color: #cc2222';\n\nexport default {\n  logAction: (action, data) => {\n    const title = `%c ${action}`;\n    if (env.client.debugLogging) {\n      if (data) {\n        console.groupCollapsed(title, infoCSS);\n        console.info(JSON.stringify(data, null, 4));\n        console.groupEnd();\n      } else {\n        console.info(title, infoCSS);\n      }\n    }\n  },\n  error: (action, error) => {\n    const title = `%c ${action}`;\n\n    console.groupCollapsed(title, errorCSS);\n    console.log(error);\n    console.groupEnd();\n  }\n};\n","/* eslint-disable import/prefer-default-export */\n\nexport const getCookie = (cookieName) => {\n  const\n    value = `; ${document.cookie}`,\n    parts = value.split(`; ${cookieName}=`);\n\n  return parts.length === 2 ? decodeURIComponent(parts.pop().split(';').shift()) : '';\n};\n","/* eslint-disable import/prefer-default-export */\nimport _isEmpty from 'lodash/isEmpty';\nimport _trim from 'lodash/trim';\nimport _toUpper from 'lodash/toUpper';\nimport _toLower from 'lodash/toLower';\n\nexport const parseStringToInt = (value, radix) => {\n  // remove non-number chars before parsing\n  return parseInt(value.replace(/[^0-9]/g, ''), radix);\n};\n\nexport const parseBoolToString = (value) => {\n  return value ? 'yes' : 'no';\n};\n\nexport const checkEmpty = (value) => {\n  return _isEmpty(_trim(value));\n};\n\nexport const normalizeInitParams = (query = {}) => {\n  const {\n    domesticJurisdiction = '',\n    fromDashboard = 'false',\n    hasSCorp = 'false',\n    fromBNG = 'false',\n    type = '',\n    hasSCorpWordUpdate = 'false',\n    planLevel = ''\n  } = query;\n\n  return {\n    ...query,\n    name: checkEmpty(query.name) ? '' : _trim(query.name),\n    domesticJurisdiction: _toUpper(domesticJurisdiction),\n    fromDashboard: _toLower(fromDashboard),\n    hasSCorp: _toLower(hasSCorp),\n    type: _toUpper(type),\n    hasSCorpWordUpdate: _toLower(hasSCorpWordUpdate),\n    planLevel: _toLower(planLevel),\n    fromBNG: _toLower(fromBNG)\n  };\n};\n","import _isNumber from 'lodash/isNumber';\nimport _reduce from 'lodash/reduce';\nimport _trim from 'lodash/trim';\nimport moment from 'moment';\n\nconst allowDotUS = false;\nconst emptyStringRegex = /^\\s*$/;\nconst integerRegex = /^-?\\d+$/;\nconst floatRegex = /^-?\\d*\\.?\\d*$/;\nconst emailRegex =  /^(([^<>()&[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\nconst zipCodeRegex = /^[0-9]{5}(?:-[0-9]{4})?$/;\nconst dollarRegex = /(?=.*?\\d)^\\$?(([1-9]\\d{0,2}(,\\d{3})*)|\\d+)?(\\.\\d{1,2})?$/;\nconst centsRegex = /^\\d*\\.?\\d*¢$/;\n\n// Credit Card Regexes\nconst visaCCRegex = /^4[0-9]{12}(?:[0-9]{3})?$/;\nconst mcCCRegex = /^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/;\nconst amexCCRegex = /^3[47][0-9]{13}$/;\nconst discCCRegex = /^6(?:011|5[0-9]{2})[0-9]{12}$/;\n\n// Password Regex\n//const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*])(?=.{8,})/;\n\n// EIN/SSN Regex\nconst ssnRegex = /^\\d{3}-\\d{2}-\\d{4}$/;\nconst einRegex = /^\\d{2}-\\d{7}$/;\n\n// Domain Name Regex\nconst domainNameRegex = allowDotUS ? /^(www\\.)?[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.(com|us)$/ :  /^(www\\.)?[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\\.com$/;\n\n// PO Box Match strings\nconst poBoxMatchStrings = ['po ', 'pobox ', 'p.o', 'p o', 'p. o', 'post office', 'box '];\n\n// Emoji match unicode codes\nconst emojiRegex = /(\\u00a9|\\u00ae|[\\u2000-\\u3300]|\\ud83c[\\ud000-\\udfff]|\\ud83d[\\ud000-\\udfff]|\\ud83e[\\ud000-\\udfff])/;\n\n// Invalid Characters Regex\nconst invalidCharsRegex = /^[a-zA-Z0-9 ,.&'-]*$/;\n\nexport default class FieldValidator {\n  constructor(value, humanReadableFieldName) {\n    this.value = _trim(value);\n    this.fieldName = humanReadableFieldName;\n    this.message = '';\n    this.status = true;\n    this.requiredStatus = true;\n  }\n\n  isRequired(customMessage) {\n    if (this.status && !this.value) {\n      this.status = false;\n      this.requiredStatus = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} is required.`;\n    }\n    return this;\n  }\n\n  isInteger(customMessage) {\n    if (this.status && this.value && !integerRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a number.`;\n    }\n    return this;\n  }\n\n  isFloat(customMessage) {\n    if (this.status && this.value && !floatRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a number.`;\n    }\n    return this;\n  }\n\n  isEmail(customMessage) {\n    if (this.status && this.value && !emailRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be an email address.`;\n    }\n    return this;\n  }\n\n  isEmailMatch(emailConfirm, customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Email'} confirmation does not match.`;\n    if (!this.status || !this.value) {\n      return this;\n    }\n    if (this.value !== emailConfirm) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isZIPCode(customMessage) {\n    if (this.status && this.value && !zipCodeRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a ZIP code.`;\n    }\n    return this;\n  }\n\n  isPhoneNumber(customMessage) {\n    if (this.status && this.value) {\n      const\n        strippedNumber = this.value.replace(/\\D/g, ''),\n        startsWithOne = strippedNumber.indexOf('1') === 0,\n        s = startsWithOne ? strippedNumber.substring(1) : strippedNumber;\n\n      if (s.length !== 10) {\n        this.status = false;\n        this.message = customMessage || `${this.fieldName || 'Field'} must be a 10-digit mobile phone number.`;\n      }\n    }\n    return this;\n  }\n\n  isCreditCard(customMessage) {\n    if (!this.status || !this.value) {\n      return this;\n    }\n    if (visaCCRegex.test(this.value)) {\n      this.ccType = 'VISA';\n    } else if (mcCCRegex.test(this.value)) {\n      this.ccType = 'MASTERCARD';\n    } else if (amexCCRegex.test(this.value)) {\n      this.ccType = 'AMEX';\n    } else if (discCCRegex.test(this.value)) {\n      this.ccType = 'DISCOVER';\n    } else {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a valid credit card number.`;\n    }\n    return this;\n  }\n\n  isDateFormat(format, customMessage) {\n    if (this.status && this.value && (this.value.indexOf('/') === -1 || !moment(this.value, format, true).isValid())) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be formatted as ${format}.`;\n    }\n    return this;\n  }\n\n  isFutureDate(format, testType, customMessage) {\n    const\n      now = moment(),\n      date = moment(this.value, format, true);\n\n    if (this.status && this.value && !date.isSameOrAfter(now, testType)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a date in the future.`;\n    }\n    return this;\n  }\n\n  isMonthTwoDigitsYear(customMessage) {\n    return this.isDateFormat('MM/YY', customMessage);\n  }\n\n  isFutureMonthTwoDigitsYear(customMessage) {\n    return this.isFutureDate('MM/YY', 'month', customMessage);\n  }\n\n  isMonthYear(customMessage) {\n    return this.isDateFormat('MM/YYYY', customMessage);\n  }\n\n  isFutureMonthYear(customMessage) {\n    return this.isFutureDate('MM/YYYY', 'month', customMessage);\n  }\n\n  isDayMonthYear(customMessage) {\n    return this.isDateFormat('DD/MM/YYYY', customMessage);\n  }\n\n  isFutureDayMonthYear(customMessage) {\n    return this.isFutureDate('DD/MM/YYYY', 'day', customMessage);\n  }\n\n  isMonthDayYear(customMessage) {\n    return this.isDateFormat('MM/DD/YYYY', customMessage);\n  }\n\n  isFutureMonthDayYear(customMessage) {\n    return this.isFutureDate('MM/DD/YYYY', 'day', customMessage);\n  }\n\n  isYearMonthDay(customMessage) {\n    return this.isDateFormat('YYYY/MM/DD', customMessage);\n  }\n\n  isFutureYearMonthDate(customMessage) {\n    return this.isFutureDate('YYYY/MM/DD', 'day', customMessage);\n  }\n\n  isAgeGreaterThan(age, customMessage) {\n    const\n      ageDate = moment(),\n      date = moment(this.value, 'MM/DD/YYYY', true);\n\n    ageDate.set('year', ageDate.get('year') - age);\n    if (this.status && this.value && date.isAfter(ageDate, 'day')) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be ${age} or older.`;\n    }\n    return this;\n  }\n\n  isCurrency(customMessage) {\n    if (!this.status || !this.value) {\n      return this;\n    }\n    if (centsRegex.test(this.value)) {\n      return this;\n    }\n    if (!dollarRegex.test(this.value.replace(/,/g, ''))) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a value in dollars and/or cents.`;\n    }\n    return this;\n  }\n\n  isGreaterThan(min, customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Field'} must be greater than ${min}.`;\n    if (!this.status || !this.value || !_isNumber(min)) {\n      return this;\n    }\n    try {\n      const val = parseFloat(this.value);\n      if (val <= min) {\n        this.status = false;\n        this.message = msg;\n      }\n    } catch (e) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isGreaterThanEqual(min, customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Field'} must be greater than or equal to ${min}.`;\n    if (!this.status || !this.value || !_isNumber(min)) {\n      return this;\n    }\n    try {\n      const val = parseFloat(this.value);\n      if (val < min) {\n        this.status = false;\n        this.message = msg;\n      }\n    } catch (e) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isLessThan(max, customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Field'} must be less than ${max}.`;\n    if (!this.status || !this.value || !_isNumber(max)) {\n      return this;\n    }\n    try {\n      const val = parseFloat(this.value);\n      if (val >= max) {\n        this.status = false;\n        this.message = msg;\n      }\n    } catch (e) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isLessThanEqual(max, customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Field'} must be less than or equal to ${max}.`;\n    if (!this.status || !this.value || !_isNumber(max)) {\n      return this;\n    }\n    try {\n      const val = parseFloat(this.value);\n      if (val > max) {\n        this.status = false;\n        this.message = msg;\n      }\n    } catch (e) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isStringLength(min = 0, max = 100000, customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Field'} string length must be between ${min} and ${max} characters long.`;\n\n    if (!this.status || !this.value) {\n      return this;\n    }\n    if (this.value.length < min || this.value.length > max) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isPassword(customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Password'} must contain at least 8 characters.`;\n\n    if (!this.status || !this.value) {\n      return this;\n    }\n    if (this.value.length < 8) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isPasswordMatch(passwordConfirm, customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Password'} confirmation does not match.`;\n    if (!this.status || !this.value) {\n      return this;\n    }\n    if (this.value !== passwordConfirm) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isNotPOBox(customMessage) {\n    const msg = customMessage || `${this.fieldName || 'Address'} cannot be a post office box.`;\n    if (!this.status || !this.value) {\n      return this;\n    }\n    const\n      valuelc = _trim(this.value.toLowerCase()),\n      isPO = _reduce(poBoxMatchStrings, (collect, str) => {\n        if (valuelc.indexOf(str) === 0) {\n          return true;\n        }\n        return collect;\n      }, false);\n\n    if (isPO) {\n      this.status = false;\n      this.message = msg;\n    }\n    return this;\n  }\n\n  isSSN(customMessage) {\n    if (this.status && this.value && !ssnRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a valid Social Security number.`;\n    }\n    return this;\n  }\n\n  isEIN(customMessage) {\n    if (this.status && this.value && !einRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be a valid EIN number.`;\n    }\n    return this;\n  }\n\n  isDomainName(customMessage) {\n    if (this.status && this.value && !domainNameRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must have a valid domain name format.`;\n    }\n    return this;\n  }\n\n  isAddressLine2(customMessage) {\n    if (this.status && this.value && integerRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must have a suite or other indicator.`;\n    }\n    return this;\n  }\n\n  containsEmojis(customMessage) {\n    if (this.status && this.value && emojiRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must not include emoji.`;\n    }\n    return this;\n  }\n\n  hasInvalidChars(customMessage) {\n    if (this.status && this.value && !invalidCharsRegex.test(this.value)) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must not include invalid characters.`;\n    }\n    return this;\n  }\n\n  isSameState(state, customMessage) {\n    if (this.status && this.value && this.value !== state) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must be the same as your domestic jurisdiction`;\n    }\n    return this;\n  }\n\n  isEmptyString(customMessage) {\n    if ( emptyStringRegex.test(this.value) ) {\n      this.status = false;\n      this.message = customMessage || `${this.fieldName || 'Field'} must not be blank.`;\n    }\n    return this;\n  }\n}\n","let\n  flows = {\n    complete_cora: 'default',\n    complete_corp: 'default',\n    complete_ein: 'default',\n    complete_llc: 'default',\n    complete_wfg: 'default',\n    complete_nypub: 'default',\n    register_accounting: 'default',\n    register_amendment: 'default',\n    register_banking: 'default',\n    register_cora: 'default',\n    register_ein: 'default',\n    register_goodstanding: 'default',\n    register_nameres: 'default',\n    register_nypub: 'default',\n    register_smb_growth: 'default',\n    register_smb_website_ecomm: 'default',\n    register_wfg: 'default',\n    register_business_kit: 'default',\n    register_stock_setup: 'default',\n    registration: 'default',\n    business_name_generator: 'default',\n    register_vanity: 'default'\n  };\n\nexport const setFlows = (data) => {\n  const { flows: initFlows = null } = data;\n\n  if (initFlows) {\n    flows = initFlows;\n  }\n};\n\n\nexport const getCompleteCoRAFlowId = () => {\n  return flows.complete_cora || 'default';\n};\n\nexport const getCompleteCorpFlowId = () => {\n  return flows.complete_corp || 'default';\n};\n\nexport const getCompleteEINFlowId = () => {\n  return flows.complete_ein || 'default';\n};\n\nexport const getCompleteLLCFlowId = () => {\n  return flows.complete_llc || 'default';\n};\n\nexport const getCompleteNYPubFlowId = () => {\n  return flows.complete_nypub || 'default';\n};\n\nexport const getCompleteWFGFlowId = () => {\n  return flows.complete_wfg || 'default';\n};\n\nexport const getRegisterAccountingFlowId = () => {\n  return flows.register_accounting || 'default';\n};\n\nexport const getRegisterAmendmentFlowId = () => {\n  return flows.register_amendment || 'default';\n};\n\nexport const getRegisterBankingFlowId = () => {\n  return flows.register_banking || 'default';\n};\n\nexport const getRegisterCoRAFlowId = () => {\n  return flows.register_cora || 'default';\n};\n\nexport const getRegisterEINFlowId = () => {\n  return flows.register_ein || 'default';\n};\n\nexport const getRegisterGSFlowId = () => {\n  return flows.register_goodstanding || 'default';\n};\n\nexport const getRegisterNameresFlowId = () => {\n  return flows.register_nameres || 'default';\n};\n\nexport const getRegisterNYPubFlowId = () => {\n  return flows.register_nypub || 'default';\n};\n\nexport const getRegisterSMBGrowthFlowId = () => {\n  return flows.register_smb_website_ecomm || 'default';\n};\n\nexport const getRegisterSMBWebsiteFlowId = () => {\n  return flows.register_smb_growth || 'default';\n};\n\nexport const getRegisterWFGFlowId = () => {\n  return flows.register_wfg || 'default';\n};\n\nexport const getRegistrationFlowId = () => {\n  return flows.registration || 'default';\n};\n\nexport const getRegisterBusinessKitFlowId = () => {\n  return flows.register_business_kit || 'default';\n};\n\nexport const getBusinessNameGeneratorFlowId = () => {\n  return flows.business_name_generator || 'default';\n};\n\nexport const getRegisterVanityProductFlowId = () => {\n  return flows.register_vanity || 'default';\n};\n\nexport const getRegisterStockSetupFlowId = () => {\n  return flows.register_stock_setup || 'default';\n};\n","import moment from 'moment-timezone';\n\nexport const getDeadline = () => {\n  // Get today's date\n  const deadline = moment()\n    .tz('America/Chicago')\n    .hour(17)\n    .minute(0)\n    .second(0)\n    .millisecond(0); // DJL - consider replaceing moment and moment-timezone\n\n  if (deadline.isBefore(new Date())) {\n    deadline.add(1, 'days');\n  }\n  if (deadline.day() === 0) { // Sunday\n    deadline.add(1, 'days');\n  } else if (deadline.day() === 6) { // Saturday\n    deadline.add(2, 'days');\n  }\n  return deadline;\n};\n\n  /* eslint-disable max-statements */\nexport const getComplete = (expedite, expediteFees, deadline) => {\n  if (!expedite || !expediteFees || !expediteFees[expedite]) {\n    return null;\n  }\n\n  const complete = deadline.clone(),\n    exData = expediteFees[expedite],\n    { period, max_time: maxTime } = exData;\n\n  if (period === 'day') {\n    let dayComplete = complete.clone(),\n      timeLeft = maxTime;\n\n    while (timeLeft > 0) {\n      dayComplete = dayComplete.add(1, 'days');\n      if (dayComplete.day() === 6) {\n        dayComplete = dayComplete.add(2, 'days'); // Skip Weekends\n      }\n      timeLeft -= 1;\n    }\n    return dayComplete;\n  }\n  if (period === 'month') {\n    const monthComplete = complete.add(maxTime, 'months');\n    if (monthComplete.day() === 6) {\n      return monthComplete.add(2, 'days');\n    }\n    if (monthComplete.day() === 0) {\n      return monthComplete.add(1, 'days');\n    }\n    return monthComplete;\n  }\n\n  return complete.add(maxTime, 'weeks');\n};\n/* eslint-enable max-statements */\n\nexport const getDeadlineTimer = (deadline, callback) => {\n  return window.setTimeout(() => {\n    callback();\n  }, deadline.toDate().getTime() - new Date().getTime());\n};\n\nexport const getExpediteHeader = (expedite, expediteFees, timerCallback) => {\n  const deadline = getDeadline(),\n    complete = getComplete(expedite, expediteFees, deadline),\n    timer = getDeadlineTimer(deadline, timerCallback);\n\n  return { deadline, complete, timer };\n};\n","const storage = window.localStorage || null,\n  key = 'zenbusiness_is_free_account';\n\nlet isFreeAccount = storage ? (storage.getItem(key) === 'true') : false;\n\nexport const getIsFreeAccount = () => {\n  return isFreeAccount;\n};\n\nexport const setIsFreeAccount = (isSimulated) => {\n  isFreeAccount = !!isSimulated;\n  if (storage) {\n    storage.setItem(key, isFreeAccount);\n  }\n};\n\nexport const clearIsFreeAccount = () => {\n  isFreeAccount = '';\n};\n\nexport const resetIsFreeAccount = () => {\n  if (storage) {\n    storage.removeItem(key);\n  }\n  isFreeAccount = '';\n};\n","import _get from 'lodash/get';\nimport _isFunction from 'lodash/isFunction';\n\nlet apiKey = window.getInit?.()?.ZENBUSINESS_GOOGLE_MAPS_KEY;\n\nconst\n  loadJS = (callbackName) => {\n    const\n      src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&libraries=places&callback=${callbackName}`,\n      ref = window.document.getElementsByTagName('script')[0],\n      script = window.document.createElement('script');\n\n    script.src = src;\n    script.async = true;\n    ref.parentNode.insertBefore(script, ref);\n  };\n\nexport const initializeAPIKey = (response) => {\n  apiKey = _get(response, 'maps.googleMaps.apiKey', apiKey);\n};\n\nexport const initializeMaps = (callback) => {\n  const scriptCallback = `initGoogleMap_${Math.round(Math.random() * 1000000)}`,\n    loaded = !!_get(window, 'google.maps.Map', false);\n\n  if (loaded) {\n    if (_isFunction(callback)) {\n      callback();\n    }\n    return;\n  }\n  window[scriptCallback] = () => {\n    if (_isFunction(callback)) {\n      callback();\n    }\n    window[scriptCallback] = () => {};\n  };\n  loadJS(scriptCallback);\n};\n\nexport default {\n  initializeAPIKey,\n  initializeMaps\n};\n","import _get from 'lodash/get';\nimport { init as initIntercom } from '@zenbusiness/application-commons-intercom';\n\nlet INTERCOM_APPID = 'm71fhiyp'; // Default to Prod\nlet INTERCOM_ENABLED = 'true'; // Default to Prod\n\nexport const initializeAPIKey = (response) => {\n  INTERCOM_APPID = _get(response, 'intercom.appId', INTERCOM_APPID);\n  INTERCOM_ENABLED = _get(response, 'intercom.enabled', INTERCOM_ENABLED);\n  if (!window.zenIsMobile) {\n    initIntercom({\n      INTERCOM_APPID,\n      INTERCOM_ENABLED\n    });\n  }\n  return {\n    INTERCOM_APPID,\n    INTERCOM_ENABLED\n  };\n};\n\nexport const getConfig = () => {\n  return {\n    INTERCOM_APPID,\n    INTERCOM_ENABLED\n  };\n};\nexport default {\n  initializeAPIKey,\n  getConfig\n};\n","/* eslint-disable import/prefer-default-export */\nimport React from 'react';\nimport { URLS } from '../constants/website';\n\nconst CONTACT_US_PHRASE = 'contact us';\n\n/**\n * Helper method will look for specific phrases in the text (currently just 'contact us'), and make that text linkable\n * to information specific for the text (e.g. the \"Contact Info\" page).\n *\n * Thus, if replacements are made, the value returned is a react fragment instead of a plain string.\n */\nexport function replaceLinkablePhrases(text) {\n  // if the text string has a \"contact us\"value, replace it with an actual Link to the contact us page.\n  // in the future if we decide to add additional flags we can just update this code to parse out additional links.\n  let textToRender = text;\n  const contactUsIndex = text.indexOf(CONTACT_US_PHRASE);\n  if (contactUsIndex > 0) {\n    textToRender = (\n      <React.Fragment>\n        {text.substring(0, contactUsIndex)}\n        <a href={`/${URLS.CONTACT_US}`}>contact us</a>\n        {text.substring(contactUsIndex + CONTACT_US_PHRASE.length)}\n      </React.Fragment>\n    );\n  }\n\n  return textToRender;\n}\n","let orderDataSentDuringRegistration = {};\n\n/**\n * reset the dictionary of services sent during registration\n */\nexport const cleanOrderDataSentDuringRegistration = () => {\n  orderDataSentDuringRegistration = {};\n};\n\n/**\n * read the dictionary of services sent during registration\n */\nexport const getOrderDataSentDuringRegistration = () => {\n  return orderDataSentDuringRegistration;\n};\n\n/**\n * Preserve in memory a dictionary with the services that were sent during the registration process.\n * @param {*} orderData\n * @param {*} id\n */\nexport const setOrderDataSentDuringRegistration = (orderData, id) => {\n  if (!orderData || orderData.length === 0 || !Array.isArray(orderData)) {\n    return;\n  }\n  orderDataSentDuringRegistration[id] = orderData.reduce((map, { service }) => {\n    map[service] = service;\n    return map;\n  }, {});\n};\n\n/**\n * When updating an order verify that we're sending the same amount of order_data elements we sent during\n * the registration process.\n * @param {*} orderData\n * @param {*} id\n * @returns a filtered order_data list with the elements sent previously during registration\n */\nexport const validateOrderDataSentDuringRegistration = (orderData, id) => {\n  if (!orderDataSentDuringRegistration[id]) {\n    return [...orderData];\n  }\n  const result = orderData.filter(({ service }) => {\n    return orderDataSentDuringRegistration[id][service];\n  });\n  //in case the filter returns an empty array the best option is to send the entire orderData as it was created.\n  return result.length > 0 ? result : [...orderData];\n};\n","/* eslint-disable camelcase */\nimport _isNil from 'lodash/isNil';\nimport _isEmpty from 'lodash/isEmpty';\n\n/**\n * Complete data Order Types\n */\nconst CompleteOrderTypes = {\n  COMPLETED: 'completed',\n  LLC: 'llc',\n  CORP: 'corp',\n  REGISTERED_AGENT: 'registeredAgent',\n  WORRY_FREE: 'worryFree',\n  NY_PUBLICATION: 'nyPublication'\n};\n\n/**\n * Partial data Order Types\n */\nconst PartialOrderTypes = {\n  EIN: 'ein',\n  BUSINESS_LICENSE_REPORT: 'businessLicenseReport',\n  NAME_RESERVATION: 'nameReservation'\n};\n\n// Disable banking products for any customers\n// that it is presented to in FT 10.x\nexport const isBankingDisallowedInFlowtype = new RegExp(/^w1$|^ft10/);\n\n/**\n * Order Types\n * TODO Continue adding in more Order Types as found.\n */\nexport const OrderTypes = Object.assign({}, CompleteOrderTypes, PartialOrderTypes, {\n  INCOMPLETE: 'incomplete'\n});\n\nconst completeOrderTypeValues = Object.values(CompleteOrderTypes);\n\n/**\n * Determine if the order is complete based on the previous `businessOrderType` and what is being ordered.\n * @param {String} businessOrderType - Most recent company business order type.\n * @param {String} ignoreBusinessOrderType - In-progress business order type.\n * @returns {Boolean} `true` or `false`\n */\nexport const isOrderCompleteByType = (businessOrderType, ignoreBusinessOrderType) => {\n  if (!businessOrderType) {\n    return false;\n  }\n  if (businessOrderType === ignoreBusinessOrderType) {\n    return false;\n  }\n  return completeOrderTypeValues.includes(businessOrderType);\n};\n\n/**\n * Infer the order `status` based on the previous `businessOrderType` and what is being ordered.\n * @param {String} businessOrderType - Most recent company business order type.\n * @param {String} ignoreBusinessOrderType - In-progress business order type.\n * @returns {String} `complete` or `incomplete`\n */\nexport const inferOrderStatusByType = (businessOrderType, ignoreBusinessOrderType) => {\n  return isOrderCompleteByType(businessOrderType, ignoreBusinessOrderType) ? 'complete' : 'incomplete';\n};\n\nconst removeServicesWithNullPrice = (order) => {\n  const { order_data: orderData = [], order_items: orderItems = [] } = order;\n  const servicesWithNullPrice = orderItems.reduce((map, { price, service }) => {\n    if (_isNil(price)) {\n      map[service] = service;\n    }\n    return map;\n  }, {});\n\n  if (_isEmpty(servicesWithNullPrice)) {\n    return { ...order };\n  }\n\n  const order_data = orderData.filter(({ service }) => {\n    return !servicesWithNullPrice[service];\n  });\n  const order_items = orderItems.filter(({ service }) => {\n    return !servicesWithNullPrice[service];\n  });\n\n  return { ...order, order_data, order_items };\n};\n\nconst removeServicesThatAreNotInBothArrays = (order) => {\n  const { order_data: orderData = [], order_items: orderItems = [] } = order;\n  const order_data = orderData.filter((data) => {\n    return orderItems.find(({ service }) => { return service === data.service; });\n  });\n  const order_items = orderItems.filter((item) => {\n    return orderData.find(({ service }) => { return service === item.service; });\n  });\n\n  return { ...order, order_data, order_items };\n};\n\n/**\n  * Cleans up the order_data and order_items to avoid known issues;\n  * @param {Object} order\n  * @return {Object} a new order object\n*/\nexport const cleanOrderData = (order) => {\n  if (!order) {\n    return order;\n  }\n  const orderWithoutNullPrices = removeServicesWithNullPrice(order);\n  return removeServicesThatAreNotInBothArrays(orderWithoutNullPrices);\n};\n","const storage = window.localStorage || null,\n  key = 'zenbusiness_partner',\n  timerKey = 'zenbusiness_partner_timer',\n  entryPointGroupKey = 'zenbusiness_entry_point_group',\n  attributionKey = 'zenbusiness_attribution',\n  pfKey = 'pf',\n  truicKey = 'TRUiC',\n  allowedHosts = [\n    'www.zenbusiness.com',\n    'www.dev.zenbusiness.com',\n    'local.zenbusiness.com',\n    'zenbusiness.com',\n    'dev.zenbusiness.com'\n  ],\n  timeout = 30 * 24 * 60 * 60 * 1000,\n  processTimer = () => {\n    const timerStr = storage ? storage.getItem(timerKey) || '' : '';\n    if (!timerStr) {\n      return 0;\n    }\n    return parseInt(timerStr, 10);\n  };\n\nlet partner = storage ? storage.getItem(key) || '' : '',\n  timer = processTimer(),\n  entryPointGroup = storage ? storage.getItem(entryPointGroupKey) || '' : '',\n  truicEnabled = false,\n  attribution = storage ? storage.getItem(attributionKey) || '' : '';\n\nconst storeInfo = (p, epg, attr) => {\n    partner = p;\n    entryPointGroup = epg;\n    attribution = attr;\n\n    if (storage) {\n      storage.setItem(key, p);\n      storage.setItem(entryPointGroupKey, epg);\n      storage.setItem(attributionKey, attr);\n    }\n  },\n  initializePartner = () => {\n    let removeTimer = false;\n    if (partner === pfKey) {\n      storeInfo(pfKey, pfKey, attribution || pfKey); // Make sure entry point group is set, but keep attribution unless is not set\n      removeTimer = true;\n    } else {\n      removeTimer = true;\n    }\n    if (removeTimer && storage) {\n      timer = 0;\n      storage.removeItem(timerKey);\n    }\n  },\n  getStoredItem = (storageKey) => {\n    return storage ? storage.getItem(storageKey) || '' : '';\n  },\n  setStoredItem = (storageKey, value) => {\n    if (storage) {\n      if (value) {\n        storage.setItem(storageKey, value);\n      } else {\n        storage.removeItem(storageKey);\n      }\n    }\n  };\n\ninitializePartner();\n\n// This function should only be used to initialize tests.\nexport const setupTest = (initPartner, initEntryPointGroup, initTimer, initAttribution) => {\n  partner = initPartner;\n  entryPointGroup = initEntryPointGroup;\n  attribution = initAttribution || initPartner;\n  timer = initTimer;\n};\n\n// Only needed for tests - do not use in normal code\nexport const getTimer = () => {\n  return timer;\n};\n\nexport const getPartner = () => {\n  return partner;\n};\n\nexport const getEntryPointGroup = () => {\n  return entryPointGroup;\n};\n\nexport const getAttribution = () => {\n  return attribution;\n};\n\nexport const setPartner = (newPartner, newEntryPointGroup, newAttribution) => {\n  partner = newPartner;\n  entryPointGroup = newEntryPointGroup || newPartner;\n  attribution = newAttribution || newPartner;\n  timer = 0;\n  setStoredItem(timerKey, 0);\n  setStoredItem(key, newPartner);\n  setStoredItem(entryPointGroupKey, newEntryPointGroup);\n  setStoredItem(attributionKey, newAttribution);\n};\n\nexport const getCampaignmedium = () => {\n  return getStoredItem('campaignmedium');\n};\n\nexport const setCampaignmedium = (campaignmedium) => {\n  setStoredItem('campaignmedium', campaignmedium);\n};\n\nexport const getCampaignSource = () => {\n  return getStoredItem('campaignsource');\n};\n\nexport const setCampaignSource = (campaignsource) => {\n  setStoredItem('campaignsource', campaignsource);\n};\n\nexport const getCampaignName = () => {\n  return getStoredItem('campaignname');\n};\n\nexport const setCampaignName = (campaignname) => {\n  setStoredItem('campaignname', campaignname);\n};\n\nexport const isTRUiC = () => {\n  return truicEnabled && partner === truicKey;\n};\n\nexport const isPF = () => {\n  return !isTRUiC() && entryPointGroup === pfKey;\n};\n\nexport const isTRUiCAttribution = () => {\n  return truicEnabled && attribution === truicKey;\n};\n\nexport const setPartners = (data) => {\n  const { products = { truic: false } } = data;\n\n  truicEnabled = products.truic || false;\n};\n\nexport const resetPartnerStorage = () => {\n  if (storage) {\n    storage.removeItem(key);\n    storage.removeItem(timerKey);\n    storage.removeItem(entryPointGroupKey);\n    storage.removeItem(attributionKey);\n    storage.removeItem('affiliateId');\n    storage.removeItem('bannerId');\n    storage.removeItem('campaignmedium');\n    storage.removeItem('campaignname');\n    storage.removeItem('campaignsource');\n    storage.removeItem('initialization/visitor');\n    storage.removeItem('shareASale');\n  }\n  partner = '';\n  timer = 0;\n  entryPointGroup = '';\n  attribution = '';\n  truicEnabled = false;\n};\n\n/* eslint-disable max-statements */\nconst\n  checkNonTruicURLPartner = (referrer, refParse) => {\n    let urlPartner = '';\n    // See if it is a partner landing page (anything with '/p/')\n    const pIndex = referrer.indexOf('/p/');\n    if (pIndex >= 0) {\n      const pathname = refParse.pathname;\n      urlPartner = pathname.replaceAll('/p/', '');\n      urlPartner = urlPartner.replaceAll('/', '');\n      urlPartner = urlPartner.replaceAll('-', '_');\n      return urlPartner;\n    }\n    return pfKey;\n  },\n  /*******************************\n   * The algorithm for determining the partner/affiliate\n   *\n   *  if there is a partner param, set the partner to the parameter UNLESS it is TRUiC. If it is TRUiC, set partner to PF and attribution to TRUiC\n   *  if there is a referrer:\n   *   if there is NO partner param:\n   *     if the referrer is a TRUiC landing page (/truic/*), set the partner to PF and the attribution to TRUiC\n   *     else if the referrer is a partner landing page (/p/*), set the partner and attribution to the partbner\n   *     else set the partner and attribution to PF\n   *\n   *  if no partner has been defined yet (no partner param and no referrer):\n   *    if the current URL is /r/registration-truic/init, set the partner and attribution to TRUiC\n   *    else if the current URL is /r/registration-truic/*, set the partner to PF and the attribution to TRUiC\n   *    else leave the values as-is as this is a page refresh with a flow.\n   */\n  processPartnerTruicToPFFlow = (referrer, paramPartner, paramEntryPointGroup) => {\n    let newPartner = paramPartner || '';\n\n    // Here, we want to ensure that if the TRUiC key is passed as paramPartner, it is overwritten as\n    // PF to force the flow through the PF flow.\n    if (newPartner === truicKey) {\n      newPartner = pfKey;\n    }\n    let newEntryPointGroup = paramEntryPointGroup || newPartner;\n    if (newEntryPointGroup === truicKey) {\n      newEntryPointGroup = pfKey;\n    }\n    let newAttribution = newPartner;\n    // If paramPartner is TRUiC, set the attribution to TRUiC while the partner will be PF (see above)\n    if (paramPartner === truicKey) {\n      newAttribution = truicKey;\n    }\n\n    if (!newPartner) {\n      if (referrer && referrer !== document.location.href) {\n        try {\n          const refParse = new URL(referrer);\n          if (allowedHosts.includes(refParse.hostname)) {\n            const truicIndex = referrer.indexOf('/truic');\n            if (truicIndex >= 0) {\n              // If is a TRUiC landing page, set the urlPartner to PF and the truicToPFFlow to true\n              newPartner = pfKey;\n              newEntryPointGroup = newEntryPointGroup || pfKey;\n              newAttribution = truicKey;\n            } else {\n              newPartner = checkNonTruicURLPartner(referrer, refParse);\n              newEntryPointGroup = newEntryPointGroup || newPartner;\n              newAttribution = newPartner;\n            }\n          }\n        } catch {\n          newPartner = newPartner || pfKey;\n          newEntryPointGroup = newEntryPointGroup || pfKey;\n          newAttribution = newAttribution || pfKey;\n        }\n      }\n    }\n\n    // If there is no new partner, then there is no referrer. Process accordingly\n    if (!newPartner && !newEntryPointGroup) {\n      if (document.location.href.includes('/r/registration-truic/init')) {\n        const resetVisit = partner !== truicKey || entryPointGroup !== truicKey;\n        storeInfo(truicKey, truicKey, truicKey);\n        return resetVisit;\n      }\n      // Here, unless TRUiC is set as the existing partner, do not allow direct access\n      // to the TRUiC flow. Force to PF with TRUiC attribution\n      if (document.location.href.includes('/r/registration-truic/') && partner !== truicKey) {\n        const resetVisit = partner !== pfKey || entryPointGroup !== pfKey;\n        storeInfo(pfKey, pfKey, truicKey);\n        return resetVisit;\n      }\n      // Otherwise, this is a page refresh within a flow - keep things as-is\n      return false;\n    }\n\n    // If the partner or entry point group is not PF, set both equal\n    const nonTRUiCPartner =\n      (newPartner && newPartner !== pfKey ? newPartner : '') ||\n      (newEntryPointGroup && newEntryPointGroup !== pfKey ? newEntryPointGroup : '') ||\n      '';\n    if (nonTRUiCPartner) {\n      const resetVisit = partner !== nonTRUiCPartner || entryPointGroup !== nonTRUiCPartner;\n      storeInfo(nonTRUiCPartner, nonTRUiCPartner, nonTRUiCPartner);\n      return resetVisit;\n    }\n\n    const resetVisit = partner !== newPartner || entryPointGroup !== newEntryPointGroup;\n    storeInfo(newPartner || pfKey, newEntryPointGroup || pfKey, newAttribution || pfKey);\n    return resetVisit;\n  },\n  processPartnerTruicFlow = (referrer, paramPartner, paramEntryPointGroup) => {\n    // Start by processing the document referrer. See if the referrer is from the zenbusiness.com domain.\n    let urlPartner = '';\n    if (referrer) {\n      try {\n        const refParse = new URL(referrer);\n        if (allowedHosts.includes(refParse.hostname)) {\n          // Next, check to see if it comes from a TRUiC landing page. Any page with \"truic\" in the URL is considered a TRUiC landing page\n          const truicIndex = referrer.indexOf('truic');\n          if (truicIndex >= 0) {\n            urlPartner = truicKey;\n          } else {\n            urlPartner = checkNonTruicURLPartner(referrer, refParse);\n          }\n        }\n      } catch {\n        urlPartner = pfKey;\n      }\n    }\n\n    if (!urlPartner && !paramPartner && !paramEntryPointGroup) {\n      return false;\n    }\n\n    // If the referrer is from a TRUiC landing page OR the paramParnter is set to TRUiC, set up for TRUiC\n    if (urlPartner === truicKey || paramPartner === truicKey) {\n      // Reset the visit if the partner or entryPointGroup has changed.\n      const resetVisit = partner !== truicKey || entryPointGroup !== truicKey;\n\n      // store the info and reset the timer if the timer is out\n      storeInfo(truicKey, truicKey, truicKey);\n      if (new Date().getTime() - timer > timeout) {\n        timer = new Date().getTime();\n        if (storage) {\n          storage.setItem(timerKey, `${timer}`);\n        }\n      }\n      return resetVisit;\n    }\n\n    // If the old partner is TRUiC, check the timer. If the time is valid, keep at triuc regardless of partner input.\n    if (partner === truicKey) {\n      if (new Date().getTime() - timer < timeout) {\n        return false; // No need to reset visit\n      }\n    }\n\n    // Clear the timer and continue processing\n    timer = 0;\n    if (storage) {\n      storage.removeItem(timerKey);\n    }\n\n    // Check for a non-TRUiC partner. If it is a partner (e.g. rvshare), process it. This only gets processed once.\n    const nonTRUiCPartner =\n      (urlPartner && urlPartner !== pfKey ? urlPartner : '') ||\n      (paramPartner && paramPartner !== pfKey ? paramPartner : '') ||\n      (paramEntryPointGroup && paramEntryPointGroup !== pfKey ? paramEntryPointGroup : '') ||\n      '';\n    if (nonTRUiCPartner) {\n      const resetVisit = partner !== nonTRUiCPartner || entryPointGroup !== nonTRUiCPartner;\n      storeInfo(nonTRUiCPartner, nonTRUiCPartner, nonTRUiCPartner);\n      return resetVisit;\n    }\n\n    // Check if the partner is not PF and also not TRUiC. If so, reset it (one and done), but don't reset the visit.\n    if (partner && partner !== pfKey && partner !== truicKey) {\n      storeInfo(pfKey, pfKey, pfKey);\n      return false;\n    }\n    // At this point, it is a personalization flow.\n    const resetVisit = partner !== pfKey || entryPointGroup !== pfKey;\n    storeInfo(pfKey, pfKey, pfKey);\n    return resetVisit;\n  };\n\nexport const processPartner = (referrer, paramPartner, paramEntryPointGroup) => {\n  if (window.truicToPFFlow) {\n    return processPartnerTruicToPFFlow(referrer, paramPartner, paramEntryPointGroup);\n  }\n  return processPartnerTruicFlow(referrer, paramPartner, paramEntryPointGroup);\n};\n\n// This will necessarily be run AFTER processPartner has executed.\n// DJL - NOTE - this method is essentially rote, but I am keeping it here for the\n// eventuality that checking the user's creation time will happen sometime in the future\nexport const processLogIn = (user) => {\n  const { custom_flow: userPartner = '' /*, created_datetime: createDate = ''*/ } = user;\n\n  // Check if the user is a TRUiC user.\n  if (userPartner && userPartner.toLowerCase() === truicKey.toLowerCase()) {\n    // Check if the partner is currently TRUiC. In this case, we know that the timer is still good, so just return.\n    if (partner === truicKey) {\n      return false;\n    }\n\n    /* DJL - do not use the created time for anything.\n    // If not, then we need to check the created date to see if we are within 30 days of creation\n    const createTime = Date.parse(createDate);\n    if (!isNaN(createTime) && (new Date().getTime() - createTime <= timeout)) {\n      // if under 30 days, set to TRUiC and reinitialize the timer\n      storeInfo(truicKey, truicKey);\n      timer = createTime;\n      if (storage) {\n        storage.setItem(timerKey, `${createTime}`);\n      }\n      return true;\n    }\n    */\n  }\n\n  // Now, check if the partner is TRUiC. This means the user, which an existing user, came in through a TRUiC link this time, even though\n  // they were not created as a TRUiC user. If so, leave it alone\n  if (partner === truicKey) {\n    return false;\n  }\n\n  // Next, check if the partner is set but is not PF. If so, leave it alone (they are currently in a partner pre-purchase).\n  if (partner && partner !== pfKey) {\n    return false;\n  }\n\n  // Finally, it is a PF user. Set the values appropriately. No need to reinitialize\n  storeInfo(pfKey, pfKey, pfKey);\n  return false;\n};\n","import _isEmpty from 'lodash/isEmpty';\nimport _trim from 'lodash/trim';\nimport { isLoggedIn } from './AuthService';\nimport Validator from './FieldValidator';\nimport { PAGE_STATUS } from '../constants/ui';\n\nconst codeToActionErrorMap = {\n  400: 'badRequest',\n  401: 'unauthorized',\n  404: 'notFound',\n  409: 'dataIntegrity',\n  500: 'serverError',\n  1000: 'duplicateEmail',\n  1018: 'processingError',\n  1020: 'paymentError',\n  1021: 'tokenError'\n};\n\nconst codeToDataIntegrityErrorMap = {\n  1019: 'matchingName'\n};\n\nconst codeToCardNumberErrorMap = {\n  1001: 'genericStripe',\n  1002: 'tryAgainStripe',\n  1003: 'insufficientFunds',\n  1004: 'debitCard',\n  1006: 'limitExceeded',\n  1007: 'notSupported',\n  1009: 'incorrectNumber',\n  1013: 'invalidNumber',\n  1015: 'invalidAmount',\n  1016: 'invalidCardType',\n  1017: 'invalidCard'\n};\n\nconst codeToCVCErrorMap = {\n  1008: 'incorrectCVC',\n  1011: 'invalidCVC'\n};\n\nconst codeToExpDateErrorMap = {\n  1005: 'expiredCard',\n  1012: 'incorrectDate'\n};\n\nconst codeToZipCodeErrorMap = {\n  1010: 'incorrectZip',\n  1014: 'invalidZip'\n};\n\nconst codeToPasswordErrorMap = {\n  1030: 'passwordStrength',\n  1031: 'passwordDictionary',\n  1032: 'passwordNoUserInfo',\n  1033: 'passwordHistory'\n};\n\nexport const allHandledPaymentErrors = {\n  ...codeToCardNumberErrorMap,\n  ...codeToCVCErrorMap,\n  ...codeToExpDateErrorMap,\n  ...codeToZipCodeErrorMap,\n  1000: codeToActionErrorMap[1000]\n};\n\nexport const paymentErrorButtons = {\n  badRequest: 'Please contact support',\n  cardNumberInvalid: 'Please fix your data',\n  cvcInvalid: 'Please fix your data',\n  dataIntegrity: 'Please contact support',\n  dataMissingError: 'Please fix your data',\n  debitCard: 'Please fix your data',\n  duplicateEmail: 'Please fix your data',\n  emailExists: 'Please sign in',\n  emailInvalid: 'Please fix the data',\n  emailUndeliverable: 'Please fix the data',\n  expDateInvalid: 'Please fix your data',\n  expDateFutureInvalid: 'Please fix your data',\n  expirationInvalid: 'Please fix your data',\n  expiredCard: 'Please fix your data',\n  genericStripe: 'Please contact bank',\n  incorrectCVC: 'Please fix your data',\n  incorrectDate: 'Please fix your data',\n  incorrectNumber: 'Please fix your data',\n  incorrectZip: 'Please fix your data',\n  insufficientFunds: 'Please contact bank',\n  invalidAmount: 'Please contact bank',\n  invalidCard: 'Please contact bank',\n  invalidCardType: 'Please contact bank',\n  invalidCVC: 'Please fix your data',\n  invalidNumber: 'Please fix your data',\n  invalidZip: 'Please fix your data',\n  limitExceeded: 'Please fix your data',\n  matchingName: 'Please fix your data',\n  notFound: 'Please contact support',\n  notSupported: 'Please contact bank',\n  passwordInvalid: 'Please fix your data',\n  paymentError: 'Please fix your data',\n  processingError: 'Please contact support',\n  serverError: 'Please contact support',\n  tokenError: 'Please contact support',\n  tryAgainStripe: 'Please try again',\n  unauthorized: 'Please contact support'\n};\n\nexport const paymentErrorMessages = {\n  badRequest: 'We were unable to create your order. Please contact support at (800) 480-6977 or by message below for assistance. (400)',\n  cardNumberInvalid: 'Your credit card number doesn’t look quite right. We need a valid credit card number.',\n  cvcInvalid: 'Your CVC number doesn’t look quite right. We need a valid CVC number',\n  dataIntegrity: 'We were unable to create your order. Please contact support at (800) 480-6977 or by message below for assistance. (409)',\n  dataMissingError: 'We are missing some required data for your order. Click the button to return to the information confirmation page to enter the necessary data.',\n  debitCard: 'We don’t support debit cards at this time. Please try a different card.',\n  duplicateEmail: 'An account for this email address has already been created. Go back to reenter a new email or log in with the account.',\n  emailExists: 'This email currently exists in the system. Please sign in before continuing.',\n  emailInvalid: 'The email address doesn’t look quite right. We need a valid email address.',\n  emailUndeliverable: 'This address doesn’t look like it can receive email. We need a valid email address.',\n  expDateInvalid: 'Your expiration date doesn’t look quite right. We need an expiration date formatted as MM/YYYY.',\n  expDateTwoDigitsYearInvalid: 'Your expiration date doesn’t look quite right. We need an expiration date formatted as MM/YY.',\n  expDateFutureInvalid: 'Your expiration date is in the past.',\n  expirationInvalid: 'You expiration date is not valid.',\n  expiredCard: 'Your credit card is expired. Please contact your card issuer for more information or use a different card.',\n  genericStripe: 'Your card issuer has declined this transaction. Please contact your card issuer for more information or try again with a different card.',\n  incorrectCVC: 'The CVC number is not correct for this card. Please check the number, or try a different card.',\n  incorrectDate: 'The expiration date is not correct for this card. Please check the expiration date, or try a different card.',\n  incorrectNumber: 'Your credit card number appears to be incorrect. Please check the number, or try a different card.',\n  incorrectZip: 'Your zip code appears to be incorrect for this card. Please check the zip code, or try a different card.',\n  insufficientFunds: 'Your card issuer has indicated that this card does not have sufficient funds for this order. Please contact your card issuer for more information or use a different card.',\n  invalidAmount: 'Your card issuer is not allowing a charge for this amount. Please contact your card issuer for more information, or you may try a different card.',\n  invalidCard: 'Your card issuer indicates that this card cannot be used. Please contact your card issuer for more information, or you may try a different card.',\n  invalidCardType: 'Your card issuer is not allowing this card to be used. Please contact your card issuer for more information, or you may try a different card.',\n  invalidCVC: 'Your CVC number doesn’t look quite right. We need a valid CVC number.',\n  invalidNumber: 'Your credit card number doesn’t look quite right. We need a valid credit card number.',\n  invalidZip: 'Your Zip code doesn’t look quite right. We need a valid Zip code.',\n  limitExceeded: 'This credit card has been declined too many times. You can try this card again in 24 hours, or you may try a different card.',\n  matchingName: 'You have already created an entity with this name. Back up and change the name.',\n  notFound: 'We were unable to create your order. Please contact support at (800) 480-6977 or by message below for assistance. (404)',\n  notSupported: 'This credit card can not be used for this purchase. Please contact your card issuer, or you may try a different card.',\n  passwordInvalid: 'Your password must contain at least 8 characters.',\n  passwordDictionary: 'password_dictionary_error',\n  passwordHistory: 'password_history_error',\n  passwordNoUserInfo: 'password_no_user_info_error',\n  passwordStrength: 'password_strength_error',\n  paymentError: 'Your payment failed. Please try a different card or contact support at (800) 480-6977 for assistance. (402)',\n  processingError: 'We were unable to process your credit card at this time. Please try again or, if the problem persists, contact support at (800) 480-6977 or by message below for assistance.',\n  serverError: 'We were unable to create your order. Please contact support at (800) 480-6977 or by message below for assistance. (500)',\n  tokenError: 'We were unable to process your credit card at this time. Please try again or, if the problem persists, contact support at (800) 480-6977 or by message below for assistance. (1021)',\n  tryAgainStripe: 'Your card issuer was unable to process this transaction, but requests that you should try again. If the problem persist, Please contact your card issuer for more information or use a different card.',\n  unauthorized: 'We were unable to create your order. Please contact support at (800) 480-6977 or by message below for assistance. (401)'\n};\n\nexport const analyzePaymentFields = (state, checkPassword, useTwoDigitsExpYear = false) => {\n  const\n    { cardNumber: cardNumberRaw, expDate, cvc, password } = state,\n    cardNumber = cardNumberRaw.split(' ').join(''),\n    loggedIn = isLoggedIn();\n\n  const\n    cardNumberError = loggedIn || new Validator(cardNumber, 'Card Number').isCreditCard().status ? '' : 'cardNumberInvalid',\n    cvcError = loggedIn || new Validator(cvc, 'CVC').isInteger().isStringLength(3, 4).status ? '' : 'cvcInvalid',\n    passwordError = !checkPassword || loggedIn || new Validator(password, 'Password').isPassword().status ? '' : 'passwordInvalid';\n  let expDateFutureError = '',\n    expDateFormatError = '';\n  if (useTwoDigitsExpYear) {\n    expDateFormatError = loggedIn || new Validator(expDate, 'Exp Date').isMonthTwoDigitsYear().status ? '' : 'expDateTwoDigitsYearInvalid';\n    expDateFutureError = loggedIn || new Validator(expDate, 'Exp Date').isFutureMonthTwoDigitsYear().status ? '' : 'expDateFutureInvalid';\n  } else {\n    expDateFormatError = loggedIn || new Validator(expDate, 'Exp Date').isMonthYear().status ? '' : 'expDateInvalid';\n    expDateFutureError = loggedIn || new Validator(expDate, 'Exp Date').isFutureMonthYear().status ? '' : 'expDateFutureInvalid';\n  }\n  const expDateError = expDateFormatError || expDateFutureError;\n\n\n  if (cardNumberError || expDateError || cvcError || passwordError) {\n    return {\n      cardNumberError,\n      expDateError,\n      cvcError,\n      passwordError,\n      actionError: ''\n    };\n  }\n  return null;\n};\n\nexport const analyzePaymentError = (actionError) => {\n  if (actionError === 0) {\n    return null;\n  }\n\n  return {\n    actionError: codeToActionErrorMap[actionError] || '',\n    cardNumberError: codeToCardNumberErrorMap[actionError] || '',\n    cvcError: codeToCVCErrorMap[actionError] || '',\n    dataIntegrityError: codeToDataIntegrityErrorMap[actionError] || '',\n    expDateError: codeToExpDateErrorMap[actionError] || '',\n    passwordError: codeToPasswordErrorMap[actionError] || '',\n    zipCodeError: codeToZipCodeErrorMap[actionError] || '',\n    fatalError:  actionError === 400 || actionError === 401 || actionError === 404 || actionError === 409 || (actionError >= 1000 && actionError <= 1999) ? 0 : 500\n  };\n};\n\nexport const analyzePaymentPageStatus = (state, checkPassword, checkTOS) => {\n  const { cardId, cardNumber, expDate, cvc, password, tosAgree, dataIntegrityError = 0, fatalError = 0 } = state,\n    tosIsOK = !checkTOS || tosAgree,\n    passwordIsOK = !checkPassword || !_isEmpty(_trim(password)),\n    loggedIn = isLoggedIn();\n\n  if (dataIntegrityError) {\n    return PAGE_STATUS.OK;\n  }\n  if (fatalError !== 0) {\n    return PAGE_STATUS.NEEDS_REQUIRED;\n  }\n  if (loggedIn) {\n    if (cardNumber) {\n      return !_isEmpty(cardNumber) && !_isEmpty(expDate) && !_isEmpty(cvc) && tosIsOK ? PAGE_STATUS.OK : PAGE_STATUS.NEEDS_REQUIRED;\n    }\n    return cardId && tosIsOK ? PAGE_STATUS.OK : PAGE_STATUS.NEEDS_REQUIRED;\n  }\n\n  /* eslint-disable max-len */\n  return !_isEmpty(cardNumber) && !_isEmpty(expDate) && !_isEmpty(cvc) && passwordIsOK && tosIsOK ? PAGE_STATUS.OK : PAGE_STATUS.NEEDS_REQUIRED;\n  /* eslint-enable max-len */\n};\n\n// The priority is the price and coupon data that is sent via the API\n// If a coupon is provided then we subtract the amount from the price that is sent.\n// Otherwise we attempt to use the hardcoded coupon associated with the plan level.\n// If that doesn't exist then we just display the price.\nexport const  calculatePlanPrice = (planPrice, planCoupon, coupon) => {\n  let price = planPrice;\n  if (coupon) {\n    price = planCoupon ? (price - planCoupon.amount) : coupon.price;\n  }\n\n  return price;\n};\n\n// Replace placeholder values with the actual coupon related pricing\nexport const generateCouponExplanation = (explanationRaw, discountedPrice, basePrice) => {\n  let explanation = explanationRaw || null;\n  if (explanation) {\n    if (discountedPrice) {\n      explanation = explanation.replace(/DISCOUNTED_PRICE/g, discountedPrice);\n    }\n    if (basePrice) {\n      explanation = explanation.replace(/BASE_PRICE/g, basePrice);\n    }\n\n  }\n  return explanation;\n};\n\n// helper function used by the registration plan details to return a generated coupon explanation based on\n// formation type, plan details and coupon.\nexport const getCouponExplanation = (type, plan, coupon) => {\n  const planPriceRaw = type === 'CORP' ? plan.corp.prices['1'] : plan.llc.prices['1'];\n  const planPrice = calculatePlanPrice(planPriceRaw, plan.coupon, coupon);\n  const explanation = generateCouponExplanation(coupon.explanation, planPrice, planPriceRaw);\n  return explanation;\n};\n","\nlet\n  enabled = true,\n  url = '',\n  environment = '',\n  installed = false;\n\nconst\n  loadJS = (callback) => {\n    const\n      ref = window.document.getElementsByTagName('script')[0],\n      script = window.document.createElement('script');\n\n    script.src = url;\n    script.async = true;\n    if (script.readyState) {\n      script.onreadystatechange = function() {\n        if (script.readyState === 'loaded' || script.readyState === 'complete') {\n          script.onreadystatechange = null;\n          installed = true;\n          callback();\n        }\n      };\n    } else {\n      script.onload = function() {\n        installed = true;\n        callback();\n      };\n    }\n    ref.parentNode.insertBefore(script, ref);\n  },\n  renderPlaid = (callback, linkToken, reinitialize) => {\n    window.Plaid.create({\n      clientName: 'ZenBusiness',\n      env: environment,\n      token: linkToken,\n      ...(reinitialize && { receivedRedirectUri: window.location.href }),\n      product: ['auth'],\n      onSuccess: (publicToken, metadata) => {\n        callback({ publicToken, metadata, error: null });\n      },\n      onExit: (error, metadata) => {\n        callback({ error, metadata });\n      }\n    }).open();\n  };\n\nexport const initializePlaid = (response) => {\n  const { plaid } = response;\n\n  enabled = plaid.enabled;\n  url = plaid.url;\n  environment = plaid.environment;\n};\n\nexport const displayPlaid = (callback, linkToken, reinitialize) => {\n  if (!enabled) {\n    callback({ publicToken: '', metadata: {} });\n    return;\n  }\n  if (installed) {\n    renderPlaid(callback, linkToken, reinitialize);\n    return;\n  }\n\n  loadJS(() => {\n    renderPlaid(callback, linkToken, reinitialize);\n  });\n};\n\nexport const isPlaidEnabled = () => {\n  return enabled;\n};\n\nexport default {\n  initializePlaid,\n  renderPlaid,\n  isPlaidEnabled\n};\n","import _findIndex from 'lodash/findIndex';\nimport _get from 'lodash/get';\nimport React from 'react';\n\nimport { getCoupon, isRAOfferEnabled,\n  getWebsiteToolsBundlePriceFromAddonOrStandalone,\n  getEinBusinessDocsBundleFromAddonOrStandalone } from './ProductService';\n\nexport const\n  defaultPlans = {\n    level1: {\n      id: 'default_ui_leve1',\n      llc: {\n        price: 129,\n        prices: {\n          1: 129,\n          12: 10.75\n        },\n        fees: 100\n      },\n      corp: {\n        price: 129,\n        prices: {\n          1: 129,\n          12: 10.75\n        },\n        fees: 100\n      },\n      expense_tracking_with_tax_filing: {\n        llc: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        corp: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        products: [\n          'expense_tracking',\n          'tax_filing'\n        ],\n        addons: [\n          'ny_publication'\n        ],\n        auto_includes: []\n      },\n      '1800_accountant': false,\n      anonymity: false,\n      annual_report_service: isRAOfferEnabled(),\n      banking: false,\n      banking_resolution: false,\n      basic_email: false,\n      business_license_report: false,\n      change_of_registered_agent: false,\n      corporate_docs: false,\n      cpa_consult: false,\n      domain_name_privacy: false,\n      domain_name_reg: false,\n      ein_creation: false,\n      expedite: 'standard',\n      formation: true,\n      initial_cpa_screening: true,\n      insurance: false,\n      ny_publication: false,\n      operating_agreement: true,\n      registered_agent_service: !isRAOfferEnabled(),\n      static_website: false,\n      tax_preparation: false,\n      worry_free_service: false,\n      addons: ['registered_agent_service', 'expedite', 'rush', 'ein_creation', 'worry_free_service', 'domain_name_reg', 'domain_name_privacy', 'static_website', 'basic_email', 'ny_publication', 'banking_resolution', 'corporate_docs' ],\n      auto_includes: []\n    },\n    level2: {\n      id: 'default_ui_level2',\n      llc: {\n        price: 249,\n        prices: {\n          1: 249,\n          12: 20.75\n        },\n        fees: 300\n      },\n      corp: {\n        price: 249,\n        prices: {\n          1: 249,\n          12: 20.75\n        },\n        fees: 300\n      },\n      expense_tracking_with_tax_filing: {\n        llc: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        corp: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        products: [\n          'expense_tracking',\n          'tax_filing'\n        ],\n        addons: [\n          'ny_publication'\n        ],\n        auto_includes: []\n      },\n      '1800_accountant': false,\n      anonymity: false,\n      annual_report_service: isRAOfferEnabled(),\n      banking: false,\n      banking_resolution: true,\n      basic_email: false,\n      business_license_report: false,\n      change_of_registered_agent: false,\n      corporate_docs: true,\n      cpa_consult: false,\n      domain_name_privacy: false,\n      domain_name_reg: false,\n      ein_creation: true,\n      expedite: 'priority',\n      formation: true,\n      initial_cpa_screening: true,\n      insurance: false,\n      ny_publication: false,\n      operating_agreement: true,\n      registered_agent_service: true,\n      static_website: false,\n      tax_preparation: false,\n      worry_free_service: true,\n      addons: [ 'expedite_to_rush_upgrade', 'domain_name_reg', 'domain_name_privacy', 'static_website', 'basic_email', 'ny_publication' ],\n      auto_includes: []\n    },\n    level3: {\n      id: 'default_ui_level3',\n      llc: {\n        price: 349,\n        prices: {\n          1: 349,\n          12: 29.08\n        },\n        fees: 100\n      },\n      corp: {\n        price: 349,\n        prices: {\n          1: 349,\n          12: 29.08\n        },\n        fees: 100\n      },\n      expense_tracking_with_tax_filing: {\n        llc: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        corp: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        products: [\n          'expense_tracking',\n          'tax_filing'\n        ],\n        addons: [\n          'ny_publication'\n        ],\n        auto_includes: []\n      },\n      '1800_accountant': false,\n      anonymity: false,\n      annual_report_service: isRAOfferEnabled(),\n      banking: false,\n      banking_resolution: true,\n      basic_email: true,\n      business_license_report: false,\n      change_of_registered_agent: false,\n      corporate_docs: true,\n      cpa_consult: false,\n      domain_name_privacy: true,\n      domain_name_reg: true,\n      ein_creation: true,\n      expedite: 'priority',\n      formation: true,\n      initial_cpa_screening: true,\n      insurance: false,\n      ny_publication: false,\n      operating_agreement: true,\n      registered_agent_service: true,\n      static_website: true,\n      tax_preparation: false,\n      worry_free_service: true,\n      addons: [ 'ny_publication' ],\n      auto_includes: []\n    },\n    raLevel1: {\n      id: 'default_ui_ra_level1',\n      llc: {\n        price: 99,\n        prices: {\n          1: 99,\n          12: 10\n        },\n        fees: 100\n      },\n      corp: {\n        price: 99,\n        prices: {\n          1: 99,\n          12: 10\n        },\n        fees: 100\n      },\n      expense_tracking_with_tax_filing: {\n        llc: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        corp: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        products: [\n          'expense_tracking',\n          'tax_filing'\n        ],\n        addons: [\n          'ny_publication'\n        ],\n        auto_includes: []\n      },\n      '1800_accountant': false,\n      anonymity: false,\n      banking: false,\n      banking_resolution: false,\n      basic_email: false,\n      business_license_report: false,\n      change_of_registered_agent: false,\n      cpa_consult: false,\n      domain_name_privacy: false,\n      domain_name_reg: false,\n      ein_creation: false,\n      expedite: 'priority',\n      formation: false,\n      initial_cpa_screening: false,\n      insurance: false,\n      ny_publication: false,\n      operating_agreement: false,\n      registered_agent_service: true,\n      static_website: false,\n      tax_preparation: false,\n      worry_free_service: false,\n      addons: [],\n      auto_includes: []\n    },\n    raLevel2: {\n      id: 'default_ui_ra_level2',\n      llc: {\n        price: 149,\n        prices: {\n          1: 149,\n          12: 10\n        },\n        fees: 100\n      },\n      corp: {\n        price: 149,\n        prices: {\n          1: 149,\n          12: 10\n        },\n        fees: 100\n      },\n      expense_tracking_with_tax_filing: {\n        llc: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        corp: {\n          fees: 300.0,\n          price: 12.41,\n          prices: {\n            12: 12.41,\n            1: 180.0\n          }\n        },\n        products: [\n          'expense_tracking',\n          'tax_filing'\n        ],\n        addons: [\n          'ny_publication'\n        ],\n        auto_includes: []\n      },\n      '1800_accountant': false,\n      anonymity: false,\n      banking: false,\n      banking_resolution: false,\n      basic_email: false,\n      business_license_report: false,\n      change_of_registered_agent: false,\n      cpa_consult: false,\n      domain_name_privacy: false,\n      domain_name_reg: false,\n      ein_creation: false,\n      expedite: 'priority',\n      formation: false,\n      initial_cpa_screening: false,\n      insurance: false,\n      ny_publication: false,\n      operating_agreement: false,\n      registered_agent_service: true,\n      static_website: false,\n      tax_preparation: false,\n      worry_free_service: true,\n      addons: [],\n      auto_includes: []\n    }\n  },\n  labels = {\n    nameAvailabilitySearch: '✓ Name availability search',\n    articlesIncorporation: '✓ Articles of incorporation',\n    stateFiling: '✓ State filing and verification',\n    chat: '✓ Real-time chat support',\n    dashboard: '✓ Personalized dashboard',\n    registeredAgent: '✓ Registered Agent',\n    changeOfAgent: '✓ Change of Registered Agent',\n    anonymity: '✓ Business address anonymity',\n    worryFree: '✓ Worry-Free Compliance',\n    ein: '✓ Employer ID Number (EIN)',\n    ein2553: '✓ Employer ID Number and Filing of Form 2553',\n    operatingAgreement: '✓ Operating agreement template & bylaws',\n    nyPublication: '✓ New York Publication',\n    banking: '✓ Business bank account',\n    bookkeeping: '✓ Bookkeeping',\n    priority: '✓ Faster Formation Speed',\n    rush: '✓ Fastest Formation Speed',\n    taxPreparation: '✓ Business tax preparation',\n    basicEmail: '✓ Business email address',\n    cpaConsult: '✓ Free Accounting Consultation',\n    initialCPAScreening: '✓ Free accounting consultation',\n    insurance: '✓ Free insurance quote',\n    domainName: '✓ Domain name registration',\n    domainNamePrivacy: '✓ Domain privacy protection',\n    staticWebsite: '✓ Corporate website',\n    bankingResolution: '✓ Banking resolution template',\n    corporateDocs: '✓ Business document templates library',\n    autoIncludes: 'One Year Free!',\n    annualReportService: 'Annual report service'\n  };\n\nlet plans = {},\n  packages = {},\n  // eslint-disable-next-line no-unused-vars\n  standalones = {},\n  orderPlanData = null;\n\nconst setStandaloneServicesByService = (standaloneServices) => {\n  return standaloneServices.reduce((formatted, service) => {\n    const key = _get(service, 'related_service_pricing.service', '');\n    if (formatted[key]) {\n      const item = formatted[key],\n        existingInterval = _get(item, 'related_service_pricing.interval', 'onetime'),\n        thisInterval = _get(service, 'related_service_pricing.interval', 'onetime');\n\n      formatted[key] = {\n        [existingInterval]: item,\n        [thisInterval]: service\n      };\n    } else {\n      formatted[key] = service;\n    }\n    return formatted;\n  }, {});\n};\n\nexport const getPlanLevel = (planLevel/*, domesticJurisdiction*/) => {\n  /*\n  const statePlans = plans[domesticJurisdiction || 'TX'],\n    plan = statePlans ? statePlans[planLevel] : null;\n  */\n  return plans[planLevel] || defaultPlans[planLevel];\n};\n\nexport const syncUpPlan = (data) => {\n  const { level, service, plan } = data;\n  const currentLevelPlan = getPlanLevel(level);\n  if (currentLevelPlan && currentLevelPlan.id !== service) {\n    plans[level] = plan || currentLevelPlan;\n    orderPlanData = data;\n  }\n};\n\nexport const setPlans = (data) => {\n  const { plans: initPlans = null, packages: initPkgs = null, standaloneServices: initSS = null } = data;\n  if (initPlans) {\n    plans = initPlans;\n  }\n  if (orderPlanData) {\n    syncUpPlan(orderPlanData);\n  }\n  if (initPkgs) {\n    packages = initPkgs;\n  }\n  if (initSS) {\n    standalones = setStandaloneServicesByService(initSS);\n  }\n};\n\nexport const isAutoIncludedInPlan = (plan, key) => {\n  if (!plan || !key) {\n    return false;\n  }\n  const\n    index = _findIndex(plan.auto_includes, (ai) => {\n      return ai === key;\n    });\n\n  return index >= 0;\n};\n\n// sometimes auto includes isn't populated we need to check addons\nexport const findItemInAddOns = (plan, key) => {\n  if (!plan || !key) {\n    return false;\n  }\n\n  const index = _findIndex(plan.addons, (ai) => {\n    return ai === key;\n  });\n\n  return index >= 0;\n};\n\nexport const getMinimumFormationPlanYearlyPrice = (/* domesticJurisdiction */) => {\n  const\n    plan = plans.level1 || defaultPlans.level1,\n    coupon = getCoupon(plan.id);\n\n  if (coupon) {\n    return coupon.price;\n  }\n\n  return plan.llc.prices['1'] || 0;\n};\n\nexport const getMinimumCoRAPlanYearlyPrice = (/*domesticJurisdiction*/) => {\n  const\n    plan = plans.raLevel1 || defaultPlans.raLevel1,\n    coupon = getCoupon(plan.id);\n\n  if (coupon) {\n    return coupon.price;\n  }\n\n  return plan.llc.prices['1'] || 0;\n};\n\n/* eslint-disable max-statements */\nexport const getPlanDetails = (planLevel, domesticJurisdiction, includeCallouts, removeCheckMarks, noExpedite, isSCorp) => {\n  const plan = getPlanLevel(planLevel, domesticJurisdiction),\n    toRemove = removeCheckMarks ? '✓ ' : '',\n    list = [];\n\n  if (plan.formation) {\n    list.push((<li key=\"formation1\">{labels.nameAvailabilitySearch.split(toRemove).join('')}</li>));\n    list.push((<li key=\"formation2\">{labels.articlesIncorporation.split(toRemove).join('')}</li>));\n    list.push((<li key=\"formation3\">{labels.stateFiling.split(toRemove).join('')}</li>));\n    list.push((<li key=\"formation4\">{labels.chat.split(toRemove).join('')}</li>));\n    list.push((<li key=\"formation5\">{labels.dashboard.split(toRemove).join('')}</li>));\n  }\n  if (!noExpedite && plan.expedite === 'priority') {\n    list.push((<li key=\"priority1\">{labels.priority.split(toRemove).join('')}</li>));\n  }\n  if (!noExpedite && plan.expedite === 'rush') {\n    list.push((<li key=\"rush1\">{labels.rush.split(toRemove).join('')}</li>));\n  }\n  if (plan.registered_agent_service) {\n    list.push((<li key=\"privacy1\">{labels.registeredAgent.split(toRemove).join('')}</li>));\n  } else if (isAutoIncludedInPlan(plan, 'registered_agent_service')) {\n    list.push((<li key=\"privacy1\">{labels.registeredAgent.split(toRemove).join('')} - {labels.autoIncludes}</li>));\n  }\n  if (plan.change_of_registered_agent) {\n    list.push((<li key=\"coa1\">{labels.changeOfAgent.split(toRemove).join('')}</li>));\n  }\n  if (plan.operating_agreement) {\n    list.push((<li key=\"opAgree1\">{labels.operatingAgreement.split(toRemove).join('')}</li>));\n  }\n  if (plan.annual_report_service) {\n    list.push((<li key=\"annualReportService1\">{labels.annualReportService.split(toRemove).join('')}</li>));\n  }\n  if (plan.ein_creation) {\n    if (isSCorp) {\n      list.push((<li key=\"ein1\">{labels.ein2553.split(toRemove).join('')}</li>));\n    } else {\n      list.push((<li key=\"ein1\">{labels.ein.split(toRemove).join('')}</li>));\n    }\n  }\n  if (plan.banking_resolution) {\n    list.push((<li key=\"bankingResolution1\">{labels.bankingResolution.split(toRemove).join('')}</li>));\n  }\n  if (plan.corporate_docs) {\n    list.push((<li key=\"corporateDocs1\">{labels.corporateDocs.split(toRemove).join('')}</li>));\n  }\n  if (plan.worry_free_service) {\n    list.push((<li key=\"worryFree1\">{labels.worryFree.split(toRemove).join('')}</li>));\n  } else if (isAutoIncludedInPlan(plan, 'worry_free_service')) {\n    list.push((<li key=\"worryFree1\">{labels.worryFree.split(toRemove).join('')} - {labels.autoIncludes}</li>));\n  }\n  if (plan.domain_name_reg) {\n    list.push((<li key=\"domainName1\">{labels.domainName.split(toRemove).join('')}</li>));\n  } else if (isAutoIncludedInPlan(plan, 'domain_name_reg')) {\n    list.push((<li key=\"domainName1\">{labels.domainName.split(toRemove).join('')} - {labels.autoIncludes}</li>));\n  }\n  if (plan.domain_name_privacy) {\n    list.push((<li key=\"domainNamePrivacy1\">{labels.domainNamePrivacy.split(toRemove).join('')}</li>));\n  } else if (isAutoIncludedInPlan(plan, 'domain_name_privacy')) {\n    list.push((<li key=\"domainNamePrivacy1\">{labels.domainNamePrivacy.split(toRemove).join('')} - {labels.autoIncludes}</li>));\n  }\n  if (plan.basic_email) {\n    list.push((<li key=\"basicEmail1\">{labels.basicEmail.split(toRemove).join('')}</li>));\n  } else if (isAutoIncludedInPlan(plan, 'basic_email')) {\n    list.push((<li key=\"basicEmail1\">{labels.basicEmail.split(toRemove).join('')} - {labels.autoIncludes}</li>));\n  }\n  if (plan.static_website) {\n    list.push((<li key=\"staticWebsite1\">{labels.staticWebsite.split(toRemove).join('')}</li>));\n  } else if (isAutoIncludedInPlan(plan, 'static_website')) {\n    list.push((<li key=\"staticWebsite1\">{labels.staticWebsite.split(toRemove).join('')} - {labels.autoIncludes}</li>));\n  }\n  if (plan.initial_cpa_screening) {\n    list.push((<li key=\"initialCPAScreening1\">{labels.initialCPAScreening.split(toRemove).join('')}</li>));\n  }\n  if (plan.anonymity) {\n    list.push((<li key=\"anonymity1\">{labels.anonymity.split(toRemove).join('')}</li>));\n  }\n  if (plan.ny_publication) {\n    list.push((<li key=\"nyPub1\">{labels.nyPublication.split(toRemove).join('')}</li>));\n  }\n  if (plan.banking) {\n    list.push((<li key=\"banking1\">{labels.banking.split(toRemove).join('')}</li>));\n  }\n  if (plan.cpa_consult) {\n    list.push((<li key=\"cpaConsult1\">{labels.cpaConsult.split(toRemove).join('')}</li>));\n  }\n  if (plan.tax_preparation) {\n    list.push((<li key=\"taxPreparation1\">{labels.taxPreparation.split(toRemove).join('')}</li>));\n  } else if (isAutoIncludedInPlan(plan, 'tax_preparation')) {\n    list.push((<li key=\"taxPreparation1\">{labels.taxPreparation.split(toRemove).join('')} - {labels.autoIncludes}</li>));\n  }\n  if (plan.insurance) {\n    list.push((<li key=\"insurance1\">{labels.insurance.split(toRemove).join('')}</li>));\n  }\n  return list;\n};\n/* eslint-enable max-statements */\n\nexport const getExpenseTrackerAndTaxFilingPlanYearlyPrice = (businessType, /*domesticJurisdiction*/) => {\n  if (packages.expense_tracking_with_tax_filing) {\n    return packages.expense_tracking_with_tax_filing[businessType === 'LLCX' ? 'llc' : 'corp'].prices['1'] || 0;\n  }\n  const plan = defaultPlans.raLevel1;\n\n  return plan.expense_tracking_with_tax_filing[businessType === 'LLCX' ? 'llc' : 'corp'].prices['1'] || 0;\n};\n\nexport const getEINBusinessDocsBundlePrice = (businessType) => {\n  const priceFromAddonsOrStandalone = getEinBusinessDocsBundleFromAddonOrStandalone();\n  if (priceFromAddonsOrStandalone) {\n    return priceFromAddonsOrStandalone;\n  }\n  if (packages.ein_business_docs_bundle) {\n    return packages.ein_business_docs_bundle[businessType === 'LLCX' ? 'llc' : 'corp'].prices['1'] || 0;\n  }\n  return 0;\n};\n\nexport const getWebsiteToolsBundleYearlyPrice = (businessType) => {\n  const priceFromAddonsOrStandalone = getWebsiteToolsBundlePriceFromAddonOrStandalone();\n  if (priceFromAddonsOrStandalone) {\n    return priceFromAddonsOrStandalone;\n  }\n  if (packages.website_tools_bundle) {\n    return packages.website_tools_bundle[businessType === 'LLCX' ? 'llc' : 'corp'].prices['1'] || 0;\n  }\n  return 0;\n};\n\nexport const getPackage = (serviceName, interval) => {\n  const pkg = packages[serviceName];\n  if (pkg) {\n    return pkg[interval] || pkg;\n  }\n  return null;\n};\n","import _get from 'lodash/get';\nimport { getCompanyType } from './PlanUtils';\nimport {\n  getBankingResolutionPrice,\n  getBasicEmailYearlyPrice,\n  getCorporateDocsPrice,\n  getCoupon,\n  getDomainNamePrivacyYearlyPrice,\n  getDomainNameYearlyPrice,\n  getEINPrice,\n  getExpeditePriorityPrice,\n  getExpediteRushPrice,\n  getOpAgreementPrice,\n  getStaticWebsiteYearlyPrice,\n  getWFGYearlyPrice,\n  isBankingResolutionEnabled,\n  isBasicEmailEnabled,\n  isCorporateDocsEnabled,\n  isDomainNameEnabled,\n  isDomainNamePrivacyEnabled,\n  isEINEnabled,\n  isOpAgreementEnabled,\n  isStaticWebsiteEnabled,\n  isWFGEnabled\n} from './ProductService';\nimport { getPlanLevel, findItemInAddOns } from './PlanService';\n\n\n/**\n * Exports Utility functions used for accessing and calculating\n * prices for plans and add-on services\n */\nconst DEFAULT_COUPON = {\n  amount: 0,\n  coupon_uuid: '',\n  external_coupon_id: ''\n};\n\n/** The follow three functions are used to share data between third party trackers that are called at different times,\n * and share similar data as purchase_price.\n */\nconst purchasePriceKey = 'purchase_price';\nconst getPurchasePrice = () => {\n  if (window.localStorage) {\n    return Number(window.localStorage.getItem(purchasePriceKey));\n  }\n  return null;\n};\nconst setPurchasePrice = (purchasePrice) => {\n  if (window.localStorage) {\n    window.localStorage.setItem(purchasePriceKey, String(purchasePrice));\n  }\n};\nconst deletePurchasePrice = ()  => {\n  if (window.localStorage) {\n    window.localStorage.removeItem(purchasePriceKey);\n  }\n};\n\nconst getServicePricingFromPlan = (service, plan) => { return _get(plan, ['servicePrices', service], null) ?? _get(plan, ['service_prices', service], null); };\nconst getCouponById = (couponId, coupons) => { return coupons[couponId] || null; };\nconst getCouponIdFromPricing = (pricing) => { return pricing.coupon || ''; };\nconst calculateDiscountedPrice = (priceAmount, couponAmount) => { return priceAmount - (couponAmount || 0); };\nconst calculateCouponDiscountPercent = (priceAmount, couponAmount) => { return Math.floor(((couponAmount || 0) / priceAmount) * 100); };\nconst getCouponForService = (servicePricing, coupons) => { return getCouponById(getCouponIdFromPricing(servicePricing), coupons) || DEFAULT_COUPON; };\nconst getPriceAndCouponForService = (service, plan, coupons) => {\n  const\n    servicePricing = getServicePricingFromPlan(service, plan),\n    servicePrice = servicePricing ? servicePricing.price : null,\n    serviceCouponUUID = servicePricing ? servicePricing.coupon : null,\n    serviceCoupon = getCouponById(serviceCouponUUID, coupons),\n    serviceCouponAmount = serviceCoupon ? serviceCoupon.amount : 0;\n  return { servicePrice, serviceCouponAmount };\n};\n\n/**\n * @param {Object} plan\n * @param {Object} coupons\n * @param {String} service\n * @returns {Number} Percentage the discount off the total price represents (rounded down)\n * should be used for text display NOT for calculating price in checkout\n */\nconst getDiscountPercentForService = (service, plan, coupons) => {\n  const servicePricing = getServicePricingFromPlan(service, plan);\n  const coupon = getCouponForService(servicePricing, coupons);\n  return calculateCouponDiscountPercent(servicePricing.price, coupon.amount);\n};\n\n\n// TODO: Refactor this layer to use an interval are and coupon calc always\n/**\n *\n * @param {Object} service\n * @param {Object} plan\n * @returns {Number} service price\n */\nconst getYearlyPriceForService = (service, plan) => {\n  return getServicePricingFromPlan(service, plan).price;\n};\n\nconst getMonthlyPriceForService = (service, plan) => {\n  return Math.ceil(getYearlyPriceForService(service, plan) / 12);\n};\n\n/**\n * @param {String} service name\n * @param {Object} plan\n * @param {Object} coupons\n * @returns {Number} representing the final price of service for a particular plan after discounts\n */\nconst getFirstYearPriceForService = (service, plan, coupons) => {\n  const servicePricing = getServicePricingFromPlan(service, plan);\n  const coupon = getCouponForService(servicePricing, coupons);\n  return calculateDiscountedPrice(servicePricing.price, coupon.amount);\n};\n\n\nconst calculatePlanPrice = (planPrice, planCoupon, coupon) => {\n  let price = planPrice;\n  if (coupon) {\n    price = planCoupon ? (price - planCoupon.amount) : coupon.price;\n  }\n  return price;\n};\n\nconst calculateItemTotalToday = (isActive, prices) => {\n  return isActive ? prices.today : 0;\n};\n\nconst getOneTimePrices = (price, priceFees) => {\n  const fees = priceFees ? priceFees.fees || 0 : 0;\n\n  return {\n    today: price + fees,\n    fees,\n    nextYear: 0,\n    perYear: 0\n  };\n};\n\nconst getPeriodicPrices = (yearlyPrice, priceFees) => {\n  const fees = priceFees ? priceFees.fees || 0 : 0,\n    retVal = { today: fees + yearlyPrice, fees, nextYear: yearlyPrice, perYear: yearlyPrice };\n  return retVal;\n};\n\n\n/**\n *\n * @param {Object} fees\n * @param {String} domesticJurisdiction\n * @returns\n */\nconst getStateFees = (fees, domesticJurisdiction) => {\n  return fees.filingFees[domesticJurisdiction];\n};\n\n/**\n * @param {Boolean} itemBeingPurchased\n * @param {String} itemKey - name of key in plan eg \"static_website\"\n * @param {Boolean} isItemEnabled\n * @param {Boolean} periodicPrice - annual vs one time fee\n * @param {Number} fee - cost of the item\n * @param {Object} plan - for looking up if the item is an add on\n * @returns {Number}\n */\nconst getAddOnItemFee = (itemBeingPurchased, itemKey, isItemEnabled, periodicPrice, fee, plan) => {\n  const prices = (periodicPrice) ? getPeriodicPrices(fee, null) : getOneTimePrices(fee, null);\n  return calculateItemTotalToday(\n    itemBeingPurchased && isItemEnabled && findItemInAddOns(plan, itemKey),\n    prices\n  );\n};\n\n/**\n * calculate all the add on fees\n * @param {Object} purchase items\n * @param {Object} plan\n * @returns {Number} add on total\n */\nconst getAddOnFees = (purchase, plan) => {\n\n  //todo: do we want to move these hard coded strings somewhere central?\n  return getAddOnItemFee(purchase.basicEmail, 'basic_email', isBasicEmailEnabled(), false, getBasicEmailYearlyPrice(), plan) +\n    getAddOnItemFee(purchase.domainName, 'domain_name_reg', isDomainNameEnabled(), true, getDomainNameYearlyPrice(), plan) +\n    getAddOnItemFee(purchase.staticWebsite, 'static_website', isStaticWebsiteEnabled(), true, getStaticWebsiteYearlyPrice(), plan) +\n    getAddOnItemFee(purchase.domainNamePrivacy, 'domain_name_privacy', isDomainNamePrivacyEnabled(), true, getDomainNamePrivacyYearlyPrice(), plan) +\n    getAddOnItemFee(purchase.bankingResolution, 'banking_resolution', isBankingResolutionEnabled(), true, getBankingResolutionPrice(), plan) +\n    getAddOnItemFee(purchase.worryFree, 'worry_free_service', isWFGEnabled(), true, getWFGYearlyPrice(), plan) +\n    getAddOnItemFee(purchase.ein, 'ein_creation', isEINEnabled(), false, getEINPrice(), plan) +\n    getAddOnItemFee(purchase.corporateDocs, 'corporate_docs', isCorporateDocsEnabled(), false, getCorporateDocsPrice(), plan) +\n    getAddOnItemFee(purchase.opAgree, 'operating_agreement', isOpAgreementEnabled(), false, getOpAgreementPrice(), plan);\n\n};\n\n/**\n * takes the current expedite value and checks to see if its already included in the plan\n * if not return the fee\n * @param {String} expedite\n * @param {String} expediteIncludedInPlan\n * @returns\n */\nconst getExpediteFees = (expedite, expediteIncludedInPlan) => {\n\n  let expediteFee = 0;\n  if (expedite.toLowerCase() === 'rush' && expediteIncludedInPlan !== 'rush') {\n    expediteFee = getExpediteRushPrice();\n  } else if (expedite.toLowerCase() === 'priority' && expediteIncludedInPlan !== 'priority') {\n    expediteFee = getExpeditePriorityPrice();\n  }\n\n  return expediteFee;\n};\n\n/**\n *\n * @param {Object} stateFilingFees\n * @param {String} companyType\n * @returns\n */\nconst calculateStateFormationFees = (stateFilingFees, companyType) => {\n\n  if (companyType.toLowerCase() === 'llc' || companyType.toLowerCase() === 'llcx') {\n    return stateFilingFees.llc_formation.fees;\n  }\n  if (companyType.toLowerCase() === 'corp') {\n    return stateFilingFees.corp_formation.fees;\n  }\n  return 0;\n};\n\n/**\n * Prepurchase add ons\n * @param {String} domesticJurisdiction state \"AL\"\n * @param {Object} purchase\n * @param {String} companyType\n * @param {Object} fees\n * @returns\n */\nconst getTotalToday = (domesticJurisdiction, purchase, companyType, fees) => {\n  const\n    { planLevel } = purchase,\n    priceType = getCompanyType(companyType),\n    plan = getPlanLevel(planLevel, domesticJurisdiction) || { expedite: 'standard' },\n    planPrice = plan[priceType] ? plan[priceType].prices['1'] : 0,\n    coupon = getCoupon(plan.id),\n    stateFilingFees = getStateFees(fees, domesticJurisdiction),\n    calculatedPrice = calculatePlanPrice(planPrice, plan.coupon, coupon),\n    expediteFee = getExpediteFees(purchase.expedite, plan.expedite),\n    stateFormationFee = calculateStateFormationFees(stateFilingFees, priceType),\n    addOnFees = getAddOnFees(purchase, plan);\n\n  return (\n    calculatedPrice +\n    stateFormationFee +\n    addOnFees +\n    expediteFee\n  );\n};\n\nexport {\n  getServicePricingFromPlan,\n  getDiscountPercentForService,\n  getCouponIdFromPricing,\n  getCouponById,\n  calculateDiscountedPrice,\n  getCouponForService,\n  getPriceAndCouponForService,\n  calculateCouponDiscountPercent,\n  getFirstYearPriceForService,\n  getYearlyPriceForService,\n  getMonthlyPriceForService,\n  getTotalToday,\n  calculateItemTotalToday,\n  getPeriodicPrices,\n  calculateStateFormationFees,\n  getStateFees,\n  getPurchasePrice,\n  setPurchasePrice,\n  deletePurchasePrice\n};\n","\n/**\n * @param {Object} fees object ex:{priority, rush, standard}\n * @param {Object} selectedExpedite: to look up in the fees obj\n * @returns {Boolean} closed or not closed\n */\nexport const isStateClosed = (feesObj, selectedExpedite) => {\n  if (feesObj[selectedExpedite] && feesObj[selectedExpedite].delayed === true) {\n    return true;\n  }\n  return false;\n};\n\n/**\n * converts company type into llc / corp\n * @param {string} companyType\n * @returns {string}\n */\nexport const getCompanyType = (companyType) => {\n  return (companyType === 'LLCX') ? 'llc' : 'corp';\n};\n\n","\n// Plans\n/**\n * @param {Object} plan\n * @returns related_plan_option object from plan\n */\nconst getRelatedPlanOption = (plan) => { return plan.related_plan_option; };\n\n/**\n * @param {Object} plan\n * @returns related_plan_pricing object from plan\n */\nconst getRelatedPlanPricing = (plan) => { return getRelatedPlanOption(plan).related_plan_pricing; };\n\n/**\n * @param {Object} plan\n * @param {String} infoKey\n * @returns value at infokey\n */\nconst getPlanPricingDetails = (plan, infoKey) => { return getRelatedPlanPricing(plan)[infoKey]; };\n\n/**\n * @param {Object} plan\n * @param {String} infoKey\n * @returns value at infokey\n */\nconst getPlanOptionDetails = (plan, infoKey) => { return getRelatedPlanOption(plan)[infoKey]; };\n\n/**\n * @param {Object} plan\n * @returns Array - the array containing all addOns associated with plan\n */\nconst getAddOnServicesForPlan = (plan) => { return getPlanOptionDetails(plan, 'addons'); };\n\n/**\n * @param {Array} allAddOnServices\n * @param {String} service\n * @returns Object - addon service object\n */\nconst getAddOnService = (allAddOnServices, service) => { return allAddOnServices.find((addon) => { return addon.service === service; }); };\n\n/**\n * @param {Object} plan\n * @returns String - coupon uuid or null if none\n */\nconst getCouponUUIDForPlan = (plan) => { return getPlanPricingDetails(plan, 'coupon'); };\n\n/**\n * @param {Object} plan\n * @param {String} service\n * @returns String - coupon uuid or null if none\n */\nconst getCouponUUIDForAddOnService = (plan, service) => { return getAddOnService(getAddOnServicesForPlan(plan), service).coupon; };\n\n/**\n * @param {Object} coupons from pricing namespace\n * @param {String} uuid of coupon\n * @returns Object - the coupon object\n */\nconst getCouponByUUID = (coupons, uuid) => { return coupons[uuid]; };\n\n/**\n * @param {Object} plan\n * @param {Object} coupons\n * @returns Object - the coupon (if any) for plan\n */\nconst getCouponForPlan = (plan, coupons) => {\n  const coupon = getCouponUUIDForPlan(plan),\n    couponUUID = coupon ? coupon.coupon_uuid : null;\n\n  return couponUUID ? getCouponByUUID(coupons, couponUUID) : null;\n};\n\n/**\n * @param {Object} plan\n * @param {Object} coupons\n * @param {String} service\n * @returns Object - representing the coupon associated with the addon service\n */\nconst getCouponForAddOnService = (plan, coupons, service) => {\n  const couponUUID = getCouponUUIDForAddOnService(plan, service);\n  return getCouponByUUID(coupons, couponUUID);\n};\n\n/**\n * @param {Object} plan\n * @returns Number\n * not all plans have valid coupons, this returns a number 0 representing no coupon if none available for plan\n */\nconst getCouponAmountForPlan = (plan, coupons) => { return (getCouponForPlan(plan, coupons) || {}).amount || 0; };\n\n/**\n * @param {Object} plan\n * @returns Number\n * not all addOn services have valid coupons, this returns a number 0 representing no coupon if none available for the service\n */\nconst getCouponAmountForAddOnService = (plan, coupons, service) => { return (getCouponForAddOnService(plan, coupons, service) || {}).amount || 0; };\n\n/**\n * @param {Object} plan\n * @returns Number representing the price of the plan\n */\nconst getPriceForPlan = (plan) => { return getPlanPricingDetails(plan, 'amount'); };\n\n/**\n * @param {Object} plan - raw plan object from pricing.plans\n * @param {String} service - service key on addon service object\n * @returns Number representing the price of the addon for the plan\n */\nconst getPriceForAddOnService = (plan, service) => {\n  const addOns = getAddOnServicesForPlan(plan);\n  return getAddOnService(addOns, service).amount;\n};\n\n/**\n * @param {Object} plan\n * @returns Number - calculated price for a plan minus any coupons available\n */\nconst getDiscountedPriceForPlan = (plan, coupons) => {\n  return getPriceForPlan(plan) - getCouponAmountForPlan(plan, coupons);\n};\n\n/**\n * @param {Object} plan\n * @param {String} service\n * @returns Number - calculated price for addon service minus any coupons available\n */\nconst getDiscountedPriceForAddOnService = (plan, coupons, service) => {\n  return getPriceForAddOnService(plan, service) - getCouponAmountForAddOnService(plan, coupons, service);\n};\n\n/**\n * @param {Object} plan\n * @returns String - the related affiliate pricing uuid for the plan object\n */\nconst getAffiliatePricingUUIDForPlan = (plan) => { return plan.uuid; };\n\nexport default {\n  getPlanPricingDetails,\n  getAffiliatePricingUUIDForPlan,\n  getDiscountedPriceForAddOnService,\n  getDiscountedPriceForPlan,\n  getPriceForAddOnService,\n  getPriceForPlan,\n  getCouponAmountForAddOnService,\n  getCouponAmountForPlan,\n  getCouponForAddOnService,\n  getCouponForPlan,\n  getAddOnServicesForPlan\n};\n","/**\n * @param {Object} StandaloneServices from pricing.standaloneServices\n * @returns Service Object\n */\nconst getStandaloneService = (standaloneServices, service) => {\n  return standaloneServices[service];\n};\n\n/**\n * @param {Object} standaloneService\n * @returns related_service_pricing object for service\n */\nconst getPricingDetailsForService = (standaloneService, infoKey) => {\n  return standaloneService?.related_service_pricing[infoKey];\n};\n\n/**\n * @param {Object} standaloneServices\n * @param {String} service\n * @returns Number representing the price of the service\n */\nconst getPriceForStandaloneService = (standaloneServices, service) => {\n  return getPricingDetailsForService(getStandaloneService(standaloneServices, service), 'amount');\n};\n\n/**\n *\n * @param {Object} standaloneServices\n * @param {String} service\n * @returns String - the coupon uuid for the service\n */\nconst getCouponUUIDForStandaloneService = (standaloneServices, service) => {\n  return getPricingDetailsForService(getStandaloneService(standaloneServices, service), 'coupon');\n};\n\n/**\n * @param {Object} standaloneServices\n * @param {object} coupons\n * @param {String} service\n * @returns Object - the coupon object associated with the service\n */\nconst getCouponForStandaloneService = (standaloneServices, coupons, service) => {\n  return coupons[getCouponUUIDForStandaloneService(standaloneServices, service)];\n};\n\n/**\n * @param {Object} standaloneServices\n * @param {Object} coupons\n * @param {String} service\n * @returns Number representing the amount of the coupon discount\n */\nconst getCouponAmountForStandaloneService = (standaloneServices, coupons, service) => {\n  return (getCouponForStandaloneService(standaloneServices, coupons, service) || {}).amount || 0;\n};\n\n/**\n *\n * @param {Object} standaloneServices\n * @param {Object} coupons\n * @param {String} service\n * @returns Number representing the final price minus the coupon discount\n */\nconst getDiscountedPriceForStandaloneService = (standaloneServices, coupons, service) => {\n  return getPriceForStandaloneService(standaloneServices, service) - getCouponAmountForStandaloneService(standaloneServices, coupons, service);\n};\n\nexport default {\n  getStandaloneService,\n  getPricingDetailsForService,\n  getDiscountedPriceForStandaloneService,\n  getCouponAmountForStandaloneService,\n  getCouponForStandaloneService,\n  getCouponUUIDForStandaloneService,\n  getPriceForStandaloneService\n};\n","import _get from 'lodash/get';\n\n/**\n *  NOTE: Not all services exist in this data currently\n * @param {Object} stateFees\n * @param {string} stateCode\n * @param {string} serviceName\n * @param {string} infoKey\n * @returns value @ info key or null;\n */\nconst getStateFeesDetails = (stateFees, stateCode, serviceName, infoKey) => {\n  return _get(stateFees, [stateCode, serviceName, infoKey], null);\n\n};\n\n/**\n *\n * @param {object} stateFees\n * @param {string} stateCode\n * @param {string} serviceName\n * @returns fee amount or null\n */\nconst getFeesForServiceByState = (stateFees, stateCode, serviceName) => {\n  return getStateFeesDetails(stateFees, stateCode, serviceName, 'fees');\n};\n\n/**\n *\n * @param {object} stateFees\n * @param {string} stateCode\n * @param {string} serviceName\n * @returns fee term or null\n */\nconst getFeesTermForServiceByState = (stateFees, stateCode, serviceName) => {\n  return getStateFeesDetails(stateFees, stateCode, serviceName, 'term');\n};\n\nexport default {\n  getFeesForServiceByState,\n  getFeesTermForServiceByState,\n  getStateFeesDetails\n};\n","/**\nUsage:\n  * utils in this folder are meant for abstracting away structural knowledge related to\n  * all data in the \"pricing\" namespace so that reading and calculating data for UI presentation is simple\n\nError Handling\n  * no error handling in these utils\n  * these utilities expect valid data objects in the initialize format\n  * all error handling should be implemented one layer above this in code invoking these utility functions\n  * where context is known, and appropriate handling can be implemented on a case-by-case basis\n\nNo Default Values\n  * Rely on api provided data\n  * DO NOT add or merge in hardcoded data or create fallbacks for these utilities\n  * IF data is missing OR inappropriately formatted we want these utilities to throw errors.\n  * the single exception so far to the no \"no default values\" rule is in regard to calculating a total price minus any coupon discounts,\n      when no coupon exists it is logical to use a zero for this calculation\n\nComposability\n  * the utils in this dir are meant to be composable abstractions for maximum reuse, if the needed utility is not\n    present, the convention will be to attempt to reuse as many abstractions already in place as possible for creating new ones\n */\nimport planUtils from './plans';\nimport standaloneServiceUtils from './standaloneServices';\nimport expediteFeesUtils from './expediteFees';\nimport stateFeesUtils from './stateFees';\n/**\n * NOTE: Regarding Packages\n *  - same object structure as plan objects\n *  - found under pricing.plans alongside standard plan levels\n *  - use plan utils for accessing data\n */\nexport default {\n  ...planUtils,\n  ...standaloneServiceUtils,\n  ...expediteFeesUtils,\n  ...stateFeesUtils\n};\n","const getExpediteFeeInfoByJurisdiction = (expediteFees, stateCode, expediteLevel, infoKey) => {\n  return expediteFees[stateCode][expediteLevel][infoKey];\n};\n\nexport default {\n  getExpediteFeeInfoByJurisdiction\n};\n","import _assign from 'lodash/assign';\nimport _cloneDeep from 'lodash/cloneDeep';\nimport _concat from 'lodash/concat';\nimport _filter from 'lodash/filter';\nimport _forEach from 'lodash/forEach';\nimport _map from 'lodash/map';\nimport _reduce from 'lodash/reduce';\nimport React from 'react';\n\nimport { PRES, VP, TRSR, SEC, ASST_SEC } from '../constants/ui';\n\n/* eslint-disable max-statements */\nconst\n  labels = {\n    [ASST_SEC]: 'Asst. Secretary',\n    authorizedSignatory: 'Authorized Signatory',\n    ceo: 'CEO',\n    cto: 'CTO',\n    customer: 'Account Holder',\n    director: 'Director',\n    electiveCEO: 'Elective CEO',\n    manager: 'Manager',\n    member: 'Member',\n    officer: 'Officer',\n    officialStateContact: 'Official State Contact',\n    [PRES]: 'President',\n    [SEC]: 'Secretary',\n    sopContact: 'SOP Contact',\n    [TRSR]: 'Treasurer',\n    [VP]: 'Vice President'\n  },\n  compareItem = (item1, item2) => {\n    if (!item1 && !item2) {\n      return true;\n    }\n    if (item1 !== item2) {\n      return false;\n    }\n    return true;\n  },\n  compareUsers = (user1, user2, checkCompanyName = true) => {\n    if (!user1 || !user2) {\n      return false;\n    }\n\n    if (checkCompanyName) {\n      if (!compareItem(user1.companyName, user2.companyName)) {\n        return false;\n      }\n    }\n\n    if (!compareItem(user1.firstName, user2.firstName)) {\n      return false;\n    }\n    if (!compareItem(user1.middleName, user2.middleName)) {\n      return false;\n    }\n    if (!compareItem(user1.lastName, user2.lastName)) {\n      return false;\n    }\n    if (!compareItem(user1.suffix, user2.suffix)) {\n      return false;\n    }\n\n    return true;\n  },\n  /* eslint-disable max-statements */\n  convertUser = (user, contactType, { customer, offStateContact, electiveCEO, sopContact, authorizedSignatory, selectedKey }) => {\n    if (!user) {\n      return null;\n    }\n    const\n      isCustomer = compareUsers(user, customer, false),\n      isOffStateContact = compareUsers(user, offStateContact),\n      isSOPContact = compareUsers(user, sopContact),\n      isElectiveCEO = compareUsers(user, electiveCEO),\n      isAuthSig = compareUsers(user, authorizedSignatory, false),\n      selectedMap = {\n        offStateContact: isOffStateContact,\n        sopContact: isSOPContact,\n        electiveCEO: isElectiveCEO,\n        authorizedSignatory: isAuthSig\n      },\n      selected = selectedMap[selectedKey] || false;\n\n    const u = _assign({ contactType, isPrincipal: contactType !== selectedKey, isCustomer, isOffStateContact, isSOPContact, isElectiveCEO, isAuthSig, selected }, user);\n    if (!u.email) {\n      if (isCustomer) {\n        u.email = customer.email;\n        u.phoneNumber = customer.phoneNumber;\n      } else if (isOffStateContact) {\n        u.email = offStateContact.email;\n        u.phoneNumber = offStateContact.phoneNumber;\n      } else if (isSOPContact) {\n        u.email = sopContact.email;\n        u.phoneNumber = sopContact.phoneNumber;\n      } else if (isElectiveCEO) {\n        u.email = electiveCEO.email;\n        u.phoneNumber = electiveCEO.phoneNumber;\n      } else if (isAuthSig) {\n        u.email = authorizedSignatory.email;\n        u.phoneNumber = authorizedSignatory.phoneNumber;\n      }\n    }\n    if (u.companyName && !u.careOf) {\n      if (isOffStateContact) {\n        u.careOf = offStateContact.careOf;\n      } else if (isSOPContact) {\n        u.careOf = sopContact.careOf;\n      } else if (isElectiveCEO) {\n        u.careOf = electiveCEO.careOf;\n      }\n    }\n    return u;\n  },\n  convertUsers = (users, contactType, userData) => {\n    return _map(users, (user) => {\n      return convertUser(user, contactType, userData);\n    });\n  },\n  getContactInfoReducer = (collect, p) => {\n    if (p.isCustomer) {\n      collect.customerIncluded = true;\n    }\n    if (p.isOffStateContact) {\n      collect.offStateContactIncluded = true;\n    }\n    if (p.isSOPContact) {\n      collect.sopContactIncluded = true;\n    }\n    if (p.isElectiveCEO) {\n      collect.electiveCEOIncluded = true;\n    }\n    if (p.isAuthSig) {\n      collect.authSigIncluded = true;\n    }\n    return collect;\n  },\n  getContactInclusions = (principals) => {\n    return _reduce(principals, getContactInfoReducer, {\n      customerIncluded: false,\n      offStateContactIncluded: false,\n      sopContactIncluded: false,\n      electiveCEOIncluded: false,\n      authSigIncluded: false\n    });\n  };\n\nexport const generatePrincipals = ({ type, members, managers, directors, officers, customer, offStateContact, electiveCEO, sopContact, authorizedSignatory, selectedKey }) => {\n  const\n    userTypes = { members, managers, customer, offStateContact, electiveCEO, sopContact, authorizedSignatory, selectedKey },\n    convertedMembers = convertUsers(members, 'member', userTypes),\n    convertedManagers = convertUsers(managers, 'manager', userTypes),\n    convertedDirectors = convertUsers(directors, 'director', userTypes),\n    convertedOfficers = convertUsers(officers, 'officer', userTypes),\n    principals = type === 'CORP' ? _concat(convertedDirectors, convertedOfficers) : _concat(convertedMembers, convertedManagers);\n\n  let\n    {\n      customerIncluded,\n      offStateContactIncluded,\n      sopContactIncluded,\n      electiveCEOIncluded,\n      authSigIncluded\n    } = getContactInclusions(principals);\n\n  if (!customerIncluded) {\n    const u = convertUser(customer, 'customer', userTypes);\n    principals.push(u);\n    customerIncluded = true;\n    offStateContactIncluded = offStateContactIncluded || u.isOffStateContact;\n    sopContactIncluded = sopContactIncluded || u.isSOPContact;\n    electiveCEOIncluded = electiveCEOIncluded || u.isElectiveCEO;\n    authSigIncluded = authSigIncluded || u.isAuthSig;\n  }\n  if (offStateContact && (offStateContact.firstName || offStateContact.companyName) && !offStateContactIncluded) {\n    const u = convertUser(offStateContact, 'officialStateContact', userTypes);\n    principals.push(u);\n    sopContactIncluded = sopContactIncluded || u.isSOPContact;\n    electiveCEOIncluded = electiveCEOIncluded || u.isElectiveCEO;\n    authSigIncluded = authSigIncluded || u.isAuthSig;\n  }\n  if (sopContact && !sopContactIncluded) {\n    const u = convertUser(sopContact, 'sopContact', userTypes);\n    principals.push(u);\n    electiveCEOIncluded = electiveCEOIncluded || u.isElectiveCEO;\n    authSigIncluded = authSigIncluded || u.isAuthSig;\n  }\n  if (electiveCEO && !electiveCEOIncluded) {\n    const u = convertUser(electiveCEO, 'electiveCEO', userTypes);\n    principals.push(u);\n    authSigIncluded = authSigIncluded || u.isAuthSig;\n  }\n  if (authorizedSignatory && !authSigIncluded) {\n    const u = convertUser(authorizedSignatory, 'authorizedSignatory', userTypes);\n    principals.push(u);\n  }\n\n  _forEach(principals, (principal, index) => {\n    principal.index = index;\n  });\n\n  return principals;\n};\n\nexport const getContactTypeForChoice = (contact, pageConfig, skipKey, domesticJurisdiction) => {\n  const { contactType, isCustomer, isOffStateContact, isSOPContact, isElectiveCEO, isAuthSig, manager = false, title = '' } = contact.data,\n    retVal = [];\n\n  if (isCustomer && skipKey !== 'customer') {\n    retVal.push((<br />), labels.customer);\n  }\n  if (isOffStateContact && skipKey !== 'offStateContact') {\n    retVal.push((<br />), labels.officialStateContact);\n  }\n  if (isSOPContact && skipKey !== 'sopContact') {\n    retVal.push((<br />), labels.sopContact);\n  }\n  if (isElectiveCEO && skipKey !== 'electiveCEO') {\n    retVal.push((<br />), labels.electiveCEO);\n  }\n  if (isAuthSig && skipKey !== 'authorizedSignatory') {\n    retVal.push((<br />), labels.authorizedSignatory);\n  }\n  if (contactType === 'member') {\n    retVal.push((<br />), pageConfig.member || labels.member);\n    if (manager) {\n      retVal.push((<br />), pageConfig.manager || labels.manager);\n    }\n  } else if (contactType === 'manager') {\n    retVal.push((<br />), pageConfig.manager || labels.manager);\n  } else if (contactType === 'director' || contactType === 'officer') {\n    if (contactType === 'director') {\n      retVal.push((<br />), pageConfig.director || labels.director);\n    }\n    _forEach(title.split(','), (t) => {\n      const l = pageConfig[t] || labels[t] || t;\n      if (domesticJurisdiction === 'CA') {\n        l.replace(/President/g, 'CEO').replace(/Vice President/g, 'CTO');\n      }\n      retVal.push((<br />), l);\n    });\n  }\n  retVal.shift();\n  return retVal;\n};\n\nexport const getContactTypeForDropdown = (contact, pageConfig, skipKey, domesticJurisdiction) => {\n  const { contactType, isCustomer, isOffStateContact, isSOPContact, isElectiveCEO, isAuthSig, manager, title } = contact,\n    retVal = [];\n\n  if (isCustomer && skipKey !== 'customer') {\n    retVal.push(labels.customer);\n  }\n  if (retVal.length === 0 && isOffStateContact && skipKey !== 'offStateContact') {\n    retVal.push(labels.officialStateContact);\n  }\n  if (retVal.length === 0 && isSOPContact && skipKey !== 'sopContact') {\n    retVal.push(labels.sopContact);\n  }\n  if (retVal.length === 0 && isElectiveCEO && skipKey !== 'electiveCEO') {\n    retVal.push(labels.electiveCEO);\n  }\n  if (retVal.length === 0 && isAuthSig && skipKey !== 'authorizedSignatory') {\n    retVal.push(labels.authorizedSignatory);\n  }\n  if (contactType === 'member') {\n    retVal.push(pageConfig.member || labels.member);\n    if (retVal.length === 1 && manager) {\n      retVal.push(pageConfig.manager || labels.manager);\n    }\n  } else if (contactType === 'manager') {\n    retVal.push(pageConfig.manager || labels.manager);\n  } else if (contactType === 'director' || contactType === 'officer') {\n    _forEach(title.split(','), (t) => {\n      if (!t) {\n        return;\n      }\n      const l = pageConfig[t] || labels[t] || t;\n      if (domesticJurisdiction === 'CA') {\n        l.replace(/President/g, 'CEO').replace(/Vice President/g, 'CTO');\n      }\n      if (retVal.length <= 1) {\n        retVal.push(l);\n      }\n    });\n    if (retVal.length <= 1 && contactType === 'director') {\n      retVal.push(pageConfig.director || labels.director);\n    }\n  }\n  return retVal.join(', ');\n};\n\nexport const generateAuthSigPrincipals = ({ type, members, managerType, managers, directors, officers, customer, offStateContact, electiveCEO, sopContact, authorizedSignatory }) => {\n  const\n    userTypes = { members, managers, customer, offStateContact, electiveCEO, sopContact, authorizedSignatory, selectedKey: 'authorizedSignatory' },\n    convertedMembers = _map(convertUsers(members, 'member', userTypes), (member) => {\n      const titles = [ 'Member' ];\n      if (member.manager) {\n        titles.push('Manager');\n      }\n      return _assign({ titles }, member);\n    }),\n    convertedManagers = _map(convertUsers(managers, 'manager', userTypes), (manager) => {\n      return _assign({ titles: [ 'Manager' ] }, manager);\n    }),\n    convertedDirectors = _map(convertUsers(directors, 'director', userTypes), (director) => {\n      const titles = director.title ? director.title.split(',') : [ 'Director' ];\n      return _assign({ titles }, director);\n    }),\n    convertedOfficers = _map(convertUsers(officers, 'officer', userTypes), (officer) => {\n      const titles = officer.title.split(',');\n      return _assign({ titles }, officer);\n    }),\n    users = [];\n\n  if (type === 'CORP') {\n    users.push(...convertedDirectors, ...convertedOfficers);\n  } else if (managerType === 'AllOwners') {\n    users.push(...convertedMembers);\n  } else {\n    users.push(..._filter(convertedMembers, (member) => {\n      return member.manager;\n    }));\n    users.push(...convertedManagers);\n  }\n\n  const principals = _filter(_cloneDeep(users), (p) => {\n    return !p.companyName;\n  });\n\n  _forEach(principals, (p, index) => {\n    p.index = index;\n    if (authorizedSignatory && p.selected) {\n      p.authSigTitle = authorizedSignatory.title;\n    }\n  });\n  return principals;\n};\n/* eslint-enable max-statements */\n","import _assign from 'lodash/assign';\nimport _isNumber from 'lodash/isNumber';\nimport _find from 'lodash/find';\nimport _reduce from 'lodash/reduce';\nimport _startsWith from 'lodash/startsWith';\nimport React, { Fragment } from 'react';\nimport parseISO from 'date-fns/parseISO';\nimport getYear from 'date-fns/getYear';\nimport isWithinInterval from 'date-fns/isWithinInterval';\nimport vanityProductsData from '@zenbusiness/vanity-products-lib';\nimport { DBA_IGNORE_STATES, VANITY_STATE_COPY } from '../constants/ui';\nimport { URLS as POST_CORP_URLS } from '../constants/complete_corp';\nimport { URLS as POST_LLC_URLS, CA_DOL_FLAG } from '../constants/complete_llc';\nimport { URLS as REG_URLS } from '../constants/registration';\nimport { URLS as RA_URLS } from '../constants/register_cora_pf';\nimport { URLS as POST_RA_URLS } from '../constants/complete_cora';\nimport { URLS as POST_ADDONS } from '../constants/purchase_post_addons';\nimport { reportError } from './ReportingUtils';\n\nconst RA_50_OFF_OFFER = true;\n\nconst coupon49to99 = {\n    price: 49,\n    note: '*',\n    explanation:\n      'SPECIAL OFFER - get our Starter plan for only $DISCOUNTED_PRICE. It will renew each year for $99, unlike the $119 that some competitors charge.'\n  },\n  coupon49to119SixMonth = {\n    price: 49,\n    note: '*',\n    explanation:\n      'PAYMENT TERMS - get our Starter plan for only $DISCOUNTED_PRICE. At the end of the year it will renew with our Annual Report Service for $BASE_PRICE/yr. ' +\n      'All  annual plans and add ons renew at the prices listed at the time of renewal. Rates subject to change.'\n  },\n  coupon49to119 = {\n    price: 49,\n    note: '*',\n    explanation:\n      'SPECIAL OFFER - get our Starter plan for only $DISCOUNTED_PRICE. At the end of the year it will renew with our Annual Report Service for only $BASE_PRICE/year.'\n  },\n  coupon49to129 = {\n    price: 49,\n    note: '*',\n    explanation:\n      'SPECIAL OFFER - get our Starter plan for only $DISCOUNTED_PRICE. At the end of the year it will renew with our Annual Report Service for only $BASE_PRICE/year.'\n  },\n  coupon49to199 = {\n    price: 49,\n    note: '*',\n    explanation: 'SPECIAL OFFER - get our Starter plan for only $DISCOUNTED_PRICE. At the end of the year it will renew with our Annual Report Service for only $BASE_PRICE/year.'\n  },\n  couponPartner39to119 = {\n    price: 39,\n    note: '*',\n    explanation:\n      'SPECIAL OFFER - get our Starter plan for only $DISCOUNTED_PRICE. At the end of the year it will renew with our Registered Agent service for only $BASE_PRICE/year.'\n  },\n  coupons = {\n    starter_plan_v12: coupon49to99,\n    starter_plan_v13: coupon49to99,\n    starter_plan_v14: coupon49to99,\n    starter_plan_v15: coupon49to119,\n    starter_plan_v16: coupon49to119,\n    starter_plan_v17: coupon49to119,\n    starter_plan_v18: coupon49to119,\n    starter_plan_v19: coupon49to119,\n    starter_plan_v20: coupon49to129,\n    starter_plan_v21: coupon49to119SixMonth,\n    starter_plan_v23: coupon49to119,\n    starter_plan_v24a: coupon49to119,\n    starter_plan_v24b: couponPartner39to119,\n    starter_plan_v24c: couponPartner39to119,\n    starter_plan_v26: coupon49to199,\n    partner_starter_plan_v1: couponPartner39to119,\n    partner_starter_plan_v2: coupon49to119,\n    partner_starter_plan_v3: couponPartner39to119,\n    rvshare_starter_plan_v1: couponPartner39to119\n  };\n\nlet products = {\n    accountant1800: true,\n    accounting: true,\n    amendment: true,\n    anonymity: true,\n    annualReport: true,\n    annualReportService: true,\n    banking: true,\n    bankingResolution: true,\n    basicEmail: true,\n    businessKit: true,\n    businessLicense: true,\n    corporateDocs: true,\n    cpaConsult: true,\n    dbaEntity: true,\n    dbaCompliance: true,\n    domainName: true,\n    domainNameMultipleTLDs: false,\n    domainNamePrivacy: true,\n    dudaWebsiteBuilder: false,\n    ein: true,\n    expeditePriority: true,\n    expediteRush: true,\n    expenseTrackingWithTaxFiling: true,\n    formation: true,\n    futureFileDate: true,\n    goodStanding: true,\n    initialCPAScreening: true,\n    insurance: true,\n    international: true,\n    naicsUpdate: false,\n    nameRes: true,\n    nyPub: true,\n    nyPubUpsell: false,\n    opAgree: true,\n    ra: true,\n    raSA: true,\n    raSADash: true,\n    smbEcommAddon: true,\n    smbGrowth: true,\n    smbWebsiteEcomm: true,\n    staticWebsite: true,\n    taxPreparation: true,\n    upsell: true,\n    wfg: true,\n    wfgInitialReport: true,\n    virtualBusinessAddress: false,\n    registeredAgentService: true,\n    vanityProduct: false,\n    zbmPro: false,\n    zbmProPF: true\n  },\n  pricing = {\n    id: 'FallbackUI',\n    test: 'A',\n    accountant1800: 0,\n    accountingGrowAndScaleMonth: 200,\n    accountingQuickStartMonth: 50,\n    accountingUpAndRunningMonth: 100,\n    amendment: 100,\n    anonymityYear: 0,\n    annualReport: 75,\n    annualReportService: 0,\n    bankOfAmericaOffer: 0,\n    bankingYear: 100,\n    bankingResolution: 35,\n    basicEmailYear: 25,\n    businessKit: 99,\n    businessLicense: 95,\n    registeredAgentService: 199,\n    corporateDocs: 100,\n    cpaConsult: 0, // Only in plans\n    dbaEntity: 95,\n    dbaCompliance: 50,\n    domainNameYear: 25,\n    domainNamePrivacyYear: 10,\n    ein: 70,\n    expeditePriority: 50,\n    expediteRush: 100,\n    formation: 0,\n    futureFileDate: 30,\n    goodStanding: 75,\n    initialCPAScreening: 0, // Only in plans\n    insuranceYear: 0,\n    insuranceFrom: 45,\n    international: 300,\n    nameRes: 50,\n    nyPub: 200,\n    opAgree: 100,\n    raFirstYearOffer: 149,\n    raYear: 119,\n    smbEcommAddonMonth: 15,\n    smbEcommAddonYear: 175,\n    smbGrowthKickstarterMonth: 10,\n    smbGrowthKickstarterYear: 100,\n    smbGrowthEffectivenessMonth: 25,\n    smbGrowthEffectivenessYear: 250,\n    smbWebsiteEcommMonth: 29,\n    smbWebsiteEcommYear: 279,\n    smbWebsiteEcommYearlyPerMonth: 23,\n    staticWebsite: 50,\n    staticWebsiteYear: 50,\n    taxPreparationYear: 0,\n    websiteToolsBundle: 149,\n    wfgYear: 119,\n    wfgInitialReport: 100,\n    virtualBusinessAddress: 15,\n    zbBankingPreferredMonthly: 5,\n    zbmProMonth: 30,\n    zbmProYear: 300,\n    domainLinkOnDash: false\n  },\n  usePlansBasedPricing = false,\n  standaloneServices = {},\n  plans = {};\n\n/**\n * DJL - this section is for the Vanity Products for Legal product test.\n */\nlet isLegalTest = false;\n\nconst getLegalTestVanityProducts = () => {\n  return [\n    {\n      active: true,\n      postPurchase: true,\n      productId: 'vanityLegal',\n      productName: 'Business Legal Advice',\n      serviceId: 'vanityLegal',\n      pageTitle: 'legal-services',\n      productKey: 'vanity_legal_services',\n      noticePageTitle: 'legal-services-notice',\n      flowPosition: 1,\n      title: (\n        'Try 1 month free: unlimited Business Legal Advice'\n      ),\n      yesLabel: 'Try It Free',\n      noLabel: 'No Thanks',\n      price: 0,\n      priceWithoutCoupon: pricing.vanityLegal,\n      priceIsMonthly: true,\n      priceNoteRight: `$${pricing.vanityLegal}/mo after 1st mo`,\n      explanation: `Legal issues can be expensive.\n      Unlimited guidance from our trusted network of attorneys can help you make the right decisions for your business.\n      Try the first month free, then it’s just $${pricing.vanityLegal}/mo. Cancel anytime.`,\n      additionalInformation: `After the free first month, this service continues automatically at $${pricing.vanityLegal}/mo.`,\n      logo: {\n        src: '/s2/vector/pbf-illustration-legal.svg',\n        alt: 'unlimited business legal advice'\n      },\n      modalTitle: 'Benefits of unlimited Business Legal Advice',\n      benefitsItems: [\n        {\n          img: '/s2/vector/legal-feature-value.svg',\n          width: 80,\n          title: 'Great Value',\n          description: `Get help from vetted attorneys at an affordable price.\n          One month of service is less than half an hour with a typical business attorney.`\n        },\n        {\n          img: '/s2/vector/legal-feature-convenient.svg',\n          width: 80,\n          title: 'Convenient Access',\n          description: `You can book as many 30-minute legal consults as you'd like to discuss contracts,\n          trademark plans, funding documents, and more.`\n        },\n        {\n          img: '/s2/vector/legal-feature-compliance.svg',\n          width: 80,\n          title: 'Business Protection',\n          description: `We’re here to help you stay compliant and protected so you can focus on what really matters —\n          growing your business.`\n        }\n      ],\n      /*\n      bottomLine: 'What is Unlimited Business Legal Advice and how does it work?',\n      bottomLineParagraphs: [\n        `As you set up your new business there are many legal and compliance requirements that you need to learn about and complete.\n        There are documents to be filed with city, state and federal agencies, vendor contracts created, employee agreements made, rental agreements signed and intellectual property protected.`,\n        `With our Unlimited Business Legal Advice service, provided by LegalStars, you can now get to ask those questions with an experienced attorney in your state.\n        You can get the legal help you need at an affordable price of just $${pricing.vanityLegal} per month.\n        That is far less than what most law firms will charge you per hour. Those fees can run into hundreds of dollars even for the simplest issues.`,\n        `Get unlimited 30 minute consultations with any attorney in our network for as many times you need in a month.\n        We have attorneys experienced in every small business legal topic including incorporation guidelines & benefits, contract review, intellectual property protection and business estate planning.`,\n        `Scheduling is very easy through our attorney dashboard and you will be guided every step of the way.\n        You can be candid and ask any questions related to your business. No preparation required.`,\n        'Start now and get your first question answered today!'\n      ],\n      */\n      noticePageIntro: 'Sorry, unlimited Business Legal Advice is not available',\n      noticePageDescription: [\n        `We apologize for the inconvenience, but this service is not available at this time.\n        Your card will not be charged and this service won’t appear on your dashboard.`,\n        'We appreciate your understanding and will let you know when unlimited Business Legal Advice is available.'\n      ],\n      showDashCard: false,\n      showDashAlertModal: false,\n      dashAlertModal: {}\n    }\n  ];\n};\n\nexport const setIsLegalTest = (value) => {\n  if (isLegalTest === value) {\n    return;\n  }\n  isLegalTest = value;\n  if (value) {\n    products.vanityProduct = true;\n    pricing.vanityLegal = 49;\n  } else {\n    products.vanityProduct = false;\n  }\n};\n\n/** End DJL */\n\nconst shouldUsePlansBasedPricing = () => {\n  return !![\n    REG_URLS.BASE,\n    RA_URLS.BASE,\n    POST_LLC_URLS.BASE,\n    POST_CORP_URLS.BASE,\n    POST_RA_URLS.BASE,\n    POST_ADDONS.BASE\n  ].find((base) => {\n    return document.location.pathname.includes(base);\n  });\n};\nconst isCoraFlow = () => {\n  return !![POST_RA_URLS.BASE, RA_URLS.BASE].find((base) => {\n    return document.location.pathname.includes(base);\n  });\n};\n\nconst getPlanBasedPricing = (service, planLevel = 'level1') => {\n  if (!usePlansBasedPricing) {\n    return 0;\n  }\n  const plansKeys = isCoraFlow() ? ['raLevel1', 'raLevel2'] : ['level1', 'level2', 'level3'];\n  if (service === 'operating_agreement') {\n    const priceBasedOnPlanLevel = plans[planLevel]?.servicePrices[service].price || 0;\n    return priceBasedOnPlanLevel;\n  }\n  return plansKeys.reduce((price, planKey) => {\n    if (price) {\n      return price;\n    }\n    return plans[planKey]?.servicePrices[service]?.price || 0;\n  }, 0);\n};\n\nconst notifySentry = (err, url, action) => {\n  const metaData = { url };\n  let errorName = '';\n\n  if (err.response) {\n    const errorCode = err.response.data.errorCode || err.response.data.status;\n    metaData.responseData = JSON.stringify(err.response.data, null, 4);\n    metaData.httpStatus = err.response.status;\n    errorName = action ? `${url} - ${action} - ${errorCode}` : `${url} - ${errorCode}`;\n  } else if (err.message) {\n    errorName =\n      err.message.toLowerCase() === 'network error'\n        ? 'Middleware Non-Responsive'\n        : `${err.name} - ${err.message}`;\n  } else {\n    errorName = `${err.name} - Unknown (no message)`;\n  }\n  reportError(new Error(errorName), { metaData });\n};\n\nexport const setPricingMapsFlags = () => {\n  usePlansBasedPricing = shouldUsePlansBasedPricing();\n};\n\nexport const setProducts = (data) => {\n  setPricingMapsFlags();\n  const {\n    products: initProducts = null,\n    pricing: initPricing = null,\n    plans: initPlans = null,\n    standaloneServices: initStandaloneServices = null\n  } = data;\n\n  if (initPlans) {\n    plans = _assign({}, initPlans);\n  }\n  if (initProducts) {\n    products = _assign({}, products, initProducts, isLegalTest ? { vanityProduct: true } : {});\n  }\n  if (initPricing) {\n    pricing = _assign({}, pricing, initPricing, isLegalTest ? { vanityLegal: 49 } : {});\n  }\n  if (initStandaloneServices) {\n    standaloneServices = _assign({}, initStandaloneServices);\n  }\n};\n\nexport const getAffiliatePricingUUID = (service, term, period) => {\n  const item = _find(standaloneServices, (itm) => {\n    const { related_service_pricing: pricingService = {} } = itm;\n    if (pricingService.service !== service) {\n      return false;\n    }\n    if (!term) {\n      return true;\n    }\n    if (period === 1 && pricingService.interval === 'annual') {\n      return true;\n    }\n    if (period === 12 && pricingService.interval === 'monthly') {\n      return true;\n    }\n    return false;\n  });\n\n  if (!item) {\n    const err = {\n      name: `affiliate-pricing-${service}`,\n      message: 'Does not exist a pricing uuid for that service'\n    };\n    const metadata = { standaloneServicesLength: standaloneServices.length };\n    notifySentry(err, metadata);\n  }\n\n  return item ? item.uuid : '';\n};\n\nexport const isAccountingEnabled = () => {\n  return products.accounting || false;\n};\n\nexport const getAccountingGrowAndScaleMonthlyPrice = () => {\n  return pricing.accountingGrowAndScaleMonth;\n};\n\nexport const getAccountingQuickStartMonthlyPrice = () => {\n  return pricing.accountingQuickStartMonth;\n};\n\nexport const getAccountingUpAndRunningMonthlyPrice = () => {\n  return pricing.accountingUpAndRunningMonth;\n};\n\nexport const isAmendmentEnabled = () => {\n  return products.amendment || false;\n};\n\nexport const getAmendmentPrice = () => {\n  return getPlanBasedPricing('llc_amendment') || pricing.amendment;\n};\n\nexport const isAnonymityEnabled = () => {\n  return products.anonymity || false;\n};\n\nexport const getAnonymityYearlyPrice = () => {\n  return pricing.anonymityYear;\n};\n\nexport const isAnnualReportEnabled = () => {\n  return products.annualReport || false;\n};\n\nexport const getAnnualReportPrice = () => {\n  return getPlanBasedPricing('llc_annual_report') || pricing.annualReport;\n};\n\nexport const isAnnualReportServiceEnabled = () => {\n  return products.annualReportService || false;\n};\n\nexport const getAnnualReportServicePrice = () => {\n  return getPlanBasedPricing('annual_report_service') || pricing.annualReportService;\n};\n\nexport const isBankingEnabled = () => {\n  return products.banking || false;\n};\n\nexport const getBankingYearlyPrice = () => {\n  return getPlanBasedPricing('banking') || pricing.bankingYear;\n};\n\nexport const isBankingResolutionEnabled = () => {\n  return products.bankingResolution || false;\n};\n\nexport const getBankingResolutionPrice = () => {\n  return getPlanBasedPricing('banking_resolution') || pricing.bankingResolution;\n};\n\nexport const isBasicEmailEnabled = () => {\n  return products.basicEmail || false;\n};\n\nexport const getAccountant1800Price = () => {\n  return getPlanBasedPricing['1800_accountant'] || pricing.accountant1800;\n};\n\nexport const getBasicEmailYearlyPrice = () => {\n  return getPlanBasedPricing('basic_email') || pricing.basicEmailYear;\n};\n\nexport const isBusinessLicenseEnabled = () => {\n  return products.businessLicense || false;\n};\n\nexport const isRegisteredAgentEnabled = () => {\n  return products.registeredAgentService || false;\n};\n\nexport const getBusinessLicensePrice = () => {\n  return getPlanBasedPricing('business_license_report') || pricing.businessLicense;\n};\n\nexport const getRegisteredAgentServicePrice = () => {\n  return pricing.registeredAgentService;\n};\n\nexport const getRegisteredAgentLicensePrice = () => {\n  return getPlanBasedPricing('registered_agent_service') || pricing.registeredAgentService;\n};\n\nexport const isCorporateDocsEnabled = () => {\n  return products.corporateDocs || false;\n};\n\nexport const getCorporateDocsPrice = () => {\n  return getPlanBasedPricing('corporate_docs') || pricing.corporateDocs;\n};\n\nexport const isBusinessKitEnabled = () => {\n  return products.businessKit || false;\n};\n\nexport const getBusinessKitPrice = () => {\n  return getPlanBasedPricing('business_kit') || pricing.businessKit;\n};\n\nexport const isCPAConsultEnabled = () => {\n  return products.cpaConsult || false;\n};\n\nexport const getCPAConsultPrice = () => {\n  return getPlanBasedPricing('cpa_consult') || pricing.cpaConsult;\n};\n\nexport const isDBAEntityEnabled = () => {\n  return products.dbaEntity || false;\n};\n\nexport const getDBAEntityPrice = () => {\n  return getPlanBasedPricing('dba_entity') || pricing.dbaEntity;\n};\n\nexport const getDBAEntityFees = (requestedJurisdiction, county, city, filingFees) => {\n  if (\n    !filingFees ||\n    DBA_IGNORE_STATES[requestedJurisdiction] ||\n    !filingFees[requestedJurisdiction].dba_entity\n  ) {\n    return 0;\n  }\n\n  const fees = filingFees[requestedJurisdiction].dba_entity.fees;\n\n  if (_isNumber(fees)) {\n    return fees;\n  }\n\n  if (city) {\n    return (fees[city] ? fees[city].fees : 0) || 0;\n  }\n  return (fees[county] ? fees[county].fees : 0) || 0;\n};\n\nexport const isDBAComplianceEnabled = () => {\n  return products.dbaCompliance || false;\n};\n\nexport const getDBAComplianceYearlyPrice = () => {\n  return getPlanBasedPricing('dba_compliance') || pricing.dbaCompliance;\n};\n\nexport const isDomainNameEnabled = () => {\n  return products.domainName || false;\n};\n\nexport const getDomainNameYearlyPrice = () => {\n  return getPlanBasedPricing('domain_name_reg') || pricing.domainNameYear;\n};\n\nexport const isDomainNamePrivacyEnabled = () => {\n  return products.domainNamePrivacy || false;\n};\n\nexport const getDomainNamePrivacyYearlyPrice = () => {\n  return getPlanBasedPricing('domain_name_privacy') || pricing.domainNamePrivacyYear;\n};\n\nexport const isDomainNameMultipleTLDs = () => {\n  return products.domainNameMultipleTLDs || false;\n};\n\nexport const isDudaWebsiteBuilderEnabled = () => {\n  return products.dudaWebsiteBuilder || false;\n};\n\nexport const isEINEnabled = () => {\n  return products.ein || false;\n};\n\nexport const getEINPrice = () => {\n  return getPlanBasedPricing('ein_creation') || pricing.ein;\n};\n\nexport const isExpeditePriorityEnabled = () => {\n  return products.expeditePriority || false;\n};\n\nexport const getExpeditePriorityPrice = () => {\n  return getPlanBasedPricing('expedite') || pricing.expeditePriority;\n};\n\nexport const isExpediteRushEnabled = () => {\n  return products.expediteRush || false;\n};\n\nexport const getExpediteRushPrice = () => {\n  return getPlanBasedPricing('expedite_to_rush_upgrade') || pricing.expediteRush;\n};\n\nexport const getExpediteRushPriceFee = () => {\n  return pricing.fee;\n};\nexport const isFormationEnabled = () => {\n  return products.formation || false;\n};\n\nexport const getFormationPrice = () => {\n  return getPlanBasedPricing('llc_formation') || pricing.formation;\n};\n\n// Enable Future File Date from Oct 1 - Dec 31\nexport const isFutureFileDateEnabled = (nowOverride) => {\n  if (!products.futureFileDate) return false;\n  const now = parseISO(nowOverride || new Date().toISOString());\n  const start = parseISO(`${getYear(now)}-10-01T00:00Z`);\n  const end = parseISO(`${getYear(now)}-12-31T23:59Z`);\n  return isWithinInterval(now, { start, end });\n};\n\nexport const getFutureFileDatePrice = () => {\n  return getPlanBasedPricing('future_file_date') || pricing.futureFileDate;\n};\n\nexport const isGoodStandingEnabled = () => {\n  return products.goodStanding || false;\n};\n\nexport const getGoodStandingPrice = () => {\n  return getPlanBasedPricing('standard_good_standing') || pricing.goodStanding;\n};\n\nexport const isInitialCPAScreeningEnabled = () => {\n  return products.initialCPAScreening || false;\n};\n\nexport const getInitialCPAScreeningPrice = () => {\n  return getPlanBasedPricing('initial_cpa_screening') || pricing.initialCPAScreening;\n};\n\nexport const isInsuranceEnabled = () => {\n  return products.insurance || false;\n};\n\nexport const getInsuranceYearlyPrice = () => {\n  return pricing.insuranceYear;\n};\n\nexport const getInsuranceFromPrice = () => {\n  return pricing.insuranceFrom;\n};\n\nexport const isNaicUpdateEnabled = () => {\n  return products.naicsUpdate || false;\n};\n\nexport const isNameResEnabled = () => {\n  return products.nameRes || false;\n};\n\nexport const getNameResPrice = () => {\n  return getPlanBasedPricing('entity_name_reservation') || pricing.nameRes;\n};\n\nexport const isNYPubEnabled = () => {\n  return products.nyPub || false;\n};\n\nexport const isNYPubUpsellEnabled = () => {\n  return products.nyPubUpsell || false;\n};\n\nexport const getNYPubPrice = () => {\n  return getPlanBasedPricing('ny_publication') || pricing.nyPub;\n};\n\nexport const getPAPubPrice = () => {\n  return pricing.paPub;\n};\n\nexport const getGAPubPrice = () => {\n  return pricing.gaPub;\n};\n\nexport const getSplitNYPubFees = (county, filingFees) => {\n  if (!filingFees || !filingFees.NY || !filingFees.NY.ny_publication || !county) {\n    // If filing fees are not loaded or loaded correctly\n    return null;\n  }\n\n  const fees = filingFees.NY.ny_publication.fees;\n  const idx = county.indexOf(' County');\n  const tmpKey = (idx === -1 ? county.toLowerCase() : county.substring(0, idx).toLowerCase())\n    .split(' ')\n    .join('_');\n  const key = tmpKey === 'st._lawrence' ? 'st_lawrence' : tmpKey;\n  const countyFee = fees[key] ? fees[key].domestic : fees.albany.domestic;\n\n  return {\n    stateFee: fees.state.domestic,\n    countyFee\n  };\n};\n\nexport const getNYPubFees = (county, filingFees) => {\n  if (!county) return null;\n  const { stateFee, countyFee } = getSplitNYPubFees(county, filingFees);\n  return stateFee + countyFee;\n};\n\nexport const getNYPubPriceTotal = (county, filingFees) => {\n  const price = getNYPubPrice();\n  const fees = getNYPubFees(county, filingFees) || 0;\n  return price + fees;\n};\n\nexport const isOpAgreementEnabled = () => {\n  return products.opAgree || false;\n};\n\nexport const getOpAgreementPrice = (planLevel = 'level1') => {\n  return getPlanBasedPricing('operating_agreement', planLevel) || pricing.opAgree;\n};\n\nexport const isRAEnabled = () => {\n  return products.ra || false;\n};\n\nexport const isRAStandAloneEnabled = () => {\n  return products.raSA || false;\n};\n\nexport const isRASADashboardEnabled = () => {\n  return products.raSADash || false;\n};\n\nexport const getRAYearlyPrice = () => {\n  return getPlanBasedPricing('registered_agent_service') || pricing.raYear;\n};\n\nexport const getRAFirstYearPrice = () => {\n  // First year price (RA 25% off first year offer)\n  return pricing.raFirstYearOffer;\n};\n\nexport const isRAOfferEnabled = () => {\n  return RA_50_OFF_OFFER;\n};\n\nexport const isSMBGrowthEnabled = () => {\n  return products.smbGrowth || false;\n};\n\nexport const getSMBEcommAddonMonthlyPrice = () => {\n  return pricing.smbEcommAddonMonth;\n};\n\nexport const getSMBEcommAddonYearlyPrice = () => {\n  return pricing.smbEcommAddonYear;\n};\n\nexport const getSMBGrowthEffectivenessMonthlyPrice = () => {\n  return pricing.smbGrowthEffectivenessMonth;\n};\n\nexport const getSMBGrowthEffectivenessYearlyPrice = () => {\n  return pricing.smbGrowthEffectivenessYear;\n};\n\nexport const getSMBGrowthKickstarterMonthlyPrice = () => {\n  return pricing.smbGrowthKickstarterMonth;\n};\n\nexport const getSMBGrowthKickstarterYearlyPrice = () => {\n  return pricing.smbGrowthKickstarterYear;\n};\n\nexport const getSMBWebsiteEcommMonthlyPrice = () => {\n  return pricing.smbWebsiteEcommMonth;\n};\n\nexport const getSMBWebsiteEcommYearlyPrice = () => {\n  return pricing.smbWebsiteEcommYear;\n};\n\nexport const getSMBWebsiteEcommYearlyPerMonthPrice = () => {\n  return pricing.smbWebsiteEcommYearlyPerMonth;\n};\n\n\nexport const isStaticWebsiteEnabled = () => {\n  return products.staticWebsite || false;\n};\n\nexport const getStaticWebsiteYearlyPrice = () => {\n  return getPlanBasedPricing('static_website') || pricing.staticWebsiteYear;\n};\n\nexport const getStaticWebsitePrice = () => {\n  return getPlanBasedPricing('static_website') || pricing.staticWebsite;\n};\nexport const isTaxPreparationEnabled = () => {\n  return products.taxPreparation || false;\n};\n\nexport const getTaxPreparationYearlyPrice = () => {\n  return pricing.taxPreparationYear;\n};\n\nexport const isUpsellEnabled = () => {\n  return products.upsell || false;\n};\n\nexport const isWFGEnabled = () => {\n  return products.wfg || false;\n};\n\nexport const getBankOfAmericaOfferPrice = () => {\n  return getPlanBasedPricing('bank_of_america_offer') || pricing.bankOfAmericaOffer || 0;\n};\n\nexport const isAccountant1800Enabled = () => {\n  return products.accountant1800 || false;\n};\n\nexport const getWFGYearlyPrice = () => {\n  return getPlanBasedPricing('worry_free_service') || pricing.wfgYear;\n};\n\nexport const isWFGInitialReportEnabled = () => {\n  return products.wfgInitialReport || false;\n};\n\nexport const isVirtualBusinessAddressEnabled = () => {\n  return products.virtualBusinessAddress || false;\n};\n\nexport const getVirtualBusinessAddressPrice = () => {\n  return getPlanBasedPricing('virtual_business_address') || pricing.virtualBusinessAddress;\n};\n\nexport const getWFGInitialReportPrice = () => {\n  return getPlanBasedPricing('wfg_initial_report') || pricing.wfgInitialReport;\n};\n\nexport const getWebsiteToolsBundlePriceFromAddonOrStandalone = () => {\n  return getPlanBasedPricing('website_tools_bundle') || pricing.websiteToolsBundle;\n};\n\nexport const getEinBusinessDocsBundleFromAddonOrStandalone = () => {\n  return getPlanBasedPricing('ein_business_docs_bundle') || pricing.einBusinessDocsBundle;\n};\n\nexport const isDomainLinkOnDashEnabled = () => {\n  return pricing.domainLinkOnDash || false;\n};\n\nexport const isExpenseTrackingWithTaxFilingEnabled = () => {\n  return products.expenseTrackingWithTaxFiling;\n};\n\nexport const isZBMProPFEnabled = () => {\n  return products.zbmProPF || false;\n};\n\nexport const getZbBankingPreferredMonthlyPrice = () => {\n  return pricing.zbBankingPreferredMonthly;\n};\n\nexport const getZBMProMonthlyPrice = () => {\n  return pricing.zbmProMonth;\n};\n\nexport const getZbTaxAdviceMonthlyPrice = () => {\n  return pricing.zbTaxAdvice;\n};\n\nexport const getZbBizTaxPrepMonthlyPrice = () => {\n  return pricing.zbBizTaxPrep;\n};\n\nexport const getZbTaxAdviceBizTaxPrepMonthlyPrice = () => {\n  return pricing.zbTaxAdviceBizTaxPrep;\n};\n\nexport const getZBMProYearlyPrice = () => {\n  return pricing.zbmProYear;\n};\n\nexport const getCoupon = (id) => {\n  return coupons[id] || null;\n};\n\nexport const getVanityProducts = () => {\n  const vpPricing = _reduce(\n    pricing,\n    (acc, value, key) => {\n      if (!_startsWith(key, 'vanity')) return acc;\n      return {\n        ...acc,\n        [key]: value\n      };\n    },\n    {}\n  );\n  return isLegalTest ? getLegalTestVanityProducts(vpPricing) : vanityProductsData(vpPricing);\n};\n\n// Dice up vanity product strings to add formatting. This will need to be tailored for each vanity product\nconst formatVanityProduct = (product, jurisdiction = null) => {\n  if (product.productId === 'vanityTrademark') {\n    const title = (\n      <Fragment>\n        {product.title.split('$')[0]}\n        <span>${product.price}?</span>\n      </Fragment>\n    );\n    const explanationSentences = product.explanation.split('.');\n    const firstExplanationSentence = explanationSentences[0];\n    explanationSentences.shift();\n    const explanation = (\n      <div style={{ fontSize: '18px', lineHeight: '24px' }}>\n        {firstExplanationSentence}\n        <br />\n        <br />\n        {explanationSentences.join('.')}\n      </div>\n    );\n    return { ...product, title, explanation };\n  }\n  if (product.productId === 'vanityVMA') {\n    const city = VANITY_STATE_COPY[jurisdiction];\n    const titlePieces = product.title.split(`$${product.price}`);\n    const title = (\n      <Fragment>\n        {titlePieces[0]}\n        <span>\n          ${product.price}\n          {titlePieces.slice(1).join('')}\n        </span>\n      </Fragment>\n    );\n    const explanation = product.explanation.replace('VMA_CITY', city);\n    const benefitsItems = product.benefitsItems.map((benefit) => {\n      return { ...benefit, description: benefit.description.replace('VMA_CITY', city) };\n    });\n    const bottomLineParagraphs = product.bottomLineParagraphs.map((paragraph) => {\n      return paragraph.replace('VMA_CITY', city);\n    });\n    return { ...product, explanation, benefitsItems, bottomLineParagraphs, title };\n  }\n  return product;\n};\n\nexport const getVanityProduct = (key = null) => {\n  if (!key) return null;\n  const vanityProduct = _find(getVanityProducts(), (item) => {\n    return item.pageTitle === key && item.active;\n  });\n  return (vanityProduct && formatVanityProduct(vanityProduct)) || null;\n};\n\nexport const getVanityProductPrice = (key = null) => {\n  return getVanityProduct(key)?.priceWithoutCoupon || getVanityProduct(key)?.price || null;\n};\n\nexport const getPostPurchaseVanityProduct = (jurisdiction = null) => {\n  const vanityProduct = _find(getVanityProducts(), (item) => {\n    const activeTest =\n      item.postPurchase &&\n      Object.prototype.hasOwnProperty.call(products, 'vanityProduct') &&\n      products.vanityProduct;\n\n    const requirements =\n      !jurisdiction || !item.allowedJurisdictions\n        ? true\n        : item.allowedJurisdictions.includes(jurisdiction);\n    return activeTest && requirements;\n  });\n  return (vanityProduct && formatVanityProduct(vanityProduct, jurisdiction)) || null;\n};\n\nexport const getPostPurchaseVanityProductPrice = () => {\n  return getPostPurchaseVanityProduct()?.price || null;\n};\n\nexport const getPricingForTests = () => {\n  return pricing;\n};\n\nexport const isCaDivLaborEnabled = (ldFlags) => {\n  return !!ldFlags?.[CA_DOL_FLAG];\n};\n","import { ACTIONS as PROGRESS_BAR_ACTIONS } from '../constants/progress_bar';\n\nexport const initProgressBar = () => {\n  if (!window.zb) {\n    window.zb = {};\n  }\n\n  if (!window.zb.flow) {\n    window.zb.flow = {};\n  }\n};\n\nexport const resetProgressBar = () => {\n  initProgressBar();\n\n  window.zb.flow = { steps: [], active: '' };\n};\n\nexport const setGlobalProgressBar = (flow = [], current = '') => {\n  initProgressBar();\n\n  window.zb.flow = { steps: flow, active: current };\n};\n\nexport const setReducerProgressBar = (\n  dispatch,\n  progressBarData\n) => {\n  const {\n    flowOrder = [],\n    currentStep = '',\n    activeFlow = ''\n  } = progressBarData;\n  setGlobalProgressBar(flowOrder, currentStep);\n  const stepIndex = flowOrder.indexOf(currentStep);\n  dispatch({\n    type: PROGRESS_BAR_ACTIONS.SET_PROGRESS_BAR,\n    payload: {\n      steps: flowOrder,\n      currentStep: stepIndex < 0 ? 0 : stepIndex,\n      activeFlow\n    }\n  });\n};\n\nexport const resetReducerProgressBar = (dispatch) => {\n  resetProgressBar();\n  dispatch({\n    type: PROGRESS_BAR_ACTIONS.RESET_PROGRESS_BAR\n  });\n};\n","/* eslint-disable max-statements */\nimport axios from 'axios';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { loginAndGoToPage } from './AuthService';\n\nconst quickFormationData = require('./QuickFormationCreate.json');\n\nconst quickFormationDataClone = JSON.parse(JSON.stringify(quickFormationData));\n\n\n// TODO\n// GET DATA FROM UI AND STORE IT IN THE data variable as a simple object accessible through dot notation\n\nexport const quickOrderApi = (data) => {\n  // keep Date.now() consistent across all variables that may need it\n  const dateVar = Date.now();\n  // generate unique variables that will be used multiple times once here\n  const formationType = (data?.type || 'llc_formation');\n  const uniqueEmailAddress = (data?.email || quickFormationData.account.email);\n  const uniqueFirstName = (data?.first_name || `${quickFormationData.account.first_name}+${dateVar}`);\n  const uniqueLastName = (data?.last_name || `${quickFormationData.account.last_name}+${dateVar}`);\n  const uniqueEntityName = (data?.entity_name || `${quickFormationData.order.order_data.find((oData) => { return oData.service === formationType; }).entity_name}+${dateVar}`);\n  // formation type\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === 'llc_formation'; }).service = formationType;\n  quickFormationDataClone.order.order_items.find((oData) => { return oData.service === 'llc_formation'; }).service = formationType;\n  // account data\n  quickFormationDataClone.account.lead_uuid = uuidv4();\n  quickFormationDataClone.account.first_name = uniqueFirstName;\n  quickFormationDataClone.account.last_name = uniqueLastName;\n  quickFormationDataClone.account.email = uniqueEmailAddress;\n  quickFormationDataClone.account.password = data.password;\n  // order data\n  // llc_formation\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).entity_name = uniqueEntityName;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).contact.email = uniqueEmailAddress;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).contact.first_name = uniqueFirstName;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).contact.last_name = uniqueLastName;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).jurisdiction = data.jurisdiction;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).domestic_jurisdiction = data.jurisdiction;\n  // operating_agreement\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === 'operating_agreement'; }).business_entity_name = uniqueEntityName;\n  // 1800_accountant\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === '1800_accountant'; }).acc_entity_name = uniqueEntityName;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === '1800_accountant'; }).email = uniqueEmailAddress;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === '1800_accountant'; }).acc_first_name = uniqueFirstName;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === '1800_accountant'; }).acc_last_name = uniqueLastName;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === '1800_accountant'; }).acc_entity_type = uniqueLastName;\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === '1800_accountant'; }).jurisdiction = data.jurisdiction;\n  //RA domestic jurisdiction\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === 'registered_agent_service'; }).domestic_jurisdiction = data.jurisdiction;\n  // ein domestic jurisdiction\n  quickFormationDataClone.order.order_data.find((oData) => { return oData.service === 'ein_creation'; }).domestic_jurisdiction = data.jurisdiction;\n  // order items\n  quickFormationDataClone.order.order_items.forEach((element) => {\n    if (element?.jurisdiction) {\n      element.jurisdiction = data.jurisdiction;\n    }\n  });\n  quickFormationDataClone.order.order_data.forEach((element) => {\n    if (element?.jurisdiction) {\n      element.jurisdiction = data.jurisdiction;\n    }\n  });\n  // registered agent yes/no\n  if (!data?.registered_agent) {\n    quickFormationDataClone.order.order_data = quickFormationDataClone.order.order_data.filter((services) => { return services.service !== 'registered_agent_service'; });\n    quickFormationDataClone.order.order_items = quickFormationDataClone.order.order_items.filter((services) => { return services.service !== 'registered_agent_service'; });\n  }\n  // ein_creation service yes/no\n  if (!data?.ein_creation) {\n    quickFormationDataClone.order.order_data = quickFormationDataClone.order.order_data.filter((services) => { return services.service !== 'ein_creation'; });\n    quickFormationDataClone.order.order_items = quickFormationDataClone.order.order_items.filter((services) => { return services.service !== 'ein_creation'; });\n  }\n  //online tools yes/no\n  if (!data?.online_tools) {\n    quickFormationDataClone.order.order_data = quickFormationDataClone.order.order_data.filter((services) => { return services.service !== 'basic_email'; });\n    quickFormationDataClone.order.order_items = quickFormationDataClone.order.order_items.filter((services) => { return services.service !== 'basic_email'; });\n    quickFormationDataClone.order.order_data = quickFormationDataClone.order.order_data.filter((services) => { return services.service !== 'domain_name_reg'; });\n    quickFormationDataClone.order.order_items = quickFormationDataClone.order.order_items.filter((services) => { return services.service !== 'domain_name_reg'; });\n    quickFormationDataClone.order.order_data = quickFormationDataClone.order.order_data.filter((services) => { return services.service !== 'domain_name_privacy'; });\n    quickFormationDataClone.order.order_items = quickFormationDataClone.order.order_items.filter((services) => { return services.service !== 'domain_name_privacy'; });\n    quickFormationDataClone.order.order_data = quickFormationDataClone.order.order_data.filter((services) => { return services.service !== 'static_website'; });\n    quickFormationDataClone.order.order_items = quickFormationDataClone.order.order_items.filter((services) => { return services.service !== 'static_website'; });\n    quickFormationDataClone.order.order_data = quickFormationDataClone.order.order_data.filter((services) => { return services.service !== 'website_tools_bundle'; });\n    quickFormationDataClone.order.order_items = quickFormationDataClone.order.order_items.filter((services) => { return services.service !== 'website_tools_bundle'; });\n  }\n  // corp specific changes\n  if (formationType === 'corp_formation') {\n    quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).completed_action = 'Complete Corp: Set Start Complete';\n    quickFormationDataClone.order.order_data.find((oData) => { return oData.service === formationType; }).completed_action_index = 5100;\n    quickFormationDataClone.order.order_data.find((oData) => { return oData.service === 'operating_agreement'; }).business_entity_name = uniqueEntityName;\n    quickFormationDataClone.order.order_data.find((oData) => { return oData.service === 'operating_agreement'; }).business_entity_type = 'CORP';\n    quickFormationDataClone.order.order_data.find((oData) => { return oData.service === 'operating_agreement'; }).entity_type = 'corp';\n    quickFormationDataClone.order.order_data.find((oData) => { return oData.service === '1800_accountant'; }).acc_entity_type = 'corp';\n  }\n\n  return quickFormationDataClone;\n};\n\nexport const quickOrder = async (qdata) => {\n  const currentEnvIsDev = window.location.hostname.includes('dev');\n  const currentHost = currentEnvIsDev ? 'https://www.dev.zenbusiness.com' : 'http://local.zenbusiness.com:8008';\n  const url = `${currentHost}/r/api/registration/create`;\n  const quickBody = quickOrderApi(qdata);\n  try {\n    await axios.post(url, quickBody);\n    await loginAndGoToPage('/d/login');\n  } catch (e) {\n    console.log(e);\n  }\n};\n\nexport default { quickOrder, quickOrderApi };\n","import _assign from 'lodash/assign';\n\nconst storage = window.localStorage;\nconst maxTime = 60000 * 60 * 24 * 30;\n\nexport const storeReducer = (key, data) => {\n  if (!storage) {\n    return;\n  }\n  storage.setItem(key, JSON.stringify(data));\n};\n\nexport const initializeReducer = (key, initialData, invalidateDate, invalidateInterval) => {\n  if (!storage) {\n    return initialData;\n  }\n  const timeKey = `${key}-time`,\n    timeData = storage.getItem(timeKey),\n    now = new Date().getTime();\n\n  if (timeData) {\n    try {\n      const createTime = parseInt(timeData, 10),\n        interval = now - createTime;\n\n      if (interval > maxTime\n        || (invalidateDate && invalidateDate > createTime)\n        || (invalidateInterval && (interval > invalidateInterval))) {\n        storeReducer(key, initialData);\n        storage.setItem(timeKey, `${now}`);\n        return initialData;\n      }\n    } catch (e) {\n      storage.setItem(timeKey, `${now}`);\n    }\n  }\n\n  const stringData = storage.getItem(key);\n  if (!stringData) {\n    storeReducer(key, initialData);\n    storage.setItem(timeKey, `${now}`);\n    return initialData;\n  }\n  try {\n    return _assign({}, initialData, JSON.parse(stringData));\n  } catch (e) {\n    storeReducer(key, initialData);\n    return initialData;\n  }\n};\n\nexport const clearReducer = (key) => {\n  if (storage) {\n    storage.removeItem(key);\n    storage.removeItem(`${key}-time`);\n  }\n};\n\nexport const getReducerSnapshot = (key, defaultVal) => {\n  if (storage) {\n    try {\n      const stringData = storage.getItem(key);\n      if (stringData) {\n        return JSON.parse(stringData);\n      }\n    } catch (e) { // eslint-disable-line\n    }\n  }\n  return defaultVal;\n};\n\nexport const getEmailAddress = () => {\n  const key = 'registration/contact';\n  if (storage) {\n    try {\n      const stringData = storage.getItem(key);\n      if (stringData) {\n        return JSON.parse(stringData).email;\n      }\n    } catch (e) { // eslint-disable-line\n    }\n  }\n  return 'null';\n};\n\nexport const storeLocalReducer = (key, data) => {\n  if (!storage) {\n    return;\n  }\n  storage.setItem(key, JSON.stringify(data));\n};\n\nexport const initializeLocalReducer = (key, initialData) => {\n  if (!storage) {\n    return initialData;\n  }\n  const stringData = storage.getItem(key);\n  if (!stringData) {\n    storeLocalReducer(key, initialData);\n    return initialData;\n  }\n  try {\n    return JSON.parse(stringData);\n  } catch (e) {\n    storeLocalReducer(key, initialData);\n    return initialData;\n  }\n};\n\nexport const clearLocalReducer = (key) => {\n  if (storage) {\n    storage.removeItem(key);\n  }\n};\n\nexport default {\n  initialize: initializeReducer,\n  store: storeReducer,\n  clear: clearReducer,\n  initializeLocal: initializeLocalReducer,\n  storeLocal: storeLocalReducer,\n  clearLocal: clearLocalReducer\n};\n","import React from 'react';\nimport Cleave from 'cleave.js/react';\nimport _map from 'lodash/map';\nimport styled from 'styled-components';\n\nimport { replaceLinkablePhrases } from './LinkableTextUtils';\nimport { SUFFIX_IN_NAME } from '../constants/ui';\n\nrequire('cleave.js/dist/addons/cleave-phone.us');\n\nconst AUTOFILL_INPUT_NAMES = (autoComplete) => {\n  return ({\n    'given-name': 'fname',\n    'additional-name': 'mname',\n    'family-name': 'lname',\n    'address-line1': 'address',\n    'address-line2': 'address',\n    'street-address': 'address',\n    'address-level2': 'city',\n    'postal-code': 'zip',\n    'tel-national': 'phone',\n    'cc-number': 'cardnumber',\n    'cc-exp': 'exp-date',\n    email: 'email'\n  })[autoComplete] || null;\n};\n\nconst\n  noPaste = (e) => {\n    e.stopPropagation();\n    e.preventDefault();\n  },\n\n  renderCleaveField = (fieldKey, props, labels, placeholders, className, onChange, refFn, cleaveOptions, autoComplete) => {\n    const\n      key = props[`${fieldKey}Key`],\n      id = `${fieldKey}-${Math.round(Math.random() * 10000)}`,\n      disabled = props[`${fieldKey}Disabled`] || false,\n      disablePaste = props[`${fieldKey}DisablePaste`] || false,\n      label = labels[fieldKey],\n      noteLabel = labels[`${fieldKey}NoteLabel`] || '',\n      placeholder = placeholders[fieldKey],\n      value = props[fieldKey],\n      error = props[`${fieldKey}Error`],\n      errorClass = error ? 'error-input' : '',\n      errorLabel = error ? props[`${fieldKey}ErrorLabel`] || '' : '',\n      ref = refFn || null,\n      inputMode = props[`${fieldKey}InputMode`] || null,\n      inputProperties = {\n        id,\n        type: cleaveOptions?.inputType || 'text',\n        disabled,\n        placeholder,\n        value,\n        options: cleaveOptions,\n        onChange,\n        ...autoComplete &&\n        {\n          autoComplete,\n          name: AUTOFILL_INPUT_NAMES(autoComplete)\n        },\n        inputMode\n      },\n      isAnimatedFieldClass = label && placeholder ? 'is-animated' : '';\n\n    if (disablePaste) {\n      inputProperties.onPaste = noPaste;\n    }\n\n    return (\n      <StyledDiv className={className || id} key={key}>\n        {label && !placeholder ? <label htmlFor={id} className={`rendered-field-label ${isAnimatedFieldClass}`}>{label}</label> : null}\n        {<Cleave className={`${errorClass} ${isAnimatedFieldClass}`} {...inputProperties} htmlRef={ref} />}\n        {label && placeholder ? <label htmlFor={id} className={`rendered-field-label ${isAnimatedFieldClass}`}>{label}</label> : null}\n        { noteLabel && (\n          <div className=\"note-label\">{noteLabel}</div>\n        )}\n        { errorLabel && (\n          <div className=\"error-message\">{replaceLinkablePhrases(errorLabel)}</div>\n        )}\n      </StyledDiv>\n    );\n  },\n\n  phoneNumberCleaveOptions = {\n    blocks: [ 3, 3, 4 ],\n    delimiter: '-',\n    delimiterLazyShow: false,\n    numericOnly: true,\n    inputType: 'tel'\n  },\n\n  creditCardCleaveOptions =  {\n    creditCard: true,\n    inputType: 'tel' // SSP-2982 specifying tel input type ensures numeric keyboard on mobile devices\n  },\n\n  monthYearCleaveOptions = {\n    date: true,\n    datePattern: ['m', 'Y'],\n    inputType: 'tel'\n  },\n\n  yearMonthDayCleaveOptions = {\n    date: true,\n    datePattern: ['Y', 'm', 'd'],\n    inputType: 'tel'\n  },\n\n  monthDayYearCleaveOptions = {\n    date: true,\n    datePattern: ['m', 'd', 'Y'],\n    inputType: 'tel'\n  },\n\n  dayMonthYearCleaveOptions = {\n    date: true,\n    datePattern: ['d', 'm', 'Y'],\n    inputType: 'tel'\n  },\n\n  cvcCleaveOptions = {\n    blocks: [ 4 ],\n    numericOnly: true,\n    inputType: 'tel'\n  },\n\n  zipCodeCleaveOptions = {\n    blocks: [ 5, 4 ],\n    delimiter: '-',\n    numericOnly: true,\n    delimiterLazyShow: true,\n    inputType: 'tel'\n  },\n\n  currencyCleaveOptions = {\n    numeral: true,\n    numeralDecimalScale: 7,\n    numeralPositiveOnly: true,\n    stripLeadingZeroes: false,\n    prefix: '$'\n  },\n\n  currencyValuePerShareCleaveOptions = {\n    numeral: true,\n    numeralDecimalScale: 5,\n    numeralPositiveOnly: true,\n    stripLeadingZeroes: false,\n    prefix: '$'\n  },\n\n  integerCleaveOptions = {\n    numeral: true,\n    numeralDecimalScale: 0\n  },\n\n  integerCleaveNoGroupOptions = {\n    numeral: true,\n    numeralDecimalScale: 0,\n    numeralThousandsGroupStyle: 'none'\n  },\n\n  floatCleaveOptions = {\n    numeral: true\n  },\n\n  ssnCleaveOptions = {\n    blocks: [ 3, 2, 4 ],\n    delimiter: '-',\n    numericOnly: true,\n    delimiterLazyShow: true,\n    inputType: 'tel'\n  },\n\n  einCleaveOptions = {\n    blocks: [ 2, 7 ],\n    delimiter: '-',\n    numericOnly: true,\n    delimiterLazyShow: true,\n    inputType: 'tel'\n  };\n\nconst StyledDiv = styled.div`\n  position: relative;\n  font-family: 'Lato', sans-serif;\n  font-size: 100%;\n  font-weight: inherit;\n  font-style: inherit;\n  input{\n    border: 2px solid #CCCCCC;\n    border-radius: 4px;\n    outline: none;\n    min-width: 100px;\n    transition: all .3s ease-out;\n    -webkit-transition: all .3s ease-out;\n    -moz-transition: all .3s ease-out;\n    -webkit-appearance:none;\n    color: #000000;\n    height: 52px; // fixes height animation\n  }\n  input:focus{\n    border-color: #28939C;\n  }\n  input.is-animated:focus, \n  input.is-animated:not(:placeholder-shown){\n    padding: 18px 16px 2px 16px;\n  }\n  input::placeholder{\n    color:transparent;\n  }\n  label.is-animated{\n    pointer-events: none;\n    position: absolute;\n    top: 0;\n    left: 0;\n    padding-left: 18px;\n    margin-top: 12px;\n    -webkit-transition:background 0.2s, top 0.2s, right 0.2s;\n    -moz-transition: background 0.2s, top 0.2s, right 0.2s;\n    transition: background 0.2s, top 0.2s, right 0.2s;\n    color: #CCCCCC;\n  }\n  input.is-animated:focus + label.is-animated,\n  input.is-animated:not(:placeholder-shown) + label{\n    font-size: 75%;\n    margin-top: 0;\n  }\n  @media (max-width: 812px) {\n    label.is-animated{\n      font-size: 16px;\n      padding-left: 4px;\n    }\n    input.is-animated:focus, \n    input.is-animated:not(:placeholder-shown){\n      padding: 18px 12px 2px 10px;\n    }\n  }\n`;\n\nexport const renderAnimateTextField = (fieldKey,\n  props,\n  labels,\n  placeholders,\n  className,\n  onChange,\n  type,\n  refFn,\n  inputElementOverlay,\n  autoComplete) => {\n  const\n    key = props[`${fieldKey}Key`],\n    id = `${fieldKey}-${Math.round(Math.random() * 10000)}`,\n    disabled = props[`${fieldKey}Disabled`] || false,\n    disablePaste = props[`${fieldKey}DisablePaste`] || false,\n    label = labels[fieldKey],\n    noteLabel = labels[`${fieldKey}NoteLabel`] || '',\n    placeholder =  placeholders[fieldKey],\n    maxLength = props[`${fieldKey}MaxLength`] || '',\n    value = props[fieldKey],\n    error = props[`${fieldKey}Error`],\n    ref = refFn || null,\n    onKeyPress = props[`${fieldKey}OnKeyPress`] || null,\n    errorClass = error ? 'error-input' : '',\n    errorLabel = error ? props[`${fieldKey}ErrorLabel`] || '' : '',\n    tabIndex = props[`${fieldKey}TabIndex`] || null,\n    inputProperties = {\n      id,\n      type,\n      disabled,\n      placeholder: ' ',\n      value,\n      onChange,\n      onKeyPress,\n      ...autoComplete && { name: AUTOFILL_INPUT_NAMES(autoComplete), autoComplete },\n      tabIndex\n    },\n    isAnimatedFieldClass = label && placeholder ? 'is-animated' : '';\n  if (disablePaste) {\n    inputProperties.onPaste = noPaste;\n  }\n  if (maxLength) {\n    inputProperties.maxLength = maxLength;\n  }\n\n  return (\n    <StyledDiv className={className} key={key}>\n      {label && !placeholder ? <label htmlFor={id} name={AUTOFILL_INPUT_NAMES(autoComplete)} className={`rendered-field-label ${isAnimatedFieldClass}`}>{label}</label> : null}\n      <input className={`${errorClass} ${isAnimatedFieldClass}`} {...inputProperties} ref={ref} />\n      {label && placeholder ? <label htmlFor={id} name={AUTOFILL_INPUT_NAMES(autoComplete)} className={`rendered-field-label ${isAnimatedFieldClass}`}>{label}</label> : null}\n      { inputElementOverlay /* this is used, for example in the ToggleablePasswordField, because it needs to be positioned over the input */ }\n      { noteLabel && (\n        <div className=\"note-label\">{noteLabel}</div>\n      )}\n      { errorLabel && (\n        <div className=\"error-message\">{errorLabel}</div>\n      )}\n    </StyledDiv>\n  );\n};\n\nexport const renderTextField = (fieldKey,\n  props,\n  labels,\n  placeholders,\n  className,\n  onChange,\n  type,\n  refFn,\n  inputElementOverlay,\n  autoComplete) => {\n  const\n    key = props[`${fieldKey}Key`],\n    id = `${fieldKey}-${Math.round(Math.random() * 10000)}`,\n    disabled = props[`${fieldKey}Disabled`] || false,\n    disablePaste = props[`${fieldKey}DisablePaste`] || false,\n    label = labels[fieldKey],\n    noteLabel = labels[`${fieldKey}NoteLabel`] || '',\n    placeholder = placeholders[fieldKey],\n    maxLength = props[`${fieldKey}MaxLength`] || '',\n    value = props[fieldKey],\n    error = props[`${fieldKey}Error`],\n    ref = refFn || null,\n    onKeyPress = props[`${fieldKey}OnKeyPress`] || null,\n    errorClass = error ? 'error-input' : '',\n    errorLabel = error ? props[`${fieldKey}ErrorLabel`] || '' : '',\n    tabIndex = props[`${fieldKey}TabIndex`] || null,\n    inputProperties = {\n      id,\n      type,\n      disabled,\n      placeholder,\n      value,\n      onChange,\n      onKeyPress,\n      ...autoComplete && { name: AUTOFILL_INPUT_NAMES(autoComplete), autoComplete },\n      tabIndex\n    };\n  if (disablePaste) {\n    inputProperties.onPaste = noPaste;\n  }\n  if (maxLength) {\n    inputProperties.maxLength = maxLength;\n  }\n\n  return (\n    <div className={className} key={key}>\n      {label && <label htmlFor={id} name={AUTOFILL_INPUT_NAMES(autoComplete)}>{label}</label>}\n      <input className={errorClass} {...inputProperties} ref={ref} />\n      { inputElementOverlay /* this is used, for example in the ToggleablePasswordField, because it needs to be positioned over the input */ }\n      { noteLabel && (\n        <div className=\"note-label\">{noteLabel}</div>\n      )}\n      { errorLabel && (\n        <div className=\"error-message\">{errorLabel}</div>\n      )}\n    </div>\n  );\n};\n\nexport const renderAnimateField = (fieldKey, props, labels, placeholders, className, onChange, refFn, autoComplete) => {\n  return renderAnimateTextField(fieldKey, props, labels, placeholders, className, onChange, 'text', refFn, null, autoComplete);\n};\n\nexport const renderField = (fieldKey, props, labels, placeholders, className, onChange, refFn, autoComplete) => {\n  return renderTextField(fieldKey, props, labels, placeholders, className, onChange, 'text', refFn, null, autoComplete);\n};\n\nexport const renderEmailField = (fieldKey, props, labels, placeholders, className, onChange, refFn, autoComplete = 'email') => {\n  return renderAnimateTextField(fieldKey, props, labels, placeholders, className, onChange, 'email', refFn, null, autoComplete);\n};\n\nexport const renderPasswordField = (fieldKey, props, labels, placeholders, className, onChange, refFn, autoComplete = 'no') => {\n  return renderAnimateTextField(fieldKey, props, labels, placeholders, className, onChange, 'password', refFn, null, autoComplete);\n};\n\nexport const renderTextArea = (fieldKey, props, labels, placeholders, className, rows, cols, onChange, refFn, autoComplete) => {\n  const\n    key = props[`${fieldKey}Key`],\n    id = `${fieldKey}-${Math.round(Math.random() * 10000)}`,\n    disabled = props[`${fieldKey}Disabled`] || false,\n    disablePaste = props[`${fieldKey}DisablePaste`] || false,\n    label = labels[fieldKey],\n    noteLabel = labels[`${fieldKey}NoteLabel`] || '',\n    placeholder = placeholders[fieldKey],\n    value = props[fieldKey],\n    error = props[`${fieldKey}Error`],\n    errorClass = error ? 'error-input' : '',\n    errorLabel = error ? props[`${fieldKey}ErrorLabel`] || '' : '',\n    ref = refFn || null,\n    inputProperties = {\n      id,\n      type: 'text',\n      disabled,\n      placeholder,\n      value,\n      onChange,\n      ...autoComplete && { autoComplete },\n      ...autoComplete && { name: AUTOFILL_INPUT_NAMES(autoComplete) }\n    };\n\n  if (disablePaste) {\n    inputProperties.onPaste = noPaste;\n  }\n  if (rows) {\n    inputProperties.rows = rows;\n  }\n  if (cols) {\n    inputProperties.cols = cols;\n  }\n  return (\n    <div className={className} key={key}>\n      { label && (\n        <label htmlFor={id} name={inputProperties.name}>{label}</label>\n      ) }\n      <textarea className={errorClass} {...inputProperties} ref={ref} />\n      { noteLabel && (\n        <div className=\"note-label\">{noteLabel}</div>\n      )}\n      { errorLabel && (\n        <div className=\"error-message\">{errorLabel}</div>\n      )}\n    </div>\n  );\n};\n\nexport const renderPhoneNumberField = (fieldKey, props, labels, placeholders, className, onChange, refFn, autoComplete) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, phoneNumberCleaveOptions, autoComplete);\n};\n\nexport const renderCreditCardField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, creditCardCleaveOptions, 'cc-number');\n};\n\nexport const renderMonthYearField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, monthYearCleaveOptions, 'cc-exp');\n};\n\nexport const renderDayMonthYearField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, dayMonthYearCleaveOptions);\n};\n\nexport const renderMonthDayYearField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, monthDayYearCleaveOptions);\n};\n\nexport const renderYearMonthDayField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, yearMonthDayCleaveOptions);\n};\n\nexport const renderCVCField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  // for security reasons autocomplete should always be off for cvc fields\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, cvcCleaveOptions, 'off');\n};\n\nexport const renderZipCodeField = (fieldKey, props, labels, placeholders, className, onChange, refFn, autoComplete) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, zipCodeCleaveOptions, autoComplete);\n};\n\nexport const renderCurrencyField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  if (fieldKey === 'valuePerShare') {\n    return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, currencyValuePerShareCleaveOptions);\n  }\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, currencyCleaveOptions);\n};\n\nexport const renderIntegerField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, props.noDelimiter ? integerCleaveNoGroupOptions : integerCleaveOptions);\n};\n\nexport const renderFloatField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, floatCleaveOptions);\n};\n\nexport const renderSSNField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  const fsHideClassName = className ? `${className} fs-hide` : 'fs-hide';\n  return renderCleaveField(fieldKey, props, labels, placeholders, fsHideClassName, onChange, refFn, ssnCleaveOptions);\n};\n\nexport const renderEINField = (fieldKey, props, labels, placeholders, className, onChange, refFn) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, einCleaveOptions);\n};\n\nexport const renderCustomCleaveField = (fieldKey, props, labels, placeholders, className, onChange, refFn, cleaveOptions) => {\n  return renderCleaveField(fieldKey, props, labels, placeholders, className, onChange, refFn, cleaveOptions);\n};\n\nexport const renderAddressColumnValue = (addressLine1, addressLine2, city, state, zipCode, country, clzName = 'column-value') => {\n  const cityState = state ? `${city}, ${state}` : city,\n    isUS = !country || country === 'United States of America';\n\n  return (\n    <div className={clzName}>\n      {addressLine1}\n      { !!addressLine2 && (\n        <br />\n      )}\n      { addressLine2 }\n      <br />\n      {cityState} {zipCode}\n      { !isUS && (\n        <br />\n      )}\n      { !isUS && country }\n    </div>\n  );\n};\n\nexport const renderNameColumnValue = (firstName, middleName, lastName, suffix = '', companyName, postFix, clzName = 'column-value') => {\n  let name = companyName;\n  if (!name) {\n    if (middleName) {\n      name = `${firstName} ${middleName} ${lastName}`;\n    } else {\n      name = `${firstName} ${lastName}`;\n    }\n    if (suffix) {\n      name = `${name} ${SUFFIX_IN_NAME[suffix]}`;\n    }\n  }\n\n  return (\n    <div className={clzName}>{name}{ postFix ? ` ${postFix}` : '' }</div>\n  );\n};\n\nexport const renderBreakLines = (length, key = '') => {\n  return _map(Array(length), (_, index) => { return (<br key={`br-${key}${index}`} />); } );\n};\n\nexport default {\n  renderField,\n  renderEmailField,\n  renderPasswordField,\n  renderTextArea,\n  renderPhoneNumberField,\n  renderCreditCardField,\n  renderMonthYearField,\n  renderDayMonthYearField,\n  renderMonthDayYearField,\n  renderYearMonthDayField,\n  renderCVCField,\n  renderZipCodeField,\n  renderCurrencyField,\n  renderIntegerField,\n  renderFloatField,\n  renderSSNField,\n  renderEINField,\n  renderCustomCleaveField,\n  renderAddressColumnValue,\n  renderNameColumnValue,\n  renderBreakLines\n};\n","\n/**\n * Report an error to sentry\n * @param {Exception} err Exception with stack trace from origination\n * @param {Object} opts sentry options\n * @param {Object} opts.metaData Additional diagnostic information\n * @param {String} opts.severity 'info', 'warning' or 'error'\n * @param {Object} opts.user User information\n */\nexport const reportError = (err, opts) => {\n  if (window.Sentry) {\n    console.log('withScope');\n    window.Sentry.withScope((scope) => {\n      scope.setLevel(opts.severity || 'error');\n      scope.setExtra('metaData', opts.metaData);\n      window.Sentry.captureException(err);\n    });\n  } else {\n    console.groupCollapsed('Sentry: ReportError Args');\n    console.error(err);\n    console.log(JSON.stringify(opts, null, 4));\n    console.groupEnd();\n  }\n};\n\n/**\n * Identify a new user to sentry\n * @param {Object} user sentry user information\n * @Param {String} user.id Indicates internal user Id\n * @Param {String} user.name if exists, user name\n * @Param {string} user.email if exists, user email\n*/\nexport const identifyUser = (user) => {\n  if (window.Sentry) {\n    window.Sentry.configureScope((scope) => {\n      scope.setUser(user);\n    });\n  }\n};\n\nexport default {\n  reportError\n};\n","import React from 'react';\n\nimport env from '../config';\n\nconst\n  /* eslint-disable */\n  getParameterByName = (e,a) => {a||(a=window.location.href),e=e.replace(/[\\[\\]]/g,\"\\\\$&\");const r=new RegExp(\"[?&]\"+e+\"(=([^&#]*)|&|#|$)\").exec(a);return r?r[2]?decodeURIComponent(r[2].replaceAll(/\\+/g,\" \")):\"\":null},\n  /* eslint-enable */\n  storageKey = 'shareASale',\n  storage = window.localStorage,\n  thirdPartyTrackingCSS = 'color: #4984FA';\n\nlet\n  sscid = '',\n  enabled = false,\n  baseUrl = '',\n  account = '';\n\nconst\n  onPayment = (totalPrice, id, xtype) => {\n    if (!enabled) {\n      if (env.client.debugLogging) {\n        console.groupCollapsed('%c SHAREASALE: track', thirdPartyTrackingCSS);\n        console.log(`totalPrice = ${totalPrice.toFixed(2)}`);\n        console.log(`id = ${id}`);\n        console.log(`xtype = ${xtype || 'not set'}`);\n        console.log(`sscid = ${sscid}`);\n        console.groupEnd();\n      }\n      if (storage) {\n        storage.setItem(storageKey, '');\n      }\n      sscid = '';\n      return null;\n    }\n\n    let pixelURL = `${baseUrl}/sale.cfm?amount=${totalPrice.toFixed(2)}&tracking=${id}&transtype=sale&merchantID=${account}&sscidmode=6&sscid=${sscid}`;\n    if (xtype) {\n      pixelURL = `${pixelURL}&xtype=${xtype}`;\n    }\n    if (storage) {\n      storage.setItem(storageKey, '');\n    }\n    sscid = '';\n    return (\n      <img src={pixelURL} width=\"1\" height=\"1\" alt=\"\" />\n    );\n  },\n  isEnabled = () => {\n    return enabled;\n  };\n\nexport const initialize = (response) => {\n  const { shareASale } = response;\n\n  enabled = shareASale.enabled;\n  baseUrl = shareASale.baseUrl;\n  account = shareASale.account;\n\n  sscid = getParameterByName('sscid');\n  if (!sscid) {\n    if (storage) {\n      sscid = storage.getItem(storageKey) || '';\n    }\n  } else if (storage) {\n    storage.setItem(storageKey, sscid);\n  }\n};\n\nexport default {\n  initialize,\n  isEnabled,\n  onPayment\n};\n","function businessTypeToTarget(type) {\n  if (type === 'SOLE') {\n    return 'sole_prop';\n  }\n  if (type === 'S-CORP') {\n    return 'llc';\n  }\n  return type === 'LLCX' ? 'llc' : 'corp';\n}\n\nexport function generateSaleType(brand, target, itemPrice, modifier) {\n  if (!brand) {\n    throw new Error('Brand is required when generating saleType.');\n  }\n  if (!target) {\n    throw new Error(`Target is required for ${brand} when generating saleType.`);\n  }\n  let label = `${brand}-${target}`;\n  if (modifier) {\n    label = `${label}-${modifier}`;\n  }\n  label = `${label}-${itemPrice}`;\n  return label;\n}\n\nexport function generateSaleTypeByBusinessType(brand, type, itemPrice, modifier = '') {\n  if (!type) {\n    throw new Error(`Type is required for ${brand} when generating saleType.`);\n  }\n  return generateSaleType(brand, businessTypeToTarget(type), itemPrice, modifier);\n}\n\nexport function generateSaleTypeByBusinessTypeAndPlanLevel(brand, type, itemPrice, planLevel) {\n  let plan = 'free';\n  if (planLevel === 'level1') {\n    plan = 'starter';\n  } else if (planLevel === 'level2') {\n    plan = 'pro';\n  } else if (planLevel === 'level3') {\n    plan = 'premium';\n  }\n  return generateSaleType(brand, businessTypeToTarget(type), itemPrice, plan);\n}\n\nexport default {\n  generateSaleType,\n  generateSaleTypeByBusinessType,\n  generateSaleTypeByBusinessTypeAndPlanLevel\n};\n","import _get from 'lodash/get';\n\nconst apiKey = 'pk_test_4YFr8fzylUZM7cWCUDDPDwL5'; // Default to test key\n\nexport const initializeAPIKey = (response) => {\n  const ret = _get(response, 'stripe.key', apiKey);\n  return ret;\n};\n\nexport default {\n  initializeAPIKey\n};\n","// Constant ID provided by marketing\nexport const googleAdsConversionId = 'AW-844284601';\n\n// Config object which will have the conversion labels created by marketing\nexport const googleConversionLabels = {\n  leadEnhanced: 'abAvCIrpi_sCELmFy5ID',\n  purchaseEnhanced: 'zIkHCIm0kesCELmFy5ID'\n};\n\n/**\n * Helper function in order to create the compain/pixel - returns site tag & label\n * @param {string | undefined} label - value of googleConversionLabels based on prop\n */\nexport const getGoogleAdPixel = (label) => {\n  return Object.values(googleConversionLabels).includes(label) ? `${googleAdsConversionId}/${label}` : undefined;\n};\n\n// Sets the current logged in user (if available)\nexport const setGoogleAdEnhancedConversionData = () => {\n  const contact = JSON.parse(window.localStorage.getItem('registration/contact')) || {};\n\n  // Depending on event reporting time - the email and/or phone number may not exist in local storage yet (leads get reported in PF before phone entry)\n  if (contact) {\n    window.enhanced_conversion_data = {};  //this has to be global scope for gtags to see it & automatically add the hashed value to payload\n    if (contact.email) {\n      window.enhanced_conversion_data.email = contact.email;\n    }\n    if (contact.phoneNumber) {\n      window.enhanced_conversion_data.phone_number = `1 ${contact.phoneNumber}`;\n    }\n  }\n};\n","import _get from 'lodash/get';\nimport _isNumber from 'lodash/isNumber';\nimport React from 'react';\nimport decode from 'jwt-decode';\n\nimport env from '../config';\nimport { isLoggedIn, getIdToken } from './AuthService';\nimport { getPlanLevel } from './PlanService';\nimport { reportError } from './ReportingUtils';\nimport { getCookie } from './CookieUtils';\nimport { getPurchasePrice, setPurchasePrice, deletePurchasePrice } from './PricingUtils';\nimport { getCampaignmedium, getCampaignSource, getCampaignName, getEntryPointGroup } from './PartnerUtils';\n\nimport avo from './avo';\nimport rudderStackDestination from './avoRudderstack';\n\nimport { URLS as COMPANY_URLS } from '../constants/companies';\nimport { getIsFreeAccount } from './FreeAccountUtils';\nimport { getGoogleAdPixel, googleConversionLabels, setGoogleAdEnhancedConversionData } from './GoogleAdUtils';\nimport { URLS as CORA_URLS } from '../constants/register_cora_pf';\nimport { URLS as DBA_URLS } from '../constants/register_dbaentity_pf';\n\nconst\n  thirdPartyTrackingCSS = 'color: #4984FA',\n  debugCookieEnabled = getCookie('zbdebug') === 'woof',\n  debugLoggingEnabled = () => {\n    return env.client.debugLogging || debugCookieEnabled;\n  };\n\nconst PROFILE_CLAIM = 'https://www.zenbusiness.com/profile';\nlet googleads = { enabled: false },\n  zenbusinessEnv = 'local',\n  release = {},\n  visitUUID = null,\n  selectedPlan = null,\n  accountUUID = null,\n  userUUID = null,\n  gclid = null,\n  msclkid = null;\n\n/**\n * Normalize page URI to prevent UUID from making URI too unique for analytics.\n * NOTE: This check is duplicated in the GA loading script in index.ejs.\n *\n * @param {String} page relative URI path\n * @returns page or /company page URL with UUID replaced by `$uuid` if exists\n */\nexport const normalizePage = (page) => {\n  // React router can leave off the leading slash, add it back for consistency in analytics.\n  const pageViewed = page.indexOf('/') !== 0 ? `/${page}` : page;\n\n  // Remove identifiers from company urls for analytics\n  if (pageViewed.indexOf(`/${COMPANY_URLS.BASE}/`) === 0) {\n    // Replace any UUID found with a non-unique 'uuid'\n    return pageViewed.replace(/[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}/g, '$uuid');\n  }\n  return pageViewed;\n};\n\n/**\n * Avo and Rudderstack setup\n */\nexport const initAvoRudderstack = () => {\n  avo.initAvo(\n    {\n      env: env.isLocal || env.isDev ? 'dev' : 'prod',\n      webDebugger: !window.Cypress\n    },\n    {},\n    {},\n    rudderStackDestination\n  );\n};\n\nexport const identify = () => {\n  if (userUUID) {\n    avo.userIdentified({ userId_: userUUID });\n  } else {\n    avo.userIdentified({ userId_: visitUUID });\n  }\n};\n\nexport const unidentified = () => {\n  avo.userUnidentified();\n};\n\n\nexport const setVisitor = (visitorData, requestData) => {\n  if (!visitorData) return;\n\n  visitUUID = visitorData.visitUUID || null;\n  zenbusinessEnv = visitorData.zenbusinessEnv || 'local';\n  release = visitorData.release || {};\n  accountUUID = null;\n  userUUID = null;\n\n  const idToken = getIdToken();\n\n  if (requestData) {\n    gclid = requestData.gclid;\n    msclkid = requestData.msclkid;\n  }\n\n  if (idToken) {\n    const decodedToken = decode(idToken);\n    accountUUID = decodedToken?.[PROFILE_CLAIM]?.accountUuid || '';\n    userUUID = decodedToken?.[PROFILE_CLAIM]?.userUuid || '';\n  }\n\n};\n\n/**\n * Utility method to log statements for debugging purposes in tracking\n * @param {string} label - label to start the log panel with\n * @param {string[] | object[]} entriesToLog - array of entries that will be iterated over & logged within the group\n */\nexport const logIfDebugLoggingEnabled = (label, entriesToLog) => {\n  if (debugLoggingEnabled()) {\n    console.groupCollapsed(`%c ${label}`, thirdPartyTrackingCSS);\n    entriesToLog.forEach((e) => { console.log(e); } );\n    console.groupEnd();\n  }\n};\n\nexport const buildEventsData = (localData) => {\n  const globalData = {\n    visitUUID,\n    ...(accountUUID ? { accountUUID } : {}),\n    zenbusinessEnv,\n    release\n  };\n\n  if (selectedPlan && selectedPlan !== 'free') {\n    globalData['selected plan'] = selectedPlan;\n    globalData['plan period'] = 'annual';\n  }\n\n  const data = Object.assign({}, globalData, localData);\n\n  const fixedRelease = typeof data.release === 'object'\n    ? Object.values(data.release).join('.')\n    : data.release;\n\n  const fixedInputValue =\n    typeof data.inputValue === 'boolean'\n      ? data.inputValue.toString()\n      : data.inputValue;\n\n  const fixedTestingIdVariant =\n    Array.isArray(data.testing_id_variant)\n      ? data.testing_id_variant.join(',')\n      : data.testing_id_variant;\n\n  data.release = fixedRelease;\n  data.inputValue = fixedInputValue;\n  data.testing_id_variant = fixedTestingIdVariant;\n\n  // Normalize page URL if exists\n  if (data.url) {\n    const normalizedUrl = normalizePage(data.url);\n    if (normalizedUrl !== data.url) {\n      data.originalUrl = data.url;\n      data.url = normalizedUrl;\n    }\n  }\n\n  return data;\n};\n\n/**\n * Adjust unique URLs to be non-unique and thus easily aggregatable.\n * E.g. There have been 1337 visits to `/d/company/$uuid/domains`.\n * @param {string} pathname\n * @returns {string} pathname without any customer/business unique identifiers\n */\nconst standardizePathname = (pathname) => {\n  // React router can leave off the leading slash, add it back for consistency in analytics.\n  const pageViewed = pathname.indexOf('/') !== 0 ? `/${pathname}` : pathname;\n\n  // Remove identifiers from company urls for analytics\n  // Replace any UUID found with a non-unique 'uuid'\n  return pageViewed.replace(/[A-Za-z0-9]{8}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{4}-[A-Za-z0-9]{12}/g, '$uuid');\n};\n\n/* eslint-disable */\nexport const mixpanelTrackAddOn = (page, service, state) => {\n  /*\n  let stateStr = null;\n  if (state === true) {\n    stateStr = 'yes';\n  } else if (state === false) {\n    stateStr = 'no';\n  }\n  mixpanelTrack('click', {\n    container: `${service} Addon`,\n    action: 'Toggle Addon',\n    url: document.location.pathname,\n    state: stateStr\n  });\n  */\n};\n/* eslint-enable */\n\nexport const trackEventMap = {\n  true: 'yes',\n  false: 'no'\n};\n\nexport const mixpanelTrackPlans = (message, planId) => {\n  selectedPlan = planId || 'free';\n};\n\nexport const setMixpanelSelectedPlan = (planLevel) => {\n  const plan = getPlanLevel(planLevel, '') || { id: 'free' };\n\n  selectedPlan = plan.id;\n};\n\nexport const initializeGoogleAds = (envAds) => {\n  googleads = _get(envAds, 'googleads', {});\n};\n\nexport const loadGoogleAds = () => {\n  const { enabled = false } = googleads;\n\n  if (enabled) {\n    const script = document.createElement('script');\n    script.src = 'https://www.googleadservices.com/pagead/conversion.js';\n    script.async = true;\n    document.body.appendChild(script);\n  }\n\n  if (debugLoggingEnabled()) {\n    console.log('%c GOOGLE ADS - load them if enabled', thirdPartyTrackingCSS);\n  }\n};\n\nexport const insertGoogleAds = () => {\n  const { enabled = false, id, conversion } = googleads;\n\n  if (enabled) {\n    // const url = `//www.googleadservices.com/pagead/conversion/${id}/?label=${conversion}&amp;guid=ON&amp;script=0`;\n    const url = `//www.googleadservices.com/pagead/conversion/${id}/?label=${conversion}&guid=ON&script=0`;\n    return (\n      <img height=\"1\" width=\"1\" alt=\"\" src={url} />\n    );\n  }\n  if (debugLoggingEnabled()) {\n    console.log('%c GOOGLE ADS - insert tracking pixel', thirdPartyTrackingCSS);\n  }\n  return null;\n};\n\n/**\n * Helper function for passing an object to GTag reporting & catching errors\n * @param {string} type type of event to report\n * @param {any} data JSON to report via GTags\n */\nconst reportGtagEvent = (type, data) => {\n  if (!window.gtag) {\n    logIfDebugLoggingEnabled(`Google Ads: '} ${type}`, [data]);\n    return;\n  }\n  try {\n    setGoogleAdEnhancedConversionData();\n    window.gtag('event', type, data);\n  } catch (e) {\n    if (debugLoggingEnabled()) {\n      console.log(e);\n    }\n  } finally {\n    logIfDebugLoggingEnabled(`Google Ads: '} ${type}`, [data]);\n  }\n};\n\nfunction stripPII(url) {\n  const emailParameterRegex = /(\\?|&)email=.*?(?=(&|#|$))/g;\n  let urlWithoutPII = url;\n  if (emailParameterRegex.test(urlWithoutPII)) {\n    urlWithoutPII = urlWithoutPII.replace(emailParameterRegex, '$1email=$email');\n  }\n  return urlWithoutPII;\n}\n\n// Used to track URLs that we should only report one time for a 'page visit' with gtag - and potentially more later\n// For any key, set initial value to false, then after reporting first time set true\nconst gtagReportOnce = {\n  [`/${CORA_URLS.BASE}/${CORA_URLS.QUESTIONNAIRE}`]: false,\n  [`/${DBA_URLS.BASE}/${DBA_URLS.QUESTIONNAIRE}`]: false\n  // TODO - Add DBA questionnaire once released\n};\n\n/* eslint-disable max-statements */\nconst gaTrack = (type, data) => {\n  // Normalize page url and redact PII if it exists\n  if (data.page) {\n    const normalizedPage = normalizePage(data.page);\n    if (data.page !== normalizedPage) {\n      data.originalPage = data.page;\n      data.page = normalizedPage;\n    }\n  }\n\n  // Needed to enable Google Optimize in Single Page Apps, see SSP-4148\n  if (window.dataLayer) {\n    window.dataLayer.push({ event: 'optimize.activate' });\n  }\n\n  const customData = {\n    dimension1: visitUUID,\n    dimension2: `${new Date().getTime()}`\n  };\n\n\n  if (window.gtag) {\n    if (type === 'pageview') {\n\n      const { page } = data;\n      if (!page) {\n        reportError(new Error(`GA ${type} malformed: requires page`), { metaData: { type, data } });\n        return;\n      }\n      const { pathname } = location;\n      const reportOnce = gtagReportOnce[pathname];\n      if (reportOnce != null) {\n        if (reportOnce === true) {\n          return;\n        }\n        if (reportOnce === false) {\n          gtagReportOnce[pathname] = true;\n        }\n      }\n      reportGtagEvent('page_view', {\n        page_title: document.title || '',\n        page_location: stripPII(location.href),\n        page_path: page,\n        ...customData\n      });\n      return;\n    }\n    if (type === 'event') {\n      const { eventCategory, eventAction, eventLabel, eventValue } = data;\n      if (!eventCategory || !eventAction) {\n        reportError(new Error(`GA ${type} malformed: requires category and action`), { metaData: { type, data } });\n        return;\n      }\n      const gtagData = {\n        event_category: eventCategory,\n        ...customData\n      };\n      if (eventLabel) {\n        gtagData.event_label = eventLabel;\n        if (eventValue) {\n          gtagData.value = eventValue;\n        }\n      }\n      reportGtagEvent(eventAction, gtagData);\n    } else {\n      reportError(new Error('Unrecognized GA type'), { metaData: { type, data } });\n    }\n  }\n\n  if (debugLoggingEnabled()) {\n    const logStatements = [`type: ${type}`];\n    if (type === 'pageview') {\n      logStatements.push(`page: ${data.page}`);\n    } else if (type === 'event') {\n      logStatements.push(`eventCategory: ${data.eventCategory}`);\n      logStatements.push(`eventAction: ${data.eventAction}`);\n      logStatements.push(`eventLabel: ${data.eventLabel}`);\n      logStatements.push(`eventValue: ${data.eventValue}`);\n    }\n    logStatements.push(`dimension1: ${customData.dimension1}`);\n    logStatements.push(`dimension2: ${customData.dimension2}`);\n    logIfDebugLoggingEnabled('GA: track', logStatements);\n  }\n\n};\n\n// Google Analytics reporting\nconst gaPurchase = (category, orderId, services, total) => {\n  const data = {\n    transaction_id: orderId,\n    value: total,\n    currency: 'USD',\n    items: services.map(({ service: id, price }) => {\n      return ({\n        id,\n        name: id.replace(/_/g, ' '),\n        price: price.toString(),\n        quantity: 1\n      });\n    })\n  };\n  reportGtagEvent('purchase', data);\n};\n\n/**\n * Reports Google Ad purchases externally for marketing\n * @param {String} id - the UUID of the provided order\n * @param {Number} price - dollar value of the provided order\n */\nconst gAdsPurchase = (id, price) => {\n  const data = {\n    send_to: getGoogleAdPixel(googleConversionLabels.purchaseEnhanced),\n    value: price,\n    currency: 'USD',\n    transaction_id: id\n  };\n  reportGtagEvent('conversion', data);\n};\n\nexport const fbgaPurchase = (category, id, services, price) => {\n  setPurchasePrice(price);\n  gaPurchase(category, id, services, price);\n  // For new customers' first order, report to Google Ads.  This will need to be changed for\n  //TODO Update this implementation to account for 1st customer order from Free Dash\n  if (!isLoggedIn()) {\n    gAdsPurchase(id, price);\n  }\n};\n\n\n/**\n * Track views changes\n * - Initial load supported by script loading.\n * - Subsquent load is handled by the lines below.\n *\n * @param {String} page\n */\nexport const trackView = (location, pageDetails, { ignoreGA = false, ignoreMixpanel = false } = {}) => {\n  const { pathname } = location;\n\n  // Handle Google Analytics\n  if (!ignoreGA) {\n    gaTrack('pageview', {\n      page: pathname\n    });\n  }\n\n  // Handle Mixpanel\n  if (!ignoreMixpanel) {\n    const localData = { // without Google Analytics Experiment data\n      url: standardizePathname(pathname),\n      deviceType: window.zenIsMobile ? 'mobile' : 'desktop',\n      ...pageDetails\n    };\n\n    const dataToSend = buildEventsData(localData);\n\n    avo.view({\n      zenbusinessEnv: dataToSend.zenbusinessEnv,\n      release: dataToSend.release,\n      pageType: dataToSend.pageType || '',\n      url: dataToSend.url || '',\n      pageTitle: dataToSend.pageTitle || '',\n      deviceType: dataToSend.deviceType || '',\n      pageSection: dataToSend.pageSection || '',\n      screenName: dataToSend.screenName || 'entity_not_found',\n      formationStatus: dataToSend.formationStatus || 'unknown',\n      visitUuid: dataToSend.visitUUID || '',\n      userUuid: userUUID || '',\n      testingIdVariant: dataToSend.testing_id_variant || '',\n      accountUuid: accountUUID || '',\n      activeFlow: dataToSend.activeFlow || '',\n      msclkid,\n      gclid,\n      isLoggedIn: isLoggedIn().toString(),\n      component: 'web'\n    });\n  }\n};\n\nexport const getClickDetails = (clickText, value, clickType) => {\n  return {\n    clickType,\n    inputValue: value || '',\n    clickText\n  };\n};\n\nexport const getButtonClickDetails = (clickText, value) => {\n  return getClickDetails(clickText, value, 'button');\n};\n\nexport const getDropdownClickDetails = (clickText, value) => {\n  return getClickDetails(clickText, value, 'dropdown');\n};\n\nexport const getArrowClickDetails = (clickText, value) => {\n  return getClickDetails(clickText, value, 'arrow');\n};\n\nexport const trackClick = (pageDetails, clickEventDetails, { ignoreMixpanel = false } = {}) => {\n  const { pathname } = window.location;\n\n  // Handle Mixpanel\n  if (!ignoreMixpanel) {\n    const localData = { // without Google Analytics Experiment data\n      clickUrl: pathname,\n      ...pageDetails,\n      ...clickEventDetails,\n      deviceType: window.zenIsMobile ? 'mobile' : 'desktop'\n    };\n\n    const dataToSend = buildEventsData(localData);\n\n    avo.click({\n      zenbusinessEnv: dataToSend.zenbusinessEnv,\n      release: dataToSend.release,\n      pageType: dataToSend.pageType || '',\n      url: dataToSend.url || '',\n      pageTitle: dataToSend.pageTitle || '',\n      deviceType: dataToSend.deviceType || '',\n      pageSection: dataToSend.pageSection || '',\n      visitUuid: dataToSend.visitUUID || '',\n      userUuid: userUUID || '',\n      testingIdVariant: dataToSend.testing_id_variant || '',\n      accountUuid: accountUUID || '',\n      activeFlow: dataToSend.activeFlow || '',\n      clickText: dataToSend.clickText || '',\n      clickType: dataToSend.clickType || '',\n      clickUrl: dataToSend.clickUrl || '',\n      inputValue: dataToSend.inputValue || ''\n    });\n  }\n};\n\nexport const rudderstackTrack = (message, localData = {}) => {\n  const dataToSend = buildEventsData(localData);\n\n  avo.view({\n    zenbusinessEnv: dataToSend.zenbusinessEnv,\n    release: dataToSend.release,\n    pageType: dataToSend.pageType || '',\n    url: dataToSend.url || '',\n    pageTitle: message || '',\n    deviceType: dataToSend.deviceType || '',\n    pageSection: dataToSend.pageSection || '',\n    screenName: dataToSend.screenName || 'entity_not_found',\n    formationStatus: dataToSend.formationStatus || 'unknown',\n    visitUuid: dataToSend.visitUUID || '',\n    userUuid: userUUID || '',\n    testingIdVariant: dataToSend.testing_id_variant || '',\n    accountUuid: accountUUID || '',\n    activeFlow: dataToSend.activeFlow || '',\n    msclkid,\n    gclid,\n    isLoggedIn: isLoggedIn().toString(),\n    component: 'web'\n  });\n};\n\nexport const purchasedCompleted = (localData = {}) => {\n  const dataToSend = buildEventsData(localData);\n\n  avo.purchaseCompleted({\n    zenbusinessEnv: dataToSend.zenbusinessEnv,\n    release: dataToSend.release,\n    pageType: dataToSend.pageType || '',\n    url: dataToSend.url || '',\n    pageTitle: dataToSend.pageTitle || '',\n    deviceType: dataToSend.deviceType || '',\n    pageSection: dataToSend.pageSection || '',\n    userUuid: userUUID || '',\n    accountUuid: accountUUID || '',\n    msclkid,\n    gclid,\n    visitUuid: dataToSend.visitUUID || '',\n    status: dataToSend.status || '',\n    totalPrice: dataToSend.totalPrice ? dataToSend.totalPrice : '',\n    product: dataToSend.product || ''\n  });\n};\n\n/**\n * Track events\n *\n * @param {String} eventCategory\n * @param {String} eventAction\n * @param {String} eventLabel\n * @param {Number} eventValue\n */\nexport const trackEvent = (eventCategory, eventAction, eventLabel, eventValue) => {\n  // Handle Google Analytics\n  gaTrack('event', { eventCategory, eventAction, eventLabel, eventValue });\n\n  // Handle Mixpanel\n  if (eventCategory.toLowerCase() === 'purchase') {\n    const dataToSend = { // without Google Analytics Experiment data\n      status: eventAction,\n      product: eventLabel,\n      totalPrice: eventValue\n    };\n    purchasedCompleted(dataToSend);\n  }\n\n  if (eventCategory.toLowerCase() === 'lead') {\n    const data = { send_to: getGoogleAdPixel(googleConversionLabels.leadEnhanced), event_label: eventLabel };\n    reportGtagEvent('conversion', data);\n  }\n};\n\nexport const getPhoneDetails = (url, details) => {\n  const base = url.split('/')[2];\n  return base === 'registration-new' ? details : { pageTitle: base, pageType: 'checkout - post-purchase', activeFlow: `r/${base}` };\n};\n\nexport const insertAdResultsMediaPixel = () => {\n  const userConsentsThirdParty = window.doesUserConsentThirdParty();\n  if (!userConsentsThirdParty) {\n    return null;\n  }\n  if (window.adResultsMedia) {\n    const url = 'https://adresults-12-adswizz.attribution.adswizz.com/fire?pixelId=92d132db-5c13-45eb-bc6c-18f8673e8d11&type=sitevisit&subtype=Checkout&aw_0_req.gdpr=true&redirectURL=aHR0cHM6Ly9waXhlbC50YXBhZC5jb20vaWRzeW5jL2V4L3JlY2VpdmU_cGFydG5lcl9pZD0yOTk0JjwjaWYgcmVxdWVzdC5saXN0ZW5lcklkP21hdGNoZXMoJ1swLTlhLWZdezh9LVswLTlhLWZdezR9LVswLTlhLWZdezR9LVswLTlhLWZdezR9LVswLTlhLWZdezEyfScpPnBhcnRuZXJfdHlwZWRfZGlkPSU3QiUyMkhBUkRXQVJFX0FORFJPSURfQURfSUQlMjIlM0ElMjIke3JlcXVlc3QubGlzdGVuZXJJZH0lMjIlN0Q8I2Vsc2VpZiByZXF1ZXN0Lmxpc3RlbmVySWQ_bWF0Y2hlcygnWzAtOUEtRl17OH0tWzAtOUEtRl17NH0tWzAtOUEtRl17NH0tWzAtOUEtRl17NH0tWzAtOUEtRl17MTJ9Jyk-cGFydG5lcl90eXBlZF9kaWQ9JTdCJTIySEFSRFdBUkVfSURGQSUyMiUzQSUyMiR7cmVxdWVzdC5saXN0ZW5lcklkfSUyMiU3RDwjZWxzZT5wYXJ0bmVyX2RldmljZV9pZD0ke3JlcXVlc3QubGlzdGVuZXJJZCF9PC8jaWY-Cg';\n\n\n    return (\n      <img height=\"1\" width=\"1\" alt=\"\" src={url} />\n    );\n  }\n  if (debugLoggingEnabled()) {\n    console.log('%c ADRESULTSMEDIA PIXEL - insert conversion pixel', thirdPartyTrackingCSS);\n  }\n  return null;\n};\n\nexport const insertBlissPointPixel = () => {\n  const userConsentsThirdParty = window.doesUserConsentThirdParty();\n  if (!userConsentsThirdParty) {\n    return null;\n  }\n  if (window.blissPoint) {\n    const\n      fpc = getCookie('FPC'),\n      utmSource = getCampaignSource(),\n      utmMedium = getCampaignmedium(),\n      utmCampaign = getCampaignName();\n    let url = `https://pixel.pointmediatracker.com/kpi?c=zenbusiness&kpi=order&tag_id=156&fpc=${fpc}&utm_source=${utmSource}&utm_medium=${utmMedium}&utm_campaign=${utmCampaign}`;\n    const purchaseTrackingPrice = getPurchasePrice();\n    if (purchaseTrackingPrice && _isNumber(purchaseTrackingPrice)) {\n      url = `${url}&order_value=${purchaseTrackingPrice}`;\n    }\n    deletePurchasePrice();\n    return (\n      <img height=\"1\" width=\"1\" alt=\"\" src={url} />\n    );\n  }\n  if (debugLoggingEnabled()) {\n    console.log('%c BLISSPOINT PIXEL - insert conversion pixel', thirdPartyTrackingCSS);\n  }\n  return null;\n};\n\nexport const insertPodSightsPixel = () => {\n  const userConsentsThirdParty = window.doesUserConsentThirdParty();\n  if (!userConsentsThirdParty) {\n    return null;\n  }\n  if (window.podSights) {\n    const url = 'https://ping.pdst.fm/tr.gif?key=8c273d3526394052adc23745f83799fe&a=purchase';\n    return (\n      <img height=\"1\" width=\"1\" alt=\"\" style={{ display: 'none' }} src={url} />\n    );\n  }\n  if (debugLoggingEnabled()) {\n    console.log('%c PODSIGHTS PIXEL - insert conversion pixel', thirdPartyTrackingCSS);\n  }\n  return null;\n};\n\nexport const getOrderTracking = (purchaseSource) => {\n  const isFreeAccount = getIsFreeAccount();\n  const testID = '';\n  const entryPoint = getEntryPointGroup() || 'zb';\n  const orderTracking = {\n    flow_name: entryPoint.toLowerCase(),\n    device_type: window.zenIsMobile ? window.mobileDeviceType : 'desktop',\n    purchase_source: isFreeAccount ? 'free_account' : purchaseSource,\n    /*\n      TODO\n      external_referral: '',\n    */\n    testID\n  };\n  return orderTracking;\n};\n","import { getLoggedInEmail } from './AuthService';\n\nlet\n  effectiveness = '',\n  kickstarter = '',\n  registrationUrl = '';\n\nexport const getRegistrationUrl = (isKickstarter) => {\n  const code = isKickstarter ? kickstarter : effectiveness;\n\n  return `${registrationUrl}/?regcode=${code}&ea=${encodeURIComponent(getLoggedInEmail())}`;\n};\n\nexport const initialize = (response) => {\n  const { ureeka } = response;\n\n  effectiveness = ureeka.effectiveness;\n  kickstarter = ureeka.kickstarter;\n  registrationUrl = ureeka.registrationUrl;\n};\n\nexport default {\n  initialize,\n  getRegistrationUrl\n};\n","import { reportError } from './ReportingUtils';\n\nexport const getUrlParams = (url) => {\n  const params = {};\n\n  if (url) {\n    const args = url.split('?')[1];\n\n    if (args) {\n      const argList = args.split('&');\n      for (let i = 0; i < argList.length; i += 1) {\n        const argVals = argList[i].split('=');\n        try {\n          params[argVals[0]] = decodeURIComponent(argVals[1]);\n        } catch (err) {\n          // Catch and report invalid query parameters\n          reportError(err, {\n            metaData: {\n              message: 'inbound query parameter parsing failed',\n              url,\n              param: argVals\n            }\n          });\n        }\n      }\n    }\n  }\n\n  return params;\n};\n\nexport const sanitizeRelativeUrl = (url) => {\n  // Only accept root relative URL\n  if (!url.startsWith('/')) { return null; }\n\n  // Don't allow traverasal\n  if (url.split('/').includes('..')) { return null; }\n\n  try {\n    // Parse URL\n    const { origin, pathname, search } = new URL(url, location.origin);\n    if (origin === location.origin) {\n      return encodeURI(`${pathname}${search}`);\n    }\n  } catch (err) {\n    // ignore\n  }\n\n  return null;\n};\n\n\nexport default {\n  getUrlParams\n};\n\n// this regex is used in src/server/index.ejs to redact email addresses from URLs and is duplicated here for testing\nconst emailParameterRegex =  /(\\?|&)email=.*?(?=(&|#|$))/g;\n\nexport const redactEmail = (url) => {\n  const regex = new RegExp(emailParameterRegex);\n  if (regex.test(url)) {\n    return url.replace(regex, '$1email=$email');\n  }\n  return url;\n};\n\nexport const parseUrl = (url, urlBase) => {\n  return url.substring(urlBase.length + 2);\n};\n","import _assign from 'lodash/assign';\n\nimport { getCookie } from './CookieUtils';\nimport { setVisitor as setThirdPartyVisitor } from './ThirdPartyTracking';\nimport { identifyUser } from './ReportingUtils';\n\nlet\n  visitorData = {\n    zenbusinessEnv: 'local',\n    visitUUID: ''\n  };\nlet initializationVisitUUID = '';\nconst\n  storage = window.localStorage,\n  storageKey = 'initialization/visitor',\n  visitUUIDStorageKey = 'visitUUID',\n  expireMs = 1000 * 24 * 60 * 60 * 1000, // 1000 days\n  setThirdParty = (requestData) => {\n    const { visitUUID, inviteeCode } = visitorData;\n    identifyUser({\n      id: visitUUID,\n      invitee_code: inviteeCode || ''\n    });\n    setThirdPartyVisitor(visitorData, requestData);\n  },\n\n  getFromCookie = () => {\n    const cookie = getCookie('VISITOR_ID'),\n      parts = cookie ? cookie.split('|') : [];\n\n    let visitUUID = '';\n\n    if (parts.length > 0) {\n      visitUUID = parts[0];\n    }\n    _assign(visitorData, {\n      visitUUID\n    });\n  },\n\n  initialize = () => {\n    if (!storage) {\n      getFromCookie();\n      setThirdParty();\n      return;\n    }\n    const stringData = storage.getItem(storageKey) || '{}';\n    try {\n      visitorData = JSON.parse(stringData);\n      setThirdParty();\n    } catch (e) {\n      console.error(e);\n    }\n\n    if (!visitorData) {\n      visitorData = {};\n    }\n    if (!visitorData.visitUUID) {\n      visitorData.visitUUID = storage.getItem(visitUUIDStorageKey) || '';\n    }\n    setThirdParty();\n  };\n\ninitialize();\n\nexport const getVisitUUID = () => {\n  return visitorData.visitUUID || initializationVisitUUID;\n};\n\nexport const setVisitor = (data, requestData) => {\n  const { visit_uuid: visituuid, zenbusinessEnv, release } = data;\n  initializationVisitUUID = visituuid;\n  visitorData.zenbusinessEnv = zenbusinessEnv;\n  visitorData.release = release;\n  if (visituuid !== undefined && visituuid !== visitorData.visitUUID) {\n    visitorData.visitUUID = visituuid;\n  }\n  setThirdParty(requestData);\n  if (!storage) {\n    const payload = `${visituuid}`,\n      date = new Date(),\n      expDate = new Date(date.getTime() + expireMs),\n      expires = `expires=${expDate.toUTCString()}`;\n\n    document.cookie = `VISITOR_ID=${encodeURIComponent(payload)}; path=/; ${expires}`;\n  } else {\n    storage.setItem(storageKey, JSON.stringify(visitorData));\n    storage.setItem(visitUUIDStorageKey, visitorData.visitUUID || '');\n  }\n};\n\nexport const reinitialize = () => {\n  initialize();\n};\n","import { isVirtualBusinessAddressEnabled } from './ProductService';\nimport { VMA_ENABLED_STATES } from '../constants/ui';\n\nexport const isVmaJurisdiction = (jurisdiction) => {\n  const hasVmaProduct = isVirtualBusinessAddressEnabled();\n  const isVmaEnabledJurisdiction = VMA_ENABLED_STATES.includes(jurisdiction);\n  return !!hasVmaProduct && !!isVmaEnabledJurisdiction;\n};\n\nexport default {\n  isVmaJurisdiction\n};\n","// Generated by Avo VERSION 114.41.0. You should never have to make changes to this file.\n// If you find yourself in the situation where you have to edit the file please contact us at hi@avo.app.\n// If you encounter a git conflict in this file run `avo pull` and it will be resolved automatically.\n/* eslint-disable */\n\n// fetch() polyfill\n(function () {\n  if (typeof window === 'undefined') {\n    return;\n  }\n  var support = {\n    searchParams: 'URLSearchParams' in self,\n    iterable: 'Symbol' in self && 'iterator' in Symbol,\n    blob:\n      'FileReader' in self &&\n      'Blob' in self &&\n      (function() {\n        try {\n          new Blob();\n          return true\n        } catch (e) {\n          return false\n        }\n      })(),\n    formData: 'FormData' in self,\n    arrayBuffer: 'ArrayBuffer' in self\n  };\n\n  function isDataView(obj) {\n    return obj && DataView.prototype.isPrototypeOf(obj)\n  }\n\n  if (support.arrayBuffer) {\n    var viewClasses = [\n      '[object Int8Array]',\n      '[object Uint8Array]',\n      '[object Uint8ClampedArray]',\n      '[object Int16Array]',\n      '[object Uint16Array]',\n      '[object Int32Array]',\n      '[object Uint32Array]',\n      '[object Float32Array]',\n      '[object Float64Array]'\n    ];\n\n    var isArrayBufferView =\n      ArrayBuffer.isView ||\n      function(obj) {\n        return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n      };\n  }\n\n  function normalizeName(name) {\n    if (typeof name !== 'string') {\n      name = String(name);\n    }\n    if (/[^a-z0-9\\-#$%&'*+.^_`|~]/i.test(name)) {\n      throw new TypeError('Invalid character in header field name')\n    }\n    return name.toLowerCase()\n  }\n\n  function normalizeValue(value) {\n    if (typeof value !== 'string') {\n      value = String(value);\n    }\n    return value\n  }\n\n  // Build a destructive iterator for the value list\n  function iteratorFor(items) {\n    var iterator = {\n      next: function() {\n        var value = items.shift();\n        return {done: value === undefined, value: value}\n      }\n    };\n\n    if (support.iterable) {\n      iterator[Symbol.iterator] = function() {\n        return iterator\n      };\n    }\n\n    return iterator\n  }\n\n  function Headers(headers) {\n    this.map = {};\n\n    if (headers instanceof Headers) {\n      headers.forEach(function(value, name) {\n        this.append(name, value);\n      }, this);\n    } else if (Array.isArray(headers)) {\n      headers.forEach(function(header) {\n        this.append(header[0], header[1]);\n      }, this);\n    } else if (headers) {\n      Object.getOwnPropertyNames(headers).forEach(function(name) {\n        this.append(name, headers[name]);\n      }, this);\n    }\n  }\n\n  Headers.prototype.append = function(name, value) {\n    name = normalizeName(name);\n    value = normalizeValue(value);\n    var oldValue = this.map[name];\n    this.map[name] = oldValue ? oldValue + ', ' + value : value;\n  };\n\n  Headers.prototype['delete'] = function(name) {\n    delete this.map[normalizeName(name)];\n  };\n\n  Headers.prototype.get = function(name) {\n    name = normalizeName(name);\n    return this.has(name) ? this.map[name] : null\n  };\n\n  Headers.prototype.has = function(name) {\n    return this.map.hasOwnProperty(normalizeName(name))\n  };\n\n  Headers.prototype.set = function(name, value) {\n    this.map[normalizeName(name)] = normalizeValue(value);\n  };\n\n  Headers.prototype.forEach = function(callback, thisArg) {\n    for (var name in this.map) {\n      if (this.map.hasOwnProperty(name)) {\n        callback.call(thisArg, this.map[name], name, this);\n      }\n    }\n  };\n\n  Headers.prototype.keys = function() {\n    var items = [];\n    this.forEach(function(value, name) {\n      items.push(name);\n    });\n    return iteratorFor(items)\n  };\n\n  Headers.prototype.values = function() {\n    var items = [];\n    this.forEach(function(value) {\n      items.push(value);\n    });\n    return iteratorFor(items)\n  };\n\n  Headers.prototype.entries = function() {\n    var items = [];\n    this.forEach(function(value, name) {\n      items.push([name, value]);\n    });\n    return iteratorFor(items)\n  };\n\n  if (support.iterable) {\n    Headers.prototype[Symbol.iterator] = Headers.prototype.entries;\n  }\n\n  function consumed(body) {\n    if (body.bodyUsed) {\n      return Promise.reject(new TypeError('Already read'))\n    }\n    body.bodyUsed = true;\n  }\n\n  function fileReaderReady(reader) {\n    return new Promise(function(resolve, reject) {\n      reader.onload = function() {\n        resolve(reader.result);\n      };\n      reader.onerror = function() {\n        reject(reader.error);\n      };\n    })\n  }\n\n  function readBlobAsArrayBuffer(blob) {\n    var reader = new FileReader();\n    var promise = fileReaderReady(reader);\n    reader.readAsArrayBuffer(blob);\n    return promise\n  }\n\n  function readBlobAsText(blob) {\n    var reader = new FileReader();\n    var promise = fileReaderReady(reader);\n    reader.readAsText(blob);\n    return promise\n  }\n\n  function readArrayBufferAsText(buf) {\n    var view = new Uint8Array(buf);\n    var chars = new Array(view.length);\n\n    for (var i = 0; i < view.length; i++) {\n      chars[i] = String.fromCharCode(view[i]);\n    }\n    return chars.join('')\n  }\n\n  function bufferClone(buf) {\n    if (buf.slice) {\n      return buf.slice(0)\n    } else {\n      var view = new Uint8Array(buf.byteLength);\n      view.set(new Uint8Array(buf));\n      return view.buffer\n    }\n  }\n\n  function Body() {\n    this.bodyUsed = false;\n\n    this._initBody = function(body) {\n      this._bodyInit = body;\n      if (!body) {\n        this._bodyText = '';\n      } else if (typeof body === 'string') {\n        this._bodyText = body;\n      } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n        this._bodyBlob = body;\n      } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n        this._bodyFormData = body;\n      } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n        this._bodyText = body.toString();\n      } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n        this._bodyArrayBuffer = bufferClone(body.buffer);\n        // IE 10-11 can't handle a DataView body.\n        this._bodyInit = new Blob([this._bodyArrayBuffer]);\n      } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n        this._bodyArrayBuffer = bufferClone(body);\n      } else {\n        this._bodyText = body = Object.prototype.toString.call(body);\n      }\n\n      if (!this.headers.get('content-type')) {\n        if (typeof body === 'string') {\n          this.headers.set('content-type', 'text/plain;charset=UTF-8');\n        } else if (this._bodyBlob && this._bodyBlob.type) {\n          this.headers.set('content-type', this._bodyBlob.type);\n        } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n          this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n        }\n      }\n    };\n\n    if (support.blob) {\n      this.blob = function() {\n        var rejected = consumed(this);\n        if (rejected) {\n          return rejected\n        }\n\n        if (this._bodyBlob) {\n          return Promise.resolve(this._bodyBlob)\n        } else if (this._bodyArrayBuffer) {\n          return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n        } else if (this._bodyFormData) {\n          throw new Error('could not read FormData body as blob')\n        } else {\n          return Promise.resolve(new Blob([this._bodyText]))\n        }\n      };\n\n      this.arrayBuffer = function() {\n        if (this._bodyArrayBuffer) {\n          return consumed(this) || Promise.resolve(this._bodyArrayBuffer)\n        } else {\n          return this.blob().then(readBlobAsArrayBuffer)\n        }\n      };\n    }\n\n    this.text = function() {\n      var rejected = consumed(this);\n      if (rejected) {\n        return rejected\n      }\n\n      if (this._bodyBlob) {\n        return readBlobAsText(this._bodyBlob)\n      } else if (this._bodyArrayBuffer) {\n        return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n      } else if (this._bodyFormData) {\n        throw new Error('could not read FormData body as text')\n      } else {\n        return Promise.resolve(this._bodyText)\n      }\n    };\n\n    if (support.formData) {\n      this.formData = function() {\n        return this.text().then(decode)\n      };\n    }\n\n    this.json = function() {\n      return this.text().then(JSON.parse)\n    };\n\n    return this\n  }\n\n  // HTTP methods whose capitalization should be normalized\n  var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];\n\n  function normalizeMethod(method) {\n    var upcased = method.toUpperCase();\n    return methods.indexOf(upcased) > -1 ? upcased : method\n  }\n\n  function Request(input, options) {\n    options = options || {};\n    var body = options.body;\n\n    if (input instanceof Request) {\n      if (input.bodyUsed) {\n        throw new TypeError('Already read')\n      }\n      this.url = input.url;\n      this.credentials = input.credentials;\n      if (!options.headers) {\n        this.headers = new Headers(input.headers);\n      }\n      this.method = input.method;\n      this.mode = input.mode;\n      this.signal = input.signal;\n      if (!body && input._bodyInit != null) {\n        body = input._bodyInit;\n        input.bodyUsed = true;\n      }\n    } else {\n      this.url = String(input);\n    }\n\n    this.credentials = options.credentials || this.credentials || 'same-origin';\n    if (options.headers || !this.headers) {\n      this.headers = new Headers(options.headers);\n    }\n    this.method = normalizeMethod(options.method || this.method || 'GET');\n    this.mode = options.mode || this.mode || null;\n    this.signal = options.signal || this.signal;\n    this.referrer = null;\n\n    if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n      throw new TypeError('Body not allowed for GET or HEAD requests')\n    }\n    this._initBody(body);\n  }\n\n  Request.prototype.clone = function() {\n    return new Request(this, {body: this._bodyInit})\n  };\n\n  function decode(body) {\n    var form = new FormData();\n    body\n      .trim()\n      .split('&')\n      .forEach(function(bytes) {\n        if (bytes) {\n          var split = bytes.split('=');\n          var name = split.shift().replace(/\\+/g, ' ');\n          var value = split.join('=').replace(/\\+/g, ' ');\n          form.append(decodeURIComponent(name), decodeURIComponent(value));\n        }\n      });\n    return form\n  }\n\n  function parseHeaders(rawHeaders) {\n    var headers = new Headers();\n    // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n    // https://tools.ietf.org/html/rfc7230#section-3.2\n    var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ');\n    preProcessedHeaders.split(/\\r?\\n/).forEach(function(line) {\n      var parts = line.split(':');\n      var key = parts.shift().trim();\n      if (key) {\n        var value = parts.join(':').trim();\n        headers.append(key, value);\n      }\n    });\n    return headers\n  }\n\n  Body.call(Request.prototype);\n\n  function Response(bodyInit, options) {\n    if (!options) {\n      options = {};\n    }\n\n    this.type = 'default';\n    this.status = options.status === undefined ? 200 : options.status;\n    this.ok = this.status >= 200 && this.status < 300;\n    this.statusText = 'statusText' in options ? options.statusText : 'OK';\n    this.headers = new Headers(options.headers);\n    this.url = options.url || '';\n    this._initBody(bodyInit);\n  }\n\n  Body.call(Response.prototype);\n\n  Response.prototype.clone = function() {\n    return new Response(this._bodyInit, {\n      status: this.status,\n      statusText: this.statusText,\n      headers: new Headers(this.headers),\n      url: this.url\n    })\n  };\n\n  Response.error = function() {\n    var response = new Response(null, {status: 0, statusText: ''});\n    response.type = 'error';\n    return response\n  };\n\n  var redirectStatuses = [301, 302, 303, 307, 308];\n\n  Response.redirect = function(url, status) {\n    if (redirectStatuses.indexOf(status) === -1) {\n      throw new RangeError('Invalid status code')\n    }\n\n    return new Response(null, {status: status, headers: {location: url}})\n  };\n\n  self.DOMException = self.DOMException;\n  try {\n    new self.DOMException();\n  } catch (err) {\n    self.DOMException = function(message, name) {\n      this.message = message;\n      this.name = name;\n      var error = Error(message);\n      this.stack = error.stack;\n    };\n    self.DOMException.prototype = Object.create(Error.prototype);\n    self.DOMException.prototype.constructor = self.DOMException;\n  }\n\n  function fetch(input, init) {\n    return new Promise(function(resolve, reject) {\n      var request = new Request(input, init);\n\n      if (request.signal && request.signal.aborted) {\n        return reject(new self.DOMException('Aborted', 'AbortError'))\n      }\n\n      var xhr = new XMLHttpRequest();\n\n      function abortXhr() {\n        xhr.abort();\n      }\n\n      xhr.onload = function() {\n        var options = {\n          status: xhr.status,\n          statusText: xhr.statusText,\n          headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n        };\n        options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');\n        var body = 'response' in xhr ? xhr.response : xhr.responseText;\n        resolve(new Response(body, options));\n      };\n\n      xhr.onerror = function() {\n        reject(new TypeError('Network request failed'));\n      };\n\n      xhr.ontimeout = function() {\n        reject(new TypeError('Network request failed'));\n      };\n\n      xhr.onabort = function() {\n        reject(new self.DOMException('Aborted', 'AbortError'));\n      };\n\n      xhr.open(request.method, request.url, true);\n\n      if (request.credentials === 'include') {\n        xhr.withCredentials = true;\n      } else if (request.credentials === 'omit') {\n        xhr.withCredentials = false;\n      }\n\n      if ('responseType' in xhr && support.blob) {\n        xhr.responseType = 'blob';\n      }\n\n      request.headers.forEach(function(value, name) {\n        xhr.setRequestHeader(name, value);\n      });\n\n      if (request.signal) {\n        request.signal.addEventListener('abort', abortXhr);\n\n        xhr.onreadystatechange = function() {\n          // DONE (success or failure)\n          if (xhr.readyState === 4) {\n            request.signal.removeEventListener('abort', abortXhr);\n          }\n        };\n      }\n\n      xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit);\n    })\n  }\n\n  fetch.polyfill = true;\n\n  if (!self.fetch) {\n    self.fetch = fetch;\n    self.Headers = Headers;\n    self.Request = Request;\n    self.Response = Response;\n  }\n})();\n\n(function(exports) {\n  var __AVO_DEV__ = false;\n  var __AVO_NOOP__ = false;\n  var __AVO_LOGGER__ = null;\n  var __AVO_ENV__ = null;\n  var __REPORT_FAILURE_AS__ = null;\n  var __STRICT__ = null;\n\n  var __WEB_DEBUGGER__ = true;\n  const avoInspectorApiKey = \"WrzexPeJYu53HKOQqiGq\";\n  var __INSPECTOR__ = null;\n\n  // polyfill Array.isArray\n  if (!Array.isArray) {\n    Array.isArray = function(arg) {\n      return Object.prototype.toString.call(arg) === '[object Array]';\n    };\n  }\n\n  // polyfill Object.assign\n  if (typeof Object.assign !== 'function') {\n    // Must be writable: true, enumerable: false, configurable: true\n    Object.defineProperty(Object, \"assign\", {\n      value: function assign(target, varArgs) { // .length of function is 2\n        if (target == null) { // TypeError if undefined or null\n          throw new TypeError('Cannot convert undefined or null to object');\n        }\n\n        var to = Object(target);\n\n        for (var index = 1; index < arguments.length; index++) {\n          var nextSource = arguments[index];\n\n          if (nextSource != null) { // Skip over if undefined or null\n            for (var nextKey in nextSource) {\n              // Avoid bugs when hasOwnProperty is shadowed\n              if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {\n                to[nextKey] = nextSource[nextKey];\n              }\n            }\n          }\n        }\n        return to;\n      },\n      writable: true,\n      configurable: true\n    });\n  }\n\n  // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys\n  if (!Object.keys) {\n    Object.keys = (function() {\n      'use strict';\n      var hasOwnProperty = Object.prototype.hasOwnProperty,\n          hasDontEnumBug = !({ toString: null }).propertyIsEnumerable('toString'),\n          dontEnums = [\n            'toString',\n            'toLocaleString',\n            'valueOf',\n            'hasOwnProperty',\n            'isPrototypeOf',\n            'propertyIsEnumerable',\n            'constructor'\n          ],\n          dontEnumsLength = dontEnums.length;\n\n      return function(obj) {\n        if (typeof obj !== 'function' && (typeof obj !== 'object' || obj === null)) {\n          throw new TypeError('Object.keys called on non-object');\n        }\n\n        var result = [], prop, i;\n\n        for (prop in obj) {\n          if (hasOwnProperty.call(obj, prop)) {\n            result.push(prop);\n          }\n        }\n\n        if (hasDontEnumBug) {\n          for (i = 0; i < dontEnumsLength; i++) {\n            if (hasOwnProperty.call(obj, dontEnums[i])) {\n              result.push(dontEnums[i]);\n            }\n          }\n        }\n        return result;\n      };\n    }());\n  }\n\n  // polyfill Array.indexOf\n  if (!Array.prototype.indexOf)  Array.prototype.indexOf = (function(Object, max, min){\n    \"use strict\";\n    return function indexOf(member, fromIndex) {\n      if(this===null||this===undefined)throw TypeError(\"Array.prototype.indexOf called on null or undefined\");\n\n      var that = Object(this), Len = that.length >>> 0, i = min(fromIndex | 0, Len);\n      if (i < 0) i = max(0, Len+i); else if (i >= Len) return -1;\n\n      if(member===void 0){ for(; i !== Len; ++i) if(that[i]===void 0 && i in that) return i; // undefined\n      }else if(member !== member){   for(; i !== Len; ++i) if(that[i] !== that[i]) return i; // NaN\n      }else                           for(; i !== Len; ++i) if(that[i] === member) return i; // all else\n\n      return -1; // if the value was not found, then return -1\n    };\n  })(Object, Math.max, Math.min);\n\n  var array_difference, AvoAssert, InternalAvoLogger;\n  array_difference = function array_difference(a1, a2) {\n    var result = [];\n    for (var i = 0; i < a1.length; i++) {\n      if (a2.indexOf(a1[i]) === -1) {\n        result.push(a1[i]);\n      }\n    }\n    return result;\n  }\n\n  AvoAssert = {\n    assertObject: function assertObject(propertyId, propName, obj) {\n      if (typeof obj !== 'object') {\n        var message = propName +\n          ' should be of type object but you provided type ' +\n          typeof obj +\n          ' with value ' +\n          JSON.stringify(obj);\n        return [{tag: 'expectedObjectType', propertyId: propertyId, message: message, actualType: typeof obj}];\n      } else {\n        return [];\n      }\n    },\n\n    assertString: function assertString(propertyId, propName, str) {\n      if (typeof str !== 'string') {\n        var message = propName +\n          ' should be of type string but you provided type ' +\n          typeof str +\n          ' with value ' +\n          JSON.stringify(str);\n        return [{tag: 'expectedStringType', propertyId: propertyId, message: message, actualType: typeof str}];\n      } else {\n        return [];\n      }\n    },\n\n    assertInt: function assertInt(propertyId, propName, int) {\n      if (typeof int === 'number' && int !== Math.round(int)) {\n        var message = propName +\n          ' should be of type int but you provided type float with value ' +\n          JSON.stringify(int);\n        return [{tag: 'expectedIntType', propertyId: propertyId, actualType: 'float'}];\n      } else if (typeof int !== 'number') {\n        var message = propName +\n          ' should be of type int but you provided type ' +\n          typeof int +\n          ' with value ' +\n          JSON.stringify(int);\n        return [{tag: 'expectedIntType', propertyId: propertyId, message: message, actualType: typeof int}];\n      } else {\n        return [];\n      }\n    },\n\n    assertLong: function assertLong(propertyId, propName, long) {\n      if (typeof long === 'number' && long !== Math.round(long)) {\n        var message = propName +\n          ' should be of type long but you provided type float with value ' +\n          JSON.stringify(long);\n        return [{tag: 'expectedLongType', propertyId: propertyId, actualType: 'float'}];\n      } else if (typeof long !== 'number') {\n        var message = propName +\n          ' should be of type long but you provided type ' +\n          typeof long +\n          ' with value ' +\n          JSON.stringify(long);\n        return [{tag: 'expectedLongType', propertyId: propertyId, message: message, actualType: typeof long}];\n      } else {\n        return [];\n      }\n    },\n\n    assertFloat: function assertFloat(propertyId, propName, float) {\n      if (typeof float !== 'number') {\n        var message = propName +\n          ' should be of type float but you provided type ' +\n          typeof float +\n          ' with value ' +\n          JSON.stringify(float);\n        return [{tag: 'expectedFloatType', propertyId: propertyId, message: message, actualType: typeof float}];\n      } else {\n        return [];\n      }\n    },\n\n    assertBool: function assertBool(propertyId, propName, bool) {\n      if (typeof bool !== 'boolean') {\n        var message = propName +\n          ' should be of type boolean but you provided type ' +\n          typeof bool +\n          ' with value ' +\n          JSON.stringify(bool);\n        return [{tag: 'expectedBoolType', propertyId: propertyId, message: message, actualType: typeof bool}];\n      } else {\n        return [];\n      }\n    },\n\n    assertMax: function assertMax(propertyId, propName, max, value) {\n      if (value > max) {\n        var message = propName +\n          ' has a maximum value of ' +\n          max +\n          ' but you provided the value ' +\n          JSON.stringify(value);\n        return [{tag: 'expectedMax', propertyId: propertyId, message: message}];\n      } else {\n        return [];\n      }\n    },\n\n    assertMin: function assertMin(propertyId, propName, min, value) {\n      if (value < min) {\n        var message = propName +\n          ' has a minimum value of ' +\n          min +\n          ' but you provided the value ' +\n          JSON.stringify(value);\n        return [{tag: 'expectedMin', propertyId: propertyId, message: message}];\n      } else {\n        return [];\n      }\n    },\n\n    assertList: function assertList(propertyId, propName, value) {\n      if (!Array.isArray(value)) {\n        var message = propName + ' should be of type list but you provided type ' + typeof value;\n        return [{tag: 'expectedList', propertyId: propertyId, message: message, actualType: typeof value}];\n      } else {\n        return [];\n      }\n    },\n\n    assertNoAdditionalProperties: function assertNoAdditionalProperties(eventName, input, spec) {\n      var additionalKeys = array_difference(input, spec);\n      if (additionalKeys.length) {\n        var message = \"Additional properties when sending event \" + eventName + \": \" + JSON.stringify(additionalKeys);\n        return [{tag: 'expectedNoAdditionalProperties', additionalProperties: additionalKeys, message: message}];\n      } else {\n        return [];\n      }\n    },\n\n    assertNoAdditionalUserProperties: function assertNoAdditionalProperties(eventName, input, spec) {\n      var additionalKeys = array_difference(input, spec);\n      if (additionalKeys.length) {\n        var message = \"Additional user properties when sending event \" + eventName + \": \" + JSON.stringify(additionalKeys);\n        return [{tag: 'expectedNoAdditionalUserProperties', additionalProperties: additionalKeys, message: message}];\n      } else {\n        return [];\n      }\n    }\n  };\n\n    const WebDebuggerAssertions = {\n      hasKey(obj, key) {\n        return obj && obj[key] != null;\n      },\n      assertKey(obj, key, assert) {\n        if (this.hasKey(obj, key) && assert(obj[key])) {\n          return true;\n        } else {\n          throw new Error('WebDebugger: Object key: \"' + key + '\" failed assertion.')\n        }\n      },\n      assertKeys(obj, arrayOfAssertions) {\n        return arrayOfAssertions.every(assertionForKey => {\n          if (this.hasKey(assertionForKey, \"key\") && this.hasKey(assertionForKey, \"assert\")) {\n            return this.assertKey(obj, assertionForKey.key, assertionForKey.assert);\n          } else {\n            throw new Error('WebDebugger: Object form for assertion invalid.');\n          }\n        });\n      },\n      assertInt(int) {\n        return Number.isInteger(int);\n      },\n    };\n\n    var WebDebuggerPosition = {\n      position: {\n        BOTTOM_RIGHT: 'BottomRight',\n        BOTTOM_LEFT: 'BottomLeft',\n        TOP_RIGHT: 'TopRight',\n        TOP_LEFT: 'TopLeft',\n      },\n      BottomRight(parameters) {\n        return WebDebuggerAssertions.assertKeys(\n          parameters,\n          [\n            { key: \"bottom\", assert: WebDebuggerAssertions.assertInt },\n            { key: \"right\", assert: WebDebuggerAssertions.assertInt },\n          ],\n        ) && {\n          position: this.position.BOTTOM_RIGHT,\n          bottom: parameters.bottom,\n          right: parameters.right,\n        };\n      },\n      BottomLeft(parameters) {\n        return WebDebuggerAssertions.assertKeys(\n          parameters,\n          [\n            { key: \"bottom\", assert: WebDebuggerAssertions.assertInt },\n            { key: \"left\", assert: WebDebuggerAssertions.assertInt },\n          ],\n        ) && {\n          position: this.position.BOTTOM_LEFT,\n          bottom: parameters.bottom,\n          left: parameters.left,\n        };\n      },\n      TopRight(parameters) {\n        return WebDebuggerAssertions.assertKeys(\n          parameters,\n          [\n            { key: \"top\", assert: WebDebuggerAssertions.assertInt },\n            { key: \"right\", assert: WebDebuggerAssertions.assertInt },\n          ],\n        ) && {\n          position: this.position.TOP_RIGHT,\n          top: parameters.top,\n          right: parameters.right,\n        };\n      },\n      TopLeft(parameters) {\n        return WebDebuggerAssertions.assertKeys(\n          parameters,\n          [\n            { key: \"top\", assert: WebDebuggerAssertions.assertInt },\n            { key: \"left\", assert: WebDebuggerAssertions.assertInt },\n          ],\n        ) && {\n          position: this.position.TOP_LEFT,\n          top: parameters.top,\n          left: parameters.left,\n        };\n      },\n    }\n\n\n  InternalAvoLogger = {\n    logEventSent: function logEventSent(eventName, eventProperties, userProperties, groupProperties) {\n      const message = \"Event Sent:\" + eventName + \"Event Props:\" + JSON.stringify(eventProperties) + \"User Props:\" + JSON.stringify(userProperties) + \"Group Props:\" + JSON.stringify(groupProperties);\n\n      if (__AVO_LOGGER__ && __AVO_LOGGER__.logDebug && __AVO_LOGGER__.logDebug(__AVO_ENV__, message)) {\n        return\n      }\n      typeof console !== 'undefined' && console.log(\"[avo] Event Sent:\", eventName, \"Event Props:\", eventProperties, \"User Props:\", userProperties, \"Group Props:\", groupProperties);\n    },\n\n    log: function log(message) {\n      if (__AVO_LOGGER__ && __AVO_LOGGER__.logDebug && __AVO_LOGGER__.logDebug(__AVO_ENV__, message)) {\n        return\n      }\n      typeof console !== 'undefined' && console.log(\"[avo] \" + message);\n    },\n\n    warn: function warn(message) {\n      if (__AVO_LOGGER__ && __AVO_LOGGER__.logWarn && __AVO_LOGGER__.logWarn(__AVO_ENV__, message)) {\n        return\n      }\n      typeof console !== 'undefined' && console.warn(\"[avo] \" + message);\n    },\n\n    error: function error(message, error) {\n      if (__AVO_LOGGER__ && __AVO_LOGGER__.logError && __AVO_LOGGER__.logError(__AVO_ENV__, message + error)) {\n        return\n      }\n      typeof console !== 'undefined' && console.error(\"[avo] \" + message, error);\n    }\n  };\n\n  var _avo_invoke, _avo_invoke_meta;\nvar _avo_sampling_rate = 1.0;\nfunction _avo_invoke_payload(body) {\n  if (typeof window === 'undefined') { return; }\n  if (_avo_sampling_rate > 0) {\n    if (Math.random() < _avo_sampling_rate) {\n      fetch(\"https://api.avo.app/i\", {\n        method: \"POST\",\n        headers: {\"Content-Type\": \"application/json\"},\n        body: JSON.stringify(body)\n      }).then(function(res) { return res.json(); }).then(function(data) { _avo_sampling_rate = data.sa; }).catch(function() {});\n    }\n  }\n}\n\n_avo_invoke = function _avo_invoke(env, eventId, hash, messages, origin) {\n  _avo_invoke_payload({\n    \"ac\": \"1uGxMBJDMGrmy0AnfcXt\",\n    \"br\": \"QnzDuOBGn\",\n    \"en\": env,\n    \"ev\": eventId,\n    \"ha\": hash,\n    \"sc\": \"5VWPHSaRaWcJAxzqYkj4\",\n    \"se\": (new Date()).toISOString(),\n    \"so\": \"7cRpl_rmq\",\n    \"va\": messages.length === 0,\n    \"me\": messages,\n    \"or\": origin\n  });\n}\n\n_avo_invoke_meta = function _avo_invoke_meta(env, type, messages, origin) {\n  _avo_invoke_payload({\n    \"ac\": \"1uGxMBJDMGrmy0AnfcXt\",\n    \"br\": \"QnzDuOBGn\",\n    \"en\": env,\n    \"ty\": type,\n    \"sc\": \"5VWPHSaRaWcJAxzqYkj4\",\n    \"se\": (new Date()).toISOString(),\n    \"so\": \"7cRpl_rmq\",\n    \"va\": messages.length === 0,\n    \"me\": messages,\n    \"or\": origin\n  });\n}\n\n\n  var _avo_debugger_log;\nvar _avo_debugger_events_during_boot = [];\nvar _avo_debugger_ready = false;\n\nif (typeof window !== 'undefined') {\n  window.addEventListener(\"message\", function(event) {\n    if (event.origin !== \"https://www.avo.app\") {\n      return;\n    }\n    var iframe = document.getElementById(\"avo-debugger\");\n    if (iframe && event && event.data && event.data.type_ === \"avo-debugger-update-style\") {\n      iframe.style = event.data.style;\n    } else if (iframe && event && event.data && event.data.type_ === \"avo-debugger-ready\") {\n      var message = {\n        type_: \"avo-debugger-boot-events\",\n        schemaId: \"5VWPHSaRaWcJAxzqYkj4\",\n        href: window.location.href,\n        events: _avo_debugger_events_during_boot\n      };\n      _avo_debugger_events_during_boot = [];\n      _avo_debugger_ready = true;\n      iframe.contentWindow.postMessage(message, \"https://www.avo.app/_debugger\")\n    }\n  });\n}\n\n_avo_debugger_log = function _avo_debugger_log(eventId, eventName, messages, eventProperties, userProperties, groupProperties) {\n  if (typeof window === 'undefined') { return; }\n  var event = {\n    eventId: eventId,\n    eventName: eventName,\n    messages: messages,\n    timestamp: Date.now(),\n    eventProperties: eventProperties,\n    userProperties: userProperties,\n    groupProperties: groupProperties\n  };\n\n  if (_avo_debugger_ready) {\n    var message = {type_: \"avo-debugger-events\", events: [event]};\n    document.getElementById(\"avo-debugger\").contentWindow.postMessage(message, \"https://www.avo.app/_debugger\")\n  } else {\n    _avo_debugger_events_during_boot.push(event);\n  }\n}\n\nfunction _avo_debugger_send_position(position) {\n  if (typeof window === 'undefined') { return; }\n  window.addEventListener(\"message\", function(event) {\n    if (event.data.type_ === \"avo-debugger-ready\" && position !== null) {\n      var message = {type_: \"avo-debugger-position\", position: position};\n      document.getElementById(\"avo-debugger\").contentWindow.postMessage(message, \"https://www.avo.app/_debugger\")\n    }\n  })\n}\n\n\n  var ScreenName = {\n    SIGN_IN: \"sign_in\",\n    FORGOT_PASSWORD: \"forgot_password\",\n    PASSWORD_RESET: \"password_reset\",\n    UPGRADE: \"upgrade\",\n    ENTITY_UNSUPPORTED: \"entity_unsupported\",\n    ENTITY_NOT_FOUND: \"entity_not_found\",\n    CHAT: \"chat\",\n    FORMATION_TRACKER: \"formation_tracker\",\n    ACTION_MENU: \"action_menu\",\n    SETTINGS: \"settings\",\n    ONBOARDING: \"onboarding\",\n    ONBOARDING_TRANSITION: \"onboarding_transition\",\n    USER_AGREEMENT: \"user_agreement\",\n    DOCUMENT_FILE_SHARING: \"document_file_sharing\",\n    DOCUMENT_VIEWER: \"document_viewer\",\n    TEMPLATE_VIEWER: \"template_viewer\",\n    DOCUMENT_LIBRARY: \"document_library\",\n    TEMPLATE_LIBRARY: \"template_library\",\n    TEMPLATE_FILE_SHARING: \"template_file_sharing\",\n    PRODUCT_DETAIL: \"product_detail\",\n    PRODUCT_SUITE: \"product_suite\",\n    NO_DOCUMENTS: \"no_documents\",\n    TEMPLATES_LOCKED: \"templates_locked\",\n    PRODUCT_CHECKOUT_FAQ: \"product_checkout_faq\",\n    PRODUCT_CHECKOUT: \"product_checkout\",\n    EXPENSE_DETAIL_EDIT: \"expense_detail_edit\",\n    NO_EXPENSE_CATEGORIZATION: \"no_expense_categorization\",\n    EXPENSE_CATEGORIZATION: \"expense_categorization\",\n    EXPENSE_EDIT_CATEGORIZATION: \"expense_edit_categorization\",\n    EXPENSES_LIST: \"expenses_list\",\n    JOURNEY_LESSON: \"journey_lesson\",\n    JOURNEY_INTRO_HUB: \"journey_intro_hub\",\n    JOURNEY_LESSON_HUB: \"journey_lesson_hub\",\n    JOURNEY_LESSON_REVIEW: \"journey_lesson_review\",\n    EDU_STORY: \"edu_story\",\n    DASHBOARD_HOMEPAGE: \"dashboard_homepage\",\n  };\n\n  var DocumentCategory = {\n    TEMPLATE: \"template\",\n    BUSINESS_RECORD: \"business_record\",\n    BUSINESS_GUIDE: \"business_guide\",\n    CORPORATE_DOCS: \"corporate_docs\",\n  };\n\n  var FormationStatus = {\n    UNKNOWN: \"unknown\",\n    ACCURACY_CHECK: \"accuracy_check\",\n    BUSINESS_FORMED: \"business_formed\",\n    ORDER_RECEIVED: \"order_received\",\n    SUBMITTED_TO_STATE: \"submitted_to_state\",\n    UNDER_STATE_REVIEW: \"under_state_review\",\n    FORMATION_REQUEST_INCOMPLETE: \"formation_request_incomplete\",\n    CUSTOMIZE_PLAN: \"customize_plan\",\n    ACCURACY_CHECK_FIXING_ISSUE: \"accuracy_check_fixing_issue\",\n    BUSINESS_FORMED_FFD: \"business_formed_ffd\",\n    BUSINESS_FORMED_FFD_COMPLETE: \"business_formed_ffd_complete\",\n    BUSINESS_FORMED_FFD_POST_INCOMPLETE: \"business_formed_ffd_post_incomplete\",\n    FORMATION_REQUEST: \"formation_request\",\n    SUBMITTED_TO_STATE_STILL_WAITING: \"submitted_to_state_still_waiting\",\n    UNDER_STATE_REVIEW_DELAYED: \"under_state_review_delayed\",\n  };\n\n  var Component = {\n    LOGIN: \"login\",\n    HOME: \"home\",\n    ONBOARDING: \"onboarding\",\n    MAIN_CHAT: \"main_chat\",\n    USER_AGREEMENTS: \"user_agreements\",\n    SETTINGS: \"settings\",\n    WEB: \"web\",\n    ROOT: \"root\",\n    DOCUMENT_CENTER: \"document_center\",\n    PRODUCT_SUITE: \"product_suite\",\n    CHECKOUT: \"checkout\",\n    EXPENSES: \"expenses\",\n    J2S: \"j2s\",\n    EDU: \"edu\",\n  };\n\n  function assertOptionalInputValue(inputValue, label_) {\n    var messages = [];\n    if (inputValue !== undefined && inputValue !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"-wyQAHpsVw\", label_ ? \"input_value\" + \": \" + label_ : \"input_value\", inputValue));\n    }\n    return messages;\n  }\n\n  function assertOptionalFactorType(factorType, label_) {\n    var messages = [];\n    if (factorType !== undefined && factorType !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"1s53O8Qd0\", label_ ? \"factor_type\" + \": \" + label_ : \"factor_type\", factorType));\n    }\n    return messages;\n  }\n\n  function assertAccountUuid(accountUuid, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"25PWSeLu4\", label_ ? \"account_uuid\" + \": \" + label_ : \"account_uuid\", accountUuid));\n    return messages;\n  }\n\n  function assertOptionalAccountUuid(accountUuid, label_) {\n    var messages = [];\n    if (accountUuid !== undefined && accountUuid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"25PWSeLu4\", label_ ? \"account_uuid\" + \": \" + label_ : \"account_uuid\", accountUuid));\n    }\n    return messages;\n  }\n\n  function assertZenbusinessEnv(zenbusinessEnv, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"3B3rhVOIr\", label_ ? \"zenbusiness_env\" + \": \" + label_ : \"zenbusiness_env\", zenbusinessEnv));\n    return messages;\n  }\n\n  function assertDeviceType(deviceType, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"3dB3qQvbL\", label_ ? \"device_type\" + \": \" + label_ : \"device_type\", deviceType));\n    return messages;\n  }\n\n  function assertOptionalToPageNum(toPageNum, label_) {\n    var messages = [];\n    if (toPageNum !== undefined && toPageNum !== null) {\n      messages = messages.concat(AvoAssert.assertInt(\"5aFha6_70\", label_ ? \"to_page_num\" + \": \" + label_ : \"to_page_num\", toPageNum));\n    }\n    return messages;\n  }\n\n  function assertOptionalScreenName(screenName, label_) {\n    var messages = [];\n    if (screenName !== undefined && screenName !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"7-hb0S6NBb\", label_ ? \"screen_name\" + \": \" + label_ : \"screen_name\", screenName));\n      if (\"sign_in\" !== screenName && \"forgot_password\" !== screenName &&\n            \"password_reset\" !== screenName && \"upgrade\" !== screenName &&\n            \"entity_unsupported\" !== screenName &&\n            \"entity_not_found\" !== screenName && \"chat\" !== screenName &&\n            \"formation_tracker\" !== screenName &&\n            \"action_menu\" !== screenName && \"settings\" !== screenName &&\n            \"onboarding\" !== screenName &&\n            \"onboarding_transition\" !== screenName &&\n            \"user_agreement\" !== screenName &&\n            \"document_file_sharing\" !== screenName &&\n            \"document_viewer\" !== screenName &&\n            \"template_viewer\" !== screenName &&\n            \"document_library\" !== screenName &&\n            \"template_library\" !== screenName &&\n            \"template_file_sharing\" !== screenName &&\n            \"product_detail\" !== screenName &&\n            \"product_suite\" !== screenName &&\n            \"no_documents\" !== screenName &&\n            \"templates_locked\" !== screenName &&\n            \"product_checkout_faq\" !== screenName &&\n            \"product_checkout\" !== screenName &&\n            \"expense_detail_edit\" !== screenName &&\n            \"no_expense_categorization\" !== screenName &&\n            \"expense_categorization\" !== screenName &&\n            \"expense_edit_categorization\" !== screenName &&\n            \"expenses_list\" !== screenName &&\n            \"journey_lesson\" !== screenName &&\n            \"journey_intro_hub\" !== screenName &&\n            \"journey_lesson_hub\" !== screenName &&\n            \"journey_lesson_review\" !== screenName &&\n            \"edu_story\" !== screenName &&\n            \"dashboard_homepage\" !== screenName) {\n        var message = (label_ ? \"screen_name\" + \": \" + label_ : \"screen_name\") + \" should match one of the following values [ sign_in | forgot_password | password_reset | upgrade | entity_unsupported | entity_not_found | chat | formation_tracker | action_menu | settings | onboarding | onboarding_transition | user_agreement | document_file_sharing | document_viewer | template_viewer | document_library | template_library | template_file_sharing | product_detail | product_suite | no_documents | templates_locked | product_checkout_faq | product_checkout | expense_detail_edit | no_expense_categorization | expense_categorization | expense_edit_categorization | expenses_list | journey_lesson | journey_intro_hub | journey_lesson_hub | journey_lesson_review | edu_story | dashboard_homepage ] but you provided the value \" + screenName\n        messages = messages.concat([{tag: 'expectedStringMatch', propertyId: \"7-hb0S6NBb\", message: message}]);\n      }\n    }\n    return messages;\n  }\n\n  function assertOptionalSelectedPlan(selectedPlan, label_) {\n    var messages = [];\n    if (selectedPlan !== undefined && selectedPlan !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"8Okppe_QB4\", label_ ? \"selected_plan\" + \": \" + label_ : \"selected_plan\", selectedPlan));\n    }\n    return messages;\n  }\n\n  function assertOptionalClickType(clickType, label_) {\n    var messages = [];\n    if (clickType !== undefined && clickType !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"ArlIfG7be\", label_ ? \"click_type\" + \": \" + label_ : \"click_type\", clickType));\n    }\n    return messages;\n  }\n\n  function assertOptionalGclid(gclid, label_) {\n    var messages = [];\n    if (gclid !== undefined && gclid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"AzsAl9ftG\", label_ ? \"gclid\" + \": \" + label_ : \"gclid\", gclid));\n    }\n    return messages;\n  }\n\n  function assertGclid(gclid, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"AzsAl9ftG\", label_ ? \"gclid\" + \": \" + label_ : \"gclid\", gclid));\n    return messages;\n  }\n\n  function assertOptionalDocumentCategory(documentCategory, label_) {\n    var messages = [];\n    if (documentCategory !== undefined && documentCategory !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"BC0Fdhks1O\", label_ ? \"document_category\" + \": \" + label_ : \"document_category\", documentCategory));\n      if (\"template\" !== documentCategory &&\n            \"business_record\" !== documentCategory &&\n            \"business_guide\" !== documentCategory &&\n            \"corporate_docs\" !== documentCategory) {\n        var message = (label_ ? \"document_category\" + \": \" + label_ : \"document_category\") + \" should match one of the following values [ template | business_record | business_guide | corporate_docs ] but you provided the value \" + documentCategory\n        messages = messages.concat([{tag: 'expectedStringMatch', propertyId: \"BC0Fdhks1O\", message: message}]);\n      }\n    }\n    return messages;\n  }\n\n  function assertOptionalIsLoggedIn(isLoggedIn, label_) {\n    var messages = [];\n    if (isLoggedIn !== undefined && isLoggedIn !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"DRTjo94zF\", label_ ? \"is_logged_in\" + \": \" + label_ : \"is_logged_in\", isLoggedIn));\n    }\n    return messages;\n  }\n\n  function assertOptionalUtterance(utterance, label_) {\n    var messages = [];\n    if (utterance !== undefined && utterance !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"FJK1ZA6Mb\", label_ ? \"utterance\" + \": \" + label_ : \"utterance\", utterance));\n    }\n    return messages;\n  }\n\n  function assertOptionalFromPageNum(fromPageNum, label_) {\n    var messages = [];\n    if (fromPageNum !== undefined && fromPageNum !== null) {\n      messages = messages.concat(AvoAssert.assertInt(\"FWI3g8LhZ\", label_ ? \"from_page_num\" + \": \" + label_ : \"from_page_num\", fromPageNum));\n    }\n    return messages;\n  }\n\n  function assertOptionalClickLocation(clickLocation, label_) {\n    var messages = [];\n    if (clickLocation !== undefined && clickLocation !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"HN4iwjc4S\", label_ ? \"click_location\" + \": \" + label_ : \"click_location\", clickLocation));\n    }\n    return messages;\n  }\n\n  function assertOptionalBusinessEntityUuid(businessEntityUuid, label_) {\n    var messages = [];\n    if (businessEntityUuid !== undefined && businessEntityUuid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"La5lkLgNx2\", label_ ? \"business_entity_uuid\" + \": \" + label_ : \"business_entity_uuid\", businessEntityUuid));\n    }\n    return messages;\n  }\n\n  function assertProduct(product, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"LdTj6C45k\", label_ ? \"product\" + \": \" + label_ : \"product\", product));\n    return messages;\n  }\n\n  function assertOptionalCreditChange(creditChange, label_) {\n    var messages = [];\n    if (creditChange !== undefined && creditChange !== null) {\n      messages = messages.concat(AvoAssert.assertInt(\"M5iw0xib4\", label_ ? \"credit_change\" + \": \" + label_ : \"credit_change\", creditChange));\n    }\n    return messages;\n  }\n\n  function assertOptionalCategory(category, label_) {\n    var messages = [];\n    if (category !== undefined && category !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"MhUqtb01Uc\", label_ ? \"category\" + \": \" + label_ : \"category\", category));\n    }\n    return messages;\n  }\n\n  function assertMobileDeviceType(mobileDeviceType, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"Mtpd-5MgT\", label_ ? \"mobile_device_type\" + \": \" + label_ : \"mobile_device_type\", mobileDeviceType));\n    return messages;\n  }\n\n  function assertOptionalDocumentTitle(documentTitle, label_) {\n    var messages = [];\n    if (documentTitle !== undefined && documentTitle !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"NpsW4Qq8Eq\", label_ ? \"document_title\" + \": \" + label_ : \"document_title\", documentTitle));\n    }\n    return messages;\n  }\n\n  function assertOptionalSessionUuid(sessionUuid, label_) {\n    var messages = [];\n    if (sessionUuid !== undefined && sessionUuid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"Nu_Wrd1FB\", label_ ? \"session_uuid\" + \": \" + label_ : \"session_uuid\", sessionUuid));\n    }\n    return messages;\n  }\n\n  function assertOptionalNumFavorites(numFavorites, label_) {\n    var messages = [];\n    if (numFavorites !== undefined && numFavorites !== null) {\n      messages = messages.concat(AvoAssert.assertInt(\"RNrWXBBug\", label_ ? \"num_favorites\" + \": \" + label_ : \"num_favorites\", numFavorites));\n    }\n    return messages;\n  }\n\n  function assertOptionalTemplateName(templateName, label_) {\n    var messages = [];\n    if (templateName !== undefined && templateName !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"RzsrGs3Vl\", label_ ? \"template_name\" + \": \" + label_ : \"template_name\", templateName));\n    }\n    return messages;\n  }\n\n  function assertOptionalFormationStatus(formationStatus, label_) {\n    var messages = [];\n    if (formationStatus !== undefined && formationStatus !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"SvBbqjSdEZ\", label_ ? \"formation_status\" + \": \" + label_ : \"formation_status\", formationStatus));\n      if (\"unknown\" !== formationStatus &&\n            \"accuracy_check\" !== formationStatus &&\n            \"business_formed\" !== formationStatus &&\n            \"order_received\" !== formationStatus &&\n            \"submitted_to_state\" !== formationStatus &&\n            \"under_state_review\" !== formationStatus &&\n            \"formation_request_incomplete\" !== formationStatus &&\n            \"customize_plan\" !== formationStatus &&\n            \"accuracy_check_fixing_issue\" !== formationStatus &&\n            \"business_formed_ffd\" !== formationStatus &&\n            \"business_formed_ffd_complete\" !== formationStatus &&\n            \"business_formed_ffd_post_incomplete\" !== formationStatus &&\n            \"formation_request\" !== formationStatus &&\n            \"submitted_to_state_still_waiting\" !== formationStatus &&\n            \"under_state_review_delayed\" !== formationStatus) {\n        var message = (label_ ? \"formation_status\" + \": \" + label_ : \"formation_status\") + \" should match one of the following values [ unknown | accuracy_check | business_formed | order_received | submitted_to_state | under_state_review | formation_request_incomplete | customize_plan | accuracy_check_fixing_issue | business_formed_ffd | business_formed_ffd_complete | business_formed_ffd_post_incomplete | formation_request | submitted_to_state_still_waiting | under_state_review_delayed ] but you provided the value \" + formationStatus\n        messages = messages.concat([{tag: 'expectedStringMatch', propertyId: \"SvBbqjSdEZ\", message: message}]);\n      }\n    }\n    return messages;\n  }\n\n  function assertOptionalSearchDocumentName(searchDocumentName, label_) {\n    var messages = [];\n    if (searchDocumentName !== undefined && searchDocumentName !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"TmdMbbgTt\", label_ ? \"search_document_name\" + \": \" + label_ : \"search_document_name\", searchDocumentName));\n    }\n    return messages;\n  }\n\n  function assertOptionalPagePosition(pagePosition, label_) {\n    var messages = [];\n    if (pagePosition !== undefined && pagePosition !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"V226KPCO2\", label_ ? \"page_position\" + \": \" + label_ : \"page_position\", pagePosition));\n    }\n    return messages;\n  }\n\n  function assertOptionalFlowName(flowName, label_) {\n    var messages = [];\n    if (flowName !== undefined && flowName !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"VnX_zDLmnh\", label_ ? \"flow_name\" + \": \" + label_ : \"flow_name\", flowName));\n    }\n    return messages;\n  }\n\n  function assertOptionalAction(action, label_) {\n    var messages = [];\n    if (action !== undefined && action !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"Y2nNypafT\", label_ ? \"action\" + \": \" + label_ : \"action\", action));\n    }\n    return messages;\n  }\n\n  function assertOptionalTotalPrice(totalPrice, label_) {\n    var messages = [];\n    if (totalPrice !== undefined && totalPrice !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"Z-o-PEgQJ\", label_ ? \"total_price\" + \": \" + label_ : \"total_price\", totalPrice));\n    }\n    return messages;\n  }\n\n  function assertUserId_(userId_, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"avo-enriched-type-user-id\", label_ ? \"User Id\" + \": \" + label_ : \"User Id\", userId_));\n    return messages;\n  }\n\n  function assertOptionalParameter(parameter, label_) {\n    var messages = [];\n    if (parameter !== undefined && parameter !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"bdh7TElYQF\", label_ ? \"parameter\" + \": \" + label_ : \"parameter\", parameter));\n    }\n    return messages;\n  }\n\n  function assertOptionalPaginationClicks(paginationClicks, label_) {\n    var messages = [];\n    if (paginationClicks !== undefined && paginationClicks !== null) {\n      messages = messages.concat(AvoAssert.assertInt(\"bfBR50Pu8\", label_ ? \"pagination_clicks\" + \": \" + label_ : \"pagination_clicks\", paginationClicks));\n    }\n    return messages;\n  }\n\n  function assertOptionalTemplateId(templateId, label_) {\n    var messages = [];\n    if (templateId !== undefined && templateId !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"byNhEwVOUr\", label_ ? \"template_id\" + \": \" + label_ : \"template_id\", templateId));\n    }\n    return messages;\n  }\n\n  function assertOptionalComponent(component, label_) {\n    var messages = [];\n    if (component !== undefined && component !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"cMzkv_Qm1Q\", label_ ? \"component\" + \": \" + label_ : \"component\", component));\n      if (\"login\" !== component && \"home\" !== component &&\n            \"onboarding\" !== component && \"main_chat\" !== component &&\n            \"user_agreements\" !== component && \"settings\" !== component &&\n            \"web\" !== component && \"root\" !== component &&\n            \"document_center\" !== component &&\n            \"product_suite\" !== component && \"checkout\" !== component &&\n            \"expenses\" !== component && \"j2s\" !== component &&\n            \"edu\" !== component) {\n        var message = (label_ ? \"component\" + \": \" + label_ : \"component\") + \" should match one of the following values [ login | home | onboarding | main_chat | user_agreements | settings | web | root | document_center | product_suite | checkout | expenses | j2s | edu ] but you provided the value \" + component\n        messages = messages.concat([{tag: 'expectedStringMatch', propertyId: \"cMzkv_Qm1Q\", message: message}]);\n      }\n    }\n    return messages;\n  }\n\n  function assertOptionalClickText(clickText, label_) {\n    var messages = [];\n    if (clickText !== undefined && clickText !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"eKAICvpAV\", label_ ? \"click_text\" + \": \" + label_ : \"click_text\", clickText));\n    }\n    return messages;\n  }\n\n  function assertOptionalFullStorySession(fullStorySession, label_) {\n    var messages = [];\n    if (fullStorySession !== undefined && fullStorySession !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"emDUoaaaty\", label_ ? \"full_story_session\" + \": \" + label_ : \"full_story_session\", fullStorySession));\n    }\n    return messages;\n  }\n\n  function assertOptionalUrl(url, label_) {\n    var messages = [];\n    if (url !== undefined && url !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"iEF-1NRNp\", label_ ? \"url\" + \": \" + label_ : \"url\", url));\n    }\n    return messages;\n  }\n\n  function assertUrl(url, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"iEF-1NRNp\", label_ ? \"url\" + \": \" + label_ : \"url\", url));\n    return messages;\n  }\n\n  function assertOptionalCreditRange(creditRange, label_) {\n    var messages = [];\n    if (creditRange !== undefined && creditRange !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"jcYSQPSAv\", label_ ? \"credit_range\" + \": \" + label_ : \"credit_range\", creditRange));\n    }\n    return messages;\n  }\n\n  function assertOptionalPageType(pageType, label_) {\n    var messages = [];\n    if (pageType !== undefined && pageType !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"l8x9M6i2L\", label_ ? \"page_type\" + \": \" + label_ : \"page_type\", pageType));\n    }\n    return messages;\n  }\n\n  function assertPageType(pageType, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"l8x9M6i2L\", label_ ? \"page_type\" + \": \" + label_ : \"page_type\", pageType));\n    return messages;\n  }\n\n  function assertOptionalHasDocumentUrl(hasDocumentUrl, label_) {\n    var messages = [];\n    if (hasDocumentUrl !== undefined && hasDocumentUrl !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"lswy0DGwZ\", label_ ? \"has_document_url\" + \": \" + label_ : \"has_document_url\", hasDocumentUrl));\n    }\n    return messages;\n  }\n\n  function assertOptionalNextUrl(nextUrl, label_) {\n    var messages = [];\n    if (nextUrl !== undefined && nextUrl !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"obb8NlbRTt\", label_ ? \"next_url\" + \": \" + label_ : \"next_url\", nextUrl));\n    }\n    return messages;\n  }\n\n  function assertOptionalActiveFlow(activeFlow, label_) {\n    var messages = [];\n    if (activeFlow !== undefined && activeFlow !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"pH5hjETqtf\", label_ ? \"active_flow\" + \": \" + label_ : \"active_flow\", activeFlow));\n    }\n    return messages;\n  }\n\n  function assertOptionalVisitUuid(visitUuid, label_) {\n    var messages = [];\n    if (visitUuid !== undefined && visitUuid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"pXgHHzhta\", label_ ? \"visit_uuid\" + \": \" + label_ : \"visit_uuid\", visitUuid));\n    }\n    return messages;\n  }\n\n  function assertUserUuid(userUuid, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"rGUK6jX2pk\", label_ ? \"user_uuid\" + \": \" + label_ : \"user_uuid\", userUuid));\n    return messages;\n  }\n\n  function assertOptionalUserUuid(userUuid, label_) {\n    var messages = [];\n    if (userUuid !== undefined && userUuid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"rGUK6jX2pk\", label_ ? \"user_uuid\" + \": \" + label_ : \"user_uuid\", userUuid));\n    }\n    return messages;\n  }\n\n  function assertOptionalClickUrl(clickUrl, label_) {\n    var messages = [];\n    if (clickUrl !== undefined && clickUrl !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"rn4FydBzW\", label_ ? \"click_url\" + \": \" + label_ : \"click_url\", clickUrl));\n    }\n    return messages;\n  }\n\n  function assertOptionalMessageUuid(messageUuid, label_) {\n    var messages = [];\n    if (messageUuid !== undefined && messageUuid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"sEYAhRvTuY\", label_ ? \"message_uuid\" + \": \" + label_ : \"message_uuid\", messageUuid));\n    }\n    return messages;\n  }\n\n  function assertOptionalPageSection(pageSection, label_) {\n    var messages = [];\n    if (pageSection !== undefined && pageSection !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"sbnycMvmf\", label_ ? \"page_section\" + \": \" + label_ : \"page_section\", pageSection));\n    }\n    return messages;\n  }\n\n  function assertPageSection(pageSection, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"sbnycMvmf\", label_ ? \"page_section\" + \": \" + label_ : \"page_section\", pageSection));\n    return messages;\n  }\n\n  function assertOptionalTestingIdVariant(testingIdVariant, label_) {\n    var messages = [];\n    if (testingIdVariant !== undefined && testingIdVariant !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"tWhNzP52Pf\", label_ ? \"testing_id_variant\" + \": \" + label_ : \"testing_id_variant\", testingIdVariant));\n    }\n    return messages;\n  }\n\n  function assertOptionalPageSubSection(pageSubSection, label_) {\n    var messages = [];\n    if (pageSubSection !== undefined && pageSubSection !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"twUaagBze\", label_ ? \"page_sub_section\" + \": \" + label_ : \"page_sub_section\", pageSubSection));\n    }\n    return messages;\n  }\n\n  function assertRelease(release, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"xasJb-lV_\", label_ ? \"release\" + \": \" + label_ : \"release\", release));\n    return messages;\n  }\n\n  function assertOptionalMsclkid(msclkid, label_) {\n    var messages = [];\n    if (msclkid !== undefined && msclkid !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"yCnvPbl0U\", label_ ? \"msclkid\" + \": \" + label_ : \"msclkid\", msclkid));\n    }\n    return messages;\n  }\n\n  function assertMsclkid(msclkid, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"yCnvPbl0U\", label_ ? \"msclkid\" + \": \" + label_ : \"msclkid\", msclkid));\n    return messages;\n  }\n\n  function assertOptionalPathName(pathName, label_) {\n    var messages = [];\n    if (pathName !== undefined && pathName !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"zCUXYKmhzO\", label_ ? \"path_name\" + \": \" + label_ : \"path_name\", pathName));\n    }\n    return messages;\n  }\n\n  function assertOptionalDocumentName(documentName, label_) {\n    var messages = [];\n    if (documentName !== undefined && documentName !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"zXcOcwRO7q\", label_ ? \"document_name\" + \": \" + label_ : \"document_name\", documentName));\n    }\n    return messages;\n  }\n\n  function assertOptionalPageTitle(pageTitle, label_) {\n    var messages = [];\n    if (pageTitle !== undefined && pageTitle !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"zbH67lXps\", label_ ? \"page_title\" + \": \" + label_ : \"page_title\", pageTitle));\n    }\n    return messages;\n  }\n\n  function assertPageTitle(pageTitle, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"zbH67lXps\", label_ ? \"page_title\" + \": \" + label_ : \"page_title\", pageTitle));\n    return messages;\n  }\n\n  function assertStatus(status, label_) {\n    var messages = [];\n    messages = messages.concat(AvoAssert.assertString(\"zknlhOMqY\", label_ ? \"status\" + \": \" + label_ : \"status\", status));\n    return messages;\n  }\n\n  function assertOptionalPlanPeriod(planPeriod, label_) {\n    var messages = [];\n    if (planPeriod !== undefined && planPeriod !== null) {\n      messages = messages.concat(AvoAssert.assertString(\"ztAstGSsVe\", label_ ? \"plan_period\" + \": \" + label_ : \"plan_period\", planPeriod));\n    }\n    return messages;\n  }\n\n  function setAvoLogger(avoLogger) {\n    __AVO_LOGGER__ = avoLogger;\n  }\n\n\n  var RudderStackLegacyEvents;\n  function setup_(options, systemProperties,\n    RudderStackLegacyEventsDestination, destinationOptions) {\n    __WEB_DEBUGGER__ = false;\n    if (options.validateProperties === true) {\n      __AVO_DEV__ = true;\n    }\n\n    destinationOptions = destinationOptions || {};\n\n    if (!__AVO_NOOP__) {\n      if (options.useProductionKey) {\n      } else {\n      }\n\n      RudderStackLegacyEvents = RudderStackLegacyEventsDestination;\n      RudderStackLegacyEvents.make(options.useProductionKey);\n      if (__AVO_DEV__) {\n        // debug console in Avo\n        _avo_invoke_meta(__AVO_ENV__, 'setup', [], 'setup');\n      }\n    }\n  }\n\n  function initAvo(options, systemProperties, destinationOptions,\n    RudderStackLegacyEventsDestination) {\n    if (__AVO_ENV__ !== null) {\n      return;\n    }\n    __AVO_ENV__ = options.env.toLowerCase();\n    if (options.avoLogger !== undefined) {\n      __AVO_LOGGER__ = options.avoLogger;\n    }\n    if (options.noop === true) {\n      __AVO_NOOP__ = true;\n    }\n    if (__AVO_NOOP__ && __AVO_ENV__ == 'prod') {\n      InternalAvoLogger.warn(\"****************************************************\");\n      InternalAvoLogger.warn(\"WARNING Avo cannot be initialized in noop mode in production:\");\n      InternalAvoLogger.warn(\"- Overwriting configuration with noop=false.\");\n      InternalAvoLogger.warn(\"- Please reach out if you want to be able to run Avo in production mode with noop=true\");\n      InternalAvoLogger.warn(\"****************************************************\");\n      __AVO_NOOP__ = false;\n    }\n    if (__AVO_NOOP__) {\n      InternalAvoLogger.log(\"****************************************************\");\n      InternalAvoLogger.log(\"Avo is now initialized in noop mode. This means:\");\n      InternalAvoLogger.log(\"- No events will be sent\");\n      InternalAvoLogger.log(\"- No network requests are made\");\n      InternalAvoLogger.log(\"****************************************************\");\n    }\n    if (options.strict !== undefined) {\n      __STRICT__ = options.strict !== false;\n    }\n    if (options.reportFailureAs !== undefined) {\n      __REPORT_FAILURE_AS__ = options.reportFailureAs;\n    }\n    __WEB_DEBUGGER__ = !__AVO_NOOP__ && ((typeof window !== 'undefined' && window.location.search.indexOf(\"avo_debug=1\") > -1) || (options.webDebugger !== false && __AVO_ENV__ !== 'prod'));\n    if (!__AVO_NOOP__ && options.inspector !== undefined) {\n      __INSPECTOR__ = options.inspector;\n    } else if (__AVO_ENV__ !== 'prod') {\n      InternalAvoLogger.warn(\"Avo Inspector not provided in initAvo() call\");\n    }\n    if (__AVO_ENV__ !== 'prod') {\n      __AVO_DEV__ = true;\n    }\n\n    destinationOptions = destinationOptions || {};\n\n    if (__WEB_DEBUGGER__ && !__AVO_NOOP__) {\n    if (options.webDebuggerOptions && options.webDebuggerOptions.position) {\n      const {\n        BOTTOM_RIGHT,\n        BOTTOM_LEFT,\n        TOP_RIGHT,\n        TOP_LEFT,\n        } =\n        WebDebuggerPosition.position;\n\n      try {\n        WebDebuggerAssertions.assertKey(\n          options.webDebuggerOptions.position,\n          \"position\",\n          position => {\n            return position === BOTTOM_RIGHT ||\n            position === BOTTOM_LEFT ||\n            position === TOP_RIGHT ||\n            position === TOP_LEFT;\n          }\n        )\n      } catch (e) {\n        throw new Error('WebDebugger: Position object incorrect. Use methods from WebDebuggerPosition.');\n      }\n\n      const top = options.webDebuggerOptions.position.top || 0;\n      const right = options.webDebuggerOptions.position.right || 0;\n      const bottom = options.webDebuggerOptions.position.bottom || 0;\n      const left = options.webDebuggerOptions.position.left || 0;\n\n      let positionParams;\n\n      switch (options.webDebuggerOptions.position.position) {\n        case BOTTOM_RIGHT:\n          positionParams = {\n            position: BOTTOM_RIGHT,\n            bottom,\n            right,\n          };\n          break;\n        case BOTTOM_LEFT:\n          positionParams = {\n            position: BOTTOM_LEFT,\n            bottom,\n            left,\n          };\n          break;\n        case TOP_RIGHT:\n          positionParams = {\n            position: TOP_RIGHT,\n            top,\n            right,\n          };\n          break;\n        case TOP_LEFT:\n          positionParams = {\n            position: TOP_LEFT,\n            top,\n            left,\n          };\n          break;\n        default: throw new Error('WebDebugger: Position object incorrect. Use methods from WebDebuggerPosition.');\n      }\n\n      _avo_debugger_send_position(positionParams);\n    }\n\n(function() {\n  if (typeof window === 'undefined') { return; }\n  var init = function() {\n    if (document.getElementById(\"avo-debugger\") === null) {\n      var iframe = document.createElement(\"iframe\");\n      document.body.appendChild(iframe);\n      iframe.id = \"avo-debugger\";\n      iframe.src = \"https://www.avo.app/_debugger\";\n      iframe.style = \"display: none;\";\n    }\n  };\n\n  if (document.body) {\n    init();\n  } else {\n    document.addEventListener('DOMContentLoaded', init);\n  }\n})();\n\n    }\n    if (!__AVO_NOOP__) {\n      if (__AVO_ENV__ === 'prod') {\n      }\n      if (__AVO_ENV__ === 'dev') {\n      }\n\n      RudderStackLegacyEvents = RudderStackLegacyEventsDestination;\n      if (__AVO_ENV__ === 'prod') {\n        RudderStackLegacyEvents.make && RudderStackLegacyEvents.make(__AVO_ENV__, null);\n      } else if (__AVO_ENV__ === 'dev') {\n        RudderStackLegacyEvents.make && RudderStackLegacyEvents.make(__AVO_ENV__, null);\n      } else {\n        console[__REPORT_FAILURE_AS__ || 'error'](\"[avo] No staging key is set for RudderStack (Legacy Events). Head to destination settings in Avo to set a staging key.\");\n        RudderStackLegacyEvents.make && RudderStackLegacyEvents.make(__AVO_ENV__, null);\n      }\n      if (__AVO_DEV__) {\n        // debug console in Avo\n        _avo_invoke_meta(__AVO_ENV__, 'init', [], 'init');\n      }\n    }\n  }\n\n  /**\n   * user_identified: Called when the user's identity is set. This is not correlated to any user action of logging in.\n   *\n   * @param {object} properties - the properties associatied with this event\n   * @param {string} properties.userId_ - The value used to identify the user. Make sure it's a unique sequence of characters used to identify the user.\n   *\n   * @see {@link https://www.avo.app/schemas/5VWPHSaRaWcJAxzqYkj4/branches/QnzDuOBGn/events/9tAg0xMcaT}\n   */\n  function userIdentified(properties) {\n    properties = properties || {};\n    if (__AVO_DEV__ || __WEB_DEBUGGER__) {\n      // assert properties\n      var messages = [];\n      messages = messages.concat(assertUserId_(properties.userId_));\n      messages = messages.concat(AvoAssert.assertNoAdditionalProperties(\"user_identified\", Object.keys(properties), [\n        \"userId_\"\n      ]));\n      // debug console in Avo\n      if (!__AVO_NOOP__) {\n        _avo_invoke(__AVO_ENV__, \"9tAg0xMcaT\", \"2723f78698bfa27da3e22d7c7356f262213915cc9befcf48bdb1e829cdbf6138\", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');\n      }\n\n      InternalAvoLogger.logEventSent(\"user_identified\", {}, {}, {});\n      if (__WEB_DEBUGGER__) {\n        // Avo web debugger\n        _avo_debugger_log(\"9tAg0xMcaT\", \"user_identified\", messages, [], [], []);\n      }\n      if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\n        // throw exception if messages is not empty\n        if (messages.length !== 0) {\n          throw new Error(\"Error sending event 'user_identified': \" + messages[0].message)\n        }\n      } else {\n        messages.forEach(function(m) {\n          console[__REPORT_FAILURE_AS__ || 'error'](\"[avo] \" + m.message);\n        });\n      }\n    }\n\n    if (!__AVO_NOOP__) {\n      // destination RudderStackLegacyEvents\n      RudderStackLegacyEvents.identify(properties.userId_);\n    } else {\n      // do nothing\n    }\n  }\n\n  /**\n   * user_unidentified: Called when the user's identity is removed from tracking. This is not correlated to any user action of logging out.\n   *\n   * @see {@link https://www.avo.app/schemas/5VWPHSaRaWcJAxzqYkj4/branches/QnzDuOBGn/events/XMgqdWnsiR}\n   */\n  function userUnidentified(properties) {\n    properties = properties || {};\n    if (__AVO_DEV__ || __WEB_DEBUGGER__) {\n      // assert properties\n      var messages = [];\n      messages = messages.concat(AvoAssert.assertNoAdditionalProperties(\"user_unidentified\", Object.keys(properties), [\n      ]));\n      // debug console in Avo\n      if (!__AVO_NOOP__) {\n        _avo_invoke(__AVO_ENV__, \"XMgqdWnsiR\", \"b38fa00e6334759a8ade3159291408aa093f744c2954b9b70ad2108b701d5d05\", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');\n      }\n\n      InternalAvoLogger.logEventSent(\"user_unidentified\", {}, {}, {});\n      if (__WEB_DEBUGGER__) {\n        // Avo web debugger\n        _avo_debugger_log(\"XMgqdWnsiR\", \"user_unidentified\", messages, [], [], []);\n      }\n      if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\n        // throw exception if messages is not empty\n        if (messages.length !== 0) {\n          throw new Error(\"Error sending event 'user_unidentified': \" + messages[0].message)\n        }\n      } else {\n        messages.forEach(function(m) {\n          console[__REPORT_FAILURE_AS__ || 'error'](\"[avo] \" + m.message);\n        });\n      }\n    }\n\n    if (!__AVO_NOOP__) {\n      // destination RudderStackLegacyEvents\n      RudderStackLegacyEvents.unidentify();\n    } else {\n      // do nothing\n    }\n  }\n\n  /**\n   * click: These are all click engagement events.\n   *\n   * @param {object} properties - the properties associatied with this event\n   * @param {string} [properties.clickLocation] - location in the page/modal for the action\n   * @param {string} [properties.clickText] - Text of the action\n   * @param {string} [properties.clickType] - Click element type, like Button or image for the action\n   * @param {string} [properties.clickUrl] - Destination URL from the action\n   * @param {int} [properties.creditChange] - document name\n   * @param {string} [properties.creditRange] - no description\n   * @param {string} properties.deviceType - Device the user accessed zen from\n   * @param {string} [properties.documentCategory] - The category of document being handled in the event. This will map to our `DocumentCategory` object from native-app-service.\n   * @param {string} [properties.documentTitle] - The title of the document being logged in the event\n   * @param {string} [properties.factorType] - no description\n   * @param {int} [properties.fromPageNum] - no description\n   * @param {string} [properties.hasDocumentUrl] - no description\n   * @param {int} [properties.numFavorites] - no description\n   * @param {string} [properties.pagePosition] - Position in the page the\n   * @param {string} [properties.pageSubSection] - Sub-section of page\n   * @param {string} [properties.pageTitle] - Title of page\n   * @param {string} [properties.pageType] - Type of page the click is coming from\n   * @param {int} [properties.paginationClicks] - no description\n   * @param {string} properties.release - relese number\n   * @param {string} [properties.searchDocumentName] - search document name\n   * @param {int} [properties.toPageNum] - Page the pagination is navigating to\n   * @param {string} [properties.url] - This is the url for each event.\n   * @param {string} properties.zenbusinessEnv - zenbusiness environment the event is coming from\n   * @param {string} [properties.pageSection] - Section in page\n   * @param {string} properties.accountUuid - This is the unique account ID\n   * @param {string} [properties.utterance] - This is additional context given to each click event.\n   * @param {string} [properties.templateName] - This is the template name for Duda websites.\n   * @param {string} properties.userUuid - userUUID\n   * @param {string} [properties.testingIdVariant] - testing id variant\n   * @param {string} [properties.templateId] - no description\n   * @param {string} [properties.sessionUuid] - session uuid\n   * @param {string} [properties.selectedPlan] - Plan selected\n   * @param {string} [properties.planPeriod] - no description\n   * @param {string} [properties.pathName] - path name\n   * @param {string} [properties.parameter] - no description\n   * @param {string} [properties.nextUrl] - no description\n   * @param {string} [properties.messageUuid] - message uuid\n   * @param {string} [properties.inputValue] - input value\n   * @param {string} [properties.fullStorySession] - full story session\n   * @param {string} [properties.flowName] - flow name\n   * @param {string} [properties.documentName] - The name of the clicked document name.\n   * @param {string} [properties.category] - category\n   * @param {string} [properties.businessEntityUuid] - business entity uuid\n   * @param {string} [properties.activeFlow] - active flow\n   * @param {string} [properties.action] - action\n   * @param {string} [properties.visitUuid] - This is the unique visit number for each visit. Is sent as a fallback in case we cannot identify a user_uuid in server events. It can still be used to identify a user.\n   *\n   * @see {@link https://www.avo.app/schemas/5VWPHSaRaWcJAxzqYkj4/branches/QnzDuOBGn/events/2Tt5t6WktA}\n   */\n  function click(properties) {\n    properties = properties || {};\n    if (__AVO_DEV__ || __WEB_DEBUGGER__) {\n      // assert properties\n      var messages = [];\n      messages = messages.concat(assertOptionalClickLocation(properties.clickLocation));\n      messages = messages.concat(assertOptionalClickText(properties.clickText));\n      messages = messages.concat(assertOptionalClickType(properties.clickType));\n      messages = messages.concat(assertOptionalClickUrl(properties.clickUrl));\n      messages = messages.concat(assertOptionalCreditChange(properties.creditChange));\n      messages = messages.concat(assertOptionalCreditRange(properties.creditRange));\n      messages = messages.concat(assertDeviceType(properties.deviceType));\n      messages = messages.concat(assertOptionalDocumentCategory(properties.documentCategory));\n      messages = messages.concat(assertOptionalDocumentTitle(properties.documentTitle));\n      messages = messages.concat(assertOptionalFactorType(properties.factorType));\n      messages = messages.concat(assertOptionalFromPageNum(properties.fromPageNum));\n      messages = messages.concat(assertOptionalHasDocumentUrl(properties.hasDocumentUrl));\n      messages = messages.concat(assertOptionalNumFavorites(properties.numFavorites));\n      messages = messages.concat(assertOptionalPagePosition(properties.pagePosition));\n      messages = messages.concat(assertOptionalPageSubSection(properties.pageSubSection));\n      messages = messages.concat(assertOptionalPageTitle(properties.pageTitle));\n      messages = messages.concat(assertOptionalPageType(properties.pageType));\n      messages = messages.concat(assertOptionalPaginationClicks(properties.paginationClicks));\n      messages = messages.concat(assertRelease(properties.release));\n      messages = messages.concat(assertOptionalSearchDocumentName(properties.searchDocumentName));\n      messages = messages.concat(assertOptionalToPageNum(properties.toPageNum));\n      messages = messages.concat(assertOptionalUrl(properties.url));\n      messages = messages.concat(assertZenbusinessEnv(properties.zenbusinessEnv));\n      messages = messages.concat(assertOptionalPageSection(properties.pageSection));\n      messages = messages.concat(assertAccountUuid(properties.accountUuid));\n      messages = messages.concat(assertOptionalUtterance(properties.utterance));\n      messages = messages.concat(assertOptionalTemplateName(properties.templateName));\n      messages = messages.concat(assertUserUuid(properties.userUuid));\n      messages = messages.concat(assertOptionalTestingIdVariant(properties.testingIdVariant));\n      messages = messages.concat(assertOptionalTemplateId(properties.templateId));\n      messages = messages.concat(assertOptionalSessionUuid(properties.sessionUuid));\n      messages = messages.concat(assertOptionalSelectedPlan(properties.selectedPlan));\n      messages = messages.concat(assertOptionalPlanPeriod(properties.planPeriod));\n      messages = messages.concat(assertOptionalPathName(properties.pathName));\n      messages = messages.concat(assertOptionalParameter(properties.parameter));\n      messages = messages.concat(assertOptionalNextUrl(properties.nextUrl));\n      messages = messages.concat(assertOptionalMessageUuid(properties.messageUuid));\n      messages = messages.concat(assertOptionalInputValue(properties.inputValue));\n      messages = messages.concat(assertOptionalFullStorySession(properties.fullStorySession));\n      messages = messages.concat(assertOptionalFlowName(properties.flowName));\n      messages = messages.concat(assertOptionalDocumentName(properties.documentName));\n      messages = messages.concat(assertOptionalCategory(properties.category));\n      messages = messages.concat(assertOptionalBusinessEntityUuid(properties.businessEntityUuid));\n      messages = messages.concat(assertOptionalActiveFlow(properties.activeFlow));\n      messages = messages.concat(assertOptionalAction(properties.action));\n      messages = messages.concat(assertOptionalVisitUuid(properties.visitUuid));\n      messages = messages.concat(AvoAssert.assertNoAdditionalProperties(\"click\", Object.keys(properties), [\n        \"clickLocation\",\n        \"clickText\",\n        \"clickType\",\n        \"clickUrl\",\n        \"creditChange\",\n        \"creditRange\",\n        \"deviceType\",\n        \"documentCategory\",\n        \"documentTitle\",\n        \"factorType\",\n        \"fromPageNum\",\n        \"hasDocumentUrl\",\n        \"numFavorites\",\n        \"pagePosition\",\n        \"pageSubSection\",\n        \"pageTitle\",\n        \"pageType\",\n        \"paginationClicks\",\n        \"release\",\n        \"searchDocumentName\",\n        \"toPageNum\",\n        \"url\",\n        \"zenbusinessEnv\",\n        \"pageSection\",\n        \"accountUuid\",\n        \"utterance\",\n        \"templateName\",\n        \"userUuid\",\n        \"testingIdVariant\",\n        \"templateId\",\n        \"sessionUuid\",\n        \"selectedPlan\",\n        \"planPeriod\",\n        \"pathName\",\n        \"parameter\",\n        \"nextUrl\",\n        \"messageUuid\",\n        \"inputValue\",\n        \"fullStorySession\",\n        \"flowName\",\n        \"documentName\",\n        \"category\",\n        \"businessEntityUuid\",\n        \"activeFlow\",\n        \"action\",\n        \"visitUuid\"\n      ]));\n      // debug console in Avo\n      if (!__AVO_NOOP__) {\n        _avo_invoke(__AVO_ENV__, \"2Tt5t6WktA\", \"fccb5de782c3e60882c2b1e1c7c3f5d1ec46147e4cbfa50d680a0a385cd7552e\", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');\n      }\n\n      InternalAvoLogger.logEventSent(\"click\", {\n        \"click_location\": properties.clickLocation,\n        \"click_text\": properties.clickText,\n        \"click_type\": properties.clickType,\n        \"click_url\": properties.clickUrl,\n        \"credit_change\": properties.creditChange,\n        \"credit_range\": properties.creditRange,\n        \"device_type\": properties.deviceType,\n        \"document_category\": properties.documentCategory,\n        \"document_title\": properties.documentTitle,\n        \"factor_type\": properties.factorType,\n        \"from_page_num\": properties.fromPageNum,\n        \"has_document_url\": properties.hasDocumentUrl,\n        \"num_favorites\": properties.numFavorites,\n        \"page_position\": properties.pagePosition,\n        \"page_sub_section\": properties.pageSubSection,\n        \"page_title\": properties.pageTitle,\n        \"page_type\": properties.pageType,\n        \"pagination_clicks\": properties.paginationClicks,\n        \"release\": properties.release,\n        \"search_document_name\": properties.searchDocumentName,\n        \"to_page_num\": properties.toPageNum,\n        \"url\": properties.url,\n        \"zenbusiness_env\": properties.zenbusinessEnv,\n        \"page_section\": properties.pageSection,\n        \"account_uuid\": properties.accountUuid,\n        \"utterance\": properties.utterance,\n        \"template_name\": properties.templateName,\n        \"user_uuid\": properties.userUuid,\n        \"testing_id_variant\": properties.testingIdVariant,\n        \"template_id\": properties.templateId,\n        \"session_uuid\": properties.sessionUuid,\n        \"selected_plan\": properties.selectedPlan,\n        \"plan_period\": properties.planPeriod,\n        \"path_name\": properties.pathName,\n        \"parameter\": properties.parameter,\n        \"next_url\": properties.nextUrl,\n        \"message_uuid\": properties.messageUuid,\n        \"input_value\": properties.inputValue,\n        \"full_story_session\": properties.fullStorySession,\n        \"flow_name\": properties.flowName,\n        \"document_name\": properties.documentName,\n        \"category\": properties.category,\n        \"business_entity_uuid\": properties.businessEntityUuid,\n        \"active_flow\": properties.activeFlow,\n        \"action\": properties.action,\n        \"visit_uuid\": properties.visitUuid,\n        }, {}, {});\n      if (__WEB_DEBUGGER__) {\n        // Avo web debugger\n        _avo_debugger_log(\"2Tt5t6WktA\", \"click\", messages, [\n        {id: \"-wyQAHpsVw\", name: \"input_value\", value: properties.inputValue},\n        {id: \"1s53O8Qd0\", name: \"factor_type\", value: properties.factorType},\n        {id: \"25PWSeLu4\", name: \"account_uuid\", value: properties.accountUuid},\n        {id: \"3B3rhVOIr\", name: \"zenbusiness_env\", value: properties.zenbusinessEnv},\n        {id: \"3dB3qQvbL\", name: \"device_type\", value: properties.deviceType},\n        {id: \"5aFha6_70\", name: \"to_page_num\", value: properties.toPageNum},\n        {id: \"8Okppe_QB4\", name: \"selected_plan\", value: properties.selectedPlan},\n        {id: \"ArlIfG7be\", name: \"click_type\", value: properties.clickType},\n        {id: \"BC0Fdhks1O\", name: \"document_category\", value: properties.documentCategory},\n        {id: \"FJK1ZA6Mb\", name: \"utterance\", value: properties.utterance},\n        {id: \"FWI3g8LhZ\", name: \"from_page_num\", value: properties.fromPageNum},\n        {id: \"HN4iwjc4S\", name: \"click_location\", value: properties.clickLocation},\n        {id: \"La5lkLgNx2\", name: \"business_entity_uuid\", value: properties.businessEntityUuid},\n        {id: \"M5iw0xib4\", name: \"credit_change\", value: properties.creditChange},\n        {id: \"MhUqtb01Uc\", name: \"category\", value: properties.category},\n        {id: \"NpsW4Qq8Eq\", name: \"document_title\", value: properties.documentTitle},\n        {id: \"Nu_Wrd1FB\", name: \"session_uuid\", value: properties.sessionUuid},\n        {id: \"RNrWXBBug\", name: \"num_favorites\", value: properties.numFavorites},\n        {id: \"RzsrGs3Vl\", name: \"template_name\", value: properties.templateName},\n        {id: \"TmdMbbgTt\", name: \"search_document_name\", value: properties.searchDocumentName},\n        {id: \"V226KPCO2\", name: \"page_position\", value: properties.pagePosition},\n        {id: \"VnX_zDLmnh\", name: \"flow_name\", value: properties.flowName},\n        {id: \"Y2nNypafT\", name: \"action\", value: properties.action},\n        {id: \"bdh7TElYQF\", name: \"parameter\", value: properties.parameter},\n        {id: \"bfBR50Pu8\", name: \"pagination_clicks\", value: properties.paginationClicks},\n        {id: \"byNhEwVOUr\", name: \"template_id\", value: properties.templateId},\n        {id: \"eKAICvpAV\", name: \"click_text\", value: properties.clickText},\n        {id: \"emDUoaaaty\", name: \"full_story_session\", value: properties.fullStorySession},\n        {id: \"iEF-1NRNp\", name: \"url\", value: properties.url},\n        {id: \"jcYSQPSAv\", name: \"credit_range\", value: properties.creditRange},\n        {id: \"l8x9M6i2L\", name: \"page_type\", value: properties.pageType},\n        {id: \"lswy0DGwZ\", name: \"has_document_url\", value: properties.hasDocumentUrl},\n        {id: \"obb8NlbRTt\", name: \"next_url\", value: properties.nextUrl},\n        {id: \"pH5hjETqtf\", name: \"active_flow\", value: properties.activeFlow},\n        {id: \"pXgHHzhta\", name: \"visit_uuid\", value: properties.visitUuid},\n        {id: \"rGUK6jX2pk\", name: \"user_uuid\", value: properties.userUuid},\n        {id: \"rn4FydBzW\", name: \"click_url\", value: properties.clickUrl},\n        {id: \"sEYAhRvTuY\", name: \"message_uuid\", value: properties.messageUuid},\n        {id: \"sbnycMvmf\", name: \"page_section\", value: properties.pageSection},\n        {id: \"tWhNzP52Pf\", name: \"testing_id_variant\", value: properties.testingIdVariant},\n        {id: \"twUaagBze\", name: \"page_sub_section\", value: properties.pageSubSection},\n        {id: \"xasJb-lV_\", name: \"release\", value: properties.release},\n        {id: \"zCUXYKmhzO\", name: \"path_name\", value: properties.pathName},\n        {id: \"zXcOcwRO7q\", name: \"document_name\", value: properties.documentName},\n        {id: \"zbH67lXps\", name: \"page_title\", value: properties.pageTitle},\n        {id: \"ztAstGSsVe\", name: \"plan_period\", value: properties.planPeriod},\n        ], [], []);\n      }\n      if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\n        // throw exception if messages is not empty\n        if (messages.length !== 0) {\n          throw new Error(\"Error sending event 'click': \" + messages[0].message)\n        }\n      } else {\n        messages.forEach(function(m) {\n          console[__REPORT_FAILURE_AS__ || 'error'](\"[avo] \" + m.message);\n        });\n      }\n    }\n\n    if (!__AVO_NOOP__) {\n      if (__INSPECTOR__ != null) {\n        __INSPECTOR__._avoFunctionTrackSchemaFromEvent(\"click\", {\n          \"click_location\": properties.clickLocation,\n          \"click_text\": properties.clickText,\n          \"click_type\": properties.clickType,\n          \"click_url\": properties.clickUrl,\n          \"credit_change\": properties.creditChange,\n          \"credit_range\": properties.creditRange,\n          \"device_type\": properties.deviceType,\n          \"document_category\": properties.documentCategory,\n          \"document_title\": properties.documentTitle,\n          \"factor_type\": properties.factorType,\n          \"from_page_num\": properties.fromPageNum,\n          \"has_document_url\": properties.hasDocumentUrl,\n          \"num_favorites\": properties.numFavorites,\n          \"page_position\": properties.pagePosition,\n          \"page_sub_section\": properties.pageSubSection,\n          \"page_title\": properties.pageTitle,\n          \"page_type\": properties.pageType,\n          \"pagination_clicks\": properties.paginationClicks,\n          \"release\": properties.release,\n          \"search_document_name\": properties.searchDocumentName,\n          \"to_page_num\": properties.toPageNum,\n          \"url\": properties.url,\n          \"zenbusiness_env\": properties.zenbusinessEnv,\n          \"page_section\": properties.pageSection,\n          \"account_uuid\": properties.accountUuid,\n          \"utterance\": properties.utterance,\n          \"template_name\": properties.templateName,\n          \"user_uuid\": properties.userUuid,\n          \"testing_id_variant\": properties.testingIdVariant,\n          \"template_id\": properties.templateId,\n          \"session_uuid\": properties.sessionUuid,\n          \"selected_plan\": properties.selectedPlan,\n          \"plan_period\": properties.planPeriod,\n          \"path_name\": properties.pathName,\n          \"parameter\": properties.parameter,\n          \"next_url\": properties.nextUrl,\n          \"message_uuid\": properties.messageUuid,\n          \"input_value\": properties.inputValue,\n          \"full_story_session\": properties.fullStorySession,\n          \"flow_name\": properties.flowName,\n          \"document_name\": properties.documentName,\n          \"category\": properties.category,\n          \"business_entity_uuid\": properties.businessEntityUuid,\n          \"active_flow\": properties.activeFlow,\n          \"action\": properties.action,\n          \"visit_uuid\": properties.visitUuid,\n          }, \"2Tt5t6WktA\", \"fccb5de782c3e60882c2b1e1c7c3f5d1ec46147e4cbfa50d680a0a385cd7552e\");\n      }\n      // destination RudderStackLegacyEvents\n      RudderStackLegacyEvents.logEvent(\"click\", {\n      \"clickLocation\": properties.clickLocation,\n      \"clickText\": properties.clickText,\n      \"clickType\": properties.clickType,\n      \"clickUrl\": properties.clickUrl,\n      \"credit_change\": properties.creditChange,\n      \"credit_range\": properties.creditRange,\n      \"deviceType\": properties.deviceType,\n      \"documentCategory\": properties.documentCategory,\n      \"document_title\": properties.documentTitle,\n      \"factor_type\": properties.factorType,\n      \"from_page_num\": properties.fromPageNum,\n      \"hasDocumentUrl\": properties.hasDocumentUrl,\n      \"numFavorites\": properties.numFavorites,\n      \"pagePosition\": properties.pagePosition,\n      \"pageSubSection\": properties.pageSubSection,\n      \"pageTitle\": properties.pageTitle,\n      \"pageType\": properties.pageType,\n      \"pagination_clicks\": properties.paginationClicks,\n      \"release\": properties.release,\n      \"searchDocumentName\": properties.searchDocumentName,\n      \"to_page_num\": properties.toPageNum,\n      \"url\": properties.url,\n      \"zenbusinessEnv\": properties.zenbusinessEnv,\n      \"pageSection\": properties.pageSection,\n      \"accountUUID\": properties.accountUuid,\n      \"utterance\": properties.utterance,\n      \"templateName\": properties.templateName,\n      \"userUUID\": properties.userUuid,\n      \"testing_id_variant\": properties.testingIdVariant,\n      \"templateId\": properties.templateId,\n      \"sessionUuid\": properties.sessionUuid,\n      \"selected plan\": properties.selectedPlan,\n      \"plan period\": properties.planPeriod,\n      \"pathname\": properties.pathName,\n      \"parameter\": properties.parameter,\n      \"nextUrl\": properties.nextUrl,\n      \"messageUuid\": properties.messageUuid,\n      \"inputValue\": properties.inputValue,\n      \"FullStory Session\": properties.fullStorySession,\n      \"flowName\": properties.flowName,\n      \"documentName\": properties.documentName,\n      \"category\": properties.category,\n      \"businessEntityUuid\": properties.businessEntityUuid,\n      \"activeFlow\": properties.activeFlow,\n      \"action\": properties.action,\n      \"visitUUID\": properties.visitUuid,\n      });\n    } else {\n      // do nothing\n    }\n  }\n\n  /**\n   * dashboard login: zendash user login event\n   *\n   * @param {object} properties - the properties associatied with this event\n   * @param {string} properties.userId_ - The value used to identify the user. Make sure it's a unique sequence of characters used to identify the user.\n   * @param {string} [properties.pageTitle] - Title of page\n   * @param {string} [properties.pageType] - Type of page the click is coming from\n   * @param {string} properties.deviceType - Device the user accessed zen from\n   * @param {string} properties.zenbusinessEnv - zenbusiness environment the event is coming from\n   * @param {string} properties.release - relese number\n   * @param {string} properties.url - This is the url for each event.\n   * @param {string} properties.mobileDeviceType - mobile device the event comes from\n   * @param {string} [properties.fullStorySession] - full story session\n   * @param {string} properties.accountUuid - This is the unique account ID\n   * @param {string} [properties.visitUuid] - This is the unique visit number for each visit. Is sent as a fallback in case we cannot identify a user_uuid in server events. It can still be used to identify a user.\n   *\n   * @see {@link https://www.avo.app/schemas/5VWPHSaRaWcJAxzqYkj4/branches/QnzDuOBGn/events/LAs2z-PsG1}\n   */\n  function dashboardLogin(properties) {\n    properties = properties || {};\n    if (__AVO_DEV__ || __WEB_DEBUGGER__) {\n      // assert properties\n      var messages = [];\n      messages = messages.concat(assertUserId_(properties.userId_));\n      messages = messages.concat(assertOptionalPageTitle(properties.pageTitle));\n      messages = messages.concat(assertOptionalPageType(properties.pageType));\n      messages = messages.concat(assertDeviceType(properties.deviceType));\n      messages = messages.concat(assertZenbusinessEnv(properties.zenbusinessEnv));\n      messages = messages.concat(assertRelease(properties.release));\n      messages = messages.concat(assertUrl(properties.url));\n      messages = messages.concat(assertMobileDeviceType(properties.mobileDeviceType));\n      messages = messages.concat(assertOptionalFullStorySession(properties.fullStorySession));\n      messages = messages.concat(assertAccountUuid(properties.accountUuid));\n      messages = messages.concat(assertOptionalVisitUuid(properties.visitUuid));\n      messages = messages.concat(AvoAssert.assertNoAdditionalProperties(\"dashboard login\", Object.keys(properties), [\n        \"userId_\",\n        \"pageTitle\",\n        \"pageType\",\n        \"deviceType\",\n        \"zenbusinessEnv\",\n        \"release\",\n        \"url\",\n        \"mobileDeviceType\",\n        \"fullStorySession\",\n        \"accountUuid\",\n        \"visitUuid\"\n      ]));\n      // debug console in Avo\n      if (!__AVO_NOOP__) {\n        _avo_invoke(__AVO_ENV__, \"LAs2z-PsG1\", \"0889297942f26b6d520b6325553c4b468d82a7729794718c0537927b6de12299\", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');\n      }\n\n      InternalAvoLogger.logEventSent(\"dashboard login\", {\n        \"page_title\": properties.pageTitle,\n        \"page_type\": properties.pageType,\n        \"device_type\": properties.deviceType,\n        \"zenbusiness_env\": properties.zenbusinessEnv,\n        \"release\": properties.release,\n        \"url\": properties.url,\n        \"mobile_device_type\": properties.mobileDeviceType,\n        \"full_story_session\": properties.fullStorySession,\n        \"account_uuid\": properties.accountUuid,\n        \"visit_uuid\": properties.visitUuid,\n        }, {}, {});\n      if (__WEB_DEBUGGER__) {\n        // Avo web debugger\n        _avo_debugger_log(\"LAs2z-PsG1\", \"dashboard login\", messages, [\n        {id: \"25PWSeLu4\", name: \"account_uuid\", value: properties.accountUuid},\n        {id: \"3B3rhVOIr\", name: \"zenbusiness_env\", value: properties.zenbusinessEnv},\n        {id: \"3dB3qQvbL\", name: \"device_type\", value: properties.deviceType},\n        {id: \"Mtpd-5MgT\", name: \"mobile_device_type\", value: properties.mobileDeviceType},\n        {id: \"emDUoaaaty\", name: \"full_story_session\", value: properties.fullStorySession},\n        {id: \"iEF-1NRNp\", name: \"url\", value: properties.url},\n        {id: \"l8x9M6i2L\", name: \"page_type\", value: properties.pageType},\n        {id: \"pXgHHzhta\", name: \"visit_uuid\", value: properties.visitUuid},\n        {id: \"xasJb-lV_\", name: \"release\", value: properties.release},\n        {id: \"zbH67lXps\", name: \"page_title\", value: properties.pageTitle},\n        ], [], []);\n      }\n      if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\n        // throw exception if messages is not empty\n        if (messages.length !== 0) {\n          throw new Error(\"Error sending event 'dashboard login': \" + messages[0].message)\n        }\n      } else {\n        messages.forEach(function(m) {\n          console[__REPORT_FAILURE_AS__ || 'error'](\"[avo] \" + m.message);\n        });\n      }\n    }\n\n    if (!__AVO_NOOP__) {\n      if (__INSPECTOR__ != null) {\n        __INSPECTOR__._avoFunctionTrackSchemaFromEvent(\"dashboard login\", {\n          \"page_title\": properties.pageTitle,\n          \"page_type\": properties.pageType,\n          \"device_type\": properties.deviceType,\n          \"zenbusiness_env\": properties.zenbusinessEnv,\n          \"release\": properties.release,\n          \"url\": properties.url,\n          \"mobile_device_type\": properties.mobileDeviceType,\n          \"full_story_session\": properties.fullStorySession,\n          \"account_uuid\": properties.accountUuid,\n          \"visit_uuid\": properties.visitUuid,\n          }, \"LAs2z-PsG1\", \"0889297942f26b6d520b6325553c4b468d82a7729794718c0537927b6de12299\");\n      }\n      // destination RudderStackLegacyEvents\n      RudderStackLegacyEvents.identify(properties.userId_);\n      RudderStackLegacyEvents.logEvent(\"dashboard login\", {\n      \"pageTitle\": properties.pageTitle,\n      \"pageType\": properties.pageType,\n      \"deviceType\": properties.deviceType,\n      \"zenbusinessEnv\": properties.zenbusinessEnv,\n      \"release\": properties.release,\n      \"url\": properties.url,\n      \"mobile_device_type\": properties.mobileDeviceType,\n      \"FullStory Session\": properties.fullStorySession,\n      \"accountUUID\": properties.accountUuid,\n      \"visitUUID\": properties.visitUuid,\n      });\n    } else {\n      // do nothing\n    }\n  }\n\n  /**\n   * view: zendash view page event\n   *\n   * @param {object} properties - the properties associatied with this event\n   * @param {string} properties.zenbusinessEnv - zenbusiness environment the event is coming from\n   * @param {string} properties.release - relese number\n   * @param {string} properties.pageType - Type of page the click is coming from\n   * @param {string} properties.url - This is the url for each event.\n   * @param {string} properties.pageTitle - Title of page\n   * @param {string} properties.deviceType - Device the user accessed zen from\n   * @param {string} [properties.pageSection] - Section in page\n   * @param {string} [properties.screenName] - The name of the screen that triggers the event.\n   * @param {string} [properties.formationStatus] - The formation status the event is tied to.\n   * @param {string} [properties.component] - Property that describes the high-level component that the current event is happening in.\n   * @param {string} [properties.userUuid] - userUUID\n   * @param {string} [properties.testingIdVariant] - testing id variant\n   * @param {string} [properties.selectedPlan] - Plan selected\n   * @param {string} [properties.planPeriod] - no description\n   * @param {string} [properties.pageSubSection] - Sub-section of page\n   * @param {string} [properties.fullStorySession] - full story session\n   * @param {string} [properties.accountUuid] - This is the unique account ID\n   * @param {string} [properties.activeFlow] - active flow\n   * @param {string} [properties.msclkid] - no description\n   * @param {string} [properties.isLoggedIn] - no description\n   * @param {string} [properties.gclid] - no description\n   * @param {string} [properties.visitUuid] - This is the unique visit number for each visit. Is sent as a fallback in case we cannot identify a user_uuid in server events. It can still be used to identify a user.\n   *\n   * @see {@link https://www.avo.app/schemas/5VWPHSaRaWcJAxzqYkj4/branches/QnzDuOBGn/events/r-NshX0Sxl}\n   */\n  function view(properties) {\n    properties = properties || {};\n    if (__AVO_DEV__ || __WEB_DEBUGGER__) {\n      // assert properties\n      var messages = [];\n      messages = messages.concat(assertZenbusinessEnv(properties.zenbusinessEnv));\n      messages = messages.concat(assertRelease(properties.release));\n      messages = messages.concat(assertPageType(properties.pageType));\n      messages = messages.concat(assertUrl(properties.url));\n      messages = messages.concat(assertPageTitle(properties.pageTitle));\n      messages = messages.concat(assertDeviceType(properties.deviceType));\n      messages = messages.concat(assertOptionalPageSection(properties.pageSection));\n      messages = messages.concat(assertOptionalScreenName(properties.screenName));\n      messages = messages.concat(assertOptionalFormationStatus(properties.formationStatus));\n      messages = messages.concat(assertOptionalComponent(properties.component));\n      messages = messages.concat(assertOptionalUserUuid(properties.userUuid));\n      messages = messages.concat(assertOptionalTestingIdVariant(properties.testingIdVariant));\n      messages = messages.concat(assertOptionalSelectedPlan(properties.selectedPlan));\n      messages = messages.concat(assertOptionalPlanPeriod(properties.planPeriod));\n      messages = messages.concat(assertOptionalPageSubSection(properties.pageSubSection));\n      messages = messages.concat(assertOptionalFullStorySession(properties.fullStorySession));\n      messages = messages.concat(assertOptionalAccountUuid(properties.accountUuid));\n      messages = messages.concat(assertOptionalActiveFlow(properties.activeFlow));\n      messages = messages.concat(assertOptionalMsclkid(properties.msclkid));\n      messages = messages.concat(assertOptionalIsLoggedIn(properties.isLoggedIn));\n      messages = messages.concat(assertOptionalGclid(properties.gclid));\n      messages = messages.concat(assertOptionalVisitUuid(properties.visitUuid));\n      messages = messages.concat(AvoAssert.assertNoAdditionalProperties(\"view\", Object.keys(properties), [\n        \"zenbusinessEnv\",\n        \"release\",\n        \"pageType\",\n        \"url\",\n        \"pageTitle\",\n        \"deviceType\",\n        \"pageSection\",\n        \"screenName\",\n        \"formationStatus\",\n        \"component\",\n        \"userUuid\",\n        \"testingIdVariant\",\n        \"selectedPlan\",\n        \"planPeriod\",\n        \"pageSubSection\",\n        \"fullStorySession\",\n        \"accountUuid\",\n        \"activeFlow\",\n        \"msclkid\",\n        \"isLoggedIn\",\n        \"gclid\",\n        \"visitUuid\"\n      ]));\n      // debug console in Avo\n      if (!__AVO_NOOP__) {\n        _avo_invoke(__AVO_ENV__, \"r-NshX0Sxl\", \"0a8e5cb055f2a1c40cc88cc1022ce101224ebc4194ec6089e9c2f65f7cca4249\", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');\n      }\n\n      InternalAvoLogger.logEventSent(\"view\", {\n        \"zenbusiness_env\": properties.zenbusinessEnv,\n        \"release\": properties.release,\n        \"page_type\": properties.pageType,\n        \"url\": properties.url,\n        \"page_title\": properties.pageTitle,\n        \"device_type\": properties.deviceType,\n        \"page_section\": properties.pageSection,\n        \"screen_name\": properties.screenName,\n        \"formation_status\": properties.formationStatus,\n        \"component\": properties.component,\n        \"user_uuid\": properties.userUuid,\n        \"testing_id_variant\": properties.testingIdVariant,\n        \"selected_plan\": properties.selectedPlan,\n        \"plan_period\": properties.planPeriod,\n        \"page_sub_section\": properties.pageSubSection,\n        \"full_story_session\": properties.fullStorySession,\n        \"account_uuid\": properties.accountUuid,\n        \"active_flow\": properties.activeFlow,\n        \"msclkid\": properties.msclkid,\n        \"is_logged_in\": properties.isLoggedIn,\n        \"gclid\": properties.gclid,\n        \"visit_uuid\": properties.visitUuid,\n        }, {}, {});\n      if (__WEB_DEBUGGER__) {\n        // Avo web debugger\n        _avo_debugger_log(\"r-NshX0Sxl\", \"view\", messages, [\n        {id: \"25PWSeLu4\", name: \"account_uuid\", value: properties.accountUuid},\n        {id: \"3B3rhVOIr\", name: \"zenbusiness_env\", value: properties.zenbusinessEnv},\n        {id: \"3dB3qQvbL\", name: \"device_type\", value: properties.deviceType},\n        {id: \"7-hb0S6NBb\", name: \"screen_name\", value: properties.screenName},\n        {id: \"8Okppe_QB4\", name: \"selected_plan\", value: properties.selectedPlan},\n        {id: \"AzsAl9ftG\", name: \"gclid\", value: properties.gclid},\n        {id: \"DRTjo94zF\", name: \"is_logged_in\", value: properties.isLoggedIn},\n        {id: \"SvBbqjSdEZ\", name: \"formation_status\", value: properties.formationStatus},\n        {id: \"cMzkv_Qm1Q\", name: \"component\", value: properties.component},\n        {id: \"emDUoaaaty\", name: \"full_story_session\", value: properties.fullStorySession},\n        {id: \"iEF-1NRNp\", name: \"url\", value: properties.url},\n        {id: \"l8x9M6i2L\", name: \"page_type\", value: properties.pageType},\n        {id: \"pH5hjETqtf\", name: \"active_flow\", value: properties.activeFlow},\n        {id: \"pXgHHzhta\", name: \"visit_uuid\", value: properties.visitUuid},\n        {id: \"rGUK6jX2pk\", name: \"user_uuid\", value: properties.userUuid},\n        {id: \"sbnycMvmf\", name: \"page_section\", value: properties.pageSection},\n        {id: \"tWhNzP52Pf\", name: \"testing_id_variant\", value: properties.testingIdVariant},\n        {id: \"twUaagBze\", name: \"page_sub_section\", value: properties.pageSubSection},\n        {id: \"xasJb-lV_\", name: \"release\", value: properties.release},\n        {id: \"yCnvPbl0U\", name: \"msclkid\", value: properties.msclkid},\n        {id: \"zbH67lXps\", name: \"page_title\", value: properties.pageTitle},\n        {id: \"ztAstGSsVe\", name: \"plan_period\", value: properties.planPeriod},\n        ], [], []);\n      }\n      if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\n        // throw exception if messages is not empty\n        if (messages.length !== 0) {\n          throw new Error(\"Error sending event 'view': \" + messages[0].message)\n        }\n      } else {\n        messages.forEach(function(m) {\n          console[__REPORT_FAILURE_AS__ || 'error'](\"[avo] \" + m.message);\n        });\n      }\n    }\n\n    if (!__AVO_NOOP__) {\n      if (__INSPECTOR__ != null) {\n        __INSPECTOR__._avoFunctionTrackSchemaFromEvent(\"view\", {\n          \"zenbusiness_env\": properties.zenbusinessEnv,\n          \"release\": properties.release,\n          \"page_type\": properties.pageType,\n          \"url\": properties.url,\n          \"page_title\": properties.pageTitle,\n          \"device_type\": properties.deviceType,\n          \"page_section\": properties.pageSection,\n          \"screen_name\": properties.screenName,\n          \"formation_status\": properties.formationStatus,\n          \"component\": properties.component,\n          \"user_uuid\": properties.userUuid,\n          \"testing_id_variant\": properties.testingIdVariant,\n          \"selected_plan\": properties.selectedPlan,\n          \"plan_period\": properties.planPeriod,\n          \"page_sub_section\": properties.pageSubSection,\n          \"full_story_session\": properties.fullStorySession,\n          \"account_uuid\": properties.accountUuid,\n          \"active_flow\": properties.activeFlow,\n          \"msclkid\": properties.msclkid,\n          \"is_logged_in\": properties.isLoggedIn,\n          \"gclid\": properties.gclid,\n          \"visit_uuid\": properties.visitUuid,\n          }, \"r-NshX0Sxl\", \"0a8e5cb055f2a1c40cc88cc1022ce101224ebc4194ec6089e9c2f65f7cca4249\");\n      }\n      // destination RudderStackLegacyEvents\n      RudderStackLegacyEvents.logEvent(\"view\", {\n      \"zenbusinessEnv\": properties.zenbusinessEnv,\n      \"release\": properties.release,\n      \"pageType\": properties.pageType,\n      \"url\": properties.url,\n      \"pageTitle\": properties.pageTitle,\n      \"deviceType\": properties.deviceType,\n      \"pageSection\": properties.pageSection,\n      \"screen_name\": properties.screenName,\n      \"formation_status\": properties.formationStatus,\n      \"component\": properties.component,\n      \"userUUID\": properties.userUuid,\n      \"testing_id_variant\": properties.testingIdVariant,\n      \"selected plan\": properties.selectedPlan,\n      \"plan period\": properties.planPeriod,\n      \"pageSubSection\": properties.pageSubSection,\n      \"FullStory Session\": properties.fullStorySession,\n      \"accountUUID\": properties.accountUuid,\n      \"activeFlow\": properties.activeFlow,\n      \"msclkid\": properties.msclkid,\n      \"is_logged_in\": properties.isLoggedIn,\n      \"gclid\": properties.gclid,\n      \"visitUUID\": properties.visitUuid,\n      });\n    } else {\n      // do nothing\n    }\n  }\n\n  /**\n   * purchase_completed:  zenregv1 purchase event for mixpanel\n   *\n   * @param {object} properties - the properties associatied with this event\n   * @param {string} properties.zenbusinessEnv - zenbusiness environment the event is coming from\n   * @param {string} properties.release - relese number\n   * @param {string} properties.pageType - Type of page the click is coming from\n   * @param {string} properties.url - This is the url for each event.\n   * @param {string} properties.pageTitle - Title of page\n   * @param {string} properties.deviceType - Device the user accessed zen from\n   * @param {string} properties.pageSection - Section in page\n   * @param {string} properties.userUuid - userUUID\n   * @param {string} properties.accountUuid - This is the unique account ID\n   * @param {string} properties.msclkid - no description\n   * @param {string} properties.gclid - no description\n   * @param {string} [properties.visitUuid] - This is the unique visit number for each visit. Is sent as a fallback in case we cannot identify a user_uuid in server events. It can still be used to identify a user.\n   * @param {string} properties.status - Status of the purchase order\n   * @param {string} [properties.totalPrice] - Total value of the purchase\n   * @param {string} properties.product - Purchase product name\n   *\n   * @see {@link https://www.avo.app/schemas/5VWPHSaRaWcJAxzqYkj4/branches/QnzDuOBGn/events/YqZt-iY0Nz}\n   */\n  function purchaseCompleted(properties) {\n    properties = properties || {};\n    if (__AVO_DEV__ || __WEB_DEBUGGER__) {\n      // assert properties\n      var messages = [];\n      messages = messages.concat(assertZenbusinessEnv(properties.zenbusinessEnv));\n      messages = messages.concat(assertRelease(properties.release));\n      messages = messages.concat(assertPageType(properties.pageType));\n      messages = messages.concat(assertUrl(properties.url));\n      messages = messages.concat(assertPageTitle(properties.pageTitle));\n      messages = messages.concat(assertDeviceType(properties.deviceType));\n      messages = messages.concat(assertPageSection(properties.pageSection));\n      messages = messages.concat(assertUserUuid(properties.userUuid));\n      messages = messages.concat(assertAccountUuid(properties.accountUuid));\n      messages = messages.concat(assertMsclkid(properties.msclkid));\n      messages = messages.concat(assertGclid(properties.gclid));\n      messages = messages.concat(assertOptionalVisitUuid(properties.visitUuid));\n      messages = messages.concat(assertStatus(properties.status));\n      messages = messages.concat(assertOptionalTotalPrice(properties.totalPrice));\n      messages = messages.concat(assertProduct(properties.product));\n      messages = messages.concat(AvoAssert.assertNoAdditionalProperties(\"purchase_completed\", Object.keys(properties), [\n        \"zenbusinessEnv\",\n        \"release\",\n        \"pageType\",\n        \"url\",\n        \"pageTitle\",\n        \"deviceType\",\n        \"pageSection\",\n        \"userUuid\",\n        \"accountUuid\",\n        \"msclkid\",\n        \"gclid\",\n        \"visitUuid\",\n        \"status\",\n        \"totalPrice\",\n        \"product\"\n      ]));\n      // debug console in Avo\n      if (!__AVO_NOOP__) {\n        _avo_invoke(__AVO_ENV__, \"YqZt-iY0Nz\", \"9b26e1796540723546d06d901119824cbd6c7e522023c7930bf5d66b559363f5\", messages.map(function(m) { return Object.assign({}, {tag: m.tag, propertyId: m.propertyId, additionalProperties: m.additionalProperties, actualType: m.actualType}); }), 'event');\n      }\n\n      InternalAvoLogger.logEventSent(\"purchase_completed\", {\n        \"zenbusiness_env\": properties.zenbusinessEnv,\n        \"release\": properties.release,\n        \"page_type\": properties.pageType,\n        \"url\": properties.url,\n        \"page_title\": properties.pageTitle,\n        \"device_type\": properties.deviceType,\n        \"page_section\": properties.pageSection,\n        \"user_uuid\": properties.userUuid,\n        \"account_uuid\": properties.accountUuid,\n        \"msclkid\": properties.msclkid,\n        \"gclid\": properties.gclid,\n        \"visit_uuid\": properties.visitUuid,\n        \"status\": properties.status,\n        \"total_price\": properties.totalPrice,\n        \"product\": properties.product,\n        }, {}, {});\n      if (__WEB_DEBUGGER__) {\n        // Avo web debugger\n        _avo_debugger_log(\"YqZt-iY0Nz\", \"purchase_completed\", messages, [\n        {id: \"25PWSeLu4\", name: \"account_uuid\", value: properties.accountUuid},\n        {id: \"3B3rhVOIr\", name: \"zenbusiness_env\", value: properties.zenbusinessEnv},\n        {id: \"3dB3qQvbL\", name: \"device_type\", value: properties.deviceType},\n        {id: \"AzsAl9ftG\", name: \"gclid\", value: properties.gclid},\n        {id: \"LdTj6C45k\", name: \"product\", value: properties.product},\n        {id: \"Z-o-PEgQJ\", name: \"total_price\", value: properties.totalPrice},\n        {id: \"iEF-1NRNp\", name: \"url\", value: properties.url},\n        {id: \"l8x9M6i2L\", name: \"page_type\", value: properties.pageType},\n        {id: \"pXgHHzhta\", name: \"visit_uuid\", value: properties.visitUuid},\n        {id: \"rGUK6jX2pk\", name: \"user_uuid\", value: properties.userUuid},\n        {id: \"sbnycMvmf\", name: \"page_section\", value: properties.pageSection},\n        {id: \"xasJb-lV_\", name: \"release\", value: properties.release},\n        {id: \"yCnvPbl0U\", name: \"msclkid\", value: properties.msclkid},\n        {id: \"zbH67lXps\", name: \"page_title\", value: properties.pageTitle},\n        {id: \"zknlhOMqY\", name: \"status\", value: properties.status},\n        ], [], []);\n      }\n      if (__AVO_DEV__ && (__STRICT__ === null || __STRICT__)) {\n        // throw exception if messages is not empty\n        if (messages.length !== 0) {\n          throw new Error(\"Error sending event 'purchase_completed': \" + messages[0].message)\n        }\n      } else {\n        messages.forEach(function(m) {\n          console[__REPORT_FAILURE_AS__ || 'error'](\"[avo] \" + m.message);\n        });\n      }\n    }\n\n    if (!__AVO_NOOP__) {\n      if (__INSPECTOR__ != null) {\n        __INSPECTOR__._avoFunctionTrackSchemaFromEvent(\"purchase_completed\", {\n          \"zenbusiness_env\": properties.zenbusinessEnv,\n          \"release\": properties.release,\n          \"page_type\": properties.pageType,\n          \"url\": properties.url,\n          \"page_title\": properties.pageTitle,\n          \"device_type\": properties.deviceType,\n          \"page_section\": properties.pageSection,\n          \"user_uuid\": properties.userUuid,\n          \"account_uuid\": properties.accountUuid,\n          \"msclkid\": properties.msclkid,\n          \"gclid\": properties.gclid,\n          \"visit_uuid\": properties.visitUuid,\n          \"status\": properties.status,\n          \"total_price\": properties.totalPrice,\n          \"product\": properties.product,\n          }, \"YqZt-iY0Nz\", \"9b26e1796540723546d06d901119824cbd6c7e522023c7930bf5d66b559363f5\");\n      }\n      // destination RudderStackLegacyEvents\n      RudderStackLegacyEvents.logEvent(\"purchase_completed\", {\n      \"zenbusinessEnv\": properties.zenbusinessEnv,\n      \"release\": properties.release,\n      \"pageType\": properties.pageType,\n      \"url\": properties.url,\n      \"pageTitle\": properties.pageTitle,\n      \"deviceType\": properties.deviceType,\n      \"pageSection\": properties.pageSection,\n      \"userUUID\": properties.userUuid,\n      \"accountUUID\": properties.accountUuid,\n      \"msclkid\": properties.msclkid,\n      \"gclid\": properties.gclid,\n      \"visit_uuid\": properties.visitUuid,\n      \"status\": properties.status,\n      \"totalPrice\": properties.totalPrice,\n      \"product\": properties.product,\n      });\n    } else {\n      // do nothing\n    }\n  }\n\n  exports.ScreenName = ScreenName;\n  exports.DocumentCategory = DocumentCategory;\n  exports.FormationStatus = FormationStatus;\n  exports.Component = Component;\n  exports.setAvoLogger = setAvoLogger;\n  exports.userIdentified = userIdentified;\n  exports.userUnidentified = userUnidentified;\n  exports.click = click;\n  exports.dashboardLogin = dashboardLogin;\n  exports.view = view;\n  exports.purchaseCompleted = purchaseCompleted;\n  exports.setup_ = setup_;\n  exports.initAvo = initAvo;\n  exports.WebDebuggerPosition = WebDebuggerPosition;\n  exports.avoInspectorApiKey = avoInspectorApiKey;\n}(typeof exports === 'undefined' ? this.Avo = {} : exports));\n\n// AVOMODULEMAP:\"Avo\"\n// AVOEVENTMAP:[\"userIdentified\",\"userUnidentified\",\"click\",\"dashboardLogin\",\"view\",\"purchaseCompleted\"]\n","import * as rudderanalytics from 'rudder-sdk-js';\n\nlet rudderstackApiKey = '';\nlet rudderstackUrl = '';\n\nconst getIntegrations = () => {\n  const option = {\n    'Google Analytics 4': false,\n    'Google Ads': false\n  };\n\n  if (window.localStorage) {\n    const ucAcceptedAll = (window.localStorage.getItem('uc_accepted_all') !== 'false');\n    // const ucAcceptedAllMarketing = (window.localStorage.getItem('uc_accepted_all_marketing') !== 'false');\n    // const ucAcceptedAllFunctional = (window.localStorage.getItem('uc_accepted_all_functional') !== 'false');\n\n    option.All = ucAcceptedAll;\n  }\n\n\n  return option;\n};\n\nexport const setRudderStackApiInfo = (data) => {\n  const { rudderstack } = data;\n  rudderstackApiKey = rudderstack?.apiKey;\n  rudderstackUrl = rudderstack?.url;\n};\n\nconst rudderStackDestination = {\n\n  make(env, apiKey) {\n    rudderanalytics.load(\n      rudderstackApiKey || apiKey,\n      rudderstackUrl\n    );\n    rudderanalytics.ready(() => {\n      console.log('---- RudderStack initialized ----');\n    });\n  },\n\n  logEvent(eventName, eventProperties) {\n    // For any event transformation or PII filtering for different destination please refer to\n    // https://counsl.atlassian.net/wiki/spaces/DATA/pages/3478356324/Rudderstack+GA4+Event+Transformation+and+Filtering\n    rudderanalytics.track(eventName, eventProperties);\n  },\n\n  setUserProperties(userId, userProperties) {\n    rudderanalytics.identify(userId, userProperties, { integrations: getIntegrations() });\n  },\n\n  identify(userId) {\n    rudderanalytics.identify(userId, {}, { integrations: getIntegrations() });\n  },\n\n  unidentify() {\n    rudderanalytics.reset(false);\n  },\n\n  page(pageName, eventProperties) {\n    rudderanalytics.page(pageName, eventProperties);\n  }\n\n};\n\nexport default rudderStackDestination;\n","/* eslint-disable max-statements */\n\nimport _assign from 'lodash/assign';\nimport { getUrlParams } from './UrlUtils';\nimport { getVisitUUID, reinitialize } from './VisitorCookie';\nimport { initializationService } from '../services';\nimport {\n  getPartner,\n  getEntryPointGroup,\n  processPartner,\n  setCampaignmedium,\n  resetPartnerStorage,\n  setCampaignName,\n  setCampaignSource,\n  setPartner\n} from './PartnerUtils';\nimport { setInitialization, initializeData } from '../actions/initialization';\nimport { reportError } from './ReportingUtils';\nimport { resetAllData as resetAllAccountData } from '../actions/register_account';\nimport { resetAllData } from '../actions/registration';\nimport { resetIsFreeAccount } from './FreeAccountUtils';\nimport { isLoggedIn, logout } from './AuthService';\n\nconst convertWebsiteUrl = (overrideFrom) => {\n  let href = overrideFrom || window.location.href;\n\n  if (href.indexOf('://') === -1) {\n    href = `://${href}`; // add :// if needed\n  }\n\n  let website = href.split('://')[1].split('?')[0]; // get rid of arguments\n\n  if (website.indexOf('www') === -1) {\n    website = `www.${website}`; // add www if needed\n  }\n\n  if (website.charAt(website.length - 1) === '/') {\n    website = website.substr(0, website.length - 1);\n  }\n  return website;\n};\n\nconst initialize = (dispatch, updateState = () => {}) => {\n  // Handle proxy usage of `/landing-init`.\n  // Due to iframe security, allow passing of `from` and `referrer` to populate visit.\n  const isProxyUsage = window.location.pathname === '/landing-init',\n    visitProcessed = window.localStorage\n      ? window.localStorage.getItem('visitProcessed') === 'true'\n      : false,\n    cachedUrl = window.localStorage ? window.localStorage.getItem('visitUrl') || '' : '';\n\n  let overrideFrom = null;\n  let overrideReferrer = null;\n  if (isProxyUsage) {\n    const overrideParams = getUrlParams(window.location.search);\n    overrideFrom = overrideParams.from;\n    overrideReferrer = overrideParams.referrer;\n  } else if (!visitProcessed && cachedUrl) {\n    overrideFrom = cachedUrl;\n    window.localStorage.removeItem('visitUrl');\n  }\n\n  const urlParams = getUrlParams(overrideFrom || window.location.href),\n    // cleanoutPath = document.location.pathname,\n    { zlscout = '' } = urlParams;\n\n  if (zlscout) {\n    resetPartnerStorage();\n    resetIsFreeAccount();\n    reinitialize();\n    resetAllData(dispatch);\n    resetAllAccountData(dispatch);\n    if (isLoggedIn()) {\n      logout();\n    } else if (zlscout) {\n      document.location.href = '/';\n    }\n  }\n\n  const visituuid = getVisitUUID(),\n    website = convertWebsiteUrl(overrideFrom),\n    landingUrl = overrideFrom || document.location.href,\n    {\n      partner = '',\n      plan_partner: entryPointGroup = '',\n      source = '',\n      utm_source: utmSource = '',\n      medium = '',\n      utm_medium: utmMedium = '',\n      campaignid: campaign = '',\n      utm_campaign: utmCampaign = '',\n      content = '',\n      utm_content: utmContent = '',\n      keyword = '',\n      utm_term: utmTerm = '',\n      CT = '',\n      mixpaneldistinctid: mixpanelId = '',\n      gclid = '',\n      msclkid = ''\n    } = urlParams,\n    campaignsource = utmSource || source,\n    campaignmedium = utmMedium || medium,\n    campaignname = utmCampaign || campaign,\n    affiliateId = campaignmedium === 'affiliate' ? campaignname : '',\n    bannerId = campaignmedium === 'affiliate' ? utmContent || content : '',\n    campaignterm = utmTerm || keyword,\n    campaigncontent = CT || utmContent || content,\n    mixpanelid = mixpanelId,\n    referrer = overrideReferrer || document.referrer,\n    visitData = {\n      setVisit: false,\n      partner: '',\n      visituuid,\n      website,\n      referrer,\n      landing_url: landingUrl,\n      campaignsource,\n      campaignmedium,\n      campaignname,\n      campaignterm,\n      campaigncontent,\n      mixpanelid,\n      affiliate_id: affiliateId,\n      banner_id: bannerId,\n      gclid,\n      msclkid\n    };\n\n  if (zlscout) {\n    resetAllData(dispatch);\n    resetAllAccountData(dispatch);\n    resetPartnerStorage();\n    resetIsFreeAccount();\n    if (isLoggedIn()) {\n      logout();\n    }\n  }\n  if (campaignmedium) {\n    setCampaignmedium(campaignmedium);\n  }\n  if (campaignsource) {\n    setCampaignSource(campaignsource);\n  }\n  if (campaignname) {\n    setCampaignName(campaignname);\n  }\n\n  // Add a comment to force a rebuild.\n  const forceNewVisit = processPartner(\n    document.referrer ? document.referrer.toLowerCase() : '',\n    partner,\n    entryPointGroup\n  );\n  // set the correct entry point when redirecting to pf flow or truic\n  if (landingUrl.includes('/registration-new/init') && !getPartner()) {\n    setPartner('pf', 'pf', 'pf');\n  }\n  if (landingUrl.includes('/registration-truic/') && !getPartner()) {\n    setPartner('TRUiC', 'TRUiC', 'TRUiC');\n  }\n\n  visitData.partner = getPartner();\n  visitData.plan_partner = getEntryPointGroup();\n  visitData.entry_point_group = getEntryPointGroup();\n  if (affiliateId) {\n    if (window.localStorage) {\n      window.localStorage.setItem('affiliateId', affiliateId);\n      window.localStorage.setItem('bannerId', bannerId);\n    }\n  }\n\n  if (!visitProcessed || forceNewVisit) {\n    if (!visituuid || forceNewVisit) {\n      // If no visituuid or forced, always call\n      _assign(visitData, { setVisit: true });\n    } else if (\n      campaignsource ||\n      campaignmedium ||\n      campaignname ||\n      campaignterm ||\n      campaigncontent ||\n      gclid\n    ) {\n      // use generated visitor id if coming in from ad\n      _assign(visitData, { setVisit: true });\n    }\n  }\n  initializationService.initialize(visitData)\n    .then((response) => {\n      setInitialization(dispatch, response);\n      initializeData(dispatch, response);\n      if (window.localStorage) {\n        window.localStorage.setItem('visitProcessed', 'true');\n      }\n    })\n    .catch((err) => {\n      reportError(err, {\n        severity: 'error',\n        metaData: { message: 'Unexpected error initializing pricing data from /initialize' }\n      });\n    }).finally(() => {\n      updateState(false);\n    });\n};\n\nexport default initialize;\n","import { reportError } from './ReportingUtils';\n\nexport const PLAID_ERROR_MESSAGE = 'There was an error linking an account via Plaid.';\n/**\n * Util method that analyzes output of attempted\n * account linking via Plaid. Plaid docs for\n * reference https://plaid.com/docs/link/web\n * @param  {object.error} - A nullable object that contains the error type, code, and message of the error that was last encountered by the user. If no error was encountered, error will be null.\n * @param  {object.metadata} - Result of attempted account linking via Plaid\n * @returns {boolean} - Returns true if account successfully linked and error is null, otherwise returns false.\n */\n\nconst exitInFlowErrors = ['institution_not_found', 'requires_credentials', 'requires_account_selection', 'requires_oauth'];\nconst isPlaidLinkSuccessful = ({\n  error,\n  metadata\n}) => {\n  if (error) {\n    reportError(error,\n      {\n        severity: 'error',\n        metaData: {\n          message: PLAID_ERROR_MESSAGE,\n          plaidMetadata: metadata\n        }\n      }\n    );\n    return 'error';\n  }\n  if (exitInFlowErrors.includes(metadata?.status)) {\n    return 'exitError';\n  }\n  if (metadata?.status !== null && !metadata?.accounts?.length) {\n    reportError(new Error(`Unsuccessful account link via Plaid. Exited with status: ${metadata.status}`),\n      {\n        severity: 'error',\n        metaData: {\n          message: PLAID_ERROR_MESSAGE,\n          plaidMetadata: metadata\n        }\n      }\n    );\n    return 'error';\n  }\n  return 'valid';\n};\n\nexport default isPlaidLinkSuccessful;\n","import { VARIANTS } from '../constants/register_remagine';\n\nconst storage = window.localStorage || null;\nconst testVariantKey = 'zenbusiness_test_variant';\nexport const BUS_TYPES = {\n  CORP: 'CORP',\n  SCORP: 'S-CORP',\n  LLC: 'LLCX'\n};\n\nexport const getTestVariant = () => {\n  const storageVariantValue = storage ? storage.getItem(testVariantKey) : null;\n  const testVariant = storageVariantValue && Object.values(VARIANTS).includes(storageVariantValue) ? storageVariantValue : 'mvp';\n  return testVariant;\n};\n\n/**\n * Fetches a value from localStorage by namespace, converts the string into an object if it exists,\n * then fetches the specified value by key.\n *\n * @param {String} namespace - the localStorage key to get the value from\n * @param {String} key - the key of the specific value to fetch\n * @returns\n */\nexport const getValueFromLocalStorage = (namespace, key) => {\n  const localStorage = storage ? JSON.parse(storage.getItem(namespace)) : null;\n  const value = localStorage && localStorage[key] !== null ? localStorage[key] : null;\n  return value;\n};\n","\nexport const getOrder = (state, orderName) => {\n  const {\n      orders,\n      companies: { orders: ordersByCompany, companies: { activeId } }\n    } = state,\n    orderList = ordersByCompany[activeId];\n  return orders[orderName][orderList.find((orderId) => { return orders[orderName][orderId]; })];\n};\n\nconst selectors = {\n  getOrder\n};\n\nexport default selectors;\n","\n//combines n functions, flowing left to right, calling each function with the output of the last  function\nexport const pipe = (...fns) => { return (x) => { return fns.reduce((v, f) => { return f(v); }, x); }; };\n\nexport const minLength = (min) => {\n  return function({ value, errors = [] }) {\n    return value.length < min ? {\n      value,\n      errors: [...errors, `This field has a minimum length of ${min}`]\n    } : { value, errors };\n  };\n};\nexport const maxLength = (max) => {\n  return function({ value, errors = [] }) {\n    return value.length > max ? {\n      value,\n      errors: [...errors, `This field has a max length of ${max}`]\n    } : { value, errors };\n  };\n};\nexport const isNumeric = function({ value, errors = [] }) {\n  return !/^\\d+$/.test(value)\n    ? { value, errors: [...errors, 'This field must be numeric'] }\n    : { value, errors };\n};\n\n"],"names":["require","getAddressType","matchedResult","type","isLong","addressComponent","_find","address_components","comp","_indexOf","types","getCity","address","addressParts","toLowerCase","split","locality","neighborhood","sublocalityLevel1","sublocality","buildAddress","addressLine2","route","streetNumber","getStreetNumber","streetNum","idx","indexOf","_trim","substring","addressLine1","join","city","county","getCounty","state","stateName","zip","zipSuffix","zipCode","lat","geometry","location","lng","addressIsGoogle","validateGeoResult","origAddress","matchedStreetNum","matchedRoute","key","entryPoint","setAppEntryPoint","data","window","pathname","search","sessionStorage","setItem","getAppEntryPoint","getItem","getQueryParameterByName","name","queryString","arguments","length","undefined","document","results","RegExp","exec","decodeURIComponent","replace","domain","audience","scope","auth","auth0","clientID","allowSignUp","accessToken","idToken","loggedIn","timeout","oboEmail","email","getStorageItem","value","localStorage","setStorageItem","removeStorageItem","removeItem","ID_TOKEN_KEY","ACCESS_TOKEN_KEY","OBO_KEY","EMAIL_KEY","loginActionComplete","resetActionComplete","storage","clearTokens","clearInterval","setupLoggedIn","token","decode","exp","expireDate","Date","setUTCSeconds","expireMS","getTime","setInterval","getParameterByName","match","hash","init","initializeAuth0","response","overrideDomain","getIdToken","getAccessToken","getOBO","getLoggedInEmail","isLoggedIn","login","loginData","rt","Promise","resolve","reject","redirectUri","protocol","host","stateValue","Math","floor","random","username","password","redirectToAfterSuccessfulLogin","_isString","logger","responseType","err","success","resetPassword","changePassword","connection","loginAndGoToPage","clearAuthStorage","urlForLoginPage","encodeURIComponent","clear","logout","returnTo","recordLoginInformation","cb","storageState","reportError","Error","metaData","client","userInfo","user","getLoginRedirectTo","removeLoginRedirectTo","getAccountUUID","decodedToken","accountUuid","enabled","url","id","installed","initializeBoldPenguin","boldPenguin","loadBoldPenguin","callback","ref","getElementsByTagName","script","createElement","src","async","readyState","onreadystatechange","onload","parentNode","insertBefore","loadJS","infoCSS","logAction","action","title","env","console","groupCollapsed","info","JSON","stringify","groupEnd","error","log","getCookie","cookieName","parts","cookie","pop","shift","parseStringToInt","radix","parseInt","parseBoolToString","checkEmpty","_isEmpty","normalizeInitParams","query","domesticJurisdiction","fromDashboard","hasSCorp","fromBNG","hasSCorpWordUpdate","planLevel","_toUpper","_toLower","emptyStringRegex","integerRegex","floatRegex","emailRegex","zipCodeRegex","dollarRegex","centsRegex","visaCCRegex","mcCCRegex","amexCCRegex","discCCRegex","ssnRegex","einRegex","domainNameRegex","poBoxMatchStrings","emojiRegex","invalidCharsRegex","FieldValidator","constructor","humanReadableFieldName","this","fieldName","message","status","requiredStatus","isRequired","customMessage","isInteger","test","isFloat","isEmail","isEmailMatch","emailConfirm","msg","isZIPCode","isPhoneNumber","strippedNumber","isCreditCard","ccType","isDateFormat","format","moment","isValid","isFutureDate","testType","now","date","isSameOrAfter","isMonthTwoDigitsYear","isFutureMonthTwoDigitsYear","isMonthYear","isFutureMonthYear","isDayMonthYear","isFutureDayMonthYear","isMonthDayYear","isFutureMonthDayYear","isYearMonthDay","isFutureYearMonthDate","isAgeGreaterThan","age","ageDate","set","get","isAfter","isCurrency","isGreaterThan","min","_isNumber","parseFloat","e","isGreaterThanEqual","isLessThan","max","isLessThanEqual","isStringLength","isPassword","isPasswordMatch","passwordConfirm","isNotPOBox","valuelc","_reduce","collect","str","isSSN","isEIN","isDomainName","isAddressLine2","containsEmojis","hasInvalidChars","isSameState","isEmptyString","flows","complete_cora","complete_corp","complete_ein","complete_llc","complete_wfg","complete_nypub","register_accounting","register_amendment","register_banking","register_cora","register_ein","register_goodstanding","register_nameres","register_nypub","register_smb_growth","register_smb_website_ecomm","register_wfg","register_business_kit","register_stock_setup","registration","business_name_generator","register_vanity","setFlows","initFlows","getCompleteCorpFlowId","getCompleteEINFlowId","getCompleteLLCFlowId","getCompleteNYPubFlowId","getCompleteWFGFlowId","getRegisterAccountingFlowId","getRegisterBankingFlowId","getRegisterEINFlowId","getRegisterGSFlowId","getRegisterNameresFlowId","getRegisterNYPubFlowId","getRegisterSMBGrowthFlowId","getRegisterSMBWebsiteFlowId","getRegisterWFGFlowId","getRegistrationFlowId","getRegisterBusinessKitFlowId","getBusinessNameGeneratorFlowId","getRegisterVanityProductFlowId","getRegisterStockSetupFlowId","getExpediteHeader","expedite","expediteFees","timerCallback","deadline","getDeadline","tz","hour","minute","second","millisecond","isBefore","add","day","complete","getComplete","clone","exData","period","max_time","maxTime","dayComplete","timeLeft","monthComplete","timer","getDeadlineTimer","setTimeout","toDate","isFreeAccount","getIsFreeAccount","setIsFreeAccount","isSimulated","resetIsFreeAccount","apiKey","getInit","ZENBUSINESS_GOOGLE_MAPS_KEY","initializeAPIKey","_get","initializeMaps","scriptCallback","round","_isFunction","callbackName","INTERCOM_APPID","INTERCOM_ENABLED","zenIsMobile","initIntercom","CONTACT_US_PHRASE","replaceLinkablePhrases","text","textToRender","contactUsIndex","React","href","URLS","orderDataSentDuringRegistration","setOrderDataSentDuringRegistration","orderData","Array","isArray","reduce","map","_ref","service","validateOrderDataSentDuringRegistration","result","filter","_ref2","CompleteOrderTypes","COMPLETED","LLC","CORP","REGISTERED_AGENT","WORRY_FREE","NY_PUBLICATION","OrderTypes","Object","assign","EIN","BUSINESS_LICENSE_REPORT","NAME_RESERVATION","INCOMPLETE","completeOrderTypeValues","values","isOrderCompleteByType","businessOrderType","ignoreBusinessOrderType","includes","inferOrderStatusByType","cleanOrderData","order","orderWithoutNullPrices","order_data","order_items","orderItems","servicesWithNullPrice","price","_isNil","_ref3","removeServicesWithNullPrice","find","_ref4","item","_ref5","removeServicesThatAreNotInBothArrays","timerKey","entryPointGroupKey","attributionKey","pfKey","truicKey","allowedHosts","partner","processTimer","timerStr","entryPointGroup","truicEnabled","attribution","storeInfo","p","epg","attr","getStoredItem","storageKey","setStoredItem","initializePartner","removeTimer","getPartner","getEntryPointGroup","setPartner","newPartner","newEntryPointGroup","newAttribution","getCampaignmedium","setCampaignmedium","campaignmedium","getCampaignSource","setCampaignSource","campaignsource","getCampaignName","setCampaignName","campaignname","isTRUiC","isPF","setPartners","products","truic","resetPartnerStorage","checkNonTruicURLPartner","referrer","refParse","urlPartner","replaceAll","processPartner","paramPartner","paramEntryPointGroup","truicToPFFlow","processPartnerTruicToPFFlow","URL","hostname","resetVisit","nonTRUiCPartner","processPartnerTruicFlow","processLogIn","custom_flow","userPartner","codeToActionErrorMap","codeToDataIntegrityErrorMap","codeToCardNumberErrorMap","codeToCVCErrorMap","codeToExpDateErrorMap","codeToZipCodeErrorMap","codeToPasswordErrorMap","allHandledPaymentErrors","paymentErrorButtons","badRequest","cardNumberInvalid","cvcInvalid","dataIntegrity","dataMissingError","debitCard","duplicateEmail","emailExists","emailInvalid","emailUndeliverable","expDateInvalid","expDateFutureInvalid","expirationInvalid","expiredCard","genericStripe","incorrectCVC","incorrectDate","incorrectNumber","incorrectZip","insufficientFunds","invalidAmount","invalidCard","invalidCardType","invalidCVC","invalidNumber","invalidZip","limitExceeded","matchingName","notFound","notSupported","passwordInvalid","paymentError","processingError","serverError","tokenError","tryAgainStripe","unauthorized","paymentErrorMessages","expDateTwoDigitsYearInvalid","passwordDictionary","passwordHistory","passwordNoUserInfo","passwordStrength","analyzePaymentFields","checkPassword","useTwoDigitsExpYear","cardNumber","cardNumberRaw","expDate","cvc","cardNumberError","Validator","cvcError","passwordError","expDateFutureError","expDateFormatError","expDateError","actionError","analyzePaymentError","dataIntegrityError","zipCodeError","fatalError","analyzePaymentPageStatus","checkTOS","cardId","tosAgree","tosIsOK","passwordIsOK","PAGE_STATUS","calculatePlanPrice","planPrice","planCoupon","coupon","amount","generateCouponExplanation","explanationRaw","discountedPrice","basePrice","explanation","getCouponExplanation","plan","planPriceRaw","corp","prices","llc","environment","renderPlaid","linkToken","reinitialize","Plaid","create","clientName","receivedRedirectUri","product","onSuccess","publicToken","metadata","onExit","open","initializePlaid","plaid","displayPlaid","isPlaidEnabled","defaultPlans","level1","fees","expense_tracking_with_tax_filing","addons","auto_includes","anonymity","annual_report_service","isRAOfferEnabled","banking","banking_resolution","basic_email","business_license_report","change_of_registered_agent","corporate_docs","cpa_consult","domain_name_privacy","domain_name_reg","ein_creation","formation","initial_cpa_screening","insurance","ny_publication","operating_agreement","registered_agent_service","static_website","tax_preparation","worry_free_service","level2","level3","raLevel1","raLevel2","labels","nameAvailabilitySearch","articlesIncorporation","stateFiling","chat","dashboard","registeredAgent","changeOfAgent","worryFree","ein","ein2553","operatingAgreement","nyPublication","bookkeeping","priority","rush","taxPreparation","basicEmail","cpaConsult","initialCPAScreening","domainName","domainNamePrivacy","staticWebsite","bankingResolution","corporateDocs","autoIncludes","annualReportService","plans","packages","standalones","orderPlanData","getPlanLevel","syncUpPlan","level","currentLevelPlan","setPlans","initPlans","initPkgs","standaloneServices","initSS","formatted","existingInterval","thisInterval","isAutoIncludedInPlan","_findIndex","ai","findItemInAddOns","getMinimumCoRAPlanYearlyPrice","getCoupon","getPlanDetails","includeCallouts","removeCheckMarks","noExpedite","isSCorp","toRemove","list","push","getExpenseTrackerAndTaxFilingPlanYearlyPrice","businessType","getEINBusinessDocsBundlePrice","getEinBusinessDocsBundleFromAddonOrStandalone","ein_business_docs_bundle","getWebsiteToolsBundleYearlyPrice","getWebsiteToolsBundlePriceFromAddonOrStandalone","website_tools_bundle","getPackage","serviceName","interval","pkg","DEFAULT_COUPON","coupon_uuid","external_coupon_id","purchasePriceKey","getPurchasePrice","Number","deletePurchasePrice","getServicePricingFromPlan","getCouponById","couponId","coupons","getCouponForService","servicePricing","getPriceAndCouponForService","servicePrice","serviceCouponUUID","serviceCoupon","serviceCouponAmount","getDiscountPercentForService","priceAmount","couponAmount","calculateCouponDiscountPercent","getYearlyPriceForService","getMonthlyPriceForService","ceil","getFirstYearPriceForService","calculateItemTotalToday","isActive","today","getPeriodicPrices","yearlyPrice","priceFees","nextYear","perYear","getStateFees","filingFees","getAddOnItemFee","itemBeingPurchased","itemKey","isItemEnabled","periodicPrice","fee","getTotalToday","purchase","companyType","priceType","getCompanyType","stateFilingFees","calculatedPrice","expediteFee","getExpediteFees","expediteIncludedInPlan","getExpediteRushPrice","getExpeditePriorityPrice","stateFormationFee","calculateStateFormationFees","llc_formation","corp_formation","addOnFees","getAddOnFees","isBasicEmailEnabled","getBasicEmailYearlyPrice","isDomainNameEnabled","getDomainNameYearlyPrice","isStaticWebsiteEnabled","getStaticWebsiteYearlyPrice","isDomainNamePrivacyEnabled","getDomainNamePrivacyYearlyPrice","isBankingResolutionEnabled","getBankingResolutionPrice","isWFGEnabled","getWFGYearlyPrice","isEINEnabled","getEINPrice","isCorporateDocsEnabled","getCorporateDocsPrice","opAgree","isOpAgreementEnabled","getOpAgreementPrice","getRelatedPlanOption","related_plan_option","getPlanPricingDetails","infoKey","related_plan_pricing","getRelatedPlanPricing","getAddOnServicesForPlan","getPlanOptionDetails","getAddOnService","allAddOnServices","addon","getCouponByUUID","uuid","getCouponForPlan","getCouponUUIDForPlan","couponUUID","getCouponForAddOnService","getCouponUUIDForAddOnService","getCouponAmountForPlan","getCouponAmountForAddOnService","getPriceForPlan","getPriceForAddOnService","addOns","getAffiliatePricingUUIDForPlan","getDiscountedPriceForAddOnService","getDiscountedPriceForPlan","getStandaloneService","getPricingDetailsForService","standaloneService","related_service_pricing","getPriceForStandaloneService","getCouponUUIDForStandaloneService","getCouponForStandaloneService","getCouponAmountForStandaloneService","getDiscountedPriceForStandaloneService","getStateFeesDetails","stateFees","stateCode","planUtils","standaloneServiceUtils","getExpediteFeeInfoByJurisdiction","expediteLevel","getFeesForServiceByState","getFeesTermForServiceByState","ASST_SEC","authorizedSignatory","ceo","cto","customer","director","electiveCEO","manager","member","officer","officialStateContact","PRES","SEC","sopContact","TRSR","VP","compareItem","item1","item2","compareUsers","user1","user2","companyName","firstName","middleName","lastName","suffix","convertUser","contactType","offStateContact","selectedKey","isCustomer","isOffStateContact","isSOPContact","isElectiveCEO","isAuthSig","selected","u","_assign","isPrincipal","phoneNumber","careOf","convertUsers","users","userData","_map","getContactInfoReducer","customerIncluded","offStateContactIncluded","sopContactIncluded","electiveCEOIncluded","authSigIncluded","generatePrincipals","members","managers","directors","officers","userTypes","convertedMembers","convertedManagers","convertedDirectors","convertedOfficers","principals","_concat","getContactInclusions","_forEach","principal","index","getContactTypeForChoice","contact","pageConfig","skipKey","retVal","t","l","getContactTypeForDropdown","generateAuthSigPrincipals","managerType","titles","_filter","_cloneDeep","authSigTitle","coupon49to99","note","coupon49to119","couponPartner39to119","starter_plan_v12","starter_plan_v13","starter_plan_v14","starter_plan_v15","starter_plan_v16","starter_plan_v17","starter_plan_v18","starter_plan_v19","starter_plan_v20","starter_plan_v21","starter_plan_v23","starter_plan_v24a","starter_plan_v24b","starter_plan_v24c","starter_plan_v26","partner_starter_plan_v1","partner_starter_plan_v2","partner_starter_plan_v3","rvshare_starter_plan_v1","accountant1800","accounting","amendment","annualReport","businessKit","businessLicense","dbaEntity","dbaCompliance","domainNameMultipleTLDs","dudaWebsiteBuilder","expeditePriority","expediteRush","expenseTrackingWithTaxFiling","futureFileDate","goodStanding","international","naicsUpdate","nameRes","nyPub","nyPubUpsell","ra","raSA","raSADash","smbEcommAddon","smbGrowth","smbWebsiteEcomm","upsell","wfg","wfgInitialReport","virtualBusinessAddress","registeredAgentService","vanityProduct","zbmPro","zbmProPF","pricing","accountingGrowAndScaleMonth","accountingQuickStartMonth","accountingUpAndRunningMonth","anonymityYear","bankOfAmericaOffer","bankingYear","basicEmailYear","domainNameYear","domainNamePrivacyYear","insuranceYear","insuranceFrom","raFirstYearOffer","raYear","smbEcommAddonMonth","smbEcommAddonYear","smbGrowthKickstarterMonth","smbGrowthKickstarterYear","smbGrowthEffectivenessMonth","smbGrowthEffectivenessYear","smbWebsiteEcommMonth","smbWebsiteEcommYear","smbWebsiteEcommYearlyPerMonth","staticWebsiteYear","taxPreparationYear","websiteToolsBundle","wfgYear","zbBankingPreferredMonthly","zbmProMonth","zbmProYear","domainLinkOnDash","usePlansBasedPricing","isLegalTest","setIsLegalTest","vanityLegal","getPlanBasedPricing","plansKeys","POST_RA_URLS","RA_URLS","base","servicePrices","planKey","setProducts","REG_URLS","POST_LLC_URLS","POST_CORP_URLS","POST_ADDONS","initProducts","initPricing","initStandaloneServices","getAffiliatePricingUUID","term","itm","pricingService","notifySentry","errorName","errorCode","responseData","httpStatus","standaloneServicesLength","isAccountingEnabled","getAccountingGrowAndScaleMonthlyPrice","getAccountingQuickStartMonthlyPrice","getAccountingUpAndRunningMonthlyPrice","isAmendmentEnabled","getAmendmentPrice","getAnonymityYearlyPrice","getAnnualReportPrice","getAnnualReportServicePrice","isBankingEnabled","getBankingYearlyPrice","getAccountant1800Price","isBusinessLicenseEnabled","isRegisteredAgentEnabled","getBusinessLicensePrice","getRegisteredAgentServicePrice","getRegisteredAgentLicensePrice","isBusinessKitEnabled","getBusinessKitPrice","getCPAConsultPrice","isDBAEntityEnabled","getDBAEntityPrice","getDBAEntityFees","requestedJurisdiction","DBA_IGNORE_STATES","dba_entity","isDBAComplianceEnabled","getDBAComplianceYearlyPrice","isDomainNameMultipleTLDs","isDudaWebsiteBuilderEnabled","isFormationEnabled","getFormationPrice","isFutureFileDateEnabled","nowOverride","parseISO","toISOString","start","getYear","end","isWithinInterval","getFutureFileDatePrice","getGoodStandingPrice","getInitialCPAScreeningPrice","isInsuranceEnabled","isNaicUpdateEnabled","getNameResPrice","isNYPubEnabled","isNYPubUpsellEnabled","getNYPubPrice","getPAPubPrice","paPub","getGAPubPrice","gaPub","getSplitNYPubFees","NY","tmpKey","countyFee","domestic","albany","stateFee","getNYPubFees","isRAEnabled","getRAYearlyPrice","getRAFirstYearPrice","getSMBGrowthEffectivenessMonthlyPrice","getSMBGrowthEffectivenessYearlyPrice","getSMBGrowthKickstarterMonthlyPrice","getSMBGrowthKickstarterYearlyPrice","getSMBWebsiteEcommMonthlyPrice","getSMBWebsiteEcommYearlyPrice","getSMBWebsiteEcommYearlyPerMonthPrice","getTaxPreparationYearlyPrice","isUpsellEnabled","getBankOfAmericaOfferPrice","isAccountant1800Enabled","isWFGInitialReportEnabled","isVirtualBusinessAddressEnabled","getVirtualBusinessAddressPrice","getWFGInitialReportPrice","einBusinessDocsBundle","isExpenseTrackingWithTaxFilingEnabled","getZbBankingPreferredMonthlyPrice","getZBMProMonthlyPrice","getZbTaxAdviceMonthlyPrice","zbTaxAdvice","getZbBizTaxPrepMonthlyPrice","zbBizTaxPrep","getZbTaxAdviceBizTaxPrepMonthlyPrice","zbTaxAdviceBizTaxPrep","getZBMProYearlyPrice","getVanityProducts","vpPricing","acc","_startsWith","active","postPurchase","productId","productName","serviceId","pageTitle","productKey","noticePageTitle","flowPosition","yesLabel","noLabel","priceWithoutCoupon","priceIsMonthly","priceNoteRight","additionalInformation","logo","alt","modalTitle","benefitsItems","img","width","description","noticePageIntro","noticePageDescription","showDashCard","showDashAlertModal","dashAlertModal","vanityProductsData","formatVanityProduct","jurisdiction","Fragment","explanationSentences","firstExplanationSentence","style","fontSize","lineHeight","VANITY_STATE_COPY","titlePieces","slice","benefit","bottomLineParagraphs","paragraph","getVanityProduct","getVanityProductPrice","getPostPurchaseVanityProduct","activeTest","prototype","hasOwnProperty","call","requirements","allowedJurisdictions","getPostPurchaseVanityProductPrice","isCaDivLaborEnabled","ldFlags","CA_DOL_FLAG","initProgressBar","zb","flow","setGlobalProgressBar","current","steps","setReducerProgressBar","dispatch","progressBarData","flowOrder","currentStep","activeFlow","stepIndex","PROGRESS_BAR_ACTIONS","payload","resetReducerProgressBar","quickFormationData","quickFormationDataClone","parse","quickOrder","quickBody","dateVar","formationType","uniqueEmailAddress","account","uniqueFirstName","first_name","uniqueLastName","last_name","uniqueEntityName","entity_name","oData","lead_uuid","uuidv4","domestic_jurisdiction","business_entity_name","acc_entity_name","acc_first_name","acc_last_name","acc_entity_type","forEach","element","registered_agent","services","online_tools","completed_action","completed_action_index","business_entity_type","entity_type","quickOrderApi","qdata","axios","storeReducer","getReducerSnapshot","defaultVal","stringData","storeLocalReducer","initialize","initializeReducer","initialData","invalidateDate","invalidateInterval","timeKey","timeData","createTime","store","initializeLocal","initializeLocalReducer","storeLocal","clearLocal","AUTOFILL_INPUT_NAMES","autoComplete","noPaste","stopPropagation","preventDefault","renderCleaveField","fieldKey","props","placeholders","className","onChange","refFn","cleaveOptions","disabled","disablePaste","label","noteLabel","placeholder","errorClass","errorLabel","inputMode","inputProperties","inputType","options","isAnimatedFieldClass","onPaste","StyledDiv","htmlFor","Cleave","_extends","htmlRef","phoneNumberCleaveOptions","blocks","delimiter","delimiterLazyShow","numericOnly","creditCardCleaveOptions","creditCard","monthYearCleaveOptions","datePattern","yearMonthDayCleaveOptions","monthDayYearCleaveOptions","cvcCleaveOptions","zipCodeCleaveOptions","currencyCleaveOptions","numeral","numeralDecimalScale","numeralPositiveOnly","stripLeadingZeroes","prefix","currencyValuePerShareCleaveOptions","integerCleaveOptions","integerCleaveNoGroupOptions","numeralThousandsGroupStyle","floatCleaveOptions","ssnCleaveOptions","einCleaveOptions","styled","renderAnimateTextField","inputElementOverlay","maxLength","onKeyPress","tabIndex","renderTextField","renderAnimateField","renderField","renderEmailField","renderPasswordField","renderTextArea","rows","cols","renderPhoneNumberField","renderCreditCardField","renderMonthYearField","renderMonthDayYearField","renderYearMonthDayField","renderCVCField","renderZipCodeField","renderCurrencyField","renderIntegerField","noDelimiter","renderFloatField","renderSSNField","renderEINField","renderCustomCleaveField","renderAddressColumnValue","country","clzName","cityState","isUS","renderNameColumnValue","postFix","SUFFIX_IN_NAME","renderBreakLines","_","opts","Sentry","withScope","setLevel","severity","setExtra","captureException","identifyUser","configureScope","setUser","sscid","baseUrl","shareASale","a","r","isEnabled","onPayment","totalPrice","xtype","toFixed","pixelURL","height","generateSaleType","brand","target","itemPrice","modifier","generateSaleTypeByBusinessTypeAndPlanLevel","businessTypeToTarget","googleConversionLabels","leadEnhanced","purchaseEnhanced","thirdPartyTrackingCSS","debugCookieEnabled","debugLoggingEnabled","PROFILE_CLAIM","googleads","zenbusinessEnv","release","visitUUID","selectedPlan","accountUUID","userUUID","gclid","msclkid","normalizePage","page","pageViewed","COMPANY_URLS","initAvoRudderstack","avo","webDebugger","Cypress","rudderStackDestination","identify","userId_","setVisitor","visitorData","requestData","userUuid","logIfDebugLoggingEnabled","entriesToLog","buildEventsData","localData","globalData","fixedRelease","fixedInputValue","inputValue","toString","fixedTestingIdVariant","testing_id_variant","normalizedUrl","originalUrl","standardizePathname","mixpanelTrackAddOn","trackEventMap","true","false","mixpanelTrackPlans","planId","setMixpanelSelectedPlan","initializeGoogleAds","envAds","loadGoogleAds","body","appendChild","insertGoogleAds","conversion","reportGtagEvent","gtag","setGoogleAdEnhancedConversionData","enhanced_conversion_data","phone_number","stripPII","emailParameterRegex","urlWithoutPII","gtagReportOnce","CORA_URLS","DBA_URLS","gaTrack","normalizedPage","originalPage","dataLayer","event","customData","dimension1","dimension2","reportOnce","page_title","page_location","page_path","eventCategory","eventAction","eventLabel","eventValue","gtagData","event_category","event_label","logStatements","trackView","pageDetails","ignoreGA","ignoreMixpanel","deviceType","dataToSend","pageType","pageSection","screenName","formationStatus","visitUuid","testingIdVariant","component","getClickDetails","clickText","clickType","getButtonClickDetails","getArrowClickDetails","trackClick","clickEventDetails","clickUrl","rudderstackTrack","trackEvent","purchasedCompleted","send_to","getPhoneDetails","details","insertAdResultsMediaPixel","doesUserConsentThirdParty","adResultsMedia","insertBlissPointPixel","blissPoint","purchaseTrackingPrice","insertPodSightsPixel","podSights","display","getOrderTracking","purchaseSource","flow_name","device_type","mobileDeviceType","purchase_source","testID","effectiveness","kickstarter","registrationUrl","getRegistrationUrl","isKickstarter","ureeka","getUrlParams","params","args","argList","i","argVals","param","sanitizeRelativeUrl","startsWith","origin","encodeURI","parseUrl","urlBase","initializationVisitUUID","visitUUIDStorageKey","setThirdParty","inviteeCode","invitee_code","setThirdPartyVisitor","getFromCookie","getVisitUUID","visit_uuid","visituuid","expires","toUTCString","isVmaJurisdiction","hasVmaProduct","isVmaEnabledJurisdiction","VMA_ENABLED_STATES","support","self","Symbol","Blob","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","Headers","append","normalizeName","normalizeValue","oldValue","has","thisArg","keys","items","iteratorFor","entries","iterator","methods","Request","_bodyInit","Body","Response","statusText","headers","redirectStatuses","redirect","RangeError","DOMException","stack","fetch","polyfill","String","TypeError","next","done","header","getOwnPropertyNames","consumed","bodyUsed","fileReaderReady","reader","onerror","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","view","Uint8Array","byteLength","buffer","_initBody","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","rejected","arrayBuffer","then","readAsText","chars","fromCharCode","readArrayBufferAsText","formData","json","input","method","upcased","credentials","mode","signal","toUpperCase","form","trim","bytes","bodyInit","ok","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","line","responseURL","responseText","ontimeout","onabort","withCredentials","setRequestHeader","addEventListener","removeEventListener","send","exports","array_difference","AvoAssert","InternalAvoLogger","__AVO_DEV__","__AVO_NOOP__","__AVO_LOGGER__","__AVO_ENV__","__REPORT_FAILURE_AS__","__STRICT__","__WEB_DEBUGGER__","__INSPECTOR__","arg","defineProperty","varArgs","to","nextSource","nextKey","writable","configurable","hasDontEnumBug","propertyIsEnumerable","dontEnums","dontEnumsLength","prop","fromIndex","that","Len","a1","a2","assertObject","propertyId","propName","tag","actualType","assertString","assertInt","int","assertLong","long","assertFloat","float","assertBool","bool","assertMax","assertMin","assertList","assertNoAdditionalProperties","eventName","spec","additionalKeys","additionalProperties","assertNoAdditionalUserProperties","WebDebuggerAssertions","hasKey","assertKey","assert","assertKeys","arrayOfAssertions","every","assertionForKey","_avo_invoke","_avo_invoke_meta","WebDebuggerPosition","position","BOTTOM_RIGHT","BOTTOM_LEFT","TOP_RIGHT","TOP_LEFT","BottomRight","parameters","bottom","right","BottomLeft","left","TopRight","top","TopLeft","logEventSent","eventProperties","userProperties","groupProperties","logDebug","warn","logWarn","logError","_avo_debugger_log","_avo_sampling_rate","_avo_invoke_payload","res","sa","catch","eventId","messages","RudderStackLegacyEvents","_avo_debugger_events_during_boot","_avo_debugger_ready","assertAccountUuid","label_","concat","assertZenbusinessEnv","assertDeviceType","assertOptionalSelectedPlan","assertUserId_","assertOptionalFullStorySession","fullStorySession","assertUrl","assertOptionalPageType","assertPageType","assertOptionalActiveFlow","assertOptionalVisitUuid","assertUserUuid","assertOptionalPageSection","assertOptionalTestingIdVariant","assertOptionalPageSubSection","pageSubSection","assertRelease","assertOptionalPageTitle","assertPageTitle","assertOptionalPlanPeriod","planPeriod","iframe","getElementById","type_","schemaId","events","contentWindow","postMessage","timestamp","ScreenName","SIGN_IN","FORGOT_PASSWORD","PASSWORD_RESET","UPGRADE","ENTITY_UNSUPPORTED","ENTITY_NOT_FOUND","CHAT","FORMATION_TRACKER","ACTION_MENU","SETTINGS","ONBOARDING","ONBOARDING_TRANSITION","USER_AGREEMENT","DOCUMENT_FILE_SHARING","DOCUMENT_VIEWER","TEMPLATE_VIEWER","DOCUMENT_LIBRARY","TEMPLATE_LIBRARY","TEMPLATE_FILE_SHARING","PRODUCT_DETAIL","PRODUCT_SUITE","NO_DOCUMENTS","TEMPLATES_LOCKED","PRODUCT_CHECKOUT_FAQ","PRODUCT_CHECKOUT","EXPENSE_DETAIL_EDIT","NO_EXPENSE_CATEGORIZATION","EXPENSE_CATEGORIZATION","EXPENSE_EDIT_CATEGORIZATION","EXPENSES_LIST","JOURNEY_LESSON","JOURNEY_INTRO_HUB","JOURNEY_LESSON_HUB","JOURNEY_LESSON_REVIEW","EDU_STORY","DASHBOARD_HOMEPAGE","DocumentCategory","TEMPLATE","BUSINESS_RECORD","BUSINESS_GUIDE","CORPORATE_DOCS","FormationStatus","UNKNOWN","ACCURACY_CHECK","BUSINESS_FORMED","ORDER_RECEIVED","SUBMITTED_TO_STATE","UNDER_STATE_REVIEW","FORMATION_REQUEST_INCOMPLETE","CUSTOMIZE_PLAN","ACCURACY_CHECK_FIXING_ISSUE","BUSINESS_FORMED_FFD","BUSINESS_FORMED_FFD_COMPLETE","BUSINESS_FORMED_FFD_POST_INCOMPLETE","FORMATION_REQUEST","SUBMITTED_TO_STATE_STILL_WAITING","UNDER_STATE_REVIEW_DELAYED","Component","LOGIN","HOME","MAIN_CHAT","USER_AGREEMENTS","WEB","ROOT","DOCUMENT_CENTER","CHECKOUT","EXPENSES","J2S","EDU","setAvoLogger","avoLogger","userIdentified","properties","m","userUnidentified","unidentify","click","clickLocation","assertOptionalClickLocation","assertOptionalClickText","assertOptionalClickType","assertOptionalClickUrl","creditChange","assertOptionalCreditChange","creditRange","assertOptionalCreditRange","documentCategory","assertOptionalDocumentCategory","documentTitle","assertOptionalDocumentTitle","factorType","assertOptionalFactorType","fromPageNum","assertOptionalFromPageNum","hasDocumentUrl","assertOptionalHasDocumentUrl","numFavorites","assertOptionalNumFavorites","pagePosition","assertOptionalPagePosition","paginationClicks","assertOptionalPaginationClicks","searchDocumentName","assertOptionalSearchDocumentName","toPageNum","assertOptionalToPageNum","assertOptionalUrl","utterance","assertOptionalUtterance","templateName","assertOptionalTemplateName","templateId","assertOptionalTemplateId","sessionUuid","assertOptionalSessionUuid","pathName","assertOptionalPathName","parameter","assertOptionalParameter","nextUrl","assertOptionalNextUrl","messageUuid","assertOptionalMessageUuid","assertOptionalInputValue","flowName","assertOptionalFlowName","documentName","assertOptionalDocumentName","category","assertOptionalCategory","businessEntityUuid","assertOptionalBusinessEntityUuid","assertOptionalAction","_avoFunctionTrackSchemaFromEvent","logEvent","dashboardLogin","assertOptionalScreenName","assertOptionalFormationStatus","assertOptionalComponent","assertOptionalUserUuid","assertOptionalAccountUuid","assertOptionalMsclkid","assertOptionalIsLoggedIn","assertOptionalGclid","purchaseCompleted","assertOptionalTotalPrice","setup_","systemProperties","RudderStackLegacyEventsDestination","destinationOptions","validateProperties","useProductionKey","make","initAvo","noop","strict","reportFailureAs","inspector","webDebuggerOptions","positionParams","avoInspectorApiKey","rudderstackApiKey","rudderstackUrl","getIntegrations","option","ucAcceptedAll","All","setRudderStackApiInfo","rudderstack","rudderanalytics","setUserProperties","userId","integrations","pageName","updateState","isProxyUsage","visitProcessed","cachedUrl","overrideFrom","overrideReferrer","overrideParams","from","urlParams","zlscout","resetAllData","resetAllAccountData","website","charAt","substr","convertWebsiteUrl","landingUrl","plan_partner","source","utm_source","utmSource","medium","utm_medium","utmMedium","campaignid","campaign","utm_campaign","utmCampaign","content","utm_content","utmContent","keyword","utm_term","utmTerm","CT","mixpaneldistinctid","mixpanelId","affiliateId","bannerId","campaignterm","campaigncontent","mixpanelid","visitData","setVisit","landing_url","affiliate_id","banner_id","forceNewVisit","entry_point_group","initializationService","setInitialization","initializeData","finally","PLAID_ERROR_MESSAGE","exitInFlowErrors","plaidMetadata","accounts","getTestVariant","storageVariantValue","VARIANTS","getValueFromLocalStorage","namespace","getOrder","orderName","orders","companies","ordersByCompany","activeId","orderList","orderId","pipe","_len","fns","_key","x","v","f","minLength","errors","isNumeric"],"sourceRoot":""}