@donotdev/core 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- var Y=(n,e)=>()=>(n&&(e=n(n=0)),e);function V(n,e=null){let t=R[n];if(!t)throw new Error(`Unknown pattern type: ${n}`);return e&&t.framework?{...t,framework:t.framework.map(r=>`${e}/${r}`)}:t}function Z(n){return q[n]||q.base}var U,R,q,K=Y(()=>{"use strict";P();U={SOURCE_ROOT:"packages/core/i18n",SOURCE_LOCALES:"packages/core/i18n/locales",SOURCE_EAGER:"packages/core/i18n/locales/eager",SOURCE_LAZY:"packages/core/i18n/locales/lazy",PUBLISHED_ROOT:"i18n",PUBLISHED_LOCALES:"i18n/locales",PUBLISHED_EAGER:"i18n/locales/eager",PUBLISHED_LAZY:"i18n/locales/lazy"},R={routes:{consumer:["src/**/*Page.tsx","src/pages/**/*Page.tsx"],exclude:["**/node_modules/**","**/dist/**","**/build/**","**/*.test.tsx","**/*.stories.tsx"],extensions:[".tsx"]},css:{consumer:["src/**/*.css"],themes:["src/**/*.css"],extensions:[".css",".scss",".sass"],framework:["packages/ui/src/**/*.css","packages/core/components/src/**/*.css","packages/core/templates/src/**/*.css"]},i18n:{eager:["src/locales/*_*.json"],lazy:["src/**/locales/*_*.json","!src/locales/*_*.json"],framework:{eager:[`${U.SOURCE_EAGER}/*_*.json`],lazy:[`${U.SOURCE_LAZY}/*_*.json`]},extensions:[".json"]},assets:{consumer:["public/**/*"],fallback:["manifest.json"],modern:["logo.svg","favicon.svg","apple-touch-icon.png","android-chrome-192x192.png","android-chrome-512x512.png"],patterns:["favicon.svg","favicon.ico","favicon-*.png","logo.svg","logo.png","logo.webp","logo.avif","apple-touch-icon*.png","android-chrome-*.png","manifest.json"],fonts:["fonts/**/*.woff2","fonts/**/*.woff","fonts/**/*.ttf"],framework:["packages/ui/assets/**/*"]},pwa:{consumer:["public/manifest.json","public/service-worker.js","public/sw.js","public/icon-192x192.png","public/icon-512x512.png","public/favicon.ico","public/favicon.svg","public/apple-touch-icon.png","public/logo.svg"],exclude:["**/node_modules/**","**/dist/**","**/build/**"],extensions:[".json",".js",".png",".svg",".ico"],framework:["packages/ui/assets/**/*"]},globalIgnore:["**/node_modules/**","**/dist/**","**/build/**","**/.git/**","**/coverage/**","**/test/**"]},q={base:{absolute:!0,onlyFiles:!0,ignore:R.globalIgnore},css:{absolute:!0,onlyFiles:!0,ignore:[...R.globalIgnore,"**/*.test.css"]},routes:{absolute:!0,onlyFiles:!0,ignore:[...R.globalIgnore,"**/*.test.tsx","**/*.stories.tsx"]},i18n:{absolute:!0,onlyFiles:!0,ignore:R.globalIgnore},assets:{absolute:!0,onlyFiles:!0,ignore:R.globalIgnore}}});import{Buffer as w}from"node:buffer";import{createRequire as pe}from"node:module";import{dirname as fe,resolve as _e}from"node:path";import y from"node:process";import{fileURLToPath as de}from"node:url";var he,F,A,P=Y(()=>{"use strict";he=pe(import.meta.url),F=de(import.meta.url),A=fe(F);typeof globalThis<"u"&&(globalThis.require=he,globalThis.__filename=F,globalThis.__dirname=A,globalThis.Buffer=w,globalThis.process=y,typeof global>"u"&&(globalThis.global=globalThis))});P();P();P();import W from"node:fs";import b from"node:path";import{fileURLToPath as me}from"node:url";var ge=me(import.meta.url),Ce=b.dirname(ge);function X(){let n=y.cwd(),e=10;for(let t=0;t<e;t++){let r=b.join(n,"package.json");if(W.existsSync(r))try{let o=JSON.parse(W.readFileSync(r,"utf8")),s=o.workspaces&&Array.isArray(o.workspaces);if(s&&o.workspaces.some(c=>c==="packages/**"||c.startsWith("packages/"))&&(W.existsSync(b.join(n,"packages","core"))||W.existsSync(b.join(n,"packages","functions"))))return{type:"dndev",root:n};if(s&&o.workspaces.some(c=>c.includes("dndev/packages"))){let f=o.workspaces.find(d=>d.includes("dndev/packages")).replace(/\/packages.*$/,""),m=b.resolve(n,f);if(W.existsSync(b.join(m,"packages","core")))return{type:"dndev",root:m}}}catch{}let i=b.dirname(n);if(i===n)break;n=i}return{type:"npm",root:y.cwd()}}function ve(n){return n.type==="dndev"?n.root:null}function Q(n){let e={};if(n.type==="dndev"){let t=ve(n);t&&(e["@donotdev/types"]=b.join(t,"packages","core","types","src"),e["@donotdev/functions"]=b.join(t,"packages","functions","src"),e["@donotdev/utils"]=b.join(t,"packages","core","utils","src"),e["@donotdev/schemas"]=b.join(t,"packages","core","schemas","src"),e["@donotdev/core"]=b.join(t,"packages","core"))}return e}P();import{createRequire as ye}from"node:module";import{resolve as B,join as x,dirname as E,relative as J,normalize as Pe,sep as ee,extname as be}from"node:path";import{fileURLToPath as ke}from"node:url";import*as p from"node:fs";K();import we from"fast-glob";var _={getGlobOptionsFor:Z||void 0,SCAN_PATTERNS:R||void 0,getPatternsFor:V||void 0,I18N_PATHS:U||void 0},g={error:(n,e)=>{},warn:(n,e)=>{},info:n=>{}};function te(n,e){return n().catch(t=>{throw new Error(`${e}: ${t instanceof Error?t.message:String(t)}`)})}var re={CLI:"packages/cli",COMPONENTS:"packages/core/components",CONFIG:"packages/core/config",CORE:"packages/core",CRUD:"packages/core/crud",FEATURES:"packages/features",HOOKS:"packages/core/hooks",I18N:"packages/core/i18n",SCHEMAS:"packages/core/schemas",STORES:"packages/core/stores",TEMPLATES:"packages/templates",TOOLING:"packages/tooling",TYPES:"packages/core/types",UI:"packages/ui",UTILS:"packages/core/utils",AUTH:"packages/features/auth",BILLING:"packages/features/billing",OAUTH:"packages/features/oauth",FIREBASE:"packages/providers/firebase",FUNCTIONS:"packages/functions"},M=class n{static _instance=null;options;_repoRoot;_appRoot=null;static getInstance(e={}){return n._instance||(n._instance=new n(e)),n._instance}static _reset(){n._instance=null}constructor(e={}){if(n._instance)return n._instance;this.options={maxLevels:e.maxLevels??10,customMarkers:e.customMarkers||[],cache:e.cache??!1,debug:e.debug??!1};try{let t=y.cwd();if(!t)throw new Error("PathResolver: process.cwd() returned undefined. This should never happen.");this._repoRoot=this._findRepoRoot(t)}catch(t){throw new Error(`PathResolver constructor failed: ${t instanceof Error?t.message:String(t)}. cwd: ${y.cwd()}`)}this._appRoot=null,n._instance=this}normalizePath(e){if(!e)return"";try{return Pe(e).split(ee).join("/")}catch{return String(e).split(ee).join("/")}}getRelativePath(e){let t=this.getAppRoot(),r=J(t,e);return this.normalizePath(r)}getBasename(e){if(!e)return"";let r=this.normalizePath(e).split("/");return r[r.length-1]||""}getDirname(e){return e?this.normalizePath(E(e)):""}resolvePackage(e,t=null){try{let r=t||this.getAppRoot(),o=ye(x(r,"package.json")).resolve(e);return this.normalizePath(o)}catch{return null}}resolveFrameworkPackage(e,t=null){let r=this.resolvePackage(`${e}/package.json`,t);if(r)return this.getDirname(r);if(this.isMonorepo()&&e.startsWith("@donotdev/")){let s=e.replace("@donotdev/",""),a=this.resolveRepoPath(`packages/${s}`);if(this.pathExists(a))return a;if(["auth","billing","crud","oauth"].includes(s)){let l=this.resolveRepoPath(`packages/features/${s}`);if(this.pathExists(l))return l}if(s==="firebase"){let l=this.resolveRepoPath(`packages/providers/${s}`);if(this.pathExists(l))return l}}let i=this.resolveAppPath(`node_modules/${e}`);if(this.pathExists(i))return i;let o=this.resolveRepoPath(`node_modules/${e}`);return this.pathExists(o)?o:null}resolvePackageAsset(e,t=null){return this.resolvePackage(e,t)}resolveAppPath(e){let t=this.getAppRoot(),r=B(t,e);return this.normalizePath(r)}resolveRepoPath(e){let t=this.getRepoRoot(),r=this.normalizePath(e),i=B(t,r);return this.normalizePath(i)}resolvePath(e,t){let r=this.normalizePath(t),i=this.normalizePath(e),o=B(r,i);return this.normalizePath(o)}createImportPath(e){return"./"+this.getRelativePath(e)}getFileInfo(e){try{let t=p.statSync(e);return{absolutePath:this.normalizePath(e),relativePath:this.getRelativePath(e),importPath:this.createImportPath(e),size:t.size,isFile:t.isFile(),isDirectory:t.isDirectory()}}catch{return null}}_detectFormat(e,t){return t&&t!=="auto"?t:be(e).toLowerCase()===".json"?"json":"text"}async read(e,t={}){let{format:r="auto",encoding:i="utf8"}=t,o=this._detectFormat(e,r);try{if(o==="buffer")return await p.promises.readFile(e);let s=await p.promises.readFile(e,i),a=this.stripBom(s);return o==="json"?JSON.parse(a):a}catch(s){return this.options.debug&&g.warn(`Failed to read file: ${e}`,s),null}}readSync(e,t={}){let{format:r="auto",encoding:i="utf8"}=t,o=this._detectFormat(e,r);try{if(o==="buffer")return p.readFileSync(e);let s=p.readFileSync(e,i),a=this.stripBom(s);return o==="json"?JSON.parse(a):a}catch(s){return this.options.debug&&g.warn(`Failed to read file: ${e}`,s),null}}async write(e,t,r={}){let{format:i="auto",overwrite:o=!1,dryRun:s=!1,verbose:a=!1}=r,l=this.normalizePath(e),h=this.normalizePath(E(l)),c=this.pathExists(l);if(c&&!o)return a&&g.info(`Skipping existing file: ${l}`),!1;if(s)return g.info(`[DRY RUN] Would write file: ${l}`),!0;try{await p.promises.mkdir(h,{recursive:!0})}catch(d){if(d?.code!=="EEXIST")throw d}let f=this._detectFormat(e,i),m;w.isBuffer(t)?m=t:f==="json"&&typeof t=="object"?m=JSON.stringify(t,null,2):m=String(t);try{return await te(async()=>(w.isBuffer(m)?await p.promises.writeFile(l,m):await p.promises.writeFile(l,m,"utf8"),a&&g.info(`${c?"Updated":"Created"} file: ${l}`),!0),`Failed to write file: ${l}`)}catch{return!1}}writeSync(e,t,r={}){let{format:i="auto",overwrite:o=!1,dryRun:s=!1,verbose:a=!1}=r,l=this.normalizePath(e),h=this.normalizePath(E(l)),c=this.pathExists(l);if(c&&!o)return a&&g.info(`Skipping existing file: ${l}`),!1;if(s)return g.info(`[DRY RUN] Would write file: ${l}`),!0;try{p.mkdirSync(h,{recursive:!0})}catch(d){if(d?.code!=="EEXIST")throw d}let f=this._detectFormat(e,i),m;w.isBuffer(t)?m=t:f==="json"&&typeof t=="object"?m=JSON.stringify(t,null,2):m=String(t);try{return w.isBuffer(m)?p.writeFileSync(l,m):p.writeFileSync(l,m,"utf8"),a&&g.info(`${c?"Updated":"Created"} file: ${l}`),!0}catch(d){throw new Error(`Failed to write file: ${l}: ${d instanceof Error?d.message:String(d)}`)}}async copy(e,t,r={}){let{overwrite:i=!1,dryRun:o=!1,verbose:s=!1}=r,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!i)return s&&g.info(`Skipping existing file: ${a}`),!1;if(o)return g.info(`[DRY RUN] Would copy file: ${a}`),!0;let h=this.normalizePath(E(a));try{await p.promises.mkdir(h,{recursive:!0})}catch(c){if(c?.code!=="EEXIST")throw c}try{return await te(async()=>(await p.promises.copyFile(e,a),s&&g.info(`${l?"Updated":"Created"} file: ${a}`),!0),`Failed to copy file from ${e} to ${a}`)}catch{return!1}}copySync(e,t,r={}){let{overwrite:i=!1,dryRun:o=!1,verbose:s=!1}=r,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!i)return s&&g.info(`Skipping existing file: ${a}`),!1;if(o)return g.info(`[DRY RUN] Would copy file: ${a}`),!0;let h=this.normalizePath(E(a));try{p.mkdirSync(h,{recursive:!0})}catch(c){if(c?.code!=="EEXIST")throw c}try{return p.copyFileSync(e,a),s&&g.info(`${l?"Updated":"Created"} file: ${a}`),!0}catch{return!1}}pathExists(e,t=!1){try{return p.existsSync(e)}catch(r){return t||g.error(`Error checking path existence: ${e}`,r),!1}}mkdir(e){try{let t=e.startsWith("/")||e.match(/^[A-Z]:/)?this.normalizePath(e):this.resolveAppPath(e);return p.existsSync(t)||p.mkdirSync(t,{recursive:!0}),!0}catch{return!1}}readdirSync(e,t){try{return p.readdirSync(e,t)}catch(r){return this.options.debug&&g.warn(`Failed to read directory: ${e}`,r),t&&typeof t=="object"&&"withFileTypes"in t&&t.withFileTypes?[]:[]}}statSync(e){try{return p.statSync(e)}catch(t){return this.options.debug&&g.warn(`Failed to stat file: ${e}`,t),null}}lstatSync(e){try{return p.lstatSync(e)}catch(t){return this.options.debug&&g.warn(`Failed to lstat file: ${e}`,t),null}}async ensureDir(e){try{await p.promises.mkdir(e,{recursive:!0})}catch(t){if(t?.code!=="EEXIST")throw t}}ensureDirSync(e){try{p.mkdirSync(e,{recursive:!0})}catch(t){if(t?.code!=="EEXIST")throw t}}async remove(e){await p.promises.rm(e,{recursive:!0,force:!0})}removeSync(e){p.rmSync(e,{recursive:!0,force:!0})}async readdir(e,t){return p.promises.readdir(e,t)}stripBom(e){return e.charCodeAt(0)===65279?e.slice(1):e}getRepoRoot(){return this._repoRoot||y.cwd()}getAppRoot(){return this._appRoot?this._appRoot:this._repoRoot}setAppRoot(e){if(!e)throw new Error("PathResolver.setAppRoot: root cannot be undefined or null");this._appRoot=this.normalizePath(e)}isMonorepo(){let e=x(this._repoRoot,"packages");return this.pathExists(e)}isWithinApp(e){let t=this.normalizePath(B(e)),r=this.getAppRoot(),i=J(r,t),o=this.normalizePath(i);return!o.startsWith("../")&&!o.startsWith("/")}async findFiles(e,t,r={}){let i=this.normalizePath(x(e,t)),o=this.getAppRoot(),s=this.normalizePath(o),a=i.startsWith(s)?i.slice(s.length+1):i,l={absolute:!0,onlyFiles:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:o,ignore:_.SCAN_PATTERNS?.globalIgnore||["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]};return await this._globWithNormalization([a],{...l,...r})}clearCache(){}async _resolveFrameworkI18nPattern(e){let t=_.I18N_PATHS;if(!t)return null;let r=e.replace(t.SOURCE_ROOT+"/",""),i=this.resolveFrameworkPackage("@donotdev/core");if(!i)return null;let o=this.normalizePath(x(i,t.PUBLISHED_ROOT,r)),s=o.replace(/\/[^/]*\*.*$/,"");return this.pathExists(s),o}async _globWithNormalization(e,t){return(await we(e,t)).map(i=>{let o=typeof i=="string"?i:i.path;return this.normalizePath(o)})}async resolveFiles(e,t="css"){if(!e||typeof e!="object")return{frameworkFiles:[],consumerFiles:[]};if(t==="i18n")return{frameworkFiles:[],consumerFiles:[]};if(Array.isArray(e.framework)||(e.framework=[]),!Array.isArray(e.consumer))return{frameworkFiles:[],consumerFiles:[]};let r=[...e.framework,...e.consumer];for(let c of r)if(typeof c!="string"||c.trim()==="")return{frameworkFiles:[],consumerFiles:[]};let i=this.getAppRoot(),o=_.getGlobOptionsFor?_.getGlobOptionsFor(t):{ignore:["**/node_modules/**","**/dist/**","**/build/**"]},s=this.normalizePath(i),a=e.framework.map(c=>{let f=this.normalizePath(c);return f.startsWith(s)?f.slice(s.length+1):f}),l=e.consumer.map(c=>{let f=this.normalizePath(c);return f.startsWith(s)?f.slice(s.length+1):f}),h={...o,onlyFiles:!0,absolute:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:i};try{let c=a.length>0?await this._globWithNormalization(a,h):[],f=await this._globWithNormalization(l,h);return{frameworkFiles:c,consumerFiles:f}}catch{return this.options.debug,{frameworkFiles:[],consumerFiles:[]}}}async resolvePatterns(e){if(!_.getPatternsFor)return{framework:[],consumer:[],all:[]};let t=this.getAppRoot(),r=this.getRepoRoot();if(e==="i18n"&&(!t||t===r))throw new Error(`Cannot resolve i18n patterns: appRoot not set (appRoot: ${t}, repoRoot: ${r}). Ensure configResolved hook has run before discovery.`);let i=_.getPatternsFor(e),o=this.isMonorepo();if(e==="i18n"){let l=i,h={eager:l.eager.map(c=>c.startsWith("!")?"!"+this.resolveAppPath(c.slice(1)):this.resolveAppPath(c)),lazy:l.lazy.map(c=>c.startsWith("!")?"!"+this.resolveAppPath(c.slice(1)):this.resolveAppPath(c)),framework:{eager:o?(l.framework?.eager||[]).map(c=>this.resolveRepoPath(c)).filter(Boolean):await Promise.all((l.framework?.eager||[]).map(c=>this._resolveFrameworkI18nPattern(c))).then(c=>c.filter(Boolean)),lazy:o?(l.framework?.lazy||[]).map(c=>this.resolveRepoPath(c)).filter(Boolean):await Promise.all((l.framework?.lazy||[]).map(c=>this._resolveFrameworkI18nPattern(c))).then(c=>c.filter(Boolean))},all:[]};return h.all=[...h.eager,...h.lazy,...h.framework.eager,...h.framework.lazy],h}let s=i,a={framework:o?(s.framework||[]).map(l=>this.resolveRepoPath(l)).filter(Boolean):[],consumer:(s.consumer||[]).map(l=>this.resolveAppPath(l)),all:[]};return a.all=[...a.consumer,...a.framework],a}getEmptyModulePath(e=!1){if(e)return"@donotdev/core/empty";let t=this.resolvePackage("@donotdev/core/empty");if(t)return t;let r=E(ke(import.meta.url));return this.normalizePath(x(r,"../empty.js"))}_findRepoRoot(e){let t=this.normalizePath(e),r=0,i=this.options.maxLevels;for(;r<i;){let o=this.normalizePath(x(t,re.TOOLING)),s=this.normalizePath(x(t,re.CORE));if(this.pathExists(o)&&this.pathExists(s))return t;let a=x(t,"apps");if(this.pathExists(a)&&this.statSync(a)?.isDirectory())return this.normalizePath(t);let l=this.normalizePath(x(t,"package.json"));if(this.pathExists(l)&&this.normalizePath(E(t))===t)return t;let h=this.normalizePath(E(t));if(h===t)break;t=h,r++}return this.normalizePath(e)}};function se(n={}){let{entry:e="src/index.ts",outDir:t="lib",minify:r=!1,sourcemap:i=!0,platform:o="firebase",workspace:s,bundleWorkspaceDeps:a=!1,importFramework:l=!1,external:h=!1,...c}=n,f=M.getInstance(),m=Q(s),d={entryPoints:[e],bundle:!0,platform:"node",target:"node20",format:"esm",outdir:t,outExtension:{".js":".js"},minify:r,sourcemap:i,metafile:!0,logLevel:"info",loader:{".ts":"ts",".tsx":"tsx",".css":"empty"},keepNames:!0,treeShaking:!0,...c};a&&Object.keys(m).length>0&&(d.alias=Object.fromEntries(Object.entries(m).map(([k,u])=>[k,f.normalizePath(u)]))),d.mainFields=["module","main"],d.conditions=["import","module","node"];let ce=["fs","path","crypto","util","stream","events","buffer","url","querystring","http","https","zlib","os","child_process","assert","constants","domain","punycode","string_decoder","timers","tty","vm","worker_threads","perf_hooks","async_hooks"],G=[];if(a)try{let k=s?.root||y.cwd(),u=y.cwd(),v=10;for(let S=0;S<v;S++){let H=f.normalizePath(`${u}/package.json`);if(f.pathExists(H)){let z=f.readSync(H,{format:"json"});if(z&&Array.isArray(z.workspaces)){k=f.normalizePath(u);for(let $ of z.workspaces)$==="apps/*"||$==="functions"||!$.includes("*")&&!$.includes("/")&&G.push($);break}}let L=f.getDirname(u);if(L===u)break;u=L}}catch{}let le={name:"external-node-modules",setup(k){k.onResolve({filter:/^firebase($|\/)/},u=>{if(u.path==="firebase-admin"||u.path.startsWith("firebase-admin/")||u.path==="firebase-functions"||u.path.startsWith("firebase-functions/"))return null;let v;if(s?.type==="dndev"&&s.root)v=f.normalizePath(`${s.root}/packages/core/config/functions/firebase-stub.js`);else{let S=import.meta.url,L=new URL(S).pathname.replace(/^\/([A-Z]:)/i,"$1"),z=f.getDirname(L);v=f.normalizePath(`${z}/firebase-stub.js`)}return{path:v}}),k.onResolve({filter:/.*/},u=>{if(u.kind==="entry-point")return null;if(u.path.match(/@donotdev\/functions\/.+/)&&a&&s?.type==="dndev"){let v=u.path.replace("@donotdev/functions/","");return{path:f.normalizePath(`${s.root}/packages/functions/src/${v}/index.ts`)}}if(u.path==="@donotdev/utils")return s?.type==="dndev"?{path:f.normalizePath(`${s.root}/packages/core/utils/src/server/index.ts`)}:k.resolve("@donotdev/utils/server",{kind:u.kind,resolveDir:u.resolveDir});if(u.path.match(/@donotdev\/utils\/.+/)&&s?.type==="dndev"){let v=u.path.replace("@donotdev/utils/","");return{path:f.normalizePath(`${s.root}/packages/core/utils/src/${v}/index.ts`)}}if(u.path==="@donotdev/core")return s?.type==="dndev"?{path:f.normalizePath(`${s.root}/packages/core/server.ts`)}:k.resolve("@donotdev/core/server",{kind:u.kind,resolveDir:u.resolveDir});if(u.path.match(/@donotdev\/core\/.+/)&&a&&s?.type==="dndev"){let v=u.path.replace("@donotdev/core/","");return{path:f.normalizePath(`${s.root}/packages/core/${v}.ts`)}}if(u.path==="firebase-admin"||u.path.startsWith("firebase-admin/")||u.path==="firebase-functions"||u.path.startsWith("firebase-functions/"))return{path:u.path,external:!0};if(u.path.match(/@donotdev\/core\/.+/)&&a&&s?.type==="dndev"){let v=u.path.replace("@donotdev/core/","");return{path:f.normalizePath(`${s.root}/packages/core/${v}.ts`)}}if(u.path.startsWith("@donotdev/")||u.path==="valibot"||u.path.startsWith("valibot/"))return null;if(G.length>0){let v=u.path.split("/")[0];if(G.includes(v))return null}return u.path.startsWith(".")||u.path.startsWith("/")?null:{path:u.path,external:!0}})}};if(d.external=[...ce,"firebase-admin","firebase-functions"],d.plugins=[le,...d.plugins||[]],d.define={"process.env.NODE_ENV":JSON.stringify(y.env.NODE_ENV||"production"),...d.define||{}},l&&s.type==="dndev"){let k=s.root,u=f.normalizePath(`${k}/functions/lib`);d.alias={...d.alias,"@donotdev/functions":u}}return o==="framework"&&(d.entryPoints={"firebase/index":"src/firebase/index.ts","vercel/api/index":"src/vercel/api/index.ts","shared/index":"src/shared/index.ts"}),d}P();var oe=["create","get","list","listCard","update","delete"];function ne(n,e=0){let t=" ".repeat(e),r="";for(let[i,o]of Object.entries(n))if(o!=null)if(typeof o=="object"&&!Array.isArray(o))Object.keys(o).length===0?r+=`${t}${i}: {}
2
- `:r+=`${t}${i}:
3
- ${ne(o,e+1)}`;else if(Array.isArray(o))if(o.length===0)r+=`${t}${i}: []
4
- `;else{r+=`${t}${i}:
5
- `;for(let s of o)r+=`${t} - ${s}
6
- `}else r+=`${t}${i}: ${o}
7
- `;return r}function ie(n){let e=n.defaults||{},t=e.labels||{},r={};for(let[o,s]of Object.entries(n.functions||{})){let a={...t,...s.labels};s.category&&(a.category=s.category),r[o]={region:s.region||e.region||["us-central1"],platform:s.platform||e.platform||"gcfv2",entryPoint:s.entryPoint||o,labels:a},s.trigger==="http"?r[o].httpsTrigger={}:r[o].callableTrigger={}}if(n.crud?.entities)for(let o of n.crud.entities)for(let s of oe){let a=`${s}_${o}`;r[a]={region:e.region||["us-central1"],platform:e.platform||"gcfv2",callableTrigger:{},entryPoint:a,labels:{...t,category:"crud"}}}return`# Firebase Functions Configuration
1
+ import F from"node:fs";import y from"node:path";import{fileURLToPath as Z}from"node:url";var K=Z(import.meta.url),le=y.dirname(K);function D(){let i=process.cwd(),e=10;for(let t=0;t<e;t++){let r=y.join(i,"package.json");if(F.existsSync(r))try{let s=JSON.parse(F.readFileSync(r,"utf8")),o=s.workspaces&&Array.isArray(s.workspaces);if(o&&s.workspaces.some(c=>c==="packages/**"||c.startsWith("packages/"))&&(F.existsSync(y.join(i,"packages","core"))||F.existsSync(y.join(i,"packages","functions"))))return{type:"dndev",root:i};if(o&&s.workspaces.some(c=>c.includes("dndev/packages"))){let f=s.workspaces.find(d=>d.includes("dndev/packages")).replace(/\/packages.*$/,""),m=y.resolve(i,f);if(F.existsSync(y.join(m,"packages","core")))return{type:"dndev",root:m}}}catch{}let n=y.dirname(i);if(n===i)break;i=n}return{type:"npm",root:process.cwd()}}function X(i){return i.type==="dndev"?i.root:null}function I(i){let e={};if(i.type==="dndev"){let t=X(i);t&&(e["@donotdev/types"]=y.join(t,"packages","core","types","src"),e["@donotdev/functions"]=y.join(t,"packages","functions","src"),e["@donotdev/utils"]=y.join(t,"packages","core","utils","src"),e["@donotdev/schemas"]=y.join(t,"packages","core","schemas","src"),e["@donotdev/core"]=y.join(t,"packages","core"))}return e}import*as p from"node:fs";import"node:fs";import{createRequire as ee}from"node:module";import{resolve as z,join as P,dirname as x,relative as L,normalize as te,sep as U,extname as re}from"node:path";import{fileURLToPath as oe}from"node:url";import se from"fast-glob";var _={SOURCE_ROOT:"packages/core/i18n",SOURCE_LOCALES:"packages/core/i18n/locales",SOURCE_EAGER:"packages/core/i18n/locales/eager",SOURCE_LAZY:"packages/core/i18n/locales/lazy",PUBLISHED_ROOT:"i18n",PUBLISHED_LOCALES:"i18n/locales",PUBLISHED_EAGER:"i18n/locales/eager",PUBLISHED_LAZY:"i18n/locales/lazy"},w={routes:{consumer:["src/**/*Page.tsx","src/pages/**/*Page.tsx"],exclude:["**/node_modules/**","**/dist/**","**/build/**","**/*.test.tsx","**/*.stories.tsx"],extensions:[".tsx"]},css:{consumer:["src/**/*.css"],themes:["src/**/*.css"],extensions:[".css",".scss",".sass"],framework:["packages/ui/src/**/*.css","packages/core/components/src/**/*.css","packages/core/templates/src/**/*.css"]},i18n:{eager:["src/locales/*_*.json"],lazy:["src/**/locales/*_*.json","!src/locales/*_*.json","../../entities/locales/*_*.json"],additional:[],framework:{eager:[`${_.SOURCE_EAGER}/*_*.json`],lazy:[`${_.SOURCE_LAZY}/*_*.json`]},extensions:[".json"]},assets:{consumer:["public/**/*"],fallback:["manifest.json"],modern:["logo.svg","favicon.svg","apple-touch-icon.png","android-chrome-192x192.png","android-chrome-512x512.png"],patterns:["favicon.svg","favicon.ico","favicon-*.png","logo.svg","logo.png","logo.webp","logo.avif","apple-touch-icon*.png","android-chrome-*.png","manifest.json"],fonts:["fonts/**/*.woff2","fonts/**/*.woff","fonts/**/*.ttf"],framework:["packages/ui/assets/**/*"]},pwa:{consumer:["public/manifest.json","public/service-worker.js","public/sw.js","public/icon-192x192.png","public/icon-512x512.png","public/favicon.ico","public/favicon.svg","public/apple-touch-icon.png","public/logo.svg"],exclude:["**/node_modules/**","**/dist/**","**/build/**"],extensions:[".json",".js",".png",".svg",".ico"],framework:["packages/ui/assets/**/*"]},globalIgnore:["**/node_modules/**","**/dist/**","**/build/**","**/.git/**","**/coverage/**","**/test/**"]};var T={base:{absolute:!0,onlyFiles:!0,ignore:w.globalIgnore},css:{absolute:!0,onlyFiles:!0,ignore:[...w.globalIgnore,"**/*.test.css"]},routes:{absolute:!0,onlyFiles:!0,ignore:[...w.globalIgnore,"**/*.test.tsx","**/*.stories.tsx"]},i18n:{absolute:!0,onlyFiles:!0,ignore:w.globalIgnore},assets:{absolute:!0,onlyFiles:!0,ignore:w.globalIgnore}};function C(i,e=null){let t=w[i];if(!t)throw new Error(`Unknown pattern type: ${i}`);return e&&t.framework?{...t,framework:t.framework.map(r=>`${e}/${r}`)}:t}function N(i){return T[i]||T.base}var R={getGlobOptionsFor:N||void 0,SCAN_PATTERNS:w||void 0,getPatternsFor:C||void 0,I18N_PATHS:_||void 0},g={error:(i,e)=>{},warn:(i,e)=>{},info:i=>{}};function W(i,e){return i().catch(t=>{throw new Error(`${e}: ${t instanceof Error?t.message:String(t)}`)})}var B={CLI:"packages/cli",COMPONENTS:"packages/core/components",CONFIG:"packages/core/config",CORE:"packages/core",CRUD:"packages/core/crud",FEATURES:"packages/features",HOOKS:"packages/core/hooks",I18N:"packages/core/i18n",SCHEMAS:"packages/core/schemas",STORES:"packages/core/stores",TEMPLATES:"packages/templates",TOOLING:"packages/tooling",TYPES:"packages/core/types",UI:"packages/ui",UTILS:"packages/core/utils",AUTH:"packages/features/auth",BILLING:"packages/features/billing",OAUTH:"packages/features/oauth",FIREBASE:"packages/providers/firebase",FUNCTIONS:"packages/functions"},O=class i{static _instance=null;options;_repoRoot;_appRoot=null;static getInstance(e={}){return i._instance||(i._instance=new i(e)),i._instance}static _reset(){i._instance=null}constructor(e={}){if(i._instance)return i._instance;this.options={maxLevels:e.maxLevels??10,customMarkers:e.customMarkers||[],cache:e.cache??!1,debug:e.debug??!1};try{let t=process.cwd();if(!t)throw new Error("PathResolver: process.cwd() returned undefined. This should never happen.");this._repoRoot=this._findRepoRoot(t)}catch(t){throw new Error(`PathResolver constructor failed: ${t instanceof Error?t.message:String(t)}. cwd: ${process.cwd()}`)}this._appRoot=null,i._instance=this}normalizePath(e){if(!e)return"";try{return te(e).split(U).join("/")}catch{return String(e).split(U).join("/")}}getRelativePath(e){let t=this.getAppRoot(),r=L(t,e);return this.normalizePath(r)}getBasename(e){if(!e)return"";let r=this.normalizePath(e).split("/");return r[r.length-1]||""}getDirname(e){return e?this.normalizePath(x(e)):""}resolvePackage(e,t=null){try{let r=t||this.getAppRoot(),s=ee(P(r,"package.json")).resolve(e);return this.normalizePath(s)}catch{return null}}resolveFrameworkPackage(e,t=null){let r=this.resolvePackage(`${e}/package.json`,t);if(r)return this.getDirname(r);if(this.isMonorepo()&&e.startsWith("@donotdev/")){let o=e.replace("@donotdev/",""),a=this.resolveRepoPath(`packages/${o}`);if(this.pathExists(a))return a;if(["auth","billing","crud","oauth"].includes(o)){let l=this.resolveRepoPath(`packages/features/${o}`);if(this.pathExists(l))return l}if(o==="firebase"){let l=this.resolveRepoPath(`packages/providers/${o}`);if(this.pathExists(l))return l}}let n=this.resolveAppPath(`node_modules/${e}`);if(this.pathExists(n))return n;let s=this.resolveRepoPath(`node_modules/${e}`);return this.pathExists(s)?s:null}resolvePackageAsset(e,t=null){return this.resolvePackage(e,t)}resolveAppPath(e){let t=this.getAppRoot(),r=z(t,e);return this.normalizePath(r)}resolveRepoPath(e){let t=this.getRepoRoot(),r=this.normalizePath(e),n=z(t,r);return this.normalizePath(n)}resolvePath(e,t){let r=this.normalizePath(t),n=this.normalizePath(e),s=z(r,n);return this.normalizePath(s)}createImportPath(e){return"./"+this.getRelativePath(e)}getFileInfo(e){try{let t=p.statSync(e);return{absolutePath:this.normalizePath(e),relativePath:this.getRelativePath(e),importPath:this.createImportPath(e),size:t.size,isFile:t.isFile(),isDirectory:t.isDirectory()}}catch{return null}}_detectFormat(e,t){return t&&t!=="auto"?t:re(e).toLowerCase()===".json"?"json":"text"}async read(e,t={}){let{format:r="auto",encoding:n="utf8"}=t,s=this._detectFormat(e,r);try{if(s==="buffer")return await p.promises.readFile(e);let o=await p.promises.readFile(e,n),a=this.stripBom(o);return s==="json"?JSON.parse(a):a}catch(o){return this.options.debug&&g.warn(`Failed to read file: ${e}`,o),null}}readSync(e,t={}){let{format:r="auto",encoding:n="utf8"}=t,s=this._detectFormat(e,r);try{if(s==="buffer")return p.readFileSync(e);let o=p.readFileSync(e,n),a=this.stripBom(o);return s==="json"?JSON.parse(a):a}catch(o){return this.options.debug&&g.warn(`Failed to read file: ${e}`,o),null}}async write(e,t,r={}){let{format:n="auto",overwrite:s=!1,dryRun:o=!1,verbose:a=!1}=r,l=this.normalizePath(e),h=this.normalizePath(x(l)),c=this.pathExists(l);if(c&&!s)return a&&g.info(`Skipping existing file: ${l}`),!1;if(o)return g.info(`[DRY RUN] Would write file: ${l}`),!0;try{await p.promises.mkdir(h,{recursive:!0})}catch(d){if(d?.code!=="EEXIST")throw d}let f=this._detectFormat(e,n),m;Buffer.isBuffer(t)?m=t:f==="json"&&typeof t=="object"?m=JSON.stringify(t,null,2):m=String(t);try{return await W(async()=>(Buffer.isBuffer(m)?await p.promises.writeFile(l,m):await p.promises.writeFile(l,m,"utf8"),a&&g.info(`${c?"Updated":"Created"} file: ${l}`),!0),`Failed to write file: ${l}`)}catch{return!1}}writeSync(e,t,r={}){let{format:n="auto",overwrite:s=!1,dryRun:o=!1,verbose:a=!1}=r,l=this.normalizePath(e),h=this.normalizePath(x(l)),c=this.pathExists(l);if(c&&!s)return a&&g.info(`Skipping existing file: ${l}`),!1;if(o)return g.info(`[DRY RUN] Would write file: ${l}`),!0;try{p.mkdirSync(h,{recursive:!0})}catch(d){if(d?.code!=="EEXIST")throw d}let f=this._detectFormat(e,n),m;Buffer.isBuffer(t)?m=t:f==="json"&&typeof t=="object"?m=JSON.stringify(t,null,2):m=String(t);try{return Buffer.isBuffer(m)?p.writeFileSync(l,m):p.writeFileSync(l,m,"utf8"),a&&g.info(`${c?"Updated":"Created"} file: ${l}`),!0}catch(d){throw new Error(`Failed to write file: ${l}: ${d instanceof Error?d.message:String(d)}`)}}async copy(e,t,r={}){let{overwrite:n=!1,dryRun:s=!1,verbose:o=!1}=r,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!n)return o&&g.info(`Skipping existing file: ${a}`),!1;if(s)return g.info(`[DRY RUN] Would copy file: ${a}`),!0;let h=this.normalizePath(x(a));try{await p.promises.mkdir(h,{recursive:!0})}catch(c){if(c?.code!=="EEXIST")throw c}try{return await W(async()=>(await p.promises.copyFile(e,a),o&&g.info(`${l?"Updated":"Created"} file: ${a}`),!0),`Failed to copy file from ${e} to ${a}`)}catch{return!1}}copySync(e,t,r={}){let{overwrite:n=!1,dryRun:s=!1,verbose:o=!1}=r,a=this.normalizePath(t),l=this.pathExists(a);if(l&&!n)return o&&g.info(`Skipping existing file: ${a}`),!1;if(s)return g.info(`[DRY RUN] Would copy file: ${a}`),!0;let h=this.normalizePath(x(a));try{p.mkdirSync(h,{recursive:!0})}catch(c){if(c?.code!=="EEXIST")throw c}try{return p.copyFileSync(e,a),o&&g.info(`${l?"Updated":"Created"} file: ${a}`),!0}catch{return!1}}pathExists(e,t=!1){try{return p.existsSync(e)}catch(r){return t||g.error(`Error checking path existence: ${e}`,r),!1}}mkdir(e){try{let t=e.startsWith("/")||e.match(/^[A-Z]:/)?this.normalizePath(e):this.resolveAppPath(e);return p.existsSync(t)||p.mkdirSync(t,{recursive:!0}),!0}catch{return!1}}readdirSync(e,t){try{return p.readdirSync(e,t)}catch(r){return this.options.debug&&g.warn(`Failed to read directory: ${e}`,r),t&&typeof t=="object"&&"withFileTypes"in t&&t.withFileTypes?[]:[]}}statSync(e){try{return p.statSync(e)}catch(t){return this.options.debug&&g.warn(`Failed to stat file: ${e}`,t),null}}lstatSync(e){try{return p.lstatSync(e)}catch(t){return this.options.debug&&g.warn(`Failed to lstat file: ${e}`,t),null}}async ensureDir(e){try{await p.promises.mkdir(e,{recursive:!0})}catch(t){if(t?.code!=="EEXIST")throw t}}ensureDirSync(e){try{p.mkdirSync(e,{recursive:!0})}catch(t){if(t?.code!=="EEXIST")throw t}}async remove(e){await p.promises.rm(e,{recursive:!0,force:!0})}removeSync(e){p.rmSync(e,{recursive:!0,force:!0})}async readdir(e,t){return p.promises.readdir(e,t)}stripBom(e){return e.charCodeAt(0)===65279?e.slice(1):e}getRepoRoot(){return this._repoRoot||process.cwd()}getAppRoot(){return this._appRoot?this._appRoot:this._repoRoot}setAppRoot(e){if(!e)throw new Error("PathResolver.setAppRoot: root cannot be undefined or null");this._appRoot=this.normalizePath(e)}isMonorepo(){let e=P(this._repoRoot,"packages");return this.pathExists(e)}isWithinApp(e){let t=this.normalizePath(z(e)),r=this.getAppRoot(),n=L(r,t),s=this.normalizePath(n);return!s.startsWith("../")&&!s.startsWith("/")}async findFiles(e,t,r={}){let n=this.normalizePath(P(e,t)),s=this.getAppRoot(),o=this.normalizePath(s),a=n.startsWith(o)?n.slice(o.length+1):n,l={absolute:!0,onlyFiles:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:s,ignore:R.SCAN_PATTERNS?.globalIgnore||["**/node_modules/**","**/dist/**","**/build/**","**/.git/**"]};return await this._globWithNormalization([a],{...l,...r})}clearCache(){}async _resolveFrameworkI18nPattern(e){let t=R.I18N_PATHS;if(!t)return null;let r=e.replace(t.SOURCE_ROOT+"/",""),n=this.resolveFrameworkPackage("@donotdev/core");if(!n)return null;let s=this.normalizePath(P(n,t.PUBLISHED_ROOT,r)),o=s.replace(/\/[^/]*\*.*$/,"");return this.pathExists(o),s}async _globWithNormalization(e,t){return(await se(e,t)).map(n=>{let s=typeof n=="string"?n:n.path;return this.normalizePath(s)})}async resolveFiles(e,t="css"){if(!e||typeof e!="object")return{frameworkFiles:[],consumerFiles:[]};if(t==="i18n")return{frameworkFiles:[],consumerFiles:[]};if(Array.isArray(e.framework)||(e.framework=[]),!Array.isArray(e.consumer))return{frameworkFiles:[],consumerFiles:[]};let r=[...e.framework,...e.consumer];for(let c of r)if(typeof c!="string"||c.trim()==="")return{frameworkFiles:[],consumerFiles:[]};let n=this.getAppRoot(),s=R.getGlobOptionsFor?R.getGlobOptionsFor(t):{ignore:["**/node_modules/**","**/dist/**","**/build/**"]},o=this.normalizePath(n),a=e.framework.map(c=>{let f=this.normalizePath(c);return f.startsWith(o)?f.slice(o.length+1):f}),l=e.consumer.map(c=>{let f=this.normalizePath(c);return f.startsWith(o)?f.slice(o.length+1):f}),h={...s,onlyFiles:!0,absolute:!0,braceExpansion:!0,extglob:!0,globstar:!0,cwd:n};try{let c=a.length>0?await this._globWithNormalization(a,h):[],f=await this._globWithNormalization(l,h);return{frameworkFiles:c,consumerFiles:f}}catch{return this.options.debug,{frameworkFiles:[],consumerFiles:[]}}}async resolvePatterns(e){if(!R.getPatternsFor)return{framework:[],consumer:[],all:[]};let t=this.getAppRoot(),r=this.getRepoRoot();if(e==="i18n"&&(!t||t===r))throw new Error(`Cannot resolve i18n patterns: appRoot not set (appRoot: ${t}, repoRoot: ${r}). Ensure configResolved hook has run before discovery.`);let n=R.getPatternsFor(e),s=this.isMonorepo();if(e==="i18n"){let l=n,h={eager:l.eager.map(c=>c.startsWith("!")?"!"+this.resolveAppPath(c.slice(1)):this.resolveAppPath(c)),lazy:l.lazy.map(c=>c.startsWith("!")?"!"+this.resolveAppPath(c.slice(1)):this.resolveAppPath(c)),framework:{eager:s?(l.framework?.eager||[]).map(c=>this.resolveRepoPath(c)).filter(Boolean):await Promise.all((l.framework?.eager||[]).map(c=>this._resolveFrameworkI18nPattern(c))).then(c=>c.filter(Boolean)),lazy:s?(l.framework?.lazy||[]).map(c=>this.resolveRepoPath(c)).filter(Boolean):await Promise.all((l.framework?.lazy||[]).map(c=>this._resolveFrameworkI18nPattern(c))).then(c=>c.filter(Boolean))},all:[]};return h.all=[...h.eager,...h.lazy,...h.framework.eager,...h.framework.lazy],h}let o=n,a={framework:s?(o.framework||[]).map(l=>this.resolveRepoPath(l)).filter(Boolean):[],consumer:(o.consumer||[]).map(l=>this.resolveAppPath(l)),all:[]};return a.all=[...a.consumer,...a.framework],a}getEmptyModulePath(e=!1){if(e)return"@donotdev/core/empty";let t=this.resolvePackage("@donotdev/core/empty");if(t)return t;let r=x(oe(import.meta.url));return this.normalizePath(P(r,"../empty.js"))}_findRepoRoot(e){let t=this.normalizePath(e),r=0,n=this.options.maxLevels;for(;r<n;){let s=this.normalizePath(P(t,B.TOOLING)),o=this.normalizePath(P(t,B.CORE));if(this.pathExists(s)&&this.pathExists(o))return t;let a=P(t,"apps");if(this.pathExists(a)&&this.statSync(a)?.isDirectory())return this.normalizePath(t);let l=this.normalizePath(P(t,"package.json"));if(this.pathExists(l)&&this.normalizePath(x(t))===t)return t;let h=this.normalizePath(x(t));if(h===t)break;t=h,r++}return this.normalizePath(e)}};function M(i={}){let{entry:e="src/index.ts",outDir:t="lib",minify:r=!1,sourcemap:n=!0,platform:s="firebase",workspace:o,bundleWorkspaceDeps:a=!1,importFramework:l=!1,external:h=!1,...c}=i,f=O.getInstance(),m=I(o),d={entryPoints:[e],bundle:!0,platform:"node",target:"node20",format:"esm",outdir:t,outExtension:{".js":".js"},minify:r,sourcemap:n,metafile:!0,logLevel:"info",loader:{".ts":"ts",".tsx":"tsx",".css":"empty"},keepNames:!0,treeShaking:!0,...c};a&&Object.keys(m).length>0&&(d.alias=Object.fromEntries(Object.entries(m).map(([k,u])=>[k,f.normalizePath(u)]))),d.mainFields=["module","main"],d.conditions=["import","module","node"];let V=["fs","path","crypto","util","stream","events","buffer","url","querystring","http","https","zlib","os","child_process","assert","constants","domain","punycode","string_decoder","timers","tty","vm","worker_threads","perf_hooks","async_hooks"],$=[];if(a)try{let k=o?.root||process.cwd(),u=process.cwd(),v=10;for(let b=0;b<v;b++){let j=f.normalizePath(`${u}/package.json`);if(f.pathExists(j)){let E=f.readSync(j,{format:"json"});if(E&&Array.isArray(E.workspaces)){k=f.normalizePath(u);for(let S of E.workspaces)S==="apps/*"||S==="functions"||!S.includes("*")&&!S.includes("/")&&$.push(S);break}}let A=f.getDirname(u);if(A===u)break;u=A}}catch{}let q={name:"external-node-modules",setup(k){k.onResolve({filter:/^firebase($|\/)/},u=>{if(u.path==="firebase-admin"||u.path.startsWith("firebase-admin/")||u.path==="firebase-functions"||u.path.startsWith("firebase-functions/"))return null;let v;if(o?.type==="dndev"&&o.root)v=f.normalizePath(`${o.root}/packages/core/config/functions/firebase-stub.js`);else{let b=import.meta.url,A=new URL(b).pathname.replace(/^\/([A-Z]:)/i,"$1"),E=f.getDirname(A);v=f.normalizePath(`${E}/firebase-stub.js`)}return{path:v}}),k.onResolve({filter:/.*/},u=>{if(u.kind==="entry-point")return null;if(u.path.match(/@donotdev\/functions\/.+/)&&a&&o?.type==="dndev"){let v=u.path.replace("@donotdev/functions/","");return{path:f.normalizePath(`${o.root}/packages/functions/src/${v}/index.ts`)}}if(u.path==="@donotdev/utils")return o?.type==="dndev"?{path:f.normalizePath(`${o.root}/packages/core/utils/src/server/index.ts`)}:k.resolve("@donotdev/utils/server",{kind:u.kind,resolveDir:u.resolveDir});if(u.path.match(/@donotdev\/utils\/.+/)&&o?.type==="dndev"){let v=u.path.replace("@donotdev/utils/","");return{path:f.normalizePath(`${o.root}/packages/core/utils/src/${v}/index.ts`)}}if(u.path==="@donotdev/core")return o?.type==="dndev"?{path:f.normalizePath(`${o.root}/packages/core/server.ts`)}:k.resolve("@donotdev/core/server",{kind:u.kind,resolveDir:u.resolveDir});if(u.path.match(/@donotdev\/core\/.+/)&&a&&o?.type==="dndev"){let v=u.path.replace("@donotdev/core/","");return{path:f.normalizePath(`${o.root}/packages/core/${v}.ts`)}}if(u.path==="firebase-admin"||u.path.startsWith("firebase-admin/")||u.path==="firebase-functions"||u.path.startsWith("firebase-functions/"))return{path:u.path,external:!0};if(u.path.match(/@donotdev\/core\/.+/)&&a&&o?.type==="dndev"){let v=u.path.replace("@donotdev/core/","");return{path:f.normalizePath(`${o.root}/packages/core/${v}.ts`)}}if(u.path.startsWith("@donotdev/")||u.path==="valibot"||u.path.startsWith("valibot/"))return null;if($.length>0){let v=u.path.split("/")[0];if($.includes(v))return null}return u.path.startsWith(".")||u.path.startsWith("/")?null:{path:u.path,external:!0}})}};if(d.external=[...V,"firebase-admin","firebase-functions"],d.plugins=[q,...d.plugins||[]],d.define={"process.env.NODE_ENV":JSON.stringify(process.env.NODE_ENV||"production"),...d.define||{}},l&&o.type==="dndev"){let k=o.root,u=f.normalizePath(`${k}/functions/lib`);d.alias={...d.alias,"@donotdev/functions":u}}return s==="framework"&&(d.entryPoints={"firebase/index":"src/firebase/index.ts","vercel/api/index":"src/vercel/api/index.ts","shared/index":"src/shared/index.ts"}),d}var G=["create","get","list","listCard","update","delete"];function H(i,e=0){let t=" ".repeat(e),r="";for(let[n,s]of Object.entries(i))if(s!=null)if(typeof s=="object"&&!Array.isArray(s))Object.keys(s).length===0?r+=`${t}${n}: {}
2
+ `:r+=`${t}${n}:
3
+ ${H(s,e+1)}`;else if(Array.isArray(s))if(s.length===0)r+=`${t}${n}: []
4
+ `;else{r+=`${t}${n}:
5
+ `;for(let o of s)r+=`${t} - ${o}
6
+ `}else r+=`${t}${n}: ${s}
7
+ `;return r}function Y(i){let e=i.defaults||{},t=e.labels||{},r={};for(let[s,o]of Object.entries(i.functions||{})){let a={...t,...o.labels};o.category&&(a.category=o.category),r[s]={region:o.region||e.region||["us-central1"],platform:o.platform||e.platform||"gcfv2",entryPoint:o.entryPoint||s,labels:a},o.trigger==="http"?r[s].httpsTrigger={}:r[s].callableTrigger={}}if(i.crud?.entities)for(let s of i.crud.entities)for(let o of G){let a=`${o}_${s}`;r[a]={region:e.region||["us-central1"],platform:e.platform||"gcfv2",callableTrigger:{},entryPoint:a,labels:{...t,category:"crud"}}}return`# Firebase Functions Configuration
8
8
  # Generated by @donotdev/core/functions - DO NOT EDIT MANUALLY
9
9
  # Generated at: ${new Date().toISOString()}
10
10
 
11
- `+ne({endpoints:r,specVersion:"v1alpha1",requiredAPIs:[]})}function xe(n){let e=Object.keys(n.functions||{}),t=[];if(n.crud?.entities)for(let r of n.crud.entities)for(let i of oe)t.push(`${i}_${r}`);return{yaml:ie(n),functions:[...e,...t],staticFunctions:e,crudFunctions:t}}function ae(n={}){let{entry:e="src/index.ts",outDir:t="lib",minify:r=!1,sourcemap:i=!0,platform:o="firebase",...s}=n,a=X();return se({entry:e,outDir:t,minify:r,sourcemap:i,platform:o,workspace:a,...s})}function et(n={}){return ae({...n,platform:"framework",bundleWorkspaceDeps:!0})}function tt(n={}){return ae({...n,platform:"firebase",bundleWorkspaceDeps:!0,importFramework:!0})}export{tt as createAppFunctionsConfig,ae as createFunctionsEsbuildConfig,et as createRootFunctionsConfig,ie as generateFunctionsYaml,xe as generateFunctionsYamlWithInfo};
11
+ `+H({endpoints:r,specVersion:"v1alpha1",requiredAPIs:[]})}function ne(i){let e=Object.keys(i.functions||{}),t=[];if(i.crud?.entities)for(let r of i.crud.entities)for(let n of G)t.push(`${n}_${r}`);return{yaml:Y(i),functions:[...e,...t],staticFunctions:e,crudFunctions:t}}function J(i={}){let{entry:e="src/index.ts",outDir:t="lib",minify:r=!1,sourcemap:n=!0,platform:s="firebase",...o}=i,a=D();return M({entry:e,outDir:t,minify:r,sourcemap:n,platform:s,workspace:a,...o})}function Ee(i={}){return J({...i,platform:"framework",bundleWorkspaceDeps:!0})}function Se(i={}){return J({...i,platform:"firebase",bundleWorkspaceDeps:!0,importFramework:!0})}export{Se as createAppFunctionsConfig,J as createFunctionsEsbuildConfig,Ee as createRootFunctionsConfig,Y as generateFunctionsYaml,ne as generateFunctionsYamlWithInfo};
@@ -1,4 +1,27 @@
1
1
  {
2
+ "actions": {
3
+ "label": "الإجراءات",
4
+ "create": "إنشاء",
5
+ "update": "تحديث",
6
+ "delete": "حذف",
7
+ "cancel": "إلغاء",
8
+ "save": "حفظ",
9
+ "confirm": "تأكيد",
10
+ "back": "رجوع",
11
+ "next": "التالي",
12
+ "previous": "السابق",
13
+ "search": "بحث",
14
+ "searchPlaceholder": "بحث...",
15
+ "filter": "تصفية",
16
+ "clear": "مسح",
17
+ "reset": "إعادة تعيين",
18
+ "apply": "تطبيق",
19
+ "select": "اختيار",
20
+ "selectYear": "اختر أو اكتب السنة",
21
+ "upload": "رفع",
22
+ "download": "تنزيل",
23
+ "close": "إغلاق"
24
+ },
2
25
  "fields": {
3
26
  "array": "مصفوفة",
4
27
  "boolean": "منطقي",
@@ -169,8 +192,69 @@
169
192
  "upload": "رفع {{index}}",
170
193
  "uploaded": "{{label}} {{index}}{{suffix}} (مرفوعة)",
171
194
  "pending": "{{label}} {{index}}{{suffix}} (رفع معلق)"
195
+ },
196
+ "editor": {
197
+ "title": "تعديل الصورة",
198
+ "titleWithIndex": "صورة {{current}} من {{total}}",
199
+ "description": "عرض وتعديل الصورة باستخدام أدوات القص والتدوير والتكبير",
200
+ "editButton": "تعديل الصورة",
201
+ "aspectRatio": "نسبة العرض إلى الارتفاع",
202
+ "aspectFree": "حر",
203
+ "zoom": "تكبير",
204
+ "rotation": "تدوير",
205
+ "rotateLeft": "تدوير لليسار",
206
+ "rotateRight": "تدوير لليمين",
207
+ "fitToView": "ملاءمة العرض",
208
+ "showGrid": "إظهار الشبكة",
209
+ "hideGrid": "إخفاء الشبكة",
210
+ "reset": "إعادة تعيين",
211
+ "apply": "تطبيق",
212
+ "processing": "جاري المعالجة...",
213
+ "cancel": "إلغاء",
214
+ "deleteImage": "حذف الصورة",
215
+ "deleteConfirm": "حذف هذه الصورة نهائياً؟",
216
+ "previousImage": "الصورة السابقة",
217
+ "nextImage": "الصورة التالية"
172
218
  }
173
219
  },
220
+ "messages": {
221
+ "createSuccess": "تم إنشاء {{entity}} بنجاح",
222
+ "updateSuccess": "تم تحديث {{entity}} بنجاح",
223
+ "deleteSuccess": "تم حذف {{entity}} بنجاح",
224
+ "error": "حدث خطأ",
225
+ "loading": "جاري التحميل...",
226
+ "noResults": "لم يتم العثور على نتائج",
227
+ "confirmDelete": "هل أنت متأكد من حذف هذا {{entity}}؟",
228
+ "unsavedChanges": "لديك تغييرات غير محفوظة",
229
+ "unsavedChangesDiscard": "لديك تغييرات غير محفوظة. هل تريد التخلي عنها؟",
230
+ "unsavedChangesLeave": "لديك تغييرات غير محفوظة. هل أنت متأكد من أنك تريد المغادرة؟",
231
+ "sessionExpired": "انتهت صلاحية جلستك",
232
+ "networkError": "حدث خطأ في الشبكة",
233
+ "unauthorized": "وصول غير مصرح به",
234
+ "forbidden": "الوصول محظور",
235
+ "serverError": "حدث خطأ في الخادم"
236
+ },
237
+ "form": {
238
+ "submit": "إرسال",
239
+ "cancel": "إلغاء",
240
+ "submitting": "جاري الإرسال...",
241
+ "loading": "جاري التحميل...",
242
+ "add": "إضافة",
243
+ "remove": "إزالة",
244
+ "typeAndPressAdd": "اكتب واضغط إضافة...",
245
+ "enterLocationData": "أدخل بيانات الموقع (JSON)",
246
+ "uploading": "جاري الرفع {{progress}}%...",
247
+ "processing": "جاري المعالجة...",
248
+ "validating": "جاري التحقق...",
249
+ "saving": "جاري الحفظ..."
250
+ },
251
+ "gdprConsent": {
252
+ "consent": "أوافق على",
253
+ "privacyPolicy": "سياسة الخصوصية",
254
+ "terms": "شروط الاستخدام",
255
+ "and": "وأوافق على معالجة بياناتي الشخصية.",
256
+ "required": "يرجى قبول سياسة الخصوصية للمتابعة"
257
+ },
174
258
  "custom": {
175
259
  "passwordMatch": "كلمات المرور يجب أن تتطابق",
176
260
  "phoneNumber": "يرجى إدخال رقم هاتف صالح",
@@ -178,6 +262,24 @@
178
262
  "currency": "يرجى إدخال مبلغ صالح",
179
263
  "color": "يرجى إدخال كود لون صالح"
180
264
  },
265
+ "favorites": {
266
+ "title": "المفضلة",
267
+ "add": "إضافة إلى المفضلة",
268
+ "remove": "إزالة من المفضلة",
269
+ "saved": "محفوظ",
270
+ "save": "حفظ",
271
+ "showAll": "عرض الكل",
272
+ "showFavorites": "عرض المفضلة",
273
+ "myFavorites": "مفضلاتي",
274
+ "noFavorites": "لا توجد مفضلات بعد"
275
+ },
276
+ "pagination": {
277
+ "showing": "عرض {{from}} إلى {{to}} من {{total}} إدخالات",
278
+ "previous": "السابق",
279
+ "next": "التالي",
280
+ "page": "الصفحة {{page}} من {{total}}",
281
+ "itemsPerPagePlaceholder": "عناصر لكل صفحة:"
282
+ },
181
283
  "filters": {
182
284
  "title": "تصفح {{entity}} - المرشحات",
183
285
  "apply": "تطبيق المرشحات",
@@ -185,11 +287,30 @@
185
287
  "noResults": "لا توجد نتائج تطابق مرشحاتك",
186
288
  "selected": "{{count}} محدد"
187
289
  },
290
+ "filter": {
291
+ "placeholder": "تصفية...",
292
+ "selectPlaceholder": "الكل",
293
+ "min": "الحد الأدنى",
294
+ "max": "الحد الأقصى",
295
+ "from": "من",
296
+ "to": "إلى",
297
+ "today": "اليوم",
298
+ "thisWeek": "هذا الأسبوع",
299
+ "thisMonth": "هذا الشهر"
300
+ },
188
301
  "results": {
189
302
  "title": {
190
303
  "fetching": "جاري الجلب...",
191
304
  "count_one": "تم العثور على {{count}} نتيجة",
192
305
  "count_other": "تم العثور على {{count}} نتائج"
193
306
  }
307
+ },
308
+ "visibility": {
309
+ "viewAs": "عرض كـ",
310
+ "preview": "معاينة"
311
+ },
312
+ "price": {
313
+ "vatIncluded": "شامل الضريبة",
314
+ "discountPercent": "-{{percent}}%"
194
315
  }
195
316
  }
@@ -1,4 +1,27 @@
1
1
  {
2
+ "actions": {
3
+ "label": "Aktionen",
4
+ "create": "Erstellen",
5
+ "update": "Aktualisieren",
6
+ "delete": "Löschen",
7
+ "cancel": "Abbrechen",
8
+ "save": "Speichern",
9
+ "confirm": "Bestätigen",
10
+ "back": "Zurück",
11
+ "next": "Weiter",
12
+ "previous": "Vorherige",
13
+ "search": "Suchen",
14
+ "searchPlaceholder": "Suchen...",
15
+ "filter": "Filtern",
16
+ "clear": "Löschen",
17
+ "reset": "Zurücksetzen",
18
+ "apply": "Anwenden",
19
+ "select": "Auswählen",
20
+ "selectYear": "Jahr auswählen oder eingeben",
21
+ "upload": "Hochladen",
22
+ "download": "Herunterladen",
23
+ "close": "Schließen"
24
+ },
2
25
  "fields": {
3
26
  "array": "Array",
4
27
  "boolean": "Boolean",
@@ -169,8 +192,69 @@
169
192
  "upload": "Hochladen {{index}}",
170
193
  "uploaded": "{{label}} {{index}}{{suffix}} (hochgeladen)",
171
194
  "pending": "{{label}} {{index}}{{suffix}} (Upload ausstehend)"
195
+ },
196
+ "editor": {
197
+ "title": "Bild bearbeiten",
198
+ "titleWithIndex": "Bild {{current}} von {{total}}",
199
+ "description": "Bild anzeigen und bearbeiten mit Zuschneiden-, Drehen- und Zoom-Tools",
200
+ "editButton": "Bild bearbeiten",
201
+ "aspectRatio": "Seitenverhältnis",
202
+ "aspectFree": "Frei",
203
+ "zoom": "Zoom",
204
+ "rotation": "Rotation",
205
+ "rotateLeft": "Nach links drehen",
206
+ "rotateRight": "Nach rechts drehen",
207
+ "fitToView": "An Ansicht anpassen",
208
+ "showGrid": "Raster anzeigen",
209
+ "hideGrid": "Raster ausblenden",
210
+ "reset": "Zurücksetzen",
211
+ "apply": "Anwenden",
212
+ "processing": "Verarbeitung...",
213
+ "cancel": "Abbrechen",
214
+ "deleteImage": "Bild löschen",
215
+ "deleteConfirm": "Dieses Bild dauerhaft löschen?",
216
+ "previousImage": "Vorheriges Bild",
217
+ "nextImage": "Nächstes Bild"
172
218
  }
173
219
  },
220
+ "messages": {
221
+ "createSuccess": "{{entity}} erfolgreich erstellt",
222
+ "updateSuccess": "{{entity}} erfolgreich aktualisiert",
223
+ "deleteSuccess": "{{entity}} erfolgreich gelöscht",
224
+ "error": "Ein Fehler ist aufgetreten",
225
+ "loading": "Laden...",
226
+ "noResults": "Keine Ergebnisse gefunden",
227
+ "confirmDelete": "Möchten Sie dieses {{entity}} wirklich löschen?",
228
+ "unsavedChanges": "Sie haben nicht gespeicherte Änderungen",
229
+ "unsavedChangesDiscard": "Sie haben nicht gespeicherte Änderungen. Verwerfen?",
230
+ "unsavedChangesLeave": "Sie haben nicht gespeicherte Änderungen. Möchten Sie wirklich verlassen?",
231
+ "sessionExpired": "Ihre Sitzung ist abgelaufen",
232
+ "networkError": "Netzwerkfehler aufgetreten",
233
+ "unauthorized": "Nicht autorisierter Zugriff",
234
+ "forbidden": "Zugriff verboten",
235
+ "serverError": "Serverfehler aufgetreten"
236
+ },
237
+ "form": {
238
+ "submit": "Absenden",
239
+ "cancel": "Abbrechen",
240
+ "submitting": "Wird gesendet...",
241
+ "loading": "Laden...",
242
+ "add": "Hinzufügen",
243
+ "remove": "Entfernen",
244
+ "typeAndPressAdd": "Tippen und Hinzufügen drücken...",
245
+ "enterLocationData": "Standortdaten eingeben (JSON)",
246
+ "uploading": "Hochladen {{progress}}%...",
247
+ "processing": "Verarbeitung...",
248
+ "validating": "Validierung...",
249
+ "saving": "Speichern..."
250
+ },
251
+ "gdprConsent": {
252
+ "consent": "Ich stimme der",
253
+ "privacyPolicy": "Datenschutzerklärung",
254
+ "terms": "Nutzungsbedingungen",
255
+ "and": "zu und stimme der Verarbeitung meiner personenbezogenen Daten zu.",
256
+ "required": "Bitte akzeptieren Sie die Datenschutzerklärung, um fortzufahren"
257
+ },
174
258
  "custom": {
175
259
  "passwordMatch": "Passwörter müssen übereinstimmen",
176
260
  "phoneNumber": "Bitte geben Sie eine gültige Telefonnummer ein",
@@ -178,6 +262,24 @@
178
262
  "currency": "Bitte geben Sie einen gültigen Betrag ein",
179
263
  "color": "Bitte geben Sie einen gültigen Farbcode ein"
180
264
  },
265
+ "favorites": {
266
+ "title": "Favoriten",
267
+ "add": "Zu Favoriten hinzufügen",
268
+ "remove": "Aus Favoriten entfernen",
269
+ "saved": "Gespeichert",
270
+ "save": "Speichern",
271
+ "showAll": "Alle anzeigen",
272
+ "showFavorites": "Favoriten anzeigen",
273
+ "myFavorites": "Meine Favoriten",
274
+ "noFavorites": "Noch keine Favoriten"
275
+ },
276
+ "pagination": {
277
+ "showing": "Zeige {{from}} bis {{to}} von {{total}} Einträgen",
278
+ "previous": "Vorherige",
279
+ "next": "Nächste",
280
+ "page": "Seite {{page}} von {{total}}",
281
+ "itemsPerPagePlaceholder": "Elemente pro Seite:"
282
+ },
181
283
  "filters": {
182
284
  "title": "{{entity}} durchsuchen - Filter",
183
285
  "apply": "Filter anwenden",
@@ -185,11 +287,30 @@
185
287
  "noResults": "Keine Ergebnisse entsprechen Ihren Filtern",
186
288
  "selected": "{{count}} ausgewählt"
187
289
  },
290
+ "filter": {
291
+ "placeholder": "Filtern...",
292
+ "selectPlaceholder": "Alle",
293
+ "min": "Min",
294
+ "max": "Max",
295
+ "from": "Von",
296
+ "to": "Bis",
297
+ "today": "Heute",
298
+ "thisWeek": "Diese Woche",
299
+ "thisMonth": "Dieser Monat"
300
+ },
188
301
  "results": {
189
302
  "title": {
190
303
  "fetching": "Laden...",
191
304
  "count_one": "{{count}} Vorkommen gefunden",
192
305
  "count_other": "{{count}} Vorkommen gefunden"
193
306
  }
307
+ },
308
+ "visibility": {
309
+ "viewAs": "Anzeigen als",
310
+ "preview": "Vorschau"
311
+ },
312
+ "price": {
313
+ "vatIncluded": "inkl. MwSt.",
314
+ "discountPercent": "-{{percent}}%"
194
315
  }
195
316
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "actions": {
3
+ "label": "Actions",
3
4
  "create": "Create",
4
5
  "update": "Update",
5
6
  "delete": "Delete",
@@ -16,6 +17,7 @@
16
17
  "reset": "Reset",
17
18
  "apply": "Apply",
18
19
  "select": "Select",
20
+ "selectYear": "Select or type year",
19
21
  "upload": "Upload",
20
22
  "download": "Download",
21
23
  "close": "Close"
@@ -29,6 +31,8 @@
29
31
  "noResults": "No results found",
30
32
  "confirmDelete": "Are you sure you want to delete this {{entity}}?",
31
33
  "unsavedChanges": "You have unsaved changes",
34
+ "unsavedChangesDiscard": "You have unsaved changes. Discard them?",
35
+ "unsavedChangesLeave": "You have unsaved changes. Are you sure you want to leave?",
32
36
  "sessionExpired": "Your session has expired",
33
37
  "networkError": "Network error occurred",
34
38
  "unauthorized": "Unauthorized access",
@@ -46,7 +50,8 @@
46
50
  "showing": "Showing {{from}} to {{to}} of {{total}} entries",
47
51
  "previous": "Previous",
48
52
  "next": "Next",
49
- "page": "Page {{page}} of {{total}}"
53
+ "page": "Page {{page}} of {{total}}",
54
+ "itemsPerPagePlaceholder": "Items per page:"
50
55
  },
51
56
  "filters": {
52
57
  "title": "Browse {{entity}} - Filters",
@@ -55,6 +60,17 @@
55
60
  "noResults": "No results match your filters",
56
61
  "selected": "{{count}} selected"
57
62
  },
63
+ "filter": {
64
+ "placeholder": "Filter...",
65
+ "selectPlaceholder": "All",
66
+ "min": "Min",
67
+ "max": "Max",
68
+ "from": "From",
69
+ "to": "To",
70
+ "today": "Today",
71
+ "thisWeek": "This Week",
72
+ "thisMonth": "This Month"
73
+ },
58
74
  "results": {
59
75
  "title": {
60
76
  "fetching": "Fetching...",
@@ -155,6 +171,17 @@
155
171
  "addFavorite": "Add to favorites",
156
172
  "removeFavorite": "Remove from favorites"
157
173
  },
174
+ "favorites": {
175
+ "title": "Favorites",
176
+ "add": "Add to favorites",
177
+ "remove": "Remove from favorites",
178
+ "saved": "Saved",
179
+ "save": "Save",
180
+ "showAll": "Show All",
181
+ "showFavorites": "Show Favorites",
182
+ "myFavorites": "My Favorites",
183
+ "noFavorites": "No favorites yet"
184
+ },
158
185
  "copyToClipboard": "Copy to clipboard",
159
186
  "copied": "Copied!",
160
187
  "copyPassword": "Copy password",
@@ -182,7 +209,11 @@
182
209
  "add": "Add",
183
210
  "remove": "Remove",
184
211
  "typeAndPressAdd": "Type and press Add...",
185
- "enterLocationData": "Enter location data (JSON)"
212
+ "enterLocationData": "Enter location data (JSON)",
213
+ "uploading": "Uploading {{progress}}%...",
214
+ "processing": "Processing...",
215
+ "validating": "Validating...",
216
+ "saving": "Saving..."
186
217
  },
187
218
  "navigation": {
188
219
  "more": "More",
@@ -392,8 +423,38 @@
392
423
  "upload": "Upload {{index}}",
393
424
  "uploaded": "{{label}} {{index}}{{suffix}} (uploaded)",
394
425
  "pending": "{{label}} {{index}}{{suffix}} (pending upload)"
426
+ },
427
+ "editor": {
428
+ "title": "Edit Image",
429
+ "titleWithIndex": "Image {{current}} of {{total}}",
430
+ "description": "View and edit image with crop, rotation, and zoom tools",
431
+ "editButton": "Edit Image",
432
+ "aspectRatio": "Aspect Ratio",
433
+ "aspectFree": "Free",
434
+ "zoom": "Zoom",
435
+ "rotation": "Rotation",
436
+ "rotateLeft": "Rotate left",
437
+ "rotateRight": "Rotate right",
438
+ "fitToView": "Fit to view",
439
+ "showGrid": "Show grid",
440
+ "hideGrid": "Hide grid",
441
+ "reset": "Reset",
442
+ "apply": "Apply",
443
+ "processing": "Processing...",
444
+ "cancel": "Cancel",
445
+ "deleteImage": "Delete Image",
446
+ "deleteConfirm": "Delete this image permanently?",
447
+ "previousImage": "Previous image",
448
+ "nextImage": "Next image"
395
449
  }
396
450
  },
451
+ "gdprConsent": {
452
+ "consent": "I agree to the",
453
+ "privacyPolicy": "privacy policy",
454
+ "terms": "terms of use",
455
+ "and": "and consent to the processing of my personal data.",
456
+ "required": "Please accept the privacy policy to continue"
457
+ },
397
458
  "custom": {
398
459
  "passwordMatch": "Passwords must match",
399
460
  "phoneNumber": "Please enter a valid phone number",
@@ -408,5 +469,13 @@
408
469
  "fieldRendering": "Error rendering field {{field}}",
409
470
  "fallingBackToTextField": "Using text field for unsupported type {{type}}",
410
471
  "invalidFieldProps": "Invalid configuration for field {{field}}"
472
+ },
473
+ "visibility": {
474
+ "viewAs": "View as",
475
+ "preview": "Preview"
476
+ },
477
+ "price": {
478
+ "vatIncluded": "VAT Incl.",
479
+ "discountPercent": "-{{percent}}%"
411
480
  }
412
481
  }