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able/./webpack/back_office/v2/utils/event_tracker.js","webpack://booqable/./webpack/back_office/v2/utils/routing_utils.js","webpack://booqable/./webpack/shared/utils/mergeDefaultRequestOptions.js","webpack://booqable/./webpack/back_office/v2/utils/utils.js","webpack://booqable/./webpack/shared/lib/orm/collection.js","webpack://booqable/./webpack/shared/redux/interface/reducer.js","webpack://booqable/./webpack/shared/redux/interface/index.js","webpack://booqable/./webpack/shared/redux/interface/ui.js","webpack://booqable/./webpack/shared/utils/Routing.js","webpack://booqable/./webpack/shared/utils/features.js","webpack://booqable/./webpack/shared/utils/operating_rules.js","webpack://booqable/./webpack/shared/utils/setPageTitle.js","webpack://booqable/./webpack/shared/utils/time.js","webpack://booqable/./webpack/shared/utils/timeslots.js"],"sourcesContent":["import request from 'axios'\nimport merge from 'lodash/merge'\n\n// Track events\n// @example\n//   EventTracker.track('Signedup', { source: 'Organic' }, callback)\n//\nclass EventTracker {\n  static async track (name, data, callback) {\n    const properties = merge(Object.assign({}, window.globalTrackingData || {}), data)\n\n    // For proper breakdowns in Mixpanel we always want feature to be set, if feature_category is present\n    if (properties.feature_category && !properties.feature) {\n      properties.feature = properties.feature_category\n    }\n\n    if (window.analytics && window.analytics.track) {\n      window.analytics.track(name, properties)\n    }\n\n    if (window.environment === 'development' || window.environment === 'test') {\n      console.debug(`%c EventTracker track: ${name}, ${JSON.stringify(properties)}`, 'color: #24ad4e')\n    }\n\n    const sendData = {\n      event: name,\n      properties\n    }\n\n    const response = await request({\n      method: 'POST',\n      url: '/track',\n      data: sendData\n    })\n\n    if (callback) callback()\n\n    return response\n  }\n\n  static featureCategory () {\n    const path = location.pathname\n\n    // On a hard reload, the url is different then when the user navigates to the url\n    if (path.includes('/product_groups') || path.includes('/products')) {\n      return 'Products'\n    } else if (path.includes('/customers')) {\n      return 'Customers'\n    }\n  }\n\n  static trackDispatch (action, state) {\n    switch (action.type) {\n      case 'IMPORT_INITIALIZE':\n        return EventTracker.track('Import visit', {\n          type: action.payload.type,\n          feature_category: this.featureCategory(),\n          feature: 'Import'\n        })\n      case 'IMPORT_CANCEL':\n        if (state && state.import.uploaded) {\n          return EventTracker.track('Import cancel', {\n            feature_category: this.featureCategory(),\n            feature: 'Import'\n          })\n        }\n        break\n      case 'IMPORT_UPLOAD_FILE':\n        return EventTracker.track('Import upload', {\n          file: action.payload.file.name,\n          columns: action.payload.columns.length,\n          items: action.payload.data.length,\n          feature_category: this.featureCategory(),\n          feature: 'Import'\n        })\n      case 'IMPORT_FINISH_MAPPING':\n        return EventTracker.track('Import finish mapping', {\n          mapped_columns: state.import.mapping.size,\n          feature_category: this.featureCategory(),\n          feature: 'Import'\n        })\n      case 'IMPORT_START':\n        return EventTracker.track('Import start', {\n          feature_category: this.featureCategory(),\n          feature: 'Import'\n        })\n      case 'IMPORT_UPDATE':\n        if (action.payload.import.completed && (state.import.step !== 'completed')) {\n          return EventTracker.track('Import complete', {\n            feature_category: this.featureCategory(),\n            feature: 'Import'\n          })\n        }\n        break\n      case 'PAYMENTS_CREATE_START': {\n        const {\n          attributes\n        } = action.payload.options\n\n        const data = {\n          context: attributes.document_id ? 'invoice' : 'order',\n          amount: attributes.amount_in_cents,\n          deposit: attributes.deposit_in_cents\n        }\n\n        if (attributes.payment_type.startsWith('manual')) {\n          data.type = attributes.payment_type\n          data.method = attributes.transaction_type\n          data.custom_date = (attributes.paid_at != null)\n\n          return data.custom_date\n        } else {\n          data.type = `${attributes.payment_type}_${attributes.transaction_type}`\n\n          return data.type\n        }\n      }\n    }\n  }\n}\n\nexport default EventTracker\n","// Libraries\nimport qs from 'qs'\n\n// Shared\nimport { History } from 'shared/utils/Routing'\nimport moment from 'shared/lib/moment'\nimport EventTracker from 'back_office/v2/utils/event_tracker'\nimport { pluralize } from 'inflected'\n\nconst order = (order, action) => {\n  return _resource('orders', order, action)\n}\n\nconst customer = (customer, action = 'edit') => {\n  return _resource('customers', customer, action)\n}\n\nconst product = (product, action) => {\n  return _resource('product_groups', product, action)\n}\n\nconst bundle = (bundle, action) => {\n  return _resource('bundles', bundle, action)\n}\n\nconst customers = (action = undefined) => {\n  return _collection('customers', action)\n}\n\nconst documents = (action = undefined) => {\n  return _collection('reports/documents', action)\n}\n\nconst orders = (action = undefined) => {\n  return _collection('orders', action)\n}\n\nconst bundles = (action = undefined) => {\n  return _collection('bundles', action)\n}\n\nconst products = (action = undefined) => {\n  return _collection('product_groups', action)\n}\n\nconst document = (document, action) => {\n  return _resource('documents', document, action)\n}\n\nconst collection = (collection, action) => {\n  return _resource('collections', collection, action)\n}\n\nconst collections = (action = undefined) => {\n  return _resource('collections', action)\n}\n\nconst location = (location, action) => {\n  return _resource('locations', location, action)\n}\n\nconst calendarLink = (action = 'products', options = {}) => {\n  const formatDate = (date) => moment(date).format()\n\n  if (options.from) options.from = formatDate(options.from)\n  if (options.till) options.till = formatDate(options.till)\n\n  const queryString = qs.stringify(options, { encode: false })\n\n  return `/calendar/${action}?${queryString}`\n}\n\nconst navigateToResource = (type, object, action) => {\n  return navigate(eval(type)(object, action))\n}\n\n// Navigates to given path. When an event is given it will prevent the default\n// and when CTRL or CMD or Middle Mouse key is pressed it won't do anything.\n//\nconst navigate = (fullPath, e) => {\n  if (e && (e.ctrlKey || e.metaKey || (e.button === 1))) {\n    // CTRL or CMD or Middle Mouse is pressed to open in a new window\n    return false\n  }\n\n  e && e.preventDefault()\n\n  if (checkForUnsavedChanges()) {\n    History.push(fullPath)\n  }\n\n  if (window.localStorage.getItem('settingsBackLink')) {\n    const data = JSON.parse(window.localStorage.getItem('settingsBackLink'))\n\n    // data.target\n    // - is the target of the settingsBackLink\n    // data.resource (optional)\n    // - is the resource path where the settingsBackLink should be visible (example: 'tax_categories')\n    // If the fullPath is not the target, and the fullPath does not starts with the resource path the user\n    // navigates to a page which should not show the settingsBackLink\n    if (data.target !== fullPath && !fullPath.startsWith(`/${data.resource}`)) {\n      localStorage.removeItem('settingsBackLink')\n    }\n  }\n}\n\n// Navigates directly to link.\n// Add data attribute if navigation should be Event tracked\n//\n// @example\n//   <a href=\"some-link\" onClick={Utils.Routing.navigateLink}>some link</a>\n// @example of tracking\n//   <a href=\"some-link\" onClick={Utils.Routing.navigateLink} data-track-event='Dashboard link clicked'>some link</a>\n//\nconst navigateLink = (e, track = false) => {\n  const element = e.currentTarget\n  const trackingEvent = element.getAttribute('data-track-event')\n  const external = element.target === '_blank'\n\n  if (trackingEvent) {\n    const hrefURL = new URL(element.href)\n    const trackingHref = external ? element.href : `${hrefURL.pathname}${hrefURL.search}`\n\n    EventTracker.track(trackingEvent, { href: trackingHref })\n  }\n\n  if (!external) {\n    let link = element.href\n\n    link = link.replace(window.location.origin, '')\n\n    return RoutingUtils.navigate(link, e)\n  }\n}\n\nconst hasUnsavedChanges = () => {\n  if (!window.testMode && window.dirtyForms && !window.skipUnsavedChangesCheck) {\n    // Check if there are any dirty forms in dirtyForms\n    return Object.values(window.dirtyForms).filter((value) => value)[0]\n  } else {\n    return false\n  }\n}\n\nconst checkForUnsavedChanges = () => {\n  if (hasUnsavedChanges()) {\n    return window.confirm('Leave with unsaved changes?')\n  } else {\n    return true\n  }\n}\n\nconst resourcePath = (resource, id, ...paths) => {\n  return _path(pluralize(resource), id, ...paths)\n}\n\nconst _resource = (path, object, action) => {\n  return _path(path, (object != null ? object.id : undefined) || object, action)\n}\n\nconst _collection = (path, action) => {\n  return _path(path, action)\n}\n\nconst _path = (...paths) => {\n  const path = (paths.filter((p) => (p != null))).join('/')\n\n  return `/${path}`\n}\n\nconst RoutingUtils = {\n  order,\n  customer,\n  product,\n  bundle,\n  customers,\n  documents,\n  orders,\n  bundles,\n  products,\n  document,\n  collection,\n  collections,\n  location,\n  calendarLink,\n  navigateToResource,\n  navigate,\n  navigateLink,\n  hasUnsavedChanges,\n  checkForUnsavedChanges,\n  resourcePath,\n  _resource,\n  _collection,\n  _path\n}\n\nexport default RoutingUtils\n","export default function mergeDefaultRequestOptions (options, defaults) {\n  if (!options) options = {}\n\n  let include = defaults.include || []\n\n  if (options.include) {\n    include.push(options.include)\n  }\n\n  include = include.join(',')\n\n  let fields = null\n\n  if (options.fields) {\n    fields = Object.assign({}, options.fields || {})\n\n    Object.keys(fields).forEach((field) => {\n      const fieldDefaults = defaults.fields && defaults.fields[field]\n\n      if (fieldDefaults) {\n        fields[field] = fields[field].concat(fieldDefaults)\n        fields[field] = fields[field].join(',')\n      }\n    })\n  }\n\n  const args = {\n    include\n  }\n\n  if (fields) {\n    args.fields = fields\n  }\n\n  return args\n}\n","import _some from 'lodash/some'\nimport _every from 'lodash/every'\n\nimport Format from 'shared/utils/format'\nimport Time from 'shared/utils/time'\nimport Routing from './routing_utils'\nimport Settings from 'shared/utils/settings'\nimport setPageTitle from 'shared/utils/setPageTitle'\nimport mergeDefaultRequestOptions from 'shared/utils/mergeDefaultRequestOptions'\nimport EventTracker from './event_tracker'\n\nexport { default as Format } from 'shared/utils/format'\nexport { default as Time } from 'shared/utils/time'\nexport { default as Routing } from './routing_utils'\nexport { default as Settings } from 'shared/utils/settings'\nexport { default as EventTracker } from './event_tracker'\nexport { featureEnabled, featureDisabled, featureAllowed, FeatureFlags } from 'shared/utils/features'\n\nexport { default as setPageTitle } from 'shared/utils/setPageTitle'\nexport { default as mergeDefaultRequestOptions } from 'shared/utils/mergeDefaultRequestOptions'\n\nconst getPermissions = () => {\n  const state = window.store.getState()\n  const employeeId = state.session.currentEmployeeId\n  const employee = state.orm.employees.getById(employeeId)\n\n  return employee.permissions || []\n}\n\nexport const hasPermission = (...permissions) => {\n  const employeePermissions = getPermissions()\n\n  return _some(permissions, (permission) => {\n    return employeePermissions.includes(permission)\n  })\n}\n\nexport const hasAllPermissions = (permissions) => {\n  const employeePermissions = getPermissions()\n\n  return _every(permissions, (permission) => {\n    return employeePermissions.includes(permission)\n  })\n}\n\nexport const URLRegexp =\n  /(https?:\\/\\/)?(www\\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{1,}\\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)/\nexport const PhoneRegexp = /tel:[+\\-\\d]*/\n\nexport const stringIsLink = (string) => {\n  return string.match(URLRegexp) || string.match(PhoneRegexp)\n}\n\nexport const prependProtocol = (string) => {\n  return string.replace(URLRegexp, (match) => {\n    if (!match.startsWith('http') && !match.startsWith('https') && !match.startsWith('mailto')) {\n      return `https://${match}`\n    }\n\n    return match\n  })\n}\n\nexport const generateUUID = () => {\n  try {\n    return crypto.randomUUID()\n    // eslint-disable-next-line no-unused-vars\n  } catch (error) {\n    // Fallback for older browsers and non-secure contexts\n    return window.URL.createObjectURL(new Blob([])).substring(34)\n  }\n}\n\nexport default {\n  hasPermission,\n  setPageTitle,\n  mergeDefaultRequestOptions,\n\n  Format,\n  Time,\n  Routing,\n  Settings,\n  EventTracker\n}\n","import Immutable from 'immutable'\nimport isEmpty from 'lodash/isEmpty'\nimport transform from 'lodash/transform'\n\nclass Collection extends Immutable.Record({\n  _objects: Immutable.OrderedMap({}),\n  _temporaryObjects: Immutable.OrderedMap({}),\n  _object: null,\n  isLoadingResource: false,\n  isLoadingCollection: false,\n  createdAt: null\n}) {\n  static initClass () {\n    // Persisted mutations\n    const persistedMutations = ['filter', 'sortBy', 'reverse']\n\n    persistedMutations.forEach((method) => {\n      return ((method) => {\n        this.prototype[method] = function () {\n          return this.set('_objects', this._objects[method](...arguments))\n        }\n\n        return this.prototype[method]\n      })(method)\n    })\n\n    // Delegate to objects list\n    const listMethods = ['forEach', 'map', 'indexOf']\n\n    listMethods.forEach((method) => {\n      return ((method) => {\n        this.prototype[method] = function () {\n          return this._objects.toList()[method](...arguments)\n        }\n\n        return this.prototype[method]\n      })(method)\n    })\n\n    // Delegate to objects\n    const objectMethods = ['toJSON', 'toObject', 'toJS', 'toArray', 'count', 'toList', 'first', 'isEmpty']\n\n    objectMethods.forEach((method) => {\n      return ((method) => {\n        this.prototype[method] = function () {\n          return this._objects[method](...arguments)\n        }\n\n        return this.prototype[method]\n      })(method)\n    })\n  }\n\n  constructor (object) {\n    super({ _object: object, createdAt: Date.now() })\n  }\n\n  // Immutable's way of checking 2 collections.\n  //\n  // @example\n  //   collection.is(collection2)\n  //\n  is (collection) {\n    return Immutable.is(this._objects, collection._objects)\n  }\n\n  strictEqual (collection) {\n    return this._objects.strictEqual(collection._objects)\n  }\n\n  // Hydrate data with delicious fresh data.\n  //\n  // @example\n  //   collection.hydrate([...])\n  //\n  hydrate (data) {\n    if (isEmpty(data)) {\n      return this\n    }\n\n    const mergeObjects = {}\n\n    for (const i in data) {\n      const attributes = data[i]\n      const id = attributes.id\n      const existingObject = this.getById(id)\n\n      if (existingObject) {\n        // Object exists, merge new data\n        mergeObjects[id] = existingObject.hydrate(attributes)\n      } else {\n        // Object does not yet exist, just return it\n        mergeObjects[id] = new this._object(attributes)\n      }\n    }\n\n    // Merge and return\n    return this._setObjects(this._objects.merge(mergeObjects))\n  }\n\n  // Invalidates the built-up cache by checking time passed and collection size.\n  //\n  // @example\n  //   collection.invalidateCache()\n  //   collection.invalidateCache({ sizeLimit: 500 })\n  //   collection.invalidateCache({ expiryTimeInMinutes: 5 })\n  //\n  invalidateCache (options = {}) {\n    if (!options.expiryTimeInMinutes) {\n      options.expiryTimeInMinutes = 15\n    }\n    if (!options.sizeLimit) {\n      options.sizeLimit = 100\n    }\n\n    const timeExpired = (Date.now() - this.createdAt) >= (options.expiryTimeInMinutes * (60 * 1000))\n    const sizeExceeded = this.size() > options.sizeLimit\n\n    if (timeExpired || sizeExceeded) {\n      // Return new empty collection\n      let collection = this\n\n      collection = collection.set('_objects', Immutable.OrderedMap({}))\n      collection = collection.set('createdAt', Date.now())\n\n      return this._persist(collection)\n    } else {\n      return this\n    }\n  }\n\n  clearCache () {\n    const collection = this.set('_objects', Immutable.OrderedMap({}))\n\n    return this._persist(collection)\n  }\n\n  // Lookup: Find all objects by given attributes and values.\n  //\n  // @example\n  //   collection.getAll(employee_id: 1)\n  //\n  getAll (matchAttributes) {\n    if (matchAttributes) {\n      const results = this._objects.filter(function (object) {\n        let match = true\n\n        for (const key in matchAttributes) {\n          const value = matchAttributes[key]\n\n          if (value instanceof Array || (value?.toArray && value?.includes)) {\n            if (!value.includes(object[key])) {\n              match = false\n            }\n          } else {\n            if (object[key] !== value) {\n              match = false\n            }\n          }\n        }\n\n        return match\n      })\n\n      return this.set('_objects', results)\n    } else {\n      return this\n    }\n  }\n\n  // Lookup: Finds first by given attributes and values.\n  //\n  // @example\n  //   collection.getFirst(slug: 'imac')\n  //\n  getFirst (matchAttributes) {\n    return this.getAll(matchAttributes).first()\n  }\n\n  // Lookup: Find record by id.\n  // When an array is given it will return the matching objects in that order.\n  //\n  // @example\n  //   collection.getById(1)\n  //   collection.getById([2, 1, 3])\n  //\n  getById (id) {\n    if (id instanceof Array) {\n      return this.getAll({ id }).sortBy((o) => id.indexOf(o.id))\n    } else if (id?.toArray) {\n      // Some kind of ImmutableJS collection, or an Iterator.\n      return this.getById(id.toArray())\n    } else if (id) {\n      return this._objects.get(id.toString()) || this._temporaryObjects.get(id.toString())\n    } else {\n      return null\n    }\n  }\n\n  // Simple sort by attribute.\n  //\n  // @example\n  //   collection.sort('id', 'DESC')\n  //\n  sort (attribute, direction = 'ASC') {\n    const naturalCompare = function (a, b) {\n      if ((typeof a !== 'string') && (typeof b !== 'string')) {\n        if (a < b) {\n          return -1\n        } else if (a > b) {\n          return 1\n        } else {\n          return 0\n        }\n      }\n\n      const ax = []\n      const bx = []\n\n      a.replace(/(\\d+)|(\\D+)/g, function (_, $1, $2) {\n        ax.push([\n          $1 || Infinity,\n          $2 || ''\n        ])\n      })\n      b.replace(/(\\d+)|(\\D+)/g, function (_, $1, $2) {\n        bx.push([\n          $1 || Infinity,\n          $2 || ''\n        ])\n      })\n      while (ax.length && bx.length) {\n        const an = ax.shift()\n        const bn = bx.shift()\n        const nn = (an[0] - (bn[0])) || an[1].localeCompare(bn[1])\n\n        if (nn) {\n          return nn\n        }\n      }\n\n      return ax.length - (bx.length)\n    }\n\n    const sortedObjects = this._objects.sort((a, b) => {\n      if (direction === 'DESC') {\n        return naturalCompare(b[attribute], a[attribute])\n      } else {\n        return naturalCompare(a[attribute], b[attribute])\n      }\n    })\n\n    return this.set('_objects', sortedObjects)\n  }\n\n  pluck (attribute) {\n    return this.map((o) => o[attribute]).toArray()\n  }\n\n  /**\n   * Returns array of objects with the attributes from the collection.\n   *\n   * @example\n   *   locations.pluckObject({ label: 'name', value: 'id' })\n   *\n   * @returns\n   *   [{ label: 'Leeuwarden', value: 1 }, { label: 'Amsterdam', value: 2 }]\n   */\n  pluckObject (attributesObject) {\n    return this.map((o) => {\n      return transform(attributesObject, (result, value, key) => {\n        result[key] = o[value]\n      })\n    }).toJS()\n  }\n\n  // Merges objects with given data.\n  //\n  merge (object) {\n    return this._setObjects(this._objects.merge(object))\n  }\n\n  groupBy (func) {\n    const groupById = {}\n\n    this._objects.forEach((object) => {\n      const value = func(object)\n\n      if (!groupById[value]) {\n        groupById[value] = []\n      }\n\n      return groupById[value].push(object.id)\n    })\n\n    let map = Immutable.OrderedMap()\n\n    for (const key in groupById) {\n      const ids = groupById[key]\n\n      map = map.set(key, this.getById(ids))\n    }\n\n    return map\n  }\n\n  // Add object.\n  //\n  add (id, attributes, options = {}) {\n    if (options.temporary) {\n      attributes.temporary = true\n\n      // Temporary object, add to _temporaryObjects map\n      return this._persist(this.setIn(['_temporaryObjects', id.toString()], new this._object(attributes)))\n    } else {\n      const data = {}\n\n      data[`${id}`] = attributes\n\n      return this.hydrate(data)\n    }\n  }\n\n  // Update object with given id.\n  //\n  update (id, attributes) {\n    const object = this.getById(id)\n\n    if (!object) {\n      return this.add(id, attributes)\n    }\n\n    if (object.temporary) {\n      return this._persist(this.setIn(['_temporaryObjects', id.toString()], object.hydrate(attributes)))\n    } else {\n      return this._setObjects(this._objects.set(id.toString(), object.hydrate(attributes)))\n    }\n  }\n\n  // Delete object with given id.\n  //\n  delete (id) {\n    const object = this.getById(id)\n\n    if (object) {\n      if (object.temporary) {\n        return this._persist(this.deleteIn(['_temporaryObjects', id.toString()]))\n      } else {\n        return this._setObjects(this._objects.delete(id.toString()))\n      }\n    } else {\n      return this\n    }\n  }\n\n  // Set objects, this will return a new instance because it is immutable.\n  // It will also set the collection on the object.\n  //\n  _setObjects (objects) {\n    return this._persist(this.set('_objects', objects))\n  }\n\n  // Persists collection on the object.\n  //\n  _persist (collection) {\n    this._object._collection = collection\n\n    return this._object._collection\n  }\n\n  size () {\n    return this._objects.size\n  }\n\n  get length () {\n    return this.size()\n  }\n}\nCollection.initClass()\n\nexport default Collection\n","import { Map, Record } from 'immutable'\n\nexport const UPDATE_UI = 'UPDATE_UI'\nconst MOUNT_UI = 'MOUNT_UI'\nconst UNMOUNT_UI = 'UNMOUNT_UI'\n\nconst defaultState = new Map({})\n\nexport default function reducer (state = defaultState, action) {\n  const key = action.payload && action.payload.key\n\n  switch (action.type) {\n    case MOUNT_UI: {\n      const { defaults } = action.payload\n      const Defaults = Record(defaults)\n\n      state = state.set(key, new Defaults())\n      break\n    }\n    case UPDATE_UI: {\n      const { values } = action.payload\n\n      if (state.get(key)) {\n        for (const propertyName in values) {\n          state = state.setIn([key, propertyName], values[propertyName])\n        }\n      }\n      break\n    }\n    case UNMOUNT_UI:\n      state = state.delete(key)\n      break\n  }\n\n  return state\n}\n\nexport function updateUI (key, values) {\n  return {\n    type: UPDATE_UI,\n    payload: {\n      key,\n      values\n    }\n  }\n}\n\nexport function mountUI (key, defaults) {\n  return {\n    type: MOUNT_UI,\n    payload: {\n      key,\n      defaults\n    }\n  }\n}\n\nexport function unmountUI (key) {\n  return {\n    type: UNMOUNT_UI,\n    payload: {\n      key\n    }\n  }\n}\n","import decorate from './ui'\nimport reducer, { updateUI } from './reducer'\n\nexport default decorate\nexport { reducer }\nexport { decorate }\nexport { updateUI }\n","import React, { Component } from 'react'\nimport propTypes from 'prop-types'\nimport { bindActionCreators } from 'redux'\nimport { connect as reduxConnect } from 'react-redux'\nimport { updateUI, mountUI, unmountUI } from './reducer'\nimport cuid from 'cuid'\n\nexport default function decorate (key, opts = {}) {\n  if (typeof key === 'object') {\n    opts = key\n    key = opts.key\n  }\n\n  function mapStateToProps (state, props) {\n    const uiKey = [key, props.uiKey].join('')\n\n    return {\n      uiKey,\n      uiDefaults: opts.state || {},\n      ui: state.interface.get(uiKey) || opts.state\n    }\n  }\n\n  function mapDispatchToProps (dispatch, _props) {\n    return bindActionCreators({\n      updateUI,\n      mountUI,\n      unmountUI\n    }, dispatch)\n  }\n\n  const connect = opts.connectWith || reduxConnect\n  const connector = connect(mapStateToProps, mapDispatchToProps)\n\n  return (WrappedComponent) => {\n    class InterfaceComponent extends Component {\n      static displayName = `ReduxInterface(${WrappedComponent.displayName})`\n\n      static propTypes = {\n        // State\n        uiKey: propTypes.string.isRequired,\n        uiDefaults: propTypes.object,\n        ui: propTypes.object,\n        // Dispatches\n        updateUI: propTypes.func.isRequired,\n        mountUI: propTypes.func.isRequired,\n        unmountUI: propTypes.func.isRequired\n      }\n\n      UNSAFE_componentWillMount () {\n        this.props.mountUI(this.props.uiKey, this.props.uiDefaults)\n      }\n\n      componentWillUnmount () {\n        if (opts.persist !== true) {\n          if (window && window.requestAnimationFrame) {\n            window.requestAnimationFrame(() => this.props.unmountUI(this.props.uiKey))\n          } else {\n            this.props.unmountUI(this.props.uiKey)\n          }\n        }\n      }\n\n      updateUI (values) {\n        return this.props.updateUI(this.props.uiKey, values)\n      }\n\n      render () {\n        return (\n          <WrappedComponent {...this.props} updateUI={this.updateUI.bind(this)} />\n        )\n      }\n    }\n\n    const ConnectedComponent = connector(InterfaceComponent)\n\n    class ComponentWithKey extends Component {\n      static propTypes = {\n        uiKey: propTypes.string\n      }\n\n      render () {\n        this.uiKey = this.uiKey || this.props.uiKey || cuid()\n\n        return (\n          <ConnectedComponent uiKey={this.uiKey} {...this.props} />\n        )\n      }\n    }\n\n    return ComponentWithKey\n  }\n}\n","import { useNavigate } from 'react-router-dom'\n\nconst History = {\n  navigate: null,\n  push: (page, ...rest) => History.navigate(page, ...rest)\n}\n\nconst RouteSetter = () => {\n  History.navigate = useNavigate()\n\n  return null\n}\n\nexport {\n  History,\n  RouteSetter\n}\n","import _every from 'lodash/every'\n\nexport const FeatureFlags = {\n  // Enable the delivery options\n  DELIVERIES: 'deliveries',\n  // Show a different powered by link and text\n  EQUIPMENT_RENTAL_SOFTWARE_LINK: 'equipment_rental_software_link',\n  // Enable address validation for all addresses\n  NEW_ADDRESS_VALIDATION: 'new_address_validation',\n  // Enable payment charges, authorizations & refunds\n  NEW_PAYMENTS: 'new_payments'\n}\n\n/**\n * Checks if feature is enabled.\n */\nexport const featureEnabled = (...features) => {\n  const state = (window.store || window.booqableGetStore?.())?.getState()\n  const featuresArray = state.session?.enabledFeatures || state.client?.enabledFeatures\n\n  return _every(features, (feature) => {\n    return (featuresArray || []).includes(feature)\n  })\n}\n\n/**\n * Checks if feature is disabled.\n */\nexport const featureDisabled = (...features) => !featureEnabled(...features)\n\n/**\n * Back office only\n * Checks if feature is part of subscription.\n */\nexport const featureAllowed = (...features) => {\n  const state = window.store?.getState()\n\n  return _every(features, (feature) => {\n    return (state.session.features || []).includes(feature)\n  })\n}\n","// Libraries\nimport _every from 'lodash/every'\nimport _some from 'lodash/some'\nimport _keys from 'lodash/keys'\nimport _find from 'lodash/find'\nimport _toPairs from 'lodash/toPairs'\nimport moment, { localMoment, localMomentInUTC } from 'shared/lib/moment'\n\n// Shared\nimport SettingUtils from 'shared/utils/settings'\nimport Collection from 'shared/lib/orm/collection'\nimport { timeslotsApplicable } from './timeslots'\n\nconst dayMap = {\n  0: ['sun', 'weekend', 'all'],\n  1: ['mon', 'weekday', 'all'],\n  2: ['tue', 'weekday', 'all'],\n  3: ['wed', 'weekday', 'all'],\n  4: ['thu', 'weekday', 'all'],\n  5: ['fri', 'weekday', 'all'],\n  6: ['sat', 'weekend', 'all']\n}\n\n// Create a moment instance which take the company timezone into account\nconst getNow = (state) => {\n  const companyUtcOffset = state.client && state.client.company && state.client.company.get('utc_offset')\n\n  let now\n\n  if (companyUtcOffset) {\n    const userUtcOffset = localMoment().utcOffset()\n    // Get the difference in minutes between user and company timezone\n    const differenceInMinutes = companyUtcOffset - userUtcOffset\n    // Add the difference to the time the user is currently in\n    // so we perform calculations against the companies time in user local time\n    const nowInCompanyTimezone = localMomentInUTC().add(differenceInMinutes, 'minutes')\n\n    // Fallback to now if users time is ahead of company time\n    now = (differenceInMinutes < 0) ? localMomentInUTC() : nowInCompanyTimezone\n  } else {\n    now = localMomentInUTC()\n  }\n\n  return now\n}\n\nconst isAfterLagTime = (date, now, dateOnly) => {\n  // Make sure we fulfill lag time requirements\n  if (SettingUtils.get('store.use_order_lag_time')) {\n    if (\n      (SettingUtils.get('store.use_times') || SettingUtils.get('store.order_lag_time_interval') === 'hours') &&\n      !dateOnly\n    ) {\n      if (date.diff(\n        now,\n        SettingUtils.get('store.order_lag_time_interval')\n      ) < SettingUtils.get('store.order_lag_time_value')) return false\n    } else {\n      // Times disabled, just compare the dates\n      const nowPlusLag = now.clone()\n        .startOf('day')\n        .add(\n          SettingUtils.get('store.order_lag_time_value'),\n          SettingUtils.get('store.order_lag_time_interval')\n        )\n        .subtract(1, 'day')\n\n      return date.isAfter(nowPlusLag, 'day')\n    }\n  }\n\n  // No lagtime so always true\n  return true\n}\n\nconst isOperatingRulesInConflict = (operatingRules, dataTypes) => {\n  const usesFixedTimeslot = dataTypes.includes('timeslot_fixed')\n  const usesBusinessHours = dataTypes.includes('hours')\n  if (usesFixedTimeslot && usesBusinessHours) {\n    const timeSlots = []\n    const businessHours = []\n    operatingRules.forEach((rule) => {\n      if (rule.data_type === 'timeslot_fixed') {\n        timeSlots.push(..._toPairs(rule.data)\n          .map(([day, value]) => ({ day, ...value }))\n          .filter((value) => value.day !== 'length'))\n        return\n      }\n      if (rule.data_type === 'hours') {\n        businessHours.push(..._toPairs(rule.data).map(([day, value]) => ({ day, ...value })))\n        return\n      }\n    })\n\n    return !timeslotsApplicable(timeSlots, businessHours)\n  }\n\n  return false\n}\n\nexport const getOperatingRules = (state, options = {}) => {\n  // Grab operatingRules from state\n  const dataTypes = [state.settings.get('store.period_type')]\n  const operatingRulesCollection = options.operatingRules || state.orm.operating_rules\n  if (state.settings.get('store.use_business_hours')) {\n    dataTypes.push('hours')\n  }\n\n  if (state.settings.get('store.use_away_mode')) {\n    dataTypes.push('away')\n  }\n\n  if (isOperatingRulesInConflict(operatingRulesCollection, dataTypes)) {\n    return new Collection()\n  }\n\n  return operatingRulesCollection && operatingRulesCollection.getAll({ data_type: dataTypes })\n}\n\nconst isInAwayPeriod = (date, operatingRules) => {\n  const awayRules = operatingRules.getAll({ data_type: 'away' }).toArray()\n\n  if (awayRules.length === 0) return false\n\n  const notInAway = _every(awayRules, (operatingRule) => {\n    const range = moment.range(\n      moment(operatingRule.data.away.from).startOf('day'),\n      moment(operatingRule.data.away.till).endOf('day')\n    )\n\n    return !range.contains(date)\n  })\n\n  return !notInAway\n}\n\nconst isInPast = (date, now, dateOnly = false) => {\n  if (dateOnly) {\n    const adjustedDate = date.clone().startOf('day')\n    const adjustedNow = now.clone().startOf('day')\n\n    if (adjustedDate.isBefore(adjustedNow)) return true\n  } else {\n    if (date.isBefore(now)) return true\n  }\n\n  return false\n}\n\nexport const isWithinOpeningHours = (date, operatingRules, skipTimeslots, dateOnly, allowPast = false) => {\n  if (!date) return false\n\n  const periodType = SettingUtils.get('store.period_type')\n\n  // Check if we use fixed timeslots, if so check if there are any timeslots available for given date.\n  // This is like the reserved behavior of the operating hours. We should skip the rest of the check.\n  if (periodType === 'timeslot_fixed' && !skipTimeslots && !dateOnly) {\n    return operatingRuleUtils.fixedTimeslotsForDate(\n      operatingRules.getAll({ data_type: 'timeslot_fixed' }), date,\n      { allowPast }\n    ).size() > 0\n  }\n\n  // No operating hours set, everything is available!\n  if (operatingRules.getAll({ data_type: 'hours' }).size() === 0) return true\n\n  // Make a map of each day type for easy access\n  const operatingHoursPerType = {}\n\n  operatingRules.getAll({ data_type: 'hours' }).forEach((operatingRule) => {\n    const dayType = _keys(operatingRule.data)[0]\n\n    operatingHoursPerType[dayType] = operatingHoursPerType[dayType] || []\n    operatingHoursPerType[dayType].push(operatingRule)\n  })\n\n  let operatingHours = null\n  const dayIndex = date.day()\n  const dayTypes = dayMap[dayIndex]\n\n  // Grab the operating hours for the day in date\n  // If every Weekday is set, the rule for Monday should have priority for Mondays\n  dayTypes.forEach((dayType) => {\n    operatingHours = operatingHours || operatingHoursPerType[dayType]\n  })\n\n  let isOpen\n\n  if (operatingHours) {\n    if (dateOnly) {\n      // We have operating hours today so it must be open\n      isOpen = true\n    } else {\n      // Check by time\n      isOpen = _some(operatingHours, (operatingRule) => {\n        const dayType = _keys(operatingRule.data)[0]\n        const from = operatingRule.data[dayType].from\n        const till = operatingRule.data[dayType].till\n\n        const dateString = date.format('YYYY-MM-DD')\n\n        const openRange = moment.range(\n          moment(`${dateString} ${from}`, 'YYYY-MM-DD HH-mm'),\n          moment(`${dateString} ${till}`, 'YYYY-MM-DD HH-mm')\n        )\n\n        return openRange.contains(date)\n      })\n    }\n  } else {\n    // No operating hours found for this day, so its not open\n    isOpen = false\n  }\n\n  return isOpen\n}\n\nconst operatingRuleUtils = {\n  /*\n  * Filters (fixed) timeslots for a specific date.\n  */\n  fixedTimeslotsForDate (timeslots, date, options = {}) {\n    if (date) {\n      date = moment(date)\n    } else {\n      date = moment()\n    }\n\n    const dayIndex = date.day()\n    const dayTypes = dayMap[dayIndex]\n\n    const groupedTimeslots = timeslots.groupBy((timeslot) => _keys(timeslot.data)[0])\n\n    for (const day of dayTypes) {\n      const foundTimeSlots = groupedTimeslots.get(day)\n\n      if (foundTimeSlots) {\n        // Only return slots that are actually selectable\n        return foundTimeSlots.filter((timeslot) => {\n          const key = _keys(timeslot.data)[0]\n          const from = timeslot.data[key].from\n          const hour = from.split(':')[0]\n          const minute = from.split(':')[1]\n\n          const time = date.clone().set({\n            hour,\n            minute\n          })\n\n          return this.isTimeSelectable(time, { ...options, skipTimeslots: true })\n        })\n      }\n    }\n\n    return new Collection()\n  },\n  /*\n  * Checks of given time is available according to opening hours.\n  *\n  * @example\n  *   isTimeSelectable(moment('01-01-2018 09:00'), { skipTimeSlots: true })\n  */\n  isTimeSelectable (date, options = {}) {\n    const state = (window.store || window.booqableStore).getState()\n    const now = getNow(state)\n\n    if (!options.allowPast) {\n      // Date is in the past, no time available\n      const dateOnly = !SettingUtils.get('store.use_times') && SettingUtils.get('orders.start_type') !== 'fixed'\n\n      if (isInPast(date, now, dateOnly)) return false\n\n      // Make sure to respect prevent last minute reservations setting\n      if (!isAfterLagTime(date, now, options.dateOnly)) return false\n    }\n\n    // Only perform expensive and/or cached calculations\n    // when we are sure date is not in the past\n\n    this._timeAvailableCache = this._timeAvailableCache || {}\n\n    const cacheKey = options.dateOnly ? date.format('YYYY-MM-DD') : date.format()\n\n    if (this._timeAvailableCache[cacheKey] !== undefined) {\n      return this._timeAvailableCache[cacheKey]\n    }\n\n    // Check if the day is selectable at all, if not then there's no need to check for each time\n    if (!options.dateOnly && !this.isTimeSelectable(date, { ...options, dateOnly: true })) {\n      // Cache result\n      this._timeAvailableCache[cacheKey] = false\n\n      return false\n    }\n\n    const operatingRules = getOperatingRules(state, options)\n\n    // No operating hours set, everything is available!\n    if (!operatingRules || operatingRules.size() === 0) return true\n\n    // Check if there is any away period first, these are full days (from/till)\n    // Return false if there is any away period, no need to continue\n    if (isInAwayPeriod(date, operatingRules)) {\n      // Cache result\n      this._timeAvailableCache[cacheKey] = false\n\n      return false\n    }\n\n    const isOpen = isWithinOpeningHours(\n      date, operatingRules, options.skipTimeslots, options.dateOnly, options.allowPast\n    )\n\n    // Cache result\n    this._timeAvailableCache[cacheKey] = isOpen\n\n    return isOpen\n  },\n  firstTimeSelectable () {\n    const time = localMomentInUTC()\n\n    const minute = time.minute()\n\n    // Round per 15 minutes\n    if (minute === 0) {\n      // Do nothing\n    } else if (minute < 15) {\n      time.set('minute', 15)\n    } else if (minute < 30) {\n      time.set('minute', 30)\n    } else if (minute < 45) {\n      time.set('minute', 45)\n    } else if (minute <= 59) {\n      time.set('minute', 0)\n      time.add(1, 'hour')\n    }\n\n    while (!this.isTimeSelectable(time)) {\n      // Accommodations for being in an away period\n      // prevents hanging when in long away periods\n      const awayPeriod = getCurrentAwayPeriod(time)\n\n      if (awayPeriod) {\n        const endOfAway = moment(awayPeriod.data.away.till)\n\n        time.set({ year: endOfAway.year(), month: endOfAway.month(), date: endOfAway.date() })\n        time.endOf('day')\n      }\n\n      time.add(15, 'minutes')\n    }\n\n    return time\n  },\n  isWithinOpeningHours\n}\n\nexport default operatingRuleUtils\n\nexport const getCurrentAwayPeriod = (date) => {\n  const state = (window.store || window.booqableStore).getState()\n  const operatingRules = getOperatingRules(state)\n  const awayRules = operatingRules.getAll({ data_type: 'away' }).toArray()\n\n  if (awayRules.length === 0) return false\n\n  const currentAway = _find(awayRules, (operatingRule) => {\n    const range = moment.range(\n      moment(operatingRule.data.away.from).startOf('day'),\n      moment(operatingRule.data.away.till).endOf('day')\n    )\n\n    return range.contains(date)\n  })\n\n  return currentAway\n}\n","export default function setPageTitle (title) {\n  const state = window.store.getState()\n  const company = state.orm.companies.first()\n\n  if (typeof title === 'function') {\n    title = title()\n  }\n\n  document.title = `${title} | ${company && company.name} | Booqable`\n}\n","import moment, { localMomentInUTC } from 'shared/lib/moment'\nimport SettingUtils from 'shared/utils/settings'\nimport OperatingHoursUtils, { getCurrentAwayPeriod } from 'shared/utils/operating_rules'\nimport merge from 'lodash/merge'\n\nexport function browserUseAmPm () {\n  const date = new Date(Date.UTC(2013, 11, 31, 3, 0, 0))\n  const timeString = date.toLocaleTimeString()\n\n  return !!(timeString.match(/am|pm/i) || timeString.toString().match(/am|pm/i))\n}\n\nwindow.browserUseAmPm = browserUseAmPm()\n\nconst extractAmPm = (string) => {\n  const amMatcher = string.match(/am/gi)\n  const pmMatcher = string.match(/pm/gi)\n\n  if (amMatcher) {\n    return 'am'\n  } else if (pmMatcher) {\n    return 'pm'\n  } else {\n    return null\n  }\n}\n\nexport const parseFixedDefaultTime = (rawDefaultTime) => {\n  const minute = rawDefaultTime.split(/:|\\./)[1]?.match(/\\d*/)[0]\n  const amOrPm = extractAmPm(rawDefaultTime)\n\n  let hour = rawDefaultTime.split(/:|\\./)[0]?.match(/\\d*/)[0]\n\n  if (amOrPm) {\n    if (hour === '12') {\n      hour = '0'\n    }\n\n    if (amOrPm === 'pm') {\n      hour = parseInt(hour, 10) + 12\n    }\n  }\n\n  return { hour, minute }\n}\n\nexport const defaultTime = (type, options = {}) => {\n  let time = options.date ? moment(options.date) : localMomentInUTC()\n\n  const typeSetting = SettingUtils.get(`orders.${type}_type`, 'relative')\n\n  switch (typeSetting) {\n    case 'relative': {\n      const offset = parseFloat(SettingUtils.get(`orders.${type}_relative_offset`, 0))\n\n      time.add(offset, 'hour')\n\n      break\n    }\n    case 'fixed': {\n      const value = SettingUtils.get(`orders.${type}_fixed_at`, '09:00') || '09:00'\n      const { hour, minute } = parseFixedDefaultTime(value)\n\n      if (hour) time = time.hour(hour)\n      if (minute) time = time.minute(minute)\n\n      break\n    }\n  }\n\n  // Round to the minute\n  time.set('millisecond', 0)\n  time.set('second', 0)\n\n  const minute = time.minute()\n\n  if (typeSetting === 'relative') {\n    // Round per 15 minutes\n    if (minute === 0) {\n      // Do nothing\n    } else if (minute < 15) {\n      time.set('minute', 15)\n    } else if (minute < 30) {\n      time.set('minute', 30)\n    } else if (minute < 45) {\n      time.set('minute', 45)\n    } else if (minute <= 59) {\n      time.set('minute', 0)\n      time.add(1, 'hour')\n    }\n  }\n\n  if (options.defaultStartTime) {\n    // If the defaultStopTime is before the defaultStartTime, we overflow to the next day.\n    // The duration will always still be less than a day (24 hours).\n    if (time.isSameOrBefore(options.defaultStartTime)) {\n      time.add(1, 'day')\n    }\n  }\n\n  // If the time we calculate is before the defaultStartTime (or the current time),\n  // we overflow to the next day.\n  if (type === 'stop' && time.isSameOrBefore(options.defaultStartTime || moment())) {\n    // Start time is higher than the stop time, add the diff in days\n    const diffInDays = Math.abs(time.diff(options.defaultStartTime || moment(), 'days'))\n\n    time.add(diffInDays + 1, 'day')\n  }\n\n  // Make sure we are outside of an away period\n  const currentAwayPeriod = getCurrentAwayPeriod(time)\n\n  if (currentAwayPeriod) {\n    const awayEnd = moment(currentAwayPeriod.data.away.till)\n\n    time = time.set({ year: awayEnd.year(), month: awayEnd.month(), date: awayEnd.date() })\n  }\n\n  if (options.useOpeningHours !== false) {\n    if (options.dontChangeDate !== true) {\n      // Look for first available day if day isn't available\n      while (!OperatingHoursUtils.isTimeSelectable(time, merge({}, options, { dateOnly: true }))) {\n        time.add(1, 'day')\n      }\n    }\n\n    if (!OperatingHoursUtils.isTimeSelectable(time, options)) {\n      if (type === 'start') {\n        time.startOf('day')\n      } else {\n        time.endOf('day')\n      }\n\n      while (!OperatingHoursUtils.isTimeSelectable(time, options)) {\n        // 96 15 minute segments in a day (60 * 24 / 15)\n        for (let i = 1; i <= 96; ++i) {\n          if (type === 'start') {\n            time.add(15, 'minutes')\n          } else {\n            if (time.minutes() === 59) {\n              time.subtract(14, 'minutes')\n            } else {\n              time.subtract(15, 'minutes')\n            }\n          }\n\n          if (OperatingHoursUtils.isTimeSelectable(time, options)) {\n            return time\n          }\n        }\n\n        if (type === 'stop') {\n          time.add(1, 'day')\n          time.endOf('day')\n        }\n      }\n    }\n  }\n\n  return time\n}\n\nexport const defaultStartTime = (options = {}) => {\n  return defaultTime('start', options)\n}\n\nexport const defaultStopTime = (options = {}) => {\n  return defaultTime('stop', options)\n}\n\nexport default {\n  defaultStartTime,\n  defaultStopTime,\n  defaultTime\n}\n","import moment from 'moment'\nimport _intersection from 'lodash/intersection'\n\nconst days = {\n  all: ['mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'],\n  weekday: ['mon', 'tue', 'wed', 'thu', 'fri'],\n  weekend: ['sat', 'sun'],\n  mon: ['mon'],\n  tue: ['tue'],\n  wed: ['wed'],\n  thu: ['thu'],\n  fri: ['fri'],\n  sat: ['sat'],\n  sun: ['sun']\n}\n\nfunction checkTimeSlot (openingHours) {\n  return (timeslot) => {\n    const operatingRule = openingHours.find((rule) => {\n      const timeslotDays = days[timeslot.day]\n      const ruleDays = days[rule.day]\n\n      return (\n        _intersection(timeslotDays, ruleDays).length > 0 &&\n        moment(timeslot.from, 'HH:mm').isSameOrAfter(moment(rule.from, 'HH:mm'), 'second') &&\n        moment(timeslot.till, 'HH:mm').isSameOrBefore(moment(rule.till, 'HH:mm'), 'second')\n      )\n    })\n\n    if (operatingRule) return true\n\n    return false\n  }\n}\n\nexport function timeslotsApplicable (timeslots, openingHours) {\n  return timeslots.some(checkTimeSlot(openingHours))\n}\n\nexport function allTimeSlotsApplicable (timeslots, openingHours) {\n  return timeslots.every(checkTimeSlot(openingHours))\n}\n"],"names":["EventTracker","track","name","data","callback","properties","merge","Object","assign","window","globalTrackingData","feature_category","feature","analytics","environment","console","debug","JSON","stringify","sendData","event","response","request","method","url","featureCategory","path","location","pathname","includes","trackDispatch","action","state","type","payload","this","import","uploaded","file","columns","length","items","mapped_columns","mapping","size","completed","step","attributes","options","context","document_id","amount","amount_in_cents","deposit","deposit_in_cents","payment_type","startsWith","transaction_type","custom_date","paid_at","order","_resource","customer","product","bundle","customers","undefined","_collection","documents","orders","bundles","products","document","collection","collections","calendarLink","formatDate","date","moment","format","from","till","qs","encode","navigateToResource","object","navigate","eval","fullPath","e","ctrlKey","metaKey","button","preventDefault","checkForUnsavedChanges","History","push","localStorage","getItem","parse","target","resource","removeItem","navigateLink","element","currentTarget","trackingEvent","getAttribute","external","hrefURL","URL","href","trackingHref","search","link","replace","origin","RoutingUtils","hasUnsavedChanges","testMode","dirtyForms","skipUnsavedChangesCheck","values","filter","value","confirm","resourcePath","id","paths","_path","pluralize","p","join","mergeDefaultRequestOptions","defaults","include","fields","keys","forEach","field","fieldDefaults","concat","args","getPermissions","store","getState","employeeId","session","currentEmployeeId","orm","employees","getById","permissions","hasPermission","employeePermissions","_some","permission","hasAllPermissions","_every","URLRegexp","PhoneRegexp","stringIsLink","string","match","prependProtocol","generateUUID","crypto","randomUUID","error","createObjectURL","Blob","substring","setPageTitle","Format","Time","Routing","Settings","Collection","Immutable","_objects","_temporaryObjects","_object","isLoadingResource","isLoadingCollection","createdAt","initClass","prototype","set","arguments","toList","constructor","super","Date","now","is","strictEqual","hydrate","isEmpty","mergeObjects","i","existingObject","_setObjects","invalidateCache","expiryTimeInMinutes","sizeLimit","timeExpired","sizeExceeded","_persist","clearCache","getAll","matchAttributes","results","key","Array","toArray","getFirst","first","sortBy","o","indexOf","get","toString","sort","attribute","direction","naturalCompare","a","b","ax","bx","_","$1","$2","Infinity","an","shift","bn","nn","localeCompare","sortedObjects","pluck","map","pluckObject","attributesObject","transform","result","toJS","groupBy","func","groupById","ids","add","temporary","setIn","update","delete","deleteIn","objects","UPDATE_UI","MOUNT_UI","UNMOUNT_UI","defaultState","Map","reducer","Defaults","Record","propertyName","updateUI","mountUI","unmountUI","opts","connector","connectWith","reduxConnect","props","uiKey","uiDefaults","ui","interface","dispatch","_props","bindActionCreators","WrappedComponent","InterfaceComponent","Component","static","displayName","propTypes","isRequired","UNSAFE_componentWillMount","componentWillUnmount","persist","requestAnimationFrame","render","React","_extends","bind","ConnectedComponent","ComponentWithKey","cuid","page","rest","RouteSetter","useNavigate","FeatureFlags","DELIVERIES","EQUIPMENT_RENTAL_SOFTWARE_LINK","NEW_ADDRESS_VALIDATION","NEW_PAYMENTS","featureEnabled","features","booqableGetStore","featuresArray","enabledFeatures","client","featureDisabled","featureAllowed","dayMap","getOperatingRules","dataTypes","settings","operatingRulesCollection","operatingRules","operating_rules","isOperatingRulesInConflict","usesFixedTimeslot","usesBusinessHours","timeSlots","businessHours","rule","data_type","_toPairs","day","timeslotsApplicable","isWithinOpeningHours","skipTimeslots","dateOnly","allowPast","SettingUtils","operatingRuleUtils","fixedTimeslotsForDate","operatingHoursPerType","operatingRule","dayType","_keys","operatingHours","dayIndex","isOpen","dateString","range","contains","timeslots","dayTypes","groupedTimeslots","timeslot","foundTimeSlots","hour","split","minute","time","clone","isTimeSelectable","booqableStore","companyUtcOffset","company","differenceInMinutes","localMoment","utcOffset","nowInCompanyTimezone","localMomentInUTC","getNow","isInPast","adjustedDate","startOf","adjustedNow","isBefore","isAfterLagTime","nowPlusLag","subtract","isAfter","diff","_timeAvailableCache","cacheKey","isInAwayPeriod","awayRules","away","endOf","firstTimeSelectable","awayPeriod","getCurrentAwayPeriod","endOfAway","year","month","_find","title","companies","browserUseAmPm","timeString","UTC","toLocaleTimeString","parseFixedDefaultTime","rawDefaultTime","amOrPm","amMatcher","pmMatcher","extractAmPm","parseInt","defaultTime","typeSetting","offset","parseFloat","defaultStartTime","isSameOrBefore","diffInDays","Math","abs","currentAwayPeriod","awayEnd","useOpeningHours","dontChangeDate","OperatingHoursUtils","minutes","defaultStopTime","days","all","weekday","weekend","mon","tue","wed","thu","fri","sat","sun","checkTimeSlot","openingHours","find","timeslotDays","ruleDays","_intersection","isSameOrAfter","some","allTimeSlotsApplicable","every"],"sourceRoot":""}