{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js!/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/thread-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:aW1wb3J0IF9zbGljZWRUb0FycmF5IGZyb20gIi9ob21lL2NtaXNzL0plbmtpbnMvd29ya3NwYWNlL21hcGludGVncmF0ZWR2dWVyL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2VzbS9zbGljZWRUb0FycmF5LmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMub2JqZWN0LmVudHJpZXMuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5hcnJheS5pbmNsdWRlcy5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLmFycmF5LnB1c2guanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5vYmplY3QudG8tc3RyaW5nLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuZmluZC5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLm9iamVjdC5rZXlzLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuaXRlcmF0b3IuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy93ZWIuZG9tLWNvbGxlY3Rpb25zLml0ZXJhdG9yLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuZnVuY3Rpb24ubmFtZS5qcyI7Ci8qIGVzbGludC1kaXNhYmxlIG5vLWFsZXJ0LCBuby1jb25zb2xlICovCmltcG9ydCBWdWUgZnJvbSAidnVlIjsKdmFyIHByZXNldExheW91dHMgPSBmdW5jdGlvbiBwcmVzZXRMYXlvdXRzKHZpZXcpIHsKICBzd2l0Y2ggKHZpZXcpIHsKICAgIGNhc2UgIjJob3JwYW5lbCI6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IHRydWUsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAicGFuZS0yIl0KICAgICAgICB9LAogICAgICAgICJwYW5lLTEiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDEKICAgICAgICB9LAogICAgICAgICJwYW5lLTIiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDIKICAgICAgICB9CiAgICAgIH07CiAgICBjYXNlICIydmVydHBhbmVsIjoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAicGFuZS0yIl0KICAgICAgICB9LAogICAgICAgICJwYW5lLTEiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDEKICAgICAgICB9LAogICAgICAgICJwYW5lLTIiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDIKICAgICAgICB9CiAgICAgIH07CiAgICBjYXNlICIzcGFuZWwiOgogICAgICByZXR1cm4gewogICAgICAgICJzcGxpdC0xIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiBmYWxzZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMSIsICJzcGxpdC0yIl0KICAgICAgICB9LAogICAgICAgICJzcGxpdC0yIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0yIiwgInBhbmUtMyJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfSwKICAgICAgICAicGFuZS0zIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAzCiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiNHBhbmVsIjoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJzcGxpdC0zIiwgInNwbGl0LTIiXQogICAgICAgIH0sCiAgICAgICAgInNwbGl0LTIiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IHRydWUsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTIiLCAicGFuZS0zIl0KICAgICAgICB9LAogICAgICAgICJzcGxpdC0zIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIiwgInBhbmUtNCJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfSwKICAgICAgICAicGFuZS0zIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAzCiAgICAgICAgfSwKICAgICAgICAicGFuZS00IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA0CiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiNXBhbmVsIjoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInNwbGl0LTMiLCAic3BsaXQtMiJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTIiLCAicGFuZS0zIiwgInBhbmUtNSJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAicGFuZS00Il0KICAgICAgICB9LAogICAgICAgICJwYW5lLTEiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDEKICAgICAgICB9LAogICAgICAgICJwYW5lLTIiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDIKICAgICAgICB9LAogICAgICAgICJwYW5lLTMiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDMKICAgICAgICB9LAogICAgICAgICJwYW5lLTQiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDQKICAgICAgICB9LAogICAgICAgICJwYW5lLTUiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDUKICAgICAgICB9CiAgICAgIH07CiAgICBjYXNlICI2cGFuZWwiOgogICAgICByZXR1cm4gewogICAgICAgICJzcGxpdC0xIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsic3BsaXQtMyIsICJzcGxpdC0yIl0KICAgICAgICB9LAogICAgICAgICJzcGxpdC0yIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiBmYWxzZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMiIsICJwYW5lLTMiLCAicGFuZS01Il0KICAgICAgICB9LAogICAgICAgICJzcGxpdC0zIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiBmYWxzZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMSIsICJwYW5lLTQiLCAicGFuZS02Il0KICAgICAgICB9LAogICAgICAgICJwYW5lLTEiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDEKICAgICAgICB9LAogICAgICAgICJwYW5lLTIiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDIKICAgICAgICB9LAogICAgICAgICJwYW5lLTMiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDMKICAgICAgICB9LAogICAgICAgICJwYW5lLTQiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDQKICAgICAgICB9LAogICAgICAgICJwYW5lLTUiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDUKICAgICAgICB9LAogICAgICAgICJwYW5lLTYiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDYKICAgICAgICB9CiAgICAgIH07CiAgICBjYXNlICJzaW5nbGVwYW5lbCI6CiAgICBkZWZhdWx0OgogICAgICByZXR1cm4gewogICAgICAgICJzcGxpdC0xIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiBmYWxzZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMSJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfQogICAgICB9OwogIH0KfTsKCi8vQSBtZXRob2QgdG8gYXNzaWduIHVudXNlZCBlbnRyeSB0byBwYW5lIHdpdGggZHVwbGljYXRlZCBpZAp2YXIgYXV0b0Fzc2lnbkVudHJ5SWRzVG9QYW5lID0gZnVuY3Rpb24gYXV0b0Fzc2lnbkVudHJ5SWRzVG9QYW5lKGVudHJpZXMsIGxheW91dCkgewogIHZhciBhc3NpZ25lZElkcyA9IFtdOwogIHZhciBpbnZhbGlkSWRLZXlzID0gW107CiAgZm9yICh2YXIgX2kgPSAwLCBfT2JqZWN0JGVudHJpZXMgPSBPYmplY3QuZW50cmllcyhsYXlvdXQpOyBfaSA8IF9PYmplY3QkZW50cmllcy5sZW5ndGg7IF9pKyspIHsKICAgIHZhciBfT2JqZWN0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FtrZXldWyJpZCJdID09PSBpZDsKICB9KTsKfTsKdmFyIHN0YXRlID0gZnVuY3Rpb24gc3RhdGUoKSB7CiAgcmV0dXJuIHsKICAgIGFjdGl2ZVZpZXc6ICJzaW5nbGVwYW5lbCIsCiAgICB2aWV3SWNvbnM6IFt7CiAgICAgIGljb246ICJzaW5nbGVwYW5lbCIsCiAgICAgIG5hbWU6ICJTaW5nbGUgdmlldyIsCiAgICAgIG1pbjogMQogICAgfSwgewogICAgICBpY29uOiAiMmhvcnBhbmVsIiwKICAgICAgbmFtZTogIkhvcml6b250YWwgc3BsaXQiLAogICAgICBtaW46IDIKICAgIH0sIHsKICAgICAgaWNvbjogIjJ2ZXJ0cGFuZWwiLAogICAgICBuYW1lOiAiVmVydGljYWwgc3BsaXQiLAogICAgICBtaW46IDIKICAgIH0sIHsKICAgICAgaWNvbjogIjNwYW5lbCIsCiAgICAgIG5hbWU6ICJUaHJlZSBwYW5lcyIsCiAgICAgIG1pbjogMwogICAgfSwgewogICAgICBpY29uOiAiNHBhbmVsIiwKICAgICAgbmFtZTogIkZvdXIgcGFuZXMiLAogICAgICBtaW46IDQKICAgIH0sIHsKICAgICAgaWNvbjogIjVwYW5lbCIsCiAgICAgIG5hbWU6ICJGaXZlIHBhbmVzIiwKICAgICAgbWluOiA1CiAgICB9LCB7CiAgICAgIGljb246ICI2cGFuZWwiLAogICAgICBuYW1lOiAiU2l4IHBhbmVzIiwKICAgICAgbWluOiA2CiAgICB9CiAgICAvL3sgaWNvbjogImN1c3RvbWlzZSIsIG5hbWU6ICJDdXN0b21pc2UiLCBtaW46IDIgfQogICAgXSwKCiAgICBjdXN0b21MYXlvdXQ6IHsKICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIl0KICAgICAgfSwKICAgICAgInBhbmUtMSI6IHsKICAgICAgICBjb250ZW50O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5zbG90SW5mbykgewogICAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBuZXdTdGF0ZS5zbG90SW5mby5sZW5ndGg7IGkrKykgewogICAgICAgICAgICBzd2l0Y2ggKG5ld1N0YXRlLnNsb3RJbmZvW2ldLm5hbWUpIHsKICAgICAgICAgICAgICBjYXNlICJmaXJzdCI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0xIl0uaWQgPSBuZXdTdGF0ZS5zbG90SW5mb1tpXS5pZDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIGNhc2UgInNlY29uZCI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgIGlmICgicGFuZS0yIiBpbiBjdXN0b21MYXlvdXQpIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBuZXdTdGF0ZS5zbG90SW5mb1tpXS5pZDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIGNhc2UgInRocmlkIjoKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgaWYgKCJwYW5lLTMiIGluIGN1c3RvbUxheW91dCkgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IG5ld1N0YXRlLnNsb3RJbmZvW2ldLmlkOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgY2FzZSAiZm91cnRoIjoKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgaWYgKCJwYW5lLTQiIGluIGN1c3RvbUxheW91dCkgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IG5ld1N0YXRlLnNsb3RJbmZvW2ldLmlkOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgY2FzZSAiZmlmdGgiOgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBpZiAoInBhbmUtNSIgaW4gY3VzdG9tTGF5b3V0KSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gbmV3U3RhdGUuc2xvdEluZm9baV0uaWQ7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICBjYXNlICJzaXh0aCI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgIGlmICgicGFuZS02IiBpbiBjdXN0b21MYXlvdXQpIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBuZXdTdGF0ZS5zbG90SW5mb1tpXS5pZDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgfQogICAgICAgICAgfQogICAgICAgIH0KICAgICAgfQogICAgICBmb3IgKHZhciBfaTUgPSAwLCBfT2JqZWN0JGVudHJpZXM1ID0gT2JqZWN0LmVudHJpZXMoY3VzdG9tTGF5b3V0KTsgX2k1IDwgX09iamVjdCRlbnRyaWVzNS5sZW5ndGg7IF9pNSsrKSB7CiAgICAgICAgdmFyIF9PYmplY3QkZW50cmllczUkX2kgPSBfc2xpY2VkVG9BcnJheShfT2JqZWN0JGVudHJpZXM1W19pNV0sIDIpLAogICAgICAgICAga2V5ID0gX09iamVjdCRlbnRyaWVzNSRfaVswXSwKICAgICAgICAgIHZhbHVlID0gX09iamVjdCRlbnRyaWVzNSRfaVsxXTsKICAgICAgICBWdWUuc2V0KHN0YXRlLmN1c3RvbUxheW91dCwga2V5LCB2YWx1ZSk7CiAgICAgIH0KICAgICAgaWYgKG5ld1N0YXRlLmdsb2JhbENhbGxiYWNrKSB7CiAgICAgICAgc3RhdGUuZ2xvYmFsQ2FsbGJhY2sgPSBuZXdTdGF0ZS5nbG9iYWxDYWxsYmFjazsKICAgICAgfQog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dGUuYWN0aXZlVmlldyA9ICJzaW5nbGVwYW5lbCI7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAiM3BhbmVsIjoKICAgICAgICAgICAgc3RhdGUuYWN0aXZlVmlldyA9ICIydmVydHBhbmVsIjsKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICI0cGFuZWwiOgogICAgICAgICAgICBzdGF0ZS5hY3RpdmVWaWV3ID0gIjNwYW5lbCI7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgc3RhdGUuYWN0aXZlVmlldyA9ICI0cGFuZWwiOwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgIHN0YXRlLmFjdGl2ZVZpZXcgPSAiNXBhbmVsIjsKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICBicmVhazsKICAgICAgICB9CiAgICAgICAgdmFyIGN1c3RvbUxheW91dCA9IG5ld0xheW91dFdpdGhPcmlnSW5mbyhzdGF0ZS5jdXN0b21MYXlvdXQsIHN0YXRlLmFjdGl2ZVZpZXcpOwogICAgICAgIHZhciBrZXkgPSBmaW5kS2V5V2l0aElkKGN1c3RvbUxheW91dCwgcGF5bG9hZC5pZCk7CgogICAgICAgIC8vIFRoZSBmb2xsb3dpbmcgbW92ZSB0aGUgZW50cnkgaWQgdG8gdGhlIGFwcHJvcHJpYXRlIHNsb3QKICAgICAgICAvLyBhbmQgcmVtb3ZlIHRoZSB0YXJnZXQgaWQKICAgICAgICBzd2l0Y2ggKGtleSkgewogICAgICAgICAgY2FzZSAicGFuZS0xIjoKICAgICAgICAgICAgewogICAgICAgICAgICAgIHN3aXRjaCAocFZpZXcpIHsKICAgICAgICAgICAgICAgIGNhc2UgIjJob3JwYW5lbCI6CiAgICAgICAgICAgICAgICBjYXNlICIydmVydHBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0xIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjNwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI0cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTEiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0xIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJwYW5lLTIiOgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3dpdGNoIChwVmlldykgewogICAgICAgICAgICAgICAgY2FzZSAiMmhvcnBhbmVsIjoKICAgICAgICAgICAgICAgIGNhc2UgIjJ2ZXJ0cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiM3BhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjRwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI1cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgInBhbmUtMyI6CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICBzd2l0Y2ggKHBWaWV3KSB7CiAgICAgICAgICAgICAgICBjYXNlICIzcGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNHBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjVwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI2cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAicGFuZS00IjoKICAgICAgICAgICAgewogICAgICAgICAgICAgIHN3aXRjaCAocFZpZXcpIHsKICAgICAgICAgICAgICAgIGNhc2UgIjRwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI1cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgInBhbmUtNSI6CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICBzd2l0Y2ggKHBWaWV3KSB7CiAgICAgICAgICAgICAgICBjYXNlICI1cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgInBhbmUtNiI6CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICBzd2l0Y2ggKHBWaWV3KSB7CiAgICAgICAgICAgICAgICBjYXNlICI2cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgICAgIGZvciAodmFyIF9pOSA9IDAsIF9PYmplY3QkZW50cmllczkgPSBPYmplY3QuZW50cmllcyhjdXN0b21MYXlvdXQpOyBfaTkgPCBfT2JqZWN0JGVudHJpZXM5Lmxlbmd0aDsgX2k5KyspIHsKICAgICAgICAgIHZhciBfT2JqZWN0JGVudHJpZXM5JF9pID0gX3NsaWNlZFRvQXJyYXkoX09iamVjdCRlbnRyaWVzOVtfaTldLCAyKSwKICAgICAgICAgICAgX2tleTMgPSBfT2JqZWN0JGVudHJpZXM5JF9pWzBdLAogICAgICAgICAgICB2YWx1ZSA9IF9PYmplY3QkZW50cmllczkkX2lbMV07CiAgICAgICAgICBWdWUuc2V0KHN0YXRlLmN1c3RvbUxheW91dCwgX2tleTMsIHZhbHVlKTsKICAgICAgICB9CiAgICAgIH0KICAgIH0KICB9Cn07CmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lc3BhY2VkOiB0cnVlLAogIHN0YXRlOiBzdGF0ZSwKICBnZXR0ZXJzOiBnZXR0ZXJzLAogIG11dGF0aW9uczogbXV0YXRpb25zCn07"},{"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,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