| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 | const g_UsePrecision = !0,  useP = (e, t = !0) =>    g_UsePrecision      ? t        ? parseInt(1e3 * e)        : parseFloat((e / 1e3).toFixed(3))      : e,  g_UserRole = {    Normal: 0,    Sales: 1,    Demo: 2,  },  g_FloorMaxSize = 240,  g_CullingValue = BABYLON.AbstractMesh.CULLINGSTRATEGY_BOUNDINGSPHERE_ONLY,  g_SnapDistance = 0.5,  g_width = 1.44,  g_MinDistUpRights = 0.85,  g_MaxDistUpRights = 1.25;let g_distUpRight = 1.04;const g_WarehouseMaxWidth = 240,  g_WarehouseMaxLength = 240,  g_WarehouseMaxHeight = 30,  g_WarehouseMinWidth = 5,  g_WarehouseMinLength = 5,  g_WarehouseMinHeight = 1,  g_WarehouseIncValue = 1,  g_PalletMaxHeight = 2.6,  g_PalletMaxWeight = 2e3,  g_PalletMinHeight = 0.1,  g_PalletMinWeight = 0,  g_PalletIncValue = 0.01,  carrierMachineNumber = 40601,  carrierDimensions = [0.96, 1.27, 0.25],  liftMachineNumber = 40406,  liftDimensions = [1.48, 1.35],  chargerMachineNumber = "10001sysmac";let g_PalletW = [0.8, 1, 1.2],  g_PalletH = [1.2, 1.2, 1.2];const g_spacingBPallets = [0.05, 0.05, 0.05],  g_rackingPole = 0.1;let g_railOutside = 0.175,  g_xtrackFixedDim = 1.35;const g_liftStoreDim = 0.22,  g_liftFixedDim = liftDimensions[1] + g_liftStoreDim;let g_difftoXtrack = [0.15, 0.05, 0.05],  g_diffToEnd = [0.175, 0.175, 0.175];const g_offsetDiff = 0.4,  g_halfRacking = 0.5;let g_railHeight = 0.38,  g_bottomLength = 0.27,  g_StoreTopGap = 0,  g_RenderEvent = !1,  g_saveBehaviour = !1;const g_BasePath = isEditByAdmin ? "/" : "",  g_AssetPath = g_BasePath + "assets/3dconfigurator/assets/",  g_canvas = document.getElementById("renderCanvas");let g_showSaveReminder = !0;const OrientationRacking = {    horizontal: 0,    vertical: 1,  },  ViewType = {    free: 0,    top: 1,    front: 2,    side: 3,  },  Plan3DType = {    plan: 0,    threeD: 1,  },  DataBaseAction = {    none: 0,    new: 1,    load: 2,    save: 3,  },  CarrierState = {    Idle: 0,    Working: 1,    Charging: 2,    Empty: 3,  },  CarrierPath = {    Full: 0,    ToLift: 1,    FromLift: 2,  };let g_palletOverhang = 0.05,  g_loadPalletOverhang = 0,  g_palletInfo = {    set type(t) {      (this.value = t),        (this.max = t.indexOf(Math.max(...t))),        (this.width = g_PalletW[this.max]),        (this.length = g_PalletH[this.max]),        (this.racking = useP(          useP(g_PalletW[this.max]) +            useP(g_difftoXtrack[this.max]) +            2 * useP(g_loadPalletOverhang),          !1        )),        (this.order = this.sort(t)          .filter(e => 0 < t[e])          .map(e => parseInt(e)));    },    max: 0,    width: 0.8,    length: 1.2,    racking: 0.9,    order: [0],    value: [100, 0, 0],    sort: function (i) {      const e = Object.keys(i);      return e.sort(function (e, t) {        return i[t] - i[e];      });    },  },  g_SKU = ((g_palletInfo.type = [100, 0, 0]), 10),  g_rackingHighLevel = 1,  g_rackingOrientation = OrientationRacking.horizontal,  g_movesPerHour = 100,  g_palletHeight = 1.2,  g_palletWeight = 1e3,  g_renderEventtimer = 0,  g_priceChanged = 0,  g_priceUpdated = 0,  g_totalPrice = 0;const g_connectorPrice = 1190;let g_animIsPlaying = !1;const sceneMode = {  draw: 0,  normal: 1,};let g_TopCamPann = !1,  g_sceneMode = sceneMode.normal,  g_recomandedXtrackAmount = 0,  g_recomandedCarrierAmount = 0,  g_recomandedLiftAmount = 0,  g_extraCarrierAmount = 0,  g_extraLiftAmount = 0,  g_extraXtrackAmount = 0,  g_drawMode = 0;const icubeColors = [  BABYLON.Color3.FromHexString("#0059a4"),  BABYLON.Color3.FromHexString("#3C4856"),  BABYLON.Color3.FromHexString("#007325"),];let menuEnabled = !0,  g_palletAtLevel = [],  g_spacingBetweenRows = 0.05,  isInVR = !1,  itemToLoad = 0,  itemLoaded = 0,  itemsGroup = [],  isCtrlPressed = !1,  g_inventory = {    stores: 0,    dimension: 0,    pallet_800: 0,    pallet_1000: 0,    pallet_1200: 0,    levelHeight: 0,    rackingLevels: 0,    SKU: 0,    throughput: 0,    g_xtrack: 0,    g_lift: 0,    g_carrier: 0,    g_port: 0,    g_capacity: 0,    g_rail_5: 0,    g_rail_5_10: 0,    g_rail_10_25: 0,    g_rail_25_50: 0,    g_rail_50: 0,    m_xtrack: 0,    m_palletDropS: 0,    m_palletDropSCS: 0,    m_palletDropSCC: 0,    m_chainC400: 0,    m_chainC540: 0,    m_rollerCC: 0,    m_roller200: 0,    m_sfence100: 0,    m_sfence200: 0,    m_sfenceDoor: 0,    m_scanner: 0,    m_stairs: 0,    m_rail_5: 0,    m_rail_5_10: 0,    m_rail_10_25: 0,    m_rail_25_50: 0,    m_rail_50: 0,    m_others: 0,  };const g_cloneOffset = 2,  g_humanHeight = 1.93;let g_measureEnabled = !1,  g_measurementList = [],  g_optimizeDirectTL = !0,  currentView = ViewType.free,  currenntDataBaseAction = DataBaseAction.none;const Units = {    metric: 0,    usStand: 1,  },  Metric = {    millimeters: 0,    centimeters: 1,    meters: 2,  },  USStand = {    feet: 0,    inches: 1,  },  UnitChars = {    millimeters: "mm",    centimeters: "cm",    meters: "m",    feet: "ft",    inches: "in",  };let currentUnits = Units.metric,  currentMetric = Metric.meters,  currentUSStand = USStand.feet,  rateUnit = 1,  unitChar = UnitChars.meters,  g_simMultipleView = !1,  levelVisibility = [],  documentInfo,  documentName = "",  WHDimensions = [],  init_data = {},  layoutMap = {    url: "",    scale: 1,    uOffset: 0,    vOffset: 0,  },  unit_measurement = 0,  extraInfo = {},  extraPrice = {},  custompPdf = [],  msments = [],  revisions = [],  duplData = [0.5, 2, -1, !1],  it2DEngine,  it3DEngine,  layoutArrows = [],  simulation;const palletTypeNameM = [    "EUR, EUR1 (800 X 1200)",    "EUR2 (1000 X 1200)",    "(1200 X 1200)",  ],  palletTypeNameU = ["EUR, EUR1(32 X 48)", "EUR2(40 X 48)", "(48 X 48)"];let fontDXF,  logoLogiqs,  g_tutorialIsRunning = !0;const htmlElemAttr = [    "port",    "xtrack",    "lift",    "connection",    "charger",    "safetyFence",    "transferCart",    "passthrough",    "spacing",    "chainconveyor",    "liftpreloading",    "pillers",  ],  menuTab = [    "Size",    "Racking",    "Items",    "Price",    "Help",    "Contact",    "Simulation",    "Accounts",    "Export",  ];let userName,  userEmail,  userPhone,  loginCount,  icubes = [],  selectedIcube = null,  previewMultiplyObjs = [],  startingPoint = void 0,  currentMesh,  selectedItemMesh,  selectedMeasure,  pallets = [],  custom_values = [],  scene,  ggui,  matManager,  meshSelector,  warehouse,  tutorialTour,  pillerSign,  pipeline;
 |