'use strict';

const store = require('./store-27073b3b.js');

function getLocationById(id) {
  return ((store.state === null || store.state === void 0 ? void 0 : store.state.locations) || []).find((location) => (location === null || location === void 0 ? void 0 : location.id) === id);
}

const contactInformation = ({ beforeHTML = "<h1>What is the best phone number to use?</h1>", value = null, name = "contactInformation", } = {}) => ({
  name,
  beforeHTML,
  fields: [
    {
      autocomplete: "off",
      label: " Contact Number",
      labelPosition: "stacked",
      placeholder: "xxx-xxx-xxxx",
      name: "phone",
      type: "phone",
      clearInput: true,
      value,
      required: true,
    },
    // {
    //   label: "Email",
    //   labelPosition: "stacked",
    //   placeholder: "example@email.com",
    //   name: "email",
    //   type: "text",
    //   clearInput: true,
    //   required: true,
    //   value,
    // },
  ],
});

exports.contactInformation = contactInformation;
exports.getLocationById = getLocationById;
