"use strict";var t=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var y=(n,r)=>{for(var i in r)t(n,i,{get:r[i],enumerable:!0})},m=(n,r,i,a)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of p(r))!f.call(n,e)&&e!==i&&t(n,e,{get:()=>r[e],enumerable:!(a=c(r,e))||a.enumerable});return n};var u=n=>m(t({},"__esModule",{value:!0}),n);var A={};y(A,{Aircraft:()=>o,AirlineModule:()=>x});module.exports=u(A);var s=require("../../internal/module-base"),o=(a=>(a.Narrowbody="narrowbody",a.Regional="regional",a.Widebody="widebody",a))(o||{});const h=["0","1","2","3","4","5","6","7","8","9"],g=["0","O","1","I","L"],b={regional:20,narrowbody:35,widebody:60},w={regional:["A","B","C","D"],narrowbody:["A","B","C","D","E","F"],widebody:["A","B","C","D","E","F","G","H","J","K"]};class x extends s.ModuleBase{airport(){return this.faker.helpers.arrayElement(this.faker.definitions.airline.airport)}airline(){return this.faker.helpers.arrayElement(this.faker.definitions.airline.airline)}airplane(){return this.faker.helpers.arrayElement(this.faker.definitions.airline.airplane)}recordLocator(r={}){const{allowNumerics:i=!1,allowVisuallySimilarCharacters:a=!1}=r,e=[];return i||e.push(...h),a||e.push(...g),this.faker.string.alphanumeric({length:6,casing:"upper",exclude:e})}seat(r={}){const{aircraftType:i="narrowbody"}=r,a=b[i],e=w[i],l=this.faker.number.int({min:1,max:a}),d=this.faker.helpers.arrayElement(e);return`${l}${d}`}aircraftType(){return this.faker.helpers.enumValue(o)}flightNumber(r={}){const{length:i={min:1,max:4},addLeadingZeros:a=!1}=r,e=this.faker.string.numeric({length:i,allowLeadingZeros:!1});return a?e.padStart(4,"0"):e}}0&&(module.exports={Aircraft,AirlineModule});
