{"version":3,"sources":["webpack:///./src/validators/exportPoolLocations.js","webpack:///./src/fixtures/starter-tier.js","webpack:///./src/validators/validations.js","webpack:///./src/components/BaseAppStatusMarker.vue","webpack:///src/components/BaseAppStatusMarker.vue","webpack:///./src/components/BaseAppStatusMarker.vue?ed91","webpack:///./src/components/BaseAppStatusMarker.vue?4e4f","webpack:///./src/validators/payment.js","webpack:///./src/service/status.js","webpack:///./src/service/query.js","webpack:///../../../src/components/VGrid/grid.ts","webpack:///../../../src/components/VGrid/VContainer.ts","webpack:///./src/validators/index.js","webpack:///./src/service/stripe.js","webpack:///./src/validators/unsupportedMarket.js","webpack:///./src/components/BaseAppStatusMarker.vue?366a","webpack:///../../../src/mixins/transitionable/index.ts"],"names":["exportPoolLocations","label","address","lat","lng","geohash","exportPoolLines","id","defaultPlan","object","active","attributes","created","default_price","description","features","name","images","livemode","marketing_features","metadata","shipper_locations","package_dimensions","shippable","statement_descriptor","tax_code","type","unit_label","updated","url","priceplans","billing_scheme","currency","custom_unit_amount","lookup_key","nickname","product","recurring","tax_behavior","tiers_mode","transform_quantity","unit_amount","unit_amount_decimal","defaultSubscription","trial_start","tax_percent","billing_thresholds","cancel_at","ended_at","invoice_settings","issuer","account_tax_ids","pause_collection","automatic_tax","liability","enabled","schedule","quantity","application_fee_percent","billing_cycle_anchor","default_tax_rates","status","default_source","discount","discounts","pending_invoice_item_interval","application","test_clock","customer","trial_settings","end_behavior","missing_payment_method","pending_setup_intent","collection_method","start_date","current_period_start","days_until_due","pending_update","cancellation_details","feedback","reason","comment","billing_cycle_anchor_config","payment_settings","save_default_payment_method","payment_method_options","payment_method_types","trial_end","cancel_at_period_end","next_pending_invoice_item_invoice","transfer_data","default_payment_method","canceled_at","plan","amount_decimal","interval","transform_usage","usage_type","amount","interval_count","aggregate_usage","tiers","meter","trial_period_days","on_behalf_of","current_period_end","defaultShipperLocations","getError","field","item","rules","container","value","RegExp","containerRegex","test","line","isUnsupportedMarket","linesData","state","lines","exportLocation","some","size","sizes","location","isTerminalAddress","addressRegex","scac","scacCodeRegex","filter","allLines","getAllLines","FilteredLines","filterDocuments","containers","map","sort","a","b","localeCompare","terminals","_item$exportLocation","_item$exportLocation2","getAllLocations","validate","requestItems","event","every","validateSingle","checkTurnUsage","requestItem","condition","ref","requestDetails","exportPool","companyLocation","validateContainer","getLineById","getLineByPrefix","validateTurnLocation","secondaryCarrierScac","secondaryCarrierEmail","emailRegex","turns","is_scac_in_org","_auth$state$organizat","console","log","validateLocations","auth","organization","org_type","length","ooclLineId","validateOOCLIntegration","maerskLineId","hsudLineId","checkMearskSupportedMarkets","checkSubscriptionPlan","settings","enable_transactions","checkUserExistsInMaerskWhitelist","checkPaymentDetails","checkPendingInvoices","emptylocation","exportlocation","exportLocations","locations","export_locations","empty_locations","find","val","getEmptyLocationLabelError","emptyLocationLabel","undefined","e","getExportLocationLabelError","exportLocationLabel","validateAddEmptyLocation","emptyLocationAddress","isInvalidEmptyLocation","validateAddExportLocation","exportLocationAddress","isInvalidExportLocation","isCancelable","canDifferingRequest","isSiaTurn","_linesData$state$line","lineId","integration","getOtherContainerLocations","async","orgs","union","network_containers","doc","orgId","availableContainerLocations","getContentById","getMyContainerLocations","added_network_containers","myContainerLocations","checkVerificationStatus","_locations$state","vendorDetails","vendor_details","hoursOfOperation","pickupInstructions","primaryContact","primaryContactName","errorNotification","validateOaklandMarket","market","getNearestLocation","_stripe$state$subscri","turns_usage","stripe","subscription","data","maxTurns","getMaxTurnsPerPlan","pendingTurns","turn","parseInt","payload","paymentMethods","payment_methods","path","router","push","fromRequestLoad","defaultPaymentMethod","method","is_default","error","maerskWhitelist","_val$scac","_auth$state$organizat2","toUpperCase","invoices","pending_inovice_data","_auth$state$organizat3","nearestLocation","ooclEmailProtocalMarket","hasIntegration","integrations","ooclIntergrationId","staticClass","attrs","getStatusBackgroundColor","scopedSlots","key","color","_vm","getStatusColor","_v","getStatusMessage","entity","render","staticRenderFns","props","default","Object","filled","Boolean","dark","outlined","methods","component","serviceTaxPercentage","maerskApprovedMarkets","getStatusIcon","icon","message","db","firebase","firestore","ids","collectionPath","collection","batches","batch","splice","where","FieldPath","documentId","get","then","results","docs","result","Promise","all","flat","VGrid","Vue","extend","functional","String","tag","h","children","trim","classes","keys","startsWith","join","domProps","Grid","fluid","mergeData","class","Array","concat","formateStripeAmount","product_plans","productPlans","matchingProduct","getMaxShipperLocationsPerPlan","_subscription$metadat","planProduct","p","_matchingProduct$meta","_matchingProduct$meta2","new_shipper_locations","isStarterTierPlan","isStarterTierProduct","_lines$find","protocolByLine","pLine","markets","includes","mode","origin","transition"],"mappings":"4JAAA,oEAAO,MAAMA,EAAsB,CACjC,CACEC,MAAO,yDACPC,QAAS,mCACTC,IAAK,mBACLC,KAAM,mBACNC,QAAS,aAEX,CACEJ,MAAO,8BACPC,QAAS,8CACTC,IAAK,mBACLC,KAAM,mBACNC,QAAS,aAEX,CACEJ,MAAO,iBACPC,QAAS,yCACTC,IAAK,kBACLC,KAAM,mBACNC,QAAS,aAEX,CACEJ,MAAO,kBACPC,QAAS,+CACTC,IAAK,kBACLC,KAAM,mBACNC,QAAS,aAEX,CACEJ,MAAO,kBACPC,QAAS,0CACTC,IAAK,kBACLC,KAAM,mBACNC,QAAS,aAEX,CACEJ,MAAO,sBACPI,QAAS,YACTH,QAAS,uCACTC,IAAK,WACLC,KAAM,aAER,CACEH,MAAO,aACPC,QAAS,wCACTC,IAAK,WACLC,KAAM,YACNC,QAAS,aAEX,CACEJ,MAAO,aACPC,QAAS,wCACTC,IAAK,UACLC,KAAM,WACNC,QAAS,cAIAC,EAAkB,CAC7B,CACEL,MAAO,SACPM,GAAI,oBAEN,CACEN,MAAO,cACPM,GAAI,sB,oCClER,sGAAO,MAAMC,EAAc,CACzBD,GAAI,kBACJE,OAAQ,UACRC,QAAQ,EACRC,WAAY,GACZC,QAAS,WACTC,cAAe,KACfC,YAAa,GACbC,SAAU,CACR,CACEC,KAAM,qCAER,CACEA,KAAM,kCAER,CACEA,KAAM,0CAGV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AO,EACvD,MAAM,IAAEC,EAAG,IAAEC,GAAQqH,EACfgH,EAASC,gCAAmB,CAAEvO,MAAKC,QAAO,GAAGqO,OACnD,QAAI0D,OAAsB6D,SAASvH,K,kCCpBrC,W,kCCAA,gBAEemF,cAAIC,OAAO,CACxB7S,KAAM,iBAENyQ,MAAO,CACLwE,KAAMlC,OACNmC,OAAQnC,OACRoC,WAAYpC","file":"js/Booking~Guest~dashboard~marketplace~notification~setting.js?id=8efceb2b2f7ea6385a93","sourcesContent":["export const exportPoolLocations = [\n  {\n    label: 'Tracy Defense Depot Truck Control, 25600 Chrisman road',\n    address: '25600 Chrisman Road, Tracy 95304',\n    lat: 37.721168677404016,\n    lng: -121.39740666809108,\n    geohash: '9q9wtdcje',\n  },\n  {\n    label: 'Aafes Logistics French Camp',\n    address: 'East roth rd bldg 500 French Camp, CA 95330',\n    lat: 37.855672269547945,\n    lng: -121.26926481093332,\n    geohash: '9q9z27qmm',\n  },\n  {\n    label: 'Frito Lay, inc',\n    address: 'East Whitmore Avenue Modesto, CA 95358',\n    lat: 37.59570203469259,\n    lng: -120.86835661037998,\n    geohash: '9qdjcs46g',\n  },\n  {\n    label: 'Tesla - Fremont',\n    address: 'Tesla, 45500 Fremont Blvd, Fremont, CA 94538',\n    lat: 37.49275788977046,\n    lng: -121.94475063605397,\n    geohash: '9q9m316e1',\n  },\n  {\n    label: 'Tesla - Lathrop',\n    address: '17100 Murphy Parkway, Lathrop, CA 95330',\n    lat: 37.80611444703345,\n    lng: -121.28610589232058,\n    geohash: '9q9z046hs',\n  },\n  {\n    label: 'Tesla - 401 Lathrop',\n    geohash: '9q9xpcj8p',\n    address: '401 Tesla Dr, Lathrop, CA 95330, USA',\n    lat: 37.7984999,\n    lng: -121.2921631,\n  },\n  {\n    label: 'M1 – Tesla',\n    address: '18250 Murphy Parkway Lathrop CA 95330',\n    lat: 37.8003484,\n    lng: -121.2929725,\n    geohash: '9q9xpcm4u',\n  },\n  {\n    label: 'M2 - Tesla',\n    address: '17100 Murphy Parkway Lathrop CA 95330',\n    lat: 37.805928,\n    lng: -121.286181,\n    geohash: '9q9z04657',\n  },\n];\n\nexport const exportPoolLines = [\n  {\n    label: 'Maersk',\n    id: '0f5def4c215ce2cd',\n  },\n  {\n    label: 'Hamburg Sud',\n    id: '041df1c4de50d905',\n  },\n];\n","export const defaultPlan = {\n  id: 'starter_product',\n  object: 'product',\n  active: true,\n  attributes: [],\n  created: 1682093291,\n  default_price: null,\n  description: '',\n  features: [\n    {\n      name: '$30 charge per Maersk street turn',\n    },\n    {\n      name: 'Free empty container exchanges',\n    },\n    {\n      name: '9.5% load fee on direct shipper loads',\n    },\n  ],\n  images: [],\n  livemode: false,\n  marketing_features: [\n    {\n      name: '$30 charge per Maersk street turn.',\n    },\n    {\n      name: '9.5% load fee on direct shipper loads',\n    },\n  ],\n  metadata: {\n    'new_interval/month': '25',\n    'new_interval/year': '300',\n    shipper_locations: '2',\n  },\n  name: 'Starter Tier',\n  package_dimensions: null,\n  shippable: null,\n  statement_descriptor: null,\n  tax_code: '',\n  type: 'service',\n  unit_label: null,\n  updated: 1709298258,\n  url: null,\n  priceplans: [\n    {\n      id: 'starter_tier',\n      object: 'price',\n      active: true,\n      billing_scheme: 'per_unit',\n      created: 1709280201,\n      currency: 'usd',\n      custom_unit_amount: null,\n      livemode: false,\n      lookup_key: null,\n      metadata: {},\n      nickname: 'starter tier',\n      product: 'starter_product',\n      recurring: {},\n      tax_behavior: 'exclusive',\n      tiers_mode: null,\n      transform_quantity: null,\n      type: 'One-off',\n      unit_amount: 0,\n      unit_amount_decimal: '0',\n    },\n  ],\n};\n\nexport const defaultSubscription = {\n  currency: 'usd',\n  trial_start: null,\n  tax_percent: null,\n  billing_thresholds: null,\n  created: 1713452384,\n  cancel_at: null,\n  ended_at: null,\n  invoice_settings: {\n    issuer: {\n      type: 'self',\n    },\n    account_tax_ids: null,\n  },\n  pause_collection: null,\n  automatic_tax: {\n    liability: {\n      type: 'self',\n    },\n    enabled: true,\n  },\n  schedule: null,\n  quantity: 1,\n  application_fee_percent: null,\n  billing_cycle_anchor: 1713452384,\n  default_tax_rates: [],\n  description: null,\n  status: 'active',\n  default_source: null,\n  discount: null,\n  discounts: [],\n  pending_invoice_item_interval: null,\n  application: null,\n  test_clock: null,\n  customer: '',\n  trial_settings: {\n    end_behavior: {\n      missing_payment_method: 'create_invoice',\n    },\n  },\n  pending_setup_intent: null,\n  collection_method: 'charge_automatically',\n  start_date: 1713452384,\n  current_period_start: 1713452384,\n  days_until_due: null,\n  pending_update: null,\n  cancellation_details: {\n    feedback: null,\n    reason: null,\n    comment: null,\n  },\n  billing_cycle_anchor_config: null,\n  payment_settings: {\n    save_default_payment_method: 'off',\n    payment_method_options: null,\n    payment_method_types: null,\n  },\n  trial_end: null,\n  object: 'subscription',\n\n  livemode: false,\n  cancel_at_period_end: false,\n  next_pending_invoice_item_invoice: null,\n  transfer_data: null,\n  id: 'sub_12444',\n  default_payment_method: null,\n  canceled_at: null,\n  plan: {\n    amount_decimal: '0',\n    interval: null,\n    metadata: {},\n    transform_usage: null,\n    active: true,\n    product: 'starter_tier',\n    usage_type: 'licensed',\n    currency: 'usd',\n    amount: 0,\n    livemode: false,\n    id: 'starter_tier',\n    interval_count: 1,\n    object: 'plan',\n    nickname: 'starter tier',\n    aggregate_usage: null,\n    tiers: null,\n    meter: null,\n    billing_scheme: 'per_unit',\n    trial_period_days: null,\n    tiers_mode: null,\n    created: 1709280484,\n  },\n  on_behalf_of: null,\n  current_period_end: 0,\n};\n\nexport const defaultShipperLocations = 2;\n","import {\n  addressRegex,\n  containerRegex,\n  emailRegex,\n  scacCodeRegex,\n} from '@qualle-admin/qutil/dist/patterns';\nimport { isTerminalAddress, isUnsupportedMarket } from '@/validators';\nimport {\n  exportPoolLines,\n  exportPoolLocations,\n} from '@/validators/exportPoolLocations';\nimport linesData from '@/store/modules/lines';\nimport containers from '@/store/modules/containers';\nimport locations from '@/store/modules/locations';\nimport auth from '@/store/modules/auth';\nimport stripe from '../store/modules/stripe';\nimport turns from '../store/modules/turns';\nimport { getContentById } from '@/service/query';\nimport { union } from 'lodash';\nimport {\n  maerskLineId,\n  hsudLineId,\n  ooclLineId,\n  ooclEmailProtocalMarket,\n  ooclIntergrationId,\n} from './payment';\nimport {\n  getAllLines,\n  getLineById,\n  getLineByPrefix,\n} from '@qualle-admin/qutil/dist/ssl';\nimport {\n  getAllLocations,\n  getNearestLocation,\n} from '@qualle-admin/qutil/dist/region';\nimport { getMaxTurnsPerPlan } from '@/service/stripe';\nimport settings from '../store/modules/settings';\nimport { checkMearskSupportedMarkets } from './unsupportedMarket';\nimport { errorNotification } from '../service/notification';\nimport router from '@/router';\nimport { filterDocuments } from '../service/documentFilters';\n\nexport const getError = (field, item) => {\n  const rules = {\n    container(value) {\n      if (!value) return true;\n      return (\n        new RegExp(containerRegex).test(value) || 'Invalid container format'\n      );\n    },\n    line(value) {\n      if (!value) return true;\n\n      if (\n        isUnsupportedMarket(value, linesData.state.lines, item.exportLocation)\n      ) {\n        return 'Unsupported market';\n      }\n\n      return lines().some(({ id }) => id === value.id) || 'Unsupported line';\n    },\n    size(value) {\n      if (!value) return true;\n      return sizes().some(({ id }) => id === value) || 'Unsupported size';\n    },\n    location(value) {\n      if (!value) return 'Must provide empty location';\n\n      const { address, lat, lng } = value;\n\n      if (!address) return true;\n\n      if (isTerminalAddress(address, lat, lng)) {\n        return 'We do not allow terminal addresses';\n      }\n\n      return (\n        new RegExp(addressRegex).test(address) ||\n        'Address must contain street number'\n      );\n    },\n    exportLocation(value) {\n      if (!value) return 'Must provide export location';\n\n      const { address, lat, lng } = value;\n\n      if (!address) return true;\n\n      if (isTerminalAddress(address, lat, lng)) {\n        return 'We do not allow terminal addresses';\n      }\n      return (\n        new RegExp(addressRegex).test(address) ||\n        'Address must contain street number'\n      );\n    },\n    amount(value) {\n      if (value < 5 || value === '') {\n        return 'Minimum amount $0';\n      } else {\n        return true;\n      }\n    },\n    scac(value) {\n      if (!value) return true;\n      return new RegExp(scacCodeRegex).test(value) || 'Incorrect SCAC format';\n    },\n  };\n\n  return [rules[field](item[field])].filter(\n    (value) => typeof value === 'string'\n  );\n};\n\nexport const lines = () => {\n  const allLines = getAllLines();\n  const FilteredLines = filterDocuments(allLines);\n  return FilteredLines;\n};\n\nexport const sizes = () => {\n  return containers.state.sizes\n    .map(({ id, label }) => ({ id, label }))\n    .sort((a, b) => a.id.localeCompare(b.id));\n};\n// terminals\nexport const terminals = (item) => {\n  if (!item.exportLocation?.lat && !item.exportLocation?.lng) return [];\n\n  const {\n    exportLocation: { lat, lng },\n  } = item;\n  return getAllLocations({ lat, lng });\n};\n// Validating data with all\nexport const validate = (requestItems, event) => {\n  return (\n    requestItems.every((item) => validateSingle(item, event)) &&\n    (event === 'turn' ? checkTurnUsage(requestItems) : true)\n  );\n};\n\nexport const validateSingle = (requestItem, event) => {\n  let condition = false;\n  const {\n    exportLocation = null,\n    container,\n    ref,\n    line,\n    size,\n    location,\n    scac,\n    amount,\n    requestDetails,\n    exportPool,\n    companyLocation,\n  } = requestItem;\n  condition =\n    typeof container === 'string' &&\n    !validateContainer(container) &&\n    typeof size === 'string' &&\n    location &&\n    typeof location?.address === 'string' &&\n    (line?.id ? getLineById(line.id) : getLineByPrefix(line)) &&\n    sizes().some(({ id }) => id === size) &&\n    !isTerminalAddress(location?.address, location?.lat, location?.lng) &&\n    new RegExp(addressRegex).test(location?.address) &&\n    new RegExp(containerRegex).test(container);\n  if (event === 'turn') {\n    condition =\n      condition &&\n      validateTurnLocation(\n        exportLocation,\n        line,\n        ref,\n        scac,\n        location,\n        exportPool,\n        companyLocation\n      );\n  }\n  if (amount) {\n    condition = condition && amount;\n  }\n  if ('requestDetails' in requestItem) {\n    if (requestDetails.type === 'differing_carrier_request') {\n      condition =\n        condition &&\n        typeof requestDetails.secondaryCarrierScac === 'string' &&\n        typeof requestDetails.secondaryCarrierEmail === 'string' &&\n        new RegExp(emailRegex).test(requestDetails.secondaryCarrierEmail) &&\n        new RegExp(scacCodeRegex).test(requestDetails.secondaryCarrierScac) &&\n        turns.state.is_scac_in_org;\n    }\n  }\n\n  return condition;\n};\n\nexport const validateTurnLocation = (\n  exportLocation,\n  line,\n  ref,\n  scac,\n  location,\n  exportPool,\n  companyLocation\n) => {\n  console.log('company locations', companyLocation);\n  let condition =\n    exportLocation &&\n    typeof exportLocation?.address === 'string' &&\n    companyLocation?.name &&\n    linesData.state.lines.some(({ id }) => id === line.id) &&\n    !isUnsupportedMarket(line, linesData.state.lines, exportLocation) &&\n    !isTerminalAddress(\n      exportLocation.address,\n      exportLocation.lat,\n      exportLocation.lng\n    ) &&\n    new RegExp(addressRegex).test(exportLocation?.address) &&\n    new RegExp(addressRegex).test(exportLocation?.address) &&\n    validateLocations(location, exportLocation, exportPool);\n  if (auth.state.organization?.org_type === 'broker') {\n    condition = condition && scac;\n  }\n  if (!exportPool) {\n    condition = condition && typeof ref === 'string' && ref.length;\n  }\n  if (line?.id === ooclLineId) {\n    condition = condition && validateOOCLIntegration(companyLocation);\n  }\n  if (\n    (line?.id === maerskLineId || line?.id === hsudLineId) &&\n    checkMearskSupportedMarkets(companyLocation)\n  ) {\n    if (\n      settings.state.enable_transactions &&\n      !checkUserExistsInMaerskWhitelist()\n    ) {\n      condition = condition && checkPaymentDetails() && checkPendingInvoices();\n    }\n  } else {\n    condition = condition && checkSubscriptionPlan();\n  }\n  return condition;\n};\n\n// Validating empty location and export location labels\nconst validateLocations = (emptylocation, exportlocation, exportPool) => {\n  const exportLocations = exportPool\n    ? exportPoolLocations\n    : locations.state.export_locations;\n  return (\n    (locations.state.empty_locations.find(\n      (val) => val.label === emptylocation?.label\n    ) ||\n      false) &&\n    (exportLocations.find((val) => val.label === exportlocation?.label) ||\n      false)\n  );\n};\n// Validating empty location label\nexport const getEmptyLocationLabelError = (emptyLocationLabel) => {\n  return locations.state.empty_locations.find(\n    (e) => e.label === emptyLocationLabel\n  ) !== undefined\n    ? 'Label already exists'\n    : null;\n};\n// Validating export location label\nexport const getExportLocationLabelError = (exportLocationLabel) => {\n  return locations.state.export_locations.find(\n    (e) => e.label === exportLocationLabel\n  ) !== undefined\n    ? 'Label already exists'\n    : null;\n};\n// Validating empty locations\nexport const validateAddEmptyLocation = (\n  emptyLocationAddress,\n  emptyLocationLabel,\n  isInvalidEmptyLocation\n) => {\n  return (\n    emptyLocationAddress &&\n    emptyLocationAddress?.address &&\n    emptyLocationLabel &&\n    emptyLocationLabel.length > 2 &&\n    !isInvalidEmptyLocation &&\n    getEmptyLocationLabelError(emptyLocationLabel) === null\n  );\n};\n\n// Validating export locations\nexport const validateAddExportLocation = (\n  exportLocationAddress,\n  exportLocationLabel,\n  isInvalidExportLocation\n) => {\n  return (\n    exportLocationAddress &&\n    exportLocationAddress?.address &&\n    exportLocationLabel &&\n    exportLocationLabel.length > 2 &&\n    !isInvalidExportLocation &&\n    getExportLocationLabelError(exportLocationLabel) === null\n  );\n};\n\nexport const isCancelable = ({ line, status }) => {\n  if (status === 'declined') return false;\n\n  if (line?.id === '0730156d8f6819b2') {\n    return false;\n  } else {\n    return true;\n  }\n};\n\nexport const canDifferingRequest = ({ line }) => {\n  if (line?.id === '0730156d8f6819b2') {\n    return false;\n  } else {\n    return true;\n  }\n};\n\nexport const isSiaTurn = ({ line }) => {\n  if (!line) return false;\n\n  if (\n    linesData.state.lines.find(({ id: lineId }) => lineId === line.id)\n      ?.integration?.type === 'SIA'\n  ) {\n    return true;\n  } else {\n    return false;\n  }\n};\n\n// Getting other container locations to check flip availability\nexport const getOtherContainerLocations = async () => {\n  const orgs = union(\n    containers.state.network_containers.map((doc) => doc.orgId)\n  );\n  let availableContainerLocations = [];\n  if (orgs.length) {\n    availableContainerLocations = await getContentById(orgs, 'organizations');\n  }\n  return availableContainerLocations;\n};\n\nexport const getMyContainerLocations = async () => {\n  const orgs = union(\n    containers.state.added_network_containers.map((doc) => doc.orgId)\n  );\n  let myContainerLocations = [];\n  if (orgs.length) {\n    myContainerLocations = await getContentById(orgs, 'organizations');\n  }\n  return myContainerLocations;\n};\n\n// checking validation (vender details) dispalying notification\nexport const checkVerificationStatus = () => {\n  const organization = auth.state.organization;\n  if (organization) {\n    const vendorDetails = locations.state?.vendor_details;\n\n    if (\n      vendorDetails &&\n      vendorDetails?.hoursOfOperation &&\n      vendorDetails?.pickupInstructions &&\n      vendorDetails?.primaryContact &&\n      vendorDetails?.primaryContactName\n    ) {\n      return true;\n    } else {\n      errorNotification(\n        'Please add yard details in settings to perform actions in Marketplace.'\n      );\n      return false;\n    }\n  }\n};\n\n// Checking the nearestmarket is oakland or not\nexport const validateOaklandMarket = (line, location) => {\n  let value = false;\n  if (exportPoolLines.find((val) => val.id === line?.id)) {\n    if (location?.address) {\n      const market = getNearestLocation(location)[0].market;\n      if (market === 'SF/OAKLAND') {\n        value = true;\n      }\n    }\n  }\n  return value;\n};\n\nexport const checkSubscriptionPlan = () => {\n  const customer = auth.state.customer;\n  if (\n    customer &&\n    customer.turns_usage !== undefined &&\n    stripe.state.subscription &&\n    stripe.state.subscription?.status === 'active'\n  ) {\n    return checkTurnUsage();\n  } else {\n    errorNotification(\n      'In order to proceed with your street turn request, you will need to subscribe to a monthly plan with Qualle.'\n    );\n    return false;\n  }\n};\n\nexport const checkTurnUsage = (requestItems = null) => {\n  let length = 0;\n  if (requestItems) {\n    const data = requestItems.filter(\n      (val) =>\n        !(\n          (val.line.id === maerskLineId || val.line.id === hsudLineId) &&\n          checkMearskSupportedMarkets(val.companyLocation)\n        )\n    );\n    length = data.length;\n    if (!length) {\n      return true;\n    }\n  }\n  const maxTurns = getMaxTurnsPerPlan();\n  const pendingTurns = turns.state.turns.filter(\n    (turn) => turn.status === 'pending' && !turn?.amount\n  );\n  const customer = auth.state.customer;\n  if (\n    length + pendingTurns.length + parseInt(customer.turns_usage) <=\n      parseInt(maxTurns) ||\n    maxTurns === 'unlimited'\n  ) {\n    return true;\n  } else {\n    errorNotification(\n      'In order to request a street turn, it is necessary to upgrade the subscription plan within the settings. Otherwise, pending turns need to be approved/declined.'\n    );\n    return false;\n  }\n};\n\n// Checking payment details exists or not and showing error message\nexport const checkPaymentDetails = (payload = null) => {\n  const paymentMethods = stripe.state.payment_methods;\n\n  if (!paymentMethods.length) {\n    if (payload?.path) {\n      const path = payload.path;\n      router.push({ path });\n    } else if (payload?.fromRequestLoad) {\n      errorNotification(\n        'In order to request load, it is necessary to add payment method in settings'\n      );\n    } else {\n      errorNotification(\n        'In order to request a mearsk street turn, it is necessary to add payment method in settings'\n      );\n    }\n    return false;\n  }\n  const defaultPaymentMethod = paymentMethods.find(\n    (method) => method.is_default\n  );\n\n  if (!defaultPaymentMethod) {\n    errorNotification(\n      \"Sorry, we couldn't process your request, it is necessary to add payment method as default in settings\"\n    );\n    return false;\n  }\n  if (defaultPaymentMethod.error) {\n    errorNotification(\n      `Sorry, we couldn't process your request. ${defaultPaymentMethod.error} Please check your card details and try again.`\n    );\n    return false;\n  }\n  return true;\n};\n\nexport const checkUserExistsInMaerskWhitelist = () => {\n  const data = auth.state.maerskWhitelist;\n  if (\n    data.find(\n      (val) =>\n        val.scac?.toUpperCase() === auth.state.organization.scac?.toUpperCase()\n    )\n  ) {\n    return true;\n  } else {\n    return false;\n  }\n};\nexport const validateContainer = (container) => {\n  if (\n    turns.state.turns.find(\n      (turn) =>\n        turn.container === container &&\n        turn.status !== 'declined' &&\n        turn.status !== 'canceled'\n    )\n  ) {\n    errorNotification(\n      'Street turn currently active for this container. Please cancel or re-request.'\n    );\n    return true;\n  } else {\n    return false;\n  }\n};\n// Checking if previous invoice is paid or not\nexport const checkPendingInvoices = () => {\n  const invoices = stripe.state.pending_inovice_data;\n  if (invoices.length) {\n    errorNotification(\n      'In order to request a street turn, it is necessary to pay pending invoices.'\n    );\n    return false;\n  } else {\n    return true;\n  }\n};\n\nexport const validateOOCLIntegration = (companyLocation) => {\n  if (!companyLocation) {\n    return true;\n  }\n\n  const nearestLocation = getNearestLocation(companyLocation)[0];\n  if (nearestLocation.market === ooclEmailProtocalMarket) {\n    return true;\n  }\n\n  const hasIntegration = auth.state.organization?.integrations?.some(\n    (integration) => integration.id === ooclIntergrationId\n  );\n\n  if (!hasIntegration) {\n    errorNotification(\n      'Please go to settings and authenticate with the OOCL integration.'\n    );\n    return false;\n  }\n\n  return true;\n};\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-chip',_vm._b({staticClass:\"rounded-sm px-2 mx-2\",attrs:{\"color\":_vm.getStatusBackgroundColor(_vm.entity)}},'v-chip',_vm.$props,false),[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('span',_vm._g(_vm._b({staticClass:\"text-truncate status-message px-2\",style:({ color: _vm.getStatusColor(_vm.entity) })},'span',attrs,false),on),[_vm._v(_vm._s(_vm.getStatusMessage(_vm.entity)))])]}}])},[_vm._v(\" \"+_vm._s(_vm.getStatusMessage(_vm.entity))+\" \")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <v-chip\n    :color=\"getStatusBackgroundColor(entity)\"\n    v-bind=\"$props\"\n    class=\"rounded-sm px-2 mx-2\"\n  >\n    <v-tooltip top>\n      <template v-slot:activator=\"{ on, attrs }\">\n        <span\n          class=\"text-truncate status-message px-2\"\n          :style=\"{ color: getStatusColor(entity) }\"\n          v-bind=\"attrs\"\n          v-on=\"on\"\n          >{{ getStatusMessage(entity) }}</span\n        >\n      </template>\n      {{ getStatusMessage(entity) }}\n    </v-tooltip>\n  </v-chip>\n</template>\n\n<script>\nimport {\n  getStatusBackgroundColor,\n  getStatusColor,\n  getStatusMessage,\n} from '@/service/status';\n\nexport default {\n  name: 'BaseAppStatusMarker1',\n  props: {\n    entity: {\n      default: () => null,\n      type: Object,\n    },\n    filled: {\n      default: () => true,\n      type: Boolean,\n    },\n\n    dark: {\n      default: () => false,\n      type: Boolean,\n    },\n    outlined: {\n      default: () => false,\n      type: Boolean,\n    },\n  },\n  methods: {\n    getStatusMessage,\n    getStatusColor,\n    getStatusBackgroundColor,\n  },\n};\n</script>\n\n<style lang=\"scss\" scoped>\n.status-message::first-letter {\n  text-transform: capitalize;\n}\n</style>\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BaseAppStatusMarker.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BaseAppStatusMarker.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./BaseAppStatusMarker.vue?vue&type=template&id=115ed0e4&scoped=true\"\nimport script from \"./BaseAppStatusMarker.vue?vue&type=script&lang=js\"\nexport * from \"./BaseAppStatusMarker.vue?vue&type=script&lang=js\"\nimport style0 from \"./BaseAppStatusMarker.vue?vue&type=style&index=0&id=115ed0e4&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  false,\n  null,\n  \"115ed0e4\",\n  null\n  \n)\n\nexport default component.exports","export const maerskLineId = '0f5def4c215ce2cd';\nexport const hsudLineId = '041df1c4de50d905';\nexport const ooclLineId = 'c26ca64476cf317c';\nexport const ooclEmailProtocalMarket = 'LA/LGB';\nexport const ooclIntergrationId = 'jXiFODBQ0WK0CUsqBbpi';\n\nexport const serviceTaxPercentage = 4.4;\nexport const baseAmount = 30;\n\nexport const hasPayment = (line) => {\n  if (line?.id === maerskLineId || line?.id === hsudLineId) {\n    return true;\n  } else {\n    return false;\n  }\n};\n\n// maersk or hsud unsupported markets\nexport const maerskUnsupportedmarkets = [\n  'IL/CHICAGO',\n  'NJ/NEWARK',\n  'TN/MEMPHIS',\n  'MI/DETROIT',\n  'VA/NORFOLK',\n  'FL/MIAMI',\n];\n\nexport const maerskApprovedMarkets = [\n  'SF/OAKLAND',\n  'LA/LGB',\n  'OR/PDX',\n  'WA/SEATAC',\n  'GA/SAVANNAH',\n];\n","export const getStatusBackgroundColor = (entity) => {\n  let color = '';\n\n  const { status } = entity;\n  switch (true) {\n    case status === 'completed' || status === 'terminated':\n      color = '#C2CFE0';\n      break;\n    case status === 'pending' ||\n      status === 'pending_signature' ||\n      status === 'reservation_pending' ||\n      status === 'in_transit':\n      color = '#FEFFDB';\n      break;\n    case status === 'available' ||\n      status === 'approved' ||\n      status === 'active' ||\n      status === 'paid' ||\n      status === 'succeeded':\n      color = '#E6FBE5';\n      break;\n    case status === 'ready' || status === 'received':\n      color = '#BBDEFB';\n      break;\n    case status === 'declined':\n      color = '#FCEAE3';\n      break;\n    case status === 'incomplete' ||\n      status === 'canceled' ||\n      status === 'failed':\n      color = '#FCEAE3';\n      break;\n    case status === 'paused':\n      color = 'F57C00';\n      break;\n    case status === 'requestScheduled':\n      color = '#e2f0f9';\n      break;\n  }\n\n  return color;\n};\nexport const getStatusColor = (entity) => {\n  let color = '';\n\n  const { status } = entity;\n\n  switch (true) {\n    case status === 'completed' || status === 'terminated':\n      color = '#2A3038';\n      break;\n    case status === 'pending' ||\n      status === 'pending_signature' ||\n      status === 'reservation_pending' ||\n      status === 'in_transit':\n      color = '#BB9614';\n      break;\n    case status === 'available' ||\n      status === 'approved' ||\n      status === 'active' ||\n      status === 'paid' ||\n      status === 'succeeded':\n      color = '#2E9422';\n      break;\n    case status === 'ready' || status === 'received':\n      color = '#1976D2';\n      break;\n    case status === 'declined':\n      color = '#D10006';\n      break;\n    case status === 'incomplete' ||\n      status === 'canceled' ||\n      status === 'failed':\n      color = '#D10006';\n      break;\n    case status === 'paused':\n      color = '#FFE0B2';\n      break;\n    case status === 'onboarded':\n      color = '#FFFFFF';\n      break;\n    case status === 'requestScheduled':\n      color = '#0ebcef';\n      break;\n  }\n\n  return color;\n};\n\nexport const getStatusIcon = (entity) => {\n  let icon = '';\n\n  const { status } = entity;\n\n  switch (true) {\n    case status === 'terminated':\n      icon = 'mdi-close-box-outline';\n      break;\n    case status === 'approved' ||\n      status === 'active' ||\n      status === 'ready' ||\n      status === 'available' ||\n      status === 'completed' ||\n      status === 'received' ||\n      status === 'paid' ||\n      status === 'succeeded' ||\n      status === 'onboarded':\n      icon = 'mdi-check-circle-outline';\n      break;\n    case status === 'pending' ||\n      status === 'pending_signature' ||\n      status === 'in_transit':\n      icon = 'mdi-progress-clock';\n      break;\n    case status === 'reservation_pending':\n      icon = 'mdi-progress-pencil';\n      break;\n    case status === 'declined' || status === 'canceled':\n      icon = 'mdi-close-circle-outline';\n      break;\n    case status === 'incomplete':\n      icon = 'mdi-minus-circle-outline';\n      break;\n    case status === 'paused':\n      icon = 'mdi-pause';\n      break;\n    case status === 'failed':\n      icon = 'mdi-close-circle-outline';\n      break;\n  }\n\n  return icon;\n};\n\nexport const getStatusMessage = (entity) => {\n  let message = '';\n\n  const { status } = entity;\n\n  switch (true) {\n    case status === 'reservation_pending':\n      message = 'awaiting signature';\n      break;\n    case status === 'booking_canceled':\n      message = 'booking canceled';\n      break;\n    case status === 'booking_full':\n      message = 'booking full';\n      break;\n    case status === 'requestScheduled':\n      message = 'Scheduled';\n      break;\n    default:\n      message = status;\n  }\n\n  return message;\n};\n","import firebase from 'firebase/app';\nconst db = firebase.firestore();\n\nexport const getContentById = async (ids, path) => {\n  if (!ids || !ids.length || !path) return [];\n\n  const collectionPath = db.collection(path);\n  const batches = [];\n\n  while (ids.length) {\n    const batch = ids.splice(0, 10);\n\n    batches.push(\n      collectionPath\n        .where(firebase.firestore.FieldPath.documentId(), 'in', [...batch])\n        .get()\n        .then((results) =>\n          results.docs.map((result) => ({\n            id: result.id,\n            ...result.data(),\n          }))\n        )\n    );\n  }\n\n  const results = await Promise.all(batches);\n\n  return results.flat();\n};\n","// Types\nimport Vue, { VNode } from 'vue'\n\nexport default function VGrid (name: string) {\n  /* @vue/component */\n  return Vue.extend({\n    name: `v-${name}`,\n\n    functional: true,\n\n    props: {\n      id: String,\n      tag: {\n        type: String,\n        default: 'div',\n      },\n    },\n\n    render (h, { props, data, children }): VNode {\n      data.staticClass = (`${name} ${data.staticClass || ''}`).trim()\n\n      const { attrs } = data\n      if (attrs) {\n        // reset attrs to extract utility clases like pa-3\n        data.attrs = {}\n        const classes = Object.keys(attrs).filter(key => {\n          // TODO: Remove once resolved\n          // https://github.com/vuejs/vue/issues/7841\n          if (key === 'slot') return false\n\n          const value = attrs[key]\n\n          // add back data attributes like data-test=\"foo\" but do not\n          // add them as classes\n          if (key.startsWith('data-')) {\n            data.attrs![key] = value\n            return false\n          }\n\n          return value || typeof value === 'string'\n        })\n\n        if (classes.length) data.staticClass += ` ${classes.join(' ')}`\n      }\n\n      if (props.id) {\n        data.domProps = data.domProps || {}\n        data.domProps.id = props.id\n      }\n\n      return h(props.tag, data, children)\n    },\n  })\n}\n","import './_grid.sass'\nimport './VGrid.sass'\n\nimport Grid from './grid'\n\nimport mergeData from '../../util/mergeData'\n\n/* @vue/component */\nexport default Grid('container').extend({\n  name: 'v-container',\n  functional: true,\n  props: {\n    id: String,\n    tag: {\n      type: String,\n      default: 'div',\n    },\n    fluid: {\n      type: Boolean,\n      default: false,\n    },\n  },\n  render (h, { props, data, children }) {\n    let classes\n    const { attrs } = data\n    if (attrs) {\n      // reset attrs to extract utility clases like pa-3\n      data.attrs = {}\n      classes = Object.keys(attrs).filter(key => {\n        // TODO: Remove once resolved\n        // https://github.com/vuejs/vue/issues/7841\n        if (key === 'slot') return false\n\n        const value = attrs[key]\n\n        // add back data attributes like data-test=\"foo\" but do not\n        // add them as classes\n        if (key.startsWith('data-')) {\n          data.attrs![key] = value\n          return false\n        }\n\n        return value || typeof value === 'string'\n      })\n    }\n\n    if (props.id) {\n      data.domProps = data.domProps || {}\n      data.domProps.id = props.id\n    }\n\n    return h(\n      props.tag,\n      mergeData(data, {\n        staticClass: 'container',\n        class: Array<any>({\n          'container--fluid': props.fluid,\n        }).concat(classes || []),\n      }),\n      children\n    )\n  },\n})\n","export * from './terminalAddress';\nexport * from './unsupportedMarket';\nexport * from './validations';\n","import customer from '../store/modules/stripe';\nimport { defaultShipperLocations } from '@/fixtures/starter-tier';\n\nexport const formateStripeAmount = (amount) => {\n  return '$' + amount / 100;\n};\n\nexport const getMaxTurnsPerPlan = () => {\n  const { subscription } = customer.state;\n  const { product_plans: productPlans } = customer.state;\n\n  if (!subscription || !productPlans) {\n    return;\n  }\n\n  const { plan } = subscription;\n  const matchingProduct = productPlans.find(({ id }) => id === plan.product);\n  if (subscription.metadata.type === 'newPlan') {\n    return matchingProduct?.metadata['new_interval/' + plan.interval];\n  } else {\n    return matchingProduct?.metadata['interval/' + plan.interval];\n  }\n};\n\nexport const getMaxShipperLocationsPerPlan = () => {\n  const { subscription, product_plans: productPlans } = customer.state;\n  if (!subscription || !productPlans) {\n    return defaultShipperLocations;\n  }\n  const { plan } = subscription;\n  const planProduct = plan.product;\n\n  const matchingProduct = productPlans.find((p) => p.id === planProduct);\n\n  if (subscription.metadata?.type === 'newPlan') {\n    return matchingProduct?.metadata?.new_shipper_locations;\n  } else {\n    return matchingProduct?.metadata?.shipper_locations;\n  }\n};\n\nexport const isStarterTierPlan = () => {\n  const { subscription } = customer.state;\n  return !subscription;\n};\n\nexport const isStarterTierProduct = (product) => {\n  return product.id === 'starter_product';\n};\n","import { getNearestLocation } from '@qualle-admin/qutil/dist/region';\nimport { maerskApprovedMarkets } from './payment';\n\nexport const isUnsupportedMarket = (line, lines, exportLocation) => {\n  if (!exportLocation || !exportLocation.address) return false;\n\n  const { lat, lng } = exportLocation;\n\n  const market = getNearestLocation({ lat, lng })[0].market;\n  const protocolByLine = lines.find(\n    ({ id: pLine }) => pLine === line.id\n  )?.markets;\n\n  return protocolByLine ? !protocolByLine[market] : true;\n};\n\nexport const checkMearskSupportedMarkets = (exportLocation) => {\n  if (!exportLocation || !exportLocation.address) return false;\n  const { lat, lng } = exportLocation;\n  const market = getNearestLocation({ lat, lng })[0].market;\n  if (maerskApprovedMarkets.includes(market)) {\n    return true;\n  } else {\n    return false;\n  }\n};\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BaseAppStatusMarker.vue?vue&type=style&index=0&id=115ed0e4&prod&lang=scss&scoped=true\"","import Vue from 'vue'\n\nexport default Vue.extend({\n  name: 'transitionable',\n\n  props: {\n    mode: String,\n    origin: String,\n    transition: String,\n  },\n})\n"],"sourceRoot":""}