PageSourceSearch

https://razorcms-test.up.railway.app/admin/node_modules/.strapi/vite/deps/chunk-OMT2EVX4.js?v=a434cf15

js razorcms-test.up.railway.app collected 2026-10-03 12:16:44 UTC 6,014 bytes, 201 lines download raw bytes

1import {
2  adminApi,
3  require_baseIndexOf,
4  require_trimmedEndIndex
5} from "/admin/node_modules/.strapi/vite/deps/chunk-I5GSXQM4.js?v=a434cf15";
6import {
7  require_castSlice,
8  require_stringToArray
9} from "/admin/node_modules/.strapi/vite/deps/chunk-K7PACU3O.js?v=a434cf15";
10import {
11  require_baseToString,
12  require_toString
13} from "/admin/node_modules/.strapi/vite/deps/chunk-ZPLLTQTO.js?v=a434cf15";
14import {
15  __commonJS,
16  __toESM
17} from "/admin/node_modules/.strapi/vite/deps/chunk-X6GFWOGJ.js?v=a434cf15";
18
vendor: 503 bytes, lines 19-32
19// node_modules/.pnpm/[email protected]/node_modules/lodash/_charsEndIndex.js
20var require_charsEndIndex = __commonJS({
21  "node_modules/.pnpm/[email protected]/node_modules/lodash/_charsEndIndex.js"(exports, module) {
22    var baseIndexOf = require_baseIndexOf();
23    function charsEndIndex(strSymbols, chrSymbols) {
24      var index = strSymbols.length;
25      while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {
26      }
27      return index;
28    }
29    module.exports = charsEndIndex;
30  }
31});
32
vendor: 958 bytes, lines 33-56
33// node_modules/.pnpm/[email protected]/node_modules/lodash/trimEnd.js
34var require_trimEnd = __commonJS({
35  "node_modules/.pnpm/[email protected]/node_modules/lodash/trimEnd.js"(exports, module) {
36    var baseToString = require_baseToString();
37    var castSlice = require_castSlice();
38    var charsEndIndex = require_charsEndIndex();
39    var stringToArray = require_stringToArray();
40    var toString = require_toString();
41    var trimmedEndIndex = require_trimmedEndIndex();
42    function trimEnd2(string, chars, guard) {
43      string = toString(string);
44      if (string && (guard || chars === void 0)) {
45        return string.slice(0, trimmedEndIndex(string) + 1);
46      }
47      if (!string || !(chars = baseToString(chars))) {
48        return string;
49      }
50      var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1;
51      return castSlice(strSymbols, 0, end).join("");
52    }
53    module.exports = trimEnd2;
54  }
55});
56
vendor: 655 bytes, lines 57-72
57// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/utils/urls.mjs
58var import_trimEnd = __toESM(require_trimEnd(), 1);
59var prefixFileUrlWithBackendUrl = (fileURL) => {
60  return !!fileURL && fileURL.startsWith("/") ? `${window.strapi.backendURL}${fileURL}` : fileURL;
61};
62var createAbsoluteUrl = (url) => {
63  if (!url) {
64    return window.location.origin;
65  }
66  if (url.startsWith("/")) {
67    return (0, import_trimEnd.default)(new URL(url, window.location.origin).toString(), "/");
68  } else {
69    return url;
70  }
71};
72
vendor: 3,380 bytes, lines 73-201
73// node_modules/.pnpm/@[email protected]_@[email protected]_@[email protected]_@codemirror+langua_q7p5l5qq6toq5swdfaay2akjmi/node_modules/@strapi/admin/dist/admin/admin/src/services/admin.mjs
74var admin = adminApi.enhanceEndpoints({
75  addTagTypes: [
76    "ProjectSettings",
77    "LicenseLimits",
78    "LicenseTrialTimeLeft"
79  ]
80}).injectEndpoints({
81  endpoints: (builder) => ({
82    init: builder.query({
83      query: () => ({
84        url: "/admin/init",
85        method: "GET"
86      }),
87      transformResponse(res) {
88        return res.data;
89      },
90      providesTags: [
91        "ProjectSettings"
92      ]
93    }),
94    information: builder.query({
95      query: () => ({
96        url: "/admin/information",
97        method: "GET"
98      }),
99      transformResponse(res) {
100        return res.data;
101      }
102    }),
103    telemetryProperties: builder.query({
104      query: () => ({
105        url: "/admin/telemetry-properties",
106        method: "GET",
107        config: {
108          validateStatus: (status) => status < 500
109        }
110      }),
111      transformResponse(res) {
112        return res.data;
113      }
114    }),
115    projectSettings: builder.query({
116      query: () => ({
117        url: "/admin/project-settings",
118        method: "GET"
119      }),
120      providesTags: [
121        "ProjectSettings"
122      ],
123      transformResponse(data) {
124        return {
125          authLogo: data.authLogo ? {
126            name: data.authLogo.name,
127            url: prefixFileUrlWithBackendUrl(data.authLogo.url)
128          } : void 0,
129          menuLogo: data.menuLogo ? {
130            name: data.menuLogo.name,
131            url: prefixFileUrlWithBackendUrl(data.menuLogo.url)
132          } : void 0
133        };
134      }
135    }),
136    updateProjectSettings: builder.mutation({
137      query: (data) => ({
138        url: "/admin/project-settings",
139        method: "POST",
140        data,
141        config: {
142          headers: {
143            "Content-Type": "multipart/form-data"
144          }
145        }
146      }),
147      invalidatesTags: [
148        "ProjectSettings"
149      ]
150    }),
151    getPlugins: builder.query({
152      query: () => ({
153        url: "/admin/plugins",
154        method: "GET"
155      })
156    }),
157    getLicenseLimits: builder.query({
158      query: () => ({
159        url: "/admin/license-limit-information",
160        method: "GET"
161      }),
162      providesTags: [
163        "LicenseLimits"
164      ]
165    }),
166    getLicenseTrialTimeLeft: builder.query({
167      query: () => ({
168        url: "/admin/license-trial-time-left",
169        method: "GET"
170      }),
171      providesTags: [
172        "LicenseTrialTimeLeft"
173      ]
174    }),
175    getGuidedTourMeta: builder.query({
176      query: () => ({
177        url: "/admin/guided-tour-meta",
178        method: "GET"
179      }),
180      providesTags: [
181        "GuidedTourMeta"
182      ]
183    })
184  }),
185  overrideExisting: false
186});
187var { useInitQuery, useTelemetryPropertiesQuery, useInformationQuery, useProjectSettingsQuery, useUpdateProjectSettingsMutation, useGetPluginsQuery, useGetLicenseLimitsQuery, useGetLicenseTrialTimeLeftQuery, useGetGuidedTourMetaQuery } = admin;
188
189export {
190  createAbsoluteUrl,
191  useInitQuery,
192  useTelemetryPropertiesQuery,
193  useInformationQuery,
194  useProjectSettingsQuery,
195  useUpdateProjectSettingsMutation,
196  useGetPluginsQuery,
197  useGetLicenseLimitsQuery,
198  useGetLicenseTrialTimeLeftQuery,
199  useGetGuidedTourMetaQuery
200};
201//# sourceMappingURL=chunk-OMT2EVX4.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.