1import { 2 useAuth, 3 useCheckPermissionsQuery 4} from "/admin/node_modules/.strapi/vite/deps/chunk-OBBKKGYS.js?v=d15f9e09"; 5import { 6 setIn 7} from "/admin/node_modules/.strapi/vite/deps/chunk-A5ZULJ5L.js?v=d15f9e09"; 8import { 9 useNotification 10} from "/admin/node_modules/.strapi/vite/deps/chunk-QJWF7P4Z.js?v=d15f9e09"; 11import { 12 useIntl 13} from "/admin/node_modules/.strapi/vite/deps/chunk-2EC2GH3P.js?v=d15f9e09"; 14import { 15 Box, 16 EmptyStateLayout, 17 Flex, 18 ForwardRef$2, 19 Loader, 20 Main 21} from "/admin/node_modules/.strapi/vite/deps/chunk-NQ2VHHSG.js?v=d15f9e09"; 22import { 23 require_jsx_runtime 24} from "/admin/node_modules/.strapi/vite/deps/chunk-P5ARCO6G.js?v=d15f9e09"; 25import { 26 require_react 27} from "/admin/node_modules/.strapi/vite/deps/chunk-VB5JOH6R.js?v=d15f9e09"; 28import { 29 __toESM 30} from "/admin/node_modules/.strapi/vite/deps/chunk-X6GFWOGJ.js?v=d15f9e09"; 31
vendor: 44,477 bytes, lines 32-737
32// node_modules/.pnpm/@[email protected][email protected][email protected][email protected][email protected]_p2afy4tpzp5hcfhozomclev3oq/node_modules/@strapi/icons/dist/symbols-index.mjs 33var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); 34var import_react = __toESM(require_react(), 1); 35var SvgBlocksField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 36 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAF5FF", stroke: "#B8E1FF", rx: 2.5 }), 37 (0, import_jsx_runtime.jsx)( 38 "path", 39 { 40 fill: "#0C75AF", 41 d: "M14.75 11.75a1 1 0 1 1-2 0 1 1 0 0 1 2 0m3.5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2M13.75 15a1 1 0 1 0 0 2 1 1 0 0 0 0-2m4.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-4.5 4.25a1 1 0 1 0 0 2 1 1 0 0 0 0-2m4.5 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2" 42 } 43 ) 44] }); 45var ForwardRef$x = (0, import_react.forwardRef)(SvgBlocksField); 46var SvgBooleanField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 47 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAFBE7", stroke: "#C6F0C2", rx: 2.5 }), 48 (0, import_jsx_runtime.jsx)( 49 "path", 50 { 51 fill: "#328048", 52 d: "M19 11.5h-6a4.5 4.5 0 1 0 0 9h6a4.5 4.5 0 1 0 0-9m0 7a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5" 53 } 54 ) 55] }); 56var ForwardRef$w = (0, import_react.forwardRef)(SvgBooleanField); 57var SvgCodeSquare = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 58 (0, import_jsx_runtime.jsx)("path", { fill: "#D9822F", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }), 59 (0, import_jsx_runtime.jsx)( 60 "path", 61 { 62 fill: "#fff", 63 fillRule: "evenodd", 64 d: "M17.143 18.659v2.912l6.856-3.878v-2.815L17.143 11v2.906l4.16 2.38zm-2.287 0-4.16-2.374 4.16-2.38V11L8 14.877v2.816l6.856 3.878z", 65 clipRule: "evenodd" 66 } 67 ) 68] }); 69var ForwardRef$v = (0, import_react.forwardRef)(SvgCodeSquare); 70var SvgCollectionType = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 71 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#4945FF", stroke: "#4945FF", rx: 2.5 }), 72 (0, import_jsx_runtime.jsx)( 73 "path", 74 { 75 fill: "#fff", 76 d: "M14.328 14.54v-.083c-.04-.937-.75-1.559-1.787-1.559-1.535 0-2.725 1.57-2.725 3.65 0 1.302.71 2.104 1.846 2.104.961 0 1.787-.545 2.063-1.37h1.752c-.37 1.78-1.922 2.935-3.967 2.935-2.121 0-3.504-1.395-3.504-3.545 0-3.123 1.951-5.344 4.646-5.344 1.94 0 3.41 1.283 3.41 2.96 0 .087 0 .163-.011.251zM20.053 20H18.27l1.489-6.943h-2.532l.311-1.512h6.844l-.31 1.512H21.54z" 77 } 78 ) 79] }); 80var ForwardRef$u = (0, import_react.forwardRef)(SvgCollectionType); 81var SvgComponentField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 82 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6F6F9", stroke: "#DCDCE4", rx: 2.5 }), 83 (0, import_jsx_runtime.jsx)( 84 "path", 85 { 86 fill: "#666687", 87 d: "M20.5 17.5c-.358 0-.71.085-1.029.25l-1.337-1.04q.11-.326.116-.67l.647-.214a2.25 2.25 0 1 0-.637-1.37l-.486.162A2.25 2.25 0 0 0 16 13.75c-.062 0-.117 0-.176.008l-.278-.625A2.25 2.25 0 1 0 14 13.75c.063 0 .117 0 .176-.008l.278.625a2.24 2.24 0 0 0-.537 2.482l-1.33 1.182a2.25 2.25 0 1 0 .996 1.12l1.33-1.182a2.25 2.25 0 0 0 2.3-.075l1.224.954A2.25 2.25 0 1 0 20.5 17.5m0-4a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-7.25-2a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0m-1.75 9.25a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5M15.25 16a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0m5.25 4.5a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5" 88 } 89 ) 90] }); 91var ForwardRef$t = (0, import_react.forwardRef)(SvgComponentField); 92var SvgDateField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 93 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FDF4DC", stroke: "#FAE7B9", rx: 2.5 }), 94 (0, import_jsx_runtime.jsx)( 95 "path", 96 { 97 fill: "#D9822F", 98 d: "M21 10h-1.5v-.5a.5.5 0 0 0-1 0v.5h-5v-.5a.5.5 0 0 0-1 0v.5H11a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V11a1 1 0 0 0-1-1m0 3H11v-2h1.5v.5a.5.5 0 0 0 1 0V11h5v.5a.5.5 0 0 0 1 0V11H21z" 99 } 100 ) 101] }); 102var ForwardRef$s = (0, import_react.forwardRef)(SvgDateField); 103var SvgDiscord = (props, ref) => (0, import_jsx_runtime.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: (0, import_jsx_runtime.jsx)( 104 "path", 105 { 106 fill: "#5865F2", 107 d: "M27.107 5.911a26.5 26.5 0 0 0-6.602-2.031 18 18 0 0 0-.845 1.72 24.6 24.6 0 0 0-7.327 0 18 18 0 0 0-.846-1.72A26.7 26.7 0 0 0 4.88 5.916C.702 12.098-.43 18.126.136 24.068a26.6 26.6 0 0 0 8.097 4.065 19.6 19.6 0 0 0 1.734-2.796c-.947-.354-1.86-.79-2.73-1.304.228-.166.452-.337.669-.504a19.02 19.02 0 0 0 16.188 0q.33.271.67.504c-.872.515-1.788.952-2.736 1.306a19.4 19.4 0 0 0 1.734 2.794 26.5 26.5 0 0 0 8.102-4.062c.665-6.892-1.135-12.864-4.757-18.16M10.684 20.414c-1.578 0-2.882-1.433-2.882-3.194 0-1.762 1.259-3.207 2.877-3.207 1.619 0 2.912 1.445 2.885 3.207s-1.271 3.194-2.88 3.194m10.632 0c-1.581 0-2.88-1.433-2.88-3.194 0-1.762 1.259-3.207 2.88-3.207s2.904 1.445 2.877 3.207-1.269 3.194-2.877 3.194" 108 } 109) }); 110var ForwardRef$r = (0, import_react.forwardRef)(SvgDiscord); 111var SvgDiscourse = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 112 (0, import_jsx_runtime.jsx)( 113 "path", 114 { 115 fill: "#231F20", 116 d: "M15.659.302C7.158.302 0 7.194 0 15.698v15.943l15.656-.015c8.501 0 15.396-7.158 15.396-15.66 0-8.5-6.901-15.664-15.393-15.664" 117 } 118 ), 119 (0, import_jsx_runtime.jsx)( 120 "path", 121 { 122 fill: "#FFF9AE", 123 d: "M15.81 6.261a9.546 9.546 0 0 0-8.39 14.09l-1.726 5.554 6.2-1.4A9.541 9.541 0 1 0 15.82 6.26z" 124 } 125 ), 126 (0, import_jsx_runtime.jsx)( 127 "path", 128 { 129 fill: "#00AEEF", 130 d: "M23.381 9.999a9.54 9.54 0 0 1-11.487 14.49l-6.2 1.419 6.312-.746A9.54 9.54 0 0 0 23.381 10" 131 } 132 ), 133 (0, import_jsx_runtime.jsx)( 134 "path", 135 { 136 fill: "#00A94F", 137 d: "M21.624 8.239a9.54 9.54 0 0 1-9.91 15.61l-6.02 2.059 6.2-1.404a9.54 9.54 0 0 0 9.73-16.265" 138 } 139 ), 140 (0, import_jsx_runtime.jsx)("path", { fill: "#F15D22", d: "M7.991 20.562A9.542 9.542 0 0 1 23.387 9.994 9.543 9.543 0 0 0 7.42 20.35l-1.726 5.555z" }), 141 (0, import_jsx_runtime.jsx)("path", { fill: "#E31B23", d: "M7.42 20.35A9.543 9.543 0 0 1 21.624 8.238 9.543 9.543 0 0 0 6.832 20.202l-1.135 5.706z" }) 142] }); 143var ForwardRef$q = (0, import_react.forwardRef)(SvgDiscourse); 144var SvgDynamicZoneField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 145 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6F6F9", stroke: "#DCDCE4", rx: 2.5 }), 146 (0, import_jsx_runtime.jsx)( 147 "path", 148 { 149 fill: "#666687", 150 d: "M23.75 16a3.75 3.75 0 0 1-6.402 2.652l-.03-.033-3.742-4.225a2.25 2.25 0 1 0 0 3.212l.193-.218a.75.75 0 1 1 1.125.994l-.21.237-.03.033a3.75 3.75 0 1 1 0-5.304l.03.033 3.742 4.225a2.25 2.25 0 1 0 0-3.212l-.193.218a.751.751 0 1 1-1.125-.995l.21-.236.03-.033A3.75 3.75 0 0 1 23.75 16" 151 } 152 ) 153] }); 154var ForwardRef$p = (0, import_react.forwardRef)(SvgDynamicZoneField); 155var SvgEmailField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 156 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FCECEA", stroke: "#F5C0B8", rx: 2.5 }), 157 (0, import_jsx_runtime.jsx)( 158 "path", 159 { 160 fill: "#D02B20", 161 d: "M16 9.25a6.75 6.75 0 0 0 0 13.5c1.392 0 2.856-.42 3.915-1.125a.75.75 0 1 0-.83-1.25c-.813.54-1.994.875-3.085.875A5.25 5.25 0 1 1 21.25 16c0 .58-.104 1.067-.293 1.372-.165.265-.375.378-.707.378s-.542-.113-.707-.378c-.187-.305-.293-.791-.293-1.372v-2.5a.75.75 0 0 0-1.468-.216 3.25 3.25 0 1 0 .554 4.973c.433.637 1.09.993 1.914.993 1.542 0 2.5-1.245 2.5-3.25A6.76 6.76 0 0 0 16 9.25m0 8.5a1.75 1.75 0 1 1 0-3.5 1.75 1.75 0 0 1 0 3.5" 162 } 163 ) 164] }); 165var ForwardRef$o = (0, import_react.forwardRef)(SvgEmailField); 166var SvgEmptyData = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 217 121", ref, ...props, children: [ 167 (0, import_jsx_runtime.jsxs)("g", { clipPath: "url(#EmptyData_svg__a)", children: [ 168 (0, import_jsx_runtime.jsx)( 169 "path", 170 { 171 stroke: "#EEEEFA", 172 strokeDasharray: "3.93 4.91", 173 strokeLinecap: "round", 174 strokeWidth: 0.982, 175 d: "M1.158 99.652h215.018M1.158 80.015h215.018M1.158 59.397h215.018M1.158 38.779h215.018M1.158 20.124h215.018" 176 } 177 ), 178 (0, import_jsx_runtime.jsx)( 179 "path", 180 { 181 fill: "#D9D8FF", 182 fillOpacity: 0.8, 183 fillRule: "evenodd", 184 d: "M182.63 25.086c4.112 0 7.446 3.279 7.446 7.323s-3.334 7.324-7.446 7.324h-42.545c4.112 0 7.445 3.279 7.445 7.323s-3.333 7.324-7.445 7.324h23.4c4.112 0 7.445 3.278 7.445 7.323 0 4.044-3.333 7.323-7.445 7.323h-10.821c-5.185 0-9.388 3.28-9.388 7.324q0 2.847 3.162 5.314c1.968 1.536 4.676 1.736 6.861 2.943 2.27 1.255 3.804 3.646 3.804 6.39 0 4.044-3.333 7.323-7.445 7.323H61.376c-4.112 0-7.446-3.279-7.446-7.323s3.334-7.324 7.446-7.324H19.894c-4.112 0-7.445-3.279-7.445-7.323s3.333-7.324 7.445-7.324H62.44c4.112 0 7.445-3.278 7.445-7.323s-3.334-7.324-7.446-7.324H35.85c-4.112 0-7.446-3.278-7.446-7.323 0-4.044 3.334-7.323 7.446-7.323h42.545c-4.112 0-7.445-3.28-7.445-7.324s3.333-7.323 7.445-7.323zm0 29.294c4.112 0 7.446 3.278 7.446 7.323 0 4.044-3.334 7.323-7.446 7.323s-7.445-3.278-7.445-7.323 3.333-7.324 7.445-7.324", 185 clipRule: "evenodd" 186 } 187 ), 188 (0, import_jsx_runtime.jsx)( 189 "rect", 190 { 191 width: 27, 192 height: 79.036, 193 x: 109.403, 194 y: 33.133, 195 fill: "#fff", 196 stroke: "#7B79FF", 197 strokeWidth: 2.455, 198 rx: 4.173 199 } 200 ), 201 (0, import_jsx_runtime.jsx)("rect", { width: 27, height: 102.6, x: 74.058, y: 9.57, fill: "#fff", stroke: "#7B79FF", strokeWidth: 2.455, rx: 4.173 }), 202 (0, import_jsx_runtime.jsx)( 203 "rect", 204 { 205 width: 27, 206 height: 58.418, 207 x: 39.203, 208 y: 53.26, 209 fill: "#fff", 210 stroke: "#7B79FF", 211 strokeWidth: 2.455, 212 rx: 4.173 213 } 214 ), 215 (0, import_jsx_runtime.jsx)( 216 "rect", 217 { 218 width: 27, 219 height: 55.473, 220 x: 144.748, 221 y: 56.697, 222 fill: "#fff", 223 stroke: "#7B79FF", 224 strokeWidth: 2.455, 225 rx: 4.173 226 } 227 ), 228 (0, import_jsx_runtime.jsx)("rect", { width: 21.6, height: 53.018, x: 41.903, y: 55.961, fill: "#EEEEFA", rx: 1.964 }), 229 (0, import_jsx_runtime.jsx)("rect", { width: 21.6, height: 73.636, x: 112.103, y: 35.833, fill: "#EEEEFA", rx: 1.964 }) 230 ] }), 231 (0, import_jsx_runtime.jsx)("defs", { children: (0, import_jsx_runtime.jsx)("clipPath", { id: "EmptyData_svg__a", children: (0, import_jsx_runtime.jsx)("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) }) }) 232] }); 233var ForwardRef$n = (0, import_react.forwardRef)(SvgEmptyData); 234var SvgEmptyDocuments = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 217 121", ref, ...props, children: [ 235 (0, import_jsx_runtime.jsxs)("g", { clipPath: "url(#EmptyDocuments_svg__a)", opacity: 0.84, children: [ 236 (0, import_jsx_runtime.jsx)( 237 "path", 238 { 239 fill: "#D9D8FF", 240 fillOpacity: 0.8, 241 fillRule: "evenodd", 242 d: "M189.917 20.442a7.583 7.583 0 0 1 0 15.167h-43.334a7.584 7.584 0 1 1 0 15.167h23.834a7.583 7.583 0 0 1 0 15.166h-11.022c-5.281 0-9.562 3.396-9.562 7.584q0 2.934 3.19 5.479c2.017 1.608 4.824 1.818 7.065 3.097a7.584 7.584 0 0 1-3.755 14.174H66.417a7.583 7.583 0 1 1 0-15.167h-42.25a7.583 7.583 0 0 1 0-15.167H67.5a7.583 7.583 0 0 0 0-15.166H40.417a7.583 7.583 0 0 1 0-15.167H83.75a7.583 7.583 0 0 1 0-15.167zm0 30.334a7.583 7.583 0 0 1 0 15.166 7.584 7.584 0 0 1 0-15.166", 243 clipRule: "evenodd" 244 } 245 ), 246 (0, import_jsx_runtime.jsx)( 247 "path", 248 { 249 fill: "#fff", 250 fillRule: "evenodd", 251 d: "m133.228 20.443 10.077 73.496.905 7.373a4.33 4.33 0 0 1-3.773 4.829l-63.44 7.79a4.334 4.334 0 0 1-4.83-3.773l-9.766-79.547a2.167 2.167 0 0 1 1.886-2.414l.023-.003 5.263-.59zm-59.4 6.683 4.97-.557z", 252 clipRule: "evenodd" 253 } 254 ), 255 (0, import_jsx_runtime.jsx)( 256 "path", 257 { 258 stroke: "#7B79FF", 259 strokeWidth: 2.5, 260 d: "m73.829 27.126 4.97-.557m54.429-6.126 10.077 73.496.905 7.373a4.33 4.33 0 0 1-3.773 4.829l-63.44 7.79a4.334 4.334 0 0 1-4.83-3.773l-9.766-79.547a2.167 2.167 0 0 1 1.886-2.414l.023-.003 5.263-.59z" 261 } 262 ), 263 (0, import_jsx_runtime.jsx)( 264 "path", 265 { 266 fill: "#F0F0FF", 267 fillRule: "evenodd", 268 d: "m130.485 25.068 9.121 66.607.821 6.683c.264 2.152-1.246 4.109-3.373 4.37l-56.812 6.976c-2.128.261-4.066-1.272-4.33-3.425l-8.83-71.908a2.166 2.166 0 0 1 1.887-2.414l7.028-.863", 269 clipRule: "evenodd" 270 } 271 ), 272 (0, import_jsx_runtime.jsx)( 273 "path", 274 { 275 fill: "#fff", 276 fillRule: "evenodd", 277 stroke: "#7B79FF", 278 strokeWidth: 2.5, 279 d: "M135.998 6.63H86.645a2.97 2.97 0 0 0-2.107.872 2.97 2.97 0 0 0-.873 2.107v82.333c0 .823.334 1.568.873 2.107a2.97 2.97 0 0 0 2.106.872h63.917a2.97 2.97 0 0 0 2.107-.872 2.97 2.97 0 0 0 .872-2.107V24.164a2.98 2.98 0 0 0-.873-2.108L138.104 7.502a2.98 2.98 0 0 0-2.106-.872Z", 280 clipRule: "evenodd" 281 } 282 ), 283 (0, import_jsx_runtime.jsx)( 284 "path", 285 { 286 stroke: "#7B79FF", 287 strokeLinecap: "round", 288 strokeLinejoin: "round", 289 strokeWidth: 2.5, 290 d: "M136.478 7.879v12.563a3.25 3.25 0 0 0 3.25 3.25h8.595M95.311 78.942h28.167m-28.167-55.25h28.167zm0 13h46.583zm0 14.084h46.583zm0 14.083h46.583z" 291 } 292 ) 293 ] }), 294 (0, import_jsx_runtime.jsx)("defs", { children: (0, import_jsx_runtime.jsx)("clipPath", { id: "EmptyDocuments_svg__a", children: (0, import_jsx_runtime.jsx)("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) }) }) 295] }); 296var ForwardRef$m = (0, import_react.forwardRef)(SvgEmptyDocuments); 297var SvgEmptyPermissions = (props, ref) => (0, import_jsx_runtime.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 193 121", ref, ...props, children: (0, import_jsx_runtime.jsxs)("g", { opacity: 0.88, children: [ 298 (0, import_jsx_runtime.jsx)( 299 "path", 300 { 301 fill: "#DBDBFA", 302 fillRule: "evenodd", 303 d: "M160.947 53.823a4 4 0 0 0-.15-.281c-3.5-5.96-7.289-11.263-11.52-15.858h18.096c4.445 0 8.048 3.613 8.048 8.07 0 4.456-3.603 8.069-8.048 8.069zm-8.493 16.139c-11.562 11.57-31.953 19.597-55.21 19.597-31.435 0-54.384-16.705-55.701-35.736H29.409c-4.445 0-8.048 3.613-8.048 8.07 0 4.456 3.603 8.069 8.048 8.069h11.697c5.604 0 10.148 3.612 10.148 8.069q0 3.786-4.98 6.963c-.942.601-2.034.876-3.123 1.15-.33.083-.658.166-.983.257a8.07 8.07 0 0 0-5.86 7.768c0 4.457 3.602 8.07 8.047 8.07h95.425c4.445 0 8.048-3.613 8.048-8.07 0-4.456-3.603-8.069-8.048-8.069h44.839c4.444 0 8.048-3.613 8.048-8.07 0-4.456-3.604-8.068-8.048-8.068zM68.723 21.546H8.715c-4.445 0-8.048 3.613-8.048 8.07 0 4.456 3.603 8.068 8.048 8.068h37.314c4.606-6.843 12.5-12.477 22.694-16.138M.667 61.892c0-4.456 3.603-8.069 8.048-8.069 4.444 0 8.047 3.613 8.047 8.07 0 4.456-3.603 8.069-8.047 8.069S.667 66.349.667 61.892", 304 clipRule: "evenodd" 305 } 306 ), 307 (0, import_jsx_runtime.jsx)( 308 "path", 309 { 310 stroke: "#7B79FF", 311 strokeLinecap: "round", 312 strokeLinejoin: "round", 313 strokeWidth: 2.5, 314 d: "m158.091 49.212 1.446 2.131" 315 } 316 ), 317 (0, import_jsx_runtime.jsx)( 318 "path", 319 { 320 fill: "#fff", 321 d: "M154.862 59.69c-45.683-57.683-95.639-25.812-117.374.01-1.404 1.668-1.426 4.117-.15 5.882 47.31 65.454 96.71 29.044 117.704-.133 1.24-1.722 1.138-4.094-.18-5.758" 322 } 323 ), 324 (0, import_jsx_runtime.jsx)( 325 "path", 326 { 327 fill: "#7B79FF", 328 fillRule: "evenodd", 329 d: "M113.536 28.091c-9.141-2.486-18.085-2.558-26.571-.94-21.301 4.058-39.458 18.707-50.43 31.742-1.794 2.132-1.798 5.217-.206 7.42C48.246 82.798 60.36 92.962 72.218 98.41q1.186.544 2.367 1.027l1.206-2.209a57 57 0 0 1-2.53-1.09c-11.366-5.222-23.168-15.052-34.905-31.291-.961-1.33-.92-3.143.092-4.345 10.764-12.787 28.453-26.985 48.985-30.897 7.905-1.506 16.271-1.495 24.869.745zm-28.277 71.966c7.097 1.397 13.98 1.155 20.536-.279 20.46-4.474 37.826-20.593 48.237-35.062.899-1.25.84-3.007-.146-4.252-10.728-13.547-21.653-22.062-32.351-26.854l1.201-2.2c11.026 4.98 22.21 13.738 33.11 27.502 1.649 2.083 1.795 5.069.215 7.265-10.584 14.708-28.416 31.382-49.732 36.044-7.115 1.556-14.607 1.77-22.323.131z", 330 clipRule: "evenodd" 331 } 332 ), 333 (0, import_jsx_runtime.jsx)( 334 "path", 335 { 336 stroke: "#7B79FF", 337 strokeLinecap: "round", 338 strokeLinejoin: "round", 339 strokeWidth: 2.5, 340 d: "M127.159 22.08c13.23 6.32 21.864 14.378 27.624 21.78M34.068 48.642C53.002 23.337 89.197 8.3 117.953 18.635" 341 } 342 ), 343 (0, import_jsx_runtime.jsx)("ellipse", { cx: 94.98, cy: 66.505, fill: "#F0F0FF", rx: 18.395, ry: 18.444 }), 344 (0, import_jsx_runtime.jsx)( 345 "path", 346 { 347 fill: "#7B79FF", 348 fillRule: "evenodd", 349 d: "M104.76 44.362a24 24 0 0 0-9.776-2.067c-13.334 0-24.144 10.838-24.144 24.208 0 8.428 4.296 15.85 10.813 20.186l1.203-2.204c-5.741-3.903-9.516-10.498-9.516-17.982 0-11.995 9.696-21.708 21.644-21.708 3.045 0 5.944.631 8.574 1.77zM91.95 87.999q1.488.211 3.034.212c11.947 0 21.643-9.713 21.643-21.708a21.66 21.66 0 0 0-5.222-14.142l1.272-2.33a24.16 24.16 0 0 1 6.45 16.472c0 13.37-10.809 24.207-24.143 24.207-1.47 0-2.908-.131-4.305-.383z", 350 clipRule: "evenodd" 351 } 352 ), 353 (0, import_jsx_runtime.jsx)( 354 "path", 355 { 356 fill: "#fff", 357 stroke: "#7B79FF", 358 strokeWidth: 2.5, 359 d: "M116.729 54.977c0 4.406-3.562 7.972-7.948 7.972s-7.948-3.566-7.948-7.972 3.562-7.972 7.948-7.972 7.948 3.566 7.948 7.972Z" 360 } 361 ), 362 (0, import_jsx_runtime.jsx)( 363 "path", 364 { 365 fill: "#fff", 366 d: "M110.472 33.635c1.275-2.324 4.078-3.019 6.296-1.56 2.264 1.49 3.053 4.654 1.751 7.027l-31.287 57.05c-1.275 2.324-4.079 3.018-6.296 1.559-2.265-1.49-3.053-4.653-1.751-7.027z" 367 } 368 ), 369 (0, import_jsx_runtime.jsx)( 370 "rect", 371 { 372 width: 3.668, 373 height: 134.376, 374 fill: "#7B79FF", 375 rx: 1.834, 376 transform: "matrix(.82817 .56048 -.47918 .87772 127.181 .797)" 377 } 378 ) 379] }) }); 380var ForwardRef$l = (0, import_react.forwardRef)(SvgEmptyPermissions); 381var SvgEmptyPictures = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", width: 16, height: 16, fill: "none", viewBox: "0 0 217 121", ref, ...props, children: [ 382 (0, import_jsx_runtime.jsx)("g", { clipPath: "url(#EmptyPictures_svg__a)", children: (0, import_jsx_runtime.jsxs)("g", { clipPath: "url(#EmptyPictures_svg__b)", opacity: 0.88, children: [ 383 (0, import_jsx_runtime.jsx)( 384 "path", 385 { 386 fill: "#D9D8FF", 387 fillOpacity: 0.8, 388 fillRule: "evenodd", 389 d: "M119.667 28.797a7 7 0 1 1 0 14h64a7 7 0 1 1 0 14h22a7 7 0 1 1 0 14h-19a7 7 0 1 0 0 14h6a7 7 0 1 1 0 14h-52a7 7 0 0 1-1.5-.161 7 7 0 0 1-1.5.16h-91a7 7 0 0 1 0-14h-39a7 7 0 1 1 0-14h40a7 7 0 0 0 0-14h-25a7 7 0 1 1 0-14h40a7 7 0 1 1 0-14zm90 56a7 7 0 1 1 0 14 7 7 0 0 1 0-14", 390 clipRule: "evenodd" 391 } 392 ), 393 (0, import_jsx_runtime.jsx)( 394 "path", 395 { 396 fill: "#fff", 397 fillRule: "evenodd", 398 d: "m74.497 103.07-8.622 1.422a4 4 0 0 1-4.518-3.404L50.224 21.866a4 4 0 0 1 3.404-4.518l78.231-10.994a4 4 0 0 1 4.518 3.404c.474 3.377 2.408 16.468 2.571 17.63", 399 clipRule: "evenodd" 400 } 401 ), 402 (0, import_jsx_runtime.jsx)( 403 "path", 404 { 405 fill: "#F0F0FF", 406 fillRule: "evenodd", 407 d: "m72.472 99.51-3.696.525a3.62 3.62 0 0 1-4.096-3.085l-9.996-71.925a3.646 3.646 0 0 1 3.097-4.107L128.82 10.82a3.62 3.62 0 0 1 4.096 3.085l.859 6.18 9.206 66.599c.306 2.212-1.22 4.257-3.408 4.566l-.07.01z", 408 clipRule: "evenodd" 409 } 410 ), 411 (0, import_jsx_runtime.jsx)( 412 "path", 413 { 414 stroke: "#7B79FF", 415 strokeLinecap: "round", 416 strokeWidth: 2.5, 417 d: "m69.945 103.92-4.07.572a4 4 0 0 1-4.518-3.405L50.223 21.866a4 4 0 0 1 3.405-4.518l78.231-10.994a4 4 0 0 1 4.518 3.404l.956 6.808M138.167 21.177l.5 3.12" 418 } 419 ), 420 (0, import_jsx_runtime.jsx)( 421 "path", 422 { 423 fill: "#fff", 424 fillRule: "evenodd", 425 stroke: "#7B79FF", 426 strokeWidth: 2.5, 427 d: "m165.078 31.096-78.567-8.258a2.74 2.74 0 0 0-2.018.598 2.74 2.74 0 0 0-1.005 1.85l-8.362 79.561a2.748 2.748 0 0 0 2.447 3.023l78.568 8.258a2.74 2.74 0 0 0 2.018-.598 2.74 2.74 0 0 0 1.004-1.85l8.362-79.562a2.74 2.74 0 0 0-.597-2.018 2.74 2.74 0 0 0-1.85-1.004Z", 428 clipRule: "evenodd" 429 } 430 ), 431 (0, import_jsx_runtime.jsx)( 432 "path", 433 { 434 fill: "#fff", 435 fillRule: "evenodd", 436 d: "m93.657 31.382 62.655 6.585a3 3 0 0 1 2.67 3.297l-5.54 52.71a3 3 0 0 1-3.298 2.67L87.49 90.059a3 3 0 0 1-2.67-3.297l5.54-52.71a3 3 0 0 1 3.297-2.67", 437 clipRule: "evenodd" 438 } 439 ), 440 (0, import_jsx_runtime.jsx)( 441 "path", 442 { 443 fill: "#F0F0FF", 444 fillRule: "evenodd", 445 d: "m93.407 74.676 9.798-6.609a4 4 0 0 1 5.167.595l7.174 7.722a1 1 0 0 0 1.362.097l15.34-12.43a4 4 0 0 1 5.877.936l9.981 15.438 1.433 2.392-.686 8.124a1 1 0 0 1-1.107.91l-56.963-6.329a1 1 0 0 1-.885-1.085l.755-8.199z", 446 clipRule: "evenodd" 447 } 448 ), 449 (0, import_jsx_runtime.jsx)( 450 "path", 451 { 452 stroke: "#7B79FF", 453 strokeWidth: 2.5, 454 d: "m156.181 39.21-62.655-6.585c-.48-.05-.936.099-1.284.38a1.75 1.75 0 0 0-.64 1.178l-5.54 52.71c-.05.48.1.936.381 1.284s.697.588 1.177.639l62.655 6.585c.481.05.936-.099 1.284-.38s.589-.697.639-1.177l5.54-52.71a1.74 1.74 0 0 0-.38-1.284 1.74 1.74 0 0 0-1.177-.64Z", 455 clipRule: "evenodd" 456 } 457 ), 458 (0, import_jsx_runtime.jsx)( 459 "path", 460 { 461 fill: "#F0F0FF", 462 stroke: "#7B79FF", 463 strokeWidth: 2.5, 464 d: "M105.071 56.714a6 6 0 1 0 1.254-11.936 6 6 0 0 0-1.254 11.936Z" 465 } 466 ), 467 (0, import_jsx_runtime.jsx)( 468 "path", 469 { 470 stroke: "#7B79FF", 471 strokeLinecap: "round", 472 strokeWidth: 2.5, 473 d: "m91.396 76.222 11.809-8.155a4 4 0 0 1 5.167.594l7.174 7.723a1 1 0 0 0 1.362.096l15.34-12.43a4 4 0 0 1 5.877.936l11.064 17.556" 474 } 475 ) 476 ] }) }), 477 (0, import_jsx_runtime.jsxs)("defs", { children: [ 478 (0, import_jsx_runtime.jsx)("clipPath", { id: "EmptyPictures_svg__a", children: (0, import_jsx_runtime.jsx)("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) }), 479 (0, import_jsx_runtime.jsx)("clipPath", { id: "EmptyPictures_svg__b", children: (0, import_jsx_runtime.jsx)("path", { fill: "#fff", d: "M.667.797h216v120h-216z" }) }) 480 ] }) 481] }); 482var ForwardRef$k = (0, import_react.forwardRef)(SvgEmptyPictures); 483var SvgEnumerationField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 484 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6ECFC", stroke: "#E0C1F4", rx: 2.5 }), 485 (0, import_jsx_runtime.jsx)( 486 "path", 487 { 488 fill: "#9736E8", 489 d: "M12.75 12a.75.75 0 0 1 .75-.75h8a.75.75 0 1 1 0 1.5h-8a.75.75 0 0 1-.75-.75m8.75 3.25h-8a.75.75 0 1 0 0 1.5h8a.75.75 0 1 0 0-1.5m0 4h-8a.75.75 0 1 0 0 1.5h8a.75.75 0 1 0 0-1.5M10.75 15a1 1 0 1 0 0 2 1 1 0 0 0 0-2m0-4a1 1 0 1 0 0 2 1 1 0 0 0 0-2m0 8a1 1 0 1 0 0 2 1 1 0 0 0 0-2" 490 } 491 ) 492] }); 493var ForwardRef$j = (0, import_react.forwardRef)(SvgEnumerationField); 494var SvgFacebook = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 495 (0, import_jsx_runtime.jsx)( 496 "path", 497 { 498 fill: "#1977F3", 499 d: "M32 16c0-8.836-7.164-16-16-16S0 7.164 0 16c0 7.985 5.85 14.605 13.5 15.807v-11.18H9.437V16H13.5v-3.526c0-4.01 2.39-6.226 6.044-6.226 1.75 0 3.582.313 3.582.313V10.5h-2.018c-1.987 0-2.608 1.233-2.608 2.5V16h4.437l-.709 4.626H18.5v11.18C26.15 30.607 32 23.989 32 16" 500 } 501 ), 502 (0, import_jsx_runtime.jsx)( 503 "path", 504 { 505 fill: "#FEFEFE", 506 d: "M22.228 20.626 22.937 16H18.5v-3.002c0-1.264.619-2.5 2.608-2.5h2.018V6.562s-1.832-.313-3.582-.313c-3.654 0-6.044 2.214-6.044 6.226V16H9.437v4.626H13.5v11.18Q14.724 32 16 32c.85 0 1.685-.068 2.5-.194v-11.18z" 507 } 508 ) 509] }); 510var ForwardRef$i = (0, import_react.forwardRef)(SvgFacebook); 511var SvgFeatherSquare = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 512 (0, import_jsx_runtime.jsx)("path", { fill: "#9736E8", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }), 513 (0, import_jsx_runtime.jsx)( 514 "path", 515 { 516 fill: "#fff", 517 d: "M18.037 11.774a28.6 28.6 0 0 0-2.948 2.706c-1.995 2.109-3.55 4.093-4.761 6.06-.289.469-.574.945-.855 1.418a9 9 0 0 0-.463 1.536c-.074.37.275.68.577.395.312-.299.587-.64.851-.985.467-.608.906-1.237 1.342-1.867 3.37.242 7.27-2.048 8.933-4.857a.2.2 0 0 0 .017-.167.18.18 0 0 0-.114-.118c-.809-.27-1.798-.44-2.207-.462-.017 0-.034-.014-.037-.035a.04.04 0 0 1 .024-.043c1.113-.58 1.924-.647 2.877-.505.07.01.134-.046.16-.114.095-.217.356-.87.537-1.404a.2.2 0 0 0-.087-.239c-.71-.384-1.656-.643-2.035-.682-.017 0-.03-.018-.034-.036a.04.04 0 0 1 .024-.043c1.1-.483 1.485-.497 2.364-.302.087.018.17-.05.19-.142.433-1.714.574-3.197.608-3.68a.2.2 0 0 0-.057-.157.18.18 0 0 0-.148-.05c-2.444.356-4.403.865-6.093 1.55-.057.022-.11.072-.11.136.144.551-.242 1.209-.845 1.703a.04.04 0 0 1-.044.018.05.05 0 0 1-.027-.043c.004-.046.158-.665.067-1.116-.013-.064-.033-.125-.084-.16a.17.17 0 0 0-.17-.014c-7.924 3.811-5.922 10.098-5.922 10.098q.015.004.03.007c.895-1.86 1.904-3.232 3.49-5.035 1.178-1.337 2.331-2.425 3.525-3.325.75-.565 2.448-1.738 3.51-2.144a.3.3 0 0 1 .105-.021c.097 0 .177.064.2.16a.26.26 0 0 1-.046.228z" 518 } 519 ) 520] }); 521var ForwardRef$h = (0, import_react.forwardRef)(SvgFeatherSquare); 522var SvgGitHub = (props, ref) => (0, import_jsx_runtime.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: (0, import_jsx_runtime.jsx)( 523 "path", 524 { 525 fill: "#24292F", 526 fillRule: "evenodd", 527 d: "M15.952 0C7.132 0 0 7.184 0 16.07c0 7.105 4.57 13.118 10.908 15.247.792.16 1.083-.346 1.083-.772 0-.372-.027-1.65-.027-2.98-4.437.958-5.361-1.916-5.361-1.916-.713-1.862-1.77-2.34-1.77-2.34-1.452-.985.106-.985.106-.985 1.61.106 2.456 1.65 2.456 1.65 1.426 2.447 3.724 1.755 4.648 1.33.132-1.038.555-1.757 1.004-2.156-3.54-.372-7.263-1.756-7.263-7.929 0-1.756.634-3.193 1.637-4.31-.158-.399-.713-2.049.16-4.257 0 0 1.346-.426 4.383 1.65 1.3-.352 2.641-.531 3.988-.533 1.347 0 2.72.187 3.988.532 3.038-2.075 4.385-1.65 4.385-1.65.871 2.21.316 3.859.158 4.258 1.03 1.117 1.637 2.554 1.637 4.31 0 6.173-3.723 7.53-7.289 7.93.581.505 1.083 1.463 1.083 2.98 0 2.154-.026 3.884-.026 4.416 0 .426.29.932 1.082.772 6.34-2.13 10.908-8.142 10.908-15.246C31.904 7.184 24.748 0 15.952 0", 528 clipRule: "evenodd" 529 } 530) }); 531var ForwardRef$g = (0, import_react.forwardRef)(SvgGitHub); 532var SvgGlassesSquare = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 533 (0, import_jsx_runtime.jsx)("path", { fill: "#AC73E6", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }), 534 (0, import_jsx_runtime.jsx)( 535 "path", 536 { 537 fill: "#fff", 538 fillRule: "evenodd", 539 d: "M15.027 13.839c-3.19-.836-6.305-1.064-10.18-.608-1.215.152-1.063 1.975.076 2.203.304.836.456 2.355.912 3.267.987 2.279 5.622 1.975 7.369.835 1.14-.683 1.443-2.279 1.9-3.494.227-.684 1.595-.684 1.822 0 .38 1.215.76 2.81 1.9 3.494 1.747 1.14 6.381 1.444 7.369-.835.456-.912.607-2.431.911-3.267 1.14-.228 1.216-2.051.076-2.203-3.874-.456-6.989-.228-10.18.608-.455.075-1.519.075-1.975 0", 540 clipRule: "evenodd" 541 } 542 ) 543] }); 544var ForwardRef$f = (0, import_react.forwardRef)(SvgGlassesSquare); 545var SvgInformationSquare = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 546 (0, import_jsx_runtime.jsx)("path", { fill: "#4945FF", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }), 547 (0, import_jsx_runtime.jsx)( 548 "path", 549 { 550 fill: "#fff", 551 d: "M15.733 8c.343 0 .678.108.963.31s.507.49.639.826c.13.337.165.707.098 1.064a1.9 1.9 0 0 1-.474.942 1.7 1.7 0 0 1-.887.504 1.64 1.64 0 0 1-1.002-.105 1.76 1.76 0 0 1-.778-.678A1.9 1.9 0 0 1 14 9.841a1.9 1.9 0 0 1 .508-1.302c.325-.345.766-.539 1.225-.539M20 24h-8v-2.265h2.933v-6.23H12.8v-2.266h4.267v8.496H20z" 552 } 553 ) 554] }); 555var ForwardRef$e = (0, import_react.forwardRef)(SvgInformationSquare); 556var SvgJsonField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 557 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAF5FF", stroke: "#B8E1FF", rx: 2.5 }), 558 (0, import_jsx_runtime.jsx)( 559 "path", 560 { 561 fill: "#0C75AF", 562 d: "M11.425 15.468a2.2 2.2 0 0 1-.36.532q.22.24.36.532c.325.67.325 1.457.325 2.218 0 1.621.115 2 1.25 2a.75.75 0 1 1 0 1.5c-1.196 0-2.012-.431-2.425-1.282-.325-.67-.325-1.457-.325-2.218 0-1.621-.115-2-1.25-2a.75.75 0 1 1 0-1.5c1.135 0 1.25-.379 1.25-2 0-.76 0-1.547.325-2.218.413-.85 1.229-1.282 2.425-1.282a.75.75 0 1 1 0 1.5c-1.135 0-1.25.379-1.25 2 0 .76 0 1.547-.325 2.218M23 15.25c-1.135 0-1.25-.379-1.25-2 0-.76 0-1.547-.325-2.218-.413-.85-1.229-1.282-2.425-1.282a.75.75 0 1 0 0 1.5c1.135 0 1.25.379 1.25 2 0 .76 0 1.547.325 2.218q.142.292.363.532a2.2 2.2 0 0 0-.36.532c-.328.67-.328 1.457-.328 2.218 0 1.621-.115 2-1.25 2a.75.75 0 1 0 0 1.5c1.196 0 2.012-.431 2.425-1.282.325-.67.325-1.457.325-2.218 0-1.621.115-2 1.25-2a.75.75 0 1 0 0-1.5" 563 } 564 ) 565] }); 566var ForwardRef$d = (0, import_react.forwardRef)(SvgJsonField); 567var SvgMarkdownField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 568 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAF5FF", stroke: "#B8E1FF", rx: 2.5 }), 569 (0, import_jsx_runtime.jsx)( 570 "path", 571 { 572 fill: "#0C75AF", 573 d: "M9.75 12a.75.75 0 0 1 .75-.75h11a.75.75 0 1 1 0 1.5h-11a.75.75 0 0 1-.75-.75m.75 3.25h8a.75.75 0 1 0 0-1.5h-8a.75.75 0 1 0 0 1.5m11 1h-11a.75.75 0 1 0 0 1.5h11a.75.75 0 1 0 0-1.5m-3 2.5h-8a.75.75 0 1 0 0 1.5h8a.75.75 0 1 0 0-1.5" 574 } 575 ) 576] }); 577var ForwardRef$c = (0, import_react.forwardRef)(SvgMarkdownField); 578var SvgMediaField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 579 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F6ECFC", stroke: "#E0C1F4", rx: 2.5 }), 580 (0, import_jsx_runtime.jsx)( 581 "path", 582 { 583 fill: "#9736E8", 584 d: "M21.5 10.5h-11a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-9a1 1 0 0 0-1-1m-3.75 3a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-7.25 7v-1.75l3.25-3.25 5 5zm11 0h-1.336l-2.25-2.25 1.25-1.25 2.336 2.336z" 585 } 586 ) 587] }); 588var ForwardRef$b = (0, import_react.forwardRef)(SvgMediaField); 589var SvgMedium = (props, ref) => (0, import_jsx_runtime.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: (0, import_jsx_runtime.jsx)( 590 "path", 591 { 592 fill: "#32324D", 593 d: "M18.05 16.007c0 5.019-4.04 9.087-9.025 9.087-4.984 0-9.025-4.07-9.025-9.087C0 10.99 4.04 6.92 9.025 6.92s9.025 4.069 9.025 9.087M27.95 16.007c0 4.724-2.02 8.555-4.512 8.555s-4.513-3.831-4.513-8.555 2.02-8.555 4.513-8.555 4.512 3.83 4.512 8.555M32 16.007c0 4.231-.71 7.664-1.587 7.664s-1.587-3.432-1.587-7.664.71-7.664 1.587-7.664c.876 0 1.587 3.432 1.587 7.664" 594 } 595) }); 596var ForwardRef$a = (0, import_react.forwardRef)(SvgMedium); 597var SvgNumberField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 598 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FCECEA", stroke: "#F5C0B8", rx: 2.5 }), 599 (0, import_jsx_runtime.jsx)( 600 "path", 601 { 602 fill: "#D02B20", 603 d: "M8.68 20v-6.22h-.096l-1.902 1.322V13.64l2.004-1.392h1.616V20zm3.733 0v-1.09l2.498-2.466c1.09-1.058 1.385-1.45 1.385-1.992v-.017c0-.66-.45-1.122-1.192-1.122-.757 0-1.278.505-1.278 1.24v.028h-1.499l-.005-.022c0-1.488 1.16-2.508 2.857-2.508 1.595 0 2.713.913 2.713 2.25v.016c0 .881-.457 1.612-1.87 2.917l-1.434 1.337v.124h3.416V20zm9.974.172c-1.75 0-2.906-.94-3.013-2.326l-.005-.07h1.552l.005.06c.07.601.623 1.03 1.461 1.03.827 0 1.37-.461 1.37-1.116v-.011c0-.741-.553-1.15-1.493-1.15h-.887v-1.154h.865c.817 0 1.343-.43 1.343-1.059v-.01c0-.645-.446-1.042-1.209-1.042-.762 0-1.273.413-1.337 1.058l-.005.048H19.54l.005-.064c.113-1.386 1.203-2.288 2.83-2.288 1.665 0 2.74.838 2.74 2.073v.01c0 .967-.71 1.596-1.617 1.784v.032c1.155.107 1.907.773 1.907 1.826v.011c0 1.407-1.209 2.358-3.019 2.358" 604 } 605 ) 606] }); 607var ForwardRef$9 = (0, import_react.forwardRef)(SvgNumberField); 608var SvgPasswordField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 609 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#FDF4DC", stroke: "#FAE7B9", rx: 2.5 }), 610 (0, import_jsx_runtime.jsx)( 611 "path", 612 { 613 fill: "#D9822F", 614 d: "M21 13h-2v-1.5a3 3 0 0 0-6 0V13h-2a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-7a1 1 0 0 0-1-1m-5 5.25a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5M18 13h-4v-1.5a2 2 0 0 1 4 0z" 615 } 616 ) 617] }); 618var ForwardRef$8 = (0, import_react.forwardRef)(SvgPasswordField); 619var SvgPlaySquare = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 620 (0, import_jsx_runtime.jsx)("path", { fill: "#66B7F1", d: "M0 4a4 4 0 0 1 4-4h24a4 4 0 0 1 4 4v24a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4z" }), 621 (0, import_jsx_runtime.jsx)( 622 "path", 623 { 624 fill: "#fff", 625 fillRule: "evenodd", 626 d: "M12 10.921a.5.5 0 0 1 .773-.419l8.582 5.579a.5.5 0 0 1 0 .838l-8.582 5.579a.5.5 0 0 1-.773-.42z", 627 clipRule: "evenodd" 628 } 629 ) 630] }); 631var ForwardRef$7 = (0, import_react.forwardRef)(SvgPlaySquare); 632var SvgReddit = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 633 (0, import_jsx_runtime.jsx)( 634 "path", 635 { 636 fill: "#FF4500", 637 d: "M16 0C7.164 0 0 7.164 0 16a15.95 15.95 0 0 0 4.686 11.314L1.64 30.36c-.605.605-.177 1.639.678 1.639H16c8.836 0 16-7.164 16-16S24.836 0 16 0" 638 } 639 ), 640 (0, import_jsx_runtime.jsx)( 641 "path", 642 { 643 fill: "#fff", 644 d: "M19.255 7.545a2.668 2.668 0 0 0 5.261-.614 2.666 2.666 0 0 0-5.277-.54 4.307 4.307 0 0 0-3.84 4.277v.013c-2.345.099-4.487.767-6.187 1.82a3.736 3.736 0 1 0-3.869 6.34c.124 4.338 4.85 7.826 10.664 7.826s10.547-3.492 10.664-7.833a3.737 3.737 0 0 0-1.602-7.111c-.857 0-1.645.288-2.275.773-1.715-1.061-3.88-1.729-6.25-1.817v-.01a3.16 3.16 0 0 1 2.71-3.121zM9.062 17.829c.063-1.355.963-2.395 2.01-2.395 1.045 0 1.845 1.098 1.783 2.454-.063 1.354-.844 1.847-1.891 1.847S9 19.184 9.062 17.829m11.883-2.395c1.047 0 1.947 1.04 2.009 2.395s-.855 1.906-1.902 1.906-1.828-.491-1.89-1.848c-.063-1.355.735-2.453 1.783-2.453m-1.245 5.53c.196.02.321.224.245.406a4.268 4.268 0 0 1-7.875 0 .296.296 0 0 1 .245-.406c1.15-.116 2.394-.18 3.692-.18 1.3 0 2.542.064 3.693.18" 645 } 646 ) 647] }); 648var ForwardRef$6 = (0, import_react.forwardRef)(SvgReddit); 649var SvgRelationField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 650 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F0F0FF", stroke: "#D9D8FF", rx: 2.5 }), 651 (0, import_jsx_runtime.jsx)( 652 "path", 653 { 654 fill: "#4945FF", 655 d: "M16.523 19.72a.75.75 0 0 1 0 1.063l-.371.371a3.751 3.751 0 1 1-5.305-5.305l1.507-1.507a3.75 3.75 0 0 1 5.146-.155.753.753 0 0 1-1 1.126 2.25 2.25 0 0 0-3.086.091l-1.506 1.505a2.25 2.25 0 0 0 3.183 3.183l.37-.371a.747.747 0 0 1 1.062 0m4.63-8.874a3.755 3.755 0 0 0-5.305 0l-.371.37a.751.751 0 1 0 1.062 1.063l.372-.37a2.25 2.25 0 1 1 3.182 3.182l-1.507 1.507a2.25 2.25 0 0 1-3.086.09.755.755 0 0 0-1.211.315.75.75 0 0 0 .211.81 3.75 3.75 0 0 0 5.144-.152l1.507-1.507a3.756 3.756 0 0 0 .002-5.307z" 656 } 657 ) 658] }); 659var ForwardRef$5 = (0, import_react.forwardRef)(SvgRelationField); 660var SvgSingleType = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 661 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#0C75AF", stroke: "#0C75AF", rx: 2.5 }), 662 (0, import_jsx_runtime.jsx)( 663 "path", 664 { 665 fill: "#fff", 666 d: "M8.523 17.586h1.711c.123.727.844 1.195 1.758 1.195.95 0 1.606-.445 1.606-1.107 0-.492-.352-.797-1.266-1.084l-.879-.276c-1.248-.386-1.963-1.218-1.963-2.308 0-1.547 1.418-2.678 3.328-2.678 1.858 0 3.164 1.078 3.217 2.62h-1.67c-.105-.71-.744-1.184-1.617-1.184-.826 0-1.459.433-1.459 1.03 0 .47.34.815 1.137 1.067l.867.27c1.436.451 2.086 1.154 2.086 2.297 0 1.675-1.418 2.789-3.516 2.789-1.922 0-3.234-.99-3.34-2.631M20.107 20h-1.78l1.487-6.943h-2.53l.31-1.512h6.843l-.31 1.512h-2.531z" 667 } 668 ) 669] }); 670var ForwardRef$4 = (0, import_react.forwardRef)(SvgSingleType); 671var SvgStrapi = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 672 (0, import_jsx_runtime.jsx)( 673 "path", 674 { 675 fill: "#4945FF", 676 d: "M0 11.093c0-5.23 0-7.844 1.625-9.468C3.249 0 5.864 0 11.093 0h9.814c5.23 0 7.844 0 9.468 1.625C32 3.249 32 5.864 32 11.093v9.814c0 5.23 0 7.844-1.625 9.468C28.751 32 26.136 32 20.907 32h-9.814c-5.23 0-7.844 0-9.468-1.625C0 28.751 0 26.136 0 20.907z" 677 } 678 ), 679 (0, import_jsx_runtime.jsx)( 680 "path", 681 { 682 fill: "#fff", 683 fillRule: "evenodd", 684 d: "M22.08 9.707H11.307V15.2H16.8v5.493h5.493V9.92a.213.213 0 0 0-.213-.213", 685 clipRule: "evenodd" 686 } 687 ), 688 (0, import_jsx_runtime.jsx)("path", { fill: "#fff", d: "M16.8 15.2h-.213v.213h.213z" }), 689 (0, import_jsx_runtime.jsx)( 690 "path", 691 { 692 fill: "#9593FF", 693 d: "M11.307 15.2h5.28c.117 0 .213.096.213.213v5.28h-5.28a.213.213 0 0 1-.213-.213zM16.8 20.693h5.493l-5.31 5.312a.107.107 0 0 1-.183-.076zM11.307 15.2H6.07a.107.107 0 0 1-.076-.182l5.312-5.311z" 694 } 695 ) 696] }); 697var ForwardRef$3 = (0, import_react.forwardRef)(SvgStrapi); 698var SvgTextField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 699 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#EAFBE7", stroke: "#C6F0C2", rx: 2.5 }), 700 (0, import_jsx_runtime.jsx)( 701 "path", 702 { 703 fill: "#328048", 704 d: "M13.679 11.18a.75.75 0 0 0-1.358 0l-4 8.5a.75.75 0 0 0 1.357.64l.974-2.07h4.695l.974 2.07a.75.75 0 1 0 1.358-.64zm-2.32 5.57 1.64-3.489 1.643 3.489zm9.14-3c-.865 0-1.547.241-2.027.717a.749.749 0 1 0 1.056 1.063c.188-.187.516-.283.972-.283.584 0 1.074.323 1.21.757a3 3 0 0 0-1.21-.254c-1.516 0-2.75 1.121-2.75 2.5s1.234 2.5 2.75 2.5c.479.001.95-.114 1.375-.336A.75.75 0 0 0 23.25 20v-3.75c0-1.379-1.234-2.5-2.75-2.5m0 5.5c-.687 0-1.25-.449-1.25-1s.563-1 1.25-1 1.25.449 1.25 1-.562 1-1.25 1" 705 } 706 ) 707] }); 708var ForwardRef$22 = (0, import_react.forwardRef)(SvgTextField); 709var SvgUidField = (props, ref) => (0, import_jsx_runtime.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: [ 710 (0, import_jsx_runtime.jsx)("rect", { width: 31, height: 23, x: 0.5, y: 4.5, fill: "#F0F0FF", stroke: "#D9D8FF", rx: 2.5 }), 711 (0, import_jsx_runtime.jsx)( 712 "path", 713 { 714 fill: "#4945FF", 715 d: "M18 9a5.005 5.005 0 0 0-4.756 6.549l-3.598 3.597a.5.5 0 0 0-.146.354V22a.5.5 0 0 0 .5.5h2.5a.5.5 0 0 0 .5-.5v-1h1a.5.5 0 0 0 .5-.5v-1h1a.5.5 0 0 0 .354-.146l.597-.598A5 5 0 1 0 18 9m1.25 4.75a1 1 0 1 1 0-2 1 1 0 0 1 0 2" 716 } 717 ) 718] }); 719var ForwardRef$1 = (0, import_react.forwardRef)(SvgUidField); 720var SvgX = (props, ref) => (0, import_jsx_runtime.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: 16, height: 16, ref, ...props, children: (0, import_jsx_runtime.jsxs)("g", { fillRule: "evenodd", clipRule: "evenodd", children: [ 721 (0, import_jsx_runtime.jsx)( 722 "path", 723 { 724 fill: "#FAFAFA", 725 d: "M6.566 6.533c.064.092 1.557 2.264 3.317 4.828l3.617 5.268c.23.334.418.614.418.622s-.086.114-.19.234-.4.462-.654.76l-3.258 3.787c-1.153 1.34-1.32 1.534-2.197 2.556-.47.546-.919 1.068-1 1.16s-.146.177-.146.189c0 .014.295.021.83.021h.83l.911-1.062 1.1-1.279a888 888 0 0 0 2.243-2.61c.043-.048.377-.437.744-.864s.676-.787.689-.8l.431-.502a9 9 0 0 1 .424-.478c.009 0 1.164 1.672 2.567 3.717l2.608 3.797.055.08h2.846c2.34.001 2.843-.004 2.834-.027-.01-.025-1.373-2.013-4.87-7.103-2.517-3.665-2.852-4.157-2.843-4.182.01-.024.353-.425 2.607-3.049l1.779-2.07c.062-.07.388-.45.724-.84l1.96-2.283c.027-.035-.02-.038-.814-.038h-.842l-.375.437a1174 1174 0 0 1-2.23 2.594c-.084.096-.506.586-.938 1.09a129 129 0 0 1-1.004 1.167c-.186.22-.374.44-1.239 1.442-.38.44-.399.459-.43.418-.02-.023-1.132-1.64-2.473-3.594L12.16 6.366H6.45zm2.228 1.165 1.186 1.7c1.196 1.71 5.895 8.436 8.917 12.763a421 421 0 0 0 1.783 2.54c.02.022.301.026 1.314.022l1.287-.005-3.37-4.823-5.963-8.534-2.593-3.712-1.3-.005-1.3-.006z" 726 } 727 ), 728 (0, import_jsx_runtime.jsx)( 729 "path", 730 { 731 fill: "#040404", 732 d: "M0 16v16l16.005-.005 16.006-.006.005-15.994L32.022 0H0zm.01.01c0 8.8.003 12.4.006 8s.003-11.6 0-16-.005-.8-.005 8m6.556-9.477c.064.092 1.557 2.264 3.317 4.828l3.617 5.268c.23.334.418.614.418.622s-.086.114-.19.234-.399.462-.654.76l-2.014 2.34-1.244 1.447c-1.153 1.34-1.32 1.534-2.197 2.556-.469.546-.918 1.068-1 1.16-.08.092-.146.177-.146.189 0 .014.295.021.83.021h.83l.911-1.062c.502-.585.996-1.16 1.1-1.279a888 888 0 0 0 2.243-2.61c.043-.048.377-.437.744-.864l.689-.8.431-.502a9 9 0 0 1 .424-.478c.009 0 1.164 1.672 2.567 3.717l2.608 3.797.056.08h2.845c2.34.001 2.843-.004 2.834-.027-.01-.025-1.373-2.013-4.87-7.103-2.517-3.665-2.852-4.157-2.842-4.182.009-.024.352-.425 2.606-3.049l1.78-2.07.723-.84 1.96-2.283c.027-.035-.02-.038-.814-.038h-.842l-.375.437a1129 1129 0 0 1-2.23 2.594c-.084.096-.506.586-.938 1.09a129 129 0 0 1-1.004 1.167c-.186.22-.374.44-1.239 1.442-.38.44-.399.459-.43.418-.02-.023-1.132-1.64-2.473-3.594L12.16 6.366H6.45zm2.228 1.165 1.186 1.7 8.918 12.763a416 416 0 0 0 1.782 2.54c.02.022.301.026 1.314.022l1.287-.005-3.37-4.823-5.963-8.534-2.593-3.712-1.3-.005-1.3-.006z" 733 } 734 ) 735] }) }); 736var ForwardRef = (0, import_react.forwardRef)(SvgX); 737
vendor: 262 bytes, lines 738-740
738// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/hooks/useAPIErrorHandler.mjs 739var React = __toESM(require_react(), 1); 740
vendor: 419 bytes, lines 741-749
741// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/utils/getPrefixedId.mjs 742function getPrefixedId(message, callback) { 743 const prefixedMessage = `apiError.${message}`; 744 if (typeof callback === "function") { 745 return callback(prefixedMessage); 746 } 747 return prefixedMessage; 748} 749
vendor: 1,364 bytes, lines 750-787
750// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/utils/normalizeAPIError.mjs 751function normalizeError(error, { name, intlMessagePrefixCallback }) { 752 const { message } = error; 753 const normalizedError = { 754 id: getPrefixedId(message, intlMessagePrefixCallback), 755 defaultMessage: message, 756 name: error.name ?? name, 757 values: {} 758 }; 759 if ("path" in error) { 760 normalizedError.values = { 761 path: error.path.join(".") 762 }; 763 } 764 return normalizedError; 765} 766var validateErrorIsYupValidationError = (err) => typeof err.details === "object" && err.details !== null && "errors" in err.details; 767function normalizeAPIError(apiError, intlMessagePrefixCallback) { 768 var _a, _b; 769 const error = (_b = (_a = apiError.response) == null ? void 0 : _a.data) == null ? void 0 : _b.error; 770 if (error) { 771 if (validateErrorIsYupValidationError(error)) { 772 return { 773 name: error.name, 774 message: (error == null ? void 0 : error.message) || null, 775 errors: error.details.errors.map((err) => normalizeError(err, { 776 name: error.name, 777 intlMessagePrefixCallback 778 })) 779 }; 780 } 781 return normalizeError(error, { 782 intlMessagePrefixCallback 783 }); 784 } 785 return null; 786} 787
vendor: 3,121 bytes, lines 788-888
788// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/hooks/useAPIErrorHandler.mjs 789function useAPIErrorHandler(intlMessagePrefixCallback) { 790 const { formatMessage } = useIntl(); 791 const formatError = React.useCallback((error) => { 792 try { 793 const formattedErr = formatAPIError(error, { 794 intlMessagePrefixCallback, 795 formatMessage 796 }); 797 if (!formattedErr) { 798 return formatFetchError(error, { 799 intlMessagePrefixCallback, 800 formatMessage 801 }); 802 } 803 return formattedErr; 804 } catch (_) { 805 throw new Error("formatAPIError: Unknown error:", error); 806 } 807 }, [ 808 formatMessage, 809 intlMessagePrefixCallback 810 ]); 811 return { 812 /** 813 * @alpha 814 * Convert ValidationErrors from the API into an object that can be used by forms. 815 */ 816 _unstableFormatValidationErrors: React.useCallback((error) => { 817 if (typeof error.details === "object" && error.details !== null) { 818 if ("errors" in error.details && Array.isArray(error.details.errors)) { 819 const validationErrors = error.details.errors; 820 return validationErrors.reduce((acc, err) => { 821 const { path, message } = err; 822 return setIn(acc, path.join("."), message); 823 }, {}); 824 } else { 825 const details = error.details; 826 return Object.keys(details).reduce((acc, key) => { 827 const messages = details[key]; 828 return { 829 ...acc, 830 [key]: messages.join(", ") 831 }; 832 }, {}); 833 } 834 } else { 835 return {}; 836 } 837 }, []), 838 /** 839 * @alpha 840 * This handles the errors given from `redux-toolkit`'s axios based baseQuery function. 841 */ 842 _unstableFormatAPIError: React.useCallback((error) => { 843 const err = { 844 response: { 845 data: { 846 error 847 } 848 } 849 }; 850 if (!error.message) { 851 return "Unknown error occurred."; 852 } 853 return formatError(err); 854 }, [ 855 formatError 856 ]), 857 formatAPIError: formatError 858 }; 859} 860function formatFetchError(error, { intlMessagePrefixCallback, formatMessage }) { 861 const { code, message } = error; 862 return formatMessage({ 863 id: getPrefixedId(message, intlMessagePrefixCallback), 864 defaultMessage: message 865 }, { 866 code 867 }); 868} 869function formatAPIError(error, { formatMessage, intlMessagePrefixCallback }) { 870 if (!formatMessage) { 871 throw new Error("The formatMessage callback is a mandatory argument."); 872 } 873 const normalizedError = normalizeAPIError(error, intlMessagePrefixCallback); 874 if (!normalizedError) { 875 return null; 876 } 877 if ("message" in normalizedError && normalizedError.message !== null) { 878 return normalizedError.message; 879 } 880 if ("errors" in normalizedError) { 881 return normalizedError.errors.map(({ id, defaultMessage, values }) => formatMessage({ 882 id, 883 defaultMessage 884 }, values)).join("\n"); 885 } 886 return formatMessage(normalizedError); 887} 888
vendor: 5,419 bytes, lines 889-1073
889// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/components/PageHelpers.mjs 890var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); 891var React2 = __toESM(require_react(), 1); 892var PageMain = ({ children, ...restProps }) => { 893 return (0, import_jsx_runtime2.jsx)(Main, { 894 ...restProps, 895 children 896 }); 897}; 898var Loading = ({ children = "Loading content." }) => { 899 return (0, import_jsx_runtime2.jsx)(PageMain, { 900 height: "100dvh", 901 "aria-busy": true, 902 children: (0, import_jsx_runtime2.jsx)(Flex, { 903 alignItems: "center", 904 height: "100%", 905 justifyContent: "center", 906 children: (0, import_jsx_runtime2.jsx)(Loader, { 907 children 908 }) 909 }) 910 }); 911}; 912var Error2 = (props) => { 913 const { formatMessage } = useIntl(); 914 return (0, import_jsx_runtime2.jsx)(PageMain, { 915 height: "100%", 916 children: (0, import_jsx_runtime2.jsx)(Flex, { 917 alignItems: "center", 918 height: "100%", 919 justifyContent: "center", 920 children: (0, import_jsx_runtime2.jsx)(EmptyStateLayout, { 921 icon: (0, import_jsx_runtime2.jsx)(ForwardRef$2, { 922 width: "16rem" 923 }), 924 content: formatMessage({ 925 id: "anErrorOccurred", 926 defaultMessage: "Whoops! Something went wrong. Please, try again." 927 }), 928 ...props 929 }) 930 }) 931 }); 932}; 933var NoPermissions = (props) => { 934 const { formatMessage } = useIntl(); 935 return (0, import_jsx_runtime2.jsx)(PageMain, { 936 height: "100%", 937 children: (0, import_jsx_runtime2.jsx)(Flex, { 938 alignItems: "center", 939 height: "100%", 940 justifyContent: "center", 941 children: (0, import_jsx_runtime2.jsx)(Box, { 942 minWidth: "50%", 943 children: (0, import_jsx_runtime2.jsx)(EmptyStateLayout, { 944 icon: (0, import_jsx_runtime2.jsx)(ForwardRef$l, { 945 width: "16rem" 946 }), 947 content: formatMessage({ 948 id: "app.components.EmptyStateLayout.content-permissions", 949 defaultMessage: "You don't have the permissions to access that content" 950 }), 951 ...props 952 }) 953 }) 954 }) 955 }); 956}; 957var NoData = (props) => { 958 const { formatMessage } = useIntl(); 959 return (0, import_jsx_runtime2.jsx)(PageMain, { 960 height: "100%", 961 background: "neutral100", 962 children: (0, import_jsx_runtime2.jsx)(Flex, { 963 alignItems: "center", 964 height: "100%", 965 width: "100%", 966 justifyContent: "center", 967 children: (0, import_jsx_runtime2.jsx)(Box, { 968 minWidth: "50%", 969 children: (0, import_jsx_runtime2.jsx)(EmptyStateLayout, { 970 icon: (0, import_jsx_runtime2.jsx)(ForwardRef$m, { 971 width: "16rem" 972 }), 973 action: props.action, 974 content: formatMessage({ 975 id: "app.components.EmptyStateLayout.content-document", 976 defaultMessage: "No content found" 977 }), 978 ...props 979 }) 980 }) 981 }) 982 }); 983}; 984var Protect = ({ permissions = [], children }) => { 985 const userPermissions = useAuth("Protect", (state) => state.permissions); 986 const { toggleNotification } = useNotification(); 987 const { _unstableFormatAPIError: formatAPIError2 } = useAPIErrorHandler(); 988 const matchingPermissions = userPermissions.filter((permission) => permissions.findIndex((perm) => perm.action === permission.action && perm.subject === permission.subject) >= 0); 989 const shouldCheckConditions = matchingPermissions.some((perm) => Array.isArray(perm.conditions) && perm.conditions.length > 0); 990 const { isLoading, error, data } = useCheckPermissionsQuery({ 991 permissions: matchingPermissions.map((perm) => ({ 992 action: perm.action, 993 subject: perm.subject 994 })) 995 }, { 996 skip: !shouldCheckConditions 997 }); 998 React2.useEffect(() => { 999 if (error) { 1000 toggleNotification({ 1001 type: "danger", 1002 message: formatAPIError2(error) 1003 }); 1004 } 1005 }, [ 1006 error, 1007 formatAPIError2, 1008 toggleNotification 1009 ]); 1010 if (isLoading) { 1011 return (0, import_jsx_runtime2.jsx)(Loading, {}); 1012 } 1013 if (error) { 1014 return (0, import_jsx_runtime2.jsx)(Error2, {}); 1015 } 1016 const { data: permissionsData } = data || {}; 1017 const canAccess = shouldCheckConditions && permissionsData ? !permissionsData.includes(false) : matchingPermissions.length > 0; 1018 if (!canAccess) { 1019 return (0, import_jsx_runtime2.jsx)(NoPermissions, {}); 1020 } 1021 return (0, import_jsx_runtime2.jsx)(import_jsx_runtime2.Fragment, { 1022 children: typeof children === "function" ? children({ 1023 permissions: matchingPermissions 1024 }) : children 1025 }); 1026}; 1027var Title = ({ children: title }) => { 1028 React2.useEffect(() => { 1029 document.title = `${title} | Strapi`; 1030 }, [ 1031 title 1032 ]); 1033 return null; 1034}; 1035var Page = { 1036 Error: Error2, 1037 Loading, 1038 NoPermissions, 1039 Protect, 1040 NoData, 1041 Main: PageMain, 1042 Title 1043}; 1044 1045export { 1046 ForwardRef$x, 1047 ForwardRef$w, 1048 ForwardRef$u, 1049 ForwardRef$t, 1050 ForwardRef$s, 1051 ForwardRef$p, 1052 ForwardRef$o, 1053 ForwardRef$m, 1054 ForwardRef$l, 1055 ForwardRef$k, 1056 ForwardRef$j, 1057 ForwardRef$g, 1058 ForwardRef$f, 1059 ForwardRef$d, 1060 ForwardRef$c, 1061 ForwardRef$b, 1062 ForwardRef$a, 1063 ForwardRef$9, 1064 ForwardRef$8, 1065 ForwardRef$5, 1066 ForwardRef$4, 1067 ForwardRef$22 as ForwardRef$2, 1068 ForwardRef$1, 1069 ForwardRef, 1070 useAPIErrorHandler, 1071 Page 1072}; 1073//# sourceMappingURL=chunk-GS5WUXY5.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.