node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
'use strict';
const isBaseQueryError = (error)=>{
return typeof error !== 'undefined' && error.name !== undefined;
};
exports.isBaseQueryError = isBaseQueryError;
//# sourceMappingURL=api.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"api.js","sources":["../../../admin/src/utils/api.ts"],"sourcesContent":["import { SerializedError } from '@reduxjs/toolkit';\nimport { ApiError } from '@strapi/admin/strapi-admin';\n\ntype BaseQueryError = ApiError | SerializedError;\n\nconst isBaseQueryError = (error?: BaseQueryError): error is BaseQueryError => {\n return typeof error !== 'undefined' && error.name !== undefined;\n};\n\nexport { isBaseQueryError };\nexport type { BaseQueryError };\n"],"names":["isBaseQueryError","error","name","undefined"],"mappings":";;AAKA,MAAMA,mBAAmB,CAACC,KAAAA,GAAAA;AACxB,IAAA,OAAO,OAAOA,KAAAA,KAAU,WAAeA,IAAAA,KAAAA,CAAMC,IAAI,KAAKC,SAAAA;AACxD;;;;"}

View File

@@ -0,0 +1,6 @@
const isBaseQueryError = (error)=>{
return typeof error !== 'undefined' && error.name !== undefined;
};
export { isBaseQueryError };
//# sourceMappingURL=api.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"api.mjs","sources":["../../../admin/src/utils/api.ts"],"sourcesContent":["import { SerializedError } from '@reduxjs/toolkit';\nimport { ApiError } from '@strapi/admin/strapi-admin';\n\ntype BaseQueryError = ApiError | SerializedError;\n\nconst isBaseQueryError = (error?: BaseQueryError): error is BaseQueryError => {\n return typeof error !== 'undefined' && error.name !== undefined;\n};\n\nexport { isBaseQueryError };\nexport type { BaseQueryError };\n"],"names":["isBaseQueryError","error","name","undefined"],"mappings":"AAKA,MAAMA,mBAAmB,CAACC,KAAAA,GAAAA;AACxB,IAAA,OAAO,OAAOA,KAAAA,KAAU,WAAeA,IAAAA,KAAAA,CAAMC,IAAI,KAAKC,SAAAA;AACxD;;;;"}

View File

@@ -0,0 +1,11 @@
'use strict';
const prefixPluginTranslations = (trad, pluginId)=>{
return Object.keys(trad).reduce((acc, current)=>{
acc[`${pluginId}.${current}`] = trad[current];
return acc;
}, {});
};
exports.prefixPluginTranslations = prefixPluginTranslations;
//# sourceMappingURL=prefixPluginTranslations.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"prefixPluginTranslations.js","sources":["../../../admin/src/utils/prefixPluginTranslations.ts"],"sourcesContent":["type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n"],"names":["prefixPluginTranslations","trad","pluginId","Object","keys","reduce","acc","current"],"mappings":";;AAEMA,MAAAA,wBAAAA,GAA2B,CAACC,IAAmBC,EAAAA,QAAAA,GAAAA;AAInD,IAAA,OAAOC,OAAOC,IAAI,CAACH,MAAMI,MAAM,CAAC,CAACC,GAAKC,EAAAA,OAAAA,GAAAA;AACpCD,QAAAA,GAAG,CAAC,CAAC,EAAEJ,QAAAA,CAAS,CAAC,EAAEK,OAAQ,CAAA,CAAC,CAAC,GAAGN,IAAI,CAACM,OAAQ,CAAA;QAC7C,OAAOD,GAAAA;AACT,KAAA,EAAG,EAAC,CAAA;AACN;;;;"}

View File

@@ -0,0 +1,9 @@
const prefixPluginTranslations = (trad, pluginId)=>{
return Object.keys(trad).reduce((acc, current)=>{
acc[`${pluginId}.${current}`] = trad[current];
return acc;
}, {});
};
export { prefixPluginTranslations };
//# sourceMappingURL=prefixPluginTranslations.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"prefixPluginTranslations.mjs","sources":["../../../admin/src/utils/prefixPluginTranslations.ts"],"sourcesContent":["type TradOptions = Record<string, string>;\n\nconst prefixPluginTranslations = (trad: TradOptions, pluginId: string): TradOptions => {\n if (!pluginId) {\n throw new TypeError(\"pluginId can't be empty\");\n }\n return Object.keys(trad).reduce((acc, current) => {\n acc[`${pluginId}.${current}`] = trad[current];\n return acc;\n }, {} as TradOptions);\n};\n\nexport { prefixPluginTranslations };\n"],"names":["prefixPluginTranslations","trad","pluginId","Object","keys","reduce","acc","current"],"mappings":"AAEMA,MAAAA,wBAAAA,GAA2B,CAACC,IAAmBC,EAAAA,QAAAA,GAAAA;AAInD,IAAA,OAAOC,OAAOC,IAAI,CAACH,MAAMI,MAAM,CAAC,CAACC,GAAKC,EAAAA,OAAAA,GAAAA;AACpCD,QAAAA,GAAG,CAAC,CAAC,EAAEJ,QAAAA,CAAS,CAAC,EAAEK,OAAQ,CAAA,CAAC,CAAC,GAAGN,IAAI,CAACM,OAAQ,CAAA;QAC7C,OAAOD,GAAAA;AACT,KAAA,EAAG,EAAC,CAAA;AACN;;;;"}

View File

@@ -0,0 +1,42 @@
'use strict';
const getTimezoneOffset = (timezone, date)=>{
try {
const offsetPart = new Intl.DateTimeFormat('en', {
timeZone: timezone,
timeZoneName: 'longOffset'
}).formatToParts(date).find((part)=>part.type === 'timeZoneName');
const offset = offsetPart ? offsetPart.value : '';
// We want to show time based on UTC, not GMT so we swap that.
let utcOffset = offset.replace('GMT', 'UTC');
// For perfect UTC (UTC+0:00) we only get the string UTC, So we need to append the 0's.
if (!utcOffset.includes('+') && !utcOffset.includes('-')) {
utcOffset = `${utcOffset}+00:00`;
}
return utcOffset;
} catch (error) {
// When timezone is invalid we catch the error and return empty to don't break the app
return '';
}
};
const getTimezones = (selectedDate)=>{
const timezoneList = Intl.supportedValuesOf('timeZone').map((timezone)=>{
// Timezone will be in the format GMT${OFFSET} where offset could be nothing,
// a four digit string e.g. +05:00 or -08:00
const utcOffset = getTimezoneOffset(timezone, selectedDate);
// Offset and timezone are concatenated with '&', so to split and save the required timezone in DB
return {
offset: utcOffset,
value: `${utcOffset}&${timezone}`
};
});
const systemTimezone = timezoneList.find((timezone)=>timezone.value.split('&')[1] === Intl.DateTimeFormat().resolvedOptions().timeZone);
return {
timezoneList,
systemTimezone
};
};
exports.getTimezoneOffset = getTimezoneOffset;
exports.getTimezones = getTimezones;
//# sourceMappingURL=time.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"time.js","sources":["../../../admin/src/utils/time.ts"],"sourcesContent":["export const getTimezoneOffset = (timezone: string, date: Date) => {\n try {\n const offsetPart = new Intl.DateTimeFormat('en', {\n timeZone: timezone,\n timeZoneName: 'longOffset',\n })\n .formatToParts(date)\n .find((part) => part.type === 'timeZoneName');\n\n const offset = offsetPart ? offsetPart.value : '';\n\n // We want to show time based on UTC, not GMT so we swap that.\n let utcOffset = offset.replace('GMT', 'UTC');\n\n // For perfect UTC (UTC+0:00) we only get the string UTC, So we need to append the 0's.\n if (!utcOffset.includes('+') && !utcOffset.includes('-')) {\n utcOffset = `${utcOffset}+00:00`;\n }\n\n return utcOffset;\n } catch (error) {\n // When timezone is invalid we catch the error and return empty to don't break the app\n return '';\n }\n};\n\ninterface ITimezoneOption {\n offset: string;\n value: string;\n}\n\nexport const getTimezones = (selectedDate: Date) => {\n const timezoneList: ITimezoneOption[] = Intl.supportedValuesOf('timeZone').map((timezone) => {\n // Timezone will be in the format GMT${OFFSET} where offset could be nothing,\n // a four digit string e.g. +05:00 or -08:00\n const utcOffset = getTimezoneOffset(timezone, selectedDate);\n\n // Offset and timezone are concatenated with '&', so to split and save the required timezone in DB\n return { offset: utcOffset, value: `${utcOffset}&${timezone}` } satisfies ITimezoneOption;\n });\n\n const systemTimezone = timezoneList.find(\n (timezone) => timezone.value.split('&')[1] === Intl.DateTimeFormat().resolvedOptions().timeZone\n );\n\n return { timezoneList, systemTimezone };\n};\n"],"names":["getTimezoneOffset","timezone","date","offsetPart","Intl","DateTimeFormat","timeZone","timeZoneName","formatToParts","find","part","type","offset","value","utcOffset","replace","includes","error","getTimezones","selectedDate","timezoneList","supportedValuesO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AASY,KAAK,CAACW,KAAK,CAAC,GAAI,CAAA,CAAC,EAAE,KAAKpB,IAAAA,CAAKC,cAAc,EAAGoB,CAAAA,eAAe,GAAGnB,QAAQ,CAAA;IAGjG,OAAO;AAAEc,QAAAA,YAAAA;AAAcG,QAAAA;AAAe,KAAA;AACxC;;;;;"}

View File

@@ -0,0 +1,39 @@
const getTimezoneOffset = (timezone, date)=>{
try {
const offsetPart = new Intl.DateTimeFormat('en', {
timeZone: timezone,
timeZoneName: 'longOffset'
}).formatToParts(date).find((part)=>part.type === 'timeZoneName');
const offset = offsetPart ? offsetPart.value : '';
// We want to show time based on UTC, not GMT so we swap that.
let utcOffset = offset.replace('GMT', 'UTC');
// For perfect UTC (UTC+0:00) we only get the string UTC, So we need to append the 0's.
if (!utcOffset.includes('+') && !utcOffset.includes('-')) {
utcOffset = `${utcOffset}+00:00`;
}
return utcOffset;
} catch (error) {
// When timezone is invalid we catch the error and return empty to don't break the app
return '';
}
};
const getTimezones = (selectedDate)=>{
const timezoneList = Intl.supportedValuesOf('timeZone').map((timezone)=>{
// Timezone will be in the format GMT${OFFSET} where offset could be nothing,
// a four digit string e.g. +05:00 or -08:00
const utcOffset = getTimezoneOffset(timezone, selectedDate);
// Offset and timezone are concatenated with '&', so to split and save the required timezone in DB
return {
offset: utcOffset,
value: `${utcOffset}&${timezone}`
};
});
const systemTimezone = timezoneList.find((timezone)=>timezone.value.split('&')[1] === Intl.DateTimeFormat().resolvedOptions().timeZone);
return {
timezoneList,
systemTimezone
};
};
export { getTimezoneOffset, getTimezones };
//# sourceMappingURL=time.mjs.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"time.mjs","sources":["../../../admin/src/utils/time.ts"],"sourcesContent":["export const getTimezoneOffset = (timezone: string, date: Date) => {\n try {\n const offsetPart = new Intl.DateTimeFormat('en', {\n timeZone: timezone,\n timeZoneName: 'longOffset',\n })\n .formatToParts(date)\n .find((part) => part.type === 'timeZoneName');\n\n const offset = offsetPart ? offsetPart.value : '';\n\n // We want to show time based on UTC, not GMT so we swap that.\n let utcOffset = offset.replace('GMT', 'UTC');\n\n // For perfect UTC (UTC+0:00) we only get the string UTC, So we need to append the 0's.\n if (!utcOffset.includes('+') && !utcOffset.includes('-')) {\n utcOffset = `${utcOffset}+00:00`;\n }\n\n return utcOffset;\n } catch (error) {\n // When timezone is invalid we catch the error and return empty to don't break the app\n return '';\n }\n};\n\ninterface ITimezoneOption {\n offset: string;\n value: string;\n}\n\nexport const getTimezones = (selectedDate: Date) => {\n const timezoneList: ITimezoneOption[] = Intl.supportedValuesOf('timeZone').map((timezone) => {\n // Timezone will be in the format GMT${OFFSET} where offset could be nothing,\n // a four digit string e.g. +05:00 or -08:00\n const utcOffset = getTimezoneOffset(timezone, selectedDate);\n\n // Offset and timezone are concatenated with '&', so to split and save the required timezone in DB\n return { offset: utcOffset, value: `${utcOffset}&${timezone}` } satisfies ITimezoneOption;\n });\n\n const systemTimezone = timezoneList.find(\n (timezone) => timezone.value.split('&')[1] === Intl.DateTimeFormat().resolvedOptions().timeZone\n );\n\n return { timezoneList, systemTimezone };\n};\n"],"names":["getTimezoneOffset","timezone","date","offsetPart","Intl","DateTimeFormat","timeZone","timeZoneName","formatToParts","find","part","type","offset","value","utcOffset","replace","includes","error","getTimezones","selectedDate","timezoneList","supportedValuesOf","map","systemTimezone","split","resolvedOptions"],"mappings":"AAAO,MAAMA,iBAAoB,GAAA,CAACC,QAAkBC,EAAAA,IAAAA,GAAAA;IAClD,IAAI;AACF,QAAA,MAAMC,UAAa,GAAA,IAAIC,IAAKC,CAAAA,cAAc,CAAC,IAAM,EAAA;YAC/CC,QAAUL,EAAAA,QAAAA;YACVM,YAAc,EAAA;SAEbC,CAAAA,CAAAA,aAAa,CAACN,IACdO,CAAAA,CAAAA,IAAI,CAAC,CAACC,IAAAA,GAASA,IAAKC,CAAAA,IAAI,KAAK,cAAA,CAAA;AAEhC,QAAA,MAAMC,MAAST,GAAAA,UAAAA,GAAaA,UAAWU,CAAAA,K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