{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js??ref--14-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/splitFlow.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/splitFlow.js","mtime":1702244729434},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/babel.config.js","mtime":1684261475125},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IF9zbGljZWRUb0FycmF5IGZyb20gIi9ob21lL2NtaXNzL0plbmtpbnMvd29ya3NwYWNlL21hcGludGVncmF0ZWR2dWVyL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2VzbS9zbGljZWRUb0FycmF5LmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMub2JqZWN0LmVudHJpZXMuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5hcnJheS5pbmNsdWRlcy5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLmFycmF5LnB1c2guanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5vYmplY3QudG8tc3RyaW5nLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuZmluZC5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLm9iamVjdC5rZXlzLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvd2ViLmRvbS1jb2xsZWN0aW9ucy5pdGVyYXRvci5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLmZ1bmN0aW9uLm5hbWUuanMiOwovKiBlc2xpbnQtZGlzYWJsZSBuby1hbGVydCwgbm8tY29uc29sZSAqLwppbXBvcnQgVnVlIGZyb20gInZ1ZSI7CnZhciBwcmVzZXRMYXlvdXRzID0gZnVuY3Rpb24gcHJlc2V0TGF5b3V0cyh2aWV3KSB7CiAgc3dpdGNoICh2aWV3KSB7CiAgICBjYXNlICIyaG9ycGFuZWwiOgogICAgICByZXR1cm4gewogICAgICAgICJzcGxpdC0xIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIiwgInBhbmUtMiJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiMnZlcnRwYW5lbCI6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIiwgInBhbmUtMiJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiM3BhbmVsIjoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAic3BsaXQtMiJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMiIsICJwYW5lLTMiXQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMgogICAgICAgIH0sCiAgICAgICAgInBhbmUtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMwogICAgICAgIH0KICAgICAgfTsKICAgIGNhc2UgIjRwYW5lbCI6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsic3BsaXQtMyIsICJzcGxpdC0yIl0KICAgICAgICB9LAogICAgICAgICJzcGxpdC0yIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0yIiwgInBhbmUtMyJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMSIsICJwYW5lLTQiXQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMgogICAgICAgIH0sCiAgICAgICAgInBhbmUtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMwogICAgICAgIH0sCiAgICAgICAgInBhbmUtNCI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogNAogICAgICAgIH0KICAgICAgfTsKICAgIGNhc2UgIjVwYW5lbCI6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IHRydWUsCiAgICAgICAgICBjaGlsZHJlbjogWyJzcGxpdC0zIiwgInNwbGl0LTIiXQogICAgICAgIH0sCiAgICAgICAgInNwbGl0LTIiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0yIiwgInBhbmUtMyIsICJwYW5lLTUiXQogICAgICAgIH0sCiAgICAgICAgInNwbGl0LTMiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIiwgInBhbmUtNCJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfSwKICAgICAgICAicGFuZS0zIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAzCiAgICAgICAgfSwKICAgICAgICAicGFuZS00IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA0CiAgICAgICAgfSwKICAgICAgICAicGFuZS01IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA1CiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiNnBhbmVsIjoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInNwbGl0LTMiLCAic3BsaXQtMiJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTIiLCAicGFuZS0zIiwgInBhbmUtNSJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAicGFuZS00IiwgInBhbmUtNiJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfSwKICAgICAgICAicGFuZS0zIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAzCiAgICAgICAgfSwKICAgICAgICAicGFuZS00IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA0CiAgICAgICAgfSwKICAgICAgICAicGFuZS01IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA1CiAgICAgICAgfSwKICAgICAgICAicGFuZS02IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA2CiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAic2luZ2xlcGFuZWwiOgogICAgZGVmYXVsdDoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiXQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMQogICAgICAgIH0KICAgICAgfTsKICB9Cn07CgovL0EgbWV0aG9kIHRvIGFzc2lnbiB1bnVzZWQgZW50cnkgdG8gcGFuZSB3aXRoIGR1cGxpY2F0ZWQgaWQKdmFyIGF1dG9Bc3NpZ25FbnRyeUlkc1RvUGFuZSA9IGZ1bmN0aW9uIGF1dG9Bc3NpZ25FbnRyeUlkc1RvUGFuZShlbnRyaWVzLCBsYXlvdXQpIHsKICB2YXIgYXNzaWduZWRJZHMgPSBbXTsKICB2YXIgaW52YWxpZElkS2V5cyA9IFtdOwogIGZvciAodmFyIF9pID0gMCwgX09iamVjdCRlbnRyaWVzID0gT2JqZWN0LmVudHJpZXMobGF5b3V0KTsgX2kgPCBfT2JqZWN0JGVudHJpZXMubGVuZ3RoOyBfaSsrKSB7CiAgICB2YXIgX09iamVjdCRlbnRyaWVzJF9pID0gX3NsaWNlZFRvQXJyYXkoX09iamVjdCRlbnRyaWVzW19pXSwgMiksCiAgICAgIGtleSA9IF9PYmplY3QkZW50cmllcyRfaVswXSwKICAgICAgdmFsdW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AgICBhY3RpdmVWaWV3OiAic2luZ2xlcGFuZWwiLAogICAgdmlld0ljb25zOiBbewogICAgICBpY29uOiAic2luZ2xlcGFuZWwiLAogICAgICBuYW1lOiAiU2luZ2xlIHZpZXciLAogICAgICBtaW46IDEKICAgIH0sIHsKICAgICAgaWNvbjogIjJob3JwYW5lbCIsCiAgICAgIG5hbWU6ICJIb3Jpem9udGFsIHNwbGl0IiwKICAgICAgbWluOiAyCiAgICB9LCB7CiAgICAgIGljb246ICIydmVydHBhbmVsIiwKICAgICAgbmFtZTogIlZlcnRpY2FsIHNwbGl0IiwKICAgICAgbWluOiAyCiAgICB9LCB7CiAgICAgIGljb246ICIzcGFuZWwiLAogICAgICBuYW1lOiAiVGhyZWUgcGFuZXMiLAogICAgICBtaW46IDMKICAgIH0sIHsKICAgICAgaWNvbjogIjRwYW5lbCIsCiAgICAgIG5hbWU6ICJGb3VyIHBhbmVzIiwKICAgICAgbWluOiA0CiAgICB9LCB7CiAgICAgIGljb246ICI1cGFuZWwiLAogICAgICBuYW1lOiAiRml2ZSBwYW5lcyIsCiAgICAgIG1pbjogNQogICAgfSwgewogICAgICBpY29uOiAiNnBhbmVsIiwKICAgICAgbmFtZTogIlNpeCBwYW5lcyIsCiAgICAgIG1pbjogNgogICAgfQogICAgLy97IGljb246ICJjdXN0b21pc2UiLCBuYW1lOiAiQ3VzdG9taXNlIiwgbWluOiAyIH0KICAgIF0sCgogICAgY3VzdG9tTGF5b3V0OiB7CiAgICAgICJzcGxpdC0xIjogewogICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMSJdCiAgICAgIH0sCiAgICAgICJwYW5lLTEiOiB7CiAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICBpZDogMQogICAgICB9CiAgICAgIC8qCiAgICAgIEV4YW1wbGUgbGF5b3V0CiAgICAgICAic3BsaXQtMSI6IHtjb250ZW50O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GUuc2xvdEluZm8ubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgc3dpdGNoIChuZXdTdGF0ZS5zbG90SW5mb1tpXS5uYW1lKSB7CiAgICAgICAgICAgICAgY2FzZSAiZmlyc3QiOgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gbmV3U3RhdGUuc2xvdEluZm9baV0uaWQ7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICBjYXNlICJzZWNvbmQiOgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBpZiAoInBhbmUtMiIgaW4gY3VzdG9tTGF5b3V0KSBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gbmV3U3RhdGUuc2xvdEluZm9baV0uaWQ7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICBjYXNlICJ0aHJpZCI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgIGlmICgicGFuZS0zIiBpbiBjdXN0b21MYXlvdXQpIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBuZXdTdGF0ZS5zbG90SW5mb1tpXS5pZDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIGNhc2UgImZvdXJ0aCI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgIGlmICgicGFuZS00IiBpbiBjdXN0b21MYXlvdXQpIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBuZXdTdGF0ZS5zbG90SW5mb1tpXS5pZDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIGNhc2UgImZpZnRoIjoKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgaWYgKCJwYW5lLTUiIGluIGN1c3RvbUxheW91dCkgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IG5ld1N0YXRlLnNsb3RJbmZvW2ldLmlkOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgY2FzZSAic2l4dGgiOgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBpZiAoInBhbmUtNiIgaW4gY3VzdG9tTGF5b3V0KSBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gbmV3U3RhdGUuc2xvdEluZm9baV0uaWQ7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgZm9yICh2YXIgX2k1ID0gMCwgX09iamVjdCRlbnRyaWVzNSA9IE9iamVjdC5lbnRyaWVzKGN1c3RvbUxheW91dCk7IF9pNSA8IF9PYmplY3QkZW50cmllczUubGVuZ3RoOyBfaTUrKykgewogICAgICAgIHZhciBfT2JqZWN0JGVudHJpZXM1JF9pID0gX3NsaWNlZFRvQXJyYXkoX09iamVjdCRlbnRyaWVzNVtfaTVdLCAyKSwKICAgICAgICAgIGtleSA9IF9PYmplY3QkZW50cmllczUkX2lbMF0sCiAgICAgICAgICB2YWx1ZSA9IF9PYmplY3QkZW50cmllczUkX2lbMV07CiAgICAgICAgVnVlLnNldChzdGF0ZS5jdXN0b21MYXlvdXQsIGtleSwgdmFsdWUpOwogICAgICB9CiAgICAgIGlmIChuZXdTdGF0ZS5nbG9iYWxDYWxsYmFjaykgewogICAgICAgIHN0YXRlLmdsb2JhbENhbGxiYWNrID0gbmV3U3RhdGUuZ2xvYmFsQ2FsbGJhY2s7CiAgICAgIH0KICAgICAgZm9yICh2YXIgX2k2ID0gMCwgX09iamVjdCRlbnRyaWVzNiA9IE9iamVjdC5lbnRyaWVzK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I6CiAgICAgICAgICAgIHN0YXRlLmFjdGl2ZVZpZXcgPSAiMnZlcnRwYW5lbCI7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAiNHBhbmVsIjoKICAgICAgICAgICAgc3RhdGUuYWN0aXZlVmlldyA9ICIzcGFuZWwiOwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgIjVwYW5lbCI6CiAgICAgICAgICAgIHN0YXRlLmFjdGl2ZVZpZXcgPSAiNHBhbmVsIjsKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICI2cGFuZWwiOgogICAgICAgICAgICBzdGF0ZS5hY3RpdmVWaWV3ID0gIjVwYW5lbCI7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgICAgIHZhciBjdXN0b21MYXlvdXQgPSBuZXdMYXlvdXRXaXRoT3JpZ0luZm8oc3RhdGUuY3VzdG9tTGF5b3V0LCBzdGF0ZS5hY3RpdmVWaWV3KTsKICAgICAgICB2YXIga2V5ID0gZmluZEtleVdpdGhJZChjdXN0b21MYXlvdXQsIHBheWxvYWQuaWQpOwoKICAgICAgICAvLyBUaGUgZm9sbG93aW5nIG1vdmUgdGhlIGVudHJ5IGlkIHRvIHRoZSBhcHByb3ByaWF0ZSBzbG90CiAgICAgICAgLy8gYW5kIHJlbW92ZSB0aGUgdGFyZ2V0IGlkCiAgICAgICAgc3dpdGNoIChrZXkpIHsKICAgICAgICAgIGNhc2UgInBhbmUtMSI6CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICBzd2l0Y2ggKHBWaWV3KSB7CiAgICAgICAgICAgICAgICBjYXNlICIyaG9ycGFuZWwiOgogICAgICAgICAgICAgICAgY2FzZSAiMnZlcnRwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICIzcGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTEiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNHBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0xIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjVwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI2cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTEiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAicGFuZS0yIjoKICAgICAgICAgICAgewogICAgICAgICAgICAgIHN3aXRjaCAocFZpZXcpIHsKICAgICAgICAgICAgICAgIGNhc2UgIjJob3JwYW5lbCI6CiAgICAgICAgICAgICAgICBjYXNlICIydmVydHBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjNwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI0cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJwYW5lLTMiOgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3dpdGNoIChwVmlldykgewogICAgICAgICAgICAgICAgY2FzZSAiM3BhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjRwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI1cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgInBhbmUtNCI6CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICBzd2l0Y2ggKHBWaWV3KSB7CiAgICAgICAgICAgICAgICBjYXNlICI0cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJwYW5lLTUiOgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3dpdGNoIChwVmlldykgewogICAgICAgICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJwYW5lLTYiOgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3dpdGNoIChwVmlldykgewogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBmb3IgKHZhciBfaTkgPSAwLCBfT2JqZWN0JGVudHJpZXM5ID0gT2JqZWN0LmVudHJpZXMoY3VzdG9tTGF5b3V0KTsgX2k5IDwgX09iamVjdCRlbnRyaWVzOS5sZW5ndGg7IF9pOSsrKSB7CiAgICAgICAgICB2YXIgX09iamVjdCRlbnRyaWVzOSRfaSA9IF9zbGljZWRUb0FycmF5KF9PYmplY3QkZW50cmllczlbX2k5XSwgMiksCiAgICAgICAgICAgIF9rZXkzID0gX09iamVjdCRlbnRyaWVzOSRfaVswXSwKICAgICAgICAgICAgdmFsdWUgPSBfT2JqZWN0JGVudHJpZXM5JF9pWzFdOwogICAgICAgICAgVnVlLnNldChzdGF0ZS5jdXN0b21MYXlvdXQsIF9rZXkzLCB2YWx1ZSk7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9OwpleHBvcnQgZGVmYXVsdCB7CiAgbmFtZXNwYWNlZDogdHJ1ZSwKICBzdGF0ZTogc3RhdGUsCiAgZ2V0dGVyczogZ2V0dGVycywKICBtdXRhdGlvbnM6IG11dGF0aW9ucwp9Ow=="},{"version":3,"names":["Vue","presetLayouts","view","content","horizontal","children","id","autoAssignEntryIdsToPane","entries","layout","assignedIds","invalidIdKeys","_i","_Object$entries","Object","length","_Object$entries$_i","_slicedToArray","key","value","includes","push","forEach","done","i","extractPaneInfo","panes","_i2","_Object$entries2","_Object$entries2$_i","newLayoutWithOrigInfo","original","activeView","customLayout","_i3","_Object$entries3","_Object$entries3$_i","findKeyWithId","keys","find","state","viewIcons","icon","name","min","splitters","globalCallback","syncMode","getters","getPaneNameById","getState","mutations","assignOrSwapPaneWithIds","payload","sourceKey","source","targetKey","target","toggleGlobalCallback","flag","updateActiveView","view1","view2","_i4","_Object$entries4","_Object$entries4$_i","set","setSplitter","setState","newState","undefined","console","log","slotInfo","_i5","_Object$entries5","_Object$entries5$_i","_i6","_Object$entries6","_Object$entries6$_i","setIdToPrimaryPane","currentKey","firstPaneId","setSyncMode","originalKey","newId","_i7","_Object$entries7","_Object$entries7$_i","_i8","_Object$entries8","_Object$entries8$_i","closeSlot","availableId","pView","_i9","_Object$entries9","_Object$entries9$_i","namespaced"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/splitFlow.js"],"sourcesContent":["/* eslint-disable no-alert, no-console */\nimport Vue from \"vue\";\n\nconst presetLayouts = (view) => {\n switch (view) {\n case \"2horpanel\":\n return {\n \"split-1\": {content: false, horizontal: true, children: [\"pane-1\", \"pane-2\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n };\n case \"2vertpanel\": \n return {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\", \"pane-2\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n }\n case \"3panel\": \n return {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: true, children: [\"pane-2\", \"pane-3\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n }\n case \"4panel\": \n return {\n \"split-1\": {content: false, horizontal: false, children: [\"split-3\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: true, children: [\"pane-2\", \"pane-3\"]},\n \"split-3\": {content: false, horizontal: true, children: [\"pane-1\", \"pane-4\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n \"pane-4\": {content: true, id: 4},\n }\n case \"5panel\": \n return {\n \"split-1\": {content: false, horizontal: true, children: [\"split-3\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: false, children: [\"pane-2\", \"pane-3\", \"pane-5\"]},\n \"split-3\": {content: false, horizontal: false, children: [\"pane-1\",\"pane-4\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n \"pane-4\": {content: true, id: 4},\n \"pane-5\": {content: true, id: 5},\n }\n case \"6panel\": \n return {\n \"split-1\": {content: false, horizontal: true, children: [\"split-3\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: false, children: [\"pane-2\", \"pane-3\", \"pane-5\"]},\n \"split-3\": {content: false, horizontal: false, children: [\"pane-1\",\"pane-4\", \"pane-6\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n \"pane-4\": {content: true, id: 4},\n \"pane-5\": {content: true, id: 5},\n \"pane-6\": {content: true, id: 6},\n }\n case \"singlepanel\":\n default:\n return {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\"]},\n \"pane-1\": {content: true, id: 1},\n }\n }\n}\n\n//A method to assign unused entry to pane with duplicated id\nconst autoAssignEntryIdsToPane = (entries, layout) => {\n const assignedIds = [];\n const invalidIdKeys = [];\n for (const [key, value] of Object.entries(layout)) {\n if (value.content) {\n if (assignedIds.includes(value.id)) {\n //id has got an assigned pane, cache it and find one\n //later\n invalidIdKeys.push(key);\n } else {\n assignedIds.push(value.id);\n }\n }\n }\n invalidIdKeys.forEach((key) => {\n let done = false;\n for (let i = 0; i < entries.length || !done; i++) {\n if (!(assignedIds.includes(entries[i].id))) {\n layout[key].id = entries[i].id;\n assignedIds.push(entries.id);\n done = true;\n }\n }\n });\n}\n\nconst extractPaneInfo = (layout) => {\n const panes = {};\n for (const [key, value] of Object.entries(layout)) {\n if (value.content) {\n panes[key] = value;\n }\n }\n return panes;\n}\n\nconst newLayoutWithOrigInfo = (original, activeView) => {\n const panes = extractPaneInfo(original);\n const customLayout = presetLayouts(activeView);\n for (const [key, value] of Object.entries(panes)) {\n customLayout[key] = value;\n }\n return customLayout;\n}\n\nconst findKeyWithId = (layout, id) => {\n return Object.keys(layout).find(key => layout[key][\"id\"] === id);\n}\n\nconst state = () => ({\n activeView: \"singlepanel\",\n viewIcons: [\n { icon: \"singlepanel\", name: \"Single view\", min: 1 },\n { icon: \"2horpanel\", name: \"Horizontal split\", min: 2 },\n { icon: \"2vertpanel\", name: \"Vertical split\", min: 2 },\n { icon: \"3panel\", name: \"Three panes\", min: 3 },\n { icon: \"4panel\", name: \"Four panes\", min: 4 },\n { icon: \"5panel\", name: \"Five panes\", min: 5 },\n { icon: \"6panel\", name: \"Six panes\", min: 6 }\n //{ icon: \"customise\", name: \"Customise\", min: 2 }\n ],\n customLayout: {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\"]},\n \"pane-1\": {content: true, id: 1},\n /*\n Example layout\n\n \"split-1\": {content: false, horizontal: true, children: [\"split-2\", \"pane-1\"]},\n \"split-2\": {content: false, horizontal: false, children: [\"pane-2\", \"pane-3\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n */\n },\n splitters: { \"first\": 50, \"second\": 50, \"third\": 50 },\n globalCallback: false,\n syncMode: false,\n});\n\nconst getters = {\n getPaneNameById: (state) => (id) => {\n return findKeyWithId(state.customLayout, id);\n },\n getState: (state) => () => {\n return {\n activeView: state.activeView,\n splitters: state.splitters,\n globalCallback: state.globalCallback,\n customLayout: state.customLayout,\n syncMode: state.syncMode,\n };\n },\n}\n\nconst mutations = {\n assignOrSwapPaneWithIds(state, payload) {\n let sourceKey = findKeyWithId(state.customLayout, payload.source);\n let targetKey = findKeyWithId(state.customLayout, payload.target);\n // Check if it is on syncMode\n if (state.syncMode && (!(targetKey || sourceKey))) {\n //exit syncMod if the two panel in sync mode are not swapping\n state.syncMode = false;\n state.globalCallback = false;\n }\n if (targetKey) {\n state.customLayout[targetKey].id = payload.source;\n }\n if (sourceKey) {\n state.customLayout[sourceKey].id = payload.target;\n }\n },\n toggleGlobalCallback(state, flag) {\n state.globalCallback = flag;\n },\n updateActiveView(state, payload) {\n //Deactivate sync mode if current or future view\n //is not in 2 split panels/\n if (state.syncMode) {\n const view1 = state.viewIcons.find(\n view => state.activeView === view.icon);\n const view2 = state.viewIcons.find(\n view => payload.view === view.icon);\n if (!(view1.min == 2 && view2.min == 2)) {\n state.syncMode = false;\n state.globalCallback = false;\n }\n }\n state.activeView = payload.view;\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n autoAssignEntryIdsToPane(payload.entries, customLayout);\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n },\n setSplitter(state, payload) {\n if (state.splitters[payload.name])\n state.splitters[payload.name] = payload.value;\n },\n setState(state, newState) {\n if (newState) {\n let customLayout = undefined;\n if (newState.activeView) {\n state.activeView = newState.activeView;\n }\n if (newState.customLayout) {\n customLayout = newState.customLayout;\n } else {\n customLayout = presetLayouts(state.activeView);\n console.log(newState, customLayout)\n if (newState.slotInfo) {\n for (let i = 0; i < newState.slotInfo.length; i++) {\n switch (newState.slotInfo[i].name) {\n case \"first\": {\n customLayout[\"pane-1\"].id = newState.slotInfo[i].id;\n } break;\n case \"second\": {\n if(\"pane-2\" in customLayout)\n customLayout[\"pane-2\"].id = newState.slotInfo[i].id;\n } break;\n case \"thrid\": {\n if(\"pane-3\" in customLayout)\n customLayout[\"pane-3\"].id = newState.slotInfo[i].id;\n } break;\n case \"fourth\": {\n if(\"pane-4\" in customLayout)\n customLayout[\"pane-4\"].id = newState.slotInfo[i].id;\n } break;\n case \"fifth\": {\n if(\"pane-5\" in customLayout)\n customLayout[\"pane-5\"].id = newState.slotInfo[i].id;\n } break;\n case \"sixth\": {\n if(\"pane-6\" in customLayout)\n customLayout[\"pane-6\"].id = newState.slotInfo[i].id;\n } break;\n default:\n break;\n }\n }\n }\n }\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n if (newState.globalCallback) {\n state.globalCallback = newState.globalCallback;\n }\n for (const [key, value] of Object.entries(newState.splitters)) {\n state.splitters[key] = value;\n }\n if (newState.syncMode) {\n state.syncMode = newState.syncMode;\n }\n }\n },\n setIdToPrimaryPane(state, id) {\n const currentKey = findKeyWithId(state.customLayout, id);\n const firstPaneId = state.customLayout[\"pane-1\"].id;\n state.customLayout[\"pane-1\"].id = id;\n if (currentKey) {\n state.customLayout[currentKey].id = firstPaneId;\n }\n },\n setSyncMode(state, payload) {\n if (payload) {\n //Force the second slot to be the new viewer in payload and change the \n //view to the payload's layout\n //state.customLayout[\"pane-2\"].id = id;\n if (payload.flag === true) {\n state.activeView = payload.layout;\n //Extract pane info form original state and copy to the new layout\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n const originalKey = findKeyWithId(customLayout, 1);\n const firstPaneId = customLayout[\"pane-1\"].id;\n if (originalKey !== \"pane-1\") {\n customLayout[\"pane-1\"].id = firstPaneId;\n }\n customLayout[\"pane-1\"].id = 1;\n customLayout[\"pane-2\"].id = payload.newId;\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n state.syncMode = true;\n state.globalCallback = true;\n } else {\n state.activeView = \"singlepanel\";\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n state.syncMode = false;\n state.globalCallback = false;\n }\n }\n },\n closeSlot(state, payload) {\n if (payload) {\n state.syncMode = false;\n state.globalCallback = false;\n let availableId = 0;\n //Primary id cannot be changed\n if (payload.id === 1) {\n availableId = 1;\n } else if (payload.entries) {\n for (let i = 0; i < payload.entries.length &&\n availableId == 0; i++) {\n //Find the first entry not currently in use\n if (findKeyWithId(payload.entries[i].id) === undefined) {\n availableId = payload.entries[i].id;\n }\n }\n }\n //Switch the view\n if (state.activeView !== \"customise\") {\n //closePaneWithStandardLayout\n const pView = state.activeView;\n switch (state.activeView) {\n case \"2horpanel\":\n case \"2vertpanel\":\n state.activeView = \"singlepanel\";\n break;\n case \"3panel\":\n state.activeView = \"2vertpanel\";\n break;\n case \"4panel\":\n state.activeView = \"3panel\";\n break;\n case \"5panel\":\n state.activeView = \"4panel\";\n break;\n case \"6panel\":\n state.activeView = \"5panel\";\n break;\n default:\n break;\n }\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n const key = findKeyWithId(customLayout, payload.id);\n \n // The following move the entry id to the appropriate slot\n // and remove the target id\n switch (key) {\n case \"pane-1\": {\n switch (pView) {\n case \"2horpanel\":\n case \"2vertpanel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = availableId;\n } break;\n case \"3panel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = availableId;\n } break;\n case \"4panel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-2\": {\n switch (pView) {\n case \"2horpanel\":\n case \"2vertpanel\": {\n customLayout[\"pane-2\"].id = availableId;\n } break;\n case \"3panel\": {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = availableId;\n } break;\n case \"4panel\": {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panel\": {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-3\": {\n switch (pView) {\n case \"3panel\": {\n customLayout[\"pane-3\"].id = availableId;\n } break;\n case \"4panel\": {\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panel\": {\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-4\": {\n switch (pView) {\n case \"4panel\": {\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panel\": {\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-5\": {\n switch (pView) {\n case \"5panel\": {\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panel\": {\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-6\": {\n switch (pView) {\n case \"6panel\": {\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n default:\n break;\n }\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n }\n }\n },\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n mutations\n}\n"],"mappings":";;;;;;;;;AAAA;AACA,OAAOA,GAAG,MAAM,KAAK;AAErB,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAAI,EAAK;EAC9B,QAAQA,IAAI;IACV,KAAK,WAAW;MACd,OAAO;QACL,SAAS,EAAE;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