diff --git a/package-lock.json b/package-lock.json index a1dc381..acdfb38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.13.0", - "@babel/preset-react": "^7.10.4", + "@babel/preset-react": "^7.22.15", "@redux-devtools/core": "^3.13.1", "@redux-devtools/extension": "^3.2.5", "cross-env": "^7.0.3", @@ -124,12 +124,12 @@ } }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -281,12 +281,12 @@ } }, "node_modules/@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" @@ -324,9 +324,9 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", "dev": true, "engines": { "node": ">=6.9.0" @@ -404,27 +404,27 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz", + "integrity": "sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", + "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", "dev": true, "engines": { "node": ">=6.9.0" @@ -857,12 +857,12 @@ } }, "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", - "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", + "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1343,12 +1343,12 @@ } }, "node_modules/@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.22.5.tgz", + "integrity": "sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1358,16 +1358,16 @@ } }, "node_modules/@babel/plugin-transform-react-jsx": { - "version": "7.20.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.20.13.tgz", - "integrity": "sha512-MmTZx/bkUrfJhhYAYt3Urjm+h8DQGrPrnKQ94jLo7NLuOU+T89a7IByhKmrb8SKhrIYIQ0FN0CHMbnFRen4qNw==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.15.tgz", + "integrity": "sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-jsx": "^7.18.6", - "@babel/types": "^7.20.7" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "@babel/types": "^7.22.15" }, "engines": { "node": ">=6.9.0" @@ -1377,12 +1377,12 @@ } }, "node_modules/@babel/plugin-transform-react-jsx-development": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", - "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.22.5.tgz", + "integrity": "sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==", "dev": true, "dependencies": { - "@babel/plugin-transform-react-jsx": "^7.18.6" + "@babel/plugin-transform-react-jsx": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1392,13 +1392,13 @@ } }, "node_modules/@babel/plugin-transform-react-pure-annotations": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", - "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.22.5.tgz", + "integrity": "sha512-gP4k85wx09q+brArVinTXhWiyzLl9UpmGva0+mWyKxk6JZequ05x3eUcIUE+FyttPKJFRRVtAvQaJ6YF9h1ZpA==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1671,17 +1671,17 @@ } }, "node_modules/@babel/preset-react": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz", - "integrity": "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.15.tgz", + "integrity": "sha512-Csy1IJ2uEh/PecCBXXoZGAZBeCATTuePzCSB7dLYWS0vOEj6CNpjxIhW4duWwZodBNueH7QO14WbGn8YyeuN9w==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-validator-option": "^7.18.6", - "@babel/plugin-transform-react-display-name": "^7.18.6", - "@babel/plugin-transform-react-jsx": "^7.18.6", - "@babel/plugin-transform-react-jsx-development": "^7.18.6", - "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.15", + "@babel/plugin-transform-react-display-name": "^7.22.5", + "@babel/plugin-transform-react-jsx": "^7.22.15", + "@babel/plugin-transform-react-jsx-development": "^7.22.5", + "@babel/plugin-transform-react-pure-annotations": "^7.22.5" }, "engines": { "node": ">=6.9.0" @@ -1743,13 +1743,13 @@ } }, "node_modules/@babel/types": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz", - "integrity": "sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.15.tgz", + "integrity": "sha512-X+NLXr0N8XXmN5ZsaQdm9U2SSC3UbIYq/doL++sueHOTisgZHoKaQtZxGuV2cUPQHMfjKEfg/g6oy7Hm6SKFtA==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.15", "to-fast-properties": "^2.0.0" }, "engines": { @@ -2189,7 +2189,7 @@ "version": "18.13.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", - "devOptional": true + "dev": true }, "node_modules/@types/parse-json": { "version": "4.0.0", @@ -10035,12 +10035,12 @@ } }, "@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", "dev": true, "requires": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.5" } }, "@babel/helper-builder-binary-assignment-operator-visitor": { @@ -10150,12 +10150,12 @@ } }, "@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", "dev": true, "requires": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.22.15" } }, "@babel/helper-module-transforms": { @@ -10184,9 +10184,9 @@ } }, "@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", "dev": true }, "@babel/helper-remap-async-to-generator": { @@ -10243,21 +10243,21 @@ } }, "@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", "dev": true }, "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.15.tgz", + "integrity": "sha512-4E/F9IIEi8WR94324mbDUMo074YTheJmd7eZF5vITTeYchqAi6sYXRLHUVsmkdmY4QjfKTcB2jB7dVP3NaBElQ==", "dev": true }, "@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.22.15.tgz", + "integrity": "sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==", "dev": true }, "@babel/helper-wrap-function": { @@ -10543,12 +10543,12 @@ } }, "@babel/plugin-syntax-jsx": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.18.6.tgz", - "integrity": "sha512-6mmljtAedFGTWu2p/8WIORGwy+61PLgOMPOdazc7YoJ9ZCWUyFy3A6CpPkRKLKD1ToAesxX8KGEViAiLo9N+7Q==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.22.5.tgz", + "integrity": "sha512-gvyP4hZrgrs/wWMaocvxZ44Hw0b3W8Pe+cMxc8V1ULQ07oh8VNbIRaoD1LRZVTvD+0nieDKjfgKg89sD7rrKrg==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" } }, "@babel/plugin-syntax-logical-assignment-operators": { @@ -10855,44 +10855,44 @@ } }, "@babel/plugin-transform-react-display-name": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.18.6.tgz", - "integrity": "sha512-TV4sQ+T013n61uMoygyMRm+xf04Bd5oqFpv2jAEQwSZ8NwQA7zeRPg1LMVg2PWi3zWBz+CLKD+v5bcpZ/BS0aA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-display-name/-/plugin-transform-react-display-name-7.22.5.tgz", + "integrity": "sha512-PVk3WPYudRF5z4GKMEYUrLjPl38fJSKNaEOkFuoprioowGuWN6w2RKznuFNSlJx7pzzXXStPUnNSOEO0jL5EVw==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5" } }, "@babel/plugin-transform-react-jsx": { - "version": "7.20.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.20.13.tgz", - "integrity": "sha512-MmTZx/bkUrfJhhYAYt3Urjm+h8DQGrPrnKQ94jLo7NLuOU+T89a7IByhKmrb8SKhrIYIQ0FN0CHMbnFRen4qNw==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx/-/plugin-transform-react-jsx-7.22.15.tgz", + "integrity": "sha512-oKckg2eZFa8771O/5vi7XeTvmM6+O9cxZu+kanTU7tD4sin5nO/G8jGJhq8Hvt2Z0kUoEDRayuZLaUlYl8QuGA==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-jsx": "^7.18.6", - "@babel/types": "^7.20.7" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-jsx": "^7.22.5", + "@babel/types": "^7.22.15" } }, "@babel/plugin-transform-react-jsx-development": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.18.6.tgz", - "integrity": "sha512-SA6HEjwYFKF7WDjWcMcMGUimmw/nhNRDWxr+KaLSCrkD/LMDBvWRmHAYgE1HDeF8KUuI8OAu+RT6EOtKxSW2qA==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-development/-/plugin-transform-react-jsx-development-7.22.5.tgz", + "integrity": "sha512-bDhuzwWMuInwCYeDeMzyi7TaBgRQei6DqxhbyniL7/VG4RSS7HtSL2QbY4eESy1KJqlWt8g3xeEBGPuo+XqC8A==", "dev": true, "requires": { - "@babel/plugin-transform-react-jsx": "^7.18.6" + "@babel/plugin-transform-react-jsx": "^7.22.5" } }, "@babel/plugin-transform-react-pure-annotations": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.18.6.tgz", - "integrity": "sha512-I8VfEPg9r2TRDdvnHgPepTKvuRomzA8+u+nhY7qSI1fR2hRNebasZEETLyM5mAUr0Ku56OkXJ0I7NHJnO6cJiQ==", + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-pure-annotations/-/plugin-transform-react-pure-annotations-7.22.5.tgz", + "integrity": "sha512-gP4k85wx09q+brArVinTXhWiyzLl9UpmGva0+mWyKxk6JZequ05x3eUcIUE+FyttPKJFRRVtAvQaJ6YF9h1ZpA==", "dev": true, "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" } }, "@babel/plugin-transform-regenerator": { @@ -11090,17 +11090,17 @@ } }, "@babel/preset-react": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.18.6.tgz", - "integrity": "sha512-zXr6atUmyYdiWRVLOZahakYmOBHtWc2WGCkP8PYTgZi0iJXDY2CN180TdrIW4OGOAdLc7TifzDIvtx6izaRIzg==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/preset-react/-/preset-react-7.22.15.tgz", + "integrity": "sha512-Csy1IJ2uEh/PecCBXXoZGAZBeCATTuePzCSB7dLYWS0vOEj6CNpjxIhW4duWwZodBNueH7QO14WbGn8YyeuN9w==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-validator-option": "^7.18.6", - "@babel/plugin-transform-react-display-name": "^7.18.6", - "@babel/plugin-transform-react-jsx": "^7.18.6", - "@babel/plugin-transform-react-jsx-development": "^7.18.6", - "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.15", + "@babel/plugin-transform-react-display-name": "^7.22.5", + "@babel/plugin-transform-react-jsx": "^7.22.15", + "@babel/plugin-transform-react-jsx-development": "^7.22.5", + "@babel/plugin-transform-react-pure-annotations": "^7.22.5" } }, "@babel/regjsgen": { @@ -11147,13 +11147,13 @@ } }, "@babel/types": { - "version": "7.20.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz", - "integrity": "sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.15.tgz", + "integrity": "sha512-X+NLXr0N8XXmN5ZsaQdm9U2SSC3UbIYq/doL++sueHOTisgZHoKaQtZxGuV2cUPQHMfjKEfg/g6oy7Hm6SKFtA==", "dev": true, "requires": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.15", "to-fast-properties": "^2.0.0" } }, @@ -11551,7 +11551,7 @@ "version": "18.13.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.13.0.tgz", "integrity": "sha512-gC3TazRzGoOnoKAhUx+Q0t8S9Tzs74z7m0ipwGpSqQrleP14hKxP4/JUeEQcD3W1/aIpnWl8pHowI7WokuZpXg==", - "devOptional": true + "dev": true }, "@types/parse-json": { "version": "4.0.0", @@ -11795,8 +11795,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz", "integrity": "sha512-4FB8Tj6xyVkyqjj1OaTqCjXYULB9FMkqQ8yGrZjRDrYh0nOE+7Lhs45WioWQQMV+ceFlE368Ukhe6xdvJM9Egg==", - "dev": true, - "requires": {} + "dev": true }, "@webpack-cli/info": { "version": "1.5.0", @@ -11811,8 +11810,7 @@ "version": "1.7.0", "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-1.7.0.tgz", "integrity": "sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==", - "dev": true, - "requires": {} + "dev": true }, "@xtuc/ieee754": { "version": "1.2.0", @@ -11846,8 +11844,7 @@ "version": "1.8.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz", "integrity": "sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw==", - "dev": true, - "requires": {} + "dev": true }, "adjust-sourcemap-loader": { "version": "3.0.0", @@ -11904,8 +11901,7 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} + "dev": true }, "ansi-html-community": { "version": "0.0.8", @@ -12798,8 +12794,7 @@ "version": "6.3.1", "resolved": "https://registry.npmjs.org/css-declaration-sorter/-/css-declaration-sorter-6.3.1.tgz", "integrity": "sha512-fBffmak0bPAnyqc/HO8C3n2sHrp9wcqQz6ES9koRF2/mLOVAx9zIQ3Y7R29sYCteTPqMCwns4WYQoCX91Xl3+w==", - "dev": true, - "requires": {} + "dev": true }, "css-loader": { "version": "5.2.7", @@ -12954,8 +12949,7 @@ "version": "3.1.0", "resolved": "https://registry.npmjs.org/cssnano-utils/-/cssnano-utils-3.1.0.tgz", "integrity": "sha512-JQNR19/YZhz4psLX/rQ9M83e3z2Wf/HdJbryzte4a3NSuafyp9w/I4U+hx5C2S9g41qlstH7DEWnZaaj83OuEA==", - "dev": true, - "requires": {} + "dev": true }, "csso": { "version": "4.2.0", @@ -14065,8 +14059,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-5.1.0.tgz", "integrity": "sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA==", - "dev": true, - "requires": {} + "dev": true }, "ieee754": { "version": "1.2.1", @@ -15249,29 +15242,25 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-5.1.2.tgz", "integrity": "sha512-+L8208OVbHVF2UQf1iDmRcbdjJkuBF6IS29yBDSiWUIzpYaAhtNl6JYnYm12FnkeCwQqF5LeklOu6rAqgfBZqQ==", - "dev": true, - "requires": {} + "dev": true }, "postcss-discard-duplicates": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/postcss-discard-duplicates/-/postcss-discard-duplicates-5.1.0.tgz", "integrity": "sha512-zmX3IoSI2aoenxHV6C7plngHWWhUOV3sP1T8y2ifzxzbtnuhk1EdPwm0S1bIUNaJ2eNbWeGLEwzw8huPD67aQw==", - "dev": true, - "requires": {} + "dev": true }, "postcss-discard-empty": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/postcss-discard-empty/-/postcss-discard-empty-5.1.1.tgz", "integrity": "sha512-zPz4WljiSuLWsI0ir4Mcnr4qQQ5e1Ukc3i7UfE2XcrwKK2LIPIqE5jxMRxO6GbI3cv//ztXDsXwEWT3BHOGh3A==", - "dev": true, - "requires": {} + "dev": true }, "postcss-discard-overridden": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/postcss-discard-overridden/-/postcss-discard-overridden-5.1.0.tgz", "integrity": "sha512-21nOL7RqWR1kasIVdKs8HNqQJhFxLsyRfAnUDm4Fe4t4mCWL9OJiHvlHPjcd8zc5Myu89b/7wZDnOSjFgeWRtw==", - "dev": true, - "requires": {} + "dev": true }, "postcss-import": { "version": "12.0.1", @@ -15422,8 +15411,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz", "integrity": "sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw==", - "dev": true, - "requires": {} + "dev": true }, "postcss-modules-local-by-default": { "version": "4.0.0", @@ -15458,8 +15446,7 @@ "version": "5.1.0", "resolved": "https://registry.npmjs.org/postcss-normalize-charset/-/postcss-normalize-charset-5.1.0.tgz", "integrity": "sha512-mSgUJ+pd/ldRGVx26p2wz9dNZ7ji6Pn8VWBajMXFf8jk7vUoSrZ2lt/wZR7DtlZYKesmZI680qjr2CeFF2fbUg==", - "dev": true, - "requires": {} + "dev": true }, "postcss-normalize-display-values": { "version": "5.1.0", @@ -15891,8 +15878,7 @@ "redux-thunk": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/redux-thunk/-/redux-thunk-2.4.2.tgz", - "integrity": "sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==", - "requires": {} + "integrity": "sha512-+P3TjtnP0k/FEjcBL5FZpoovtvrTNT/UXd4/sluaSyrURlSlhLSzEdfsTBW7WsKB6yPvgd7q/iZPICFjW4o57Q==" }, "regenerate": { "version": "1.4.2", @@ -16935,8 +16921,7 @@ "use-sync-external-store": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz", - "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==", - "requires": {} + "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==" }, "util": { "version": "0.11.1", @@ -17421,8 +17406,7 @@ "version": "8.12.0", "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz", "integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==", - "dev": true, - "requires": {} + "dev": true }, "xtend": { "version": "4.0.2", diff --git a/package.json b/package.json index 271f78c..c1292cb 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@babel/plugin-proposal-class-properties": "^7.13.0", - "@babel/preset-react": "^7.10.4", + "@babel/preset-react": "^7.22.15", "@redux-devtools/core": "^3.13.1", "@redux-devtools/extension": "^3.2.5", "cross-env": "^7.0.3", diff --git a/public/js/app.js b/public/js/app.js index e50b9ef..2709593 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -(self.webpackChunk=self.webpackChunk||[]).push([[773],{66:(t,e,r)=>{"use strict";var n=r(294),o=r(745),i=r(688),a=r(798),c=r(935);let u=function(t){t()};const s=()=>u,l=(0,n.createContext)(null);function f(){return(0,n.useContext)(l)}let p=()=>{throw new Error("uSES not initialized!")};const d=(t,e)=>t===e;function h(t=l){const e=t===l?f:()=>(0,n.useContext)(t);return function(t,r=d){const{store:o,subscription:i,getServerState:a}=e(),c=p(i.addNestedSub,o.getState,a||o.getState,t,r);return(0,n.useDebugValue)(c),c}}const y=h();r(679),r(973);const m={notify(){},get:()=>[]};function b(t,e){let r,n=m;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=e?e.addNestedSub(o):t.subscribe(o),n=function(){const t=s();let e=null,r=null;return{clear(){e=null,r=null},notify(){t((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(t){let n=!0,o=r={callback:t,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){n&&null!==e&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}const a={addNestedSub:function(t){return i(),n.subscribe(t)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=m)},getListeners:()=>n};return a}const v=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?n.useLayoutEffect:n.useEffect;let g=null;const w=function({store:t,context:e,children:r,serverState:o}){const i=(0,n.useMemo)((()=>{const e=b(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0}}),[t,o]),a=(0,n.useMemo)((()=>t.getState()),[t]);v((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,a]);const c=e||l;return n.createElement(c.Provider,{value:i},r)};function j(t=l){const e=t===l?f:()=>(0,n.useContext)(t);return function(){const{store:t}=e();return t}}const O=j();function _(t=l){const e=t===l?O:j(t);return function(){return e().dispatch}}const S=_();var x,P;x=a.useSyncExternalStoreWithSelector,p=x,(t=>{g=t})(i.useSyncExternalStore),P=c.unstable_batchedUpdates,u=P;var k=r(890);function E(t){return function(e){var r=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(r,n,t):e(o)}}}}var C=E();C.withExtraArgument=E;const R=C;function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:I,e=arguments.length>1?arguments[1]:void 0;return"cmf/update"===e.type?L(L({},t),{},{title:e.payload.title,version:e.payload.version}):t},auth:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"auth/loggedin":return B(B({},t),{},{isLoggedIn:!0,user:e.payload});case"auth/loggedout":return B(B({},t),{},{isLoggedIn:!1,user:null});default:return t}},location:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"location/refresh":return K(K({},t),{},{refresh:!0});case"location/stop-refresh":return K(K({},t),{},{refresh:!1});case"location/update":var r=K(K({},t.current),e.payload);return K(K({},t),{},{previous:K({},t.current),current:K({},r)});default:return t}},media:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"media/init":return at(at({},t),{},{isInitialised:!0,directory:e.payload.directory,path:e.payload.path,directories:e.payload.directories,files:e.payload.files});case"media/path/update":return at(at({},t),{},{path:e.payload});case"media/directory/update":return at(at({},t),{},{directory:e.payload});case"media/directories/move":return t.directory&&t.directory.id!==e.moveToId||!t.directory&&e.moveToId?at(at({},t),{},{directories:t.directories.filter((function(t){return!e.directoryIds.includes(t.id)}))}):at({},t);case"media/directories/update":return at(at({},t),{},{directories:e.payload});case"media/directories/rename":var r=nt(t.directories).map((function(t){return at(at({},t),{},{name:t.id===e.payload.id?e.payload.name:t.name})}));return at(at({},t),{},{directories:r});case"media/directories/delete":return at(at({},t),{},{directories:t.directories.filter((function(t){return!e.directoryIds.includes(t.id)}))});case"media/directories/add":return at(at({},t),{},{directories:[].concat(nt(t.directories),[e.payload]).sort((function(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:-1}))});case"media/files/label":var n=nt(t.files).map((function(t){return at(at({},t),{},{label:t.id===e.fileId?e.label:t.label})}));return at(at({},t),{},{files:n});case"media/files/changeProperty":var o=nt(t.files).map((function(t){return t[e.property]=t.id===e.fileId?e.value:t[e.property],t}));return at(at({},t),{},{files:o});case"media/files/delete":return at(at({},t),{},{files:t.files.filter((function(t){return!e.fileIds.includes(t.id)}))});case"media/files/add":return at(at({},t),{},{files:[].concat(nt(t.files),[e.payload])});case"media/files/move":return t.directory&&t.directory.id!==e.moveToId||!t.directory&&e.moveToId?at(at({},t),{},{files:t.files.filter((function(t){return!e.fileIds.includes(t.id)}))}):at({},t);case"media/files/rename":var i=nt(t.files).map((function(t){return at(at({},t),{},{name:t.id===e.payload.id?e.payload.name:t.name})}));return at(at({},t),{},{files:i});case"media/files/update":return at(at({},t),{},{files:e.payload});case"media/view/update":return at(at({},t),{},{viewMode:e.payload});default:return t}},modules:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,e=arguments.length>1?arguments[1]:void 0;return"modules/update"===e.type?V(V({},t),{},{all:e.payload.all,primary:e.payload.primary,secondary:e.payload.secondary}):t},language:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et,e=arguments.length>1?arguments[1]:void 0;return"language/update"===e.type?X(X({},t),{},{language:e.payload}):t}});const lt=st;const ft={get:function(t){var e=document.querySelector('meta[name="'+t+'"]');return e?e.getAttribute("content"):null}},pt={get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=window.localStorage.getItem(t);return r||null===e?r:e},set:function(t,e){window.localStorage.setItem(t,e)},remove:function(t){window.localStorage.removeItem(t)},clear:function(){window.localStorage.clear()}};var dt=function(){for(var t=arguments.length,e=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.split("."),n=window.i18n,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,r=document.createElement("button");return r.setAttribute("type","button"),r.classList.add("button"),r.textContent=t,e&&r.addEventListener("click",e),r},i18nNotify:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.notify(mt.get(t,e))},notify:function(t){var e=this;this.notificationStackEl||(this.notificationStackEl=document.createElement("div"),this.notificationStackEl.classList.add("notification-stack"),document.body.appendChild(this.notificationStackEl));var r=document.createElement("div");r.classList.add("notification"),r.textContent=bt.toUpperCaseFirst(t),this.notificationStackEl.appendChild(r),setTimeout((function(){r.classList.add("notification--hidden"),setTimeout((function(){return e.notificationStackEl.removeChild(r)}),250)}),3e3)},copyText:function(t,e){var r=document.createElement("textarea");r.value=t,r.style.top=0,r.style.left=0,r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")&&e()}catch(t){console.error("Fallback: Oops, unable to copy text to clipboard",t)}document.body.removeChild(r)}};var gt=r(379),wt=r.n(gt),jt=r(709),Ot={insert:"head",singleton:!1};wt()(jt.Z,Ot);jt.Z.locals;const _t={scrollTop:function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},className:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return t;"string"==typeof e&&(e=[e]);var r=" "+t+"--";return t+(e?r+e.join(r):"")},shallowEqual:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=0,i=r;o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ae(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const ce={path:ft.get("cmf:path"),currentPath:{},history:[],parseLocation:function(t){var e="/"+this.path+"/",r=t.search,n=new URLSearchParams(r),o=Object.fromEntries(n),i=t.pathname,a=(i.startsWith(e)?i.slice(e.length):"").split("/");return{module:a[0],action:a[1],params:o}},update:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht.dispatch({type:"location/update",payload:{module:t,action:e,params:r}})},goTo:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ne.query(r);window.history.pushState({},"",this.path+"/"+t+"/"+e+(n?"?"+n:"")),this.history.push({module:t,action:e,params:r}),this.update(t,e,r)},refresh:function(){ht.dispatch(function(){var t=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ae(i,n,o,a,c,"next",t)}function c(t){ae(i,n,o,a,c,"throw",t)}a(void 0)}))}}(ie().mark((function t(e){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({type:"location/refresh"});case 2:e({type:"location/stop-refresh"});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},goBack:function(){var t=this.history[this.history.length-2],e=t.module,r=t.action,n=t.params;this.goTo(e,r,n)},handleRedirect:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.refresh?this.refresh():t.redirectBack?this.goBack():t.redirect&&this.goTo(t.path.module,t.redirect,e)}};function ue(t){var e=y((function(t){return t.modules.primary})),r=function(e){t.onModuleSwitch&&t.onModuleSwitch(),ce.goTo(e.id,"index")},o=function(t,e){"open"===t?r(e):"open_new"===t&&window.open(e.url)},i=function(e){if(t.activeModule&&t.activeModule.id===e.id)return!0;for(var r=0;r{const e=wr.call(t);return _r[e]||(_r[e]=e.slice(8,-1).toLowerCase())});var _r;const Sr=t=>(t=t.toLowerCase(),e=>Or(e)===t),xr=t=>e=>typeof e===t,{isArray:Pr}=Array,kr=xr("undefined");const Er=Sr("ArrayBuffer");const Cr=xr("string"),Rr=xr("function"),Tr=xr("number"),Nr=t=>null!==t&&"object"==typeof t,Lr=t=>{if("object"!==Or(t))return!1;const e=jr(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Dr=Sr("Date"),Ir=Sr("File"),Fr=Sr("Blob"),Ar=Sr("FileList"),Br=Sr("URLSearchParams");function Ur(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,o;if("object"!=typeof t&&(t=[t]),Pr(t))for(n=0,o=t.length;n0;)if(n=r[o],e===n.toLowerCase())return n;return null}const zr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Gr=t=>!kr(t)&&t!==zr;const Vr=(qr="undefined"!=typeof Uint8Array&&jr(Uint8Array),t=>qr&&t instanceof qr);var qr;const Wr=Sr("HTMLFormElement"),Yr=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),$r=Sr("RegExp"),Kr=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ur(r,((r,o)=>{!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},Hr="abcdefghijklmnopqrstuvwxyz",Zr="0123456789",Jr={DIGIT:Zr,ALPHA:Hr,ALPHA_DIGIT:Hr+Hr.toUpperCase()+Zr};const Qr={isArray:Pr,isArrayBuffer:Er,isBuffer:function(t){return null!==t&&!kr(t)&&null!==t.constructor&&!kr(t.constructor)&&Rr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||wr.call(t)===e||Rr(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Er(t.buffer),e},isString:Cr,isNumber:Tr,isBoolean:t=>!0===t||!1===t,isObject:Nr,isPlainObject:Lr,isUndefined:kr,isDate:Dr,isFile:Ir,isBlob:Fr,isRegExp:$r,isFunction:Rr,isStream:t=>Nr(t)&&Rr(t.pipe),isURLSearchParams:Br,isTypedArray:Vr,isFileList:Ar,forEach:Ur,merge:function t(){const{caseless:e}=Gr(this)&&this||{},r={},n=(n,o)=>{const i=e&&Mr(r,o)||o;Lr(r[i])&&Lr(n)?r[i]=t(r[i],n):Lr(n)?r[i]=t({},n):Pr(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t(Ur(e,((e,n)=>{r&&Rr(e)?t[n]=gr(e,r):t[n]=e}),{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&jr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Or,kindOfTest:Sr,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(Pr(t))return t;let e=t.length;if(!Tr(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:Wr,hasOwnProperty:Yr,hasOwnProp:Yr,reduceDescriptors:Kr,freezeMethods:t=>{Kr(t,((e,r)=>{if(Rr(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];Rr(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return Pr(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Mr,global:zr,isContextDefined:Gr,ALPHABET:Jr,generateString:(t=16,e=Jr.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&Rr(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(Nr(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=Pr(t)?[]:{};return Ur(t,((t,e)=>{const i=r(t,n+1);!kr(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)}};function Xr(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Qr.inherits(Xr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Qr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tn=Xr.prototype,en={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{en[t]={value:t}})),Object.defineProperties(Xr,en),Object.defineProperty(tn,"isAxiosError",{value:!0}),Xr.from=(t,e,r,n,o,i)=>{const a=Object.create(tn);return Qr.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Xr.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const rn=Xr,nn=null;var on=r(764).lW;function an(t){return Qr.isPlainObject(t)||Qr.isArray(t)}function cn(t){return Qr.endsWith(t,"[]")?t.slice(0,-2):t}function un(t,e,r){return t?t.concat(e).map((function(t,e){return t=cn(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const sn=Qr.toFlatObject(Qr,{},null,(function(t){return/^is[A-Z]/.test(t)}));const ln=function(t,e,r){if(!Qr.isObject(t))throw new TypeError("target must be an object");e=e||new(nn||FormData);const n=(r=Qr.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Qr.isUndefined(e[t])}))).metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Qr.isSpecCompliantForm(e);if(!Qr.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Qr.isDate(t))return t.toISOString();if(!c&&Qr.isBlob(t))throw new rn("Blob is not supported. Use a Buffer instead.");return Qr.isArrayBuffer(t)||Qr.isTypedArray(t)?c&&"function"==typeof Blob?new Blob([t]):on.from(t):t}function s(t,r,o){let c=t;if(t&&!o&&"object"==typeof t)if(Qr.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(Qr.isArray(t)&&function(t){return Qr.isArray(t)&&!t.some(an)}(t)||(Qr.isFileList(t)||Qr.endsWith(r,"[]"))&&(c=Qr.toArray(t)))return r=cn(r),c.forEach((function(t,n){!Qr.isUndefined(t)&&null!==t&&e.append(!0===a?un([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!an(t)||(e.append(un(o,r,i),u(t)),!1)}const l=[],f=Object.assign(sn,{defaultVisitor:s,convertValue:u,isVisitable:an});if(!Qr.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!Qr.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Qr.forEach(r,(function(r,i){!0===(!(Qr.isUndefined(r)||null===r)&&o.call(e,r,Qr.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e};function fn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function pn(t,e){this._pairs=[],t&&ln(t,this,e)}const dn=pn.prototype;dn.append=function(t,e){this._pairs.push([t,e])},dn.toString=function(t){const e=t?function(e){return t.call(this,e,fn)}:fn;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const hn=pn;function yn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mn(t,e,r){if(!e)return t;const n=r&&r.encode||yn,o=r&&r.serialize;let i;if(i=o?o(e,r):Qr.isURLSearchParams(e)?e.toString():new hn(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const bn=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Qr.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},vn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gn="undefined"!=typeof URLSearchParams?URLSearchParams:hn,wn=FormData,jn=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),On="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_n={isBrowser:!0,classes:{URLSearchParams:gn,FormData:wn,Blob},isStandardBrowserEnv:jn,isStandardBrowserWebWorkerEnv:On,protocols:["http","https","file","blob","url","data"]};const Sn=function(t){function e(t,r,n,o){let i=t[o++];const a=Number.isFinite(+i),c=o>=t.length;if(i=!i&&Qr.isArray(n)?n.length:i,c)return Qr.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&Qr.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&Qr.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n{e(function(t){return Qr.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null},xn={"Content-Type":void 0};const Pn={transitional:vn,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=Qr.isObject(t);o&&Qr.isHTMLForm(t)&&(t=new FormData(t));if(Qr.isFormData(t))return n&&n?JSON.stringify(Sn(t)):t;if(Qr.isArrayBuffer(t)||Qr.isBuffer(t)||Qr.isStream(t)||Qr.isFile(t)||Qr.isBlob(t))return t;if(Qr.isArrayBufferView(t))return t.buffer;if(Qr.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return ln(t,new _n.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return _n.isNode&&Qr.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=Qr.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ln(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(Qr.isString(t))try{return(e||JSON.parse)(t),Qr.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Pn.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&Qr.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw rn.from(t,rn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_n.classes.FormData,Blob:_n.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Qr.forEach(["delete","get","head"],(function(t){Pn.headers[t]={}})),Qr.forEach(["post","put","patch"],(function(t){Pn.headers[t]=Qr.merge(xn)}));const kn=Pn,En=Qr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cn=Symbol("internals");function Rn(t){return t&&String(t).trim().toLowerCase()}function Tn(t){return!1===t||null==t?t:Qr.isArray(t)?t.map(Tn):String(t)}function Nn(t,e,r,n){return Qr.isFunction(n)?n.call(this,e,r):Qr.isString(e)?Qr.isString(n)?-1!==e.indexOf(n):Qr.isRegExp(n)?n.test(e):void 0:void 0}class Ln{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Rn(e);if(!o)throw new Error("header name must be a non-empty string");const i=Qr.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Tn(t))}const i=(t,e)=>Qr.forEach(t,((t,r)=>o(t,r,e)));return Qr.isPlainObject(t)||t instanceof this.constructor?i(t,e):Qr.isString(t)&&(t=t.trim())&&!function(t){return/^[-_a-zA-Z]+$/.test(t.trim())}(t)?i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&En[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=Rn(t)){const r=Qr.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(Qr.isFunction(e))return e.call(this,t,r);if(Qr.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Rn(t)){const r=Qr.findKey(this,t);return!(!r||void 0===this[r]||e&&!Nn(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Rn(t)){const o=Qr.findKey(r,t);!o||e&&!Nn(0,r[o],o,e)||(delete r[o],n=!0)}}return Qr.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!Nn(0,this[o],o,t)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return Qr.forEach(this,((n,o)=>{const i=Qr.findKey(r,o);if(i)return e[i]=Tn(n),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Tn(n),r[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Qr.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Qr.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=(this[Cn]=this[Cn]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Rn(t);e[n]||(!function(t,e){const r=Qr.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return Qr.isArray(t)?t.forEach(n):n(t),this}}Ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Qr.freezeMethods(Ln.prototype),Qr.freezeMethods(Ln);const Dn=Ln;function In(t,e){const r=this||kn,n=e||r,o=Dn.from(n.headers);let i=n.data;return Qr.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Fn(t){return!(!t||!t.__CANCEL__)}function An(t,e,r){rn.call(this,null==t?"canceled":t,rn.ERR_CANCELED,e,r),this.name="CanceledError"}Qr.inherits(An,rn,{__CANCEL__:!0});const Bn=An;const Un=_n.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){const a=[];a.push(t+"="+encodeURIComponent(e)),Qr.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Qr.isString(n)&&a.push("path="+n),Qr.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Mn(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const zn=_n.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=Qr.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};const Gn=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(c){const u=Date.now(),s=n[a];o||(o=u),r[i]=c,n[i]=u;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o{const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=i-r,u=n(c);r=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};s[e?"download":"upload"]=!0,t(s)}}const qn="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=Dn.from(t.headers).normalize(),i=t.responseType;let a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}Qr.isFormData(n)&&(_n.isStandardBrowserEnv||_n.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const s=Mn(t.baseURL,t.url);function l(){if(!u)return;const n=Dn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new rn("Request failed with status code "+r.status,[rn.ERR_BAD_REQUEST,rn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),c()}),(function(t){r(t),c()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),mn(s,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(r(new rn("Request aborted",rn.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new rn("Network Error",rn.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||vn;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new rn(e,n.clarifyTimeoutError?rn.ETIMEDOUT:rn.ECONNABORTED,t,u)),u=null},_n.isStandardBrowserEnv){const e=(t.withCredentials||zn(s))&&t.xsrfCookieName&&Un.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in u&&Qr.forEach(o.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Qr.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&"json"!==i&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Vn(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Vn(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(r(!e||e.type?new Bn(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(s);f&&-1===_n.protocols.indexOf(f)?r(new rn("Unsupported protocol "+f+":",rn.ERR_BAD_REQUEST,t)):u.send(n||null)}))},Wn={http:nn,xhr:qn};Qr.forEach(Wn,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Yn={getAdapter:t=>{t=Qr.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;ot instanceof Dn?t.toJSON():t;function Zn(t,e){e=e||{};const r={};function n(t,e,r){return Qr.isPlainObject(t)&&Qr.isPlainObject(e)?Qr.merge.call({caseless:r},t,e):Qr.isPlainObject(e)?Qr.merge({},e):Qr.isArray(e)?e.slice():e}function o(t,e,r){return Qr.isUndefined(e)?Qr.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!Qr.isUndefined(e))return n(void 0,e)}function a(t,e){return Qr.isUndefined(e)?Qr.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function c(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(t,e)=>o(Hn(t),Hn(e),!0)};return Qr.forEach(Object.keys(t).concat(Object.keys(e)),(function(n){const i=u[n]||o,a=i(t[n],e[n],n);Qr.isUndefined(a)&&i!==c||(r[n]=a)})),r}const Jn="1.3.2",Qn={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Qn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const Xn={};Qn.transitional=function(t,e,r){function n(t,e){return"[Axios v"+Jn+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new rn(n(o," has been removed"+(e?" in "+e:"")),rn.ERR_DEPRECATED);return e&&!Xn[o]&&(Xn[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};const to={assertOptions:function(t,e,r){if("object"!=typeof t)throw new rn("options must be an object",rn.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new rn("option "+i+" must be "+r,rn.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new rn("Unknown option "+i,rn.ERR_BAD_OPTION)}},validators:Qn},eo=to.validators;class ro{constructor(t){this.defaults=t,this.interceptors={request:new bn,response:new bn}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Zn(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;let i;void 0!==r&&to.assertOptions(r,{silentJSONParsing:eo.transitional(eo.boolean),forcedJSONParsing:eo.transitional(eo.boolean),clarifyTimeoutError:eo.transitional(eo.boolean)},!1),void 0!==n&&to.assertOptions(n,{encode:eo.function,serialize:eo.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&Qr.merge(o.common,o[e.method]),i&&Qr.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Dn.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(c=c&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let s;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,f=0;if(!c){const t=[Kn.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),l=t.length,s=Promise.resolve(e);f{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Bn(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new oo((function(e){t=e})),cancel:t}}}const io=oo;const ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ao).forEach((([t,e])=>{ao[e]=t}));const co=ao;const uo=function t(e){const r=new no(e),n=gr(no.prototype.request,r);return Qr.extend(n,no.prototype,r,{allOwnKeys:!0}),Qr.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Zn(e,r))},n}(kn);uo.Axios=no,uo.CanceledError=Bn,uo.CancelToken=io,uo.isCancel=Fn,uo.VERSION=Jn,uo.toFormData=ln,uo.AxiosError=rn,uo.Cancel=uo.CanceledError,uo.all=function(t){return Promise.all(t)},uo.spread=function(t){return function(e){return t.apply(null,e)}},uo.isAxiosError=function(t){return Qr.isObject(t)&&!0===t.isAxiosError},uo.mergeConfig=Zn,uo.AxiosHeaders=Dn,uo.formToJSON=t=>Sn(Qr.isHTMLForm(t)?new FormData(t):t),uo.HttpStatusCode=co,uo.default=uo;const so=uo;function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function fo(){fo=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new x(o||[]);return n(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function d(){}function h(){}var y={};u(y,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==e&&r.call(b,i)&&(y=b);var v=h.prototype=p.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==lo(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ho(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n={file:t};return e&&(n.directory=e),vo.post("cmf/api/media/upload",ne.formData(n),{onUploadProgress:r})},go.media.uploadChunk=function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i={status:t,filename:e,chunk:n};return r&&(i.path=r),o&&(i.directory=o),vo.post("cmf/api/media/upload-chunk",ne.formData(i))},go.media.path=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={};return t&&(e.directory=t),vo.get("cmf/api/media/path",{params:e})},go.media.loadDirectories=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={};return t&&(e.directory=t),vo.get("cmf/api/media/load-directories",{params:e})},go.media.loadFiles=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={};return t&&(e.directory=t),vo.get("cmf/api/media/load-files",{params:e})},go.media.createDirectory=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={name:t};return e&&(r.directory=e),vo.post("cmf/api/media/create-directory",r)},go.media.renameDirectory=function(t,e){return vo.post("cmf/api/media/rename-directory",{name:t,directory:e})},go.media.deleteDirectory=function(t){return vo.post("cmf/api/media/delete-directory",{directory:t})},go.media.moveDirectory=function(t,e){return vo.post("cmf/api/media/move-directory",{directory:t,id:e})},go.media.renameFile=function(t,e){return vo.post("cmf/api/media/rename-file",{name:t,file:e})},go.media.deleteFile=function(t){return vo.post("cmf/api/media/delete-file",{file:t})},go.media.deleteFiles=function(t){return vo.post("cmf/api/media/delete-files",{files:JSON.stringify(t)})},go.media.labelFile=function(t,e){return vo.post("cmf/api/media/label-file",{label:t,file:e})},go.media.updateFileDescription=function(t,e){return vo.post("cmf/api/media/update-file-description",{description:t,file:e})},go.media.updateFileCopyright=function(t,e){return vo.post("cmf/api/media/update-file-copyright",{copyright:t,file:e})},go.media.updateFileVisibility=function(t,e){return vo.post("cmf/api/media/update-file-visibility",{visibility:t,file:e})},go.media.updateFilesDescription=function(t,e){return vo.post("cmf/api/media/update-files-description",{description:t,files:JSON.stringify(e)})},go.media.updateFilesCopyright=function(t,e){return vo.post("cmf/api/media/update-files-copyright",{copyright:t,files:JSON.stringify(e)})},go.media.moveFile=function(t,e){return vo.post("cmf/api/media/move-file",{directory:t,file:e})},go.media.moveFiles=function(t,e){return vo.post("cmf/api/media/move-files",{directory:t,files:JSON.stringify(e)})},go.modules.index=function(){return vo.get("cmf/api/modules")},go.modules.action=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return vo.get("cmf/api/modules/".concat(t.module,"/").concat(t.action),{params:e})},go.modules.get=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vo.get("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e),{params:r})},go.modules.post=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vo.post("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e),ne.formData(r))},go.execute.get=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return vo.get("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e,"/").concat(r),{params:n})},go.execute.post=function(t,e,r,n){return vo.post("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e,"/").concat(r),ne.formData(n))};const wo=go;function jo(t){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jo(t)}function Oo(t,e){for(var r=0;r1&&void 0!==arguments[1])||arguments[1])&&(Si.set(t),_i.trigger("language.switch",{id:this.props.id,prevLanguage:this.state.language,language:t})),this.setState({language:t})}},{key:"renderLanguageSwitcher",value:function(){var t=this;return this.props.languages.map((function(e){return(0,St.jsx)("button",{type:"button",onClick:function(r){return t.switchLanguage(e)},className:"translatable__button"+(e===t.state.language?" translatable__button--active":""),children:e},e)}))}},{key:"render",value:function(){return(0,St.jsxs)("div",{className:"translatable",id:"language-"+this.props.id,children:[(0,St.jsx)("div",{className:"translatable__tabs",children:this.renderLanguageSwitcher()}),this.renderTranslatedComponents()]})}}],r&&Ei(e.prototype,r),n&&Ei(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);Ni(Di,"defaultProps",{id:null,components:[],path:{},data:{},languages:[],errors:{}});const Ii=Di;function Fi(t){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(t)}function Ai(t,e){for(var r=0;r5&&(t=(0,St.jsx)("div",{className:"select__search",children:(0,St.jsx)(Ji,{debounce:100,onSearch:function(t){return e.search(t)}})})),(0,St.jsxs)("div",{className:"select__dropdown",children:[t,(0,St.jsx)("div",{className:"select__list",children:(0,St.jsx)(Vi,{nullable:this.props.nullable,multiple:this.props.multiple,defaultValues:this.props.multiple?this.state.value:[this.state.value],options:this.state.isSearching?this.state.searchResults:this.props.options,onChange:function(t){return e.handleSelectionChange(t)}})}),this.renderDropdownChildren()]})):null}},{key:"render",value:function(){var t,e=this;return t=this.props.multiple?this.state.value.length?this.state.value.map((function(t){return e.props.options[t]})).join(", "):this.props.nullText:this.props.options[this.state.value]?this.props.options[this.state.value]:this.props.nullText,(0,St.jsxs)("div",{className:"select",ref:this.selectRef,children:[(0,St.jsxs)("div",{className:"select__field",onClick:this.toggle.bind(this),children:[(0,St.jsx)("div",{className:"select__value",children:t}),(0,St.jsx)("div",{className:"select__icon",children:(0,St.jsx)(Qt,{name:this.state.isOpen?this.props.closeIcon:this.props.openIcon})})]}),this.renderDropdown()]})}}],r&&ta(e.prototype,r),o&&ta(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=ia(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(aa,"defaultProps",{options:{},multiple:!1,value:"",search:!0,nullable:!1,nullText:"",onChange:function(t){},openIcon:"expand_more",closeIcon:"expand_less"});const ca=aa;function ua(t){return ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(t)}function sa(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;wo.execute.get(this.props.path,this.props.id,"load",this.props.path.params).then((function(r){var n=r.data.data,o={};n.forEach((function(e){return o[e.id]=e[t.props.titleColumn]}));var i=n.length?n[0].id:"",a=t.state.value?t.state.value:t.props.nullable?"":i;t.setState({value:a,options:o},(function(){e&&e()}))}))}},{key:"handleChange",value:function(t){this.setState({value:t})}},{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"create",value:function(t){var e=this;wo.execute.post(this.props.path,this.props.id,"create",t).then((function(t){e.createFormRef.current.ready(),e.load((function(){e.setState({isOpen:!1,value:t.data.data.id})})),vt.notify(mt.get("snippets.singular_created_selected",{singular:e.props.singular}))}),(function(t){var r=t.response;e.createFormRef.current.ready(),e.setState({createFormErrors:r.data.errors}),vt.notify(r.data.message)}))}},{key:"renderSidebarComponents",value:function(){return rb.renderComponents(this.props.sidebarComponents,{},this.props.path)}},{key:"renderCreateComponents",value:function(){return rb.renderComponents(this.props.createComponents,{},this.props.path)}},{key:"renderCreateWidget",value:function(){return this.state.isOpen?(0,St.jsx)(ko,{children:(0,St.jsx)(Vo,{title:mt.get("snippets.new_singular",{singular:this.props.singular}),style:"modal",closeable:!0,onClose:this.close.bind(this),children:(0,St.jsx)(ti,{ref:this.createFormRef,errors:this.state.createFormErrors,realForm:!1,onSubmit:this.create.bind(this),submitButtonText:mt.get("snippets.create_singular",{singular:this.props.singular}),sidebar:this.renderSidebarComponents(),children:this.renderCreateComponents()})})}):null}},{key:"renderCreate",value:function(){return this.props.create?(0,St.jsx)("div",{className:"belongs-to-field__btn",children:(0,St.jsx)(nr,{icon:"add",style:["full","small","secondary"],text:mt.get("snippets.new_singular",{singular:this.props.singular}),onClick:this.open.bind(this)})}):null}},{key:"render",value:function(){var t=this;return(0,St.jsxs)(xe,{name:this.props.name,label:this.props.label,tooltip:this.props.tooltip,children:[(0,St.jsx)("div",{className:"belongs-to-field",children:(0,St.jsx)("div",{className:"belongs-to-field__field",children:(0,St.jsx)(ca,{nullable:this.props.nullable,nullText:"– "+mt.get("snippets.no_singular_selected",{singular:this.props.singular})+" –",options:this.state.options,value:this.state.value,onChange:function(e){return t.handleChange(e)},children:this.renderCreate()})})}),this.renderCreateWidget()]})}}],r&&Au(e.prototype,r),o&&Au(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=zu(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Gu,"defaultProps",{data:{},label:"",name:"",titleColumn:"",nullable:!1,plural:"",singular:"",tooltip:"",create:!1,createComponents:[],sidebarComponents:[]});const Vu=Gu;function qu(t){return qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(t)}function Wu(t,e){for(var r=0;rA2');var n=e.querySelector(".trix-button-group--block-tools");n&&n.remove();var o=e.querySelector(".trix-button-group--file-tools");o&&o.remove()}},{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(t){this.props.data[this.props.name]!==t.data[this.props.name]&&this.setState({redrawKey:this.state.redrawKey+1,value:this.props.data[this.props.name]||""})}},{key:"handleChange",value:function(t,e){this.setState({value:t})}},{key:"handleSubmit",value:function(t){t[this.props.name]=this.state.value||""}},{key:"getData",value:function(t){return t[this.props.name]=this.state.value||"",t}},{key:"render",value:function(){return(0,St.jsx)(xe,{name:this.props.name,label:this.props.label,tooltip:this.props.tooltip,children:(0,St.jsx)("div",{className:"richtext-field",children:(0,St.jsx)(ts.TrixEditor,{value:this.props.data[this.props.name]||"",onChange:this.handleChange.bind(this),onEditorReady:this.handleEditorReady.bind(this)},this.state.redrawKey)})})}}])&&ns(e.prototype,r),n&&ns(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);function ss(t){return ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(t)}function ls(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rr?"left":"right",t.clientY>e?"up":"down")}}},{key:"open",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"down";this.setState({isOpen:!0,dropDirectionX:e,dropDirectionY:r},(function(){t.bindDocumentClick()}))}},{key:"close",value:function(){var t=this;this.setState({isOpen:!1},(function(){t.unbindDocumentClick()}))}},{key:"render",value:function(){var t=(0,St.jsx)(nr,{stopPropagation:this.props.stopPropagation,text:this.props.text,label:this.props.label,style:[].concat(Zs(this.props.style),["small"]),onClick:this.toggle.bind(this),icon:this.state.isOpen?this.props.closeIcon:this.props.openIcon});return this.props.text||(t=(0,St.jsx)(Io,{stopPropagation:this.props.stopPropagation,name:this.state.isOpen?this.props.closeIcon:this.props.openIcon,iconStyle:"small",onClick:this.toggle.bind(this)})),(0,St.jsxs)("div",{className:_t.className("dropdown",this.props.style)+(this.state.isOpen?" dropdown--open":"")+" dropdown--"+this.state.dropDirectionX+" dropdown--"+this.state.dropDirectionY,ref:this.dropdownRef,children:[(0,St.jsx)("div",{className:"dropdown__trigger",children:t}),(0,St.jsx)("div",{className:"dropdown__content",children:this.props.children})]})}}],r&&Qs(e.prototype,r),o&&Qs(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=nl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(ol,"defaultProps",{label:"",text:"",style:[],autoClose:!1,openIcon:"expand_more",closeIcon:"expand_less",stopPropagation:!0});const il=ol;function al(t){return function(t){if(Array.isArray(t))return cl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return cl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cl(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function El(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Cl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){El(i,n,o,a,c,"next",t)}function c(t){El(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Rl(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;this.props.onDirectoryClick(t)}},{key:"load",value:(i=Cl(kl().mark((function t(){var e=this;return kl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.media.loadDirectories(this.props.directory).then((function(t){e.setState({directories:t.data.data})}));case 2:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"loadChildren",value:(o=Cl(kl().mark((function t(e){var r=this;return kl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.media.loadDirectories(e).then((function(t){var n=r.state.directoriesMap;n[e]=t.data.data,r.setState({directoriesMap:n})}));case 2:case"end":return t.stop()}}),t)}))),function(t){return o.apply(this,arguments)})},{key:"toggleCollapse",value:function(t){if(this.state.directoriesMap[t]){var e=this.state.directoriesMap;delete e[t],this.setState({directoriesMap:e})}else this.loadChildren(t)}},{key:"renderChildren",value:function(t){var e=this;return this.state.directoriesMap[t]?this.state.directoriesMap[t].map((function(t){return e.renderDirectory(t)})):null}},{key:"renderDirectory",value:function(t){var e=this;return(0,St.jsxs)("div",{className:"directory-tree__item",children:[(0,St.jsx)(xl,{icon:"folder",text:t.name,style:this.props.selectedDirectory===t.id?"selected":"default",onToggle:function(){return e.toggleCollapse(t.id)},onClick:function(){return e.select(t.id)}}),(0,St.jsx)("div",{className:"directory-tree__children",children:this.renderChildren(t.id)})]},t.id)}},{key:"render",value:function(){var t=this;return this.state.directories.length?(0,St.jsxs)("div",{className:"directory-tree",children:[(0,St.jsx)(xl,{icon:"home",text:mt.get("snippets.files_root"),style:null===this.props.selectedDirectory?"selected":"default",collapsible:!1,onClick:function(){return t.select()}}),this.state.directories.map((function(e){return t.renderDirectory(e)}))]}):null}}],r&&Rl(e.prototype,r),n&&Rl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),c}(n.Component);!function(t,e,r){(e=Dl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Il,"defaultProps",{directory:null,selectedDirectory:null,onDirectoryClick:function(t){}});const Fl=Il;function Al(t){return Al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(t)}function Bl(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r186?"#000000":"#ffffff"};function ff(t){return ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ff(t)}function pf(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&(e=[[mt.get("snippets.move_files",{amount:this.props.selectedFileIds.length}),"multi-move"],[mt.get("snippets.delete_files",{amount:this.props.selectedFileIds.length}),"multi-delete"]]),(0,St.jsx)(Of,{files:this.state.files,fileLabels:this.props.fileLabels,selection:this.props.selectedFileIds,selectionMode:this.props.selectionMode,contextMenuLinks:e,onClick:function(e,r){return t.handleFileClick(e,r)},onContextClick:function(e,r){return t.onFileContextClick(e,r)}})}},{key:"renderDirectories",value:function(){var t=this;return this.props.directories.length?(0,St.jsx)(St.Fragment,{children:(0,St.jsx)(Pf,{directories:this.props.directories,contextMenuLinks:[[mt.get("snippets.rename"),"rename"],[mt.get("snippets.move"),"move"],[mt.get("snippets.delete"),"delete"]],onContextClick:function(e,r){return t.onDirectoryContextClick(e,r)},onClick:function(e,r){return t.props.onDirectoryClick(r.id)}})}):null}},{key:"renderContent",value:function(){return this.state.uploads.length||this.props.directories.length||this.state.files.length?(0,St.jsxs)("div",{className:"file-browser__content",children:[this.renderUploads(),this.renderDirectories(),this.renderFiles()]}):(0,St.jsx)("div",{className:"file-browser__content",children:(0,St.jsx)("div",{className:"file-browser__placeholder",children:(0,St.jsx)(ju,{children:mt.get("snippets.directory_is_empty")})})})}},{key:"render",value:function(){return(0,St.jsxs)("div",{className:"file-browser",children:[this.renderContent(),this.renderMoveWidget()]})}}],r&&Rf(e.prototype,r),n&&Rf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);!function(t,e,r){(e=If(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Ff,"defaultProps",{files:[],directories:[],currentDirectory:null,fileLabels:{},selectionMode:!1,selectedFileIds:[],selectedFiles:[],onDirectoryClick:function(t){},onFileClick:function(t){},onDirectoryDelete:function(t){},onDirectoryRename:function(t,e){},onDirectoryMove:function(t,e){},onFileDelete:function(t){},onFileRename:function(t){},onFileMove:function(t,e){},onFileOpen:function(t){},onSelectionChange:function(t,e){},onSelectionDelete:function(t,e){},onSelectionMove:function(t,e){}});const Af=Ff;var Bf=r(195),Uf={insert:"head",singleton:!1};wt()(Bf.Z,Uf);Bf.Z.locals;function Mf(t){return Mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(t)}function zf(t,e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:function(){},n=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:function(){};Jf++,Zf.push([Jf,t,e,r]),_i.trigger("media.upload.queued",{id:Jf,size:t.size,filename:t.name}),Hf||this.process()},process:function(){var t=this;if(Zf.length){Hf=!0;var e=Zf[0];this.processChunkUpload(e[1],e[2],(function(t){_i.trigger("media.upload.start",{id:e[0],size:e[1].size,filename:t})}),(function(t){_i.trigger("media.upload.progress",{id:e[0],progress:t})}),(function(r){Hf=!1,Zf.shift(),t.process(),_i.trigger("media.upload.success",{id:e[0],file:r}),e[3](r)}),(function(){_i.trigger("media.upload.fail",{id:e[0]}),Hf=!1,Zf.shift(),t.process()}))}},isDone:function(){return 0===Zf.length},processChunkUpload:function(t,e,r,n,o,i){var a,c,u,s=524288,l=Math.ceil(t.size/s),f=0,p=t.name;!function d(){(c=f*s)>t.size&&(c=u+1),u=c+s>=t.size?t.size:c+s;var h=0===f?"start":f===l?"end":"progress";"start"===h&&r(p),wo.media.uploadChunk(h,p,a||null,t.slice(c,u),e).then((function(t){var e=t.data;("created"===e.status&&(a=e.path),++f<=l)?(n(f/l*100),d()):o(e.data)}),(function(t){i()}))}()}};function Xf(t){var e=function(e){Qf.queueMultiple(e,t.directory,(function(e){t.onFileUploaded(e),Qf.isDone()&&t.onUploadDone()}))};return(0,St.jsxs)("div",{className:"file-uploader",children:[(0,St.jsx)("div",{className:"file-uploader__input",children:(0,St.jsx)("input",{type:"file",name:"file-uploader",multiple:!0,onChange:function(t){e(t.target.files)}.bind(this)})}),(0,St.jsx)("div",{className:"file-uploader__placeholder",children:(0,St.jsx)(ju,{children:mt.get("snippets.select_files_from_computer")})})]})}Xf.defaultProps={directory:null,onUploadDone:function(){},onFileUploaded:function(t){}};const tp=Xf;function ep(t){return ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ep(t)}function rp(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:null;t.isFile?t.file((function(t){".DS_Store"!==t.name&&e.upload(t,r)})):t.isDirectory&&wo.media.createDirectory(t.name,r).then((function(r){var n=r.data.data;e.props.onCreateDirectory(n),t.createReader().readEntries((function(t){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Dp(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Ip(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Dp(i,n,o,a,c,"next",t)}function c(t){Dp(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Fp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ap(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==n[0]?n[0]:null,t.next=3,so.all([wo.media.path(e),wo.media.loadDirectories(e),wo.media.loadFiles(e)]).then(so.spread((function(t,e,n){var a=t.data.data,c=e.data.data,u=n.data.data,s=a[a.length-1];i({type:"media/init",payload:{directory:s,path:a,directories:c,files:u}}),o(Ap(Ap({},r),{},{isLoading:!1}))})));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(e,n){o(Ap(Ap({},r),{},{selectedFileIds:e,selectedFiles:n})),t.onSelectionChange(e,n)},h=function(){t.onSelectionConfirm(r.selectedFileIds,r.selectedFiles)},m=function(t){var e=r.selectedFileIds.filter((function(e){return e!==t})),n=r.selectedFiles.filter((function(e){return e.id!==t}));o(Ap(Ap({},r),{},{selectedFileIds:e,selectedFiles:n}))},b=function(){t.onCancel()},v=function(t){p(t)},g=function(){vt.i18nNotify("snippets.files_uploaded")},w=function(t){!function(t){o(Ap(Ap({},r),{},{selectedFileIds:[].concat(Np(r.selectedFileIds),[t.id]),selectedFiles:[].concat(Np(r.selectedFiles),[t])}))}(t),i({type:"media/files/add",payload:t})},j=function(){var t=Ip(Lp().mark((function t(e){var r,n;return Lp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.createDirectory(e,n?n.id:null);case 4:r=t.sent,n=r.data.data,vt.i18nNotify("snippets.directory_created"),i({type:"media/directories/add",payload:n}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e){return t.apply(this,arguments)}}(),O=function(){var t=Ip(Lp().mark((function t(e,r){var n,o;return Lp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.renameFile(e,r);case 4:n=t.sent,o=n.data.data,i({type:"media/files/rename",payload:o}),vt.i18nNotify("snippets.file_renamed"),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,r){return t.apply(this,arguments)}}(),_=function(){var t=Ip(Lp().mark((function t(e,r){var n,o;return Lp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.renameDirectory(e,r);case 4:n=t.sent,o=n.data.data,i({type:"media/directories/rename",payload:o}),vt.i18nNotify("snippets.directory_renamed"),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,r){return t.apply(this,arguments)}}(),x=function(t,e){wo.media.moveFiles(t,e).then((function(t){vt.i18nNotify("snippets.files_moved"),p(s?s.id:null)}),(function(t){vt.i18nNotify("snippets.file_not_moved")}))},P=function(t,e){wo.media.moveFile(t,e).then((function(t){vt.i18nNotify("snippets.file_moved"),p(s?s.id:null)}),(function(t){vt.i18nNotify("snippets.file_not_moved")}))},k=function(){vt.prompt({title:mt.get("snippets.new_directory"),confirmButtonText:mt.get("snippets.confirm"),cancelButtonText:mt.get("snippets.cancel"),confirm:function(t){return j(t)}})},E=function(){var t=[[mt.get("snippets.deselect"),"deselect"],[mt.get("snippets.jump_to_folder"),"jump_to"]];return r.selectedFiles.length?(0,St.jsxs)("div",{className:"file-picker-widget__selection",children:[(0,St.jsxs)("div",{className:"file-picker-widget__selection-header",children:[mt.get("snippets.your_selection")," (",r.selectedFiles.length,")"]}),r.selectedFiles.map((function(e,r){return(0,St.jsx)("div",{className:"file-picker-widget__file",children:(0,St.jsx)(qt,{links:t,onClick:function(t){return function(t,e){"jump_to"===t?p(e.directory?e.directory.id:null):"deselect"===t&&m(e.id)}(t,e)},children:(0,St.jsx)(wf,{file:e,viewMode:"minimal",actions:[(0,St.jsx)(Io,{name:"delete",style:"transparent",onClick:function(t){return m(e.id)}},"delete")]})})},r)}))]}):(0,St.jsx)(ju,{icon:"checklist",children:mt.get("snippets.your_selection_is_empty")})};return(0,St.jsx)(Vo,{style:["modal","wide"],closeable:!0,onClose:b,title:[(0,St.jsx)(il,{style:["primary","small"],openIcon:"folder",closeIcon:"folder",children:(0,St.jsx)(Fl,{selectedDirectory:s?s.id:null,onDirectoryClick:function(t){return v(t)}})},"path"),(0,St.jsx)(Yf,{items:u,onClick:function(t){t?v(t.id):v()}},"breadcrumbs")],actions:[(0,St.jsx)(Cp,{},"view-switcher"),(0,St.jsx)(nr,{text:mt.get("snippets.new_directory"),style:["secondary","small"],onClick:k},"new-dir"),(0,St.jsx)(il,{text:mt.get("snippets.upload"),style:["primary","small"],children:(0,St.jsx)(tp,{directory:s?s.id:null,onFileUploaded:w,onUploadDone:g})},"upload")],footer:[(0,St.jsx)(nr,{text:mt.get("snippets.cancel"),style:["secondary"],onClick:b},"cancel"),(0,St.jsx)(nr,{text:t.selectionMode?mt.get("snippets.confirm_selection"):mt.get("snippets.select_file"),style:r.selectedFileIds.length?[]:["disabled"],onClick:r.selectedFileIds.length?h:null},"confirm")],children:r.isLoading?null:(0,St.jsx)(cp,{sidebar:E(),children:(0,St.jsx)(vp,{directory:s?s.id:null,onCreateDirectory:j,onUploadDone:g,children:(0,St.jsx)(Af,{fileLabels:t.fileLabels,currentDirectory:s,selectionMode:t.selectionMode,selectedFiles:r.selectedFiles,selectedFileIds:r.selectedFileIds,directories:l,files:f,onDirectoryRename:_,onFileRename:O,onFileMove:P,onDirectoryClick:function(t){return v(t)},onSelectionChange:d,onSelectionMove:x})})})})}Gp.defaultProps={multiple:!1,onSelectionChange:function(t,e){},onSelectionConfirm:function(t,e){},onCancel:function(){},defaultDirectoryId:null,defaultSelectedFileIds:[],defaultSelectedFiles:[],selectionMode:!1,fileLabels:{}};const Vp=Gp;function qp(t){return qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qp(t)}function Wp(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=this.state.addedBlocks.length-1)){var e=this.syncBlocksData(),r=t+1,n=[e[r],e[t]];e[t]=n[0],e[r]=n[1],this.setState({addedBlocks:e}),vt.notify(mt.get("snippets.order_changed"))}}},{key:"removeBlock",value:function(t,e){var r=this;vt.confirm({title:mt.get("snippets.delete_singular_title",{singular:this.props.singular}),text:mt.get("snippets.delete_singular_text",{singular:this.props.singular}),confirm:function(){var n=r.state.blocksToRemoveById,o=r.state.blocksToRemoveByOrder,i=r.syncBlocksData();i.splice(t,1),e?n.push(e):o.push(t),r.setState({addedBlocks:i,blocksToRemoveById:n,blocksToRemoveByOrder:o}),vt.notify(mt.get("snippets.singular_deleted",{singular:r.props.singular}))}})}},{key:"addBlock",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.getBlockDefinition(t),n=this.state.addedBlocks,o={id:null,name:r.name,type:r.type,components:r.components,data:{}};null!==e?(n.splice(e,0,o),vt.notify(mt.get("snippets.singular_inserted",{singular:this.props.singular}))):(n.push(o),vt.notify(mt.get("snippets.singular_added",{singular:this.props.singular}))),this.setState({addedBlocks:n})}},{key:"renderAddBlockDropdown",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object.getOwnPropertyNames(this.props.blocks);return n.length?1===n.length?t?(0,St.jsx)(nr,{onClick:function(t){return e.addBlock(n[0],r)},icon:"add",style:["small","secondary"],text:t}):(0,St.jsx)(Io,{name:"post_add",iconStyle:"small",onClick:function(t){return e.addBlock(n[0],r)}}):(0,St.jsx)(il,{style:["secondary"],autoClose:!0,text:t,openIcon:"post_add",closeIcon:"post_add",children:(0,St.jsx)(It,{stopPropagation:!1,links:this.getTypeLinks(),onClick:function(t){return e.addBlock(t,r)}})},r):null}},{key:"optionDropdownClick",value:function(t,e,r){"delete"===t&&this.removeBlock(e,r)}},{key:"getTypeLinks",value:function(){var t=this;return Object.getOwnPropertyNames(this.props.blocks).map((function(e){return[t.props.blocks[e].name,e]}))}},{key:"getTypeLinksInsertBelow",value:function(){var t=this;return Object.getOwnPropertyNames(this.props.blocks).map((function(e){return[mt.get("snippets.insert_singular_below",{singular:t.props.blocks[e].name}),e]}))}},{key:"renderContentBlocks",value:function(){var t=this;return this.componentLists=[],this.state.addedBlocks.length?this.state.addedBlocks.map((function(e,r){if(!e)return null;var n=rb.renderComponentsWith(e.components,e.data,t.props.path,(function(t,e){return(0,St.jsx)("div",{className:"content-blocks__component",children:t},e)}),!0);return t.componentLists.push([n,e.id,e.type]),(0,St.jsx)("div",{className:"content-blocks__item",children:(0,St.jsx)(hd,{title:e.name,actions:[(0,St.jsx)(Io,{style:["transparent",r>0?"enabled":"disabled"],iconStyle:"mini",name:"arrow_upward",onClick:function(e){return t.sortUp(r)}},0),(0,St.jsx)(Io,{style:["transparent",rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Fd(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Ad(t,e){for(var r=0;re?1:e>t?-1:0})),e.setState({tags:r,isLoading:!1})}));case 1:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"onCancel",value:function(){this.props.onCancel()}},{key:"onConfirm",value:function(){this.props.onConfirm(this.state.selectedTags)}},{key:"onTagClick",value:function(t){this.setState({selectedTags:[].concat(Ld(this.state.selectedTags),[t])})}},{key:"onSelectedTagClick",value:function(t){var e=this.state.selectedTags.filter((function(e){return e!==t}));this.setState({selectedTags:e})}},{key:"renderContent",value:function(){return this.state.isLoading?null:this.state.tags.length?(this.state.selectedTags.length&&(t=(0,St.jsxs)("div",{className:"tags-browser__selected",children:[(0,St.jsx)("div",{className:"tags-browser__title",children:mt.get("snippets.selected_tags")}),(0,St.jsx)(Td,{tags:this.state.selectedTags,onClick:this.onSelectedTagClick.bind(this)})]})),this.state.tags.length&&(e=(0,St.jsxs)("div",{className:"tags-browser__available",children:[(0,St.jsx)("div",{className:"tags-browser__title",children:mt.get("snippets.available_tags")}),(0,St.jsx)(Td,{tags:this.state.tags,onClick:this.onTagClick.bind(this)})]})),(0,St.jsxs)("div",{className:"tags-browser__tags",children:[t,e]})):(0,St.jsx)(ju,{children:mt.get("snippets.no_tags_available")});var t,e}},{key:"render",value:function(){return(0,St.jsx)(Vo,{style:"modal",title:mt.get("snippets.tags"),closeable:!0,onClose:this.onCancel.bind(this),footer:[(0,St.jsx)(nr,{text:mt.get("snippets.cancel"),style:["secondary"],onClick:this.onCancel.bind(this)},0),(0,St.jsx)(nr,{text:mt.get("snippets.confirm"),onClick:this.onConfirm.bind(this)},1)],children:(0,St.jsx)("div",{className:"tags-browser",children:(0,St.jsx)("div",{className:"tags-browser__content",children:this.renderContent()})})})}}],r&&Ad(e.prototype,r),n&&Ad(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=zd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Gd,"defaultProps",{id:0,path:{},selectedTags:[],onCancel:function(){},onConfirm:function(t){}});const Vd=Gd;function qd(t){return qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qd(t)}function Wd(t){return function(t){if(Array.isArray(t))return Yd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Yd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yd(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:function(){};clearTimeout(this.searchTimeout),t&&this.setState({autosuggestIsOpen:!1,tags:[].concat(Wd(this.state.tags),[t])},e)}},{key:"removeLastTag",value:function(){this.setState({tags:this.state.tags.slice(0,-1)})}},{key:"autosuggest",value:function(t){var e=this;t.length>1&&wo.execute.get(this.props.path,this.props.id,"autosuggest",{search:t}).then((function(t){e.setState({autosuggestIsOpen:!0,autosuggest:t.data})}))}},{key:"openBrowser",value:function(){this.setState({browserIsOpen:!0})}},{key:"closeBrowser",value:function(){this.setState({browserIsOpen:!1})}},{key:"confirmBrowser",value:function(t){this.setState({tags:t,browserIsOpen:!1})}},{key:"render",value:function(){var t,e,r=this;return this.state.autosuggestIsOpen&&this.state.autosuggest.length&&(e=(0,St.jsx)("div",{className:"tags-field__autosuggest",children:this.state.autosuggest.map((function(t,e){return(0,St.jsx)("div",{className:"tags-field__autosuggestion",onClick:function(e){return r.handleSuggestionClick(t)},children:t},e)}))})),this.state.browserIsOpen&&(t=(0,St.jsx)(ko,{children:(0,St.jsx)(Vd,{id:this.props.id,path:this.props.path,selectedTags:this.state.tags,onCancel:this.closeBrowser.bind(this),onConfirm:function(t){return r.confirmBrowser(t)}})})),(0,St.jsx)(xe,{name:this.props.name,required:this.props.showRequiredIndicator,label:this.props.label,errors:this.props.errors,tooltip:this.props.tooltip,children:(0,St.jsx)("div",{className:"tags-field",children:(0,St.jsxs)("div",{className:"tags-field__wrap",children:[(0,St.jsx)("div",{className:"tags-field__browse",children:(0,St.jsx)(Io,{style:"transparent",name:"fact_check",onClick:this.openBrowser.bind(this)})}),(0,St.jsx)("div",{className:"tags-field__tags",children:(0,St.jsx)(Td,{tags:this.state.tags})}),(0,St.jsx)("div",{className:"tags-field__input",children:(0,St.jsx)("input",{className:"tags-field__input-field",ref:this.inputRef,onChange:this.handleChange.bind(this),onKeyUp:this.handleKeyUp.bind(this),onKeyDown:this.handleKeyDown.bind(this),onBlur:this.handleBlur.bind(this)})}),e,t]})})})}}],r&&$d(e.prototype,r),o&&$d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);function Xd(t){return Xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xd(t)}function th(t,e){for(var r=0;r1&&(t=(0,St.jsx)(Io,{name:"arrow_left",onClick:function(t){return r.changePage(r.props.currentPage-1)}})),this.props.currentPaget.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};this.state.searchKeyword&&(e.search=this.state.searchKeyword),wo.execute.get(this.props.path,this.props.id,"load",e).then((function(e){var r=e.data.data;t.setState({isLoading:!1,items:r,meta:e.data.meta||null})}))}},{key:"search",value:function(t){var e=this;this.setState({isLoading:!0,searchKeyword:t},(function(){e.load()}))}},{key:"onSelectionChange",value:function(t,e){this.setState({selectedItemIds:t,selectedItems:e}),this.props.onSelectionChange(t,e)}},{key:"onSelectionConfirm",value:function(){this.props.onSelectionConfirm(this.state.selectedItemIds,this.state.selectedItems)}},{key:"onCancel",value:function(){this.props.onCancel()}},{key:"deselect",value:function(t){var e=this,r=this.state.selectedItemIds.filter((function(e){return e!==t.id})),n=this.state.selectedItems.filter((function(e){return e.id!==t.id}));this.setState({selectedItemIds:r,selectedItems:n},(function(){e.props.onSelectionChange(e.state.selectedItemIds,e.state.selectedItems)}))}},{key:"select",value:function(t){var e=this;this.setState({selectedItemIds:[].concat(Nh(this.state.selectedItemIds),[t.id]),selectedItems:[].concat(Nh(this.state.selectedItems),[t])},(function(){e.props.onSelectionChange(e.state.selectedItemIds,e.state.selectedItems)}))}},{key:"toggleItemSelection",value:function(t){this.isItemSelected(t)?this.deselect(t):this.select(t)}},{key:"isItemSelected",value:function(t){return this.state.selectedItemIds.includes(t.id)}},{key:"changePage",value:function(t){this.load({page:t})}},{key:"renderSidebar",value:function(){var t=this;return this.state.selectedItems.length?(0,St.jsxs)("div",{className:"item-picker-widget__selection",children:[(0,St.jsxs)("div",{className:"item-picker-widget__selection-header",children:["Your selection (",this.state.selectedItems.length,")"]}),this.state.selectedItems.map((function(e,r){return(0,St.jsx)(Oh,{item:e,titleColumn:t.props.titleColumn,actions:[(0,St.jsx)(Io,{name:"delete",style:"transparent",onClick:function(r){return t.deselect(e)}},"delete")]},r)}))]}):(0,St.jsxs)("div",{className:"item-picker-widget__selection",children:[(0,St.jsxs)("div",{className:"item-picker-widget__selection-header",children:[mt.get("snippets.your_selection")," (",this.state.selectedItems.length,")"]}),(0,St.jsx)(ju,{icon:"checklist",children:mt.get("snippets.your_selection_is_empty")})]})}},{key:"renderPlaceholder",value:function(){return this.state.searchKeyword?(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found_for_search",{plural:this.props.plural,search:this.state.searchKeyword})}):(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found",{plural:this.props.plural})})}},{key:"renderPagination",value:function(){return this.state.meta&&this.state.meta.total?(0,St.jsx)(Rh,{currentPage:this.state.meta.current_page,lastPage:this.state.meta.last_page,perPage:this.state.meta.per_page,total:this.state.meta.total,from:this.state.meta.from,to:this.state.meta.to,onPageChange:this.changePage.bind(this)},"pagination"):null}},{key:"renderRows",value:function(){var t=this;if(!this.state.isLoading)return this.state.items.map((function(e,r){return(0,St.jsx)("div",{className:"item-picker-widget__row",children:(0,St.jsx)(Oh,{path:t.props.path,item:e,titleColumn:t.props.titleColumn,grid:t.props.grid,components:t.props.components,isSelected:t.isItemSelected(e),selectionMode:!0,onClick:function(r){return t.toggleItemSelection(e)}})},r)}))}},{key:"render",value:function(){var t=this;return(0,St.jsx)(Vo,{style:["modal","wide"],title:bt.toUpperCaseFirst(this.props.plural),closeable:!0,onClose:this.onCancel.bind(this),actions:[this.props.search?(0,St.jsx)(Ji,{onSearch:function(e){return t.search(e)}},"search"):null],footer:[(0,St.jsxs)("div",{className:"item-picker-widget__footer",children:[(0,St.jsx)("div",{className:"item-picker-widget__footer-pagination",children:this.renderPagination()}),(0,St.jsxs)("div",{className:"item-picker-widget__footer-actions",children:[(0,St.jsx)(nr,{text:mt.get("snippets.cancel"),style:["secondary"],onClick:this.onCancel.bind(this)},"cancel"),(0,St.jsx)(nr,{text:this.props.selectionMode?mt.get("snippets.confirm_selection"):mt.get("snippets.select_singular",{singular:this.props.singular}),style:this.state.selectedItemIds.length?[]:["disabled"],onClick:this.state.selectedItemIds.length?this.onSelectionConfirm.bind(this):null},"confirm")]})]})],children:(0,St.jsx)(cp,{sidebar:this.renderSidebar(),children:this.state.items.length?this.renderRows():this.renderPlaceholder()})})}}],r&&Dh(e.prototype,r),n&&Dh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);!function(t,e,r){(e=Bh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Uh,"defaultProps",{id:0,path:{},titleColumn:"",grid:[],components:[],defaultSelectedItemIds:[],defaultSelectedItems:[],search:!1,onSelectionChange:function(t,e){},onSelectionConfirm:function(t,e){},onCancel:function(){}});const Mh=Uh;function zh(t){return zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zh(t)}function Gh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vh(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:null;wo.execute.get(this.props.path,this.props.id,"load",this.props.path.params).then((function(r){var n=r.data.data,o={};n.forEach((function(e){return o[e.id]=e[t.props.titleColumn]})),t.setState({items:n,options:o},(function(){e&&e()}))}))}},{key:"getData",value:function(t){return t[this.props.name]=this.state.selectedItems||[],t}},{key:"handleSubmit",value:function(t){t[this.props.name]=this.state.selectedItemsIds||[]}},{key:"handleChange",value:function(t){this.setState({selectedItemsIds:t,selectedItems:this.state.items.filter((function(e){return t.includes("".concat(e.id))}))})}},{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"create",value:function(t){var e=this;wo.execute.post(this.props.path,this.props.id,"create",t).then((function(t){e.createFormRef.current.ready(),e.load((function(){e.setState({isOpen:!1,selectedItemsIds:[].concat(Qh(e.state.selectedItemsIds),[t.data.data.id])})})),vt.notify(mt.get("snippets.singular_created_selected",{singular:e.props.singular}))}),(function(t){var r=t.response;e.createFormRef.current.ready(),e.setState({createFormErrors:r.data.errors}),vt.notify(r.data.message)}))}},{key:"renderSidebarComponents",value:function(){return rb.renderComponents(this.props.sidebarComponents,{},this.props.path)}},{key:"renderCreateComponents",value:function(){return rb.renderComponents(this.props.createComponents,{},this.props.path)}},{key:"renderCreateWidget",value:function(){return this.state.isOpen?(0,St.jsx)(ko,{children:(0,St.jsx)(Vo,{title:mt.get("snippets.new_singular",{singular:this.props.singular}),style:"modal",closeable:!0,onClose:this.close.bind(this),children:(0,St.jsx)(ti,{ref:this.createFormRef,errors:this.state.createFormErrors,realForm:!1,onSubmit:this.create.bind(this),submitButtonText:mt.get("snippets.create_singular",{singular:this.props.singular}),sidebar:this.renderSidebarComponents(),children:this.renderCreateComponents()})})}):null}},{key:"renderCreate",value:function(){return this.props.create?(0,St.jsx)("div",{className:"many-to-many-select-field__btn",children:(0,St.jsx)(nr,{icon:"add",style:["full","small","secondary"],text:mt.get("snippets.new_singular",{singular:this.props.singular}),onClick:this.open.bind(this)})}):null}},{key:"render",value:function(){var t=this;return(0,St.jsxs)(xe,{name:this.props.name,label:this.props.label,tooltip:this.props.tooltip,errors:this.props.errors,children:[(0,St.jsx)("div",{className:"many-to-many-select-field",children:(0,St.jsx)("div",{className:"many-to-many-select-field__field",children:(0,St.jsx)(ca,{multiple:!0,value:this.state.selectedItemsIds,options:this.state.options,nullText:"– "+mt.get("snippets.no_plural_selected",{plural:this.props.plural})+" –",onChange:function(e){return t.handleChange(e)},children:this.renderCreate()})})}),this.renderCreateWidget()]})}}],r&&ty(e.prototype,r),o&&ty(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=oy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(iy,"defaultProps",{path:{},data:{},label:"",name:"",style:"",singular:"",plural:"",titleColumn:"",tooltip:"",create:!1,createComponents:[],sidebarComponents:[]});const ay=iy;function cy(t){return cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cy(t)}function uy(t){return function(t){if(Array.isArray(t))return sy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return sy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=this.state.addedItems.length-1)){var e=this.state.addedItems,r=t+1,n=[e[r],e[t]];e[t]=n[0],e[r]=n[1],this.setState({addedItems:e})}}},{key:"removeItem",value:function(t){var e=this.state.addedItems;e.splice(t,1),this.setState({addedItems:e})}},{key:"renderItems",value:function(){var t=this;return this.componentLists=[],this.state.addedItems.length?this.state.addedItems.map((function(e,r){var n=rb.renderComponentsWith(t.props.components,e,t.props.path,(function(t,e){return(0,St.jsx)("div",{className:"json-field__component",children:t},e)}),!0,t.props.errors);return t.componentLists.push(n),(0,St.jsxs)("div",{className:"json-field__item",children:[(0,St.jsx)("div",{className:"json-field__item-content",children:n.map((function(t){return t.component}))}),(0,St.jsxs)("div",{className:"json-field__item-actions",children:[(0,St.jsx)(Io,{style:["transparent",r>0?"enabled":"disabled"],iconStyle:"mini",name:"arrow_upward",onClick:function(e){return t.sortUp(r)}}),(0,St.jsx)(Io,{style:["transparent",rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:null,e={},r={};this.componentList.forEach((function(t){t.ref.current.getData&&t.ref.current.getData(e),t.ref.current.handleSubmit&&t.ref.current.handleSubmit(r)})),this.setState({isStored:!0,data:e,submitData:r,isOpen:!1},(function(){t&&t()}))}},{key:"renderComponents",value:function(){return this.componentList=rb.renderComponentsWith(this.props.components,this.state.isStored?this.state.data:this.props.data,this.props.path,(function(t,e){return(0,St.jsx)("div",{className:"content-blocks__component",children:t},e)}),!0),this.componentList.map((function(t){return t.component}))}},{key:"renderWidget",value:function(){var t=this;return(0,St.jsx)(ko,{children:(0,St.jsx)(Vo,{title:this.props.title,style:"modal",closeable:!0,onClose:this.close.bind(this),footer:[(0,St.jsx)(nr,{text:"Confirm",onClick:function(){t.store()}},"confirm")],children:this.renderComponents()})})}},{key:"render",value:function(){return(0,St.jsxs)(n.Fragment,{children:[(0,St.jsx)(xe,{label:this.props.label,tooltip:this.props.tooltip,children:"link"===this.props.style?(0,St.jsx)(fr,{style:this.props.style,onClick:this.open.bind(this),text:this.props.title}):(0,St.jsx)(nr,{style:["small","secondary"],text:this.props.title,onClick:this.open.bind(this)})}),(0,St.jsx)("div",{style:{display:this.state.isOpen?"block":"none"},children:this.renderWidget()})]})}}],r&&km(e.prototype,r),o&&km(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=Tm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Nm,"defaultProps",{title:"",label:"",components:[],path:{},data:{},errors:{},style:null});const Lm=Nm;function Dm(t){return Dm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dm(t)}function Im(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return t.map((function(t,c){var u=null;i&&(u=n.createRef());var s=Jm[t.type];return{component:o((0,St.jsx)(s,tb(tb({},t),{},{data:e,errors:a,path:r,ref:u})),c),ref:u}}))}};function nb(t){return nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nb(t)}function ob(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=e.map((function(e){return t.props.options[e]}));this.setState({humanReadableValue:r.length?r.join(", "):"All"}),this.props.onChange(this.props.id,e.join(","))}},{key:"clear",value:function(){this.selectListRef.current.clear()}},{key:"onCtxMenuClick",value:function(t){"clear"===t&&this.clear()}},{key:"render",value:function(){var t=this.props.label?this.props.label:bt.toUpperCaseFirst(this.props.field);return(0,St.jsx)("div",{className:"enum-filter",children:(0,St.jsx)(qt,{onClick:this.onCtxMenuClick.bind(this),links:[["Clear this filter","clear"]],children:(0,St.jsx)(il,{stopPropagation:!1,style:["secondary"],label:t,text:this.state.humanReadableValue,children:(0,St.jsx)(Vi,{options:this.props.options,onChange:this.handleChange.bind(this),onClear:this.handleChange.bind(this),ref:this.selectListRef})})})})}}],r&&ob(e.prototype,r),o&&ob(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=ub(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(sb,"defaultProps",{id:0,type:"",options:{},field:"",label:"",onChange:function(){}});const lb=sb;function fb(t){return fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fb(t)}function pb(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=e.map((function(e){return t.state.options[e]}));this.setState({humanReadableValue:r.length?r.join(", "):"All"}),this.props.onChange(this.props.id,e.join(","))}},{key:"clear",value:function(){this.selectListRef.current.clear()}},{key:"onCtxMenuClick",value:function(t){"clear"===t&&this.clear()}},{key:"render",value:function(){var t=this.props.label?this.props.label:bt.toUpperCaseFirst(this.props.field);return(0,St.jsx)("div",{className:"enum-filter",children:(0,St.jsx)(qt,{onClick:this.onCtxMenuClick.bind(this),links:[["Clear this filter","clear"]],children:(0,St.jsx)(il,{stopPropagation:!1,style:["secondary"],label:t,text:this.state.humanReadableValue,children:(0,St.jsx)(Vi,{options:this.state.options,onChange:this.handleChange.bind(this),onClear:this.handleChange.bind(this),ref:this.selectListRef})})})})}}],r&&pb(e.prototype,r),o&&pb(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=mb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(bb,"defaultProps",{id:0,type:"",field:"",label:"",titleColumn:"",onChange:function(){}});const vb=bb;function gb(t){return gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gb(t)}function wb(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=e.map((function(e){return t.state.options[e]}));this.setState({humanReadableValue:r.length?r.join(", "):mt.get("snippets.tags_all")}),this.props.onChange(this.props.id,e.join(","))}},{key:"clear",value:function(){this.selectListRef.current.clear()}},{key:"onCtxMenuClick",value:function(t){"clear"===t&&this.clear()}},{key:"render",value:function(){var t=this.props.label?this.props.label:mt.get("snippets.tag");return(0,St.jsx)("div",{className:"enum-filter",children:(0,St.jsx)(qt,{onClick:this.onCtxMenuClick.bind(this),links:[["Clear this filter","clear"]],children:(0,St.jsx)(il,{stopPropagation:!1,style:["secondary"],label:t,text:this.state.humanReadableValue,children:(0,St.jsx)(Vi,{options:this.state.options,onChange:this.handleChange.bind(this),onClear:this.handleChange.bind(this),ref:this.selectListRef})})})})}}],r&&wb(e.prototype,r),o&&wb(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=Sb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(xb,"defaultProps",{id:0,type:"",label:"",onChange:function(){}});const Pb=xb;function kb(t){return kb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kb(t)}function Eb(t,e){for(var r=0;r5&&void 0!==arguments[5]&&arguments[5];return t.map((function(t,c){var u=a?n.createRef():null,s=Db[t.type];return{filter:o((0,St.jsx)(s,Ab(Ab({},t),{},{data:e,path:r,onChange:i,ref:u})),c),ref:u}}))}};function Mb(t){return Mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mb(t)}function zb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Gb(){Gb=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new x(o||[]);return n(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function d(){}function h(){}var y={};u(y,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==e&&r.call(b,i)&&(y=b);var v=h.prototype=p.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Mb(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Vb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qb(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==u[0]?u[0]:{},t.restrictByFk&&(n.foreign=t.data.id),t.relationship&&(n.relation=t.data.id),r.searchKeyword&&(n.search=r.searchKeyword),a)a.hasOwnProperty(i)&&(n["filter_"+i]=a[i]);return e.next=7,wo.execute.get(t.path,t.id,"load",n);case 7:c=e.sent,o(qb(qb({},r),{},{isLoading:!1,rows:c.data.data,meta:c.data.meta||null}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){return r.rows.length?(0,St.jsx)("div",{className:"index__rows",children:r.rows.map((function(e){var r,n=t.components.map((function(r,n){return(0,St.jsx)("div",{className:"index__component",children:rb.renderComponent(r,e,t.path)},n)}));return(0,St.jsx)("div",{className:"index__row"+(t.action?" index__row--clickable":""),style:(r={gridTemplateColumns:"repeat("+t.components.length+", 1fr)"},t.grid.length&&(r.gridTemplateColumns=t.grid.join("fr ")+"fr"),r),onClick:t.action?function(){return function(e){ce.goTo(t.path.module,t.action,{id:e.id})}(e)}:null,children:n},e.id)}))}):r.searchKeyword?(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found_for_search",{plural:t.plural,search:r.searchKeyword})}):(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found",{plural:t.plural})})},m=function(t){d({page:t})},b=function(t,e){if(e)return c(qb(qb({},a),{},Wb({},t,e))),void o(qb(qb({},r),{},{hasActiveFilters:!0}));a[t];var n=zb(a,[t].map(Yb));c(n),o(qb(qb({},r),{},{hasActiveFilters:0!==Object.keys(n).length}))},v=function(){f.forEach((function(t){return t.ref.current.clear()})),c({}),o(qb(qb({},r),{},{hasActiveFilters:!1}))},g=function(t){o(qb(qb({},r),{},{searchKeyword:t}))},w=function(e){"refresh"===e?(d(),vt.i18nNotify("snippets.reloaded_plural",{plural:t.plural})):"clearFilters"===e&&v()};return(0,St.jsx)(qt,{onClick:w,links:[["Reload "+t.plural,"refresh"],r.hasActiveFilters?["Clear filters","clearFilters"]:null],children:(0,St.jsxs)("div",{className:"index index--"+t.style+(r.isLoading?" index--loading":""),children:[(p=t.search?(0,St.jsx)("div",{className:"index__header-search",children:(0,St.jsx)(Ji,{onSearch:function(t){return g(t)}})}):null,(0,St.jsxs)("div",{className:"index__header",children:[(0,St.jsxs)("div",{className:"index__header-title",children:[bt.toUpperCaseFirst(t.plural)," ",r.meta?"("+r.meta.total+")":null]}),(0,St.jsxs)("div",{className:"index__header-options",children:[p,t.filters.length?(0,St.jsxs)("div",{className:"index__header-filters-tool",children:[(f=Ub.renderFiltersWith(t.filters,{},t.path,(function(t,e){return(0,St.jsx)("div",{className:"index__header-filter",children:t},e)}),b,!0)).map((function(t){return t.filter})),(0,St.jsx)("div",{className:"index__header-clear-filters",children:(0,St.jsx)(fr,{stopPropagation:!1,onClick:r.hasActiveFilters?v:null,text:mt.get("snippets.clear_filters"),style:r.hasActiveFilters?"":"disabled"})})]}):null]})]})),h(),r.meta&&r.meta.total?(0,St.jsx)("div",{className:"index__footer",children:(0,St.jsx)(Rh,{currentPage:r.meta.current_page,lastPage:r.meta.last_page,perPage:r.meta.per_page,total:r.meta.total,from:r.meta.from,to:r.meta.to,onPageChange:m})}):null]})})}Zb.defaultProps={type:"",components:[],path:{},id:0,data:{},params:null,search:!1,relationship:!1,filters:[],sorter:null,restrictByFk:null,action:"",style:"default",plural:"",singular:""};const Jb=Zb;function Qb(t){return Qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qb(t)}function Xb(t,e){for(var r=0;r0?(0,St.jsx)("div",{className:"wizard__footer-component",children:(0,St.jsx)(fr,{onClick:this.goToPrev.bind(this),text:"Previous"})},1):null,(0,St.jsx)("div",{className:"wizard__footer-component",children:(0,St.jsx)(nr,{style:"large",onClick:this.goToNext.bind(this),text:this.isLastStep()?mt.get("snippets.create"):mt.get("snippets.next")})},2)]}},{key:"renderWizardContent",value:function(){var t=this;return this.props.steps.map((function(e,r){return(0,St.jsx)("div",{className:"wizard__step-content",style:{display:r===t.state.currentStepIndex?"block":"none"},children:t.componentLists[r].map((function(t){return t.component}))},r)}))}},{key:"isLastStep",value:function(){return this.state.currentStepIndex===this.props.steps.length-1}},{key:"goTo",value:function(t){(t=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Eg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cg(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==n[0]?n[0]:null,t.next=3,so.all([wo.media.path(e),wo.media.loadDirectories(e),wo.media.loadFiles(e)]).then(so.spread((function(t,e,n){var i=t.data.data,a=e.data.data,c=n.data.data,u=i[i.length-1];p({type:"media/init",payload:{directory:u,path:i,directories:a,files:c}}),o(Cg(Cg({},r),{},{isLoading:!1,currentFile:null,selectedFiles:[],selectedFileIds:[]}))})));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),h=function(){i.current.params.directory?d(i.current.params.directory):d()},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t?ce.goTo(i.current.module,i.current.action,{directory:t}):ce.goTo(i.current.module,i.current.action)},b=function(){o(Cg(Cg({},r),{},{currentFile:null,selectedFiles:[],selectedFileIds:[]}))},v=function(t,e){e.length?1===e.length?o(Cg(Cg({},r),{},{currentFile:e[0],selectedFiles:e,selectedFileIds:t})):o(Cg(Cg({},r),{},{currentFile:null,selectedFiles:e,selectedFileIds:t})):b()},g=function(){var t=Ng(kg().mark((function t(e){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.deleteDirectory(e);case 3:p({type:"media/directories/delete",directoryIds:[e]}),vt.i18nNotify("snippets.directory_deleted"),b(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),vt.i18nNotify("snippets.directory_not_deleted");case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),w=function(){var t=Ng(kg().mark((function t(e,r){var n;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.renameDirectory(e,r);case 4:n=t.sent,p({type:"media/directories/rename",payload:n.data.data}),vt.i18nNotify("snippets.directory_renamed"),b(),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,r){return t.apply(this,arguments)}}(),j=function(){var t=Ng(kg().mark((function t(e,r){var n;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=12;break}return t.prev=1,t.next=4,wo.media.renameFile(e,r);case 4:n=t.sent,p({type:"media/files/rename",payload:n.data.data}),vt.i18nNotify("snippets.file_renamed"),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e,r){return t.apply(this,arguments)}}(),O=function(){var t=Ng(kg().mark((function t(e){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.deleteFile(e);case 3:p({type:"media/files/delete",fileIds:[e]}),vt.i18nNotify("snippets.file_deleted"),b(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),vt.notify(mt.get("snippets.file_not_deleted"));case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=Ng(kg().mark((function t(e){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.deleteFiles(e);case 3:p({type:"media/files/delete",fileIds:e}),vt.i18nNotify("snippets.amount_files_deleted",{amount:e.length}),b(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),vt.i18nNotify("snippets.files_not_deleted");case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),x=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.labelFile(e,r);case 3:p({type:"media/files/label",fileId:r,label:e}),vt.i18nNotify("snippets.changes_successful"),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.i18nNotify("snippets.changes_unsuccessful");case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),P=function(){var t=Ng(kg().mark((function t(e,r,n){var o;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!["visibility","description","copyright"].includes(e)){t.next=12;break}return o=wo.media["updateFile"+bt.toUpperCaseFirst(e)],t.prev=2,t.next=5,o(r,n);case 5:p({type:"media/files/changeProperty",fileId:n,property:e,value:r}),vt.notify(mt.get("snippets.changes_successful")),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),vt.notify(mt.get("snippets.changes_unsuccessful"));case 12:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,r,n){return t.apply(this,arguments)}}(),k=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.moveDirectory(e,r);case 3:p({type:"media/directories/move",moveToId:e,directoryIds:[r]}),vt.notify(mt.get("snippets.directory_moved")),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.notify(mt.get("snippets.changes_unsuccessful"));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),E=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.moveFile(e,r);case 3:p({type:"media/files/move",moveToId:e,fileIds:[r]}),vt.notify(mt.get("snippets.file_moved")),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.notify(mt.get("snippets.changes_unsuccessful"));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),C=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.moveFiles(e,r);case 3:p({type:"media/files/move",moveToId:e,fileIds:r}),vt.notify(mt.get("snippets.files_moved")),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.notify(mt.get("snippets.changes_unsuccessful"));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),R=function(t){window.open(t.url)},T=function(){h()},N=function(t){(!i.current.params.directory&&!t.directory||t.directory&&i.current.params.directory&&t.directory.id===i.current.params.directory)&&h()},L=function(){var t;vt.prompt({title:mt.get("snippets.new_directory_title"),confirmButtonText:mt.get("snippets.create"),cancelButtonText:mt.get("snippets.cancel"),confirm:(t=Ng(kg().mark((function t(e){var r;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.media.createDirectory(e,i.current.params.directory);case 2:r=t.sent,p({type:"media/directories/add",payload:r.data.data}),vt.notify(mt.get("snippets.directory_created"));case 5:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})})},D=function(t,e){vt.confirm({title:mt.get("snippets.delete_files_title",{amount:t.length}),text:mt.get("snippets.delete_files_text"),confirmButtonText:mt.get("snippets.delete_files_confirm",{amount:t.length}),cancelButtonText:mt.get("snippets.delete_files_cancel"),confirm:function(){return _(t)}})};return(0,St.jsxs)("div",{className:"view-media-directory"+(r.isLoading?" view-media-directory--loading":"")+(r.isDragOver?" view-media-directory--drag-over":""),children:[(0,St.jsxs)("div",{className:"view-media-directory__header",children:[(0,St.jsxs)("div",{className:"view-media-directory__header-title",children:[(0,St.jsx)(il,{style:["primary","small"],openIcon:"folder",closeIcon:"folder",children:(0,St.jsx)(Fl,{selectedDirectory:s?s.id:null,onDirectoryClick:function(t){return m(t)}})}),(0,St.jsx)(Yf,{items:u,onClick:function(t){t?m(t.id):m()}})]}),(0,St.jsxs)("div",{className:"view-media-directory__header-options",children:[(0,St.jsx)(Cp,{}),(0,St.jsx)(nr,{style:["secondary","small"],onClick:L,text:mt.get("snippets.new_directory")}),(0,St.jsx)(il,{text:mt.get("snippets.upload"),style:["primary","small"],autoClose:!0,children:(0,St.jsx)(tp,{directory:s?s.id:null,onUploadDone:T})})]})]}),(0,St.jsx)("div",{className:"view-media-directory__content",children:r.isLoading?null:(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("div",{className:"view-media-directory__main",children:(0,St.jsx)(vp,{directory:s?s.id:null,onCreateDirectory:N,onUploadDone:T,children:(0,St.jsx)(Af,{viewMode:c,currentDirectory:s,directories:l,files:f,fileLabels:t.fileLabels,selectedFiles:r.selectedFiles,selectedFileIds:r.selectedFileIds,onDirectoryClick:m,onDirectoryDelete:g,onDirectoryRename:w,onDirectoryMove:k,onFileDelete:O,onFileRename:j,onFileOpen:R,onFileMove:E,onSelectionMove:C,onSelectionChange:v,onSelectionDelete:D})})}),(0,St.jsx)("div",{className:"view-media-directory__side",children:r.currentFile?(0,St.jsx)(fg,{file:r.currentFile,fileLabels:t.fileLabels,onLabelFile:function(t){return x(t,r.currentFile.id)},onChangeFileProperty:function(t,e){return P(t,e,r.currentFile.id)},onDeleteFile:function(){vt.confirm({title:mt.get("snippets.delete_file_title"),text:mt.get("snippets.delete_file_text"),confirmButtonText:mt.get("snippets.delete_file_confirm"),cancelButtonText:mt.get("snippets.delete_file_cancel"),confirm:function(){return O(r.currentFile.id)}})},onRenameFile:function(){vt.prompt({title:mt.get("snippets.rename_file_title"),defaultValue:r.currentFile.name,confirmButtonText:mt.get("snippets.rename_file_confirm"),cancelButtonText:mt.get("snippets.rename_file_cancel"),confirm:function(t){wo.media.renameFile(t,r.currentFile.id).then((function(t){o(Cg(Cg({},r),{},{currentFile:t.data.data}),(function(){vt.notify(mt.get("snippets.file_renamed")),h()}))}))}})},onMoveFile:E}):r.selectedFiles.length?(0,St.jsx)(vg,{files:r.selectedFiles,onDeleteFiles:function(){return D(r.selectedFileIds,r.selectedFiles)},onChangeFilesProperty:function(t,e){return P(t,e,r.selectedFileIds)},onMoveFiles:C}):s?(0,St.jsx)(Og,{directory:s}):(0,St.jsx)(xg,{})})]})})]})}Ig.defaultProps={type:"",path:{},id:0,data:{},fileLabels:{}};const Fg=Ig;function Ag(t){return Ag="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ag(t)}function Bg(t,e){for(var r=0;r>>32-e}function r(t,e){var r,n,o,i,a;return o=2147483648&t,i=2147483648&e,a=(1073741823&t)+(1073741823&e),(r=1073741824&t)&(n=1073741824&e)?2147483648^a^o^i:r|n?1073741824&a?3221225472^a^o^i:1073741824^a^o^i:a^o^i}function n(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return t&e|~t&r}(n,o,i),a),u)),r(e(t,c),n)}function o(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return t&r|e&~r}(n,o,i),a),u)),r(e(t,c),n)}function i(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return t^e^r}(n,o,i),a),u)),r(e(t,c),n)}function a(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return e^(t|~r)}(n,o,i),a),u)),r(e(t,c),n)}function c(t){var e,r="",n="";for(e=0;e<=3;e++)r+=(n="0"+(t>>>8*e&255).toString(16)).substr(n.length-2,2);return r}var u,s,l,f,p,d,h,y,m,b=Array();for(b=function(t){for(var e,r=t.length,n=r+8,o=16*((n-n%64)/64+1),i=Array(o-1),a=0,c=0;c>>29,i}(t=function(t){t=t.replace(/rn/g,"n");for(var e="",r=0;r127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t)),d=1732584193,h=4023233417,y=2562383102,m=271733878,u=0;u=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fw(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function pw(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fw(i,n,o,a,c,"next",t)}function c(t){fw(i,n,o,a,c,"throw",t)}a(void 0)}))}}function dw(t){var e=S(),r=y((function(t){return t.auth})).user,n=y((function(t){return t.modules.secondary})),o=function(){var t=pw(lw().mark((function t(){return lw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:vt.confirm({title:mt.get("snippets.logout"),confirmButtonText:mt.get("snippets.logout_confirm"),confirm:function(){var t=pw(lw().mark((function t(){return lw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.auth.logout();case 2:e({type:"auth/loggedout"}),vt.notify("User logged out");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,St.jsxs)("div",{className:"user-panel",children:[(0,St.jsx)("div",{className:"user-panel__avatar",children:(0,St.jsx)("img",{src:uw.get(r.email),alt:r.name})}),(0,St.jsx)("div",{className:"user-panel__name",children:r.name}),(0,St.jsx)("div",{className:"user-panel__actions",children:(0,St.jsxs)(il,{style:["secondary"],children:[(0,St.jsx)(It,{links:n.map((function(t){return[t.title,t.id]})),onClick:function(t){return e=t,void ce.goTo(e,"index");var e}}),(0,St.jsx)("div",{className:"user-panel__logout",children:(0,St.jsx)(nr,{onClick:o,style:["full","small"],text:mt.get("snippets.logout")})})]})})]})}function hw(){return(0,St.jsxs)("div",{className:"module",children:[(0,St.jsx)("div",{className:"module__header",children:(0,St.jsx)("div",{className:"module__title",children:(0,St.jsx)(ac,{children:"Not found"})})}),(0,St.jsx)("div",{className:"module__main",children:"Are you sure you're trying to access the correct URL? No module or action was found for this request."})]})}function yw(t){return yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yw(t)}function mw(){mw=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new x(o||[]);return n(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function d(){}function h(){}var y={};u(y,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==e&&r.call(b,i)&&(y=b);var v=h.prototype=p.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==yw(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function bw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vw(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=u(t),a=i[0],c=i[1],s=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,c)),l=0,f=c>0?a-4:a;for(r=0;r>16&255,s[l++]=e>>8&255,s[l++]=255&e;2===c&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,s[l++]=255&e);1===c&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e);return s},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,c=0,u=n-o;cu?u:c+a));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=i.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function s(t,e,n){for(var o,i,a=[],c=e;c>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},764:(t,e,r)=>{"use strict";var n=r(742),o=r(241),i=r(826);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return z(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var i,a=1,c=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,c/=2,u/=2,r/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;ic&&(r=c-u),i=r;i>=0;i--){for(var f=!0,p=0;po&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:s>223?3:s>191?2:1;if(o+f<=r)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],c=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),c=Math.min(i,a),s=this.slice(n,o),l=t.slice(e,r),f=0;fo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return j(this,t,e,r);case"latin1":case"binary":return O(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function E(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function I(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function F(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(t,e,r,n,i){return i||F(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,i){return i||F(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,a=1,c=0;for(this[e]=255&t;++i>0)-c&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,a=1,c=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}},399:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".footer-text{color:var(--fill-color-alt-3);display:block;font-family:Poppins,sans-serif;font-size:.85rem;font-weight:500;letter-spacing:-.02em;line-height:1;text-align:center;width:100%}.footer-text a{text-decoration:underline;transition:color .5s}.footer-text a:hover{color:var(--primary-color);text-decoration:none}",""]);const i=o},451:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.boolean-switcher{background-color:var(--fill-color-alt-1);border-radius:1.3333333333rem;cursor:pointer;display:inline-block;height:1.6666666667rem;padding:.3333333333rem;position:relative;transition:background-color .25s;width:3.3333333333rem}.boolean-switcher:after{background-color:#fff;border-radius:50%;box-shadow:0 5px 15px 0 rgba(70,70,70,.1);content:"";height:1.3333333333rem;left:.1666666667rem;position:absolute;top:.1666666667rem;transition:transform .25s;width:1.3333333333rem}.boolean-switcher--alt{background-color:#fff}.boolean-switcher--alt:after{background-color:var(--fill-color-alt-2)}.boolean-switcher--alt.boolean-switcher--checked:after{background-color:#fff}.boolean-switcher--checked{background-color:var(--primary-color-alt-1)}.boolean-switcher--checked:after{transform:translateX(1.6666666667rem)}.boolean-switcher--small{height:1rem;width:2.3333333333rem}.boolean-switcher--small:after{height:.6666666667rem;width:.6666666667rem}.boolean-switcher--small.boolean-switcher--checked:after{transform:translateX(1.3333333333rem)}',""]);const i=o},195:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'@charset "UTF-8";.breadcrumbs__list{display:flex}.breadcrumbs__list li{color:#7b7d85}.breadcrumbs__list li:after{content:"›";margin-left:.6666666667rem;margin-right:.6666666667rem}.breadcrumbs__list li:last-child{color:#464646}.breadcrumbs__list li:last-child span{cursor:default}.breadcrumbs__list li:last-child span:hover{border-bottom:0}.breadcrumbs__list li:last-child:after{display:none}.breadcrumbs__list li span{cursor:pointer}.breadcrumbs__list li span:hover{border-bottom:1px solid hsla(228,4%,50%,.5)}',""]);const i=o},314:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".button-group{border-radius:8px;display:flex;flex-wrap:nowrap;overflow:hidden}",""]);const i=o},151:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.button{background-color:var(--primary-color);border-radius:8px;color:#fff;cursor:pointer;font-family:Poppins,sans-serif;font-size:.95rem;font-weight:500;line-height:1;overflow:hidden;padding:1rem 2rem;position:relative;transition:background-color .25s;white-space:nowrap}.button:after{bottom:0;box-shadow:inset 0 -2px 0 var(--primary-color-alt-1);content:"";left:0;opacity:.5;position:absolute;right:0;top:0}.button:before{border:1px solid var(--fill-color);border-radius:8px;bottom:2px;content:"";left:2px;opacity:0;position:absolute;right:2px;top:2px;transition:opacity 1s}.button:active:before,.button:focus:before{opacity:.25}.button:hover{background-color:var(--primary-color-alt-1)}.button__icon{margin-right:.5rem}.button__label{color:#7b7d85;margin-right:.6666666667rem}.button--grouped{border-radius:0}.button--has-icon{align-items:center;display:inline-flex}.button--disabled{box-shadow:none;cursor:not-allowed;overflow:hidden}.button--disabled:after{background-color:var(--fill-color);bottom:0;box-shadow:none;content:"";left:0;opacity:.75;position:absolute;right:0;top:0}.button--secondary{background-color:var(--fill-color-alt-1);color:#464646}.button--secondary:after{display:none}.button--active,.button--secondary:hover{background-color:var(--fill-color-alt-2)}.button--outline{background-color:#fff;border:1px solid var(--fill-color-alt-1);color:var(--primary-color-alt-1)}.button--outline:after{display:none}.button--outline:hover{background-color:#fff}.button--full{justify-content:center;text-align:center;width:100%}.button--small{height:2.3rem;padding:.6666666667rem 1.3333333333rem}.button--small:after{display:none}.button--large{border-radius:8px;font-family:Poppins,sans-serif;font-size:1.15rem;font-weight:700;line-height:1.35;padding:1rem 2rem;text-transform:none}',""]);const i=o},554:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".collapsible{background-color:#fff;border:1px solid var(--fill-color-alt-1);border-radius:8px;margin-bottom:1rem}.collapsible__header{align-items:center;background-color:var(--fill-color);display:flex;justify-content:space-between;padding:.3333333333rem .6666666667rem}.collapsible__title{padding-left:1rem;text-align:left;width:100%}.collapsible__content{display:flex;flex-direction:column;gap:2rem;padding:.6666666667rem}.collapsible--closed .collapsible__content{display:none}.collapsible__actions{align-items:center;display:flex;gap:.6666666667rem}.collapsible__component{margin-bottom:2rem}.collapsible__component:last-child{margin-bottom:0}",""]);const i=o},709:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.ctx-overlay{position:fixed}.ctx-mount,.ctx-overlay{bottom:0;left:0;right:0;top:0;z-index:9999}.ctx-mount{position:absolute}@keyframes context-menu{0%{transform:scaleY(.85) scaleX(.85);transform-origin:0 0}to{transform:scaleY(1) scaleX(1);transform-origin:0 0}}.context-menu__menu{animation:context-menu .25s;background-color:#fff;border:1px solid var(--fill-color-alt-2);border-radius:8px;box-shadow:0 5px 15px 0 rgba(70,70,70,.1);left:0;margin-top:.6666666667rem;padding:.6666666667rem;position:absolute;top:0;width:20rem;z-index:1}.context-menu__wrap{position:relative}.context-menu--open .context-menu__wrap:after{border:1px solid var(--fill-color-alt-2);border-radius:8px;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}',""]);const i=o},279:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".directory-view{padding:1rem}.directory-view__content,.directory-view__header{margin-bottom:2rem}",""]);const i=o},374:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.file-drop-zone{border:1px solid transparent;border-radius:8px;display:block;width:100%}.file-drop-zone__overlay{align-items:center;bottom:0;display:flex;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;z-index:9998}.file-drop-zone--drag-over .file-drop-zone__overlay{opacity:1;transition:opacity .5s}.file-drop-zone--drag-over{border:1px dashed var(--primary-color);cursor:copy;position:relative}.file-drop-zone--drag-over:after{background-color:var(--fill-color);border-radius:8px;bottom:0;content:"";display:block;left:0;opacity:.85;pointer-events:none;position:absolute;right:0;top:0}',""]);const i=o},926:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".file-uploader{position:relative}.file-uploader__input{bottom:0;left:0;position:absolute;right:0;top:0}.file-uploader__input:has(input:hover){border:1px dashed var(--fill-color-alt-2);border-radius:10px}.file-uploader__input input{cursor:pointer;height:100%;opacity:0;width:100%}",""]);const i=o},668:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".directory-view{padding:1rem}.directory-view__content,.directory-view__header{margin-bottom:2rem}",""]);const i=o},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i{"use strict";var n=r(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return n.isMemo(t)?a:c[t.$$typeof]||o}c[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[n.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&t(e,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var c=u(e),y=u(r),m=0;m{e.read=function(t,e,r,n,o){var i,a,c=8*o-n-1,u=(1<>1,l=-7,f=r?o-1:0,p=r?-1:1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=c;l>0;i=256*i+t[e+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=s}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,c,u,s=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,h=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(e*u-1)*Math.pow(2,o),a+=f):(c=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&c,d+=h,c/=256,o-=8);for(a=a<0;t[r+d]=255&a,d+=h,a/=256,s-=8);t[r+d-h]|=128*y}},826:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},425:()=>{},921:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function j(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case l:case f:case i:case c:case a:case d:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case y:case u:return t;default:return e}}case o:return e}}}function O(t){return j(t)===f}e.AsyncMode=l,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=u,e.Element=n,e.ForwardRef=p,e.Fragment=i,e.Lazy=m,e.Memo=y,e.Portal=o,e.Profiler=c,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return O(t)||j(t)===l},e.isConcurrentMode=O,e.isContextConsumer=function(t){return j(t)===s},e.isContextProvider=function(t){return j(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return j(t)===p},e.isFragment=function(t){return j(t)===i},e.isLazy=function(t){return j(t)===m},e.isMemo=function(t){return j(t)===y},e.isPortal=function(t){return j(t)===o},e.isProfiler=function(t){return j(t)===c},e.isStrictMode=function(t){return j(t)===a},e.isSuspense=function(t){return j(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===c||t===a||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===y||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===v||t.$$typeof===g||t.$$typeof===w||t.$$typeof===b)},e.typeOf=j},864:(t,e,r)=>{"use strict";t.exports=r(921)},359:(t,e)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case i:case c:case a:case p:case d:return t;default:switch(t=t&&t.$$typeof){case l:case s:case f:case y:case h:case u:return t;default:return e}}case o:return e}}}r=Symbol.for("react.module.reference")},973:(t,e,r)=>{"use strict";r(359)},53:(t,e)=>{"use strict";function r(t,e){var r=t.length;t.push(e);t:for(;0>>1,o=t[n];if(!(0>>1;ni(u,r))si(l,u)?(t[n]=l,t[s]=r,n=s):(t[n]=u,t[c]=r,n=c);else{if(!(si(l,r)))break t;t[n]=l,t[s]=r,n=s}}}return e}function i(t,e){var r=t.sortIndex-e.sortIndex;return 0!==r?r:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var s=[],l=[],f=1,p=null,d=3,h=!1,y=!1,m=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function w(t){for(var e=n(l);null!==e;){if(null===e.callback)o(l);else{if(!(e.startTime<=t))break;o(l),e.sortIndex=e.expirationTime,r(s,e)}e=n(l)}}function j(t){if(m=!1,w(t),!y)if(null!==n(s))y=!0,L(O);else{var e=n(l);null!==e&&D(j,e.startTime-t)}}function O(t,r){y=!1,m&&(m=!1,v(P),P=-1),h=!0;var i=d;try{for(w(r),p=n(s);null!==p&&(!(p.expirationTime>r)||t&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var c=a(p.expirationTime<=r);r=e.unstable_now(),"function"==typeof c?p.callback=c:p===n(s)&&o(s),w(r)}else o(s);p=n(s)}if(null!==p)var u=!0;else{var f=n(l);null!==f&&D(j,f.startTime-r),u=!1}return u}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,x=null,P=-1,k=5,E=-1;function C(){return!(e.unstable_now()-Et||125a?(t.sortIndex=i,r(l,t),null===n(s)&&t===n(l)&&(m?(v(P),P=-1):m=!0,D(j,i-a))):(t.sortIndex=c,r(s,t),y||h||(y=!0,L(O))),t},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(t){var e=d;return function(){var r=d;d=e;try{return t.apply(this,arguments)}finally{d=r}}}},840:(t,e,r)=>{"use strict";t.exports=r(53)},379:(t,e,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),a=[];function c(t){for(var e=-1,r=0;r{"use strict";var n=r(294);var o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=n.useState,a=n.useEffect,c=n.useLayoutEffect,u=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=i({inst:{value:r,getSnapshot:e}}),o=n[0].inst,l=n[1];return c((function(){o.value=r,o.getSnapshot=e,s(o)&&l({inst:o})}),[t,r,e]),a((function(){return s(o)&&l({inst:o}),t((function(){s(o)&&l({inst:o})}))}),[t]),u(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},139:(t,e,r)=>{"use strict";var n=r(294),o=r(688);var i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=o.useSyncExternalStore,c=n.useRef,u=n.useEffect,s=n.useMemo,l=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,r,n,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=s((function(){function t(t){if(!u){if(u=!0,a=t,t=n(t),void 0!==o&&p.hasValue){var e=p.value;if(o(e,t))return c=e}return c=t}if(e=c,i(a,t))return e;var r=n(t);return void 0!==o&&o(e,r)?e:(a=t,c=r)}var a,c,u=!1,s=void 0===r?null:r;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]}),[e,r,n,o]);var d=a(t,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},688:(t,e,r)=>{"use strict";t.exports=r(250)},798:(t,e,r)=>{"use strict";t.exports=r(139)},328:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:String(e)}function i(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;ec})}},t=>{var e=e=>t(t.s=e);t.O(0,[555,170],(()=>(e(66),e(425))));t.O()}]); \ No newline at end of file +(self.webpackChunk=self.webpackChunk||[]).push([[773],{66:(t,e,r)=>{"use strict";var n=r(294),o=r(745),i=r(688),a=r(798),c=r(935);let u=function(t){t()};const s=()=>u,l=(0,n.createContext)(null);function f(){return(0,n.useContext)(l)}let p=()=>{throw new Error("uSES not initialized!")};const d=(t,e)=>t===e;function h(t=l){const e=t===l?f:()=>(0,n.useContext)(t);return function(t,r=d){const{store:o,subscription:i,getServerState:a}=e(),c=p(i.addNestedSub,o.getState,a||o.getState,t,r);return(0,n.useDebugValue)(c),c}}const y=h();r(679),r(973);const m={notify(){},get:()=>[]};function b(t,e){let r,n=m;function o(){a.onStateChange&&a.onStateChange()}function i(){r||(r=e?e.addNestedSub(o):t.subscribe(o),n=function(){const t=s();let e=null,r=null;return{clear(){e=null,r=null},notify(){t((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){let t=[],r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(t){let n=!0,o=r={callback:t,next:null,prev:r};return o.prev?o.prev.next=o:e=o,function(){n&&null!==e&&(n=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}const a={addNestedSub:function(t){return i(),n.subscribe(t)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(r)},trySubscribe:i,tryUnsubscribe:function(){r&&(r(),r=void 0,n.clear(),n=m)},getListeners:()=>n};return a}const v=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement)?n.useLayoutEffect:n.useEffect;let g=null;const w=function({store:t,context:e,children:r,serverState:o}){const i=(0,n.useMemo)((()=>{const e=b(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0}}),[t,o]),a=(0,n.useMemo)((()=>t.getState()),[t]);v((()=>{const{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,a]);const c=e||l;return n.createElement(c.Provider,{value:i},r)};function j(t=l){const e=t===l?f:()=>(0,n.useContext)(t);return function(){const{store:t}=e();return t}}const O=j();function _(t=l){const e=t===l?O:j(t);return function(){return e().dispatch}}const S=_();var x,P;x=a.useSyncExternalStoreWithSelector,p=x,(t=>{g=t})(i.useSyncExternalStore),P=c.unstable_batchedUpdates,u=P;var k=r(890);function E(t){return function(e){var r=e.dispatch,n=e.getState;return function(e){return function(o){return"function"==typeof o?o(r,n,t):e(o)}}}}var C=E();C.withExtraArgument=E;const R=C;function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function N(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function L(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:I,e=arguments.length>1?arguments[1]:void 0;return"cmf/update"===e.type?L(L({},t),{},{title:e.payload.title,version:e.payload.version}):t},auth:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"auth/loggedin":return B(B({},t),{},{isLoggedIn:!0,user:e.payload});case"auth/loggedout":return B(B({},t),{},{isLoggedIn:!1,user:null});default:return t}},location:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"location/refresh":return K(K({},t),{},{refresh:!0});case"location/stop-refresh":return K(K({},t),{},{refresh:!1});case"location/update":var r=K(K({},t.current),e.payload);return K(K({},t),{},{previous:K({},t.current),current:K({},r)});default:return t}},media:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ut,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case"media/init":return at(at({},t),{},{isInitialised:!0,directory:e.payload.directory,path:e.payload.path,directories:e.payload.directories,files:e.payload.files});case"media/path/update":return at(at({},t),{},{path:e.payload});case"media/directory/update":return at(at({},t),{},{directory:e.payload});case"media/directories/move":return t.directory&&t.directory.id!==e.moveToId||!t.directory&&e.moveToId?at(at({},t),{},{directories:t.directories.filter((function(t){return!e.directoryIds.includes(t.id)}))}):at({},t);case"media/directories/update":return at(at({},t),{},{directories:e.payload});case"media/directories/rename":var r=nt(t.directories).map((function(t){return at(at({},t),{},{name:t.id===e.payload.id?e.payload.name:t.name})}));return at(at({},t),{},{directories:r});case"media/directories/delete":return at(at({},t),{},{directories:t.directories.filter((function(t){return!e.directoryIds.includes(t.id)}))});case"media/directories/add":return at(at({},t),{},{directories:[].concat(nt(t.directories),[e.payload]).sort((function(t,e){return t.name.toLowerCase()>e.name.toLowerCase()?1:-1}))});case"media/files/label":var n=nt(t.files).map((function(t){return at(at({},t),{},{label:t.id===e.fileId?e.label:t.label})}));return at(at({},t),{},{files:n});case"media/files/changeProperty":var o=nt(t.files).map((function(t){return t[e.property]=t.id===e.fileId?e.value:t[e.property],t}));return at(at({},t),{},{files:o});case"media/files/delete":return at(at({},t),{},{files:t.files.filter((function(t){return!e.fileIds.includes(t.id)}))});case"media/files/add":return at(at({},t),{},{files:[].concat(nt(t.files),[e.payload])});case"media/files/move":return t.directory&&t.directory.id!==e.moveToId||!t.directory&&e.moveToId?at(at({},t),{},{files:t.files.filter((function(t){return!e.fileIds.includes(t.id)}))}):at({},t);case"media/files/rename":var i=nt(t.files).map((function(t){return at(at({},t),{},{name:t.id===e.payload.id?e.payload.name:t.name})}));return at(at({},t),{},{files:i});case"media/files/update":return at(at({},t),{},{files:e.payload});case"media/view/update":return at(at({},t),{},{viewMode:e.payload});default:return t}},modules:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,e=arguments.length>1?arguments[1]:void 0;return"modules/update"===e.type?V(V({},t),{},{all:e.payload.all,primary:e.payload.primary,secondary:e.payload.secondary}):t},language:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et,e=arguments.length>1?arguments[1]:void 0;return"language/update"===e.type?X(X({},t),{},{language:e.payload}):t}});const lt=st;const ft={get:function(t){var e=document.querySelector('meta[name="'+t+'"]');return e?e.getAttribute("content"):null}},pt={get:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=window.localStorage.getItem(t);return r||null===e?r:e},set:function(t,e){window.localStorage.setItem(t,e)},remove:function(t){window.localStorage.removeItem(t)},clear:function(){window.localStorage.clear()}};var dt=function(){for(var t=arguments.length,e=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=t.split("."),n=window.i18n,o=0;o1&&void 0!==arguments[1]?arguments[1]:null,r=document.createElement("button");return r.setAttribute("type","button"),r.classList.add("button"),r.textContent=t,e&&r.addEventListener("click",e),r},i18nNotify:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.notify(mt.get(t,e))},notify:function(t){var e=this;this.notificationStackEl||(this.notificationStackEl=document.createElement("div"),this.notificationStackEl.classList.add("notification-stack"),document.body.appendChild(this.notificationStackEl));var r=document.createElement("div");r.classList.add("notification"),r.textContent=bt.toUpperCaseFirst(t),this.notificationStackEl.appendChild(r),setTimeout((function(){r.classList.add("notification--hidden"),setTimeout((function(){return e.notificationStackEl.removeChild(r)}),250)}),3e3)},copyText:function(t,e){var r=document.createElement("textarea");r.value=t,r.style.top=0,r.style.left=0,r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")&&e()}catch(t){console.error("Fallback: Oops, unable to copy text to clipboard",t)}document.body.removeChild(r)}};var gt=r(379),wt=r.n(gt),jt=r(709),Ot={insert:"head",singleton:!1};wt()(jt.Z,Ot);jt.Z.locals;const _t={scrollTop:function(){document.body.scrollTop=0,document.documentElement.scrollTop=0},className:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return t;"string"==typeof e&&(e=[e]);var r=" "+t+"--";return t+(e?r+e.join(r):"")},shallowEqual:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=0,i=r;o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ae(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const ce={path:ft.get("cmf:path"),currentPath:{},history:[],parseLocation:function(t){var e="/"+this.path+"/",r=t.search,n=new URLSearchParams(r),o=Object.fromEntries(n),i=t.pathname,a=(i.startsWith(e)?i.slice(e.length):"").split("/");return{module:a[0],action:a[1],params:o}},update:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ht.dispatch({type:"location/update",payload:{module:t,action:e,params:r}})},goTo:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=ne.query(r);window.history.pushState({},"",this.path+"/"+t+"/"+e+(n?"?"+n:"")),this.history.push({module:t,action:e,params:r}),this.update(t,e,r)},refresh:function(){ht.dispatch(function(){var t=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ae(i,n,o,a,c,"next",t)}function c(t){ae(i,n,o,a,c,"throw",t)}a(void 0)}))}}(ie().mark((function t(e){return ie().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({type:"location/refresh"});case 2:e({type:"location/stop-refresh"});case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},goBack:function(){var t=this.history[this.history.length-2],e=t.module,r=t.action,n=t.params;this.goTo(e,r,n)},handleRedirect:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.refresh?this.refresh():t.redirectBack?this.goBack():t.redirect&&this.goTo(t.path.module,t.redirect,e)}};function ue(t){var e=y((function(t){return t.modules.primary})),r=function(e){t.onModuleSwitch&&t.onModuleSwitch(),ce.goTo(e.id,"index")},o=function(t,e){"open"===t?r(e):"open_new"===t&&window.open(e.url)},i=function(e){if(t.activeModule&&t.activeModule.id===e.id)return!0;for(var r=0;r{const e=wr.call(t);return _r[e]||(_r[e]=e.slice(8,-1).toLowerCase())});var _r;const Sr=t=>(t=t.toLowerCase(),e=>Or(e)===t),xr=t=>e=>typeof e===t,{isArray:Pr}=Array,kr=xr("undefined");const Er=Sr("ArrayBuffer");const Cr=xr("string"),Rr=xr("function"),Tr=xr("number"),Nr=t=>null!==t&&"object"==typeof t,Lr=t=>{if("object"!==Or(t))return!1;const e=jr(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Dr=Sr("Date"),Ir=Sr("File"),Fr=Sr("Blob"),Ar=Sr("FileList"),Br=Sr("URLSearchParams");function Ur(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let n,o;if("object"!=typeof t&&(t=[t]),Pr(t))for(n=0,o=t.length;n0;)if(n=r[o],e===n.toLowerCase())return n;return null}const zr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Gr=t=>!kr(t)&&t!==zr;const Vr=(qr="undefined"!=typeof Uint8Array&&jr(Uint8Array),t=>qr&&t instanceof qr);var qr;const Wr=Sr("HTMLFormElement"),Yr=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),$r=Sr("RegExp"),Kr=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Ur(r,((r,o)=>{!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},Hr="abcdefghijklmnopqrstuvwxyz",Zr="0123456789",Jr={DIGIT:Zr,ALPHA:Hr,ALPHA_DIGIT:Hr+Hr.toUpperCase()+Zr};const Qr={isArray:Pr,isArrayBuffer:Er,isBuffer:function(t){return null!==t&&!kr(t)&&null!==t.constructor&&!kr(t.constructor)&&Rr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||wr.call(t)===e||Rr(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Er(t.buffer),e},isString:Cr,isNumber:Tr,isBoolean:t=>!0===t||!1===t,isObject:Nr,isPlainObject:Lr,isUndefined:kr,isDate:Dr,isFile:Ir,isBlob:Fr,isRegExp:$r,isFunction:Rr,isStream:t=>Nr(t)&&Rr(t.pipe),isURLSearchParams:Br,isTypedArray:Vr,isFileList:Ar,forEach:Ur,merge:function t(){const{caseless:e}=Gr(this)&&this||{},r={},n=(n,o)=>{const i=e&&Mr(r,o)||o;Lr(r[i])&&Lr(n)?r[i]=t(r[i],n):Lr(n)?r[i]=t({},n):Pr(n)?r[i]=n.slice():r[i]=n};for(let t=0,e=arguments.length;t(Ur(e,((e,n)=>{r&&Rr(e)?t[n]=gr(e,r):t[n]=e}),{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,n)=>{let o,i,a;const c={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],n&&!n(a,t,e)||c[a]||(e[a]=t[a],c[a]=!0);t=!1!==r&&jr(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:Or,kindOfTest:Sr,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return-1!==n&&n===r},toArray:t=>{if(!t)return null;if(Pr(t))return t;let e=t.length;if(!Tr(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let n;for(;(n=r.next())&&!n.done;){const r=n.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const n=[];for(;null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:Wr,hasOwnProperty:Yr,hasOwnProp:Yr,reduceDescriptors:Kr,freezeMethods:t=>{Kr(t,((e,r)=>{if(Rr(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=t[r];Rr(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:(t,e)=>{const r={},n=t=>{t.forEach((t=>{r[t]=!0}))};return Pr(t)?n(t):n(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:Mr,global:zr,isContextDefined:Gr,ALPHABET:Jr,generateString:(t=16,e=Jr.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&Rr(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,n)=>{if(Nr(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[n]=t;const o=Pr(t)?[]:{};return Ur(t,((t,e)=>{const i=r(t,n+1);!kr(i)&&(o[e]=i)})),e[n]=void 0,o}}return t};return r(t,0)}};function Xr(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}Qr.inherits(Xr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Qr.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const tn=Xr.prototype,en={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{en[t]={value:t}})),Object.defineProperties(Xr,en),Object.defineProperty(tn,"isAxiosError",{value:!0}),Xr.from=(t,e,r,n,o,i)=>{const a=Object.create(tn);return Qr.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),Xr.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const rn=Xr,nn=null;var on=r(764).lW;function an(t){return Qr.isPlainObject(t)||Qr.isArray(t)}function cn(t){return Qr.endsWith(t,"[]")?t.slice(0,-2):t}function un(t,e,r){return t?t.concat(e).map((function(t,e){return t=cn(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const sn=Qr.toFlatObject(Qr,{},null,(function(t){return/^is[A-Z]/.test(t)}));const ln=function(t,e,r){if(!Qr.isObject(t))throw new TypeError("target must be an object");e=e||new(nn||FormData);const n=(r=Qr.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!Qr.isUndefined(e[t])}))).metaTokens,o=r.visitor||s,i=r.dots,a=r.indexes,c=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Qr.isSpecCompliantForm(e);if(!Qr.isFunction(o))throw new TypeError("visitor must be a function");function u(t){if(null===t)return"";if(Qr.isDate(t))return t.toISOString();if(!c&&Qr.isBlob(t))throw new rn("Blob is not supported. Use a Buffer instead.");return Qr.isArrayBuffer(t)||Qr.isTypedArray(t)?c&&"function"==typeof Blob?new Blob([t]):on.from(t):t}function s(t,r,o){let c=t;if(t&&!o&&"object"==typeof t)if(Qr.endsWith(r,"{}"))r=n?r:r.slice(0,-2),t=JSON.stringify(t);else if(Qr.isArray(t)&&function(t){return Qr.isArray(t)&&!t.some(an)}(t)||(Qr.isFileList(t)||Qr.endsWith(r,"[]"))&&(c=Qr.toArray(t)))return r=cn(r),c.forEach((function(t,n){!Qr.isUndefined(t)&&null!==t&&e.append(!0===a?un([r],n,i):null===a?r:r+"[]",u(t))})),!1;return!!an(t)||(e.append(un(o,r,i),u(t)),!1)}const l=[],f=Object.assign(sn,{defaultVisitor:s,convertValue:u,isVisitable:an});if(!Qr.isObject(t))throw new TypeError("data must be an object");return function t(r,n){if(!Qr.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),Qr.forEach(r,(function(r,i){!0===(!(Qr.isUndefined(r)||null===r)&&o.call(e,r,Qr.isString(i)?i.trim():i,n,f))&&t(r,n?n.concat(i):[i])})),l.pop()}}(t),e};function fn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function pn(t,e){this._pairs=[],t&&ln(t,this,e)}const dn=pn.prototype;dn.append=function(t,e){this._pairs.push([t,e])},dn.toString=function(t){const e=t?function(e){return t.call(this,e,fn)}:fn;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};const hn=pn;function yn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mn(t,e,r){if(!e)return t;const n=r&&r.encode||yn,o=r&&r.serialize;let i;if(i=o?o(e,r):Qr.isURLSearchParams(e)?e.toString():new hn(e,r).toString(n),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}const bn=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Qr.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},vn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gn="undefined"!=typeof URLSearchParams?URLSearchParams:hn,wn=FormData,jn=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&("undefined"!=typeof window&&"undefined"!=typeof document)})(),On="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,_n={isBrowser:!0,classes:{URLSearchParams:gn,FormData:wn,Blob},isStandardBrowserEnv:jn,isStandardBrowserWebWorkerEnv:On,protocols:["http","https","file","blob","url","data"]};const Sn=function(t){function e(t,r,n,o){let i=t[o++];const a=Number.isFinite(+i),c=o>=t.length;if(i=!i&&Qr.isArray(n)?n.length:i,c)return Qr.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a;n[i]&&Qr.isObject(n[i])||(n[i]=[]);return e(t,r,n[i],o)&&Qr.isArray(n[i])&&(n[i]=function(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n{e(function(t){return Qr.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),n,r,0)})),r}return null},xn={"Content-Type":void 0};const Pn={transitional:vn,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",n=r.indexOf("application/json")>-1,o=Qr.isObject(t);o&&Qr.isHTMLForm(t)&&(t=new FormData(t));if(Qr.isFormData(t))return n&&n?JSON.stringify(Sn(t)):t;if(Qr.isArrayBuffer(t)||Qr.isBuffer(t)||Qr.isStream(t)||Qr.isFile(t)||Qr.isBlob(t))return t;if(Qr.isArrayBufferView(t))return t.buffer;if(Qr.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return ln(t,new _n.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return _n.isNode&&Qr.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=Qr.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ln(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||n?(e.setContentType("application/json",!1),function(t,e,r){if(Qr.isString(t))try{return(e||JSON.parse)(t),Qr.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Pn.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&Qr.isString(t)&&(r&&!this.responseType||n)){const r=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw rn.from(t,rn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_n.classes.FormData,Blob:_n.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Qr.forEach(["delete","get","head"],(function(t){Pn.headers[t]={}})),Qr.forEach(["post","put","patch"],(function(t){Pn.headers[t]=Qr.merge(xn)}));const kn=Pn,En=Qr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cn=Symbol("internals");function Rn(t){return t&&String(t).trim().toLowerCase()}function Tn(t){return!1===t||null==t?t:Qr.isArray(t)?t.map(Tn):String(t)}function Nn(t,e,r,n){return Qr.isFunction(n)?n.call(this,e,r):Qr.isString(e)?Qr.isString(n)?-1!==e.indexOf(n):Qr.isRegExp(n)?n.test(e):void 0:void 0}class Ln{constructor(t){t&&this.set(t)}set(t,e,r){const n=this;function o(t,e,r){const o=Rn(e);if(!o)throw new Error("header name must be a non-empty string");const i=Qr.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=Tn(t))}const i=(t,e)=>Qr.forEach(t,((t,r)=>o(t,r,e)));return Qr.isPlainObject(t)||t instanceof this.constructor?i(t,e):Qr.isString(t)&&(t=t.trim())&&!function(t){return/^[-_a-zA-Z]+$/.test(t.trim())}(t)?i((t=>{const e={};let r,n,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),r=t.substring(0,o).trim().toLowerCase(),n=t.substring(o+1).trim(),!r||e[r]&&En[r]||("set-cookie"===r?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)})),e})(t),e):null!=t&&o(e,t,r),this}get(t,e){if(t=Rn(t)){const r=Qr.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}(t);if(Qr.isFunction(e))return e.call(this,t,r);if(Qr.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=Rn(t)){const r=Qr.findKey(this,t);return!(!r||void 0===this[r]||e&&!Nn(0,this[r],r,e))}return!1}delete(t,e){const r=this;let n=!1;function o(t){if(t=Rn(t)){const o=Qr.findKey(r,t);!o||e&&!Nn(0,r[o],o,e)||(delete r[o],n=!0)}}return Qr.isArray(t)?t.forEach(o):o(t),n}clear(t){const e=Object.keys(this);let r=e.length,n=!1;for(;r--;){const o=e[r];t&&!Nn(0,this[o],o,t)||(delete this[o],n=!0)}return n}normalize(t){const e=this,r={};return Qr.forEach(this,((n,o)=>{const i=Qr.findKey(r,o);if(i)return e[i]=Tn(n),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,e,r)=>e.toUpperCase()+r))}(o):String(o).trim();a!==o&&delete e[o],e[a]=Tn(n),r[a]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return Qr.forEach(this,((r,n)=>{null!=r&&!1!==r&&(e[n]=t&&Qr.isArray(r)?r.join(", "):r)})),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,e])=>t+": "+e)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach((t=>r.set(t))),r}static accessor(t){const e=(this[Cn]=this[Cn]={accessors:{}}).accessors,r=this.prototype;function n(t){const n=Rn(t);e[n]||(!function(t,e){const r=Qr.toCamelCase(" "+e);["get","set","has"].forEach((n=>{Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return Qr.isArray(t)?t.forEach(n):n(t),this}}Ln.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Qr.freezeMethods(Ln.prototype),Qr.freezeMethods(Ln);const Dn=Ln;function In(t,e){const r=this||kn,n=e||r,o=Dn.from(n.headers);let i=n.data;return Qr.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function Fn(t){return!(!t||!t.__CANCEL__)}function An(t,e,r){rn.call(this,null==t?"canceled":t,rn.ERR_CANCELED,e,r),this.name="CanceledError"}Qr.inherits(An,rn,{__CANCEL__:!0});const Bn=An;const Un=_n.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){const a=[];a.push(t+"="+encodeURIComponent(e)),Qr.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Qr.isString(n)&&a.push("path="+n),Qr.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Mn(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const zn=_n.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function n(r){let n=r;return t&&(e.setAttribute("href",n),n=e.href),e.setAttribute("href",n),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=n(window.location.href),function(t){const e=Qr.isString(t)?n(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};const Gn=function(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(c){const u=Date.now(),s=n[a];o||(o=u),r[i]=c,n[i]=u;let l=a,f=0;for(;l!==i;)f+=r[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),u-o{const i=o.loaded,a=o.lengthComputable?o.total:void 0,c=i-r,u=n(c);r=i;const s={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&i<=a?(a-i)/u:void 0,event:o};s[e?"download":"upload"]=!0,t(s)}}const qn="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let n=t.data;const o=Dn.from(t.headers).normalize(),i=t.responseType;let a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}Qr.isFormData(n)&&(_n.isStandardBrowserEnv||_n.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(e+":"+r))}const s=Mn(t.baseURL,t.url);function l(){if(!u)return;const n=Dn.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new rn("Request failed with status code "+r.status,[rn.ERR_BAD_REQUEST,rn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),c()}),(function(t){r(t),c()}),{data:i&&"text"!==i&&"json"!==i?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),mn(s,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=l:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(l)},u.onabort=function(){u&&(r(new rn("Request aborted",rn.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new rn("Network Error",rn.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const n=t.transitional||vn;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new rn(e,n.clarifyTimeoutError?rn.ETIMEDOUT:rn.ECONNABORTED,t,u)),u=null},_n.isStandardBrowserEnv){const e=(t.withCredentials||zn(s))&&t.xsrfCookieName&&Un.read(t.xsrfCookieName);e&&o.set(t.xsrfHeaderName,e)}void 0===n&&o.setContentType(null),"setRequestHeader"in u&&Qr.forEach(o.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),Qr.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),i&&"json"!==i&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",Vn(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Vn(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=e=>{u&&(r(!e||e.type?new Bn(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(s);f&&-1===_n.protocols.indexOf(f)?r(new rn("Unsupported protocol "+f+":",rn.ERR_BAD_REQUEST,t)):u.send(n||null)}))},Wn={http:nn,xhr:qn};Qr.forEach(Wn,((t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));const Yn={getAdapter:t=>{t=Qr.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;ot instanceof Dn?t.toJSON():t;function Zn(t,e){e=e||{};const r={};function n(t,e,r){return Qr.isPlainObject(t)&&Qr.isPlainObject(e)?Qr.merge.call({caseless:r},t,e):Qr.isPlainObject(e)?Qr.merge({},e):Qr.isArray(e)?e.slice():e}function o(t,e,r){return Qr.isUndefined(e)?Qr.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!Qr.isUndefined(e))return n(void 0,e)}function a(t,e){return Qr.isUndefined(e)?Qr.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function c(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(t,e)=>o(Hn(t),Hn(e),!0)};return Qr.forEach(Object.keys(t).concat(Object.keys(e)),(function(n){const i=u[n]||o,a=i(t[n],e[n],n);Qr.isUndefined(a)&&i!==c||(r[n]=a)})),r}const Jn="1.3.2",Qn={};["object","boolean","number","function","string","symbol"].forEach(((t,e)=>{Qn[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}}));const Xn={};Qn.transitional=function(t,e,r){function n(t,e){return"[Axios v"+Jn+"] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,o,i)=>{if(!1===t)throw new rn(n(o," has been removed"+(e?" in "+e:"")),rn.ERR_DEPRECATED);return e&&!Xn[o]&&(Xn[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};const to={assertOptions:function(t,e,r){if("object"!=typeof t)throw new rn("options must be an object",rn.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const e=t[i],r=void 0===e||a(e,i,t);if(!0!==r)throw new rn("option "+i+" must be "+r,rn.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new rn("Unknown option "+i,rn.ERR_BAD_OPTION)}},validators:Qn},eo=to.validators;class ro{constructor(t){this.defaults=t,this.interceptors={request:new bn,response:new bn}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Zn(this.defaults,e);const{transitional:r,paramsSerializer:n,headers:o}=e;let i;void 0!==r&&to.assertOptions(r,{silentJSONParsing:eo.transitional(eo.boolean),forcedJSONParsing:eo.transitional(eo.boolean),clarifyTimeoutError:eo.transitional(eo.boolean)},!1),void 0!==n&&to.assertOptions(n,{encode:eo.function,serialize:eo.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&Qr.merge(o.common,o[e.method]),i&&Qr.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),e.headers=Dn.concat(i,o);const a=[];let c=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(c=c&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const u=[];let s;this.interceptors.response.forEach((function(t){u.push(t.fulfilled,t.rejected)}));let l,f=0;if(!c){const t=[Kn.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,u),l=t.length,s=Promise.resolve(e);f{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null})),this.promise.then=t=>{let e;const n=new Promise((t=>{r.subscribe(t),e=t})).then(t);return n.cancel=function(){r.unsubscribe(e)},n},t((function(t,n,o){r.reason||(r.reason=new Bn(t,n,o),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new oo((function(e){t=e})),cancel:t}}}const io=oo;const ao={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ao).forEach((([t,e])=>{ao[e]=t}));const co=ao;const uo=function t(e){const r=new no(e),n=gr(no.prototype.request,r);return Qr.extend(n,no.prototype,r,{allOwnKeys:!0}),Qr.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Zn(e,r))},n}(kn);uo.Axios=no,uo.CanceledError=Bn,uo.CancelToken=io,uo.isCancel=Fn,uo.VERSION=Jn,uo.toFormData=ln,uo.AxiosError=rn,uo.Cancel=uo.CanceledError,uo.all=function(t){return Promise.all(t)},uo.spread=function(t){return function(e){return t.apply(null,e)}},uo.isAxiosError=function(t){return Qr.isObject(t)&&!0===t.isAxiosError},uo.mergeConfig=Zn,uo.AxiosHeaders=Dn,uo.formToJSON=t=>Sn(Qr.isHTMLForm(t)?new FormData(t):t),uo.HttpStatusCode=co,uo.default=uo;const so=uo;function lo(t){return lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(t)}function fo(){fo=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new x(o||[]);return n(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function d(){}function h(){}var y={};u(y,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==e&&r.call(b,i)&&(y=b);var v=h.prototype=p.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==lo(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ho(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n={file:t};return e&&(n.directory=e),vo.post("cmf/api/media/upload",ne.formData(n),{onUploadProgress:r})},go.media.uploadChunk=function(t,e,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i={status:t,filename:e,chunk:n};return r&&(i.path=r),o&&(i.directory=o),vo.post("cmf/api/media/upload-chunk",ne.formData(i))},go.media.path=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={};return t&&(e.directory=t),vo.get("cmf/api/media/path",{params:e})},go.media.loadDirectories=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={};return t&&(e.directory=t),vo.get("cmf/api/media/load-directories",{params:e})},go.media.loadFiles=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e={};return t&&(e.directory=t),vo.get("cmf/api/media/load-files",{params:e})},go.media.createDirectory=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={name:t};return e&&(r.directory=e),vo.post("cmf/api/media/create-directory",r)},go.media.renameDirectory=function(t,e){return vo.post("cmf/api/media/rename-directory",{name:t,directory:e})},go.media.deleteDirectory=function(t){return vo.post("cmf/api/media/delete-directory",{directory:t})},go.media.moveDirectory=function(t,e){return vo.post("cmf/api/media/move-directory",{directory:t,id:e})},go.media.renameFile=function(t,e){return vo.post("cmf/api/media/rename-file",{name:t,file:e})},go.media.deleteFile=function(t){return vo.post("cmf/api/media/delete-file",{file:t})},go.media.deleteFiles=function(t){return vo.post("cmf/api/media/delete-files",{files:JSON.stringify(t)})},go.media.labelFile=function(t,e){return vo.post("cmf/api/media/label-file",{label:t,file:e})},go.media.updateFileDescription=function(t,e){return vo.post("cmf/api/media/update-file-description",{description:t,file:e})},go.media.updateFileCopyright=function(t,e){return vo.post("cmf/api/media/update-file-copyright",{copyright:t,file:e})},go.media.updateFileVisibility=function(t,e){return vo.post("cmf/api/media/update-file-visibility",{visibility:t,file:e})},go.media.updateFilesDescription=function(t,e){return vo.post("cmf/api/media/update-files-description",{description:t,files:JSON.stringify(e)})},go.media.updateFilesCopyright=function(t,e){return vo.post("cmf/api/media/update-files-copyright",{copyright:t,files:JSON.stringify(e)})},go.media.moveFile=function(t,e){return vo.post("cmf/api/media/move-file",{directory:t,file:e})},go.media.moveFiles=function(t,e){return vo.post("cmf/api/media/move-files",{directory:t,files:JSON.stringify(e)})},go.modules.index=function(){return vo.get("cmf/api/modules")},go.modules.action=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return vo.get("cmf/api/modules/".concat(t.module,"/").concat(t.action),{params:e})},go.modules.get=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vo.get("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e),{params:r})},go.modules.post=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return vo.post("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e),ne.formData(r))},go.execute.get=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return vo.get("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e,"/").concat(r),{params:n})},go.execute.post=function(t,e,r,n){return vo.post("cmf/api/modules/".concat(t.module,"/").concat(t.action,"/").concat(e,"/").concat(r),ne.formData(n))};const wo=go;function jo(t){return jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jo(t)}function Oo(t,e){for(var r=0;r1&&void 0!==arguments[1])||arguments[1])&&(Si.set(t),_i.trigger("language.switch",{id:this.props.id,prevLanguage:this.state.language,language:t})),this.setState({language:t})}},{key:"renderLanguageSwitcher",value:function(){var t=this;return this.props.languages.map((function(e){return(0,St.jsx)("button",{type:"button",onClick:function(r){return t.switchLanguage(e)},className:"translatable__button"+(e===t.state.language?" translatable__button--active":""),children:e},e)}))}},{key:"render",value:function(){return(0,St.jsxs)("div",{className:"translatable",id:"language-"+this.props.id,children:[(0,St.jsx)("div",{className:"translatable__tabs",children:this.renderLanguageSwitcher()}),this.renderTranslatedComponents()]})}}],r&&Ei(e.prototype,r),n&&Ei(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);Ni(Di,"defaultProps",{id:null,components:[],path:{},data:{},languages:[],errors:{}});const Ii=Di;function Fi(t){return Fi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(t)}function Ai(t,e){for(var r=0;r5&&(t=(0,St.jsx)("div",{className:"select__search",children:(0,St.jsx)(Ji,{debounce:100,onSearch:function(t){return e.search(t)}})})),(0,St.jsxs)("div",{className:"select__dropdown",children:[t,(0,St.jsx)("div",{className:"select__list",children:(0,St.jsx)(Vi,{nullable:this.props.nullable,multiple:this.props.multiple,defaultValues:this.props.multiple?this.state.value:[this.state.value],options:this.state.isSearching?this.state.searchResults:this.props.options,onChange:function(t){return e.handleSelectionChange(t)}})}),this.renderDropdownChildren()]})):null}},{key:"render",value:function(){var t,e=this;return t=this.props.multiple?this.state.value.length?this.state.value.map((function(t){return e.props.options[t]})).join(", "):this.props.nullText:this.props.options[this.state.value]?this.props.options[this.state.value]:this.props.nullText,(0,St.jsxs)("div",{className:"select",ref:this.selectRef,children:[(0,St.jsxs)("div",{className:"select__field",onClick:this.toggle.bind(this),children:[(0,St.jsx)("div",{className:"select__value",children:t}),(0,St.jsx)("div",{className:"select__icon",children:(0,St.jsx)(Qt,{name:this.state.isOpen?this.props.closeIcon:this.props.openIcon})})]}),this.renderDropdown()]})}}],r&&ta(e.prototype,r),o&&ta(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=ia(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(aa,"defaultProps",{options:{},multiple:!1,value:"",search:!0,nullable:!1,nullText:"",onChange:function(t){},openIcon:"expand_more",closeIcon:"expand_less"});const ca=aa;function ua(t){return ua="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(t)}function sa(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;wo.execute.get(this.props.path,this.props.id,"load",this.props.path.params).then((function(r){var n=r.data.data,o={};n.forEach((function(e){return o[e.id]=e[t.props.titleColumn]}));var i=n.length?n[0].id:"",a=t.state.value?t.state.value:t.props.nullable?"":i;t.setState({value:a,options:o},(function(){e&&e()}))}))}},{key:"handleChange",value:function(t){this.setState({value:t})}},{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"create",value:function(t){var e=this;wo.execute.post(this.props.path,this.props.id,"create",t).then((function(t){e.createFormRef.current.ready(),e.load((function(){e.setState({isOpen:!1,value:t.data.data.id})})),vt.notify(mt.get("snippets.singular_created_selected",{singular:e.props.singular}))}),(function(t){var r=t.response;e.createFormRef.current.ready(),e.setState({createFormErrors:r.data.errors}),vt.notify(r.data.message)}))}},{key:"renderSidebarComponents",value:function(){return rb.renderComponents(this.props.sidebarComponents,{},this.props.path)}},{key:"renderCreateComponents",value:function(){return rb.renderComponents(this.props.createComponents,{},this.props.path)}},{key:"renderCreateWidget",value:function(){return this.state.isOpen?(0,St.jsx)(ko,{children:(0,St.jsx)(Vo,{title:mt.get("snippets.new_singular",{singular:this.props.singular}),style:"modal",closeable:!0,onClose:this.close.bind(this),children:(0,St.jsx)(ti,{ref:this.createFormRef,errors:this.state.createFormErrors,realForm:!1,onSubmit:this.create.bind(this),submitButtonText:mt.get("snippets.create_singular",{singular:this.props.singular}),sidebar:this.renderSidebarComponents(),children:this.renderCreateComponents()})})}):null}},{key:"renderCreate",value:function(){return this.props.create?(0,St.jsx)("div",{className:"belongs-to-field__btn",children:(0,St.jsx)(nr,{icon:"add",style:["full","small","secondary"],text:mt.get("snippets.new_singular",{singular:this.props.singular}),onClick:this.open.bind(this)})}):null}},{key:"render",value:function(){var t=this;return(0,St.jsxs)(xe,{name:this.props.name,label:this.props.label,tooltip:this.props.tooltip,children:[(0,St.jsx)("div",{className:"belongs-to-field",children:(0,St.jsx)("div",{className:"belongs-to-field__field",children:(0,St.jsx)(ca,{nullable:this.props.nullable,nullText:"– "+mt.get("snippets.no_singular_selected",{singular:this.props.singular})+" –",options:this.state.options,value:this.state.value,onChange:function(e){return t.handleChange(e)},children:this.renderCreate()})})}),this.renderCreateWidget()]})}}],r&&Au(e.prototype,r),o&&Au(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=zu(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Gu,"defaultProps",{data:{},label:"",name:"",titleColumn:"",nullable:!1,plural:"",singular:"",tooltip:"",create:!1,createComponents:[],sidebarComponents:[]});const Vu=Gu;function qu(t){return qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(t)}function Wu(t,e){for(var r=0;rA2');var n=e.querySelector(".trix-button-group--block-tools");n&&n.remove();var o=e.querySelector(".trix-button-group--file-tools");o&&o.remove()}},{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){}},{key:"componentDidUpdate",value:function(t){this.props.data[this.props.name]!==t.data[this.props.name]&&this.setState({redrawKey:this.state.redrawKey+1,value:this.props.data[this.props.name]||""})}},{key:"handleChange",value:function(t,e){this.setState({value:t})}},{key:"handleSubmit",value:function(t){t[this.props.name]=this.state.value||""}},{key:"getData",value:function(t){return t[this.props.name]=this.state.value||"",t}},{key:"render",value:function(){return(0,St.jsx)(xe,{name:this.props.name,label:this.props.label,tooltip:this.props.tooltip,children:(0,St.jsx)("div",{className:"richtext-field",children:(0,St.jsx)(ts.TrixEditor,{value:this.props.data[this.props.name]||"",onChange:this.handleChange.bind(this),onEditorReady:this.handleEditorReady.bind(this)},this.state.redrawKey)})})}}])&&ns(e.prototype,r),n&&ns(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);function ss(t){return ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(t)}function ls(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rr?"left":"right",t.clientY>e?"up":"down")}}},{key:"open",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"down";this.setState({isOpen:!0,dropDirectionX:e,dropDirectionY:r},(function(){t.bindDocumentClick()}))}},{key:"close",value:function(){var t=this;this.setState({isOpen:!1},(function(){t.unbindDocumentClick()}))}},{key:"render",value:function(){var t=(0,St.jsx)(nr,{stopPropagation:this.props.stopPropagation,text:this.props.text,label:this.props.label,style:[].concat(Zs(this.props.style),["small"]),onClick:this.toggle.bind(this),icon:this.state.isOpen?this.props.closeIcon:this.props.openIcon});return this.props.text||(t=(0,St.jsx)(Io,{stopPropagation:this.props.stopPropagation,name:this.state.isOpen?this.props.closeIcon:this.props.openIcon,iconStyle:"small",onClick:this.toggle.bind(this)})),(0,St.jsxs)("div",{className:_t.className("dropdown",this.props.style)+(this.state.isOpen?" dropdown--open":"")+" dropdown--"+this.state.dropDirectionX+" dropdown--"+this.state.dropDirectionY,ref:this.dropdownRef,children:[(0,St.jsx)("div",{className:"dropdown__trigger",children:t}),(0,St.jsx)("div",{className:"dropdown__content",children:this.props.children})]})}}],r&&Qs(e.prototype,r),o&&Qs(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=nl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(ol,"defaultProps",{label:"",text:"",style:[],autoClose:!1,openIcon:"expand_more",closeIcon:"expand_less",stopPropagation:!0});const il=ol;function al(t){return function(t){if(Array.isArray(t))return cl(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return cl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cl(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function El(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Cl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){El(i,n,o,a,c,"next",t)}function c(t){El(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Rl(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;this.props.onDirectoryClick(t)}},{key:"load",value:(i=Cl(kl().mark((function t(){var e=this;return kl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.media.loadDirectories(this.props.directory).then((function(t){e.setState({directories:t.data.data})}));case 2:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"loadChildren",value:(o=Cl(kl().mark((function t(e){var r=this;return kl().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.media.loadDirectories(e).then((function(t){var n=r.state.directoriesMap;n[e]=t.data.data,r.setState({directoriesMap:n})}));case 2:case"end":return t.stop()}}),t)}))),function(t){return o.apply(this,arguments)})},{key:"toggleCollapse",value:function(t){if(this.state.directoriesMap[t]){var e=this.state.directoriesMap;delete e[t],this.setState({directoriesMap:e})}else this.loadChildren(t)}},{key:"renderChildren",value:function(t){var e=this;return this.state.directoriesMap[t]?this.state.directoriesMap[t].map((function(t){return e.renderDirectory(t)})):null}},{key:"renderDirectory",value:function(t){var e=this;return(0,St.jsxs)("div",{className:"directory-tree__item",children:[(0,St.jsx)(xl,{icon:"folder",text:t.name,style:this.props.selectedDirectory===t.id?"selected":"default",onToggle:function(){return e.toggleCollapse(t.id)},onClick:function(){return e.select(t.id)}}),(0,St.jsx)("div",{className:"directory-tree__children",children:this.renderChildren(t.id)})]},t.id)}},{key:"render",value:function(){var t=this;return this.state.directories.length?(0,St.jsxs)("div",{className:"directory-tree",children:[(0,St.jsx)(xl,{icon:"home",text:mt.get("snippets.files_root"),style:null===this.props.selectedDirectory?"selected":"default",collapsible:!1,onClick:function(){return t.select()}}),this.state.directories.map((function(e){return t.renderDirectory(e)}))]}):null}}],r&&Rl(e.prototype,r),n&&Rl(e,n),Object.defineProperty(e,"prototype",{writable:!1}),c}(n.Component);!function(t,e,r){(e=Dl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Il,"defaultProps",{directory:null,selectedDirectory:null,onDirectoryClick:function(t){}});const Fl=Il;function Al(t){return Al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(t)}function Bl(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r186?"#000000":"#ffffff"};function ff(t){return ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ff(t)}function pf(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&(e=[[mt.get("snippets.move_files",{amount:this.props.selectedFileIds.length}),"multi-move"],[mt.get("snippets.delete_files",{amount:this.props.selectedFileIds.length}),"multi-delete"]]),(0,St.jsx)(Of,{files:this.state.files,fileLabels:this.props.fileLabels,selection:this.props.selectedFileIds,selectionMode:this.props.selectionMode,contextMenuLinks:e,onClick:function(e,r){return t.handleFileClick(e,r)},onContextClick:function(e,r){return t.onFileContextClick(e,r)}})}},{key:"renderDirectories",value:function(){var t=this;return this.props.directories.length?(0,St.jsx)(St.Fragment,{children:(0,St.jsx)(Pf,{directories:this.props.directories,contextMenuLinks:[[mt.get("snippets.rename"),"rename"],[mt.get("snippets.move"),"move"],[mt.get("snippets.delete"),"delete"]],onContextClick:function(e,r){return t.onDirectoryContextClick(e,r)},onClick:function(e,r){return t.props.onDirectoryClick(r.id)}})}):null}},{key:"renderContent",value:function(){return this.state.uploads.length||this.props.directories.length||this.state.files.length?(0,St.jsxs)("div",{className:"file-browser__content",children:[this.renderUploads(),this.renderDirectories(),this.renderFiles()]}):(0,St.jsx)("div",{className:"file-browser__content",children:(0,St.jsx)("div",{className:"file-browser__placeholder",children:(0,St.jsx)(ju,{children:mt.get("snippets.directory_is_empty")})})})}},{key:"render",value:function(){return(0,St.jsxs)("div",{className:"file-browser",children:[this.renderContent(),this.renderMoveWidget()]})}}],r&&Rf(e.prototype,r),n&&Rf(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);!function(t,e,r){(e=If(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Ff,"defaultProps",{files:[],directories:[],currentDirectory:null,fileLabels:{},selectionMode:!1,selectedFileIds:[],selectedFiles:[],onDirectoryClick:function(t){},onFileClick:function(t){},onDirectoryDelete:function(t){},onDirectoryRename:function(t,e){},onDirectoryMove:function(t,e){},onFileDelete:function(t){},onFileRename:function(t){},onFileMove:function(t,e){},onFileOpen:function(t){},onSelectionChange:function(t,e){},onSelectionDelete:function(t,e){},onSelectionMove:function(t,e){}});const Af=Ff;var Bf=r(195),Uf={insert:"head",singleton:!1};wt()(Bf.Z,Uf);Bf.Z.locals;function Mf(t){return Mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(t)}function zf(t,e){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:function(){},n=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:function(){};Jf++,Zf.push([Jf,t,e,r]),_i.trigger("media.upload.queued",{id:Jf,size:t.size,filename:t.name}),Hf||this.process()},process:function(){var t=this;if(Zf.length){Hf=!0;var e=Zf[0];this.processChunkUpload(e[1],e[2],(function(t){_i.trigger("media.upload.start",{id:e[0],size:e[1].size,filename:t})}),(function(t){_i.trigger("media.upload.progress",{id:e[0],progress:t})}),(function(r){Hf=!1,Zf.shift(),t.process(),_i.trigger("media.upload.success",{id:e[0],file:r}),e[3](r)}),(function(){_i.trigger("media.upload.fail",{id:e[0]}),Hf=!1,Zf.shift(),t.process()}))}},isDone:function(){return 0===Zf.length},processChunkUpload:function(t,e,r,n,o,i){var a,c,u,s=524288,l=Math.ceil(t.size/s),f=0,p=t.name;!function d(){(c=f*s)>t.size&&(c=u+1),u=c+s>=t.size?t.size:c+s;var h=0===f?"start":f===l?"end":"progress";"start"===h&&r(p),wo.media.uploadChunk(h,p,a||null,t.slice(c,u),e).then((function(t){var e=t.data;("created"===e.status&&(a=e.path),++f<=l)?(n(f/l*100),d()):o(e.data)}),(function(t){i()}))}()}};function Xf(t){var e=function(e){Qf.queueMultiple(e,t.directory,(function(e){t.onFileUploaded(e),Qf.isDone()&&t.onUploadDone()}))};return(0,St.jsxs)("div",{className:"file-uploader",children:[(0,St.jsx)("div",{className:"file-uploader__input",children:(0,St.jsx)("input",{type:"file",name:"file-uploader",multiple:!0,onChange:function(t){e(t.target.files)}.bind(this)})}),(0,St.jsx)("div",{className:"file-uploader__placeholder",children:(0,St.jsx)(ju,{children:mt.get("snippets.select_files_from_computer")})})]})}Xf.defaultProps={directory:null,onUploadDone:function(){},onFileUploaded:function(t){}};const tp=Xf;function ep(t){return ep="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ep(t)}function rp(t,e){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:null;t.isFile?t.file((function(t){".DS_Store"!==t.name&&e.upload(t,r)})):t.isDirectory&&wo.media.createDirectory(t.name,r).then((function(r){var n=r.data.data;e.props.onCreateDirectory(n),t.createReader().readEntries((function(t){for(var r=0;r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Dp(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Ip(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Dp(i,n,o,a,c,"next",t)}function c(t){Dp(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Fp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ap(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==n[0]?n[0]:null,t.next=3,so.all([wo.media.path(e),wo.media.loadDirectories(e),wo.media.loadFiles(e)]).then(so.spread((function(t,e,n){var a=t.data.data,c=e.data.data,u=n.data.data,s=a[a.length-1];i({type:"media/init",payload:{directory:s,path:a,directories:c,files:u}}),o(Ap(Ap({},r),{},{isLoading:!1}))})));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),d=function(e,n){o(Ap(Ap({},r),{},{selectedFileIds:e,selectedFiles:n})),t.onSelectionChange(e,n)},h=function(){t.onSelectionConfirm(r.selectedFileIds,r.selectedFiles)},m=function(t){var e=r.selectedFileIds.filter((function(e){return e!==t})),n=r.selectedFiles.filter((function(e){return e.id!==t}));o(Ap(Ap({},r),{},{selectedFileIds:e,selectedFiles:n}))},b=function(){t.onCancel()},v=function(t){p(t)},g=function(){vt.i18nNotify("snippets.files_uploaded")},w=function(t){!function(t){o(Ap(Ap({},r),{},{selectedFileIds:[].concat(Np(r.selectedFileIds),[t.id]),selectedFiles:[].concat(Np(r.selectedFiles),[t])}))}(t),i({type:"media/files/add",payload:t})},j=function(){var t=Ip(Lp().mark((function t(e){var r,n;return Lp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.createDirectory(e,n?n.id:null);case 4:r=t.sent,n=r.data.data,vt.i18nNotify("snippets.directory_created"),i({type:"media/directories/add",payload:n}),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e){return t.apply(this,arguments)}}(),O=function(){var t=Ip(Lp().mark((function t(e,r){var n,o;return Lp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.renameFile(e,r);case 4:n=t.sent,o=n.data.data,i({type:"media/files/rename",payload:o}),vt.i18nNotify("snippets.file_renamed"),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,r){return t.apply(this,arguments)}}(),_=function(){var t=Ip(Lp().mark((function t(e,r){var n,o;return Lp().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.renameDirectory(e,r);case 4:n=t.sent,o=n.data.data,i({type:"media/directories/rename",payload:o}),vt.i18nNotify("snippets.directory_renamed"),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,r){return t.apply(this,arguments)}}(),x=function(t,e){wo.media.moveFiles(t,e).then((function(t){vt.i18nNotify("snippets.files_moved"),p(s?s.id:null)}),(function(t){vt.i18nNotify("snippets.file_not_moved")}))},P=function(t,e){wo.media.moveFile(t,e).then((function(t){vt.i18nNotify("snippets.file_moved"),p(s?s.id:null)}),(function(t){vt.i18nNotify("snippets.file_not_moved")}))},k=function(){vt.prompt({title:mt.get("snippets.new_directory"),confirmButtonText:mt.get("snippets.confirm"),cancelButtonText:mt.get("snippets.cancel"),confirm:function(t){return j(t)}})},E=function(){var t=[[mt.get("snippets.deselect"),"deselect"],[mt.get("snippets.jump_to_folder"),"jump_to"]];return r.selectedFiles.length?(0,St.jsxs)("div",{className:"file-picker-widget__selection",children:[(0,St.jsxs)("div",{className:"file-picker-widget__selection-header",children:[mt.get("snippets.your_selection")," (",r.selectedFiles.length,")"]}),r.selectedFiles.map((function(e,r){return(0,St.jsx)("div",{className:"file-picker-widget__file",children:(0,St.jsx)(qt,{links:t,onClick:function(t){return function(t,e){"jump_to"===t?p(e.directory?e.directory.id:null):"deselect"===t&&m(e.id)}(t,e)},children:(0,St.jsx)(wf,{file:e,viewMode:"minimal",actions:[(0,St.jsx)(Io,{name:"delete",style:"transparent",onClick:function(t){return m(e.id)}},"delete")]})})},r)}))]}):(0,St.jsx)(ju,{icon:"checklist",children:mt.get("snippets.your_selection_is_empty")})};return(0,St.jsx)(Vo,{style:["modal","wide"],closeable:!0,onClose:b,title:[(0,St.jsx)(il,{style:["primary","small"],openIcon:"folder",closeIcon:"folder",children:(0,St.jsx)(Fl,{selectedDirectory:s?s.id:null,onDirectoryClick:function(t){return v(t)}})},"path"),(0,St.jsx)(Yf,{items:u,onClick:function(t){t?v(t.id):v()}},"breadcrumbs")],actions:[(0,St.jsx)(Cp,{},"view-switcher"),(0,St.jsx)(nr,{text:mt.get("snippets.new_directory"),style:["secondary","small"],onClick:k},"new-dir"),(0,St.jsx)(il,{text:mt.get("snippets.upload"),style:["primary","small"],children:(0,St.jsx)(tp,{directory:s?s.id:null,onFileUploaded:w,onUploadDone:g})},"upload")],footer:[(0,St.jsx)(nr,{text:mt.get("snippets.cancel"),style:["secondary"],onClick:b},"cancel"),(0,St.jsx)(nr,{text:t.selectionMode?mt.get("snippets.confirm_selection"):mt.get("snippets.select_file"),style:r.selectedFileIds.length?[]:["disabled"],onClick:r.selectedFileIds.length?h:null},"confirm")],children:r.isLoading?null:(0,St.jsx)(cp,{sidebar:E(),children:(0,St.jsx)(vp,{directory:s?s.id:null,onCreateDirectory:j,onUploadDone:g,children:(0,St.jsx)(Af,{fileLabels:t.fileLabels,currentDirectory:s,selectionMode:t.selectionMode,selectedFiles:r.selectedFiles,selectedFileIds:r.selectedFileIds,directories:l,files:f,onDirectoryRename:_,onFileRename:O,onFileMove:P,onDirectoryClick:function(t){return v(t)},onSelectionChange:d,onSelectionMove:x})})})})}Gp.defaultProps={multiple:!1,onSelectionChange:function(t,e){},onSelectionConfirm:function(t,e){},onCancel:function(){},defaultDirectoryId:null,defaultSelectedFileIds:[],defaultSelectedFiles:[],selectionMode:!1,fileLabels:{}};const Vp=Gp;function qp(t){return qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qp(t)}function Wp(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=this.state.addedBlocks.length-1)){var e=this.syncBlocksData(),r=t+1,n=[e[r],e[t]];e[t]=n[0],e[r]=n[1],this.setState({addedBlocks:e}),vt.notify(mt.get("snippets.order_changed"))}}},{key:"removeBlock",value:function(t,e){var r=this;vt.confirm({title:mt.get("snippets.delete_singular_title",{singular:this.props.singular}),text:mt.get("snippets.delete_singular_text",{singular:this.props.singular}),confirm:function(){var n=r.state.blocksToRemoveById,o=r.state.blocksToRemoveByOrder,i=r.syncBlocksData();i.splice(t,1),e?n.push(e):o.push(t),r.setState({addedBlocks:i,blocksToRemoveById:n,blocksToRemoveByOrder:o}),vt.notify(mt.get("snippets.singular_deleted",{singular:r.props.singular}))}})}},{key:"addBlock",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.getBlockDefinition(t),n=this.state.addedBlocks,o={id:null,name:r.name,type:r.type,components:r.components,data:{}};null!==e?(n.splice(e,0,o),vt.notify(mt.get("snippets.singular_inserted",{singular:this.props.singular}))):(n.push(o),vt.notify(mt.get("snippets.singular_added",{singular:this.props.singular}))),this.setState({addedBlocks:n})}},{key:"renderAddBlockDropdown",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=Object.getOwnPropertyNames(this.props.blocks);return n.length?1===n.length?t?(0,St.jsx)(nr,{onClick:function(t){return e.addBlock(n[0],r)},icon:"add",style:["small","secondary"],text:t}):(0,St.jsx)(Io,{name:"post_add",iconStyle:"small",onClick:function(t){return e.addBlock(n[0],r)}}):(0,St.jsx)(il,{style:["secondary"],autoClose:!0,text:t,openIcon:"post_add",closeIcon:"post_add",children:(0,St.jsx)(It,{stopPropagation:!1,links:this.getTypeLinks(),onClick:function(t){return e.addBlock(t,r)}})},r):null}},{key:"optionDropdownClick",value:function(t,e,r){"delete"===t&&this.removeBlock(e,r)}},{key:"getTypeLinks",value:function(){var t=this;return Object.getOwnPropertyNames(this.props.blocks).map((function(e){return[t.props.blocks[e].name,e]}))}},{key:"getTypeLinksInsertBelow",value:function(){var t=this;return Object.getOwnPropertyNames(this.props.blocks).map((function(e){return[mt.get("snippets.insert_singular_below",{singular:t.props.blocks[e].name}),e]}))}},{key:"renderContentBlocks",value:function(){var t=this;return this.componentLists=[],this.state.addedBlocks.length?this.state.addedBlocks.map((function(e,r){if(!e)return null;var n=rb.renderComponentsWith(e.components,e.data,t.props.path,(function(t,e){return(0,St.jsx)("div",{className:"content-blocks__component",children:t},e)}),!0);return t.componentLists.push([n,e.id,e.type]),(0,St.jsx)("div",{className:"content-blocks__item",children:(0,St.jsx)(hd,{title:e.name,actions:[(0,St.jsx)(Io,{style:["transparent",r>0?"enabled":"disabled"],iconStyle:"mini",name:"arrow_upward",onClick:function(e){return t.sortUp(r)}},0),(0,St.jsx)(Io,{style:["transparent",rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Fd(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function Ad(t,e){for(var r=0;re?1:e>t?-1:0})),e.setState({tags:r,isLoading:!1})}));case 1:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"onCancel",value:function(){this.props.onCancel()}},{key:"onConfirm",value:function(){this.props.onConfirm(this.state.selectedTags)}},{key:"onTagClick",value:function(t){this.setState({selectedTags:[].concat(Ld(this.state.selectedTags),[t])})}},{key:"onSelectedTagClick",value:function(t){var e=this.state.selectedTags.filter((function(e){return e!==t}));this.setState({selectedTags:e})}},{key:"renderContent",value:function(){return this.state.isLoading?null:this.state.tags.length?(this.state.selectedTags.length&&(t=(0,St.jsxs)("div",{className:"tags-browser__selected",children:[(0,St.jsx)("div",{className:"tags-browser__title",children:mt.get("snippets.selected_tags")}),(0,St.jsx)(Td,{tags:this.state.selectedTags,onClick:this.onSelectedTagClick.bind(this)})]})),this.state.tags.length&&(e=(0,St.jsxs)("div",{className:"tags-browser__available",children:[(0,St.jsx)("div",{className:"tags-browser__title",children:mt.get("snippets.available_tags")}),(0,St.jsx)(Td,{tags:this.state.tags,onClick:this.onTagClick.bind(this)})]})),(0,St.jsxs)("div",{className:"tags-browser__tags",children:[t,e]})):(0,St.jsx)(ju,{children:mt.get("snippets.no_tags_available")});var t,e}},{key:"render",value:function(){return(0,St.jsx)(Vo,{style:"modal",title:mt.get("snippets.tags"),closeable:!0,onClose:this.onCancel.bind(this),footer:[(0,St.jsx)(nr,{text:mt.get("snippets.cancel"),style:["secondary"],onClick:this.onCancel.bind(this)},0),(0,St.jsx)(nr,{text:mt.get("snippets.confirm"),onClick:this.onConfirm.bind(this)},1)],children:(0,St.jsx)("div",{className:"tags-browser",children:(0,St.jsx)("div",{className:"tags-browser__content",children:this.renderContent()})})})}}],r&&Ad(e.prototype,r),n&&Ad(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=zd(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Gd,"defaultProps",{id:0,path:{},selectedTags:[],onCancel:function(){},onConfirm:function(t){}});const Vd=Gd;function qd(t){return qd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qd(t)}function Wd(t){return function(t){if(Array.isArray(t))return Yd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Yd(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yd(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yd(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:function(){};clearTimeout(this.searchTimeout),t&&this.setState({autosuggestIsOpen:!1,tags:[].concat(Wd(this.state.tags),[t])},e)}},{key:"removeLastTag",value:function(){this.setState({tags:this.state.tags.slice(0,-1)})}},{key:"autosuggest",value:function(t){var e=this;t.length>1&&wo.execute.get(this.props.path,this.props.id,"autosuggest",{search:t}).then((function(t){e.setState({autosuggestIsOpen:!0,autosuggest:t.data})}))}},{key:"openBrowser",value:function(){this.setState({browserIsOpen:!0})}},{key:"closeBrowser",value:function(){this.setState({browserIsOpen:!1})}},{key:"confirmBrowser",value:function(t){this.setState({tags:t,browserIsOpen:!1})}},{key:"render",value:function(){var t,e,r=this;return this.state.autosuggestIsOpen&&this.state.autosuggest.length&&(e=(0,St.jsx)("div",{className:"tags-field__autosuggest",children:this.state.autosuggest.map((function(t,e){return(0,St.jsx)("div",{className:"tags-field__autosuggestion",onClick:function(e){return r.handleSuggestionClick(t)},children:t},e)}))})),this.state.browserIsOpen&&(t=(0,St.jsx)(ko,{children:(0,St.jsx)(Vd,{id:this.props.id,path:this.props.path,selectedTags:this.state.tags,onCancel:this.closeBrowser.bind(this),onConfirm:function(t){return r.confirmBrowser(t)}})})),(0,St.jsx)(xe,{name:this.props.name,required:this.props.showRequiredIndicator,label:this.props.label,errors:this.props.errors,tooltip:this.props.tooltip,children:(0,St.jsx)("div",{className:"tags-field",children:(0,St.jsxs)("div",{className:"tags-field__wrap",children:[(0,St.jsx)("div",{className:"tags-field__browse",children:(0,St.jsx)(Io,{style:"transparent",name:"fact_check",onClick:this.openBrowser.bind(this)})}),(0,St.jsx)("div",{className:"tags-field__tags",children:(0,St.jsx)(Td,{tags:this.state.tags})}),(0,St.jsx)("div",{className:"tags-field__input",children:(0,St.jsx)("input",{className:"tags-field__input-field",ref:this.inputRef,onChange:this.handleChange.bind(this),onKeyUp:this.handleKeyUp.bind(this),onKeyDown:this.handleKeyDown.bind(this),onBlur:this.handleBlur.bind(this)})}),e,t]})})})}}],r&&$d(e.prototype,r),o&&$d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);function Xd(t){return Xd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xd(t)}function th(t,e){for(var r=0;r1&&(t=(0,St.jsx)(Io,{name:"arrow_left",onClick:function(t){return r.changePage(r.props.currentPage-1)}})),this.props.currentPaget.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};this.state.searchKeyword&&(e.search=this.state.searchKeyword),wo.execute.get(this.props.path,this.props.id,"load",e).then((function(e){var r=e.data.data;t.setState({isLoading:!1,items:r,meta:e.data.meta||null})}))}},{key:"search",value:function(t){var e=this;this.setState({isLoading:!0,searchKeyword:t},(function(){e.load()}))}},{key:"onSelectionChange",value:function(t,e){this.setState({selectedItemIds:t,selectedItems:e}),this.props.onSelectionChange(t,e)}},{key:"onSelectionConfirm",value:function(){this.props.onSelectionConfirm(this.state.selectedItemIds,this.state.selectedItems)}},{key:"onCancel",value:function(){this.props.onCancel()}},{key:"deselect",value:function(t){var e=this,r=this.state.selectedItemIds.filter((function(e){return e!==t.id})),n=this.state.selectedItems.filter((function(e){return e.id!==t.id}));this.setState({selectedItemIds:r,selectedItems:n},(function(){e.props.onSelectionChange(e.state.selectedItemIds,e.state.selectedItems)}))}},{key:"select",value:function(t){var e=this;this.setState({selectedItemIds:[].concat(Nh(this.state.selectedItemIds),[t.id]),selectedItems:[].concat(Nh(this.state.selectedItems),[t])},(function(){e.props.onSelectionChange(e.state.selectedItemIds,e.state.selectedItems)}))}},{key:"toggleItemSelection",value:function(t){this.isItemSelected(t)?this.deselect(t):this.select(t)}},{key:"isItemSelected",value:function(t){return this.state.selectedItemIds.includes(t.id)}},{key:"changePage",value:function(t){this.load({page:t})}},{key:"renderSidebar",value:function(){var t=this;return this.state.selectedItems.length?(0,St.jsxs)("div",{className:"item-picker-widget__selection",children:[(0,St.jsxs)("div",{className:"item-picker-widget__selection-header",children:["Your selection (",this.state.selectedItems.length,")"]}),this.state.selectedItems.map((function(e,r){return(0,St.jsx)(Oh,{item:e,titleColumn:t.props.titleColumn,actions:[(0,St.jsx)(Io,{name:"delete",style:"transparent",onClick:function(r){return t.deselect(e)}},"delete")]},r)}))]}):(0,St.jsxs)("div",{className:"item-picker-widget__selection",children:[(0,St.jsxs)("div",{className:"item-picker-widget__selection-header",children:[mt.get("snippets.your_selection")," (",this.state.selectedItems.length,")"]}),(0,St.jsx)(ju,{icon:"checklist",children:mt.get("snippets.your_selection_is_empty")})]})}},{key:"renderPlaceholder",value:function(){return this.state.searchKeyword?(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found_for_search",{plural:this.props.plural,search:this.state.searchKeyword})}):(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found",{plural:this.props.plural})})}},{key:"renderPagination",value:function(){return this.state.meta&&this.state.meta.total?(0,St.jsx)(Rh,{currentPage:this.state.meta.current_page,lastPage:this.state.meta.last_page,perPage:this.state.meta.per_page,total:this.state.meta.total,from:this.state.meta.from,to:this.state.meta.to,onPageChange:this.changePage.bind(this)},"pagination"):null}},{key:"renderRows",value:function(){var t=this;if(!this.state.isLoading)return this.state.items.map((function(e,r){return(0,St.jsx)("div",{className:"item-picker-widget__row",children:(0,St.jsx)(Oh,{path:t.props.path,item:e,titleColumn:t.props.titleColumn,grid:t.props.grid,components:t.props.components,isSelected:t.isItemSelected(e),selectionMode:!0,onClick:function(r){return t.toggleItemSelection(e)}})},r)}))}},{key:"render",value:function(){var t=this;return(0,St.jsx)(Vo,{style:["modal","wide"],title:bt.toUpperCaseFirst(this.props.plural),closeable:!0,onClose:this.onCancel.bind(this),actions:[this.props.search?(0,St.jsx)(Ji,{onSearch:function(e){return t.search(e)}},"search"):null],footer:[(0,St.jsxs)("div",{className:"item-picker-widget__footer",children:[(0,St.jsx)("div",{className:"item-picker-widget__footer-pagination",children:this.renderPagination()}),(0,St.jsxs)("div",{className:"item-picker-widget__footer-actions",children:[(0,St.jsx)(nr,{text:mt.get("snippets.cancel"),style:["secondary"],onClick:this.onCancel.bind(this)},"cancel"),(0,St.jsx)(nr,{text:this.props.selectionMode?mt.get("snippets.confirm_selection"):mt.get("snippets.select_singular",{singular:this.props.singular}),style:this.state.selectedItemIds.length?[]:["disabled"],onClick:this.state.selectedItemIds.length?this.onSelectionConfirm.bind(this):null},"confirm")]})]})],children:(0,St.jsx)(cp,{sidebar:this.renderSidebar(),children:this.state.items.length?this.renderRows():this.renderPlaceholder()})})}}],r&&Dh(e.prototype,r),n&&Dh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(n.Component);!function(t,e,r){(e=Bh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Uh,"defaultProps",{id:0,path:{},titleColumn:"",grid:[],components:[],defaultSelectedItemIds:[],defaultSelectedItems:[],search:!1,onSelectionChange:function(t,e){},onSelectionConfirm:function(t,e){},onCancel:function(){}});const Mh=Uh;function zh(t){return zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zh(t)}function Gh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Vh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vh(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:null;wo.execute.get(this.props.path,this.props.id,"load",this.props.path.params).then((function(r){var n=r.data.data,o={};n.forEach((function(e){return o[e.id]=e[t.props.titleColumn]})),t.setState({items:n,options:o},(function(){e&&e()}))}))}},{key:"getData",value:function(t){return t[this.props.name]=this.state.selectedItems||[],t}},{key:"handleSubmit",value:function(t){t[this.props.name]=this.state.selectedItemsIds||[]}},{key:"handleChange",value:function(t){this.setState({selectedItemsIds:t,selectedItems:this.state.items.filter((function(e){return t.includes("".concat(e.id))}))})}},{key:"open",value:function(){this.setState({isOpen:!0})}},{key:"close",value:function(){this.setState({isOpen:!1})}},{key:"create",value:function(t){var e=this;wo.execute.post(this.props.path,this.props.id,"create",t).then((function(t){e.createFormRef.current.ready(),e.load((function(){e.setState({isOpen:!1,selectedItemsIds:[].concat(Qh(e.state.selectedItemsIds),[t.data.data.id])})})),vt.notify(mt.get("snippets.singular_created_selected",{singular:e.props.singular}))}),(function(t){var r=t.response;e.createFormRef.current.ready(),e.setState({createFormErrors:r.data.errors}),vt.notify(r.data.message)}))}},{key:"renderSidebarComponents",value:function(){return rb.renderComponents(this.props.sidebarComponents,{},this.props.path)}},{key:"renderCreateComponents",value:function(){return rb.renderComponents(this.props.createComponents,{},this.props.path)}},{key:"renderCreateWidget",value:function(){return this.state.isOpen?(0,St.jsx)(ko,{children:(0,St.jsx)(Vo,{title:mt.get("snippets.new_singular",{singular:this.props.singular}),style:"modal",closeable:!0,onClose:this.close.bind(this),children:(0,St.jsx)(ti,{ref:this.createFormRef,errors:this.state.createFormErrors,realForm:!1,onSubmit:this.create.bind(this),submitButtonText:mt.get("snippets.create_singular",{singular:this.props.singular}),sidebar:this.renderSidebarComponents(),children:this.renderCreateComponents()})})}):null}},{key:"renderCreate",value:function(){return this.props.create?(0,St.jsx)("div",{className:"many-to-many-select-field__btn",children:(0,St.jsx)(nr,{icon:"add",style:["full","small","secondary"],text:mt.get("snippets.new_singular",{singular:this.props.singular}),onClick:this.open.bind(this)})}):null}},{key:"render",value:function(){var t=this;return(0,St.jsxs)(xe,{name:this.props.name,label:this.props.label,tooltip:this.props.tooltip,errors:this.props.errors,children:[(0,St.jsx)("div",{className:"many-to-many-select-field",children:(0,St.jsx)("div",{className:"many-to-many-select-field__field",children:(0,St.jsx)(ca,{multiple:!0,value:this.state.selectedItemsIds,options:this.state.options,nullText:"– "+mt.get("snippets.no_plural_selected",{plural:this.props.plural})+" –",onChange:function(e){return t.handleChange(e)},children:this.renderCreate()})})}),this.renderCreateWidget()]})}}],r&&ty(e.prototype,r),o&&ty(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=oy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(iy,"defaultProps",{path:{},data:{},label:"",name:"",style:"",singular:"",plural:"",titleColumn:"",tooltip:"",create:!1,createComponents:[],sidebarComponents:[]});const ay=iy;function cy(t){return cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cy(t)}function uy(t){return function(t){if(Array.isArray(t))return sy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return sy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sy(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=this.state.addedItems.length-1)){var e=this.state.addedItems,r=t+1,n=[e[r],e[t]];e[t]=n[0],e[r]=n[1],this.setState({addedItems:e})}}},{key:"removeItem",value:function(t){var e=this.state.addedItems;e.splice(t,1),this.setState({addedItems:e})}},{key:"renderItems",value:function(){var t=this;return this.componentLists=[],this.state.addedItems.length?this.state.addedItems.map((function(e,r){var n=rb.renderComponentsWith(t.props.components,e,t.props.path,(function(t,e){return(0,St.jsx)("div",{className:"json-field__component",children:t},e)}),!0,t.props.errors);return t.componentLists.push(n),(0,St.jsxs)("div",{className:"json-field__item",children:[(0,St.jsx)("div",{className:"json-field__item-content",children:n.map((function(t){return t.component}))}),(0,St.jsxs)("div",{className:"json-field__item-actions",children:[(0,St.jsx)(Io,{style:["transparent",r>0?"enabled":"disabled"],iconStyle:"mini",name:"arrow_upward",onClick:function(e){return t.sortUp(r)}}),(0,St.jsx)(Io,{style:["transparent",rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:null,e={},r={};this.componentList.forEach((function(t){t.ref.current.getData&&t.ref.current.getData(e),t.ref.current.handleSubmit&&t.ref.current.handleSubmit(r)})),this.setState({isStored:!0,data:e,submitData:r,isOpen:!1},(function(){t&&t()}))}},{key:"renderComponents",value:function(){return this.componentList=rb.renderComponentsWith(this.props.components,this.state.isStored?this.state.data:this.props.data,this.props.path,(function(t,e){return(0,St.jsx)("div",{className:"content-blocks__component",children:t},e)}),!0),this.componentList.map((function(t){return t.component}))}},{key:"renderWidget",value:function(){var t=this;return(0,St.jsx)(ko,{children:(0,St.jsx)(Vo,{title:this.props.title,style:"modal",closeable:!0,onClose:this.close.bind(this),footer:[(0,St.jsx)(nr,{text:"Confirm",onClick:function(){t.store()}},"confirm")],children:this.renderComponents()})})}},{key:"render",value:function(){return(0,St.jsxs)(n.Fragment,{children:[(0,St.jsx)(xe,{label:this.props.label,tooltip:this.props.tooltip,children:"link"===this.props.style?(0,St.jsx)(fr,{style:this.props.style,onClick:this.open.bind(this),text:this.props.title}):(0,St.jsx)(nr,{style:["small","secondary"],text:this.props.title,onClick:this.open.bind(this)})}),(0,St.jsx)("div",{style:{display:this.state.isOpen?"block":"none"},children:this.renderWidget()})]})}}],r&&km(e.prototype,r),o&&km(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=Tm(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(Nm,"defaultProps",{title:"",label:"",components:[],path:{},data:{},errors:{},style:null});const Lm=Nm;function Dm(t){return Dm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dm(t)}function Im(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return t.map((function(t,c){var u=null;i&&(u=n.createRef());var s=Jm[t.type];return{component:o((0,St.jsx)(s,tb(tb({},t),{},{data:e,errors:a,path:r,ref:u})),c),ref:u}}))}};function nb(t){return nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nb(t)}function ob(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=e.map((function(e){return t.props.options[e]}));this.setState({humanReadableValue:r.length?r.join(", "):"All"}),this.props.onChange(this.props.id,e.join(","))}},{key:"clear",value:function(){this.selectListRef.current.clear()}},{key:"onCtxMenuClick",value:function(t){"clear"===t&&this.clear()}},{key:"render",value:function(){var t=this.props.label?this.props.label:bt.toUpperCaseFirst(this.props.field);return(0,St.jsx)("div",{className:"enum-filter",children:(0,St.jsx)(qt,{onClick:this.onCtxMenuClick.bind(this),links:[["Clear this filter","clear"]],children:(0,St.jsx)(il,{stopPropagation:!1,style:["secondary"],label:t,text:this.state.humanReadableValue,children:(0,St.jsx)(Vi,{options:this.props.options,onChange:this.handleChange.bind(this),onClear:this.handleChange.bind(this),ref:this.selectListRef})})})})}}],r&&ob(e.prototype,r),o&&ob(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=ub(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(sb,"defaultProps",{id:0,type:"",options:{},field:"",label:"",onChange:function(){}});const lb=sb;function fb(t){return fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fb(t)}function pb(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=e.map((function(e){return t.state.options[e]}));this.setState({humanReadableValue:r.length?r.join(", "):"All"}),this.props.onChange(this.props.id,e.join(","))}},{key:"clear",value:function(){this.selectListRef.current.clear()}},{key:"onCtxMenuClick",value:function(t){"clear"===t&&this.clear()}},{key:"render",value:function(){var t=this.props.label?this.props.label:bt.toUpperCaseFirst(this.props.field);return(0,St.jsx)("div",{className:"enum-filter",children:(0,St.jsx)(qt,{onClick:this.onCtxMenuClick.bind(this),links:[["Clear this filter","clear"]],children:(0,St.jsx)(il,{stopPropagation:!1,style:["secondary"],label:t,text:this.state.humanReadableValue,children:(0,St.jsx)(Vi,{options:this.state.options,onChange:this.handleChange.bind(this),onClear:this.handleChange.bind(this),ref:this.selectListRef})})})})}}],r&&pb(e.prototype,r),o&&pb(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=mb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(bb,"defaultProps",{id:0,type:"",field:"",label:"",titleColumn:"",onChange:function(){}});const vb=bb;function gb(t){return gb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gb(t)}function wb(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[],r=e.map((function(e){return t.state.options[e]}));this.setState({humanReadableValue:r.length?r.join(", "):mt.get("snippets.tags_all")}),this.props.onChange(this.props.id,e.join(","))}},{key:"clear",value:function(){this.selectListRef.current.clear()}},{key:"onCtxMenuClick",value:function(t){"clear"===t&&this.clear()}},{key:"render",value:function(){var t=this.props.label?this.props.label:mt.get("snippets.tag");return(0,St.jsx)("div",{className:"enum-filter",children:(0,St.jsx)(qt,{onClick:this.onCtxMenuClick.bind(this),links:[["Clear this filter","clear"]],children:(0,St.jsx)(il,{stopPropagation:!1,style:["secondary"],label:t,text:this.state.humanReadableValue,children:(0,St.jsx)(Vi,{options:this.state.options,onChange:this.handleChange.bind(this),onClear:this.handleChange.bind(this),ref:this.selectListRef})})})})}}],r&&wb(e.prototype,r),o&&wb(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(n.Component);!function(t,e,r){(e=Sb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(xb,"defaultProps",{id:0,type:"",label:"",onChange:function(){}});const Pb=xb;function kb(t){return kb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kb(t)}function Eb(t,e){for(var r=0;r5&&void 0!==arguments[5]&&arguments[5];return t.map((function(t,c){var u=a?n.createRef():null,s=Db[t.type];return{filter:o((0,St.jsx)(s,Ab(Ab({},t),{},{data:e,path:r,onChange:i,ref:u})),c),ref:u}}))}};function Mb(t){return Mb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mb(t)}function zb(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Gb(){Gb=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new x(o||[]);return n(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function d(){}function h(){}var y={};u(y,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==e&&r.call(b,i)&&(y=b);var v=h.prototype=p.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==Mb(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Vb(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function qb(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==u[0]?u[0]:{},t.restrictByFk&&(n.foreign=t.data.id),t.relationship&&(n.relation=t.data.id),r.searchKeyword&&(n.search=r.searchKeyword),a)a.hasOwnProperty(i)&&(n["filter_"+i]=a[i]);return e.next=7,wo.execute.get(t.path,t.id,"load",n);case 7:c=e.sent,o(qb(qb({},r),{},{isLoading:!1,rows:c.data.data,meta:c.data.meta||null}));case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h=function(){return r.rows.length?(0,St.jsx)("div",{className:"index__rows",children:r.rows.map((function(e){var r,n=t.components.map((function(r,n){return(0,St.jsx)("div",{className:"index__component",children:rb.renderComponent(r,e,t.path)},n)}));return(0,St.jsx)("div",{className:"index__row"+(t.action?" index__row--clickable":""),style:(r={gridTemplateColumns:"repeat("+t.components.length+", 1fr)"},t.grid.length&&(r.gridTemplateColumns=t.grid.join("fr ")+"fr"),r),onClick:t.action?function(){return function(e){ce.goTo(t.path.module,t.action,{id:e.id})}(e)}:null,children:n},e.id)}))}):r.searchKeyword?(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found_for_search",{plural:t.plural,search:r.searchKeyword})}):(0,St.jsx)("div",{className:"index__placeholder",children:mt.get("snippets.no_plural_found",{plural:t.plural})})},m=function(t){d({page:t})},b=function(t,e){if(e)return c(qb(qb({},a),{},Wb({},t,e))),void o(qb(qb({},r),{},{hasActiveFilters:!0}));a[t];var n=zb(a,[t].map(Yb));c(n),o(qb(qb({},r),{},{hasActiveFilters:0!==Object.keys(n).length}))},v=function(){f.forEach((function(t){return t.ref.current.clear()})),c({}),o(qb(qb({},r),{},{hasActiveFilters:!1}))},g=function(t){o(qb(qb({},r),{},{searchKeyword:t}))},w=function(e){"refresh"===e?(d(),vt.i18nNotify("snippets.reloaded_plural",{plural:t.plural})):"clearFilters"===e&&v()};return(0,St.jsx)(qt,{onClick:w,links:[["Reload "+t.plural,"refresh"],r.hasActiveFilters?["Clear filters","clearFilters"]:null],children:(0,St.jsxs)("div",{className:"index index--"+t.style+(r.isLoading?" index--loading":""),children:[(p=t.search?(0,St.jsx)("div",{className:"index__header-search",children:(0,St.jsx)(Ji,{onSearch:function(t){return g(t)}})}):null,(0,St.jsxs)("div",{className:"index__header",children:[(0,St.jsxs)("div",{className:"index__header-title",children:[bt.toUpperCaseFirst(t.plural)," ",r.meta?"("+r.meta.total+")":null]}),(0,St.jsxs)("div",{className:"index__header-options",children:[p,t.filters.length?(0,St.jsxs)("div",{className:"index__header-filters-tool",children:[(f=Ub.renderFiltersWith(t.filters,{},t.path,(function(t,e){return(0,St.jsx)("div",{className:"index__header-filter",children:t},e)}),b,!0)).map((function(t){return t.filter})),(0,St.jsx)("div",{className:"index__header-clear-filters",children:(0,St.jsx)(fr,{stopPropagation:!1,onClick:r.hasActiveFilters?v:null,text:mt.get("snippets.clear_filters"),style:r.hasActiveFilters?"":"disabled"})})]}):null]})]})),h(),r.meta&&r.meta.total?(0,St.jsx)("div",{className:"index__footer",children:(0,St.jsx)(Rh,{currentPage:r.meta.current_page,lastPage:r.meta.last_page,perPage:r.meta.per_page,total:r.meta.total,from:r.meta.from,to:r.meta.to,onPageChange:m})}):null]})})}Zb.defaultProps={type:"",components:[],path:{},id:0,data:{},params:null,search:!1,relationship:!1,filters:[],sorter:null,restrictByFk:null,action:"",style:"default",plural:"",singular:""};const Jb=Zb;function Qb(t){return Qb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qb(t)}function Xb(t,e){for(var r=0;r0?(0,St.jsx)("div",{className:"wizard__footer-component",children:(0,St.jsx)(fr,{onClick:this.goToPrev.bind(this),text:"Previous"})},1):null,(0,St.jsx)("div",{className:"wizard__footer-component",children:(0,St.jsx)(nr,{style:"large",onClick:this.goToNext.bind(this),text:this.isLastStep()?mt.get("snippets.create"):mt.get("snippets.next")})},2)]}},{key:"renderWizardContent",value:function(){var t=this;return this.props.steps.map((function(e,r){return(0,St.jsx)("div",{className:"wizard__step-content",style:{display:r===t.state.currentStepIndex?"block":"none"},children:t.componentLists[r].map((function(t){return t.component}))},r)}))}},{key:"isLastStep",value:function(){return this.state.currentStepIndex===this.props.steps.length-1}},{key:"goTo",value:function(t){(t=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Eg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cg(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==n[0]?n[0]:null,t.next=3,so.all([wo.media.path(e),wo.media.loadDirectories(e),wo.media.loadFiles(e)]).then(so.spread((function(t,e,n){var i=t.data.data,a=e.data.data,c=n.data.data,u=i[i.length-1];p({type:"media/init",payload:{directory:u,path:i,directories:a,files:c}}),o(Cg(Cg({},r),{},{isLoading:!1,currentFile:null,selectedFiles:[],selectedFileIds:[]}))})));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),h=function(){i.current.params.directory?d(i.current.params.directory):d()},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t?ce.goTo(i.current.module,i.current.action,{directory:t}):ce.goTo(i.current.module,i.current.action)},b=function(){o(Cg(Cg({},r),{},{currentFile:null,selectedFiles:[],selectedFileIds:[]}))},v=function(t,e){e.length?1===e.length?o(Cg(Cg({},r),{},{currentFile:e[0],selectedFiles:e,selectedFileIds:t})):o(Cg(Cg({},r),{},{currentFile:null,selectedFiles:e,selectedFileIds:t})):b()},g=function(){var t=Ng(kg().mark((function t(e){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.deleteDirectory(e);case 3:p({type:"media/directories/delete",directoryIds:[e]}),vt.i18nNotify("snippets.directory_deleted"),b(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),vt.i18nNotify("snippets.directory_not_deleted");case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),w=function(){var t=Ng(kg().mark((function t(e,r){var n;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=13;break}return t.prev=1,t.next=4,wo.media.renameDirectory(e,r);case 4:n=t.sent,p({type:"media/directories/rename",payload:n.data.data}),vt.i18nNotify("snippets.directory_renamed"),b(),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,r){return t.apply(this,arguments)}}(),j=function(){var t=Ng(kg().mark((function t(e,r){var n;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=12;break}return t.prev=1,t.next=4,wo.media.renameFile(e,r);case 4:n=t.sent,p({type:"media/files/rename",payload:n.data.data}),vt.i18nNotify("snippets.file_renamed"),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),vt.i18nNotify("snippets.changes_unsuccessful");case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(e,r){return t.apply(this,arguments)}}(),O=function(){var t=Ng(kg().mark((function t(e){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.deleteFile(e);case 3:p({type:"media/files/delete",fileIds:[e]}),vt.i18nNotify("snippets.file_deleted"),b(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),vt.notify(mt.get("snippets.file_not_deleted"));case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),_=function(){var t=Ng(kg().mark((function t(e){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.deleteFiles(e);case 3:p({type:"media/files/delete",fileIds:e}),vt.i18nNotify("snippets.amount_files_deleted",{amount:e.length}),b(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),vt.i18nNotify("snippets.files_not_deleted");case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(e){return t.apply(this,arguments)}}(),x=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.labelFile(e,r);case 3:p({type:"media/files/label",fileId:r,label:e}),vt.i18nNotify("snippets.changes_successful"),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.i18nNotify("snippets.changes_unsuccessful");case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),P=function(){var t=Ng(kg().mark((function t(e,r,n){var o;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!["visibility","description","copyright"].includes(e)){t.next=12;break}return o=wo.media["updateFile"+bt.toUpperCaseFirst(e)],t.prev=2,t.next=5,o(r,n);case 5:p({type:"media/files/changeProperty",fileId:n,property:e,value:r}),vt.notify(mt.get("snippets.changes_successful")),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),vt.notify(mt.get("snippets.changes_unsuccessful"));case 12:case"end":return t.stop()}}),t,null,[[2,9]])})));return function(e,r,n){return t.apply(this,arguments)}}(),k=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.moveDirectory(e,r);case 3:p({type:"media/directories/move",moveToId:e,directoryIds:[r]}),vt.notify(mt.get("snippets.directory_moved")),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.notify(mt.get("snippets.changes_unsuccessful"));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),E=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.moveFile(e,r);case 3:p({type:"media/files/move",moveToId:e,fileIds:[r]}),vt.notify(mt.get("snippets.file_moved")),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.notify(mt.get("snippets.changes_unsuccessful"));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),C=function(){var t=Ng(kg().mark((function t(e,r){return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,wo.media.moveFiles(e,r);case 3:p({type:"media/files/move",moveToId:e,fileIds:r}),vt.notify(mt.get("snippets.files_moved")),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),vt.notify(mt.get("snippets.changes_unsuccessful"));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,r){return t.apply(this,arguments)}}(),R=function(t){window.open(t.url)},T=function(){h()},N=function(t){(!i.current.params.directory&&!t.directory||t.directory&&i.current.params.directory&&t.directory.id===i.current.params.directory)&&h()},L=function(){var t;vt.prompt({title:mt.get("snippets.new_directory_title"),confirmButtonText:mt.get("snippets.create"),cancelButtonText:mt.get("snippets.cancel"),confirm:(t=Ng(kg().mark((function t(e){var r;return kg().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.media.createDirectory(e,i.current.params.directory);case 2:r=t.sent,p({type:"media/directories/add",payload:r.data.data}),vt.notify(mt.get("snippets.directory_created"));case 5:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})})},D=function(t,e){vt.confirm({title:mt.get("snippets.delete_files_title",{amount:t.length}),text:mt.get("snippets.delete_files_text"),confirmButtonText:mt.get("snippets.delete_files_confirm",{amount:t.length}),cancelButtonText:mt.get("snippets.delete_files_cancel"),confirm:function(){return _(t)}})};return(0,St.jsxs)("div",{className:"view-media-directory"+(r.isLoading?" view-media-directory--loading":"")+(r.isDragOver?" view-media-directory--drag-over":""),children:[(0,St.jsxs)("div",{className:"view-media-directory__header",children:[(0,St.jsxs)("div",{className:"view-media-directory__header-title",children:[(0,St.jsx)(il,{style:["primary","small"],openIcon:"folder",closeIcon:"folder",children:(0,St.jsx)(Fl,{selectedDirectory:s?s.id:null,onDirectoryClick:function(t){return m(t)}})}),(0,St.jsx)(Yf,{items:u,onClick:function(t){t?m(t.id):m()}})]}),(0,St.jsxs)("div",{className:"view-media-directory__header-options",children:[(0,St.jsx)(Cp,{}),(0,St.jsx)(nr,{style:["secondary","small"],onClick:L,text:mt.get("snippets.new_directory")}),(0,St.jsx)(il,{text:mt.get("snippets.upload"),style:["primary","small"],autoClose:!0,children:(0,St.jsx)(tp,{directory:s?s.id:null,onUploadDone:T})})]})]}),(0,St.jsx)("div",{className:"view-media-directory__content",children:r.isLoading?null:(0,St.jsxs)(St.Fragment,{children:[(0,St.jsx)("div",{className:"view-media-directory__main",children:(0,St.jsx)(vp,{directory:s?s.id:null,onCreateDirectory:N,onUploadDone:T,children:(0,St.jsx)(Af,{viewMode:c,currentDirectory:s,directories:l,files:f,fileLabels:t.fileLabels,selectedFiles:r.selectedFiles,selectedFileIds:r.selectedFileIds,onDirectoryClick:m,onDirectoryDelete:g,onDirectoryRename:w,onDirectoryMove:k,onFileDelete:O,onFileRename:j,onFileOpen:R,onFileMove:E,onSelectionMove:C,onSelectionChange:v,onSelectionDelete:D})})}),(0,St.jsx)("div",{className:"view-media-directory__side",children:r.currentFile?(0,St.jsx)(fg,{file:r.currentFile,fileLabels:t.fileLabels,onLabelFile:function(t){return x(t,r.currentFile.id)},onChangeFileProperty:function(t,e){return P(t,e,r.currentFile.id)},onDeleteFile:function(){vt.confirm({title:mt.get("snippets.delete_file_title"),text:mt.get("snippets.delete_file_text"),confirmButtonText:mt.get("snippets.delete_file_confirm"),cancelButtonText:mt.get("snippets.delete_file_cancel"),confirm:function(){return O(r.currentFile.id)}})},onRenameFile:function(){vt.prompt({title:mt.get("snippets.rename_file_title"),defaultValue:r.currentFile.name,confirmButtonText:mt.get("snippets.rename_file_confirm"),cancelButtonText:mt.get("snippets.rename_file_cancel"),confirm:function(t){wo.media.renameFile(t,r.currentFile.id).then((function(t){o(Cg(Cg({},r),{},{currentFile:t.data.data}),(function(){vt.notify(mt.get("snippets.file_renamed")),h()}))}))}})},onMoveFile:E}):r.selectedFiles.length?(0,St.jsx)(vg,{files:r.selectedFiles,onDeleteFiles:function(){return D(r.selectedFileIds,r.selectedFiles)},onChangeFilesProperty:function(t,e){return P(t,e,r.selectedFileIds)},onMoveFiles:C}):s?(0,St.jsx)(Og,{directory:s}):(0,St.jsx)(xg,{})})]})})]})}Ig.defaultProps={type:"",path:{},id:0,data:{},fileLabels:{}};const Fg=Ig;function Ag(t){return Ag="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ag(t)}function Bg(t,e){for(var r=0;r>>32-e}function r(t,e){var r,n,o,i,a;return o=2147483648&t,i=2147483648&e,a=(1073741823&t)+(1073741823&e),(r=1073741824&t)&(n=1073741824&e)?2147483648^a^o^i:r|n?1073741824&a?3221225472^a^o^i:1073741824^a^o^i:a^o^i}function n(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return t&e|~t&r}(n,o,i),a),u)),r(e(t,c),n)}function o(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return t&r|e&~r}(n,o,i),a),u)),r(e(t,c),n)}function i(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return t^e^r}(n,o,i),a),u)),r(e(t,c),n)}function a(t,n,o,i,a,c,u){return t=r(t,r(r(function(t,e,r){return e^(t|~r)}(n,o,i),a),u)),r(e(t,c),n)}function c(t){var e,r="",n="";for(e=0;e<=3;e++)r+=(n="0"+(t>>>8*e&255).toString(16)).substr(n.length-2,2);return r}var u,s,l,f,p,d,h,y,m,b=Array();for(b=function(t){for(var e,r=t.length,n=r+8,o=16*((n-n%64)/64+1),i=Array(o-1),a=0,c=0;c>>29,i}(t=function(t){t=t.replace(/rn/g,"n");for(var e="",r=0;r127&&n<2048?(e+=String.fromCharCode(n>>6|192),e+=String.fromCharCode(63&n|128)):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128),e+=String.fromCharCode(63&n|128))}return e}(t)),d=1732584193,h=4023233417,y=2562383102,m=271733878,u=0;u=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fw(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function pw(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fw(i,n,o,a,c,"next",t)}function c(t){fw(i,n,o,a,c,"throw",t)}a(void 0)}))}}function dw(t){var e=S(),r=y((function(t){return t.auth})).user,n=y((function(t){return t.modules.secondary})),o=function(){var t=pw(lw().mark((function t(){return lw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:vt.confirm({title:mt.get("snippets.logout"),confirmButtonText:mt.get("snippets.logout_confirm"),confirm:function(){var t=pw(lw().mark((function t(){return lw().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wo.auth.logout();case 2:e({type:"auth/loggedout"}),vt.notify("User logged out");case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()});case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,St.jsxs)("div",{className:"user-panel",children:[(0,St.jsx)("div",{className:"user-panel__avatar",children:(0,St.jsx)("img",{src:uw.get(r.email),alt:r.name})}),(0,St.jsx)("div",{className:"user-panel__name",children:r.name}),(0,St.jsx)("div",{className:"user-panel__actions",children:(0,St.jsxs)(il,{style:["secondary"],children:[(0,St.jsx)(It,{links:n.map((function(t){return[t.title,t.id]})),onClick:function(t){return e=t,void ce.goTo(e,"index");var e}}),(0,St.jsx)("div",{className:"user-panel__logout",children:(0,St.jsx)(nr,{onClick:o,style:["full","small"],text:mt.get("snippets.logout")})})]})})]})}function hw(){return(0,St.jsxs)("div",{className:"module",children:[(0,St.jsx)("div",{className:"module__header",children:(0,St.jsx)("div",{className:"module__title",children:(0,St.jsx)(ac,{children:"Not found"})})}),(0,St.jsx)("div",{className:"module__main",children:"Are you sure you're trying to access the correct URL? No module or action was found for this request."})]})}function yw(t){return yw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yw(t)}function mw(){mw=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),c=new x(o||[]);return n(a,"_invoke",{value:j(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function d(){}function h(){}var y={};u(y,i,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(P([])));b&&b!==e&&r.call(b,i)&&(y=b);var v=h.prototype=p.prototype=Object.create(y);function g(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var u=l(t[n],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==yw(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,c)}))}c(u.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function j(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=O(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function P(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),u=r.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:P(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function bw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vw(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r{"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=u(t),a=i[0],c=i[1],s=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,c)),l=0,f=c>0?a-4:a;for(r=0;r>16&255,s[l++]=e>>8&255,s[l++]=255&e;2===c&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,s[l++]=255&e);1===c&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e);return s},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,c=0,u=n-o;cu?u:c+a));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=i.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function s(t,e,n){for(var o,i,a=[],c=e;c>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},764:(t,e,r)=>{"use strict";var n=r(742),o=r(241),i=r(826);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return z(t).length;e=(""+e).toLowerCase(),n=!0}}function y(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return P(this,e,r);case"ascii":return E(this,e,r);case"latin1":case"binary":return C(this,e,r);case"base64":return x(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function b(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):v(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var i,a=1,c=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,c/=2,u/=2,r/=2}function s(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;ic&&(r=c-u),i=r;i>=0;i--){for(var f=!0,p=0;po&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function x(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function P(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:s>223?3:s>191?2:1;if(o+f<=r)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=t[o+1],a=t[o+2],c=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return function(t){var e=t.length;if(e<=k)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),c=Math.min(i,a),s=this.slice(n,o),l=t.slice(e,r),f=0;fo)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return g(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return j(this,t,e,r);case"latin1":case"binary":return O(this,t,e,r);case"base64":return _(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function E(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function I(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function F(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A(t,e,r,n,i){return i||F(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,i){return i||F(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||N(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||N(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||N(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||N(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||N(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||N(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||N(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||N(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||N(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||N(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||N(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||N(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||N(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,a=1,c=0;for(this[e]=255&t;++i>0)-c&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,a=1,c=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return A(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return A(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return B(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}},399:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".footer-text{color:var(--fill-color-alt-3);display:block;font-family:Poppins,sans-serif;font-size:.85rem;font-weight:500;letter-spacing:-.02em;line-height:1;text-align:center;width:100%}.footer-text a{text-decoration:underline;transition:color .5s}.footer-text a:hover{color:var(--primary-color);text-decoration:none}",""]);const i=o},451:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.boolean-switcher{background-color:var(--fill-color-alt-1);border-radius:1.3333333333rem;cursor:pointer;display:inline-block;height:1.6666666667rem;padding:.3333333333rem;position:relative;transition:background-color .25s;width:3.3333333333rem}.boolean-switcher:after{background-color:#fff;border-radius:50%;box-shadow:0 5px 15px 0 rgba(70,70,70,.1);content:"";height:1.3333333333rem;left:.1666666667rem;position:absolute;top:.1666666667rem;transition:transform .25s;width:1.3333333333rem}.boolean-switcher--alt{background-color:#fff}.boolean-switcher--alt:after{background-color:var(--fill-color-alt-2)}.boolean-switcher--alt.boolean-switcher--checked:after{background-color:#fff}.boolean-switcher--checked{background-color:var(--primary-color-alt-1)}.boolean-switcher--checked:after{transform:translateX(1.6666666667rem)}.boolean-switcher--small{height:1rem;width:2.3333333333rem}.boolean-switcher--small:after{height:.6666666667rem;width:.6666666667rem}.boolean-switcher--small.boolean-switcher--checked:after{transform:translateX(1.3333333333rem)}',""]);const i=o},195:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'@charset "UTF-8";.breadcrumbs__list{display:flex}.breadcrumbs__list li{color:#7b7d85}.breadcrumbs__list li:after{content:"›";margin-left:.6666666667rem;margin-right:.6666666667rem}.breadcrumbs__list li:last-child{color:#464646}.breadcrumbs__list li:last-child span{cursor:default}.breadcrumbs__list li:last-child span:hover{border-bottom:0}.breadcrumbs__list li:last-child:after{display:none}.breadcrumbs__list li span{cursor:pointer}.breadcrumbs__list li span:hover{border-bottom:1px solid hsla(228,4%,50%,.5)}',""]);const i=o},314:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".button-group{border-radius:8px;display:flex;flex-wrap:nowrap;overflow:hidden}",""]);const i=o},151:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.button{background-color:var(--primary-color);border-radius:8px;color:#fff;cursor:pointer;font-family:Poppins,sans-serif;font-size:.95rem;font-weight:500;line-height:1;overflow:hidden;padding:1rem 2rem;position:relative;transition:background-color .25s;white-space:nowrap}.button:after{bottom:0;box-shadow:inset 0 -2px 0 var(--primary-color-alt-1);content:"";left:0;opacity:.5;position:absolute;right:0;top:0}.button:before{border:1px solid var(--fill-color);border-radius:8px;bottom:2px;content:"";left:2px;opacity:0;position:absolute;right:2px;top:2px;transition:opacity 1s}.button:active:before,.button:focus:before{opacity:.25}.button:hover{background-color:var(--primary-color-alt-1)}.button__icon{margin-right:.5rem}.button__label{color:#7b7d85;margin-right:.6666666667rem}.button--grouped{border-radius:0}.button--has-icon{align-items:center;display:inline-flex}.button--disabled{box-shadow:none;cursor:not-allowed;overflow:hidden}.button--disabled:after{background-color:var(--fill-color);bottom:0;box-shadow:none;content:"";left:0;opacity:.75;position:absolute;right:0;top:0}.button--secondary{background-color:var(--fill-color-alt-1);color:#464646}.button--secondary:after{display:none}.button--active,.button--secondary:hover{background-color:var(--fill-color-alt-2)}.button--outline{background-color:#fff;border:1px solid var(--fill-color-alt-1);color:var(--primary-color-alt-1)}.button--outline:after{display:none}.button--outline:hover{background-color:#fff}.button--full{justify-content:center;text-align:center;width:100%}.button--small{height:2.3rem;padding:.6666666667rem 1.3333333333rem}.button--small:after{display:none}.button--large{border-radius:8px;font-family:Poppins,sans-serif;font-size:1.15rem;font-weight:700;line-height:1.35;padding:1rem 2rem;text-transform:none}',""]);const i=o},554:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".collapsible{background-color:#fff;border:1px solid var(--fill-color-alt-1);border-radius:8px;margin-bottom:1rem}.collapsible__header{align-items:center;background-color:var(--fill-color);display:flex;justify-content:space-between;padding:.3333333333rem .6666666667rem}.collapsible__title{padding-left:1rem;text-align:left;width:100%}.collapsible__content{display:flex;flex-direction:column;gap:2rem;padding:.6666666667rem}.collapsible--closed .collapsible__content{display:none}.collapsible__actions{align-items:center;display:flex;gap:.6666666667rem}.collapsible__component{margin-bottom:2rem}.collapsible__component:last-child{margin-bottom:0}",""]);const i=o},709:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.ctx-overlay{position:fixed}.ctx-mount,.ctx-overlay{bottom:0;left:0;right:0;top:0;z-index:9999}.ctx-mount{position:absolute}@keyframes context-menu{0%{transform:scaleY(.85) scaleX(.85);transform-origin:0 0}to{transform:scaleY(1) scaleX(1);transform-origin:0 0}}.context-menu__menu{animation:context-menu .25s;background-color:#fff;border:1px solid var(--fill-color-alt-2);border-radius:8px;box-shadow:0 5px 15px 0 rgba(70,70,70,.1);left:0;margin-top:.6666666667rem;padding:.6666666667rem;position:absolute;top:0;width:20rem;z-index:1}.context-menu__wrap{position:relative}.context-menu--open .context-menu__wrap:after{border:1px solid var(--fill-color-alt-2);border-radius:8px;bottom:0;content:"";display:block;left:0;position:absolute;right:0;top:0}',""]);const i=o},279:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".directory-view{padding:1rem}.directory-view__content,.directory-view__header{margin-bottom:2rem}",""]);const i=o},374:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,'.file-drop-zone{border:1px solid transparent;border-radius:8px;display:block;width:100%}.file-drop-zone__overlay{align-items:center;bottom:0;display:flex;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;z-index:9998}.file-drop-zone--drag-over .file-drop-zone__overlay{opacity:1;transition:opacity .5s}.file-drop-zone--drag-over{border:1px dashed var(--primary-color);cursor:copy;position:relative}.file-drop-zone--drag-over:after{background-color:var(--fill-color);border-radius:8px;bottom:0;content:"";display:block;left:0;opacity:.85;pointer-events:none;position:absolute;right:0;top:0}',""]);const i=o},926:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".file-uploader{position:relative}.file-uploader__input{bottom:0;left:0;position:absolute;right:0;top:0}.file-uploader__input:has(input:hover){border:1px dashed var(--fill-color-alt-2);border-radius:10px}.file-uploader__input input{cursor:pointer;height:100%;opacity:0;width:100%}",""]);const i=o},668:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(645),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".directory-view{padding:1rem}.directory-view__content,.directory-view__header{margin-bottom:2rem}",""]);const i=o},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i{"use strict";var n=r(864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(t){return n.isMemo(t)?a:c[t.$$typeof]||o}c[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[n.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&t(e,o,n)}var a=l(r);f&&(a=a.concat(f(r)));for(var c=u(e),y=u(r),m=0;m{e.read=function(t,e,r,n,o){var i,a,c=8*o-n-1,u=(1<>1,l=-7,f=r?o-1:0,p=r?-1:1,d=t[e+f];for(f+=p,i=d&(1<<-l)-1,d>>=-l,l+=c;l>0;i=256*i+t[e+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=s}return(d?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,c,u,s=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,h=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(e*u-1)*Math.pow(2,o),a+=f):(c=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&c,d+=h,c/=256,o-=8);for(a=a<0;t[r+d]=255&a,d+=h,a/=256,s-=8);t[r+d-h]|=128*y}},826:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},425:()=>{},921:(t,e)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,g=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function j(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case l:case f:case i:case c:case a:case d:return t;default:switch(t=t&&t.$$typeof){case s:case p:case m:case y:case u:return t;default:return e}}case o:return e}}}function O(t){return j(t)===f}e.AsyncMode=l,e.ConcurrentMode=f,e.ContextConsumer=s,e.ContextProvider=u,e.Element=n,e.ForwardRef=p,e.Fragment=i,e.Lazy=m,e.Memo=y,e.Portal=o,e.Profiler=c,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return O(t)||j(t)===l},e.isConcurrentMode=O,e.isContextConsumer=function(t){return j(t)===s},e.isContextProvider=function(t){return j(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return j(t)===p},e.isFragment=function(t){return j(t)===i},e.isLazy=function(t){return j(t)===m},e.isMemo=function(t){return j(t)===y},e.isPortal=function(t){return j(t)===o},e.isProfiler=function(t){return j(t)===c},e.isStrictMode=function(t){return j(t)===a},e.isSuspense=function(t){return j(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===c||t===a||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===y||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===v||t.$$typeof===g||t.$$typeof===w||t.$$typeof===b)},e.typeOf=j},864:(t,e,r)=>{"use strict";t.exports=r(921)},359:(t,e)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function b(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case i:case c:case a:case p:case d:return t;default:switch(t=t&&t.$$typeof){case l:case s:case f:case y:case h:case u:return t;default:return e}}case o:return e}}}r=Symbol.for("react.module.reference")},973:(t,e,r)=>{"use strict";r(359)},53:(t,e)=>{"use strict";function r(t,e){var r=t.length;t.push(e);t:for(;0>>1,o=t[n];if(!(0>>1;ni(u,r))si(l,u)?(t[n]=l,t[s]=r,n=s):(t[n]=u,t[c]=r,n=c);else{if(!(si(l,r)))break t;t[n]=l,t[s]=r,n=s}}}return e}function i(t,e){var r=t.sortIndex-e.sortIndex;return 0!==r?r:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var s=[],l=[],f=1,p=null,d=3,h=!1,y=!1,m=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,g="undefined"!=typeof setImmediate?setImmediate:null;function w(t){for(var e=n(l);null!==e;){if(null===e.callback)o(l);else{if(!(e.startTime<=t))break;o(l),e.sortIndex=e.expirationTime,r(s,e)}e=n(l)}}function j(t){if(m=!1,w(t),!y)if(null!==n(s))y=!0,L(O);else{var e=n(l);null!==e&&D(j,e.startTime-t)}}function O(t,r){y=!1,m&&(m=!1,v(P),P=-1),h=!0;var i=d;try{for(w(r),p=n(s);null!==p&&(!(p.expirationTime>r)||t&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var c=a(p.expirationTime<=r);r=e.unstable_now(),"function"==typeof c?p.callback=c:p===n(s)&&o(s),w(r)}else o(s);p=n(s)}if(null!==p)var u=!0;else{var f=n(l);null!==f&&D(j,f.startTime-r),u=!1}return u}finally{p=null,d=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,x=null,P=-1,k=5,E=-1;function C(){return!(e.unstable_now()-Et||125a?(t.sortIndex=i,r(l,t),null===n(s)&&t===n(l)&&(m?(v(P),P=-1):m=!0,D(j,i-a))):(t.sortIndex=c,r(s,t),y||h||(y=!0,L(O))),t},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(t){var e=d;return function(){var r=d;d=e;try{return t.apply(this,arguments)}finally{d=r}}}},840:(t,e,r)=>{"use strict";t.exports=r(53)},379:(t,e,r)=>{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),a=[];function c(t){for(var e=-1,r=0;r{"use strict";var n=r(294);var o="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},i=n.useState,a=n.useEffect,c=n.useLayoutEffect,u=n.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!o(t,r)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=i({inst:{value:r,getSnapshot:e}}),o=n[0].inst,l=n[1];return c((function(){o.value=r,o.getSnapshot=e,s(o)&&l({inst:o})}),[t,r,e]),a((function(){return s(o)&&l({inst:o}),t((function(){s(o)&&l({inst:o})}))}),[t]),u(r),r};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},139:(t,e,r)=>{"use strict";var n=r(294),o=r(688);var i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},a=o.useSyncExternalStore,c=n.useRef,u=n.useEffect,s=n.useMemo,l=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(t,e,r,n,o){var f=c(null);if(null===f.current){var p={hasValue:!1,value:null};f.current=p}else p=f.current;f=s((function(){function t(t){if(!u){if(u=!0,a=t,t=n(t),void 0!==o&&p.hasValue){var e=p.value;if(o(e,t))return c=e}return c=t}if(e=c,i(a,t))return e;var r=n(t);return void 0!==o&&o(e,r)?e:(a=t,c=r)}var a,c,u=!1,s=void 0===r?null:r;return[function(){return t(e())},null===s?void 0:function(){return t(s())}]}),[e,r,n,o]);var d=a(t,f[0],f[1]);return u((function(){p.hasValue=!0,p.value=d}),[d]),l(d),d}},688:(t,e,r)=>{"use strict";t.exports=r(250)},798:(t,e,r)=>{"use strict";t.exports=r(139)},328:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t){var e=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===n(e)?e:String(e)}function i(t,e,r){return(e=o(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;ec})}},t=>{var e=e=>t(t.s=e);t.O(0,[555,170],(()=>(e(66),e(425))));t.O()}]); \ No newline at end of file diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 1baf2d2..05e1fe4 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,5 +1,5 @@ { - "/js/app.js": "/js/app.js?id=407f2e3c3c33d78771af1dfb094d80c0", + "/js/app.js": "/js/app.js?id=78f77b681669277483b9635f804ad7c8", "/js/manifest.js": "/js/manifest.js?id=22bb55ce20c9c883a45b5c11d8eca703", "/js/vendor.js": "/js/vendor.js?id=a21c2dcb4fdd557ce1ec6c040ad40be4", "/css/app.css": "/css/app.css?id=480082d086b2f1b7a2c82d4ec82767ac" diff --git a/resources/js/components/execute-link.js b/resources/js/components/execute-link.js index c9207a8..e820495 100644 --- a/resources/js/components/execute-link.js +++ b/resources/js/components/execute-link.js @@ -8,8 +8,7 @@ import Overlay from "../core/ui/overlay"; import Window from "../core/ui/window"; import Form from "../core/ui/form"; import components from "../rendering/components"; -import ReactDOM from "react-dom"; -import {createRoot} from "react-dom/client"; +import { createRoot } from "react-dom/client"; class ExecuteLink extends React.Component { @@ -46,7 +45,8 @@ class ExecuteLink extends React.Component { } redirect(response) { - path.handleRedirect(this.props, {id: response.data.id}); + const props = {...this.props, refresh: true}; + path.handleRedirect(props, {id: response.data.id}); } handleClick() { diff --git a/src/Cmf.php b/src/Cmf.php index 81957fe..1b4c432 100644 --- a/src/Cmf.php +++ b/src/Cmf.php @@ -38,7 +38,7 @@ public function __construct(ModuleRegistry $modules) */ public function getVersion(): string { - return '0.2.1'; + return '0.2.2'; } /**