fix(products): fix breadcrumbs and product filtering (backport from main)
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled

This commit is contained in:
2026-02-24 16:04:21 +01:00
parent 915eb61613
commit 5397309103
43805 changed files with 4324295 additions and 3 deletions
@@ -0,0 +1,9 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
export { default } from './arrow-up-z-a.js';
//# sourceMappingURL=arrow-up-za.js.map
@@ -0,0 +1,84 @@
import { executeAccess } from '../../auth/executeAccess.js';
import { combineQueries } from '../../database/combineQueries.js';
import { validateQueryPaths } from '../../database/queryValidation/validateQueryPaths.js';
import { sanitizeWhereQuery } from '../../database/sanitizeWhereQuery.js';
import { appendNonTrashedFilter } from '../../utilities/appendNonTrashedFilter.js';
import { killTransaction } from '../../utilities/killTransaction.js';
import { buildAfterOperation } from './utilities/buildAfterOperation.js';
import { buildBeforeOperation } from './utilities/buildBeforeOperation.js';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const countOperation = async (incomingArgs)=>{
let args = incomingArgs;
try {
// /////////////////////////////////////
// beforeOperation - Collection
// /////////////////////////////////////
args = await buildBeforeOperation({
args,
collection: args.collection.config,
operation: 'count',
overrideAccess: args.overrideAccess
});
const { collection: { config: collectionConfig }, disableErrors, overrideAccess, req, trash = false, where } = args;
const { payload } = req;
// /////////////////////////////////////
// Access
// /////////////////////////////////////
let accessResult;
if (!overrideAccess) {
accessResult = await executeAccess({
disableErrors,
req: req
}, collectionConfig.access.read);
// If errors are disabled, and access returns false, return empty results
if (accessResult === false) {
return {
totalDocs: 0
};
}
}
let result;
let fullWhere = combineQueries(where, accessResult);
sanitizeWhereQuery({
fields: collectionConfig.flattenedFields,
payload,
where: fullWhere
});
// Exclude trashed documents when trash: false
fullWhere = appendNonTrashedFilter({
enableTrash: collectionConfig.trash,
trash,
where: fullWhere
});
await validateQueryPaths({
collectionConfig,
overrideAccess: overrideAccess,
req: req,
where: where
});
result = await payload.db.count({
collection: collectionConfig.slug,
req,
where: fullWhere
});
// /////////////////////////////////////
// afterOperation - Collection
// /////////////////////////////////////
result = await buildAfterOperation({
args,
collection: collectionConfig,
operation: 'count',
overrideAccess,
result
});
// /////////////////////////////////////
// Return results
// /////////////////////////////////////
return result;
} catch (error) {
await killTransaction(args.req);
throw error;
}
};
//# sourceMappingURL=count.js.map
@@ -0,0 +1,352 @@
'use strict'
// eslint-disable-next-line
if (typeof $1 !== 'undefined') $1 = arguments.callee.caller.arguments[0]
const test = require('tape')
const fresh = require('import-fresh')
const pino = require('../browser')
const parentSerializers = {
test: () => 'parent'
}
const childSerializers = {
test: () => 'child'
}
test('serializers override values', ({ end, is }) => {
const parent = pino({
serializers: parentSerializers,
browser: {
serialize: true,
write (o) {
is(o.test, 'parent')
end()
}
}
})
parent.fatal({ test: 'test' })
})
test('without the serialize option, serializers do not override values', ({ end, is }) => {
const parent = pino({
serializers: parentSerializers,
browser: {
write (o) {
is(o.test, 'test')
end()
}
}
})
parent.fatal({ test: 'test' })
})
if (process.title !== 'browser') {
test('if serialize option is true, standard error serializer is auto enabled', ({ end, same }) => {
const err = Error('test')
err.code = 'test'
err.type = 'Error' // get that cov
const expect = pino.stdSerializers.err(err)
const consoleError = console.error
console.error = function (err) {
same(err, expect)
}
const logger = fresh('../browser')({
browser: { serialize: true }
})
console.error = consoleError
logger.fatal(err)
end()
})
test('if serialize option is array, standard error serializer is auto enabled', ({ end, same }) => {
const err = Error('test')
err.code = 'test'
const expect = pino.stdSerializers.err(err)
const consoleError = console.error
console.error = function (err) {
same(err, expect)
}
const logger = fresh('../browser', require)({
browser: { serialize: [] }
})
console.error = consoleError
logger.fatal(err)
end()
})
test('if serialize option is array containing !stdSerializers.err, standard error serializer is disabled', ({ end, is }) => {
const err = Error('test')
err.code = 'test'
const expect = err
const consoleError = console.error
console.error = function (err) {
is(err, expect)
}
const logger = fresh('../browser', require)({
browser: { serialize: ['!stdSerializers.err'] }
})
console.error = consoleError
logger.fatal(err)
end()
})
test('in browser, serializers apply to all objects', ({ end, is }) => {
const consoleError = console.error
console.error = function (test, test2, test3, test4, test5) {
is(test.key, 'serialized')
is(test2.key2, 'serialized2')
is(test5.key3, 'serialized3')
}
const logger = fresh('../browser', require)({
serializers: {
key: () => 'serialized',
key2: () => 'serialized2',
key3: () => 'serialized3'
},
browser: { serialize: true }
})
console.error = consoleError
logger.fatal({ key: 'test' }, { key2: 'test' }, 'str should skip', [{ foo: 'array should skip' }], { key3: 'test' })
end()
})
test('serialize can be an array of selected serializers', ({ end, is }) => {
const consoleError = console.error
console.error = function (test, test2, test3, test4, test5) {
is(test.key, 'test')
is(test2.key2, 'serialized2')
is(test5.key3, 'test')
}
const logger = fresh('../browser', require)({
serializers: {
key: () => 'serialized',
key2: () => 'serialized2',
key3: () => 'serialized3'
},
browser: { serialize: ['key2'] }
})
console.error = consoleError
logger.fatal({ key: 'test' }, { key2: 'test' }, 'str should skip', [{ foo: 'array should skip' }], { key3: 'test' })
end()
})
test('serialize filter applies to child loggers', ({ end, is }) => {
const consoleError = console.error
console.error = function (binding, test, test2, test3, test4, test5) {
is(test.key, 'test')
is(test2.key2, 'serialized2')
is(test5.key3, 'test')
}
const logger = fresh('../browser', require)({
browser: { serialize: ['key2'] }
})
console.error = consoleError
logger.child({
aBinding: 'test'
}, {
serializers: {
key: () => 'serialized',
key2: () => 'serialized2',
key3: () => 'serialized3'
}
}).fatal({ key: 'test' }, { key2: 'test' }, 'str should skip', [{ foo: 'array should skip' }], { key3: 'test' })
end()
})
test('serialize filter applies to child loggers through bindings', ({ end, is }) => {
const consoleError = console.error
console.error = function (binding, test, test2, test3, test4, test5) {
is(test.key, 'test')
is(test2.key2, 'serialized2')
is(test5.key3, 'test')
}
const logger = fresh('../browser', require)({
browser: { serialize: ['key2'] }
})
console.error = consoleError
logger.child({
aBinding: 'test',
serializers: {
key: () => 'serialized',
key2: () => 'serialized2',
key3: () => 'serialized3'
}
}).fatal({ key: 'test' }, { key2: 'test' }, 'str should skip', [{ foo: 'array should skip' }], { key3: 'test' })
end()
})
test('parent serializers apply to child bindings', ({ end, is }) => {
const consoleError = console.error
console.error = function (binding) {
is(binding.key, 'serialized')
}
const logger = fresh('../browser', require)({
serializers: {
key: () => 'serialized'
},
browser: { serialize: true }
})
console.error = consoleError
logger.child({ key: 'test' }).fatal({ test: 'test' })
end()
})
test('child serializers apply to child bindings', ({ end, is }) => {
const consoleError = console.error
console.error = function (binding) {
is(binding.key, 'serialized')
}
const logger = fresh('../browser', require)({
browser: { serialize: true }
})
console.error = consoleError
logger.child({
key: 'test'
}, {
serializers: {
key: () => 'serialized'
}
}).fatal({ test: 'test' })
end()
})
}
test('child does not overwrite parent serializers', ({ end, is }) => {
let c = 0
const parent = pino({
serializers: parentSerializers,
browser: {
serialize: true,
write (o) {
c++
if (c === 1) is(o.test, 'parent')
if (c === 2) {
is(o.test, 'child')
end()
}
}
}
})
const child = parent.child({}, { serializers: childSerializers })
parent.fatal({ test: 'test' })
child.fatal({ test: 'test' })
})
test('children inherit parent serializers', ({ end, is }) => {
const parent = pino({
serializers: parentSerializers,
browser: {
serialize: true,
write (o) {
is(o.test, 'parent')
}
}
})
const child = parent.child({ a: 'property' })
child.fatal({ test: 'test' })
end()
})
test('children serializers get called', ({ end, is }) => {
const parent = pino({
browser: {
serialize: true,
write (o) {
is(o.test, 'child')
}
}
})
const child = parent.child({ a: 'property' }, { serializers: childSerializers })
child.fatal({ test: 'test' })
end()
})
test('children serializers get called when inherited from parent', ({ end, is }) => {
const parent = pino({
serializers: parentSerializers,
browser: {
serialize: true,
write: (o) => {
is(o.test, 'pass')
}
}
})
const child = parent.child({}, { serializers: { test: () => 'pass' } })
child.fatal({ test: 'fail' })
end()
})
test('non overridden serializers are available in the children', ({ end, is }) => {
const pSerializers = {
onlyParent: () => 'parent',
shared: () => 'parent'
}
const cSerializers = {
shared: () => 'child',
onlyChild: () => 'child'
}
let c = 0
const parent = pino({
serializers: pSerializers,
browser: {
serialize: true,
write (o) {
c++
if (c === 1) is(o.shared, 'child')
if (c === 2) is(o.onlyParent, 'parent')
if (c === 3) is(o.onlyChild, 'child')
if (c === 4) is(o.onlyChild, 'test')
}
}
})
const child = parent.child({}, { serializers: cSerializers })
child.fatal({ shared: 'test' })
child.fatal({ onlyParent: 'test' })
child.fatal({ onlyChild: 'test' })
parent.fatal({ onlyChild: 'test' })
end()
})
@@ -0,0 +1 @@
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../src/views/Verify/metadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAI5D,eAAO,MAAM,0BAA0B,EAAE,oBAOrC,CAAA"}
@@ -0,0 +1,43 @@
{
"name": "@types/react-transition-group",
"version": "4.4.12",
"description": "TypeScript definitions for react-transition-group",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-transition-group",
"license": "MIT",
"contributors": [
{
"name": "Karol Janyst",
"githubUsername": "LKay",
"url": "https://github.com/LKay"
},
{
"name": "Epskampie",
"githubUsername": "Epskampie",
"url": "https://github.com/Epskampie"
},
{
"name": "Masafumi Koba",
"githubUsername": "ybiquitous",
"url": "https://github.com/ybiquitous"
},
{
"name": "Ben Grynhaus",
"githubUsername": "bengry",
"url": "https://github.com/bengry"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/react-transition-group"
},
"scripts": {},
"dependencies": {},
"peerDependencies": {
"@types/react": "*"
},
"typesPublisherContentHash": "28d8cc9bfe6b15e0291a07b916505b49e5cf57cfd1f331db1d9ad49fd36bfd41",
"typeScriptVersion": "5.0"
}
@@ -0,0 +1,15 @@
import { isValidReactElement } from './isValidReactElement.js';
export const hasOptionLabelJSXElement = cellClientProps => {
const {
cellData,
field
} = cellClientProps;
if ((field?.type === 'select' || field?.type == 'radio') && Array.isArray(field?.options)) {
const matchingOption = field.options.find(option => typeof option === 'object' && option.value === cellData);
if (matchingOption && typeof matchingOption === 'object' && isValidReactElement(matchingOption.label)) {
return true;
}
}
return false;
};
//# sourceMappingURL=hasOptionLabelJSXElement.js.map
@@ -0,0 +1,19 @@
import type { DateArg } from "./types.js";
/**
* @name getTime
* @category Timestamp Helpers
* @summary Get the milliseconds timestamp of the given date.
*
* @description
* Get the milliseconds timestamp of the given date.
*
* @param date - The given date
*
* @returns The timestamp
*
* @example
* // Get the timestamp of 29 February 2012 11:45:05.123:
* const result = getTime(new Date(2012, 1, 29, 11, 45, 5, 123))
* //=> 1330515905123
*/
export declare function getTime(date: DateArg<Date> & {}): number;
@@ -0,0 +1,19 @@
Copyright (C) 2012-2014 by various contributors (see AUTHORS)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@@ -0,0 +1,25 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Pointer = createLucideIcon("Pointer", [
["path", { d: "M22 14a8 8 0 0 1-8 8", key: "56vcr3" }],
["path", { d: "M18 11v-1a2 2 0 0 0-2-2a2 2 0 0 0-2 2", key: "1agjmk" }],
["path", { d: "M14 10V9a2 2 0 0 0-2-2a2 2 0 0 0-2 2v1", key: "wdbh2u" }],
["path", { d: "M10 9.5V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v10", key: "1ibuk9" }],
[
"path",
{
d: "M18 11a2 2 0 1 1 4 0v3a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",
key: "g6ys72"
}
]
]);
export { Pointer as default };
//# sourceMappingURL=pointer.js.map
@@ -0,0 +1,5 @@
[
"esnext.promise.all-settled",
"esnext.string.match-all",
"esnext.global-this"
]
@@ -0,0 +1,38 @@
export {}; // Make this a module
declare global {
namespace NodeJS {
type TypedArray<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
| Uint8Array<TArrayBuffer>
| Uint8ClampedArray<TArrayBuffer>
| Uint16Array<TArrayBuffer>
| Uint32Array<TArrayBuffer>
| Int8Array<TArrayBuffer>
| Int16Array<TArrayBuffer>
| Int32Array<TArrayBuffer>
| BigUint64Array<TArrayBuffer>
| BigInt64Array<TArrayBuffer>
| Float32Array<TArrayBuffer>
| Float64Array<TArrayBuffer>;
type ArrayBufferView<TArrayBuffer extends ArrayBufferLike = ArrayBufferLike> =
| TypedArray<TArrayBuffer>
| DataView<TArrayBuffer>;
// The following aliases are required to allow use of non-shared ArrayBufferViews in @types/node
// while maintaining compatibility with TS <=5.6.
type NonSharedUint8Array = Uint8Array<ArrayBuffer>;
type NonSharedUint8ClampedArray = Uint8ClampedArray<ArrayBuffer>;
type NonSharedUint16Array = Uint16Array<ArrayBuffer>;
type NonSharedUint32Array = Uint32Array<ArrayBuffer>;
type NonSharedInt8Array = Int8Array<ArrayBuffer>;
type NonSharedInt16Array = Int16Array<ArrayBuffer>;
type NonSharedInt32Array = Int32Array<ArrayBuffer>;
type NonSharedBigUint64Array = BigUint64Array<ArrayBuffer>;
type NonSharedBigInt64Array = BigInt64Array<ArrayBuffer>;
type NonSharedFloat32Array = Float32Array<ArrayBuffer>;
type NonSharedFloat64Array = Float64Array<ArrayBuffer>;
type NonSharedDataView = DataView<ArrayBuffer>;
type NonSharedTypedArray = TypedArray<ArrayBuffer>;
type NonSharedArrayBufferView = ArrayBufferView<ArrayBuffer>;
}
}
@@ -0,0 +1,14 @@
import { ArrayCreate } from "../262.js";
import "../types/number.js";
import { PartitionNumberPattern } from "./PartitionNumberPattern.js";
export function FormatNumericToParts(nf, x, implDetails) {
const parts = PartitionNumberPattern(implDetails.getInternalSlots(nf), x);
const result = ArrayCreate(0);
for (const part of parts) {
result.push({
type: part.type,
value: part.value
});
}
return result;
}
@@ -0,0 +1,121 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const HeaderKeys = {
FORWARDED_PROTO: 'x-forwarded-proto',
FORWARDED_HOST: 'x-forwarded-host',
HOST: 'host',
REFERER: 'referer',
} ;
/**
* Replaces route parameters in a path template with their values
* @param path - The path template containing parameters in [paramName] format
* @param params - Optional route parameters to replace in the template
* @returns The path with parameters replaced
*/
function substituteRouteParams(path, params) {
return path;
}
/**
* Normalizes a path by removing route groups
* @param path - The path to normalize
* @returns The normalized path
*/
function sanitizeRoutePath(path) {
const cleanedSegments = path
.split('/')
.filter(segment => segment && !(segment.startsWith('(') && segment.endsWith(')')));
return cleanedSegments.length > 0 ? `/${cleanedSegments.join('/')}` : '/';
}
/**
* Constructs a full URL from the component route, parameters, and headers.
*
* @param componentRoute - The route template to construct the URL from
* @param params - Optional route parameters to replace in the template
* @param headersDict - Optional headers containing protocol and host information
* @param pathname - Optional pathname coming from parent span "http.target"
* @returns A sanitized URL string
*/
function buildUrlFromComponentRoute(
componentRoute,
params,
headersDict,
pathname,
) {
const parameterizedPath = substituteRouteParams(componentRoute);
// If available, the pathname from the http.target of the HTTP request server span takes precedence over the parameterized path.
// Spans such as generateMetadata and Server Component rendering are typically direct children of that span.
const path = pathname ?? sanitizeRoutePath(parameterizedPath);
const protocol = headersDict?.[HeaderKeys.FORWARDED_PROTO];
const host = headersDict?.[HeaderKeys.FORWARDED_HOST] || headersDict?.[HeaderKeys.HOST];
if (!protocol || !host) {
return path;
}
const fullUrl = `${protocol}://${host}${path}`;
const urlObject = core.parseStringToURLObject(fullUrl);
if (!urlObject) {
return path;
}
return core.getSanitizedUrlStringFromUrlObject(urlObject);
}
/**
* Returns a sanitized URL string from the referer header if it exists and is valid.
*
* @param headersDict - Optional headers containing the referer
* @returns A sanitized URL string or undefined if referer is missing/invalid
*/
function extractSanitizedUrlFromRefererHeader(headersDict) {
const referer = headersDict?.[HeaderKeys.REFERER];
if (!referer) {
return undefined;
}
try {
const refererUrl = new URL(referer);
return core.getSanitizedUrlStringFromUrlObject(refererUrl);
} catch {
return undefined;
}
}
/**
* Returns a sanitized URL string using the referer header if available,
* otherwise constructs the URL from the component route, params, and headers.
*
* @param componentRoute - The route template to construct the URL from
* @param params - Optional route parameters to replace in the template
* @param headersDict - Optional headers containing protocol, host, and referer
* @param pathname - Optional pathname coming from root span "http.target"
* @returns A sanitized URL string
*/
function getSanitizedRequestUrl(
componentRoute,
params,
headersDict,
pathname,
) {
const refererUrl = extractSanitizedUrlFromRefererHeader(headersDict);
if (refererUrl) {
return refererUrl;
}
return buildUrlFromComponentRoute(componentRoute, params, headersDict, pathname);
}
exports.buildUrlFromComponentRoute = buildUrlFromComponentRoute;
exports.extractSanitizedUrlFromRefererHeader = extractSanitizedUrlFromRefererHeader;
exports.getSanitizedRequestUrl = getSanitizedRequestUrl;
exports.sanitizeRoutePath = sanitizeRoutePath;
exports.substituteRouteParams = substituteRouteParams;
//# sourceMappingURL=urls.js.map
@@ -0,0 +1 @@
{"version":3,"file":"delete.d.ts","sourceRoot":"","sources":["../../../../src/collections/operations/local/delete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,OAAO,EACP,cAAc,EACd,WAAW,EACZ,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,UAAU,EACV,6BAA6B,EAC7B,KAAK,EACN,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAO1F,MAAM,MAAM,WAAW,CAAC,KAAK,SAAS,cAAc,EAAE,OAAO,SAAS,UAAU,IAAI;IAClF;;OAEG;IACH,UAAU,EAAE,KAAK,CAAA;IACjB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,GAAG,WAAW,CAAA;IACpC;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB;;;;OAIG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAA;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,CAAA;AAE/C,MAAM,MAAM,WAAW,CACrB,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,wBAAwB,CAAC,KAAK,CAAC,IAC7C;IACF;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,GAAG,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;AAE/B,MAAM,MAAM,WAAW,CACrB,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,wBAAwB,CAAC,KAAK,CAAC,IAC7C;IACF;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,CAAA;IACV;;OAEG;IACH,KAAK,EAAE,KAAK,CAAA;CACb,GAAG,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;AAE/B,MAAM,MAAM,OAAO,CACjB,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,wBAAwB,CAAC,KAAK,CAAC,IAC7C,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;AAE7D,iBAAe,WAAW,CACxB,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,wBAAwB,CAAC,KAAK,CAAC,EAE/C,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,6BAA6B,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AACzD,iBAAe,WAAW,CACxB,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,wBAAwB,CAAC,KAAK,CAAC,EAE/C,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AAC/C,iBAAe,WAAW,CACxB,KAAK,SAAS,cAAc,EAC5B,OAAO,SAAS,wBAAwB,CAAC,KAAK,CAAC,EAE/C,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,GAC/B,OAAO,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,6BAA6B,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;AAqD/F,OAAO,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,9 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { formatRFC7231 as fn } from "../formatRFC7231.js";
import { convertToFP } from "./_lib/convertToFP.js";
export const formatRFC7231 = convertToFP(fn, 1);
// Fallback for modularized imports:
export default formatRFC7231;
@@ -0,0 +1 @@
{"version":3,"file":"hu.d.ts","sourceRoot":"","sources":["../../src/languages/hu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtE,eAAO,MAAM,cAAc,EAAE,yBAooB5B,CAAA;AAED,eAAO,MAAM,EAAE,EAAE,QAGhB,CAAA"}
@@ -0,0 +1,2 @@
import { GraphQLScalarType } from 'graphql';
export declare const GraphQLNonPositiveFloat: GraphQLScalarType<number, number>;
@@ -0,0 +1,30 @@
import { WINDOW } from '@sentry/react';
import { appRouterInstrumentNavigation, appRouterInstrumentPageLoad } from './appRouterRoutingInstrumentation.js';
import { pagesRouterInstrumentNavigation, pagesRouterInstrumentPageLoad } from './pagesRouterRoutingInstrumentation.js';
/**
* Instruments the Next.js Client Router for page loads.
*/
function nextRouterInstrumentPageLoad(client) {
const isAppRouter = !WINDOW.document.getElementById('__NEXT_DATA__');
if (isAppRouter) {
appRouterInstrumentPageLoad(client);
} else {
pagesRouterInstrumentPageLoad(client);
}
}
/**
* Instruments the Next.js Client Router for navigation.
*/
function nextRouterInstrumentNavigation(client) {
const isAppRouter = !WINDOW.document.getElementById('__NEXT_DATA__');
if (isAppRouter) {
appRouterInstrumentNavigation(client);
} else {
pagesRouterInstrumentNavigation(client);
}
}
export { nextRouterInstrumentNavigation, nextRouterInstrumentPageLoad };
//# sourceMappingURL=nextRoutingInstrumentation.js.map
@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/mysql-core/columns/varchar.ts"],"sourcesContent":["import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';\nimport type { ColumnBaseConfig } from '~/column.ts';\nimport { entityKind } from '~/entity.ts';\nimport type { AnyMySqlTable } from '~/mysql-core/table.ts';\nimport { getColumnNameAndConfig, type Writable } from '~/utils.ts';\nimport { MySqlColumn, MySqlColumnBuilder } from './common.ts';\n\nexport type MySqlVarCharBuilderInitial<\n\tTName extends string,\n\tTEnum extends [string, ...string[]],\n\tTLength extends number | undefined,\n> = MySqlVarCharBuilder<\n\t{\n\t\tname: TName;\n\t\tdataType: 'string';\n\t\tcolumnType: 'MySqlVarChar';\n\t\tdata: TEnum[number];\n\t\tdriverParam: number | string;\n\t\tenumValues: TEnum;\n\t\tlength: TLength;\n\t}\n>;\n\nexport class MySqlVarCharBuilder<\n\tT extends ColumnBuilderBaseConfig<'string', 'MySqlVarChar'> & { length?: number | undefined },\n> extends MySqlColumnBuilder<T, MySqlVarCharConfig<T['enumValues'], T['length']>> {\n\tstatic override readonly [entityKind]: string = 'MySqlVarCharBuilder';\n\n\t/** @internal */\n\tconstructor(name: T['name'], config: MySqlVarCharConfig<T['enumValues'], T['length']>) {\n\t\tsuper(name, 'string', 'MySqlVarChar');\n\t\tthis.config.length = config.length;\n\t\tthis.config.enum = config.enum;\n\t}\n\n\t/** @internal */\n\toverride build<TTableName extends string>(\n\t\ttable: AnyMySqlTable<{ name: TTableName }>,\n\t): MySqlVarChar<MakeColumnConfig<T, TTableName> & { length: T['length']; enumValues: T['enumValues'] }> {\n\t\treturn new MySqlVarChar<MakeColumnConfig<T, TTableName> & { length: T['length']; enumValues: T['enumValues'] }>(\n\t\t\ttable,\n\t\t\tthis.config as ColumnBuilderRuntimeConfig<any, any>,\n\t\t);\n\t}\n}\n\nexport class MySqlVarChar<T extends ColumnBaseConfig<'string', 'MySqlVarChar'> & { length?: number | undefined }>\n\textends MySqlColumn<T, MySqlVarCharConfig<T['enumValues'], T['length']>, { length: T['length'] }>\n{\n\tstatic override readonly [entityKind]: string = 'MySqlVarChar';\n\n\treadonly length: number | undefined = this.config.length;\n\n\toverride readonly enumValues = this.config.enum;\n\n\tgetSQLType(): string {\n\t\treturn this.length === undefined ? `varchar` : `varchar(${this.length})`;\n\t}\n}\n\nexport interface MySqlVarCharConfig<\n\tTEnum extends string[] | readonly string[] | undefined = string[] | readonly string[] | undefined,\n\tTLength extends number | undefined = number | undefined,\n> {\n\tenum?: TEnum;\n\tlength: TLength;\n}\n\nexport function varchar<U extends string, T extends Readonly<[U, ...U[]]>, L extends number | undefined>(\n\tconfig: MySqlVarCharConfig<T | Writable<T>, L>,\n): MySqlVarCharBuilderInitial<'', Writable<T>, L>;\nexport function varchar<\n\tTName extends string,\n\tU extends string,\n\tT extends Readonly<[U, ...U[]]>,\n\tL extends number | undefined,\n>(\n\tname: TName,\n\tconfig: MySqlVarCharConfig<T | Writable<T>, L>,\n): MySqlVarCharBuilderInitial<TName, Writable<T>, L>;\nexport function varchar(a?: string | MySqlVarCharConfig, b?: MySqlVarCharConfig): any {\n\tconst { name, config } = getColumnNameAndConfig<MySqlVarCharConfig>(a, b);\n\treturn new MySqlVarCharBuilder(name, config as any);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,oBAA2B;AAE3B,mBAAsD;AACtD,oBAAgD;AAkBzC,MAAM,4BAEH,iCAAwE;AAAA,EACjF,QAA0B,wBAAU,IAAY;AAAA;AAAA,EAGhD,YAAY,MAAiB,QAA0D;AACtF,UAAM,MAAM,UAAU,cAAc;AACpC,SAAK,OAAO,SAAS,OAAO;AAC5B,SAAK,OAAO,OAAO,OAAO;AAAA,EAC3B;AAAA;AAAA,EAGS,MACR,OACuG;AACvG,WAAO,IAAI;AAAA,MACV;AAAA,MACA,KAAK;AAAA,IACN;AAAA,EACD;AACD;AAEO,MAAM,qBACJ,0BACT;AAAA,EACC,QAA0B,wBAAU,IAAY;AAAA,EAEvC,SAA6B,KAAK,OAAO;AAAA,EAEhC,aAAa,KAAK,OAAO;AAAA,EAE3C,aAAqB;AACpB,WAAO,KAAK,WAAW,SAAY,YAAY,WAAW,KAAK,MAAM;AAAA,EACtE;AACD;AAsBO,SAAS,QAAQ,GAAiC,GAA6B;AACrF,QAAM,EAAE,MAAM,OAAO,QAAI,qCAA2C,GAAG,CAAC;AACxE,SAAO,IAAI,oBAAoB,MAAM,MAAa;AACnD;","names":[]}
@@ -0,0 +1,32 @@
import { formatDistance } from "./zh-CN/_lib/formatDistance.mjs";
import { formatLong } from "./zh-CN/_lib/formatLong.mjs";
import { formatRelative } from "./zh-CN/_lib/formatRelative.mjs";
import { localize } from "./zh-CN/_lib/localize.mjs";
import { match } from "./zh-CN/_lib/match.mjs";
/**
* @category Locales
* @summary Chinese Simplified locale.
* @language Chinese Simplified
* @iso-639-2 zho
* @author Changyu Geng [@KingMario](https://github.com/KingMario)
* @author Song Shuoyun [@fnlctrl](https://github.com/fnlctrl)
* @author sabrinaM [@sabrinamiao](https://github.com/sabrinamiao)
* @author Carney Wu [@cubicwork](https://github.com/cubicwork)
* @author Terrence Lam [@skyuplam](https://github.com/skyuplam)
*/
export const zhCN = {
code: "zh-CN",
formatDistance: formatDistance,
formatLong: formatLong,
formatRelative: formatRelative,
localize: localize,
match: match,
options: {
weekStartsOn: 1 /* Monday */,
firstWeekContainsDate: 4,
},
};
// Fallback for modularized imports:
export default zhCN;
@@ -0,0 +1 @@
{"version":3,"file":"oneRequired.js","sourceRoot":"","sources":["../../src/definitions/oneRequired.ts"],"names":[],"mappings":";;;;;AAEA,4DAAwC;AAExC,MAAM,MAAM,GAA0C,IAAA,mBAAc,EAAC,aAAa,CAAC,CAAA;AAEnF,kBAAe,MAAM,CAAA;AACrB,MAAM,CAAC,OAAO,GAAG,MAAM,CAAA"}
@@ -0,0 +1,11 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
'use strict'
const LexicalRichText = process.env.NODE_ENV !== 'production' ? require('./LexicalRichText.dev.js') : require('./LexicalRichText.prod.js');
module.exports = LexicalRichText;
@@ -0,0 +1,2 @@
import type { useLocale as useLocaleType } from 'use-intl';
export default function useLocale(): ReturnType<typeof useLocaleType>;
@@ -0,0 +1,74 @@
import { DiagLogger, Meter, MeterProvider, Tracer, TracerProvider, Span } from '@opentelemetry/api';
import { Logger, LoggerProvider } from '@opentelemetry/api-logs';
import { InstrumentationModuleDefinition, Instrumentation, InstrumentationConfig, SpanCustomizationHook } from './types';
/**
* Base abstract internal class for instrumenting node and web plugins
*/
export declare abstract class InstrumentationAbstract<ConfigType extends InstrumentationConfig = InstrumentationConfig> implements Instrumentation<ConfigType> {
protected _config: ConfigType;
private _tracer;
private _meter;
private _logger;
protected _diag: DiagLogger;
readonly instrumentationName: string;
readonly instrumentationVersion: string;
constructor(instrumentationName: string, instrumentationVersion: string, config: ConfigType);
protected _wrap: <Nodule extends object, FieldName extends keyof Nodule>(nodule: Nodule, name: FieldName, wrapper: (original: Nodule[FieldName], name: FieldName) => Nodule[FieldName]) => import("./types").ShimWrapped | undefined;
protected _unwrap: <Nodule extends object>(nodule: Nodule, name: keyof Nodule) => void;
protected _massWrap: <Nodule extends object, FieldName extends keyof Nodule>(nodules: Nodule[], names: FieldName[], wrapper: (original: Nodule[FieldName]) => Nodule[FieldName]) => void;
protected _massUnwrap: <Nodule extends object>(nodules: Nodule[], names: (keyof Nodule)[]) => void;
protected get meter(): Meter;
/**
* Sets MeterProvider to this plugin
* @param meterProvider
*/
setMeterProvider(meterProvider: MeterProvider): void;
protected get logger(): Logger;
/**
* Sets LoggerProvider to this plugin
* @param loggerProvider
*/
setLoggerProvider(loggerProvider: LoggerProvider): void;
/**
* @experimental
*
* Get module definitions defined by {@link init}.
* This can be used for experimental compile-time instrumentation.
*
* @returns an array of {@link InstrumentationModuleDefinition}
*/
getModuleDefinitions(): InstrumentationModuleDefinition[];
/**
* Sets the new metric instruments with the current Meter.
*/
protected _updateMetricInstruments(): void;
getConfig(): ConfigType;
/**
* Sets InstrumentationConfig to this plugin
* @param config
*/
setConfig(config: ConfigType): void;
/**
* Sets TraceProvider to this plugin
* @param tracerProvider
*/
setTracerProvider(tracerProvider: TracerProvider): void;
protected get tracer(): Tracer;
abstract enable(): void;
abstract disable(): void;
/**
* Init method in which plugin should define _modules and patches for
* methods.
*/
protected abstract init(): InstrumentationModuleDefinition | InstrumentationModuleDefinition[] | void;
/**
* Execute span customization hook, if configured, and log any errors.
* Any semantics of the trigger and info are defined by the specific instrumentation.
* @param hookHandler The optional hook handler which the user has configured via instrumentation config
* @param triggerName The name of the trigger for executing the hook for logging purposes
* @param span The span to which the hook should be applied
* @param info The info object to be passed to the hook, with useful data the hook may use
*/
protected _runSpanCustomizationHook<SpanCustomizationInfoType>(hookHandler: SpanCustomizationHook<SpanCustomizationInfoType> | undefined, triggerName: string, span: Span, info: SpanCustomizationInfoType): void;
}
//# sourceMappingURL=instrumentation.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"hourglass.js","sources":["../../../src/icons/hourglass.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Hourglass\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNNSAyMmgxNCIgLz4KICA8cGF0aCBkPSJNNSAyaDE0IiAvPgogIDxwYXRoIGQ9Ik0xNyAyMnYtNC4xNzJhMiAyIDAgMCAwLS41ODYtMS40MTRMMTIgMTJsLTQuNDE0IDQuNDE0QTIgMiAwIDAgMCA3IDE3LjgyOFYyMiIgLz4KICA8cGF0aCBkPSJNNyAydjQuMTcyYTIgMiAwIDAgMCAuNTg2IDEuNDE0TDEyIDEybDQuNDE0LTQuNDE0QTIgMiAwIDAgMCAxNyA2LjE3MlYyIiAvPgo8L3N2Zz4K) - https://lucide.dev/icons/hourglass\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Hourglass = createLucideIcon('Hourglass', [\n ['path', { d: 'M5 22h14', key: 'ehvnwv' }],\n ['path', { d: 'M5 2h14', key: 'pdyrp9' }],\n [\n 'path',\n {\n d: 'M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22',\n key: '1d314k',\n },\n ],\n [\n 'path',\n { d: 'M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2', key: '1vvvr6' },\n ],\n]);\n\nexport default Hourglass;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAY,iBAAiB,WAAa,CAAA,CAAA,CAAA;AAAA,CAAA,CAC9C,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAY,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAAA,CACzC,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAA,CAAA,CAAA,CAAE,GAAG,CAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CACxC,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA;AAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACH,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACP,CAAA,CAAA,CAAA,CAAA;AAAA,CACF,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA;AAAA,CAAA,CAAA,CAAA,CACE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,CACA,CAAA,CAAA,CAAA,CAAA,CAAE,CAAA,CAAG,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0E,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,QAAS,CAAA,CAAA;AAAA,CAC/F,CAAA,CAAA;AACF,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"sources":["../../src/mysql-core/alias.ts"],"sourcesContent":["import { TableAliasProxyHandler } from '~/alias.ts';\nimport type { BuildAliasTable } from './query-builders/select.types.ts';\nimport type { MySqlTable } from './table.ts';\nimport type { MySqlViewBase } from './view-base.ts';\n\nexport function alias<TTable extends MySqlTable | MySqlViewBase, TAlias extends string>(\n\ttable: TTable,\n\talias: TAlias,\n): BuildAliasTable<TTable, TAlias> {\n\treturn new Proxy(table, new TableAliasProxyHandler(alias, false)) as any;\n}\n"],"mappings":"AAAA,SAAS,8BAA8B;AAKhC,SAAS,MACf,OACAA,QACkC;AAClC,SAAO,IAAI,MAAM,OAAO,IAAI,uBAAuBA,QAAO,KAAK,CAAC;AACjE;","names":["alias"]}
@@ -0,0 +1,10 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const _required_1 = __importDefault(require("./_required"));
const getDef = (0, _required_1.default)("anyRequired");
exports.default = getDef;
module.exports = getDef;
//# sourceMappingURL=anyRequired.js.map
@@ -0,0 +1,14 @@
import type { ImportMap, InitReqResult, SanitizedConfig } from 'payload';
import { createLocalReq } from 'payload';
/**
* Initializes a full request object, including the `req` object and access control.
* As access control and getting the request locale is dependent on the current URL and
*/
export declare const initReq: ({ canSetHeaders, configPromise, importMap, key, overrides, }: {
canSetHeaders?: boolean;
configPromise: Promise<SanitizedConfig> | SanitizedConfig;
importMap: ImportMap;
key: string;
overrides?: Parameters<typeof createLocalReq>[0];
}) => Promise<InitReqResult>;
//# sourceMappingURL=initReq.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"semconv-obsolete.js","sourceRoot":"","sources":["../../src/semconv-obsolete.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;;;;;;GAOG;AAEH;;;;GAIG;AACU,QAAA,0BAA0B,GAAG,uBAAgC,CAAC;AAE3E;;;;GAIG;AACU,QAAA,+BAA+B,GAC1C,4BAAqC,CAAC;AAExC;;;;GAIG;AACU,QAAA,mCAAmC,GAC9C,gCAAyC,CAAC;AAE5C;;;;GAIG;AACU,QAAA,iCAAiC,GAAG,SAAkB,CAAC;AAEpE;;;;GAIG;AACU,QAAA,uBAAuB,GAAG,oBAA6B,CAAC;AAErE;;;;GAIG;AACU,QAAA,+BAA+B,GAC1C,4BAAqC,CAAC;AAExC;;;;GAIG;AACU,QAAA,kBAAkB,GAAG,eAAwB,CAAC;AAE3D;;;;GAIG;AACU,QAAA,sCAAsC,GAAG,OAAgB,CAAC;AAEvE;;;;;;GAMG;AACU,QAAA,6BAA6B,GAAG,sBAA+B,CAAC;AAE7E;;;;GAIG;AACU,QAAA,8BAA8B,GACzC,2BAAoC,CAAC","sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * This file contains constants for values that where replaced/removed from\n * Semantic Conventions long enough ago that they do not have `ATTR_*`\n * constants in the `@opentelemetry/semantic-conventions` package. Eventually\n * it is expected that this instrumention will be updated to emit telemetry\n * using modern Semantic Conventions, dropping the need for the constants in\n * this file.\n */\n\n/**\n * The message destination name. This might be equal to the span name but is required nevertheless.\n *\n * @deprecated Use ATTR_MESSAGING_DESTINATION_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport const ATTR_MESSAGING_DESTINATION = 'messaging.destination' as const;\n\n/**\n * The kind of message destination.\n *\n * @deprecated Removed in semconv v1.20.0.\n */\nexport const ATTR_MESSAGING_DESTINATION_KIND =\n 'messaging.destination_kind' as const;\n\n/**\n * RabbitMQ message routing key.\n *\n * @deprecated Use ATTR_MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport const ATTR_MESSAGING_RABBITMQ_ROUTING_KEY =\n 'messaging.rabbitmq.routing_key' as const;\n\n/**\n * A string identifying the kind of message consumption as defined in the [Operation names](#operation-names) section above. If the operation is &#34;send&#34;, this attribute MUST NOT be set, since the operation can be inferred from the span kind in that case.\n *\n * @deprecated Use MESSAGING_OPERATION_TYPE_VALUE_PROCESS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport const MESSAGING_OPERATION_VALUE_PROCESS = 'process' as const;\n\n/**\n * The name of the transport protocol.\n *\n * @deprecated Use ATTR_NETWORK_PROTOCOL_NAME.\n */\nexport const ATTR_MESSAGING_PROTOCOL = 'messaging.protocol' as const;\n\n/**\n * The version of the transport protocol.\n *\n * @deprecated Use ATTR_NETWORK_PROTOCOL_VERSION.\n */\nexport const ATTR_MESSAGING_PROTOCOL_VERSION =\n 'messaging.protocol_version' as const;\n\n/**\n * Connection string.\n *\n * @deprecated Removed in semconv v1.17.0.\n */\nexport const ATTR_MESSAGING_URL = 'messaging.url' as const;\n\n/**\n * The kind of message destination.\n *\n * @deprecated Removed in semconv v1.20.0.\n */\nexport const MESSAGING_DESTINATION_KIND_VALUE_TOPIC = 'topic' as const;\n\n/**\n * A value used by the messaging system as an identifier for the message, represented as a string.\n *\n * @deprecated Use ATTR_MESSAGING_MESSAGE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n *\n * Note: changing to `ATTR_MESSAGING_MESSAGE_ID` means a change in value from `messaging.message_id` to `messaging.message.id`.\n */\nexport const OLD_ATTR_MESSAGING_MESSAGE_ID = 'messaging.message_id' as const;\n\n/**\n * The [conversation ID](#conversations) identifying the conversation to which the message belongs, represented as a string. Sometimes called &#34;Correlation ID&#34;.\n *\n * @deprecated Use ATTR_MESSAGING_MESSAGE_CONVERSATION_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport const ATTR_MESSAGING_CONVERSATION_ID =\n 'messaging.conversation_id' as const;\n"]}
@@ -0,0 +1,602 @@
export const faTranslations = {
authentication: {
account: 'حساب کاربری',
accountOfCurrentUser: 'حساب کاربری فعلی',
accountVerified: 'حساب شما با موفقیت تأیید شد.',
alreadyActivated: 'این حساب قبلاً فعال شده است.',
alreadyLoggedIn: 'شما در حال حاضر وارد شده‌اید.',
apiKey: 'کلید API',
authenticated: 'احراز هویت شده',
backToLogin: 'بازگشت به صفحه ورود',
beginCreateFirstUser: 'برای شروع، اولین کاربر را ایجاد کنید.',
changePassword: 'تغییر رمز عبور',
checkYourEmailForPasswordReset: 'ایمیلی حاوی لینک بازنشانی رمز عبور برای شما ارسال شد. لطفاً پوشه اسپم (spam) خود را نیز بررسی کنید.',
confirmGeneration: 'تأیید تولید',
confirmPassword: 'تکرار رمز عبور',
createFirstUser: 'ایجاد اولین کاربر',
emailNotValid: 'ایمیل وارد شده معتبر نیست.',
emailOrUsername: 'ایمیل یا نام کاربری',
emailSent: 'ایمیل ارسال شد.',
emailVerified: 'ایمیل با موفقیت تأیید شد.',
enableAPIKey: 'فعال‌سازی کلید API',
failedToUnlock: 'باز کردن قفل ناموفق بود.',
forceUnlock: 'باز کردن اجباری قفل',
forgotPassword: 'فراموشی رمز عبور',
forgotPasswordEmailInstructions: 'لطفاً ایمیل خود را وارد کنید. لینکی برای بازنشانی رمز عبور دریافت خواهید کرد.',
forgotPasswordQuestion: 'رمز عبور خود را فراموش کرده‌اید؟',
forgotPasswordUsernameInstructions: 'لطفاً نام کاربری خود را وارد کنید. دستورالعمل بازنشانی رمز عبور به ایمیل مرتبط با حساب شما ارسال خواهد شد.',
generate: 'تولید',
generateNewAPIKey: 'تولید کلید API جدید',
generatingNewAPIKeyWillInvalidate: 'با تولید کلید جدید، کلید API فعلی شما <1>باطل</1> خواهد شد. آیا می‌خواهید ادامه دهید؟',
lockUntil: 'قفل تا تاریخ',
logBackIn: 'دوباره وارد شوید',
loggedIn: 'برای ورود با یک حساب دیگر، ابتدا باید <0>خارج</0> شوید.',
loggedInChangePassword: 'برای تغییر رمز عبور، به صفحه <0>حساب کاربری</0> خود مراجعه کنید.',
loggedOutInactivity: 'به دلیل عدم فعالیت، از حساب خود خارج شدید.',
loggedOutSuccessfully: 'شما با موفقیت خارج شدید.',
loggingOut: 'در حال خروج...',
login: 'ورود',
loginAttempts: 'تلاش‌های ورود ناموفق',
loginUser: 'ورود کاربر',
loginWithAnotherUser: 'برای ورود با یک حساب دیگر، ابتدا باید <0>خارج</0> شوید.',
logOut: 'خروج',
logout: 'خروج',
logoutSuccessful: 'خروج با موفقیت انجام شد.',
logoutUser: 'خروج کاربر',
newAccountCreated: 'یک حساب کاربری جدید برای شما در <a href="{{serverURL}}">{{serverURL}}</a> ایجاد شد. لطفاً برای تأیید ایمیل خود روی لینک زیر کلیک کنید: <a href="{{verificationURL}}">{{verificationURL}}</a><br> پس از تأیید، می‌توانید وارد شوید.',
newAPIKeyGenerated: 'کلید API جدید با موفقیت تولید شد.',
newPassword: 'رمز عبور جدید',
passed: 'تأیید شد',
passwordResetSuccessfully: 'رمز عبور با موفقیت تغییر کرد.',
resetPassword: 'بازنشانی رمز عبور',
resetPasswordExpiration: 'انقضای توکن بازنشانی',
resetPasswordToken: 'توکن بازنشانی رمز عبور',
resetYourPassword: 'رمز عبور خود را بازنشانی کنید',
stayLoggedIn: 'بله، آنلاین بمان',
successfullyRegisteredFirstUser: 'اولین کاربر با موفقیت ثبت شد.',
successfullyUnlocked: 'قفل حساب با موفقیت باز شد.',
tokenRefreshSuccessful: 'توکن با موفقیت به‌روزرسانی شد.',
unableToVerify: 'تأیید حساب امکان‌پذیر نیست.',
username: 'نام کاربری',
usernameNotValid: 'نام کاربری وارد شده معتبر نیست.',
verified: 'تأیید شده',
verifiedSuccessfully: 'با موفقیت تأیید شد.',
verify: 'تأیید',
verifyUser: 'تأیید کاربر',
verifyYourEmail: 'ایمیل خود را تأیید کنید',
youAreInactive: 'شما برای مدتی غیرفعال بوده‌اید. برای امنیت، به‌زودی از حساب خود خارج می‌شوید. هنوز اینجا هستید؟',
youAreReceivingResetPassword: 'شما (یا شخص دیگری) درخواستی برای بازنشانی رمز عبور این حساب ارسال کرده‌اید. اگر این درخواست از طرف شما بوده، لطفاً روی لینک زیر کلیک کنید تا فرآیند را تکمیل کنید. در غیر این صورت، این ایمیل را نادیده بگیرید.',
youDidNotRequestPassword: 'اگر شما درخواست بازنشانی رمز عبور نداده‌اید، این ایمیل را نادیده بگیرید. رمز عبور شما تغییری نخواهد کرد.'
},
dashboard: {
addWidget: 'اضافه کردن ویجت',
deleteWidget: 'حذف ابزارک {{id}}',
searchWidgets: 'جستجوی ابزارک‌ها...'
},
error: {
accountAlreadyActivated: 'این حساب کاربری قبلاً فعال شده است.',
autosaving: 'هنگام ذخیره خودکار این صفحه، خطایی رخ داد.',
correctInvalidFields: 'لطفاً فیلدهای نامعتبر را اصلاح کنید.',
deletingFile: 'هنگام حذف این فایل خطایی رخ داد.',
deletingTitle: 'در حذف "{{title}}" خطایی رخ داد. لطفاً اتصال اینترنت خود را بررسی کنید.',
documentNotFound: 'صفحهی با شناسه {{id}} پیدا نشد. ممکن است حذف شده باشد یا شما اجازه دسترسی به آن را نداشته باشید.',
emailOrPasswordIncorrect: 'ایمیل یا رمز عبور اشتباه است.',
followingFieldsInvalid_one: 'فیلد زیر نامعتبر است:',
followingFieldsInvalid_other: 'فیلدهای زیر نامعتبر هستند:',
incorrectCollection: 'مجموعه (Collection) نامعتبر است.',
insufficientClipboardPermissions: 'دسترسی به کلیپ‌بورد امکان‌پذیر نیست. لطفاً دسترسی‌های مرورگر خود را بررسی کنید.',
invalidClipboardData: 'اطلاعات نامعتبری در کلیپ‌بورد وجود دارد.',
invalidFileType: 'نوع فایل انتخاب شده معتبر نیست.',
invalidFileTypeValue: 'نوع فایل نامعتبر: {{value}}',
invalidRequestArgs: 'آرگومان‌های نامعتبری در درخواست ارسال شد: {{args}}',
loadingDocument: 'در بارگذاری صفحه با شناسه {{id}} مشکلی پیش آمد.',
localesNotSaved_one: 'امکان ذخیره زبان زیر وجود ندارد:',
localesNotSaved_other: 'امکان ذخیره زبان‌های زیر وجود ندارد:',
logoutFailed: 'خروج از حساب کاربری ناموفق بود.',
missingEmail: 'لطفاً ایمیل خود را وارد کنید.',
missingIDOfDocument: 'شناسه صفحه برای به‌روزرسانی مشخص نشده است.',
missingIDOfVersion: 'شناسه نسخه مشخص نشده است.',
missingRequiredData: 'اطلاعات مورد نیاز ارسال نشده است.',
noFilesUploaded: 'هیچ فایلی آپلود نشده است.',
noMatchedField: 'فیلدی با عنوان "{{label}}" پیدا نشد.',
notAllowedToAccessPage: 'شما اجازه دسترسی به این صفحه را ندارید.',
notAllowedToPerformAction: 'شما مجاز به انجام این کار نیستید.',
notFound: 'صفحه مورد نظر پیدا نشد.',
noUser: 'کاربری یافت نشد.',
previewing: 'هنگام نمایش پیش‌نمایش این فایل، خطایی رخ داد.',
problemUploadingFile: 'هنگام آپلود فایل خطایی رخ داد.',
restoringTitle: 'در بازیابی "{{title}}" خطایی رخ داد. لطفاً اتصال اینترنت خود را بررسی کرده و دوباره تلاش کنید.',
revertingDocument: 'هنگام بازگرداندن این سند مشکلی پیش آمد.',
tokenInvalidOrExpired: 'توکن شما نامعتبر یا منقضی شده است.',
tokenNotProvided: 'توکن ارسال نشده است.',
unableToCopy: 'امکان کپی کردن وجود ندارد.',
unableToDeleteCount: 'حذف {{count}} از {{total}} {{label}} امکان‌پذیر نیست.',
unableToReindexCollection: 'خطا در بازسازی ایندکس مجموعه {{collection}}. عملیات متوقف شد.',
unableToUpdateCount: 'به‌روزرسانی {{count}} از {{total}} {{label}} امکان‌پذیر نیست.',
unauthorized: 'برای ارسال این درخواست، باید ابتدا وارد حساب کاربری خود شوید.',
unauthorizedAdmin: 'شما اجازه دسترسی به پنل مدیریت را ندارید.',
unknown: 'یک خطای ناشناخته رخ داد.',
unPublishingDocument: 'هنگام لغو انتشار این صفحه، خطایی رخ داد.',
unspecific: 'یک خطا رخ داد. لطفاً دوباره تلاش کنید.',
unverifiedEmail: 'لطفاً قبل از ورود، ایمیل حساب کاربری خود را تأیید کنید.',
userEmailAlreadyRegistered: 'کاربری با این ایمیل قبلاً ثبت‌نام کرده است.',
userLocked: 'این حساب به دلیل تلاش‌های ناموفق متعدد برای ورود، قفل شده است.',
usernameAlreadyRegistered: 'کاربری با این نام کاربری قبلاً ثبت‌نام کرده است.',
usernameOrPasswordIncorrect: 'نام کاربری یا رمز عبور اشتباه است.',
valueMustBeUnique: 'این مقدار باید منحصر به فرد باشد.',
verificationTokenInvalid: 'توکن تأیید نامعتبر است.'
},
fields: {
addLabel: 'افزودن {{label}}',
addLink: 'افزودن لینک',
addNew: 'افزودن مورد جدید',
addNewLabel: 'افزودن {{label}} جدید',
addRelationship: 'افزودن ارتباط',
addUpload: 'افزودن فایل',
block: 'بلاک',
blocks: 'بلاک‌ها',
blockType: 'نوع بلاک',
chooseBetweenCustomTextOrDocument: 'یک URL سفارشی وارد کنید یا به یک صفحه دیگر لینک دهید.',
chooseDocumentToLink: 'یک صفحه را برای لینک دادن انتخاب کنید',
chooseFromExisting: 'انتخاب از موارد موجود',
chooseLabel: 'انتخاب {{label}}',
collapseAll: 'بستن همه',
customURL: 'URL سفارشی',
editLabelData: 'ویرایش اطلاعات {{label}}',
editLink: 'ویرایش لینک',
editRelationship: 'ویرایش ارتباط',
enterURL: 'یک URL وارد کنید',
internalLink: 'لینک داخلی',
itemsAndMore: '{{items}} و {{count}} مورد دیگر',
labelRelationship: 'ارتباط {{label}}',
latitude: 'عرض جغرافیایی',
linkedTo: 'لینک شده به <0>{{label}}</0>',
linkType: 'نوع لینک',
longitude: 'طول جغرافیایی',
newLabel: '{{label}} جدید',
openInNewTab: 'باز کردن در تب جدید',
passwordsDoNotMatch: 'رمزهای عبور یکسان نیستند.',
relatedDocument: 'صفحه مرتبط',
relationTo: 'مرتبط با',
removeRelationship: 'حذف ارتباط',
removeUpload: 'حذف فایل',
saveChanges: 'ذخیره تغییرات',
searchForBlock: 'جستجو برای بلاک',
searchForLanguage: 'جستجو برای یک زبان',
selectExistingLabel: 'انتخاب {{label}} موجود',
selectFieldsToEdit: 'فیلدهای مورد نظر برای ویرایش را انتخاب کنید',
showAll: 'نمایش همه',
swapRelationship: 'جابجایی ارتباط',
swapUpload: 'جابجایی فایل',
textToDisplay: 'متن نمایشی',
toggleBlock: 'تغییر وضعیت بلاک',
uploadNewLabel: 'آپلود {{label}} جدید'
},
folder: {
browseByFolder: 'مرور بر اساس پوشه',
byFolder: 'بر اساس پوشه',
deleteFolder: 'حذف پوشه',
folderName: 'نام پوشه',
folders: 'پوشه‌ها',
folderTypeDescription: 'انتخاب کنید چه نوع اسنادی می‌توانند در این پوشه قرار بگیرند.',
itemHasBeenMoved: '"{{title}}" به پوشه "{{folderName}}" منتقل شد.',
itemHasBeenMovedToRoot: '"{{title}}" به پوشه اصلی منتقل شد.',
itemsMovedToFolder: '{{count}} مورد به پوشه "{{folderName}}" منتقل شد.',
itemsMovedToRoot: '{{count}} مورد به پوشه اصلی منتقل شد.',
moveFolder: 'انتقال پوشه',
moveItemsToFolderConfirmation: 'آیا از انتقال <1>{{count}} {{label}}</1> به پوشه <2>{{toFolder}}</2> مطمئن هستید؟',
moveItemsToRootConfirmation: 'آیا از انتقال <1>{{count}} {{label}}</1> به پوشه اصلی مطمئن هستید؟',
moveItemToFolderConfirmation: 'آیا از انتقال <1>{{title}}</1> به پوشه <2>{{toFolder}}</2> مطمئن هستید؟',
moveItemToRootConfirmation: 'آیا از انتقال <1>{{title}}</1> به پوشه اصلی مطمئن هستید؟',
movingFromFolder: 'انتقال "{{title}}" از پوشه {{fromFolder}}',
newFolder: 'پوشه جدید',
noFolder: 'بدون پوشه',
renameFolder: 'تغییر نام پوشه',
searchByNameInFolder: 'جستجو بر اساس نام در "{{folderName}}"',
selectFolderForItem: 'انتخاب پوشه برای "{{title}}"'
},
general: {
name: 'نام',
aboutToDelete: 'آیا از حذف {{label}} "{{title}}" مطمئن هستید؟',
aboutToDeleteCount_many: 'آیا از حذف {{count}} {{label}} مطمئن هستید؟',
aboutToDeleteCount_one: 'آیا از حذف {{count}} {{label}} مطمئن هستید؟',
aboutToDeleteCount_other: 'آیا از حذف {{count}} {{label}} مطمئن هستید؟',
aboutToPermanentlyDelete: 'شما در حال حذف دائمی {{label}} "{{title}}" هستید. این عمل قابل بازگشت نیست. آیا مطمئن هستید؟',
aboutToPermanentlyDeleteTrash: 'آیا از حذف دائمی <0>{{count}}</0> <1>{{label}}</1> از سطل زباله مطمئن هستید؟ این عمل قابل بازگشت نیست.',
aboutToRestore: 'آیا از بازیابی {{label}} "{{title}}" مطمئن هستید؟',
aboutToRestoreAsDraft: 'آیا می‌خواهید {{label}} "{{title}}" به عنوان پیش‌نویس بازیابی شود؟',
aboutToRestoreAsDraftCount: 'آیا می‌خواهید {{count}} {{label}} به عنوان پیش‌نویس بازیابی شوند؟',
aboutToRestoreCount: 'آیا از بازیابی {{count}} {{label}} مطمئن هستید؟',
aboutToTrash: 'آیا می‌خواهید {{label}} "{{title}}" به سطل زباله منتقل شود؟',
aboutToTrashCount: 'آیا می‌خواهید {{count}} {{label}} به سطل زباله منتقل شوند؟',
addBelow: 'افزودن در زیر',
addFilter: 'افزودن فیلتر',
adminTheme: 'پوسته پنل مدیریت',
all: 'همه',
allCollections: 'همه مجموعه‌ها',
allLocales: 'همه زبان‌ها',
and: 'و',
anotherUser: 'کاربر دیگر',
anotherUserTakenOver: 'کاربر دیگری ویرایش این صفحه را در دست گرفته است.',
applyChanges: 'اعمال تغییرات',
ascending: 'صعودی',
automatic: 'خودکار',
backToDashboard: 'بازگشت به داشبورد',
cancel: 'انصراف',
changesNotSaved: 'تغییرات شما ذخیره نشده‌اند. در صورت خروج از این صفحه، این تغییرات از بین خواهند رفت.',
clear: 'پاک کردن',
clearAll: 'پاک کردن همه',
close: 'بستن',
collapse: 'بستن',
collections: 'مجموعه‌ها',
columns: 'ستون‌ها',
columnToSort: 'ستون برای مرتب‌سازی',
confirm: 'تأیید',
confirmCopy: 'تأیید کپی',
confirmDeletion: 'تأیید حذف',
confirmDuplication: 'تأیید ایجاد کپی',
confirmMove: 'تأیید انتقال',
confirmReindex: 'آیا همه {{collections}} دوباره ایندکس شوند؟',
confirmReindexAll: 'آیا همه مجموعه‌ها دوباره ایندکس شوند؟',
confirmReindexDescription: 'این کار ایندکس‌های موجود را حذف کرده و اسناد را در مجموعه‌های {{collections}} دوباره ایندکس می‌کند.',
confirmReindexDescriptionAll: 'این کار ایندکس‌های موجود را حذف کرده و اسناد را در همه مجموعه‌ها دوباره ایندکس می‌کند.',
confirmRestoration: 'تأیید بازیابی',
copied: 'کپی شد',
copy: 'کپی',
copyField: 'کپی کردن فیلد',
copying: 'در حال کپی...',
copyRow: 'کپی کردن ردیف',
copyWarning: 'شما در حال کپی کردن مقادیر از {{from}} به {{to}} برای {{label}} "{{title}}" هستید. آیا مطمئن هستید؟',
create: 'ایجاد',
created: 'ایجاد شد',
createdAt: 'تاریخ ایجاد',
createNew: 'ایجاد مورد جدید',
createNewLabel: 'ایجاد {{label}} جدید',
creating: 'در حال ایجاد...',
creatingNewLabel: 'در حال ایجاد {{label}} جدید',
currentlyEditing: 'کاربر دیگری در حال ویرایش این صفحه است. اگر شما ادامه دهید، ویرایش برای او متوقف شده و ممکن است تغییرات ذخیره نشده‌اش از بین برود.',
custom: 'سفارشی',
dark: 'تاریک',
dashboard: 'داشبورد',
delete: 'حذف',
deleted: 'حذف شد',
deletedAt: 'تاریخ حذف',
deletedCountSuccessfully: '{{count}} {{label}} با موفقیت حذف شد.',
deletedSuccessfully: 'با موفقیت حذف شد.',
deleteLabel: 'حذف {{label}}',
deletePermanently: 'حذف دائمی (خارج از سطل زباله)',
deleting: 'در حال حذف...',
depth: 'عمق',
descending: 'نزولی',
deselectAllRows: 'لغو انتخاب همه ردیف‌ها',
document: 'صفحه',
documentIsTrashed: 'این {{label}} به سطل زباله منتقل شده و فقط قابل خواندن است.',
documentLocked: 'این صفحه قفل است',
documents: 'اسناد',
duplicate: 'ایجاد کپی',
duplicateWithoutSaving: 'ایجاد کپی بدون ذخیره تغییرات',
edit: 'ویرایش',
editAll: 'ویرایش همه',
editedSince: 'ویرایش شده از',
editing: 'در حال ویرایش...',
editingLabel_many: 'در حال ویرایش {{count}} {{label}}',
editingLabel_one: 'در حال ویرایش {{count}} {{label}}',
editingLabel_other: 'در حال ویرایش {{count}} {{label}}',
editingTakenOver: 'کنترل ویرایش در دست شماست.',
editLabel: 'ویرایش {{label}}',
email: 'ایمیل',
emailAddress: 'آدرس ایمیل',
emptyTrash: 'خالی کردن سطل زباله',
emptyTrashLabel: 'خالی کردن سطل زباله {{label}}',
enterAValue: 'یک مقدار وارد کنید',
error: 'خطا',
errors: 'خطاها',
exitLivePreview: 'خروج از پیش‌نمایش زنده',
export: 'خروجی گرفتن',
fallbackToDefaultLocale: 'استفاده از زبان پیش‌فرض',
false: 'خیر',
filter: 'فیلتر',
filters: 'فیلترها',
filterWhere: 'فیلتر کردن {{label}} بر اساس',
globals: 'سراسری‌ها (Globals)',
goBack: 'بازگشت',
groupByLabel: 'گروه‌بندی بر اساس {{label}}',
import: 'ورود اطلاعات',
isEditing: 'در حال ویرایش است',
item: 'مورد',
items: 'موارد',
language: 'زبان',
lastModified: 'آخرین تغییر',
layout: 'چیدمان',
leaveAnyway: 'بله، خارج شو',
leaveWithoutSaving: 'خروج بدون ذخیره',
light: 'روشن',
livePreview: 'پیش‌نمایش زنده',
loading: 'در حال بارگذاری...',
locale: 'زبان',
locales: 'زبان‌ها',
lock: 'قفل',
menu: 'منو',
moreOptions: 'گزینه‌های بیشتر',
move: 'انتقال',
moveConfirm: 'آیا از انتقال {{count}} {{label}} به <1>{{destination}}</1> مطمئن هستید؟',
moveCount: 'انتقال {{count}} {{label}}',
moveDown: 'انتقال به پایین',
moveUp: 'انتقال به بالا',
moving: 'در حال انتقال...',
movingCount: 'در حال انتقال {{count}} {{label}}',
newLabel: '{{label}} جدید',
newPassword: 'رمز عبور جدید',
next: 'بعدی',
no: 'خیر',
noDateSelected: 'تاریخی انتخاب نشده است',
noFiltersSet: 'هیچ فیلتری اعمال نشده است.',
noLabel: 'بدون {{label}}',
none: 'هیچکدام',
noOptions: 'گزینه‌ای وجود ندارد',
noResults: 'هیچ موردی برای "{{label}}" یافت نشد. یا موردی ایجاد نشده یا با فیلترهای شما مطابقت ندارد.',
noResultsDescription: 'هیچ کدام وجود ندارند یا هیچ کدام با فیلترهایی که در بالا مشخص کرده اید مطابقت ندارند.',
noResultsFound: 'نتیجه‌ای یافت نشد.',
notFound: 'یافت نشد',
nothingFound: 'موردی یافت نشد',
noTrashResults: 'هیچ {{label}} در سطل زباله وجود ندارد.',
noUpcomingEventsScheduled: 'رویداد آینده‌ای برنامه‌ریزی نشده است.',
noValue: 'بدون مقدار',
of: 'از',
only: 'فقط',
open: 'باز کردن',
or: 'یا',
order: 'ترتیب',
overwriteExistingData: 'بازنویسی اطلاعات موجود در فیلدها',
pageNotFound: 'صفحه پیدا نشد',
password: 'رمز عبور',
pasteField: 'جای‌گذاری در فیلد',
pasteRow: 'جای‌گذاری در ردیف',
payloadSettings: 'تنظیمات Payload',
permanentlyDelete: 'حذف دائمی',
permanentlyDeletedCountSuccessfully: '{{count}} {{label}} با موفقیت برای همیشه حذف شد.',
perPage: 'تعداد در هر صفحه: {{limit}}',
previous: 'قبلی',
reindex: 'ایندکس مجدد',
reindexingAll: 'در حال ایندکس مجدد همه {{collections}}...',
remove: 'حذف',
rename: 'تغییر نام',
reset: 'بازنشانی',
resetPreferences: 'بازنشانی تنظیمات شخصی',
resetPreferencesDescription: 'این کار تمام تنظیمات شخصی شما را به حالت پیش‌فرض برمی‌گرداند.',
resettingPreferences: 'در حال بازنشانی تنظیمات...',
restore: 'بازیابی',
restoreAsPublished: 'بازیابی به عنوان نسخه منتشر شده',
restoredCountSuccessfully: '{{count}} {{label}} با موفقیت بازیابی شد.',
restoring: 'در حال بازیابی...',
row: 'ردیف',
rows: 'ردیف‌ها',
save: 'ذخیره',
saveChanges: 'ذخیره تغییرات',
saving: 'در حال ذخیره...',
schedulePublishFor: 'زمان‌بندی انتشار برای "{{title}}"',
searchBy: 'جستجو بر اساس {{label}}',
select: 'انتخاب',
selectAll: 'انتخاب همه {{count}} {{label}}',
selectAllRows: 'انتخاب همه ردیف‌ها',
selectedCount: '{{count}} {{label}} انتخاب شد',
selectLabel: 'انتخاب {{label}}',
selectValue: 'یک مقدار انتخاب کنید',
showAllLabel: 'نمایش همه {{label}}',
sorryNotFound: 'متأسفانه، موردی مطابق با درخواست شما پیدا نشد.',
sort: 'مرتب‌سازی',
sortByLabelDirection: 'مرتب‌سازی بر اساس {{label}} {{direction}}',
stayOnThisPage: 'در همین صفحه بمان',
submissionSuccessful: 'با موفقیت ارسال شد.',
submit: 'ارسال',
submitting: 'در حال ارسال...',
success: 'موفقیت',
successfullyCreated: '{{label}} با موفقیت ایجاد شد.',
successfullyDuplicated: 'کپی از {{label}} با موفقیت ایجاد شد.',
successfullyReindexed: 'با موفقیت {{count}} از {{total}} سند از {{collections}} بازشاخص‌گذاری شد و {{skips}} پیش‌نویس رد شد.',
takeOver: 'ادامه ویرایش',
thisLanguage: 'فارسی',
time: 'زمان',
timezone: 'منطقه زمانی',
titleDeleted: '{{label}} "{{title}}" با موفقیت حذف شد.',
titleRestored: '{{label}} "{{title}}" با موفقیت بازیابی شد.',
titleTrashed: '{{label}} "{{title}}" به سطل زباله منتقل شد.',
trash: 'سطل زباله',
trashedCountSuccessfully: '{{count}} {{label}} به سطل زباله منتقل شد.',
true: 'بله',
unauthorized: 'غیرمجاز',
unlock: 'باز کردن',
unsavedChanges: 'تغییرات ذخیره نشده‌ای دارید. قبل از ادامه، آن‌ها را ذخیره یا لغو کنید.',
unsavedChangesDuplicate: 'شما تغییرات ذخیره نشده‌ای دارید. آیا می‌خواهید بدون ذخیره، کپی ایجاد کنید؟',
untitled: 'بدون عنوان',
upcomingEvents: 'رویدادهای آینده',
updatedAt: 'تاریخ به‌روزرسانی',
updatedCountSuccessfully: '{{count}} {{label}} با موفقیت به‌روزرسانی شد.',
updatedLabelSuccessfully: '{{label}} با موفقیت به‌روزرسانی شد.',
updatedSuccessfully: 'با موفقیت به‌روزرسانی شد.',
updateForEveryone: 'به‌روزرسانی برای همه',
updating: 'در حال به‌روزرسانی...',
uploading: 'در حال آپلود...',
uploadingBulk: 'در حال آپلود {{current}} از {{total}}',
user: 'کاربر',
username: 'نام کاربری',
users: 'کاربران',
value: 'مقدار',
viewing: 'در حال مشاهده',
viewReadOnly: 'مشاهده (فقط خواندنی)',
welcome: 'خوش آمدید',
yes: 'بله'
},
localization: {
cannotCopySameLocale: 'امکان کپی کردن اطلاعات به همان زبان وجود ندارد.',
copyFrom: 'کپی از',
copyFromTo: 'کپی کردن از {{from}} به {{to}}',
copyTo: 'کپی به',
copyToLocale: 'کپی به زبان دیگر',
localeToPublish: 'زبان مورد نظر برای انتشار',
selectedLocales: 'انتخاب مناطق',
selectLocaleToCopy: 'یک زبان برای کپی کردن اطلاعات انتخاب کنید',
selectLocaleToDuplicate: 'انتخاب مکان‌ها برای تکثیر'
},
operators: {
contains: 'شامل می‌شود',
equals: 'برابر است با',
exists: 'وجود دارد',
intersects: 'اشتراک دارد',
isGreaterThan: 'بزرگتر از',
isGreaterThanOrEqualTo: 'بزرگتر یا مساوی با',
isIn: 'یکی از',
isLessThan: 'کوچکتر از',
isLessThanOrEqualTo: 'کوچکتر یا مساوی با',
isLike: 'مشابه',
isNotEqualTo: 'برابر نیست با',
isNotIn: 'هیچکدام از',
isNotLike: 'مشابه نیست',
near: 'نزدیک به',
within: 'در محدوده'
},
upload: {
addFile: 'افزودن فایل',
addFiles: 'افزودن فایل‌ها',
bulkUpload: 'آپلود گروهی',
crop: 'برش',
cropToolDescription: 'گوشه‌های ناحیه انتخاب شده را بکشید، یک ناحیه جدید رسم کنید یا مقادیر زیر را تنظیم نمایید.',
download: 'دانلود',
dragAndDrop: 'یک فایل را اینجا بکشید و رها کنید',
dragAndDropHere: 'یا یک فایل را اینجا بکشید و رها کنید',
editImage: 'ویرایش تصویر',
fileName: 'نام فایل',
fileSize: 'حجم فایل',
filesToUpload: 'فایل‌ها برای آپلود',
fileToUpload: 'فایل برای آپلود',
focalPoint: 'نقطه کانونی',
focalPointDescription: 'نقطه کانونی را مستقیماً روی تصویر بکشید یا مقادیر زیر را تنظیم کنید.',
height: 'ارتفاع',
lessInfo: 'اطلاعات کمتر',
moreInfo: 'اطلاعات بیشتر',
noFile: 'فایلی وجود ندارد',
pasteURL: 'جای‌گذاری URL',
previewSizes: 'اندازه‌های پیش‌نمایش',
selectCollectionToBrowse: 'یک مجموعه را برای مرور انتخاب کنید',
selectFile: 'انتخاب فایل',
setCropArea: 'تنظیم ناحیه برش',
setFocalPoint: 'تنظیم نقطه کانونی',
sizes: 'اندازه‌ها',
sizesFor: 'اندازه‌ها برای {{label}}',
width: 'عرض'
},
validation: {
emailAddress: 'لطفاً یک آدرس ایمیل معتبر وارد کنید.',
enterNumber: 'لطفاً یک عدد معتبر وارد کنید.',
fieldHasNo: 'این فیلد نباید حاوی هیچ {{label}} باشد.',
greaterThanMax: 'مقدار وارد شده ({{value}}) نباید بیشتر از {{max}} باشد.',
invalidBlock: 'بلاک "{{block}}" در این فیلد مجاز نیست.',
invalidBlocks: 'این فیلد حاوی بلاک‌های غیرمجاز است: {{blocks}}',
invalidInput: 'مقدار وارد شده نامعتبر است.',
invalidSelection: 'گزینه انتخاب شده نامعتبر است.',
invalidSelections: 'این فیلد حاوی گزینه‌های نامعتبر است:',
latitudeOutOfBounds: 'عرض جغرافیایی باید بین -90 تا 90 باشد.',
lessThanMin: 'مقدار وارد شده ({{value}}) نباید کمتر از {{min}} باشد.',
limitReached: 'حداکثر تعداد مجاز {{max}} مورد است و شما نمی‌توانید موارد بیشتری اضافه کنید.',
longerThanMin: 'طول متن باید بیشتر از {{minLength}} کاراکتر باشد.',
longitudeOutOfBounds: 'عرض جغرافیایی باید بین -180 و 180 باشد.',
notValidDate: '"{{value}}" یک تاریخ معتبر نیست.',
required: 'این فیلد الزامی است.',
requiresAtLeast: 'این فیلد به حداقل {{count}} {{label}} نیاز دارد.',
requiresNoMoreThan: 'این فیلد نمی‌تواند بیشتر از {{count}} {{label}} داشته باشد.',
requiresTwoNumbers: 'این فیلد به دو عدد نیاز دارد.',
shorterThanMax: 'طول متن باید کمتر از {{maxLength}} کاراکتر باشد.',
timezoneRequired: 'انتخاب منطقه زمانی الزامی است.',
trueOrFalse: 'مقدار این فیلد فقط می‌تواند "true" یا "false" باشد.',
username: 'لطفاً یک نام کاربری معتبر وارد کنید. فقط حروف، اعداد، نقطه، خط تیره و زیرخط مجاز هستند.',
validUploadID: 'شناسه آپلود معتبر نیست.'
},
version: {
type: 'نوع',
aboutToPublishSelection: 'آیا از انتشار تمام {{label}} انتخاب شده مطمئن هستید؟',
aboutToRestore: 'شما در حال بازگردانی این {{label}} به نسخه‌ای هستید که در تاریخ {{versionDate}} ذخیره شده است. آیا ادامه می‌دهید؟',
aboutToRestoreGlobal: 'شما در حال بازگردانی {{label}} به نسخه مربوط به تاریخ {{versionDate}} هستید. آیا ادامه می‌دهید؟',
aboutToRevertToPublished: 'شما در حال بازگرداندن این صفحه به آخرین نسخه منتشر شده آن هستید. آیا مطمئن هستید؟',
aboutToUnpublish: 'آیا از لغو انتشار این صفحه مطمئن هستید؟',
aboutToUnpublishIn: 'شما در حال انتشار نکردن این سند در {{locale}} هستید. آیا مطمئن هستید؟',
aboutToUnpublishSelection: 'آیا از لغو انتشار {{label}} انتخاب شده مطمئن هستید؟',
autosave: 'ذخیره خودکار',
autosavedSuccessfully: 'با موفقیت به صورت خودکار ذخیره شد.',
autosavedVersion: 'نسخه ذخیره خودکار',
changed: 'تغییر کرده',
changedFieldsCount_one: '{{count}} فیلد تغییر کرد',
changedFieldsCount_other: '{{count}} فیلد تغییر کرد',
compareVersion: 'مقایسه با نسخه:',
compareVersions: 'مقایسه نسخه‌ها',
comparingAgainst: 'مقایسه با',
confirmPublish: 'تأیید انتشار',
confirmRevertToSaved: 'تأیید بازگردانی به نسخه ذخیره شده',
confirmUnpublish: 'تأیید لغو انتشار',
confirmVersionRestoration: 'تأیید بازیابی نسخه',
currentDocumentStatus: 'وضعیت فعلی صفحه: {{docStatus}}',
currentDraft: 'پیش‌نویس فعلی',
currentlyPublished: 'منتشر شده',
currentlyViewing: 'در حال مشاهده',
currentPublishedVersion: 'آخرین نسخه منتشر شده',
draft: 'پیش‌نویس',
draftHasPublishedVersion: 'پیش‌نویس (نسخه منتشر شده دارد)',
draftSavedSuccessfully: 'پیش‌نویس با موفقیت ذخیره شد.',
lastSavedAgo: 'آخرین ذخیره {{distance}} پیش',
modifiedOnly: 'فقط موارد تغییر کرده',
moreVersions: 'نسخه‌های بیشتر...',
noFurtherVersionsFound: 'نسخه دیگری پیدا نشد.',
noLabelGroup: 'گروه بدون نام',
noRowsFound: 'هیچ {{label}} یافت نشد.',
noRowsSelected: 'هیچ {{label}} انتخاب نشده است.',
preview: 'پیش‌نمایش',
previouslyDraft: 'قبلاً پیش‌نویس بوده',
previouslyPublished: 'قبلاً منتشر شده',
previousVersion: 'نسخه قبلی',
problemRestoringVersion: 'در بازیابی این نسخه مشکلی پیش آمد.',
publish: 'انتشار',
publishAllLocales: 'انتشار در تمام زبان‌ها',
publishChanges: 'انتشار تغییرات',
published: 'منتشر شده',
publishIn: 'انتشار در زبان {{locale}}',
publishing: 'در حال انتشار...',
restoreAsDraft: 'بازیابی به عنوان پیش‌نویس',
restoredSuccessfully: 'با موفقیت بازیابی شد.',
restoreThisVersion: 'بازیابی این نسخه',
restoring: 'در حال بازیابی...',
reverting: 'در حال بازگردانی...',
revertToPublished: 'بازگردانی به نسخه منتشر شده',
revertUnsuccessful: 'بازگشت ناموفق بود. نسخه منتشر شده قبلی یافت نشد.',
saveDraft: 'ذخیره پیش‌نویس',
scheduledSuccessfully: 'با موفقیت زمان‌بندی شد.',
schedulePublish: 'زمان‌بندی انتشار',
selectLocales: 'زبان‌ها را برای نمایش انتخاب کنید',
selectVersionToCompare: 'یک نسخه را برای مقایسه انتخاب کنید',
showingVersionsFor: 'نمایش نسخه‌ها برای:',
showLocales: 'نمایش زبان‌ها:',
specificVersion: 'نسخه مشخص',
status: 'وضعیت',
unpublish: 'لغو انتشار',
unpublished: 'نشر نشده',
unpublishedSuccessfully: 'با موفقیت منتشر نشد.',
unpublishIn: 'لغو انتشار در {{locale}}',
unpublishing: 'در حال لغو انتشار...',
version: 'نسخه',
versionAgo: '{{distance}} پیش',
versionCount_many: '{{count}} نسخه پیدا شد',
versionCount_none: 'هیچ نسخه‌ای پیدا نشد',
versionCount_one: '{{count}} نسخه پیدا شد',
versionCount_other: '{{count}} نسخه پیدا شد',
versionID: 'شناسه نسخه',
versions: 'نسخه‌ها',
viewingVersion: 'مشاهده نسخه برای {{entityLabel}} "{{documentTitle}}"',
viewingVersionGlobal: 'مشاهده نسخه‌های کلی برای {{entityLabel}}',
viewingVersions: 'مشاهده نسخه‌ها برای {{entityLabel}} "{{documentTitle}}"',
viewingVersionsGlobal: 'مشاهده نسخه‌های کلی برای {{entityLabel}}'
}
};
export const fa = {
dateFNSKey: 'fa-IR',
translations: faTranslations
};
//# sourceMappingURL=fa.js.map
@@ -0,0 +1,32 @@
{
"name": "@babel/code-frame",
"version": "7.29.0",
"description": "Generate errors that contain a code frame that point to source locations.",
"author": "The Babel Team (https://babel.dev/team)",
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/babel/babel.git",
"directory": "packages/babel-code-frame"
},
"main": "./lib/index.js",
"dependencies": {
"@babel/helper-validator-identifier": "^7.28.5",
"js-tokens": "^4.0.0",
"picocolors": "^1.1.1"
},
"devDependencies": {
"charcodes": "^0.2.0",
"import-meta-resolve": "^4.1.0",
"strip-ansi": "^4.0.0"
},
"engines": {
"node": ">=6.9.0"
},
"type": "commonjs"
}
@@ -0,0 +1,120 @@
const formatDistanceLocale = {
lessThanXSeconds: {
one: "mindre enn eitt sekund",
other: "mindre enn {{count}} sekund",
},
xSeconds: {
one: "eitt sekund",
other: "{{count}} sekund",
},
halfAMinute: "eit halvt minutt",
lessThanXMinutes: {
one: "mindre enn eitt minutt",
other: "mindre enn {{count}} minutt",
},
xMinutes: {
one: "eitt minutt",
other: "{{count}} minutt",
},
aboutXHours: {
one: "omtrent ein time",
other: "omtrent {{count}} timar",
},
xHours: {
one: "ein time",
other: "{{count}} timar",
},
xDays: {
one: "ein dag",
other: "{{count}} dagar",
},
aboutXWeeks: {
one: "omtrent ei veke",
other: "omtrent {{count}} veker",
},
xWeeks: {
one: "ei veke",
other: "{{count}} veker",
},
aboutXMonths: {
one: "omtrent ein månad",
other: "omtrent {{count}} månader",
},
xMonths: {
one: "ein månad",
other: "{{count}} månader",
},
aboutXYears: {
one: "omtrent eitt år",
other: "omtrent {{count}} år",
},
xYears: {
one: "eitt år",
other: "{{count}} år",
},
overXYears: {
one: "over eitt år",
other: "over {{count}} år",
},
almostXYears: {
one: "nesten eitt år",
other: "nesten {{count}} år",
},
};
const wordMapping = [
"null",
"ein",
"to",
"tre",
"fire",
"fem",
"seks",
"sju",
"åtte",
"ni",
"ti",
"elleve",
"tolv",
];
export const formatDistance = (token, count, options) => {
let result;
const tokenValue = formatDistanceLocale[token];
if (typeof tokenValue === "string") {
result = tokenValue;
} else if (count === 1) {
result = tokenValue.one;
} else {
result = tokenValue.other.replace(
"{{count}}",
count < 13 ? wordMapping[count] : String(count),
);
}
if (options?.addSuffix) {
if (options.comparison && options.comparison > 0) {
return "om " + result;
} else {
return result + " sidan";
}
}
return result;
};
@@ -0,0 +1 @@
{"version":3,"file":"isURLAllowed.d.ts","sourceRoot":"","sources":["../../src/utilities/isURLAllowed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,eAAO,MAAM,YAAY,QAAS,MAAM,aAAa,SAAS,KAAG,OA+BhE,CAAA"}
@@ -0,0 +1,135 @@
"use strict";
exports.match = void 0;
var _index = require("../../_lib/buildMatchFn.js");
var _index2 = require("../../_lib/buildMatchPatternFn.js");
const matchOrdinalNumberPattern = /^(\d+)\.?/i;
const parseOrdinalNumberPattern = /\d+/i;
const matchEraPatterns = {
narrow: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
abbreviated: /^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,
wide: /^(før Kristus|før vår tid|etter Kristus|vår tid)/i,
};
const parseEraPatterns = {
any: [/^f/i, /^e/i],
};
const matchQuarterPatterns = {
narrow: /^[1234]/i,
abbreviated: /^q[1234]/i,
wide: /^[1234](\.)? kvartal/i,
};
const parseQuarterPatterns = {
any: [/1/i, /2/i, /3/i, /4/i],
};
const matchMonthPatterns = {
narrow: /^[jfmasond]/i,
abbreviated: /^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,
wide: /^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i,
};
const parseMonthPatterns = {
narrow: [
/^j/i,
/^f/i,
/^m/i,
/^a/i,
/^m/i,
/^j/i,
/^j/i,
/^a/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
any: [
/^ja/i,
/^f/i,
/^mar/i,
/^ap/i,
/^mai/i,
/^jun/i,
/^jul/i,
/^aug/i,
/^s/i,
/^o/i,
/^n/i,
/^d/i,
],
};
const matchDayPatterns = {
narrow: /^[smtofl]/i,
short: /^(sø|ma|ti|on|to|fr|lø)/i,
abbreviated: /^(søn|man|tir|ons|tor|fre|lør)/i,
wide: /^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i,
};
const parseDayPatterns = {
any: [/^s/i, /^m/i, /^ti/i, /^o/i, /^to/i, /^f/i, /^l/i],
};
const matchDayPeriodPatterns = {
narrow:
/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,
any: /^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i,
};
const parseDayPeriodPatterns = {
any: {
am: /^a(\.?\s?m\.?)?$/i,
pm: /^p(\.?\s?m\.?)?$/i,
midnight: /^midn/i,
noon: /^midd/i,
morning: /morgen/i,
afternoon: /ettermiddag/i,
evening: /kveld/i,
night: /natt/i,
},
};
const match = (exports.match = {
ordinalNumber: (0, _index2.buildMatchPatternFn)({
matchPattern: matchOrdinalNumberPattern,
parsePattern: parseOrdinalNumberPattern,
valueCallback: (value) => parseInt(value, 10),
}),
era: (0, _index.buildMatchFn)({
matchPatterns: matchEraPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseEraPatterns,
defaultParseWidth: "any",
}),
quarter: (0, _index.buildMatchFn)({
matchPatterns: matchQuarterPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseQuarterPatterns,
defaultParseWidth: "any",
valueCallback: (index) => index + 1,
}),
month: (0, _index.buildMatchFn)({
matchPatterns: matchMonthPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseMonthPatterns,
defaultParseWidth: "any",
}),
day: (0, _index.buildMatchFn)({
matchPatterns: matchDayPatterns,
defaultMatchWidth: "wide",
parsePatterns: parseDayPatterns,
defaultParseWidth: "any",
}),
dayPeriod: (0, _index.buildMatchFn)({
matchPatterns: matchDayPeriodPatterns,
defaultMatchWidth: "any",
parsePatterns: parseDayPeriodPatterns,
defaultParseWidth: "any",
}),
});
@@ -0,0 +1,59 @@
import { isNumber } from '../isNumber.js';
import { parseBooleanString } from '../parseBooleanString.js';
import { sanitizeJoinParams } from '../sanitizeJoinParams.js';
import { sanitizePopulateParam } from '../sanitizePopulateParam.js';
import { sanitizeSelectParam } from '../sanitizeSelectParam.js';
import { sanitizeSortParams } from '../sanitizeSortParams.js';
export const booleanParams = [
'autosave',
'draft',
'trash',
'overrideLock',
'pagination',
'flattenLocales'
];
export const numberParams = [
'depth',
'limit',
'page'
];
/**
* Takes raw query parameters and parses them into the correct types that Payload expects.
* Examples:
* a. `draft` provided as a string of "true" is converted to a boolean
* b. `depth` provided as a string of "0" is converted to a number
* c. `sort` provided as a comma-separated string or array is converted to an array of strings
*/ export const parseParams = (params)=>{
const parsedParams = params || {};
// iterate through known params to make this very fast
for (const key of booleanParams){
if (key in params) {
parsedParams[key] = parseBooleanString(params[key]);
}
}
for (const key of numberParams){
if (key in params) {
if (isNumber(params[key])) {
parsedParams[key] = Number(params[key]);
}
}
}
if ('populate' in params) {
parsedParams.populate = sanitizePopulateParam(params.populate);
}
if ('select' in params) {
parsedParams.select = sanitizeSelectParam(params.select);
}
if ('joins' in params) {
parsedParams.joins = sanitizeJoinParams(params.joins);
}
if ('sort' in params) {
parsedParams.sort = sanitizeSortParams(params.sort);
}
if ('data' in params && typeof params.data === 'string' && params.data.length > 0) {
parsedParams.data = JSON.parse(params.data);
}
return parsedParams;
};
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
export { _ as default } from "../esm/_sliced_to_array_loose.js";
@@ -0,0 +1,8 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { isAfter as fn } from "../isAfter.mjs";
import { convertToFP } from "./_lib/convertToFP.mjs";
export const isAfter = convertToFP(fn, 2);
// Fallback for modularized imports:
export default isAfter;
@@ -0,0 +1,36 @@
"use strict";
exports.getDaysInMonth = getDaysInMonth;
var _index = require("./constructFrom.cjs");
var _index2 = require("./toDate.cjs");
/**
* The {@link getDaysInMonth} function options.
*/
/**
* @name getDaysInMonth
* @category Month Helpers
* @summary Get the number of days in a month of the given date.
*
* @description
* Get the number of days in a month of the given date, considering the context if provided.
*
* @param date - The given date
* @param options - An object with options
*
* @returns The number of days in a month
*
* @example
* // How many days are in February 2000?
* const result = getDaysInMonth(new Date(2000, 1))
* //=> 29
*/
function getDaysInMonth(date, options) {
const _date = (0, _index2.toDate)(date, options?.in);
const year = _date.getFullYear();
const monthIndex = _date.getMonth();
const lastDayOfMonth = (0, _index.constructFrom)(_date, 0);
lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);
lastDayOfMonth.setHours(0, 0, 0, 0);
return lastDayOfMonth.getDate();
}
@@ -0,0 +1,8 @@
"use strict";
exports.differenceInMinutes = void 0;
var _index = require("../differenceInMinutes.js");
var _index2 = require("./_lib/convertToFP.js"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
const differenceInMinutes = (exports.differenceInMinutes = (0,
_index2.convertToFP)(_index.differenceInMinutes, 2));
@@ -0,0 +1 @@
{"version":3,"file":"index.js","names":["RenderServerComponent","React","ShouldRenderTabs","DefaultDocumentTab","getTabs","baseClass","DocumentTabs","collectionConfig","globalConfig","permissions","req","config","payload","tabs","_jsx","className","map","tab","tabConfig","viewPath","index","condition","meetsCondition","Component","clientProps","path","importMap","key","serverProps","i18n","user"],"sources":["../../../../src/elements/DocumentHeader/Tabs/index.tsx"],"sourcesContent":["import type {\n DocumentTabClientProps,\n DocumentTabServerPropsOnly,\n PayloadRequest,\n SanitizedCollectionConfig,\n SanitizedGlobalConfig,\n SanitizedPermissions,\n} from 'payload'\n\nimport { RenderServerComponent } from '@payloadcms/ui/elements/RenderServerComponent'\nimport React from 'react'\n\nimport { ShouldRenderTabs } from './ShouldRenderTabs.js'\nimport { DefaultDocumentTab } from './Tab/index.js'\nimport { getTabs } from './tabs/index.js'\nimport './index.scss'\n\nconst baseClass = 'doc-tabs'\n\nexport const DocumentTabs: React.FC<{\n collectionConfig: SanitizedCollectionConfig\n globalConfig: SanitizedGlobalConfig\n permissions: SanitizedPermissions\n req: PayloadRequest\n}> = ({ collectionConfig, globalConfig, permissions, req }) => {\n const { config } = req.payload\n\n const tabs = getTabs({\n collectionConfig,\n globalConfig,\n })\n\n return (\n <ShouldRenderTabs>\n <div className={baseClass}>\n <div className={`${baseClass}__tabs-container`}>\n <ul className={`${baseClass}__tabs`}>\n {tabs?.map(({ tab: tabConfig, viewPath }, index) => {\n const { condition } = tabConfig || {}\n\n const meetsCondition =\n !condition ||\n condition({ collectionConfig, config, globalConfig, permissions, req })\n\n if (!meetsCondition) {\n return null\n }\n\n if (tabConfig?.Component) {\n return RenderServerComponent({\n clientProps: {\n path: viewPath,\n } satisfies DocumentTabClientProps,\n Component: tabConfig.Component,\n importMap: req.payload.importMap,\n key: `tab-${index}`,\n serverProps: {\n collectionConfig,\n globalConfig,\n i18n: req.i18n,\n payload: req.payload,\n permissions,\n req,\n user: req.user,\n } satisfies DocumentTabServerPropsOnly,\n })\n }\n\n return (\n <DefaultDocumentTab\n collectionConfig={collectionConfig}\n globalConfig={globalConfig}\n key={`tab-${index}`}\n path={viewPath}\n permissions={permissions}\n req={req}\n tabConfig={tabConfig}\n />\n )\n })}\n </ul>\n </div>\n </div>\n </ShouldRenderTabs>\n )\n}\n"],"mappings":";AASA,SAASA,qBAAqB,QAAQ;AACtC,OAAOC,KAAA,MAAW;AAElB,SAASC,gBAAgB,QAAQ;AACjC,SAASC,kBAAkB,QAAQ;AACnC,SAASC,OAAO,QAAQ;AAGxB,MAAMC,SAAA,GAAY;AAElB,OAAO,MAAMC,YAAA,GAKRA,CAAC;EAAEC,gBAAgB;EAAEC,YAAY;EAAEC,WAAW;EAAEC;AAAG,CAAE;EACxD,MAAM;IAAEC;EAAM,CAAE,GAAGD,GAAA,CAAIE,OAAO;EAE9B,MAAMC,IAAA,GAAOT,OAAA,CAAQ;IACnBG,gBAAA;IACAC;EACF;EAEA,oBACEM,IAAA,CAACZ,gBAAA;cACC,aAAAY,IAAA,CAAC;MAAIC,SAAA,EAAWV,SAAA;gBACd,aAAAS,IAAA,CAAC;QAAIC,SAAA,EAAW,GAAGV,SAAA,kBAA2B;kBAC5C,aAAAS,IAAA,CAAC;UAAGC,SAAA,EAAW,GAAGV,SAAA,QAAiB;oBAChCQ,IAAA,EAAMG,GAAA,CAAI,CAAC;YAAEC,GAAA,EAAKC,SAAS;YAAEC;UAAQ,CAAE,EAAEC,KAAA;YACxC,MAAM;cAAEC;YAAS,CAAE,GAAGH,SAAA,IAAa,CAAC;YAEpC,MAAMI,cAAA,GACJ,CAACD,SAAA,IACDA,SAAA,CAAU;cAAEd,gBAAA;cAAkBI,MAAA;cAAQH,YAAA;cAAcC,WAAA;cAAaC;YAAI;YAEvE,IAAI,CAACY,cAAA,EAAgB;cACnB,OAAO;YACT;YAEA,IAAIJ,SAAA,EAAWK,SAAA,EAAW;cACxB,OAAOvB,qBAAA,CAAsB;gBAC3BwB,WAAA,EAAa;kBACXC,IAAA,EAAMN;gBACR;gBACAI,SAAA,EAAWL,SAAA,CAAUK,SAAS;gBAC9BG,SAAA,EAAWhB,GAAA,CAAIE,OAAO,CAACc,SAAS;gBAChCC,GAAA,EAAK,OAAOP,KAAA,EAAO;gBACnBQ,WAAA,EAAa;kBACXrB,gBAAA;kBACAC,YAAA;kBACAqB,IAAA,EAAMnB,GAAA,CAAImB,IAAI;kBACdjB,OAAA,EAASF,GAAA,CAAIE,OAAO;kBACpBH,WAAA;kBACAC,GAAA;kBACAoB,IAAA,EAAMpB,GAAA,CAAIoB;gBACZ;cACF;YACF;YAEA,oBACEhB,IAAA,CAACX,kBAAA;cACCI,gBAAA,EAAkBA,gBAAA;cAClBC,YAAA,EAAcA,YAAA;cAEdiB,IAAA,EAAMN,QAAA;cACNV,WAAA,EAAaA,WAAA;cACbC,GAAA,EAAKA,GAAA;cACLQ,SAAA,EAAWA;eAJN,OAAOE,KAAA,EAAO;UAOzB;;;;;AAMZ","ignoreList":[]}
@@ -0,0 +1,6 @@
export * from './types'
export * from './utils'
export * from './ReactCrop'
// For compat with older versions
export { ReactCrop as default, ReactCrop as Component } from './ReactCrop'
@@ -0,0 +1,2 @@
const e=require(`../../utils/throw-if-empty.cjs`),t=e=>()=>({path:`/operations`,params:e??{},method:`GET`}),n=(t,n)=>()=>(e.throwIfEmpty(String(t),`Key cannot be empty`),{path:`/operations/${t}`,params:n??{},method:`GET`});exports.readOperation=n,exports.readOperations=t;
//# sourceMappingURL=operations.cjs.map
@@ -0,0 +1,149 @@
import { IncomingHttpHeaders } from "./header";
import Client from './client'
export default Errors
declare namespace Errors {
export class UndiciError extends Error {
name: string;
code: string;
}
/** Connect timeout error. */
export class ConnectTimeoutError extends UndiciError {
name: 'ConnectTimeoutError';
code: 'UND_ERR_CONNECT_TIMEOUT';
}
/** A header exceeds the `headersTimeout` option. */
export class HeadersTimeoutError extends UndiciError {
name: 'HeadersTimeoutError';
code: 'UND_ERR_HEADERS_TIMEOUT';
}
/** Headers overflow error. */
export class HeadersOverflowError extends UndiciError {
name: 'HeadersOverflowError'
code: 'UND_ERR_HEADERS_OVERFLOW'
}
/** A body exceeds the `bodyTimeout` option. */
export class BodyTimeoutError extends UndiciError {
name: 'BodyTimeoutError';
code: 'UND_ERR_BODY_TIMEOUT';
}
export class ResponseStatusCodeError extends UndiciError {
constructor (
message?: string,
statusCode?: number,
headers?: IncomingHttpHeaders | string[] | null,
body?: null | Record<string, any> | string
);
name: 'ResponseStatusCodeError';
code: 'UND_ERR_RESPONSE_STATUS_CODE';
body: null | Record<string, any> | string
status: number
statusCode: number
headers: IncomingHttpHeaders | string[] | null;
}
/** Passed an invalid argument. */
export class InvalidArgumentError extends UndiciError {
name: 'InvalidArgumentError';
code: 'UND_ERR_INVALID_ARG';
}
/** Returned an invalid value. */
export class InvalidReturnValueError extends UndiciError {
name: 'InvalidReturnValueError';
code: 'UND_ERR_INVALID_RETURN_VALUE';
}
/** The request has been aborted by the user. */
export class RequestAbortedError extends UndiciError {
name: 'AbortError';
code: 'UND_ERR_ABORTED';
}
/** Expected error with reason. */
export class InformationalError extends UndiciError {
name: 'InformationalError';
code: 'UND_ERR_INFO';
}
/** Request body length does not match content-length header. */
export class RequestContentLengthMismatchError extends UndiciError {
name: 'RequestContentLengthMismatchError';
code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH';
}
/** Response body length does not match content-length header. */
export class ResponseContentLengthMismatchError extends UndiciError {
name: 'ResponseContentLengthMismatchError';
code: 'UND_ERR_RES_CONTENT_LENGTH_MISMATCH';
}
/** Trying to use a destroyed client. */
export class ClientDestroyedError extends UndiciError {
name: 'ClientDestroyedError';
code: 'UND_ERR_DESTROYED';
}
/** Trying to use a closed client. */
export class ClientClosedError extends UndiciError {
name: 'ClientClosedError';
code: 'UND_ERR_CLOSED';
}
/** There is an error with the socket. */
export class SocketError extends UndiciError {
name: 'SocketError';
code: 'UND_ERR_SOCKET';
socket: Client.SocketInfo | null
}
/** Encountered unsupported functionality. */
export class NotSupportedError extends UndiciError {
name: 'NotSupportedError';
code: 'UND_ERR_NOT_SUPPORTED';
}
/** No upstream has been added to the BalancedPool. */
export class BalancedPoolMissingUpstreamError extends UndiciError {
name: 'MissingUpstreamError';
code: 'UND_ERR_BPL_MISSING_UPSTREAM';
}
export class HTTPParserError extends UndiciError {
name: 'HTTPParserError';
code: string;
}
/** The response exceed the length allowed. */
export class ResponseExceededMaxSizeError extends UndiciError {
name: 'ResponseExceededMaxSizeError';
code: 'UND_ERR_RES_EXCEEDED_MAX_SIZE';
}
export class RequestRetryError extends UndiciError {
constructor (
message: string,
statusCode: number,
headers?: IncomingHttpHeaders | string[] | null,
body?: null | Record<string, any> | string
);
name: 'RequestRetryError';
code: 'UND_ERR_REQ_RETRY';
statusCode: number;
data: {
count: number;
};
headers: Record<string, string | string[]>;
}
export class SecureProxyConnectionError extends UndiciError {
name: 'SecureProxyConnectionError';
code: 'UND_ERR_PRX_TLS';
}
}
@@ -0,0 +1,8 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { endOfISOWeekYear as fn } from "../endOfISOWeekYear.mjs";
import { convertToFP } from "./_lib/convertToFP.mjs";
export const endOfISOWeekYear = convertToFP(fn, 1);
// Fallback for modularized imports:
export default endOfISOWeekYear;
@@ -0,0 +1,4 @@
function _tdzError(e) {
throw new ReferenceError(e + " is not defined - temporal dead zone");
}
export { _tdzError as default };
@@ -0,0 +1,8 @@
"use strict";
exports.formatDurationWithOptions = void 0;
var _index = require("../formatDuration.cjs");
var _index2 = require("./_lib/convertToFP.cjs"); // This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
const formatDurationWithOptions = (exports.formatDurationWithOptions = (0,
_index2.convertToFP)(_index.formatDuration, 2));
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/providers/LivePreview/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAyB,iBAAiB,EAAsB,MAAM,SAAS,CAAA;AAG3F,OAAO,KAAmE,MAAM,OAAO,CAAA;AAEvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAU1D,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,iBAAiB,CAAC,aAAa,CAAC,CAAA;IAC9C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,UAAU,CAAC,EAAE;QACX,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,gBAAgB,EAAE,OAAO,CAAA;IACzB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,GAAG,IAAI,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,KAAK,CAAC,CAAA;AAEhE,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAwQlE,CAAA"}
@@ -0,0 +1 @@
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAa,MAAM,iBAAiB,CAAC;AAE9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAG9D;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAiB7E;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAEnC,KAAK,EAAE,GAAG,EACV,EAAE,cAAc,EAAE,EAAE,SAAS,EAC7B,IAAI,CAAC,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAC5C,MAAM,CAsBR;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAE/B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,GAErE,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,KAAK,IAAI,CAW5C"}
@@ -0,0 +1 @@
{"version":3,"sources":["../src/count.ts"],"sourcesContent":["import type { Count, SanitizedCollectionConfig } from 'payload'\n\nimport toSnakeCase from 'to-snake-case'\n\nimport type { DrizzleAdapter } from './types.js'\n\nimport { buildQuery } from './queries/buildQuery.js'\nimport { getTransaction } from './utilities/getTransaction.js'\n\nexport const count: Count = async function count(\n this: DrizzleAdapter,\n { collection, locale, req, where: whereArg },\n) {\n const collectionConfig: SanitizedCollectionConfig = this.payload.collections[collection].config\n\n const tableName = this.tableNameMap.get(toSnakeCase(collectionConfig.slug))\n\n const { joins, where } = buildQuery({\n adapter: this,\n fields: collectionConfig.flattenedFields,\n locale,\n tableName,\n where: whereArg,\n })\n\n const db = await getTransaction(this, req)\n\n const countResult = await this.countDistinct({\n db,\n joins,\n tableName,\n where,\n })\n\n return { totalDocs: countResult }\n}\n"],"names":["toSnakeCase","buildQuery","getTransaction","count","collection","locale","req","where","whereArg","collectionConfig","payload","collections","config","tableName","tableNameMap","get","slug","joins","adapter","fields","flattenedFields","db","countResult","countDistinct","totalDocs"],"mappings":"AAEA,OAAOA,iBAAiB,gBAAe;AAIvC,SAASC,UAAU,QAAQ,0BAAyB;AACpD,SAASC,cAAc,QAAQ,gCAA+B;AAE9D,OAAO,MAAMC,QAAe,eAAeA,MAEzC,EAAEC,UAAU,EAAEC,MAAM,EAAEC,GAAG,EAAEC,OAAOC,QAAQ,EAAE;IAE5C,MAAMC,mBAA8C,IAAI,CAACC,OAAO,CAACC,WAAW,CAACP,WAAW,CAACQ,MAAM;IAE/F,MAAMC,YAAY,IAAI,CAACC,YAAY,CAACC,GAAG,CAACf,YAAYS,iBAAiBO,IAAI;IAEzE,MAAM,EAAEC,KAAK,EAAEV,KAAK,EAAE,GAAGN,WAAW;QAClCiB,SAAS,IAAI;QACbC,QAAQV,iBAAiBW,eAAe;QACxCf;QACAQ;QACAN,OAAOC;IACT;IAEA,MAAMa,KAAK,MAAMnB,eAAe,IAAI,EAAEI;IAEtC,MAAMgB,cAAc,MAAM,IAAI,CAACC,aAAa,CAAC;QAC3CF;QACAJ;QACAJ;QACAN;IACF;IAEA,OAAO;QAAEiB,WAAWF;IAAY;AAClC,EAAC"}
@@ -0,0 +1,7 @@
{
"name": "dom-helpers/childElements",
"private": true,
"main": "../cjs/childElements.js",
"module": "../esm/childElements.js",
"types": "../esm/childElements.d.ts"
}
@@ -0,0 +1,107 @@
'use strict'
module.exports = {
buildSafeSonicBoom: require('./build-safe-sonic-boom.js'),
createDate: require('./create-date.js'),
deleteLogProperty: require('./delete-log-property.js'),
filterLog: require('./filter-log.js'),
formatTime: require('./format-time.js'),
getPropertyValue: require('./get-property-value.js'),
handleCustomLevelsNamesOpts: require('./handle-custom-levels-names-opts.js'),
handleCustomLevelsOpts: require('./handle-custom-levels-opts.js'),
interpretConditionals: require('./interpret-conditionals.js'),
isObject: require('./is-object.js'),
isValidDate: require('./is-valid-date.js'),
joinLinesWithIndentation: require('./join-lines-with-indentation.js'),
noop: require('./noop.js'),
parseFactoryOptions: require('./parse-factory-options.js'),
prettifyErrorLog: require('./prettify-error-log.js'),
prettifyError: require('./prettify-error.js'),
prettifyLevel: require('./prettify-level.js'),
prettifyMessage: require('./prettify-message.js'),
prettifyMetadata: require('./prettify-metadata.js'),
prettifyObject: require('./prettify-object.js'),
prettifyTime: require('./prettify-time.js'),
splitPropertyKey: require('./split-property-key.js'),
getLevelLabelData: require('./get-level-label-data')
}
// The remainder of this file consists of jsdoc blocks that are difficult to
// determine a more appropriate "home" for. As an example, the blocks associated
// with custom prettifiers could live in either the `prettify-level`,
// `prettify-metadata`, or `prettify-time` files since they are the primary
// files where such code is used. But we want a central place to define common
// doc blocks, so we are picking this file as the answer.
/**
* A hash of log property names mapped to prettifier functions. When the
* incoming log data is being processed for prettification, any key on the log
* that matches a key in a custom prettifiers hash will be prettified using
* that matching custom prettifier. The value passed to the custom prettifier
* will the value associated with the corresponding log key.
*
* The hash may contain any arbitrary keys for arbitrary log properties, but it
* may also contain a set of predefined key names that map to well-known log
* properties. These keys are:
*
* + `time` (for the timestamp field)
* + `level` (for the level label field; value may be a level number instead
* of a level label)
* + `hostname`
* + `pid`
* + `name`
* + `caller`
*
* @typedef {Object.<string, CustomPrettifierFunc>} CustomPrettifiers
*/
/**
* A synchronous function to be used for prettifying a log property. It must
* return a string.
*
* @typedef {function} CustomPrettifierFunc
* @param {any} value The value to be prettified for the key associated with
* the prettifier.
* @returns {string}
*/
/**
* A tokenized string that indicates how the prettified log line should be
* formatted. Tokens are either log properties enclosed in curly braces, e.g.
* `{levelLabel}`, `{pid}`, or `{req.url}`, or conditional directives in curly
* braces. The only conditional directives supported are `if` and `end`, e.g.
* `{if pid}{pid}{end}`; every `if` must have a matching `end`. Nested
* conditions are not supported.
*
* @typedef {string} MessageFormatString
*
* @example
* `{levelLabel} - {if pid}{pid} - {end}url:{req.url}`
*/
/**
* @typedef {object} PrettifyMessageExtras
* @property {object} colors Available color functions based on `useColor` (or `colorize`) context
* the options.
*/
/**
* A function that accepts a log object, name of the message key, and name of
* the level label key and returns a formatted log line.
*
* Note: this function must be synchronous.
*
* @typedef {function} MessageFormatFunction
* @param {object} log The log object to be processed.
* @param {string} messageKey The name of the key in the `log` object that
* contains the log message.
* @param {string} levelLabel The name of the key in the `log` object that
* contains the log level name.
* @param {PrettifyMessageExtras} extras Additional data available for message context
* @returns {string}
*
* @example
* function (log, messageKey, levelLabel) {
* return `${log[levelLabel]} - ${log[messageKey]}`
* }
*/
@@ -0,0 +1 @@
{"version":3,"file":"user-circle-2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -0,0 +1,63 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const ContextDependency = require("./ContextDependency");
/** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */
/** @typedef {import("../javascript/JavascriptParser").Range} Range */
/** @typedef {import("../Dependency")} Dependency */
/** @typedef {import("../DependencyTemplate").DependencyTemplateContext} DependencyTemplateContext */
class ContextDependencyTemplateAsId extends ContextDependency.Template {
/**
* @param {Dependency} dependency the dependency for which the template should be applied
* @param {ReplaceSource} source the current replace source which can be modified
* @param {DependencyTemplateContext} templateContext the context object
* @returns {void}
*/
apply(
dependency,
source,
{ runtimeTemplate, moduleGraph, chunkGraph, runtimeRequirements }
) {
const dep = /** @type {ContextDependency} */ (dependency);
const module = moduleGraph.getModule(dep);
const moduleExports = runtimeTemplate.moduleExports({
module,
chunkGraph,
request: /** @type {string} */ (dep.request),
weak: dep.weak,
runtimeRequirements
});
const range = /** @type {Range} */ (dep.range);
if (module) {
if (dep.valueRange) {
if (Array.isArray(dep.replaces)) {
for (let i = 0; i < dep.replaces.length; i++) {
const rep = dep.replaces[i];
source.replace(rep.range[0], rep.range[1] - 1, rep.value);
}
}
source.replace(dep.valueRange[1], range[1] - 1, ")");
source.replace(
range[0],
dep.valueRange[0] - 1,
`${moduleExports}.resolve(`
);
} else {
source.replace(range[0], range[1] - 1, `${moduleExports}.resolve`);
}
} else {
source.replace(range[0], range[1] - 1, moduleExports);
}
}
}
module.exports = ContextDependencyTemplateAsId;
@@ -0,0 +1,54 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var text_exports = {};
__export(text_exports, {
GelText: () => GelText,
GelTextBuilder: () => GelTextBuilder,
text: () => text
});
module.exports = __toCommonJS(text_exports);
var import_entity = require("../../entity.cjs");
var import_common = require("./common.cjs");
class GelTextBuilder extends import_common.GelColumnBuilder {
static [import_entity.entityKind] = "GelTextBuilder";
constructor(name) {
super(name, "string", "GelText");
}
/** @internal */
build(table) {
return new GelText(table, this.config);
}
}
class GelText extends import_common.GelColumn {
static [import_entity.entityKind] = "GelText";
enumValues = this.config.enumValues;
getSQLType() {
return "text";
}
}
function text(name) {
return new GelTextBuilder(name ?? "");
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
GelText,
GelTextBuilder,
text
});
//# sourceMappingURL=text.cjs.map
@@ -0,0 +1 @@
{"version":3,"file":"WatchCondition.js","names":["c","_c","useFormFields","WatchCondition","props","$","children","path","t0","t1","fields","field","passesCondition"],"sources":["../../../src/forms/withCondition/WatchCondition.tsx"],"sourcesContent":["'use client'\n\nimport type React from 'react'\n\nimport { useFormFields } from '../Form/context.js'\n\nexport const WatchCondition: React.FC<{\n children: React.ReactNode\n path: string\n}> = (props) => {\n const { children, path } = props\n\n const field = useFormFields(([fields]) => (fields && fields?.[path]) || null)\n\n const { passesCondition } = field || {}\n\n if (passesCondition === false) {\n return null\n }\n\n return children\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;AAIA,SAASC,aAAa,QAAQ;AAE9B,OAAO,MAAMC,cAAA,GAGRC,KAAA;EAAA,MAAAC,CAAA,GAAAJ,EAAA;EACH;IAAAK,QAAA;IAAAC;EAAA,IAA2BH,KAAA;EAAA,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAE,IAAA;IAECC,EAAA,GAAAC,EAAA;MAAC,OAAAC,MAAA,IAAAD,EAAQ;MAAA,OAAKC,MAAC,IAAUA,MAAA,GAASH,IAAA,CAAK,QAAK;IAAA;IAAAF,CAAA,MAAAE,IAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAAxE,MAAAM,KAAA,GAAcT,aAAA,CAAcM,EAA4C;EAExE;IAAAI;EAAA,IAA4BD,KAAA,MAAU;EAAA,IAElCC,eAAA,UAAoB;IAAA;EAAA;EAAA,OAIjBN,QAAA;AAAA,CACT","ignoreList":[]}
@@ -0,0 +1,93 @@
"use strict";
exports.formatRelative = formatRelative;
var _index = require("./differenceInCalendarDays.js");
var _index2 = require("./format.js");
var _index3 = require("./toDate.js");
var _index4 = require("./_lib/defaultLocale.js");
var _index5 = require("./_lib/defaultOptions.js");
/**
* The {@link formatRelative} function options.
*/
/**
* @name formatRelative
* @category Common Helpers
* @summary Represent the date in words relative to the given base date.
*
* @description
* Represent the date in words relative to the given base date.
*
* | Distance to the base date | Result |
* |---------------------------|---------------------------|
* | Previous 6 days | last Sunday at 04:30 AM |
* | Last day | yesterday at 04:30 AM |
* | Same day | today at 04:30 AM |
* | Next day | tomorrow at 04:30 AM |
* | Next 6 days | Sunday at 04:30 AM |
* | Other | 12/31/2017 |
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param date - The date to format
* @param baseDate - The date to compare with
* @param options - An object with options
*
* @returns The date in words
*
* @throws `date` must not be Invalid Date
* @throws `baseDate` must not be Invalid Date
* @throws `options.locale` must contain `localize` property
* @throws `options.locale` must contain `formatLong` property
* @throws `options.locale` must contain `formatRelative` property
*
* @example
* // Represent the date of 6 days ago in words relative to the given base date. In this example, today is Wednesday
* const result = formatRelative(subDays(new Date(), 6), new Date())
* //=> "last Thursday at 12:45 AM"
*/
function formatRelative(date, baseDate, options) {
const _date = (0, _index3.toDate)(date);
const _baseDate = (0, _index3.toDate)(baseDate);
const defaultOptions = (0, _index5.getDefaultOptions)();
const locale =
options?.locale ?? defaultOptions.locale ?? _index4.defaultLocale;
const weekStartsOn =
options?.weekStartsOn ??
options?.locale?.options?.weekStartsOn ??
defaultOptions.weekStartsOn ??
defaultOptions.locale?.options?.weekStartsOn ??
0;
const diff = (0, _index.differenceInCalendarDays)(_date, _baseDate);
if (isNaN(diff)) {
throw new RangeError("Invalid time value");
}
let token;
if (diff < -6) {
token = "other";
} else if (diff < -1) {
token = "lastWeek";
} else if (diff < 0) {
token = "yesterday";
} else if (diff < 1) {
token = "today";
} else if (diff < 2) {
token = "tomorrow";
} else if (diff < 7) {
token = "nextWeek";
} else {
token = "other";
}
const formatStr = locale.formatRelative(token, _date, _baseDate, {
locale,
weekStartsOn,
});
return (0, _index2.format)(_date, formatStr, { locale, weekStartsOn });
}
@@ -0,0 +1,18 @@
/**
* @name secondsToMilliseconds
* @category Conversion Helpers
* @summary Convert seconds to milliseconds.
*
* @description
* Convert a number of seconds to a full number of milliseconds.
*
* @param seconds - The number of seconds to be converted
*
* @returns The number of seconds converted in milliseconds
*
* @example
* // Convert 2 seconds into milliseconds
* const result = secondsToMilliseconds(2)
* //=> 2000
*/
export declare function secondsToMilliseconds(seconds: number): number;
@@ -0,0 +1,32 @@
import type { JWK, JWTPayload, KeyLike, VerifyOptions, JWTClaimVerificationOptions, JWTHeaderParameters, GenericGetKeyFunction, FlattenedJWSInput, JWTVerifyResult, ResolvedKey } from '../types';
/** Combination of JWS Verification options and JWT Claims Set verification options. */
export interface JWTVerifyOptions extends VerifyOptions, JWTClaimVerificationOptions {
}
/**
* Interface for JWT Verification dynamic key resolution. No token components have been verified at
* the time of this function call.
*
* @see {@link jwks/remote.createRemoteJWKSet createRemoteJWKSet} to verify using a remote JSON Web Key Set.
*/
export interface JWTVerifyGetKey extends GenericGetKeyFunction<JWTHeaderParameters, FlattenedJWSInput, KeyLike | JWK | Uint8Array> {
}
/**
* Verifies the JWT format (to be a JWS Compact format), verifies the JWS signature, validates the
* JWT Claims Set.
*
* This function is exported (as a named export) from the main `'jose'` module entry point as well
* as from its subpath export `'jose/jwt/verify'`.
*
* @param jwt JSON Web Token value (encoded as JWS).
* @param key Key to verify the JWT with. See
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
* @param options JWT Decryption and JWT Claims Set validation options.
*/
export declare function jwtVerify<PayloadType = JWTPayload>(jwt: string | Uint8Array, key: KeyLike | Uint8Array | JWK, options?: JWTVerifyOptions): Promise<JWTVerifyResult<PayloadType>>;
/**
* @param jwt JSON Web Token value (encoded as JWS).
* @param getKey Function resolving a key to verify the JWT with. See
* {@link https://github.com/panva/jose/issues/210#jws-alg Algorithm Key Requirements}.
* @param options JWT Decryption and JWT Claims Set validation options.
*/
export declare function jwtVerify<PayloadType = JWTPayload, KeyLikeType extends KeyLike = KeyLike>(jwt: string | Uint8Array, getKey: JWTVerifyGetKey, options?: JWTVerifyOptions): Promise<JWTVerifyResult<PayloadType> & ResolvedKey<KeyLikeType>>;
@@ -0,0 +1,69 @@
import OverloadYield from "./OverloadYield.js";
function _wrapAsyncGenerator(e) {
return function () {
return new AsyncGenerator(e.apply(this, arguments));
};
}
function AsyncGenerator(e) {
var r, t;
function resume(r, t) {
try {
var n = e[r](t),
o = n.value,
u = o instanceof OverloadYield;
Promise.resolve(u ? o.v : o).then(function (t) {
if (u) {
var i = "return" === r ? "return" : "next";
if (!o.k || t.done) return resume(i, t);
t = e[i](t).value;
}
settle(n.done ? "return" : "normal", t);
}, function (e) {
resume("throw", e);
});
} catch (e) {
settle("throw", e);
}
}
function settle(e, n) {
switch (e) {
case "return":
r.resolve({
value: n,
done: !0
});
break;
case "throw":
r.reject(n);
break;
default:
r.resolve({
value: n,
done: !1
});
}
(r = r.next) ? resume(r.key, r.arg) : t = null;
}
this._invoke = function (e, n) {
return new Promise(function (o, u) {
var i = {
key: e,
arg: n,
resolve: o,
reject: u,
next: null
};
t ? t = t.next = i : (r = t = i, resume(e, n));
});
}, "function" != typeof e["return"] && (this["return"] = void 0);
}
AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () {
return this;
}, AsyncGenerator.prototype.next = function (e) {
return this._invoke("next", e);
}, AsyncGenerator.prototype["throw"] = function (e) {
return this._invoke("throw", e);
}, AsyncGenerator.prototype["return"] = function (e) {
return this._invoke("return", e);
};
export { _wrapAsyncGenerator as default };
@@ -0,0 +1,9 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
"use strict";var e=require("@lexical/react/LexicalComposerContext"),t=require("react");const n="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t.useLayoutEffect:t.useEffect;exports.useLexicalSubscription=function(r){const[u]=e.useLexicalComposerContext(),i=t.useMemo((()=>r(u)),[u,r]),[o,c]=t.useState((()=>i.initialValueFn())),s=t.useRef(o);return n((()=>{const{initialValueFn:e,subscribe:t}=i,n=e();return s.current!==n&&(s.current=n,c(n)),t((e=>{s.current=e,c(e)}))}),[i,r]),o};
@@ -0,0 +1,170 @@
"use strict";
exports.formatDistance = void 0;
const formatDistanceLocale = {
lessThanXSeconds: {
one: {
regular: "mniej niż sekunda",
past: "mniej niż sekundę",
future: "mniej niż sekundę",
},
twoFour: "mniej niż {{count}} sekundy",
other: "mniej niż {{count}} sekund",
},
xSeconds: {
one: {
regular: "sekunda",
past: "sekundę",
future: "sekundę",
},
twoFour: "{{count}} sekundy",
other: "{{count}} sekund",
},
halfAMinute: {
one: "pół minuty",
twoFour: "pół minuty",
other: "pół minuty",
},
lessThanXMinutes: {
one: {
regular: "mniej niż minuta",
past: "mniej niż minutę",
future: "mniej niż minutę",
},
twoFour: "mniej niż {{count}} minuty",
other: "mniej niż {{count}} minut",
},
xMinutes: {
one: {
regular: "minuta",
past: "minutę",
future: "minutę",
},
twoFour: "{{count}} minuty",
other: "{{count}} minut",
},
aboutXHours: {
one: {
regular: "około godziny",
past: "około godziny",
future: "około godzinę",
},
twoFour: "około {{count}} godziny",
other: "około {{count}} godzin",
},
xHours: {
one: {
regular: "godzina",
past: "godzinę",
future: "godzinę",
},
twoFour: "{{count}} godziny",
other: "{{count}} godzin",
},
xDays: {
one: {
regular: "dzień",
past: "dzień",
future: "1 dzień",
},
twoFour: "{{count}} dni",
other: "{{count}} dni",
},
aboutXWeeks: {
one: "około tygodnia",
twoFour: "około {{count}} tygodni",
other: "około {{count}} tygodni",
},
xWeeks: {
one: "tydzień",
twoFour: "{{count}} tygodnie",
other: "{{count}} tygodni",
},
aboutXMonths: {
one: "około miesiąc",
twoFour: "około {{count}} miesiące",
other: "około {{count}} miesięcy",
},
xMonths: {
one: "miesiąc",
twoFour: "{{count}} miesiące",
other: "{{count}} miesięcy",
},
aboutXYears: {
one: "około rok",
twoFour: "około {{count}} lata",
other: "około {{count}} lat",
},
xYears: {
one: "rok",
twoFour: "{{count}} lata",
other: "{{count}} lat",
},
overXYears: {
one: "ponad rok",
twoFour: "ponad {{count}} lata",
other: "ponad {{count}} lat",
},
almostXYears: {
one: "prawie rok",
twoFour: "prawie {{count}} lata",
other: "prawie {{count}} lat",
},
};
function declensionGroup(scheme, count) {
if (count === 1) {
return scheme.one;
}
const rem100 = count % 100;
// ends with 11-20
if (rem100 <= 20 && rem100 > 10) {
return scheme.other;
}
const rem10 = rem100 % 10;
// ends with 2, 3, 4
if (rem10 >= 2 && rem10 <= 4) {
return scheme.twoFour;
}
return scheme.other;
}
function declension(scheme, count, time) {
const group = declensionGroup(scheme, count);
const finalText = typeof group === "string" ? group : group[time];
return finalText.replace("{{count}}", String(count));
}
const formatDistance = (token, count, options) => {
const scheme = formatDistanceLocale[token];
if (!options?.addSuffix) {
return declension(scheme, count, "regular");
}
if (options.comparison && options.comparison > 0) {
return "za " + declension(scheme, count, "future");
} else {
return declension(scheme, count, "past") + " temu";
}
};
exports.formatDistance = formatDistance;
@@ -0,0 +1,20 @@
/**
* Returns a timestamp in seconds since the UNIX epoch using the Date API.
*/
export declare function dateTimestampInSeconds(): number;
/**
* Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the
* availability of the Performance API.
*
* BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is
* asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The
* skew can grow to arbitrary amounts like days, weeks or months.
* See https://github.com/getsentry/sentry-javascript/issues/2590.
*/
export declare function timestampInSeconds(): number;
/**
* The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the
* performance API is available.
*/
export declare function browserPerformanceTimeOrigin(): number | undefined;
//# sourceMappingURL=time.d.ts.map
@@ -0,0 +1,36 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.normalize = void 0;
const api_1 = require("@opentelemetry/api");
/**
* Placeholder normalize function to replace the node variant in browser runtimes,
* this should never be called and will perform a no-op and warn if it is called regardless.
*
* This is a workaround to fix https://github.com/open-telemetry/opentelemetry-js/issues/4373 until the instrumentation
* package can be made node-only.
*
* @param path input path
* @return unmodified path
* @internal
*/
function normalize(path) {
api_1.diag.warn('Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)');
return path;
}
exports.normalize = normalize;
//# sourceMappingURL=noop-normalize.js.map
@@ -0,0 +1,8 @@
import type { SingleRelationshipField } from '../fields/config/types.js';
export declare const buildFolderField: ({ collectionSpecific, folderFieldName, folderSlug, overrides, }: {
collectionSpecific: boolean;
folderFieldName: string;
folderSlug: string;
overrides?: Partial<SingleRelationshipField>;
}) => SingleRelationshipField;
//# sourceMappingURL=buildFolderField.d.ts.map
@@ -0,0 +1,9 @@
/**
* Memoizes the provided three-argument function.
*/
export declare function memoize3<
A1 extends object,
A2 extends object,
A3 extends object,
R,
>(fn: (a1: A1, a2: A2, a3: A3) => R): (a1: A1, a2: A2, a3: A3) => R;
@@ -0,0 +1,52 @@
import { RequestOptions } from 'node:http';
import { Integration } from '@sentry/core';
export interface HttpIntegrationOptions {
/**
* Do not capture the request body for incoming HTTP requests to URLs where the given callback returns `true`.
* This can be useful for long running requests where the body is not needed and we want to avoid capturing it.
*
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the incoming request.
* @param request Contains the {@type RequestOptions} object used to make the incoming request.
*/
ignoreRequestBody?: (url: string, request: RequestOptions) => boolean;
/**
* Controls the maximum size of incoming HTTP request bodies attached to events.
*
* Available options:
* - 'none': No request bodies will be attached
* - 'small': Request bodies up to 1,000 bytes will be attached
* - 'medium': Request bodies up to 10,000 bytes will be attached (default)
* - 'always': Request bodies will always be attached
*
* Note that even with 'always' setting, bodies exceeding 1MB will never be attached
* for performance and security reasons.
*
* @default 'medium'
*/
maxRequestBodySize?: 'none' | 'small' | 'medium' | 'always';
/**
* Whether breadcrumbs should be recorded for outgoing requests.
*
* @default `true`
*/
breadcrumbs?: boolean;
/**
* Do not capture breadcrumbs or propagate trace headers for outgoing HTTP requests to URLs
* where the given callback returns `true`.
*
* @param url Contains the entire URL, including query string (if any), protocol, host, etc. of the outgoing request.
* @param request Contains the {@type RequestOptions} object used to make the outgoing request.
*/
ignoreOutgoingRequests?: (url: string, request: RequestOptions) => boolean;
}
/**
* This integration handles incoming and outgoing HTTP requests in light mode (without OpenTelemetry).
*
* It uses Node's native diagnostics channels (Node.js 22+) for request isolation,
* trace propagation, and breadcrumb creation.
*/
export declare const httpIntegration: (options?: HttpIntegrationOptions) => Integration & {
name: "Http";
setupOnce: () => void;
};
//# sourceMappingURL=httpIntegration.d.ts.map
@@ -0,0 +1,4 @@
export declare const isWeekend: import("./types.js").FPFn1<
boolean,
string | number | Date
>;
@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const SmartphoneCharging = createLucideIcon("SmartphoneCharging", [
["rect", { width: "14", height: "20", x: "5", y: "2", rx: "2", ry: "2", key: "1yt0o3" }],
["path", { d: "M12.667 8 10 12h4l-2.667 4", key: "h9lk2d" }]
]);
export { SmartphoneCharging as default };
//# sourceMappingURL=smartphone-charging.js.map
@@ -0,0 +1,9 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
import{useLexicalComposerContext as e}from"@lexical/react/LexicalComposerContext";import{useLayoutEffect as t,useEffect as i,forwardRef as a,useState as r,useCallback as n,useMemo as o}from"react";import{jsx as l,jsxs as d,Fragment as c}from"react/jsx-runtime";import{$canShowPlaceholderCurry as s}from"@lexical/text";import{mergeRegister as u}from"@lexical/utils";const m="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?t:i;function f({editor:e,ariaActiveDescendant:t,ariaAutoComplete:i,ariaControls:a,ariaDescribedBy:d,ariaErrorMessage:c,ariaExpanded:s,ariaInvalid:u,ariaLabel:f,ariaLabelledBy:b,ariaMultiline:p,ariaOwns:x,ariaRequired:E,autoCapitalize:v,className:w,id:y,role:C="textbox",spellCheck:g=!0,style:h,tabIndex:L,"data-testid":D,...I},R){const[k,q]=r(e.isEditable()),z=n((t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)}),[e]),A=o((()=>function(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}(R,z)),[z,R]);return m((()=>(q(e.isEditable()),e.registerEditableListener((e=>{q(e)})))),[e]),l("div",{"aria-activedescendant":k?t:void 0,"aria-autocomplete":k?i:"none","aria-controls":k?a:void 0,"aria-describedby":d,...null!=c?{"aria-errormessage":c}:{},"aria-expanded":k&&"combobox"===C?!!s:void 0,...null!=u?{"aria-invalid":u}:{},"aria-label":f,"aria-labelledby":b,"aria-multiline":p,"aria-owns":k?x:void 0,"aria-readonly":!k||void 0,"aria-required":E,autoCapitalize:v,className:w,contentEditable:k,"data-testid":D,id:y,ref:A,role:C,spellCheck:g,style:h,tabIndex:L,...I})}const b=a(f);function p(e){return e.getEditorState().read(s(e.isComposing()))}const x=a(E);function E(t,i){const{placeholder:a,...r}=t,[n]=e();return d(c,{children:[l(b,{editor:n,...r,ref:i}),null!=a&&l(v,{editor:n,content:a})]})}function v({content:e,editor:i}){const a=function(e){const[t,i]=r((()=>p(e)));return m((()=>{function t(){const t=p(e);i(t)}return t(),u(e.registerUpdateListener((()=>{t()})),e.registerEditableListener((()=>{t()})))}),[e]),t}(i),[n,o]=r(i.isEditable());if(t((()=>(o(i.isEditable()),i.registerEditableListener((e=>{o(e)})))),[i]),!a)return null;let d=null;return"function"==typeof e?d=e(n):null!==e&&(d=e),null===d?null:l("div",{"aria-hidden":!0,children:d})}export{x as ContentEditable,b as ContentEditableElement};
@@ -0,0 +1,18 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const AlignHorizontalDistributeEnd = createLucideIcon("AlignHorizontalDistributeEnd", [
["rect", { width: "6", height: "14", x: "4", y: "5", rx: "2", key: "1wwnby" }],
["rect", { width: "6", height: "10", x: "14", y: "7", rx: "2", key: "1fe6j6" }],
["path", { d: "M10 2v20", key: "uyc634" }],
["path", { d: "M20 2v20", key: "1tx262" }]
]);
export { AlignHorizontalDistributeEnd as default };
//# sourceMappingURL=align-horizontal-distribute-end.js.map
@@ -0,0 +1,603 @@
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
/** @typedef {import("estree").Node} Node */
/** @typedef {import("./JavascriptParser").Range} Range */
/** @typedef {import("./JavascriptParser").VariableInfo} VariableInfo */
/** @typedef {import("./JavascriptParser").Members} Members */
/** @typedef {import("./JavascriptParser").MembersOptionals} MembersOptionals */
/** @typedef {import("./JavascriptParser").MemberRanges} MemberRanges */
const TypeUnknown = 0;
const TypeUndefined = 1;
const TypeNull = 2;
const TypeString = 3;
const TypeNumber = 4;
const TypeBoolean = 5;
const TypeRegExp = 6;
const TypeConditional = 7;
const TypeArray = 8;
const TypeConstArray = 9;
const TypeIdentifier = 10;
const TypeWrapped = 11;
const TypeTemplateString = 12;
const TypeBigInt = 13;
/** @typedef {() => Members} GetMembers */
/** @typedef {() => MembersOptionals} GetMembersOptionals */
/** @typedef {() => MemberRanges} GetMemberRanges */
class BasicEvaluatedExpression {
constructor() {
this.type = TypeUnknown;
/** @type {Range | undefined} */
this.range = undefined;
/** @type {boolean} */
this.falsy = false;
/** @type {boolean} */
this.truthy = false;
/** @type {boolean | undefined} */
this.nullish = undefined;
/** @type {boolean} */
this.sideEffects = true;
/** @type {boolean | undefined} */
this.bool = undefined;
/** @type {number | undefined} */
this.number = undefined;
/** @type {bigint | undefined} */
this.bigint = undefined;
/** @type {RegExp | undefined} */
this.regExp = undefined;
/** @type {string | undefined} */
this.string = undefined;
/** @type {BasicEvaluatedExpression[] | undefined} */
this.quasis = undefined;
/** @type {BasicEvaluatedExpression[] | undefined} */
this.parts = undefined;
/** @type {EXPECTED_ANY[] | undefined} */
this.array = undefined;
/** @type {BasicEvaluatedExpression[] | undefined} */
this.items = undefined;
/** @type {BasicEvaluatedExpression[] | undefined} */
this.options = undefined;
/** @type {BasicEvaluatedExpression | undefined | null} */
this.prefix = undefined;
/** @type {BasicEvaluatedExpression | undefined | null} */
this.postfix = undefined;
/** @type {BasicEvaluatedExpression[] | undefined} */
this.wrappedInnerExpressions = undefined;
/** @type {string | VariableInfo | undefined} */
this.identifier = undefined;
/** @type {string | VariableInfo | undefined} */
this.rootInfo = undefined;
/** @type {GetMembers | undefined} */
this.getMembers = undefined;
/** @type {GetMembersOptionals | undefined} */
this.getMembersOptionals = undefined;
/** @type {GetMemberRanges | undefined} */
this.getMemberRanges = undefined;
/** @type {Node | undefined} */
this.expression = undefined;
}
isUnknown() {
return this.type === TypeUnknown;
}
isNull() {
return this.type === TypeNull;
}
isUndefined() {
return this.type === TypeUndefined;
}
isString() {
return this.type === TypeString;
}
isNumber() {
return this.type === TypeNumber;
}
isBigInt() {
return this.type === TypeBigInt;
}
isBoolean() {
return this.type === TypeBoolean;
}
isRegExp() {
return this.type === TypeRegExp;
}
isConditional() {
return this.type === TypeConditional;
}
isArray() {
return this.type === TypeArray;
}
isConstArray() {
return this.type === TypeConstArray;
}
isIdentifier() {
return this.type === TypeIdentifier;
}
isWrapped() {
return this.type === TypeWrapped;
}
isTemplateString() {
return this.type === TypeTemplateString;
}
/**
* Is expression a primitive or an object type value?
* @returns {boolean | undefined} true: primitive type, false: object type, undefined: unknown/runtime-defined
*/
isPrimitiveType() {
switch (this.type) {
case TypeUndefined:
case TypeNull:
case TypeString:
case TypeNumber:
case TypeBoolean:
case TypeBigInt:
case TypeWrapped:
case TypeTemplateString:
return true;
case TypeRegExp:
case TypeArray:
case TypeConstArray:
return false;
default:
return undefined;
}
}
/**
* Is expression a runtime or compile-time value?
* @returns {boolean} true: compile time value, false: runtime value
*/
isCompileTimeValue() {
switch (this.type) {
case TypeUndefined:
case TypeNull:
case TypeString:
case TypeNumber:
case TypeBoolean:
case TypeRegExp:
case TypeConstArray:
case TypeBigInt:
return true;
default:
return false;
}
}
/**
* Gets the compile-time value of the expression
* @returns {undefined | null | string | number | boolean | RegExp | EXPECTED_ANY[] | bigint} the javascript value
*/
asCompileTimeValue() {
switch (this.type) {
case TypeUndefined:
return;
case TypeNull:
return null;
case TypeString:
return this.string;
case TypeNumber:
return this.number;
case TypeBoolean:
return this.bool;
case TypeRegExp:
return this.regExp;
case TypeConstArray:
return this.array;
case TypeBigInt:
return this.bigint;
default:
throw new Error(
"asCompileTimeValue must only be called for compile-time values"
);
}
}
isTruthy() {
return this.truthy;
}
isFalsy() {
return this.falsy;
}
isNullish() {
return this.nullish;
}
/**
* Can this expression have side effects?
* @returns {boolean} false: never has side effects
*/
couldHaveSideEffects() {
return this.sideEffects;
}
/**
* Creates a boolean representation of this evaluated expression.
* @returns {boolean | undefined} true: truthy, false: falsy, undefined: unknown
*/
asBool() {
if (this.truthy) return true;
if (this.falsy || this.nullish) return false;
if (this.isBoolean()) return this.bool;
if (this.isNull()) return false;
if (this.isUndefined()) return false;
if (this.isString()) return this.string !== "";
if (this.isNumber()) return this.number !== 0;
if (this.isBigInt()) return this.bigint !== BigInt(0);
if (this.isRegExp()) return true;
if (this.isArray()) return true;
if (this.isConstArray()) return true;
if (this.isWrapped()) {
return (this.prefix && this.prefix.asBool()) ||
(this.postfix && this.postfix.asBool())
? true
: undefined;
}
if (this.isTemplateString()) {
const str = this.asString();
if (typeof str === "string") return str !== "";
}
}
/**
* Creates a nullish coalescing representation of this evaluated expression.
* @returns {boolean | undefined} true: nullish, false: not nullish, undefined: unknown
*/
asNullish() {
const nullish = this.isNullish();
if (nullish === true || this.isNull() || this.isUndefined()) return true;
if (nullish === false) return false;
if (this.isTruthy()) return false;
if (this.isBoolean()) return false;
if (this.isString()) return false;
if (this.isNumber()) return false;
if (this.isBigInt()) return false;
if (this.isRegExp()) return false;
if (this.isArray()) return false;
if (this.isConstArray()) return false;
if (this.isTemplateString()) return false;
if (this.isRegExp()) return false;
}
/**
* Creates a string representation of this evaluated expression.
* @returns {string | undefined} the string representation or undefined if not possible
*/
asString() {
if (this.isBoolean()) return `${this.bool}`;
if (this.isNull()) return "null";
if (this.isUndefined()) return "undefined";
if (this.isString()) return this.string;
if (this.isNumber()) return `${this.number}`;
if (this.isBigInt()) return `${this.bigint}`;
if (this.isRegExp()) return `${this.regExp}`;
if (this.isArray()) {
/** @type {string[]} */
const array = [];
for (const item of /** @type {BasicEvaluatedExpression[]} */ (
this.items
)) {
const itemStr = item.asString();
if (itemStr === undefined) return;
array.push(itemStr);
}
return `${array}`;
}
if (this.isConstArray()) return `${this.array}`;
if (this.isTemplateString()) {
let str = "";
for (const part of /** @type {BasicEvaluatedExpression[]} */ (
this.parts
)) {
const partStr = part.asString();
if (partStr === undefined) return;
str += partStr;
}
return str;
}
}
/**
* @param {string} string value
* @returns {BasicEvaluatedExpression} basic evaluated expression
*/
setString(string) {
this.type = TypeString;
this.string = string;
this.sideEffects = false;
return this;
}
setUndefined() {
this.type = TypeUndefined;
this.sideEffects = false;
return this;
}
setNull() {
this.type = TypeNull;
this.sideEffects = false;
return this;
}
/**
* Set's the value of this expression to a number
* @param {number} number number to set
* @returns {this} this
*/
setNumber(number) {
this.type = TypeNumber;
this.number = number;
this.sideEffects = false;
return this;
}
/**
* Set's the value of this expression to a BigInt
* @param {bigint} bigint bigint to set
* @returns {this} this
*/
setBigInt(bigint) {
this.type = TypeBigInt;
this.bigint = bigint;
this.sideEffects = false;
return this;
}
/**
* Set's the value of this expression to a boolean
* @param {boolean} bool boolean to set
* @returns {this} this
*/
setBoolean(bool) {
this.type = TypeBoolean;
this.bool = bool;
this.sideEffects = false;
return this;
}
/**
* Set's the value of this expression to a regular expression
* @param {RegExp} regExp regular expression to set
* @returns {this} this
*/
setRegExp(regExp) {
this.type = TypeRegExp;
this.regExp = regExp;
this.sideEffects = false;
return this;
}
/**
* Set's the value of this expression to a particular identifier and its members.
* @param {string | VariableInfo} identifier identifier to set
* @param {string | VariableInfo} rootInfo root info
* @param {GetMembers} getMembers members
* @param {GetMembersOptionals=} getMembersOptionals optional members
* @param {GetMemberRanges=} getMemberRanges ranges of progressively increasing sub-expressions
* @returns {this} this
*/
setIdentifier(
identifier,
rootInfo,
getMembers,
getMembersOptionals,
getMemberRanges
) {
this.type = TypeIdentifier;
this.identifier = identifier;
this.rootInfo = rootInfo;
this.getMembers = getMembers;
this.getMembersOptionals = getMembersOptionals;
this.getMemberRanges = getMemberRanges;
this.sideEffects = true;
return this;
}
/**
* Wraps an array of expressions with a prefix and postfix expression.
* @param {BasicEvaluatedExpression | null | undefined} prefix Expression to be added before the innerExpressions
* @param {BasicEvaluatedExpression | null | undefined} postfix Expression to be added after the innerExpressions
* @param {BasicEvaluatedExpression[] | undefined} innerExpressions Expressions to be wrapped
* @returns {this} this
*/
setWrapped(prefix, postfix, innerExpressions) {
this.type = TypeWrapped;
this.prefix = prefix;
this.postfix = postfix;
this.wrappedInnerExpressions = innerExpressions;
this.sideEffects = true;
return this;
}
/**
* Stores the options of a conditional expression.
* @param {BasicEvaluatedExpression[]} options optional (consequent/alternate) expressions to be set
* @returns {this} this
*/
setOptions(options) {
this.type = TypeConditional;
this.options = options;
this.sideEffects = true;
return this;
}
/**
* Adds options to a conditional expression.
* @param {BasicEvaluatedExpression[]} options optional (consequent/alternate) expressions to be added
* @returns {this} this
*/
addOptions(options) {
if (!this.options) {
this.type = TypeConditional;
this.options = [];
this.sideEffects = true;
}
for (const item of options) {
this.options.push(item);
}
return this;
}
/**
* Set's the value of this expression to an array of expressions.
* @param {BasicEvaluatedExpression[]} items expressions to set
* @returns {this} this
*/
setItems(items) {
this.type = TypeArray;
this.items = items;
this.sideEffects = items.some((i) => i.couldHaveSideEffects());
return this;
}
/**
* Set's the value of this expression to an array of strings.
* @param {string[]} array array to set
* @returns {this} this
*/
setArray(array) {
this.type = TypeConstArray;
this.array = array;
this.sideEffects = false;
return this;
}
/**
* Set's the value of this expression to a processed/unprocessed template string. Used
* for evaluating TemplateLiteral expressions in the JavaScript Parser.
* @param {BasicEvaluatedExpression[]} quasis template string quasis
* @param {BasicEvaluatedExpression[]} parts template string parts
* @param {"cooked" | "raw"} kind template string kind
* @returns {this} this
*/
setTemplateString(quasis, parts, kind) {
this.type = TypeTemplateString;
this.quasis = quasis;
this.parts = parts;
this.templateStringKind = kind;
this.sideEffects = parts.some((p) => p.sideEffects);
return this;
}
setTruthy() {
this.falsy = false;
this.truthy = true;
this.nullish = false;
return this;
}
setFalsy() {
this.falsy = true;
this.truthy = false;
return this;
}
/**
* Set's the value of the expression to nullish.
* @param {boolean} value true, if the expression is nullish
* @returns {this} this
*/
setNullish(value) {
this.nullish = value;
if (value) return this.setFalsy();
return this;
}
/**
* Set's the range for the expression.
* @param {Range} range range to set
* @returns {this} this
*/
setRange(range) {
this.range = range;
return this;
}
/**
* Set whether or not the expression has side effects.
* @param {boolean} sideEffects true, if the expression has side effects
* @returns {this} this
*/
setSideEffects(sideEffects = true) {
this.sideEffects = sideEffects;
return this;
}
/**
* Set the expression node for the expression.
* @param {Node | undefined} expression expression
* @returns {this} this
*/
setExpression(expression) {
this.expression = expression;
return this;
}
}
/**
* @param {string} flags regexp flags
* @returns {boolean} is valid flags
*/
BasicEvaluatedExpression.isValidRegExpFlags = (flags) => {
const len = flags.length;
if (len === 0) return true;
if (len > 4) return false;
// cspell:word gimy
let remaining = 0b0000; // bit per RegExp flag: gimy
for (let i = 0; i < len; i++) {
switch (flags.charCodeAt(i)) {
case 103 /* g */:
if (remaining & 0b1000) return false;
remaining |= 0b1000;
break;
case 105 /* i */:
if (remaining & 0b0100) return false;
remaining |= 0b0100;
break;
case 109 /* m */:
if (remaining & 0b0010) return false;
remaining |= 0b0010;
break;
case 121 /* y */:
if (remaining & 0b0001) return false;
remaining |= 0b0001;
break;
default:
return false;
}
}
return true;
};
module.exports = BasicEvaluatedExpression;
@@ -0,0 +1,9 @@
// This file is generated automatically by `scripts/build/fp.ts`. Please, don't change it.
import { subWeeks as fn } from "../subWeeks.js";
import { convertToFP } from "./_lib/convertToFP.js";
export const subWeeks = convertToFP(fn, 2);
// Fallback for modularized imports:
export default subWeeks;
@@ -0,0 +1,16 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const Clock1 = createLucideIcon("Clock1", [
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
["polyline", { points: "12 6 12 12 14.5 8", key: "12zbmj" }]
]);
export { Clock1 as default };
//# sourceMappingURL=clock-1.js.map
@@ -0,0 +1,38 @@
'use strict';
function checkDCE() {
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
) {
return;
}
if (process.env.NODE_ENV !== 'production') {
// This branch is unreachable because this function is only called
// in production, but the condition is true only in development.
// Therefore if the branch is still here, dead code elimination wasn't
// properly applied.
// Don't change the message. React DevTools relies on it. Also make sure
// this message doesn't occur elsewhere in this function, or it will cause
// a false positive.
throw new Error('^_^');
}
try {
// Verify that the code above has been dead code eliminated (DCE'd).
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
} catch (err) {
// DevTools shouldn't crash React, no matter what.
// We should still report in case we break this code.
console.error(err);
}
}
if (process.env.NODE_ENV === 'production') {
// DCE check should happen before ReactDOM bundle executes so that
// DevTools can report bad minification during injection.
checkDCE();
module.exports = require('./cjs/react-dom-client.production.js');
} else {
module.exports = require('./cjs/react-dom-client.development.js');
}
@@ -0,0 +1,151 @@
export const traverseFields = ({ doc, fields, locale, path, rows })=>{
fields.forEach((field)=>{
switch(field.type){
case 'array':
{
const rowData = doc?.[field.name];
if (field.localized && typeof rowData === 'object' && rowData !== null) {
Object.entries(rowData).forEach(([locale, localeRows])=>{
if (Array.isArray(localeRows)) {
localeRows.forEach((row, i)=>{
return traverseFields({
doc: row,
fields: field.flattenedFields,
locale,
path: `${path ? `${path}.` : ''}${field.name}.${i}`,
rows
});
});
}
});
}
if (Array.isArray(rowData)) {
rowData.forEach((row, i)=>{
return traverseFields({
doc: row,
fields: field.flattenedFields,
path: `${path ? `${path}.` : ''}${field.name}.${i}`,
rows
});
});
}
break;
}
case 'blocks':
{
const rowData = doc?.[field.name];
if (field.localized && typeof rowData === 'object' && rowData !== null) {
Object.entries(rowData).forEach(([locale, localeRows])=>{
if (Array.isArray(localeRows)) {
localeRows.forEach((row, i)=>{
// Can ignore string blocks, as those were added in v3 and don't need to be migrated
const matchedBlock = field.blocks.find((block)=>typeof block !== 'string' && block.slug === row.blockType);
if (matchedBlock) {
return traverseFields({
doc: row,
fields: matchedBlock.flattenedFields,
locale,
path: `${path ? `${path}.` : ''}${field.name}.${i}`,
rows
});
}
});
}
});
}
if (Array.isArray(rowData)) {
rowData.forEach((row, i)=>{
// Can ignore string blocks, as those were added in v3 and don't need to be migrated
const matchedBlock = field.blocks.find((block)=>typeof block !== 'string' && block.slug === row.blockType);
if (matchedBlock) {
return traverseFields({
doc: row,
fields: matchedBlock.flattenedFields,
path: `${path ? `${path}.` : ''}${field.name}.${i}`,
rows
});
}
});
}
break;
}
case 'group':
case 'tab':
{
const newPath = `${path ? `${path}.` : ''}${field.name}`;
const newDoc = doc?.[field.name];
if (typeof newDoc === 'object' && newDoc !== null) {
if (field.localized) {
Object.entries(newDoc).forEach(([locale, localeDoc])=>{
return traverseFields({
doc: localeDoc,
fields: field.flattenedFields,
locale,
path: newPath,
rows
});
});
} else {
return traverseFields({
doc: newDoc,
fields: field.flattenedFields,
path: newPath,
rows
});
}
}
break;
}
case 'relationship':
// falls through
case 'upload':
{
if (typeof field.relationTo === 'string') {
if (field.type === 'upload' || !field.hasMany) {
const relationshipPath = `${path ? `${path}.` : ''}${field.name}`;
if (field.localized) {
const matchedRelationshipsWithLocales = rows.filter((row)=>row.path === relationshipPath);
if (matchedRelationshipsWithLocales.length && !doc[field.name]) {
doc[field.name] = {};
}
const newDoc = doc[field.name];
matchedRelationshipsWithLocales.forEach((localeRow)=>{
if (typeof localeRow.locale === 'string') {
const [, id] = Object.entries(localeRow).find(([key, val])=>val !== null && ![
'id',
'locale',
'order',
'parent_id',
'path'
].includes(key));
newDoc[localeRow.locale] = id;
}
});
} else {
const matchedRelationship = rows.find((row)=>{
const matchesPath = row.path === relationshipPath;
if (locale) {
return matchesPath && locale === row.locale;
}
return row.path === relationshipPath;
});
if (matchedRelationship) {
const [, id] = Object.entries(matchedRelationship).find(([key, val])=>val !== null && ![
'id',
'locale',
'order',
'parent_id',
'path'
].includes(key));
doc[field.name] = id;
}
}
}
}
break;
}
}
});
};
//# sourceMappingURL=traverseFields.js.map
@@ -0,0 +1,169 @@
"use strict";
/*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.addHrTimes = exports.isTimeInput = exports.isTimeInputHrTime = exports.hrTimeToMicroseconds = exports.hrTimeToMilliseconds = exports.hrTimeToNanoseconds = exports.hrTimeToTimeStamp = exports.hrTimeDuration = exports.timeInputToHrTime = exports.hrTime = exports.getTimeOrigin = exports.millisToHrTime = void 0;
const platform_1 = require("../platform");
const NANOSECOND_DIGITS = 9;
const NANOSECOND_DIGITS_IN_MILLIS = 6;
const MILLISECONDS_TO_NANOSECONDS = Math.pow(10, NANOSECOND_DIGITS_IN_MILLIS);
const SECOND_TO_NANOSECONDS = Math.pow(10, NANOSECOND_DIGITS);
/**
* Converts a number of milliseconds from epoch to HrTime([seconds, remainder in nanoseconds]).
* @param epochMillis
*/
function millisToHrTime(epochMillis) {
const epochSeconds = epochMillis / 1000;
// Decimals only.
const seconds = Math.trunc(epochSeconds);
// Round sub-nanosecond accuracy to nanosecond.
const nanos = Math.round((epochMillis % 1000) * MILLISECONDS_TO_NANOSECONDS);
return [seconds, nanos];
}
exports.millisToHrTime = millisToHrTime;
/**
* @deprecated Use `performance.timeOrigin` directly.
*/
function getTimeOrigin() {
return platform_1.otperformance.timeOrigin;
}
exports.getTimeOrigin = getTimeOrigin;
/**
* Returns an hrtime calculated via performance component.
* @param performanceNow
*/
function hrTime(performanceNow) {
const timeOrigin = millisToHrTime(platform_1.otperformance.timeOrigin);
const now = millisToHrTime(typeof performanceNow === 'number' ? performanceNow : platform_1.otperformance.now());
return addHrTimes(timeOrigin, now);
}
exports.hrTime = hrTime;
/**
*
* Converts a TimeInput to an HrTime, defaults to _hrtime().
* @param time
*/
function timeInputToHrTime(time) {
// process.hrtime
if (isTimeInputHrTime(time)) {
return time;
}
else if (typeof time === 'number') {
// Must be a performance.now() if it's smaller than process start time.
if (time < platform_1.otperformance.timeOrigin) {
return hrTime(time);
}
else {
// epoch milliseconds or performance.timeOrigin
return millisToHrTime(time);
}
}
else if (time instanceof Date) {
return millisToHrTime(time.getTime());
}
else {
throw TypeError('Invalid input type');
}
}
exports.timeInputToHrTime = timeInputToHrTime;
/**
* Returns a duration of two hrTime.
* @param startTime
* @param endTime
*/
function hrTimeDuration(startTime, endTime) {
let seconds = endTime[0] - startTime[0];
let nanos = endTime[1] - startTime[1];
// overflow
if (nanos < 0) {
seconds -= 1;
// negate
nanos += SECOND_TO_NANOSECONDS;
}
return [seconds, nanos];
}
exports.hrTimeDuration = hrTimeDuration;
/**
* Convert hrTime to timestamp, for example "2019-05-14T17:00:00.000123456Z"
* @param time
*/
function hrTimeToTimeStamp(time) {
const precision = NANOSECOND_DIGITS;
const tmp = `${'0'.repeat(precision)}${time[1]}Z`;
const nanoString = tmp.substring(tmp.length - precision - 1);
const date = new Date(time[0] * 1000).toISOString();
return date.replace('000Z', nanoString);
}
exports.hrTimeToTimeStamp = hrTimeToTimeStamp;
/**
* Convert hrTime to nanoseconds.
* @param time
*/
function hrTimeToNanoseconds(time) {
return time[0] * SECOND_TO_NANOSECONDS + time[1];
}
exports.hrTimeToNanoseconds = hrTimeToNanoseconds;
/**
* Convert hrTime to milliseconds.
* @param time
*/
function hrTimeToMilliseconds(time) {
return time[0] * 1e3 + time[1] / 1e6;
}
exports.hrTimeToMilliseconds = hrTimeToMilliseconds;
/**
* Convert hrTime to microseconds.
* @param time
*/
function hrTimeToMicroseconds(time) {
return time[0] * 1e6 + time[1] / 1e3;
}
exports.hrTimeToMicroseconds = hrTimeToMicroseconds;
/**
* check if time is HrTime
* @param value
*/
function isTimeInputHrTime(value) {
return (Array.isArray(value) &&
value.length === 2 &&
typeof value[0] === 'number' &&
typeof value[1] === 'number');
}
exports.isTimeInputHrTime = isTimeInputHrTime;
/**
* check if input value is a correct types.TimeInput
* @param value
*/
function isTimeInput(value) {
return (isTimeInputHrTime(value) ||
typeof value === 'number' ||
value instanceof Date);
}
exports.isTimeInput = isTimeInput;
/**
* Given 2 HrTime formatted times, return their sum as an HrTime.
*/
function addHrTimes(time1, time2) {
const out = [time1[0] + time2[0], time1[1] + time2[1]];
// Nanoseconds
if (out[1] >= SECOND_TO_NANOSECONDS) {
out[1] -= SECOND_TO_NANOSECONDS;
out[0] += 1;
}
return out;
}
exports.addHrTimes = addHrTimes;
//# sourceMappingURL=time.js.map
@@ -0,0 +1,50 @@
import { Event, EventHint } from '../event';
import { Primitive } from '../misc';
import { User } from '../user';
/**
* Crash report feedback object
*/
export interface UserFeedback {
event_id: string;
email: User['email'];
name: string;
comments: string;
}
interface FeedbackContext extends Record<string, unknown> {
message: string;
contact_email?: string;
name?: string;
replay_id?: string;
url?: string;
associated_event_id?: string;
source?: string;
}
/**
* NOTE: These types are still considered Alpha and subject to change.
* @hidden
*/
export interface FeedbackEvent extends Event {
type: 'feedback';
contexts: Event['contexts'] & {
feedback: FeedbackContext;
};
}
export interface SendFeedbackParams {
message: string;
name?: string;
email?: string;
url?: string;
source?: string;
associatedEventId?: string;
/**
* Set an object that will be merged sent as tags data with the event.
*/
tags?: {
[key: string]: Primitive;
};
}
export type SendFeedback = (params: SendFeedbackParams, hint?: EventHint & {
includeReplay?: boolean;
}) => Promise<string>;
export {};
//# sourceMappingURL=sendFeedback.d.ts.map
@@ -0,0 +1,5 @@
var convert = require('./convert'),
func = convert('capitalize', require('../capitalize'), require('./_falseOptions'));
func.placeholder = require('./placeholder');
module.exports = func;
@@ -0,0 +1,17 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const UndoDot = createLucideIcon("UndoDot", [
["circle", { cx: "12", cy: "17", r: "1", key: "1ixnty" }],
["path", { d: "M3 7v6h6", key: "1v2h90" }],
["path", { d: "M21 17a9 9 0 0 0-9-9 9 9 0 0 0-6 2.3L3 13", key: "1r6uu6" }]
]);
export { UndoDot as default };
//# sourceMappingURL=undo-dot.js.map
@@ -0,0 +1,46 @@
'use client';
import { c as _c } from "react/compiler-runtime";
import { jsx as _jsx } from "react/jsx-runtime";
import React, { createContext, use, useState } from 'react';
export const useStepNav = () => use(Context);
export const Context = /*#__PURE__*/createContext({
setStepNav: () => {
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line no-console
console.warn('StepNavProvider is missing; `setStepNav` is a no-op.');
}
},
stepNav: []
});
export const StepNavProvider = t0 => {
const $ = _c(4);
const {
children
} = t0;
let t1;
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
t1 = [];
$[0] = t1;
} else {
t1 = $[0];
}
const [stepNav, setStepNav] = useState(t1);
let t2;
if ($[1] !== children || $[2] !== stepNav) {
t2 = _jsx(Context, {
value: {
setStepNav,
stepNav
},
children
});
$[1] = children;
$[2] = stepNav;
$[3] = t2;
} else {
t2 = $[3];
}
return t2;
};
//# sourceMappingURL=context.js.map
@@ -0,0 +1,34 @@
import type {
ZodArray,
ZodNullable,
ZodObject,
ZodOptional,
ZodRawShape,
ZodTuple,
ZodTupleItems,
ZodTypeAny,
} from "../types.js";
export namespace partialUtil {
export type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape>
? ZodObject<
{ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>> },
T["_def"]["unknownKeys"],
T["_def"]["catchall"]
>
: T extends ZodArray<infer Type, infer Card>
? ZodArray<DeepPartial<Type>, Card>
: T extends ZodOptional<infer Type>
? ZodOptional<DeepPartial<Type>>
: T extends ZodNullable<infer Type>
? ZodNullable<DeepPartial<Type>>
: T extends ZodTuple<infer Items>
? {
[k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never;
} extends infer PI
? PI extends ZodTupleItems
? ZodTuple<PI>
: never
: never
: T;
}
@@ -0,0 +1,23 @@
/**
* @license lucide-react v0.441.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/
import createLucideIcon from '../createLucideIcon.js';
const GraduationCap = createLucideIcon("GraduationCap", [
[
"path",
{
d: "M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",
key: "j76jl0"
}
],
["path", { d: "M22 10v6", key: "1lu8f3" }],
["path", { d: "M6 12.5V16a6 3 0 0 0 12 0v-3.5", key: "1r8lef" }]
]);
export { GraduationCap as default };
//# sourceMappingURL=graduation-cap.js.map
@@ -0,0 +1,6 @@
"use client";
import { createContext } from 'react';
const LazyContext = createContext({ strict: false });
export { LazyContext };
@@ -0,0 +1,30 @@
"use strict";
exports.pl = void 0;
var _index = require("./pl/_lib/formatDistance.js");
var _index2 = require("./pl/_lib/formatLong.js");
var _index3 = require("./pl/_lib/formatRelative.js");
var _index4 = require("./pl/_lib/localize.js");
var _index5 = require("./pl/_lib/match.js");
/**
* @category Locales
* @summary Polish locale.
* @language Polish
* @iso-639-2 pol
* @author Mateusz Derks [@ertrzyiks](https://github.com/ertrzyiks)
* @author Just RAG [@justrag](https://github.com/justrag)
* @author Mikolaj Grzyb [@mikolajgrzyb](https://github.com/mikolajgrzyb)
* @author Mateusz Tokarski [@mutisz](https://github.com/mutisz)
*/
const pl = (exports.pl = {
code: "pl",
formatDistance: _index.formatDistance,
formatLong: _index2.formatLong,
formatRelative: _index3.formatRelative,
localize: _index4.localize,
match: _index5.match,
options: {
weekStartsOn: 1 /* Monday */,
firstWeekContainsDate: 4,
},
});
@@ -0,0 +1,8 @@
export declare function urlMatches(url: string, urlToMatch: string | RegExp): boolean;
/**
* Check if {@param url} should be ignored when comparing against {@param ignoredUrls}
* @param url
* @param ignoredUrls
*/
export declare function isUrlIgnored(url: string, ignoredUrls?: Array<string | RegExp>): boolean;
//# sourceMappingURL=url.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"percent.js","sources":["../../../src/icons/percent.ts"],"sourcesContent":["import createLucideIcon from '../createLucideIcon';\n\n/**\n * @component @name Percent\n * @description Lucide SVG icon component, renders SVG Element with children.\n *\n * @preview ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8bGluZSB4MT0iMTkiIHgyPSI1IiB5MT0iNSIgeTI9IjE5IiAvPgogIDxjaXJjbGUgY3g9IjYuNSIgY3k9IjYuNSIgcj0iMi41IiAvPgogIDxjaXJjbGUgY3g9IjE3LjUiIGN5PSIxNy41IiByPSIyLjUiIC8+Cjwvc3ZnPgo=) - https://lucide.dev/icons/percent\n * @see https://lucide.dev/guide/packages/lucide-react - Documentation\n *\n * @param {Object} props - Lucide icons props and any valid SVG attribute\n * @returns {JSX.Element} JSX Element\n *\n */\nconst Percent = createLucideIcon('Percent', [\n ['line', { x1: '19', x2: '5', y1: '5', y2: '19', key: '1x9vlm' }],\n ['circle', { cx: '6.5', cy: '6.5', r: '2.5', key: '4mh3h7' }],\n ['circle', { cx: '17.5', cy: '17.5', r: '2.5', key: '1mdrzq' }],\n]);\n\nexport default Percent;\n"],"names":[],"mappings":";;;;;;;;;AAaM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,iBAAiB,SAAW,CAAA,CAAA,CAAA;AAAA,CAC1C,CAAA,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAQ,CAAE,CAAA,CAAA,CAAA,EAAI,CAAM,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAI,CAAK,CAAA,CAAA,CAAA,CAAA,EAAA,CAAI,CAAA,CAAA,CAAA,CAAK,CAAA,CAAA,CAAA,CAAA,CAAI,CAAA,CAAA,CAAA,CAAA,CAAM,EAAA,CAAA,CAAA,CAAA,CAAA,CAAK,UAAU,CAAA,CAAA;AAAA,CAChE,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAO,CAAI,CAAA,CAAA,CAAA,KAAA,CAAO,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA,CAAA;AAAA,CAC5D,CAAA,CAAC,QAAU,CAAA,CAAA,CAAA,CAAE,EAAI,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAQ,CAAI,CAAA,CAAA,CAAA,MAAA,CAAQ,CAAA,CAAG,EAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAO,GAAK,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,EAAU,CAAA;AAChE,CAAC,CAAA,CAAA;;"}
@@ -0,0 +1,61 @@
Prism.languages.inform7 = {
'string': {
pattern: /"[^"]*"/,
inside: {
'substitution': {
pattern: /\[[^\[\]]+\]/,
inside: {
'delimiter': {
pattern: /\[|\]/,
alias: 'punctuation'
}
// See rest below
}
}
}
},
'comment': {
pattern: /\[[^\[\]]+\]/,
greedy: true
},
'title': {
pattern: /^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,
alias: 'important'
},
'number': {
pattern: /(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,
lookbehind: true
},
'verb': {
pattern: /(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,
lookbehind: true,
alias: 'operator'
},
'keyword': {
pattern: /(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,
lookbehind: true
},
'property': {
pattern: /(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,
lookbehind: true,
alias: 'symbol'
},
'position': {
pattern: /(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,
lookbehind: true,
alias: 'keyword'
},
'type': {
pattern: /(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,
lookbehind: true,
alias: 'variable'
},
'punctuation': /[.,:;(){}]/
};
Prism.languages.inform7['string'].inside['substitution'].inside.rest = Prism.languages.inform7;
// We don't want the remaining text in the substitution to be highlighted as the string.
Prism.languages.inform7['string'].inside['substitution'].inside.rest.text = {
pattern: /\S(?:\s*\S)*/,
alias: 'comment'
};

Some files were not shown because too many files have changed in this diff Show More