@fernir2/saas-kit-cli 0.1.36 → 0.1.38

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.
Files changed (128) hide show
  1. package/base-repo/app-constants/aliases.cjs.js +1 -1
  2. package/base-repo/app-constants/aliases.js +1 -1
  3. package/base-repo/app-constants/project-paths.cjs.js +1 -1
  4. package/base-repo/app-constants/project-paths.js +1 -1
  5. package/base-repo/constants/create-app-constants.cjs.js +1 -1
  6. package/base-repo/constants/create-app-constants.js +2 -2
  7. package/cli/bin/create.ts +19 -10
  8. package/cli/configs/drizzle-cli-config.ts +1 -0
  9. package/cli/configs/next-cli-config.ts +78 -0
  10. package/cli/configs/playwright-cli-config.ts +1 -0
  11. package/cli/configs/tsconfig.cli.json +0 -2
  12. package/cli/next.config.js +2 -72
  13. package/cli/package-template.json +3 -4
  14. package/cli/server.ts +2 -3
  15. package/cli/src/app/api/v1/(f)/[resourceName]/[id]/route.ts +11 -0
  16. package/cli/src/app/api/v1/(f)/[resourceName]/route.ts +14 -0
  17. package/cli/src/app/api/v1/(f)/[resourceName]/upsert/route.ts +3 -0
  18. package/cli/src/app/api/v1/(f)/blob/route.ts +7 -0
  19. package/cli/src/app/api/v1/(f)/log/route.ts +7 -0
  20. package/cli/src/app/api/v1/(f)/other-user/[id]/route.ts +14 -0
  21. package/cli/src/app/api/v1/(f)/other-user/route.ts +7 -0
  22. package/cli/src/app/api/v1/(f)/password/forgot-password/route.ts +3 -0
  23. package/cli/src/app/api/v1/(f)/password/reset-password/route.ts +3 -0
  24. package/cli/src/app/api/v1/(f)/payment/method/route.ts +4 -0
  25. package/cli/src/app/api/v1/(f)/payment/route.ts +3 -0
  26. package/cli/src/app/api/v1/(f)/payment/verify-fail/route.ts +3 -0
  27. package/cli/src/app/api/v1/(f)/payment/verify-success/route.ts +3 -0
  28. package/cli/src/app/api/v1/(f)/preload/route.ts +3 -0
  29. package/cli/src/app/api/v1/(f)/search-result/route.ts +3 -0
  30. package/cli/src/app/api/v1/(f)/searchable-resources/route.ts +3 -0
  31. package/cli/src/app/api/v1/(f)/sign-in/route.ts +3 -0
  32. package/cli/src/app/api/v1/(f)/sign-out/route.ts +3 -0
  33. package/cli/src/app/api/v1/(f)/sign-up/route.ts +3 -0
  34. package/cli/src/app/api/v1/(f)/subscription/cancel/route.ts +3 -0
  35. package/cli/src/app/api/v1/(f)/subscription/create/route.ts +3 -0
  36. package/cli/src/app/api/v1/(f)/subscription/update/route.ts +3 -0
  37. package/cli/src/app/api/v1/(f)/uimeta/route.ts +3 -0
  38. package/cli/src/app/api/v1/(f)/uimetas/route.ts +3 -0
  39. package/cli/src/app/api/v1/(f)/user-feature/isenabled/route.ts +3 -0
  40. package/cli/src/app/api/v1/(f)/user-permission/route.ts +3 -0
  41. package/cli/src/app/api/v1/(f)/visible-workspace/route.ts +5 -0
  42. package/cli/src/app/api/v1/(f)/workspace/change/route.ts +5 -0
  43. package/cli/src/app/f/api-docs/page.tsx +15 -0
  44. package/cli/src/app/f/edit-password/page.tsx +8 -0
  45. package/cli/src/app/f/forgot-password/page.tsx +13 -0
  46. package/cli/src/app/f/reset-password/page.tsx +11 -0
  47. package/cli/src/app/layout.tsx +3 -12
  48. package/cli/tsconfig.json +2 -15
  49. package/cli/tsconfig.server.json +0 -3
  50. package/fd-toolbox/api/api-client.cjs.js +1 -1
  51. package/fd-toolbox/api/api-client.js +1 -1
  52. package/fd-toolbox/api/api-path-names.cjs.js +2 -2
  53. package/fd-toolbox/api/api-path-names.js +1 -1
  54. package/fd-toolbox/api/api-paths.cjs.js +1 -1
  55. package/fd-toolbox/api/api-paths.js +1 -1
  56. package/fd-toolbox/api/base-api.cjs.js +1 -1
  57. package/fd-toolbox/api/base-api.js +1 -1
  58. package/fd-toolbox/auth/login-states.cjs.js +1 -1
  59. package/fd-toolbox/auth/login-states.js +1 -1
  60. package/fd-toolbox/auth/session-storage.cjs.js +1 -1
  61. package/fd-toolbox/auth/session-storage.js +1 -1
  62. package/fd-toolbox/auth/tokens.cjs.js +1 -1
  63. package/fd-toolbox/auth/tokens.js +1 -1
  64. package/fd-toolbox/constants/constants.cjs.js +1 -1
  65. package/fd-toolbox/constants/constants.js +1 -1
  66. package/fd-toolbox/enums/enums.cjs.js +1 -1
  67. package/fd-toolbox/enums/enums.js +1 -1
  68. package/fd-toolbox/errors/error-handler.cjs.js +1 -1
  69. package/fd-toolbox/errors/error-handler.js +1 -1
  70. package/fd-toolbox/errors/errors.cjs.js +1 -1
  71. package/fd-toolbox/errors/errors.js +1 -1
  72. package/fd-toolbox/errors/problem-details.cjs.js +1 -1
  73. package/fd-toolbox/errors/problem-details.js +1 -1
  74. package/fd-toolbox/functions/value-checking-functions.cjs.js +1 -1
  75. package/fd-toolbox/functions/value-checking-functions.js +1 -1
  76. package/fd-toolbox/http/url/urls.cjs.js +1 -1
  77. package/fd-toolbox/http/url/urls.js +1 -1
  78. package/fd-toolbox/infra/env-config.cjs.js +2 -2
  79. package/fd-toolbox/infra/env-config.js +2 -2
  80. package/fd-toolbox/infra/env-functions.cjs.js +1 -1
  81. package/fd-toolbox/infra/env-functions.js +1 -1
  82. package/fd-toolbox/infra/env-schema.cjs.js +2 -2
  83. package/fd-toolbox/infra/env-schema.js +2 -2
  84. package/fd-toolbox/infra/env-store.cjs.js +1 -1
  85. package/fd-toolbox/infra/env-store.js +1 -1
  86. package/fd-toolbox/infra/toolbox-env-setting-keys.cjs.js +1 -1
  87. package/fd-toolbox/infra/toolbox-env-setting-keys.js +1 -1
  88. package/fd-toolbox/lib/environments.cjs.js +1 -1
  89. package/fd-toolbox/lib/environments.js +1 -1
  90. package/fd-toolbox/lib/utils.cjs.js +1 -1
  91. package/fd-toolbox/lib/utils.js +1 -1
  92. package/fd-toolbox/local-storage/local-storage.cjs.js +1 -1
  93. package/fd-toolbox/local-storage/local-storage.js +1 -1
  94. package/fd-toolbox/logging/loggers.cjs.js +1 -1
  95. package/fd-toolbox/logging/loggers.js +1 -1
  96. package/fd-toolbox/notifications.cjs.js +2 -2
  97. package/fd-toolbox/notifications.js +2 -2
  98. package/fd-toolbox/odata/odata-constants.cjs.js +1 -1
  99. package/fd-toolbox/odata/odata-constants.js +1 -1
  100. package/fd-toolbox/odata/odatas.cjs.js +1 -1
  101. package/fd-toolbox/odata/odatas.js +1 -1
  102. package/fd-toolbox/odata/services/odata-filters.cjs.js +1 -1
  103. package/fd-toolbox/odata/services/odata-filters.js +1 -1
  104. package/fd-toolbox/paths/paths-names.cjs.js +2 -2
  105. package/fd-toolbox/paths/paths-names.js +1 -1
  106. package/fd-toolbox/routing/login-routers.cjs.js +1 -1
  107. package/fd-toolbox/routing/login-routers.js +1 -1
  108. package/fd-toolbox/routing/paths.cjs.js +1 -3
  109. package/fd-toolbox/routing/paths.js +1 -3
  110. package/fd-toolbox/routing/routes.cjs.js +1 -1
  111. package/fd-toolbox/routing/routes.js +1 -1
  112. package/fd-toolbox/strings/strings-constants.cjs.js +1 -1
  113. package/fd-toolbox/strings/strings-constants.js +1 -1
  114. package/fd-toolbox/strings/strings.cjs.js +1 -1
  115. package/fd-toolbox/strings/strings.js +1 -1
  116. package/fd-toolbox/types/ensure-type.cjs.js +1 -1
  117. package/fd-toolbox/types/ensure-type.js +1 -1
  118. package/fd-toolbox-core/core/name-of.cjs.js +1 -1
  119. package/fd-toolbox-core/core/name-of.js +1 -1
  120. package/fd-toolbox-core/types/resource-with-id.cjs.js +1 -1
  121. package/fd-toolbox-core/types/resource-with-id.js +1 -1
  122. package/level2/cli/bin/index.cjs.js +1 -1
  123. package/level2/cli/bin/index.js +1 -1
  124. package/level2/cli/create/bin/create.cjs.js +4 -4
  125. package/level2/cli/create/bin/create.js +3 -3
  126. package/level2/npm-commands/build-npm/path.cjs.js +2 -1
  127. package/level2/npm-commands/build-npm/path.js +3 -3
  128. package/package.json +9 -10
@@ -4,6 +4,6 @@ import { oDataNullValue } from '../odata-constants.js';
4
4
  import { createError } from '../../errors/errors.js';
5
5
  import { oDataFilterTypes } from '../odata-enums.js';
6
6
 
7
- var __defProp=Object['defineProperty'],__name=(_0x1f181c,_0x231852)=>__defProp(_0x1f181c,'name',{'value':_0x231852,'configurable':!![]});function getODataFilterAsString(_0x4f6a61){_0x4f6a61['operator']??=oDataOperators['equal'];if(_0x4f6a61['type']===void(0x2*0x65+0x1*0x26e+-0x338)||_0x4f6a61['type']===oDataFilterTypes['default']){if(typeof _0x4f6a61['rightSide']==='number')_0x4f6a61['type']=oDataFilterTypes['number'];else {if(typeof _0x4f6a61['rightSide']==='boolean'||typeof _0x4f6a61['rightSide']==='string')_0x4f6a61['type']=oDataFilterTypes['string'];else _0x4f6a61['rightSide']instanceof Date?_0x4f6a61['type']=oDataFilterTypes['date']:_0x4f6a61['type']=oDataFilterTypes['string'];}}return typeof _0x4f6a61['rightSide']==='string'&&!isNaN(Number(_0x4f6a61['rightSide']))&&(_0x4f6a61['rightSide']=Number(_0x4f6a61['rightSide'])),getFilterString(_0x4f6a61);}__name(getODataFilterAsString,'getODataFilterAsString');function getFilterString(_0x4d02b4){switch(_0x4d02b4['operator']){case oDataOperators['in']:return handleInOperator(_0x4d02b4);case oDataOperators['nin']:return handleInOperator(_0x4d02b4);case oDataOperators['empty']:return '';case oDataOperators['startsWith']:return handleStartsWithOperator(_0x4d02b4);default:return handleDefaultOperators(_0x4d02b4);}}__name(getFilterString,'getFilterString');function handleInOperator(_0x4b06af){if(_0x4b06af['type']===oDataFilterTypes['guid']){let _0x59c654=oDataFormatGuid(_0x4b06af['rightSide']);return _0x4b06af['leftSide']+'\x20'+_0x4b06af['operator']+'\x20('+_0x59c654+')';}return _0x4b06af['leftSide']+'\x20'+_0x4b06af['operator']+'\x20('+_0x4b06af['rightSide']+')';}__name(handleInOperator,'handleInOperator');function handleStartsWithOperator(_0x4d74f7){return _0x4d74f7['operator']+'('+_0x4d74f7['leftSide']+',\x20'+_0x4d74f7['rightSide']+')';}__name(handleStartsWithOperator,'handleStartsWithOperator');function handleDefaultOperators(_0x4f50e4){switch(_0x4f50e4['type']){case oDataFilterTypes['string']:return handleStringFilter(_0x4f50e4);case oDataFilterTypes['date']:return handleDateFilter(_0x4f50e4);case oDataFilterTypes['guid']:return handleGuidFilter(_0x4f50e4);case oDataFilterTypes['number']:return handleNumberFilter(_0x4f50e4);case oDataFilterTypes['lambda']:return handleLambdaFilter(_0x4f50e4);default:throw createError('Unsupported\x20filter\x20type:\x20'+_0x4f50e4['type']);}}__name(handleDefaultOperators,'handleDefaultOperators');function handleStringFilter(_0x12539d){if(_0x12539d['rightSide']===oDataNullValue)return _0x12539d['leftSide']+'\x20'+_0x12539d['operator']+'\x20'+_0x12539d['rightSide'];if(typeof _0x12539d['rightSide']==='string')return _0x12539d['leftSide']+'\x20'+_0x12539d['operator']+'\x20\x27'+_0x12539d['rightSide']+'\x27';return _0x12539d['leftSide']+'\x20'+_0x12539d['operator']+'\x20'+_0x12539d['rightSide'];}__name(handleStringFilter,'handleStringFilter');function handleDateFilter(_0xecea84){return _0xecea84['leftSide']+'\x20'+_0xecea84['operator']+'\x20datetime\x27'+_0xecea84['rightSide']+'\x27';}__name(handleDateFilter,'handleDateFilter');function handleGuidFilter(_0x5d6d51){return _0x5d6d51['leftSide']+'\x20'+_0x5d6d51['operator']+'\x20guid\x27'+_0x5d6d51['rightSide']+'\x27';}__name(handleGuidFilter,'handleGuidFilter');function handleNumberFilter(_0x49ac91){return _0x49ac91['leftSide']+'\x20'+_0x49ac91['operator']+'\x20'+_0x49ac91['rightSide'];}__name(handleNumberFilter,'handleNumberFilter');function handleLambdaFilter(_0xfa9db7){const _0x3355bc=_0xfa9db7['lambdaConfig'];if(!_0x3355bc)throw createError('Lambda\x20configuration\x20is\x20missing');return _0x3355bc['baseEnumerablePropertyName']+'/'+_0x3355bc['method']+'(i:i/'+_0xfa9db7['leftSide']+'\x20'+_0xfa9db7['operator']+'\x20guid\x27'+_0xfa9db7['rightSide']+'\x27)';}__name(handleLambdaFilter,'handleLambdaFilter');function oDataFormatGuid(_0x5236c1){let _0x404688;if(typeof _0x5236c1==='string')_0x404688=''+_0x5236c1;else Array['isArray'](_0x5236c1)&&(_0x404688=_0x5236c1['map'](_0x1482da=>'guid\x27'+_0x1482da+'\x27')['join'](','));return _0x404688;}__name(oDataFormatGuid,'oDataFormatGuid');
7
+ var __defProp=Object['defineProperty'],__name=(_0xa694f6,_0x385d84)=>__defProp(_0xa694f6,'name',{'value':_0x385d84,'configurable':!![]});function getODataFilterAsString(_0x48e6f9){_0x48e6f9['operator']??=oDataOperators['equal'];if(_0x48e6f9['type']===void(0x109d*0x1+-0x147c+-0x3df*-0x1)||_0x48e6f9['type']===oDataFilterTypes['default']){if(typeof _0x48e6f9['rightSide']==='number')_0x48e6f9['type']=oDataFilterTypes['number'];else {if(typeof _0x48e6f9['rightSide']==='boolean'||typeof _0x48e6f9['rightSide']==='string')_0x48e6f9['type']=oDataFilterTypes['string'];else _0x48e6f9['rightSide']instanceof Date?_0x48e6f9['type']=oDataFilterTypes['date']:_0x48e6f9['type']=oDataFilterTypes['string'];}}return typeof _0x48e6f9['rightSide']==='string'&&!isNaN(Number(_0x48e6f9['rightSide']))&&(_0x48e6f9['rightSide']=Number(_0x48e6f9['rightSide'])),getFilterString(_0x48e6f9);}__name(getODataFilterAsString,'getODataFilterAsString');function getFilterString(_0x1ffba2){switch(_0x1ffba2['operator']){case oDataOperators['in']:return handleInOperator(_0x1ffba2);case oDataOperators['nin']:return handleInOperator(_0x1ffba2);case oDataOperators['empty']:return '';case oDataOperators['startsWith']:return handleStartsWithOperator(_0x1ffba2);default:return handleDefaultOperators(_0x1ffba2);}}__name(getFilterString,'getFilterString');function handleInOperator(_0x5488a0){if(_0x5488a0['type']===oDataFilterTypes['guid']){let _0x5508f3=oDataFormatGuid(_0x5488a0['rightSide']);return _0x5488a0['leftSide']+'\x20'+_0x5488a0['operator']+'\x20('+_0x5508f3+')';}return _0x5488a0['leftSide']+'\x20'+_0x5488a0['operator']+'\x20('+_0x5488a0['rightSide']+')';}__name(handleInOperator,'handleInOperator');function handleStartsWithOperator(_0xb8ec12){return _0xb8ec12['operator']+'('+_0xb8ec12['leftSide']+',\x20'+_0xb8ec12['rightSide']+')';}__name(handleStartsWithOperator,'handleStartsWithOperator');function handleDefaultOperators(_0x4b445d){switch(_0x4b445d['type']){case oDataFilterTypes['string']:return handleStringFilter(_0x4b445d);case oDataFilterTypes['date']:return handleDateFilter(_0x4b445d);case oDataFilterTypes['guid']:return handleGuidFilter(_0x4b445d);case oDataFilterTypes['number']:return handleNumberFilter(_0x4b445d);case oDataFilterTypes['lambda']:return handleLambdaFilter(_0x4b445d);default:throw createError('Unsupported\x20filter\x20type:\x20'+_0x4b445d['type']);}}__name(handleDefaultOperators,'handleDefaultOperators');function handleStringFilter(_0xe2a913){if(_0xe2a913['rightSide']===oDataNullValue)return _0xe2a913['leftSide']+'\x20'+_0xe2a913['operator']+'\x20'+_0xe2a913['rightSide'];if(typeof _0xe2a913['rightSide']==='string')return _0xe2a913['leftSide']+'\x20'+_0xe2a913['operator']+'\x20\x27'+_0xe2a913['rightSide']+'\x27';return _0xe2a913['leftSide']+'\x20'+_0xe2a913['operator']+'\x20'+_0xe2a913['rightSide'];}__name(handleStringFilter,'handleStringFilter');function handleDateFilter(_0x30a7e3){return _0x30a7e3['leftSide']+'\x20'+_0x30a7e3['operator']+'\x20datetime\x27'+_0x30a7e3['rightSide']+'\x27';}__name(handleDateFilter,'handleDateFilter');function handleGuidFilter(_0x1f8a77){return _0x1f8a77['leftSide']+'\x20'+_0x1f8a77['operator']+'\x20guid\x27'+_0x1f8a77['rightSide']+'\x27';}__name(handleGuidFilter,'handleGuidFilter');function handleNumberFilter(_0x41e914){return _0x41e914['leftSide']+'\x20'+_0x41e914['operator']+'\x20'+_0x41e914['rightSide'];}__name(handleNumberFilter,'handleNumberFilter');function handleLambdaFilter(_0x33d307){const _0x42b910=_0x33d307['lambdaConfig'];if(!_0x42b910)throw createError('Lambda\x20configuration\x20is\x20missing');return _0x42b910['baseEnumerablePropertyName']+'/'+_0x42b910['method']+'(i:i/'+_0x33d307['leftSide']+'\x20'+_0x33d307['operator']+'\x20guid\x27'+_0x33d307['rightSide']+'\x27)';}__name(handleLambdaFilter,'handleLambdaFilter');function oDataFormatGuid(_0x3cc4ee){let _0x315995;if(typeof _0x3cc4ee==='string')_0x315995=''+_0x3cc4ee;else Array['isArray'](_0x3cc4ee)&&(_0x315995=_0x3cc4ee['map'](_0x54e8c5=>'guid\x27'+_0x54e8c5+'\x27')['join'](','));return _0x315995;}__name(oDataFormatGuid,'oDataFormatGuid');
8
8
 
9
9
  export { getODataFilterAsString };
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
  'use strict';
3
3
 
4
- var _0x291acf = require('path');
4
+ var _0x2abbe5 = require('path');
5
5
 
6
- var __defProp=Object['defineProperty'],__name=(_0x10a0b4,_0xe07201)=>__defProp(_0x10a0b4,'name',{'value':_0xe07201,'configurable':!![]});function getFileNameWithExtension(_0x1432ad,_0x138c91){if(!_0x138c91['startsWith']('.'))return _0x1432ad+'.'+_0x138c91;return _0x1432ad+_0x138c91;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x504a03,_0x773688,..._0x100ff7){const _0x36ef9b=getFileNameWithExtension(_0x504a03,_0x773688);return _0x291acf.join(..._0x100ff7,_0x36ef9b);}__name(getFullFilePath,'getFullFilePath');
6
+ var __defProp=Object['defineProperty'],__name=(_0x35d194,_0x3080fe)=>__defProp(_0x35d194,'name',{'value':_0x3080fe,'configurable':!![]});function getFileNameWithExtension(_0x415189,_0x492871){if(!_0x492871['startsWith']('.'))return _0x415189+'.'+_0x492871;return _0x415189+_0x492871;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x816660,_0x41cee3,..._0x90b097){const _0x332c6e=getFileNameWithExtension(_0x816660,_0x41cee3);return _0x2abbe5.join(..._0x90b097,_0x332c6e);}__name(getFullFilePath,'getFullFilePath');
7
7
 
8
8
  exports.getFileNameWithExtension = getFileNameWithExtension;
9
9
  exports.getFullFilePath = getFullFilePath;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  import { join } from 'path';
3
3
 
4
- var __defProp=Object['defineProperty'],__name=(_0x10a0b4,_0xe07201)=>__defProp(_0x10a0b4,'name',{'value':_0xe07201,'configurable':!![]});function getFileNameWithExtension(_0x1432ad,_0x138c91){if(!_0x138c91['startsWith']('.'))return _0x1432ad+'.'+_0x138c91;return _0x1432ad+_0x138c91;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x504a03,_0x773688,..._0x100ff7){const _0x36ef9b=getFileNameWithExtension(_0x504a03,_0x773688);return join(..._0x100ff7,_0x36ef9b);}__name(getFullFilePath,'getFullFilePath');
4
+ var __defProp=Object['defineProperty'],__name=(_0x35d194,_0x3080fe)=>__defProp(_0x35d194,'name',{'value':_0x3080fe,'configurable':!![]});function getFileNameWithExtension(_0x415189,_0x492871){if(!_0x492871['startsWith']('.'))return _0x415189+'.'+_0x492871;return _0x415189+_0x492871;}__name(getFileNameWithExtension,'getFileNameWithExtension');function getFullFilePath(_0x816660,_0x41cee3,..._0x90b097){const _0x332c6e=getFileNameWithExtension(_0x816660,_0x41cee3);return join(..._0x90b097,_0x332c6e);}__name(getFullFilePath,'getFullFilePath');
5
5
 
6
6
  export { getFileNameWithExtension, getFullFilePath };
@@ -3,7 +3,7 @@
3
3
 
4
4
  var routes = require('./routes.cjs.js');
5
5
 
6
- var __defProp=Object['defineProperty'],__name=(_0x1a896b,_0xf969d1)=>__defProp(_0x1a896b,'name',{'value':_0xf969d1,'configurable':!![]});function getRelativeLoginUrl(){return '/'+routes.routes['login'];}__name(getRelativeLoginUrl,'getRelativeLoginUrl');function getLoginUrl(){return window['location']['origin']+getRelativeLoginUrl();}__name(getLoginUrl,'getLoginUrl');function goToLogin(){window['location']['href']=getRelativeLoginUrl();}__name(goToLogin,'goToLogin');
6
+ var __defProp=Object['defineProperty'],__name=(_0x1619b1,_0x5a6994)=>__defProp(_0x1619b1,'name',{'value':_0x5a6994,'configurable':!![]});function getRelativeLoginUrl(){return '/'+routes.routes['login'];}__name(getRelativeLoginUrl,'getRelativeLoginUrl');function getLoginUrl(){return window['location']['origin']+getRelativeLoginUrl();}__name(getLoginUrl,'getLoginUrl');function goToLogin(){window['location']['href']=getRelativeLoginUrl();}__name(goToLogin,'goToLogin');
7
7
 
8
8
  exports.getLoginUrl = getLoginUrl;
9
9
  exports.getRelativeLoginUrl = getRelativeLoginUrl;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  import { routes } from './routes.js';
3
3
 
4
- var __defProp=Object['defineProperty'],__name=(_0x1a896b,_0xf969d1)=>__defProp(_0x1a896b,'name',{'value':_0xf969d1,'configurable':!![]});function getRelativeLoginUrl(){return '/'+routes['login'];}__name(getRelativeLoginUrl,'getRelativeLoginUrl');function getLoginUrl(){return window['location']['origin']+getRelativeLoginUrl();}__name(getLoginUrl,'getLoginUrl');function goToLogin(){window['location']['href']=getRelativeLoginUrl();}__name(goToLogin,'goToLogin');
4
+ var __defProp=Object['defineProperty'],__name=(_0x1619b1,_0x5a6994)=>__defProp(_0x1619b1,'name',{'value':_0x5a6994,'configurable':!![]});function getRelativeLoginUrl(){return '/'+routes['login'];}__name(getRelativeLoginUrl,'getRelativeLoginUrl');function getLoginUrl(){return window['location']['origin']+getRelativeLoginUrl();}__name(getLoginUrl,'getLoginUrl');function goToLogin(){window['location']['href']=getRelativeLoginUrl();}__name(goToLogin,'goToLogin');
5
5
 
6
6
  export { getLoginUrl, getRelativeLoginUrl, goToLogin };
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
  'use strict';
3
3
 
4
- var utils = require('../lib/utils.cjs.js');
5
-
6
- var __defProp=Object['defineProperty'],__name=(_0x2a5b5d,_0x5e434f)=>__defProp(_0x2a5b5d,'name',{'value':_0x5e434f,'configurable':!![]});function addQueryParamsToPath(_0x266d61,_0x21ba71){let _0x22c8fe=_0x266d61;if(_0x21ba71&&Array['isArray'](_0x21ba71))_0x22c8fe+=convertQueryParamsArrayToString(_0x21ba71);else _0x21ba71&&utils.isPlainObject(_0x21ba71)&&(_0x22c8fe+=convertQueryParamsObjectToString(_0x21ba71));return _0x22c8fe;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0x536a8b){const _0x5890ae=_0x536a8b['map'](_0x3b0848=>_0x3b0848['name']+'='+_0x3b0848['value'])['join']('&');return _0x5890ae?'?'+_0x5890ae:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x4c67fa){const _0xb7d624=Object['entries'](_0x4c67fa)['map'](([_0x2eb220,_0x3c868e])=>_0x2eb220+'='+_0x3c868e)['join']('&');return _0xb7d624?'?'+_0xb7d624:'';}__name(convertQueryParamsObjectToString,'convertQueryParamsObjectToString');
4
+ var __defProp=Object['defineProperty'],__name=(_0xd44f17,_0x5e444d)=>__defProp(_0xd44f17,'name',{'value':_0x5e444d,'configurable':!![]});function addQueryParamsToPath(_0x33981b,_0x2040f6){let _0x2b8289=_0x33981b;if(_0x2040f6&&Array['isArray'](_0x2040f6))_0x2b8289+=convertQueryParamsArrayToString(_0x2040f6);else _0x2040f6&&!Array['isArray'](_0x2040f6)&&(_0x2b8289+=convertQueryParamsObjectToString(_0x2040f6));return _0x2b8289;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0x94e59b){const _0x26fcd7=_0x94e59b['map'](_0x5c3a37=>_0x5c3a37['name']+'='+_0x5c3a37['value'])['join']('&');return _0x26fcd7?'?'+_0x26fcd7:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x327836){const _0x4ac66d=Object['entries'](_0x327836)['map'](([_0x3b6d4b,_0x374ef9])=>_0x3b6d4b+'='+_0x374ef9)['join']('&');return _0x4ac66d?'?'+_0x4ac66d:'';}__name(convertQueryParamsObjectToString,'convertQueryParamsObjectToString');
7
5
 
8
6
  exports.addQueryParamsToPath = addQueryParamsToPath;
@@ -1,6 +1,4 @@
1
1
  'use strict';
2
- import { isPlainObject } from '../lib/utils.js';
3
-
4
- var __defProp=Object['defineProperty'],__name=(_0x2a5b5d,_0x5e434f)=>__defProp(_0x2a5b5d,'name',{'value':_0x5e434f,'configurable':!![]});function addQueryParamsToPath(_0x266d61,_0x21ba71){let _0x22c8fe=_0x266d61;if(_0x21ba71&&Array['isArray'](_0x21ba71))_0x22c8fe+=convertQueryParamsArrayToString(_0x21ba71);else _0x21ba71&&isPlainObject(_0x21ba71)&&(_0x22c8fe+=convertQueryParamsObjectToString(_0x21ba71));return _0x22c8fe;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0x536a8b){const _0x5890ae=_0x536a8b['map'](_0x3b0848=>_0x3b0848['name']+'='+_0x3b0848['value'])['join']('&');return _0x5890ae?'?'+_0x5890ae:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x4c67fa){const _0xb7d624=Object['entries'](_0x4c67fa)['map'](([_0x2eb220,_0x3c868e])=>_0x2eb220+'='+_0x3c868e)['join']('&');return _0xb7d624?'?'+_0xb7d624:'';}__name(convertQueryParamsObjectToString,'convertQueryParamsObjectToString');
2
+ var __defProp=Object['defineProperty'],__name=(_0xd44f17,_0x5e444d)=>__defProp(_0xd44f17,'name',{'value':_0x5e444d,'configurable':!![]});function addQueryParamsToPath(_0x33981b,_0x2040f6){let _0x2b8289=_0x33981b;if(_0x2040f6&&Array['isArray'](_0x2040f6))_0x2b8289+=convertQueryParamsArrayToString(_0x2040f6);else _0x2040f6&&!Array['isArray'](_0x2040f6)&&(_0x2b8289+=convertQueryParamsObjectToString(_0x2040f6));return _0x2b8289;}__name(addQueryParamsToPath,'addQueryParamsToPath');function convertQueryParamsArrayToString(_0x94e59b){const _0x26fcd7=_0x94e59b['map'](_0x5c3a37=>_0x5c3a37['name']+'='+_0x5c3a37['value'])['join']('&');return _0x26fcd7?'?'+_0x26fcd7:'';}__name(convertQueryParamsArrayToString,'convertQueryParamsArrayToString');function convertQueryParamsObjectToString(_0x327836){const _0x4ac66d=Object['entries'](_0x327836)['map'](([_0x3b6d4b,_0x374ef9])=>_0x3b6d4b+'='+_0x374ef9)['join']('&');return _0x4ac66d?'?'+_0x4ac66d:'';}__name(convertQueryParamsObjectToString,'convertQueryParamsObjectToString');
5
3
 
6
4
  export { addQueryParamsToPath };
@@ -5,7 +5,7 @@ var apiPathNames = require('../api/api-path-names.cjs.js');
5
5
  var metaQueryParams = require('../constants/meta-query-params.cjs.js');
6
6
  var urls = require('../http/url/urls.cjs.js');
7
7
 
8
- const paramPart='/:',idPart=paramPart+metaQueryParams.metaQueryParams['id'],editItem='edititem';const paramRouteName='[param]';const list='view';const edit='edit';const blobRoute='blob';const routes={'root':'/','list':list,'edit':edit,'view':'view','editItem':editItem,'editWithId':editItem+idPart,'itemReview':'itemreview','itemHints':'itemhints','login':'sign-in','logout':'sign-out','user':apiPathNames.apiPathNames['user'],'editUser':'edituser','editUserWithId':'edituser'+idPart,'editPassword':'editpassword','userList':'userlist','home':'home','team':'team','about':'about','contact':'contact','companion':'companion','videoExample':'videoexample','chartExample':'chart-example','videoRecordingReview':'videorecordingreview','videoReview':'videoreview','videoRecording':'videorecording','viewVideoRecording':'viewvideorecording','mainDashboard':'maindashboard','tableExample':'tableexample','feed':'feed','resourceDetailList':'resource-detail-list','item':'item','fileUpload':'file-upload','viewCourse':'viewcourse','forgotPassword':'forgotpassword','resetPassword':'resetpassword','tableTemplateExample':'tabletemplateexample','paymentPlans':'payment-plans','api':'api','register':'sign-up','featureCode':'featurecode','userId':'userid','otherUser':'otheruser','preload':'preload','userFeature':'user-feature','log':'log','uiMeta':'uimeta','meta':'meta','dashboard':'dashboard','productPreview':'product-preview','export':'export','hd':'hd','productPreviewSegment':'product-preview','screenshot':'screenshot','lm':'lm','leadScanWebsite':'lm/lead-scan-website','googlePlaceScanWebsite':'lm/google-place-scan-website','googlePlaceSaveToGroup':'lm/google-place/save-to-group','remoteBlob':urls.combineEndpointPath(blobRoute,'remote')};
8
+ const paramPart='/:',idPart=paramPart+metaQueryParams.metaQueryParams['id'],editItem='edititem';const paramRouteName='[param]';const list='view';const edit='edit';const blobRoute='blob';const routes={'root':'/','list':list,'edit':edit,'view':'view','editItem':editItem,'editWithId':editItem+idPart,'itemReview':'itemreview','itemHints':'itemhints','login':'sign-in','logout':'sign-out','user':apiPathNames.apiPathNames['user'],'editUser':'edituser','editUserWithId':'edituser'+idPart,'editPassword':'edit-password','userList':'userlist','home':'home','team':'team','about':'about','contact':'contact','companion':'companion','videoExample':'videoexample','chartExample':'chart-example','videoRecordingReview':'videorecordingreview','videoReview':'videoreview','videoRecording':'videorecording','viewVideoRecording':'viewvideorecording','mainDashboard':'maindashboard','tableExample':'tableexample','feed':'feed','resourceDetailList':'resource-detail-list','item':'item','fileUpload':'file-upload','viewCourse':'viewcourse','forgotPassword':'forgot-password','resetPassword':'reset-password','tableTemplateExample':'tabletemplateexample','paymentPlans':'payment-plans','api':'api','register':'sign-up','featureCode':'featurecode','userId':'userid','otherUser':'other-user','preload':'preload','userFeature':'user-feature','log':'log','uiMeta':'uimeta','meta':'meta','dashboard':'dashboard','productPreview':'product-preview','export':'export','hd':'hd','productPreviewSegment':'product-preview','screenshot':'screenshot','lm':'lm','leadScanWebsite':'lm/lead-scan-website','googlePlaceScanWebsite':'lm/google-place-scan-website','googlePlaceSaveToGroup':'lm/google-place/save-to-group','remoteBlob':urls.combineEndpointPath(blobRoute,'remote')};
9
9
 
10
10
  exports.blobRoute = blobRoute;
11
11
  exports.edit = edit;
@@ -3,6 +3,6 @@ import { apiPathNames } from '../api/api-path-names.js';
3
3
  import { metaQueryParams } from '../constants/meta-query-params.js';
4
4
  import { combineEndpointPath } from '../http/url/urls.js';
5
5
 
6
- const paramPart='/:',idPart=paramPart+metaQueryParams['id'],editItem='edititem';const paramRouteName='[param]';const list='view';const edit='edit';const blobRoute='blob';const routes={'root':'/','list':list,'edit':edit,'view':'view','editItem':editItem,'editWithId':editItem+idPart,'itemReview':'itemreview','itemHints':'itemhints','login':'sign-in','logout':'sign-out','user':apiPathNames['user'],'editUser':'edituser','editUserWithId':'edituser'+idPart,'editPassword':'editpassword','userList':'userlist','home':'home','team':'team','about':'about','contact':'contact','companion':'companion','videoExample':'videoexample','chartExample':'chart-example','videoRecordingReview':'videorecordingreview','videoReview':'videoreview','videoRecording':'videorecording','viewVideoRecording':'viewvideorecording','mainDashboard':'maindashboard','tableExample':'tableexample','feed':'feed','resourceDetailList':'resource-detail-list','item':'item','fileUpload':'file-upload','viewCourse':'viewcourse','forgotPassword':'forgotpassword','resetPassword':'resetpassword','tableTemplateExample':'tabletemplateexample','paymentPlans':'payment-plans','api':'api','register':'sign-up','featureCode':'featurecode','userId':'userid','otherUser':'otheruser','preload':'preload','userFeature':'user-feature','log':'log','uiMeta':'uimeta','meta':'meta','dashboard':'dashboard','productPreview':'product-preview','export':'export','hd':'hd','productPreviewSegment':'product-preview','screenshot':'screenshot','lm':'lm','leadScanWebsite':'lm/lead-scan-website','googlePlaceScanWebsite':'lm/google-place-scan-website','googlePlaceSaveToGroup':'lm/google-place/save-to-group','remoteBlob':combineEndpointPath(blobRoute,'remote')};
6
+ const paramPart='/:',idPart=paramPart+metaQueryParams['id'],editItem='edititem';const paramRouteName='[param]';const list='view';const edit='edit';const blobRoute='blob';const routes={'root':'/','list':list,'edit':edit,'view':'view','editItem':editItem,'editWithId':editItem+idPart,'itemReview':'itemreview','itemHints':'itemhints','login':'sign-in','logout':'sign-out','user':apiPathNames['user'],'editUser':'edituser','editUserWithId':'edituser'+idPart,'editPassword':'edit-password','userList':'userlist','home':'home','team':'team','about':'about','contact':'contact','companion':'companion','videoExample':'videoexample','chartExample':'chart-example','videoRecordingReview':'videorecordingreview','videoReview':'videoreview','videoRecording':'videorecording','viewVideoRecording':'viewvideorecording','mainDashboard':'maindashboard','tableExample':'tableexample','feed':'feed','resourceDetailList':'resource-detail-list','item':'item','fileUpload':'file-upload','viewCourse':'viewcourse','forgotPassword':'forgot-password','resetPassword':'reset-password','tableTemplateExample':'tabletemplateexample','paymentPlans':'payment-plans','api':'api','register':'sign-up','featureCode':'featurecode','userId':'userid','otherUser':'other-user','preload':'preload','userFeature':'user-feature','log':'log','uiMeta':'uimeta','meta':'meta','dashboard':'dashboard','productPreview':'product-preview','export':'export','hd':'hd','productPreviewSegment':'product-preview','screenshot':'screenshot','lm':'lm','leadScanWebsite':'lm/lead-scan-website','googlePlaceScanWebsite':'lm/google-place-scan-website','googlePlaceSaveToGroup':'lm/google-place/save-to-group','remoteBlob':combineEndpointPath(blobRoute,'remote')};
7
7
 
8
8
  export { blobRoute, edit, list, paramRouteName, routes };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
  'use strict';
3
3
 
4
- const shortTextLength=0x16*0x2b+0x3fb*-0x9+-0x151*-0x19;const ellipsis='…';
4
+ const shortTextLength=-0x19bf+0x232f+-0x8a8;const ellipsis='…';
5
5
 
6
6
  exports.ellipsis = ellipsis;
7
7
  exports.shortTextLength = shortTextLength;
@@ -1,4 +1,4 @@
1
1
  'use strict';
2
- const shortTextLength=0x16*0x2b+0x3fb*-0x9+-0x151*-0x19;const ellipsis='…';
2
+ const shortTextLength=-0x19bf+0x232f+-0x8a8;const ellipsis='…';
3
3
 
4
4
  export { ellipsis, shortTextLength };
@@ -4,7 +4,7 @@
4
4
  var stringsConstants = require('./strings-constants.cjs.js');
5
5
  var valueCheckingFunctions = require('../functions/value-checking-functions.cjs.js');
6
6
 
7
- var __defProp=Object['defineProperty'],__name=(_0x2c41f8,_0x4b3752)=>__defProp(_0x2c41f8,'name',{'value':_0x4b3752,'configurable':!![]});function shortenWithEllipsis(_0x4aa4dc,_0x2575b8=stringsConstants.shortTextLength){if(valueCheckingFunctions.isNullOrUndefined(_0x4aa4dc))return '';return _0x4aa4dc['length']<-0x17*-0x19f+-0xe32*0x1+0x13*-0x137?_0x4aa4dc['length']<=_0x2575b8?_0x4aa4dc:_0x4aa4dc['substring'](-0x1bbd+-0x168d+0x29*0x13a,_0x2575b8):_0x4aa4dc['length']<=_0x2575b8?_0x4aa4dc:_0x4aa4dc['substring'](0xb9b*0x2+0x8*-0x446+0xafa,_0x2575b8-(0xa3*-0x24+0x1c4c+-0x55f))+stringsConstants.ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x4f4e98,_0x1f3c4d){let _0x376765=_0x4f4e98;if(Array['isArray'](_0x1f3c4d))for(let _0x113fd2 of _0x1f3c4d){(_0x4f4e98['startsWith'](_0x113fd2)||_0x4f4e98['endsWith'](_0x113fd2))&&(_0x376765=trimOneCharacter(_0x4f4e98,_0x113fd2));}else _0x376765=trimOneCharacter(_0x4f4e98,_0x1f3c4d);return _0x376765;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x1792f3,_0x5aa878){let _0x4a7e60=_0x1792f3;return _0x4a7e60?.['startsWith'](_0x5aa878)&&(_0x4a7e60=_0x4a7e60['substring'](-0xe21*-0x2+0x2*0x425+-0x1*0x248b)),_0x4a7e60?.['endsWith'](_0x5aa878)&&(_0x4a7e60=_0x4a7e60['substring'](-0x301*0x9+-0x261c+0x4125,_0x4a7e60['lastIndexOf'](_0x5aa878))),_0x4a7e60;}__name(trimOneCharacter,'trimOneCharacter');
7
+ var __defProp=Object['defineProperty'],__name=(_0x128699,_0x45deab)=>__defProp(_0x128699,'name',{'value':_0x45deab,'configurable':!![]});function shortenWithEllipsis(_0x5fbc6f,_0x50865f=stringsConstants.shortTextLength){if(valueCheckingFunctions.isNullOrUndefined(_0x5fbc6f))return '';return _0x5fbc6f['length']<0x6b*-0x4e+0x7f*0x5+0x1e21?_0x5fbc6f['length']<=_0x50865f?_0x5fbc6f:_0x5fbc6f['substring'](-0x2533+0x1e*0x6f+-0x1*-0x1831,_0x50865f):_0x5fbc6f['length']<=_0x50865f?_0x5fbc6f:_0x5fbc6f['substring'](0x4d3+0x1295+-0x1768,_0x50865f-(0xa*0x11+0x5b+-0x104))+stringsConstants.ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x1b2384,_0x25d562){let _0x5d7da3=_0x1b2384;if(Array['isArray'](_0x25d562))for(let _0x396609 of _0x25d562){(_0x1b2384['startsWith'](_0x396609)||_0x1b2384['endsWith'](_0x396609))&&(_0x5d7da3=trimOneCharacter(_0x1b2384,_0x396609));}else _0x5d7da3=trimOneCharacter(_0x1b2384,_0x25d562);return _0x5d7da3;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x35c2d2,_0x5072e0){let _0x1fb069=_0x35c2d2;return _0x1fb069?.['startsWith'](_0x5072e0)&&(_0x1fb069=_0x1fb069['substring'](-0x2565+0x4d*-0x1e+0x2e6c)),_0x1fb069?.['endsWith'](_0x5072e0)&&(_0x1fb069=_0x1fb069['substring'](0x105c*0x2+0x225e+-0x4316,_0x1fb069['lastIndexOf'](_0x5072e0))),_0x1fb069;}__name(trimOneCharacter,'trimOneCharacter');
8
8
 
9
9
  exports.shortenWithEllipsis = shortenWithEllipsis;
10
10
  exports.trimCharacter = trimCharacter;
@@ -2,6 +2,6 @@
2
2
  import { shortTextLength, ellipsis } from './strings-constants.js';
3
3
  import { isNullOrUndefined } from '../functions/value-checking-functions.js';
4
4
 
5
- var __defProp=Object['defineProperty'],__name=(_0x2c41f8,_0x4b3752)=>__defProp(_0x2c41f8,'name',{'value':_0x4b3752,'configurable':!![]});function shortenWithEllipsis(_0x4aa4dc,_0x2575b8=shortTextLength){if(isNullOrUndefined(_0x4aa4dc))return '';return _0x4aa4dc['length']<-0x17*-0x19f+-0xe32*0x1+0x13*-0x137?_0x4aa4dc['length']<=_0x2575b8?_0x4aa4dc:_0x4aa4dc['substring'](-0x1bbd+-0x168d+0x29*0x13a,_0x2575b8):_0x4aa4dc['length']<=_0x2575b8?_0x4aa4dc:_0x4aa4dc['substring'](0xb9b*0x2+0x8*-0x446+0xafa,_0x2575b8-(0xa3*-0x24+0x1c4c+-0x55f))+ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x4f4e98,_0x1f3c4d){let _0x376765=_0x4f4e98;if(Array['isArray'](_0x1f3c4d))for(let _0x113fd2 of _0x1f3c4d){(_0x4f4e98['startsWith'](_0x113fd2)||_0x4f4e98['endsWith'](_0x113fd2))&&(_0x376765=trimOneCharacter(_0x4f4e98,_0x113fd2));}else _0x376765=trimOneCharacter(_0x4f4e98,_0x1f3c4d);return _0x376765;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x1792f3,_0x5aa878){let _0x4a7e60=_0x1792f3;return _0x4a7e60?.['startsWith'](_0x5aa878)&&(_0x4a7e60=_0x4a7e60['substring'](-0xe21*-0x2+0x2*0x425+-0x1*0x248b)),_0x4a7e60?.['endsWith'](_0x5aa878)&&(_0x4a7e60=_0x4a7e60['substring'](-0x301*0x9+-0x261c+0x4125,_0x4a7e60['lastIndexOf'](_0x5aa878))),_0x4a7e60;}__name(trimOneCharacter,'trimOneCharacter');
5
+ var __defProp=Object['defineProperty'],__name=(_0x128699,_0x45deab)=>__defProp(_0x128699,'name',{'value':_0x45deab,'configurable':!![]});function shortenWithEllipsis(_0x5fbc6f,_0x50865f=shortTextLength){if(isNullOrUndefined(_0x5fbc6f))return '';return _0x5fbc6f['length']<0x6b*-0x4e+0x7f*0x5+0x1e21?_0x5fbc6f['length']<=_0x50865f?_0x5fbc6f:_0x5fbc6f['substring'](-0x2533+0x1e*0x6f+-0x1*-0x1831,_0x50865f):_0x5fbc6f['length']<=_0x50865f?_0x5fbc6f:_0x5fbc6f['substring'](0x4d3+0x1295+-0x1768,_0x50865f-(0xa*0x11+0x5b+-0x104))+ellipsis;}__name(shortenWithEllipsis,'shortenWithEllipsis');function trimCharacter(_0x1b2384,_0x25d562){let _0x5d7da3=_0x1b2384;if(Array['isArray'](_0x25d562))for(let _0x396609 of _0x25d562){(_0x1b2384['startsWith'](_0x396609)||_0x1b2384['endsWith'](_0x396609))&&(_0x5d7da3=trimOneCharacter(_0x1b2384,_0x396609));}else _0x5d7da3=trimOneCharacter(_0x1b2384,_0x25d562);return _0x5d7da3;}__name(trimCharacter,'trimCharacter');function trimOneCharacter(_0x35c2d2,_0x5072e0){let _0x1fb069=_0x35c2d2;return _0x1fb069?.['startsWith'](_0x5072e0)&&(_0x1fb069=_0x1fb069['substring'](-0x2565+0x4d*-0x1e+0x2e6c)),_0x1fb069?.['endsWith'](_0x5072e0)&&(_0x1fb069=_0x1fb069['substring'](0x105c*0x2+0x225e+-0x4316,_0x1fb069['lastIndexOf'](_0x5072e0))),_0x1fb069;}__name(trimOneCharacter,'trimOneCharacter');
6
6
 
7
7
  export { shortenWithEllipsis, trimCharacter };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
  'use strict';
3
3
 
4
- var __defProp=Object['defineProperty'],__name=(_0x22d86b,_0x42609b)=>__defProp(_0x22d86b,'name',{'value':_0x42609b,'configurable':!![]});function ensureString(_0x1a22e3){return isString(_0x1a22e3)?_0x1a22e3:String(_0x1a22e3);}__name(ensureString,'ensureString');function ensureNumber(_0x5d6b68){if(isNumber(_0x5d6b68))return _0x5d6b68;else {if(isString(_0x5d6b68))return parseFloat(_0x5d6b68);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x56269c){if(Array['isArray'](_0x56269c)&&_0x56269c['length']>-0x1fbb+0xb*-0x30d+0x414a&&isObject(_0x56269c[-0x93+0x141*0x13+-0x1740])){const _0x24e2fe=[];for(const _0x1089a2 of _0x56269c){if(isObject(_0x1089a2))_0x24e2fe['push'](_0x1089a2);}return _0x24e2fe;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x32a613){let _0xbf8bc4={};return isWithIndexer(_0x32a613)&&(_0xbf8bc4=_0x32a613),_0xbf8bc4;}__name(ensureWithIndexer,'ensureWithIndexer');function ensureWithIndexerArray(_0x3321c2){if(Array['isArray'](_0x3321c2))return _0x3321c2['filter'](isWithIndexer);if(isWithIndexer(_0x3321c2))return [_0x3321c2];return [];}__name(ensureWithIndexerArray,'ensureWithIndexerArray');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x3b880b){return typeof _0x3b880b===types['object']&&_0x3b880b!==null;}__name(isObject,'isObject');function isString(_0x27daaa){return typeof _0x27daaa===types['string'];}__name(isString,'isString');function isNumber(_0x2705be){return typeof _0x2705be===types['number'];}__name(isNumber,'isNumber');function isError(_0x3fa573){return typeof _0x3fa573===types['object'];}__name(isError,'isError');function isKeyof(_0x4d46af,_0x5f5e9c){return isObject(_0x4d46af)&&_0x5f5e9c in _0x4d46af;}__name(isKeyof,'isKeyof');function isWithIndexer(_0x247f10){return isObject(_0x247f10)&&!Array['isArray'](_0x247f10);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x3327f8){return isObject(_0x3327f8)&&Array['isArray'](_0x3327f8);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x3d8798){return isObject(_0x3d8798)&&stripeConflictResponseProperties['detail']in _0x3d8798;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0x11cb76){return typeof _0x11cb76==='boolean';}__name(isBoolean,'isBoolean');function isDate(_0xbd7028){return _0xbd7028 instanceof Date;}__name(isDate,'isDate');
4
+ var __defProp=Object['defineProperty'],__name=(_0x465596,_0x4e5ec9)=>__defProp(_0x465596,'name',{'value':_0x4e5ec9,'configurable':!![]});function ensureString(_0x51310d){return isString(_0x51310d)?_0x51310d:String(_0x51310d);}__name(ensureString,'ensureString');function ensureNumber(_0x149ac3){if(isNumber(_0x149ac3))return _0x149ac3;else {if(isString(_0x149ac3))return parseFloat(_0x149ac3);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x32e968){if(Array['isArray'](_0x32e968)&&_0x32e968['length']>-0x1*-0x226c+0x169+-0x23d5&&isObject(_0x32e968[0xadd+-0x16fd+-0x8*-0x184])){const _0x2f2101=[];for(const _0x3c2c2e of _0x32e968){if(isObject(_0x3c2c2e))_0x2f2101['push'](_0x3c2c2e);}return _0x2f2101;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x13401e){let _0x3e687a={};return isWithIndexer(_0x13401e)&&(_0x3e687a=_0x13401e),_0x3e687a;}__name(ensureWithIndexer,'ensureWithIndexer');function ensureWithIndexerArray(_0x1c6286){if(Array['isArray'](_0x1c6286))return _0x1c6286['filter'](isWithIndexer);if(isWithIndexer(_0x1c6286))return [_0x1c6286];return [];}__name(ensureWithIndexerArray,'ensureWithIndexerArray');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x3fc572){return typeof _0x3fc572===types['object']&&_0x3fc572!==null;}__name(isObject,'isObject');function isString(_0x54959b){return typeof _0x54959b===types['string'];}__name(isString,'isString');function isNumber(_0x1122af){return typeof _0x1122af===types['number'];}__name(isNumber,'isNumber');function isError(_0x5b836b){return typeof _0x5b836b===types['object'];}__name(isError,'isError');function isKeyof(_0x282f1a,_0x1cc1de){return isObject(_0x282f1a)&&_0x1cc1de in _0x282f1a;}__name(isKeyof,'isKeyof');function isWithIndexer(_0x2e5141){return isObject(_0x2e5141)&&!Array['isArray'](_0x2e5141);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x25d44e){return isObject(_0x25d44e)&&Array['isArray'](_0x25d44e);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x59d8a5){return isObject(_0x59d8a5)&&stripeConflictResponseProperties['detail']in _0x59d8a5;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0xa3700d){return typeof _0xa3700d==='boolean';}__name(isBoolean,'isBoolean');function isDate(_0x2062d4){return _0x2062d4 instanceof Date;}__name(isDate,'isDate');
5
5
 
6
6
  exports.ensureNumber = ensureNumber;
7
7
  exports.ensureObjectArray = ensureObjectArray;
@@ -1,4 +1,4 @@
1
1
  'use strict';
2
- var __defProp=Object['defineProperty'],__name=(_0x22d86b,_0x42609b)=>__defProp(_0x22d86b,'name',{'value':_0x42609b,'configurable':!![]});function ensureString(_0x1a22e3){return isString(_0x1a22e3)?_0x1a22e3:String(_0x1a22e3);}__name(ensureString,'ensureString');function ensureNumber(_0x5d6b68){if(isNumber(_0x5d6b68))return _0x5d6b68;else {if(isString(_0x5d6b68))return parseFloat(_0x5d6b68);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x56269c){if(Array['isArray'](_0x56269c)&&_0x56269c['length']>-0x1fbb+0xb*-0x30d+0x414a&&isObject(_0x56269c[-0x93+0x141*0x13+-0x1740])){const _0x24e2fe=[];for(const _0x1089a2 of _0x56269c){if(isObject(_0x1089a2))_0x24e2fe['push'](_0x1089a2);}return _0x24e2fe;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x32a613){let _0xbf8bc4={};return isWithIndexer(_0x32a613)&&(_0xbf8bc4=_0x32a613),_0xbf8bc4;}__name(ensureWithIndexer,'ensureWithIndexer');function ensureWithIndexerArray(_0x3321c2){if(Array['isArray'](_0x3321c2))return _0x3321c2['filter'](isWithIndexer);if(isWithIndexer(_0x3321c2))return [_0x3321c2];return [];}__name(ensureWithIndexerArray,'ensureWithIndexerArray');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x3b880b){return typeof _0x3b880b===types['object']&&_0x3b880b!==null;}__name(isObject,'isObject');function isString(_0x27daaa){return typeof _0x27daaa===types['string'];}__name(isString,'isString');function isNumber(_0x2705be){return typeof _0x2705be===types['number'];}__name(isNumber,'isNumber');function isError(_0x3fa573){return typeof _0x3fa573===types['object'];}__name(isError,'isError');function isKeyof(_0x4d46af,_0x5f5e9c){return isObject(_0x4d46af)&&_0x5f5e9c in _0x4d46af;}__name(isKeyof,'isKeyof');function isWithIndexer(_0x247f10){return isObject(_0x247f10)&&!Array['isArray'](_0x247f10);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x3327f8){return isObject(_0x3327f8)&&Array['isArray'](_0x3327f8);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x3d8798){return isObject(_0x3d8798)&&stripeConflictResponseProperties['detail']in _0x3d8798;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0x11cb76){return typeof _0x11cb76==='boolean';}__name(isBoolean,'isBoolean');function isDate(_0xbd7028){return _0xbd7028 instanceof Date;}__name(isDate,'isDate');
2
+ var __defProp=Object['defineProperty'],__name=(_0x465596,_0x4e5ec9)=>__defProp(_0x465596,'name',{'value':_0x4e5ec9,'configurable':!![]});function ensureString(_0x51310d){return isString(_0x51310d)?_0x51310d:String(_0x51310d);}__name(ensureString,'ensureString');function ensureNumber(_0x149ac3){if(isNumber(_0x149ac3))return _0x149ac3;else {if(isString(_0x149ac3))return parseFloat(_0x149ac3);else return NaN;}}__name(ensureNumber,'ensureNumber');function ensureObjectArray(_0x32e968){if(Array['isArray'](_0x32e968)&&_0x32e968['length']>-0x1*-0x226c+0x169+-0x23d5&&isObject(_0x32e968[0xadd+-0x16fd+-0x8*-0x184])){const _0x2f2101=[];for(const _0x3c2c2e of _0x32e968){if(isObject(_0x3c2c2e))_0x2f2101['push'](_0x3c2c2e);}return _0x2f2101;}return [];}__name(ensureObjectArray,'ensureObjectArray');function ensureWithIndexer(_0x13401e){let _0x3e687a={};return isWithIndexer(_0x13401e)&&(_0x3e687a=_0x13401e),_0x3e687a;}__name(ensureWithIndexer,'ensureWithIndexer');function ensureWithIndexerArray(_0x1c6286){if(Array['isArray'](_0x1c6286))return _0x1c6286['filter'](isWithIndexer);if(isWithIndexer(_0x1c6286))return [_0x1c6286];return [];}__name(ensureWithIndexerArray,'ensureWithIndexerArray');const types={'object':'object','string':'string','number':'number'};const stripeConflictResponseProperties={'detail':'detail'};function isObject(_0x3fc572){return typeof _0x3fc572===types['object']&&_0x3fc572!==null;}__name(isObject,'isObject');function isString(_0x54959b){return typeof _0x54959b===types['string'];}__name(isString,'isString');function isNumber(_0x1122af){return typeof _0x1122af===types['number'];}__name(isNumber,'isNumber');function isError(_0x5b836b){return typeof _0x5b836b===types['object'];}__name(isError,'isError');function isKeyof(_0x282f1a,_0x1cc1de){return isObject(_0x282f1a)&&_0x1cc1de in _0x282f1a;}__name(isKeyof,'isKeyof');function isWithIndexer(_0x2e5141){return isObject(_0x2e5141)&&!Array['isArray'](_0x2e5141);}__name(isWithIndexer,'isWithIndexer');function isArray(_0x25d44e){return isObject(_0x25d44e)&&Array['isArray'](_0x25d44e);}__name(isArray,'isArray');function isErrorResponseWithDetail(_0x59d8a5){return isObject(_0x59d8a5)&&stripeConflictResponseProperties['detail']in _0x59d8a5;}__name(isErrorResponseWithDetail,'isErrorResponseWithDetail');function isBoolean(_0xa3700d){return typeof _0xa3700d==='boolean';}__name(isBoolean,'isBoolean');function isDate(_0x2062d4){return _0x2062d4 instanceof Date;}__name(isDate,'isDate');
3
3
 
4
4
  export { ensureNumber, ensureObjectArray, ensureString, ensureWithIndexer, ensureWithIndexerArray, isArray, isBoolean, isDate, isError, isErrorResponseWithDetail, isKeyof, isNumber, isObject, isString, isWithIndexer, stripeConflictResponseProperties, types };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
  'use strict';
3
3
 
4
- var __defProp=Object['defineProperty'],__name=(_0x7c4a93,_0x56261b)=>__defProp(_0x7c4a93,'name',{'value':_0x56261b,'configurable':!![]});const nameOf=__name(_0x5aebb8=>_0x5aebb8['toString'](),'nameOf');const deepNameOf=__name((_0x42994a,_0x19c909)=>_0x42994a+'.'+_0x19c909,'deepNameOf');const nameOfWithType=__name(_0x43d43d=>_0x43d43d,'nameOfWithType');
4
+ var __defProp=Object['defineProperty'],__name=(_0x10d77e,_0x238e12)=>__defProp(_0x10d77e,'name',{'value':_0x238e12,'configurable':!![]});const nameOf=__name(_0x285815=>_0x285815['toString'](),'nameOf');const deepNameOf=__name((_0xd0235f,_0xb4c364)=>_0xd0235f+'.'+_0xb4c364,'deepNameOf');const nameOfWithType=__name(_0x899ecb=>_0x899ecb,'nameOfWithType');
5
5
 
6
6
  exports.deepNameOf = deepNameOf;
7
7
  exports.nameOf = nameOf;
@@ -1,4 +1,4 @@
1
1
  'use strict';
2
- var __defProp=Object['defineProperty'],__name=(_0x7c4a93,_0x56261b)=>__defProp(_0x7c4a93,'name',{'value':_0x56261b,'configurable':!![]});const nameOf=__name(_0x5aebb8=>_0x5aebb8['toString'](),'nameOf');const deepNameOf=__name((_0x42994a,_0x19c909)=>_0x42994a+'.'+_0x19c909,'deepNameOf');const nameOfWithType=__name(_0x43d43d=>_0x43d43d,'nameOfWithType');
2
+ var __defProp=Object['defineProperty'],__name=(_0x10d77e,_0x238e12)=>__defProp(_0x10d77e,'name',{'value':_0x238e12,'configurable':!![]});const nameOf=__name(_0x285815=>_0x285815['toString'](),'nameOf');const deepNameOf=__name((_0xd0235f,_0xb4c364)=>_0xd0235f+'.'+_0xb4c364,'deepNameOf');const nameOfWithType=__name(_0x899ecb=>_0x899ecb,'nameOfWithType');
3
3
 
4
4
  export { deepNameOf, nameOf, nameOfWithType };
@@ -3,7 +3,7 @@
3
3
 
4
4
  var nameOf = require('../core/name-of.cjs.js');
5
5
 
6
- var __defProp=Object['defineProperty'],__name=(_0x347a2d,_0x542a72)=>__defProp(_0x347a2d,'name',{'value':_0x542a72,'configurable':!![]});const withIdProps={'id':nameOf.nameOf('id')};function isResourceWithId(_0x4991ed){return _0x4991ed&&typeof _0x4991ed==='object'&&typeof _0x4991ed['id']==='string';}__name(isResourceWithId,'isResourceWithId');
6
+ var __defProp=Object['defineProperty'],__name=(_0xed287,_0x432c30)=>__defProp(_0xed287,'name',{'value':_0x432c30,'configurable':!![]});const withIdProps={'id':nameOf.nameOf('id')};function isResourceWithId(_0x831b7d){return _0x831b7d&&typeof _0x831b7d==='object'&&typeof _0x831b7d['id']==='string';}__name(isResourceWithId,'isResourceWithId');
7
7
 
8
8
  exports.isResourceWithId = isResourceWithId;
9
9
  exports.withIdProps = withIdProps;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  import { nameOf } from '../core/name-of.js';
3
3
 
4
- var __defProp=Object['defineProperty'],__name=(_0x347a2d,_0x542a72)=>__defProp(_0x347a2d,'name',{'value':_0x542a72,'configurable':!![]});const withIdProps={'id':nameOf('id')};function isResourceWithId(_0x4991ed){return _0x4991ed&&typeof _0x4991ed==='object'&&typeof _0x4991ed['id']==='string';}__name(isResourceWithId,'isResourceWithId');
4
+ var __defProp=Object['defineProperty'],__name=(_0xed287,_0x432c30)=>__defProp(_0xed287,'name',{'value':_0x432c30,'configurable':!![]});const withIdProps={'id':nameOf('id')};function isResourceWithId(_0x831b7d){return _0x831b7d&&typeof _0x831b7d==='object'&&typeof _0x831b7d['id']==='string';}__name(isResourceWithId,'isResourceWithId');
5
5
 
6
6
  export { isResourceWithId, withIdProps };
@@ -5,4 +5,4 @@
5
5
  var commander = require('commander');
6
6
  var create = require('../create/bin/create.cjs.js');
7
7
 
8
- 'use strict';const program=new commander.Command();program['command']('create\x20<folder>')['option']('-r,\x20--repo','Enable\x20repo\x20mode')['description']('Create\x20a\x20new\x20SaaS\x20Kit\x20project')['action']((_0x1ff1d2,_0x1b385d)=>{const _0x327a91=[_0x1ff1d2];if(_0x1b385d['repo'])_0x327a91['push']('-r');create.create(_0x327a91);}),program['parse'](process['argv']);
8
+ 'use strict';const program=new commander.Command();program['command']('create\x20<folder>')['option']('-r,\x20--repo','Enable\x20repo\x20mode')['description']('Create\x20a\x20new\x20SaaS\x20Kit\x20project')['action']((_0x2e26b2,_0x15566b)=>{const _0x5205a5=[_0x2e26b2];if(_0x15566b['repo'])_0x5205a5['push']('-r');create.create(_0x5205a5);}),program['parse'](process['argv']);
@@ -3,4 +3,4 @@
3
3
  import { Command } from 'commander';
4
4
  import { create } from '../create/bin/create.js';
5
5
 
6
- 'use strict';const program=new Command();program['command']('create\x20<folder>')['option']('-r,\x20--repo','Enable\x20repo\x20mode')['description']('Create\x20a\x20new\x20SaaS\x20Kit\x20project')['action']((_0x1ff1d2,_0x1b385d)=>{const _0x327a91=[_0x1ff1d2];if(_0x1b385d['repo'])_0x327a91['push']('-r');create(_0x327a91);}),program['parse'](process['argv']);
6
+ 'use strict';const program=new Command();program['command']('create\x20<folder>')['option']('-r,\x20--repo','Enable\x20repo\x20mode')['description']('Create\x20a\x20new\x20SaaS\x20Kit\x20project')['action']((_0x2e26b2,_0x15566b)=>{const _0x5205a5=[_0x2e26b2];if(_0x15566b['repo'])_0x5205a5['push']('-r');create(_0x5205a5);}),program['parse'](process['argv']);
@@ -4,8 +4,8 @@
4
4
  var child_process = require('child_process');
5
5
  var fs = require('fs');
6
6
  var node_url = require('node:url');
7
- var _0x291acf = require('path');
8
- var _0x50bf40 = require('node:fs');
7
+ var _0x2abbe5 = require('path');
8
+ var _0xbe647a = require('node:fs');
9
9
  var createAppConstants = require('../../../../base-repo/constants/create-app-constants.cjs.js');
10
10
  var loggers = require('../../../../fd-toolbox/logging/loggers.cjs.js');
11
11
  var constants = require('../../../../fd-toolbox/constants/constants.cjs.js');
@@ -35,8 +35,8 @@ function _interopNamespaceDefault(e) {
35
35
  return Object.freeze(n);
36
36
  }
37
37
 
38
- var _0x291acf__namespace = /*#__PURE__*/_interopNamespaceDefault(_0x291acf);
38
+ var _0x2abbe5__namespace = /*#__PURE__*/_interopNamespaceDefault(_0x2abbe5);
39
39
 
40
- var __defProp=Object['defineProperty'],__name=(_0x14dd53,_0x5680bc)=>__defProp(_0x14dd53,'name',{'value':_0x5680bc,'configurable':!![]});const requiredNodeVersion='v20.0.0';process['version']<requiredNodeVersion&&(loggers.logStringError('Node.js\x20'+requiredNodeVersion+'+\x20is\x20required'),process['exit'](-0x2643+0x1*0x2e3+0x2361));const filename=node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('level2/cli/create/bin/create.cjs.js', document.baseURI).href))),sourceDir='../../../../',binDir=_0x291acf__namespace['dirname'](filename),repoRoot=_0x291acf__namespace['resolve'](binDir,sourceDir),envLocalPath=_0x291acf__namespace['join'](binDir,''+sourceDir+projectPaths.folders['cli']+'/'+projectPaths.files['envExample']),envTemplate=_0x50bf40['readFileSync'](envLocalPath,'utf8'),foldersToIgnore=[projectPaths.folders['cli']+'/'+projectPaths.folders['constants'],projectPaths.folders['cli']+'/'+projectPaths.files['packageTemplate'],projectPaths.folders['cli']+'/'+projectPaths.files['envExample'],projectPaths.folders['cli']+'/'+projectPaths.folders['bin'],projectPaths.folders['cli']+'/'+projectPaths.folders['configs']];function runCommand(_0x5a61f6,_0xf47c97){loggers.logInfoRaw('Executing:\x20'+_0x5a61f6);try{child_process.execSync(_0x5a61f6,{'stdio':'inherit','cwd':_0xf47c97??process['cwd']()});}catch(_0x4e7e9a){const _0x31f968=_0x4e7e9a instanceof Error?_0x4e7e9a['message']:'Unknown\x20error';loggers.logStringError('Error\x20executing:\x20'+_0x5a61f6),loggers.logStringError(_0x31f968),process['exit'](0x227*0x11+-0x1f2b*0x1+-0x49*0x13);}}__name(runCommand,'runCommand');function checkTargetFolder(_0xc4d97e){fs.existsSync(_0xc4d97e)&&(loggers.logStringError('Error:\x20Folder\x20\x22'+_0x291acf__namespace['basename'](_0xc4d97e)+'\x22\x20already\x20exists.'),process['exit'](0x2*-0x7e5+0x2*-0x891+0x20ed));}__name(checkTargetFolder,'checkTargetFolder');function getCreateNextAppVersion(){const _0x37df3b=_0x291acf__namespace['resolve'](repoRoot,projectPaths.files['packageJson']),_0x13354c=JSON['parse'](_0x50bf40['readFileSync'](_0x37df3b,'utf-8'));return String(_0x13354c['devDependencies']?.['next']??_0x13354c['dependencies']?.['next']??'latest');}__name(getCreateNextAppVersion,'getCreateNextAppVersion');function createNextProject(_0x1bb257,_0x552652){loggers.logInfoRaw('Creating\x20Next.js\x20project...');const _0x5ccd82=getCreateNextAppVersion(),_0xc2820c=['npx\x20--yes\x20create-next-app@'+_0x5ccd82+'\x20\x22'+_0x1bb257+'\x22','--typescript','--tailwind','--eslint','--app','--src-dir','--turbopack','--no-import-alias','--no-git','--react-compiler']['join']('\x20');runCommand(_0xc2820c,_0x291acf__namespace['dirname'](_0x552652)),loggers.logInfoRaw('Next.js\x20project\x20created!');const _0x27fcb3=_0x291acf__namespace['join'](_0x552652,'next.config.ts');_0x50bf40['existsSync'](_0x27fcb3)&&(_0x50bf40['rmSync'](_0x27fcb3),loggers.logInfoRaw('Removed\x20default\x20next.config.ts'));}__name(createNextProject,'createNextProject');async function createEnvFile(_0x24a070){loggers.logInfoRaw('Creating\x20'+projectPaths.files['env']+'\x20file\x20with\x20default\x20values...');const _0x20134b=_0x291acf__namespace['join'](_0x24a070,projectPaths.files['env']);try{await fs.promises['writeFile'](_0x20134b,envTemplate,'utf8'),loggers.logInfoRaw(projectPaths.files['env']+'\x20file\x20created\x20with\x20values!');}catch(_0x4c0175){const _0x10b7e5=_0x4c0175 instanceof Error?_0x4c0175['message']:'Unknown\x20error';loggers.logStringError('Error\x20creating\x20'+projectPaths.files['env']+'\x20file:'),loggers.logStringError(_0x10b7e5);throw _0x4c0175;}}__name(createEnvFile,'createEnvFile');async function overridePackageJson(_0x53051a){const _0x14e0cf=_0x291acf__namespace['join'](_0x53051a,projectPaths.files['packageJson']),_0x8282fb=_0x291acf__namespace['join'](repoRoot,projectPaths.folders['cli']+'/'+projectPaths.files['packageTemplate']);try{const _0x46836a=JSON['parse'](await fs.promises['readFile'](_0x14e0cf,'utf8')),_0x5be005=_0x46836a['name'],_0x22ceab=JSON['parse'](await fs.promises['readFile'](_0x8282fb,'utf8')),_0x50813b={..._0x22ceab,'name':_0x5be005};await fs.promises['writeFile'](_0x14e0cf,JSON['stringify'](_0x50813b,null,0x242a+-0x7ab+-0x1c7d)+'\x0a','utf8');}catch(_0x3d9983){const _0x3cd18a=_0x3d9983 instanceof Error?_0x3d9983['message']:'Unknown\x20error';loggers.logStringError('Error\x20overriding\x20'+projectPaths.files['packageJson']+':'),loggers.logStringError(_0x3cd18a);throw _0x3d9983;}}__name(overridePackageJson,'overridePackageJson');function replaceImports(_0x59d1fb){const _0x562844=/(import\s+)([^'"]+)(\s+from\s+["'])([^"']+)(["'])/g;return _0x59d1fb['replace'](_0x562844,(_0x5e644d,_0x8791fe,_0x15b69b,_0x3ff39a,_0x5abefc,_0xa48089)=>{if(!_0x5abefc['startsWith'](aliases.aliasSymbols['atSign'])||_0x5abefc['startsWith'](packages.npmPackages['saasKit']))return _0x5e644d;let _0xf4bd53;_0x5abefc['startsWith'](aliases.aliasSymbols['atSign']+projectPaths.folders['server'])||_0x5abefc['includes'](''+projectPaths.nonRootProjectPaths['server'])?_0xf4bd53=packages.npmPackages['saasKitServer']:_0xf4bd53=packages.npmPackages['saasKit'];let _0x223e67=_0x15b69b['trim']();const _0x1df423=/^type\b/['test'](_0x223e67),_0x47ee61=/^\*\s+as\s+/['test'](_0x223e67);return !_0x1df423&&!_0x47ee61&&!_0x223e67['startsWith']('{')&&(_0x223e67='{\x20'+_0x223e67+'\x20}'),''+_0x8791fe+_0x223e67+_0x3ff39a+_0xf4bd53+_0xa48089;});}__name(replaceImports,'replaceImports');async function copyProjectFiles(_0x3b3d9d){loggers.logInfoRaw('Copying\x20'+constants.projectName+'\x20files...');for(const _0x571851 of path.allFilesToCopy){const _0x16d4bb=projectPaths.folders['cli']+'/'+_0x571851,_0x4e0aa8=_0x291acf__namespace['join'](repoRoot,_0x16d4bb),_0x640a40=replaceToolsFolder(_0x571851),_0x22c6b3=_0x291acf__namespace['join'](_0x3b3d9d,_0x640a40);if(fs.existsSync(_0x4e0aa8)){const _0x1eb8f7=await fs.promises['stat'](_0x4e0aa8);_0x1eb8f7['isDirectory']()?await copyDirectoryContents(_0x4e0aa8,_0x22c6b3):await copyAndProcessFile(_0x4e0aa8,_0x22c6b3);}else loggers.logInfoRaw('Source\x20file\x20not\x20found:\x20'+_0x16d4bb);}loggers.logInfoRaw('Files\x20copied\x20and\x20imports\x20updated!');}__name(copyProjectFiles,'copyProjectFiles');function replaceToolsFolder(_0x5a1002){let _0x33a3e1=_0x5a1002;for(const [_0x25ed1e,_0x1932e4]of Object['entries'](createAppConstants.toolsFoldersToReplace)){if(_0x33a3e1['startsWith'](_0x25ed1e)&&ensureType.isWithIndexer(_0x1932e4)){const _0x49b0f5=_0x1932e4;for(const _0x519647 in _0x49b0f5){const _0x4be070=_0x49b0f5[_0x519647];ensureType.isString(_0x4be070)&&(_0x33a3e1=_0x33a3e1['replace'](_0x519647,_0x4be070));}break;}}return _0x33a3e1;}__name(replaceToolsFolder,'replaceToolsFolder');function shouldIgnorePath(_0x424cb4,_0x115dd1,_0x578f91=![]){const _0x1df599=_0x291acf__namespace['relative'](repoRoot,_0x424cb4)['replace'](/\\/g,'/'),_0x523f7a=foldersToIgnore['map'](_0x2d7ff4=>_0x2d7ff4['replace'](/\\/g,'/'));if(_0x523f7a['includes'](_0x1df599))return !![];if(_0x578f91){const _0x456015=_0x291acf__namespace['relative'](_0x115dd1,_0x424cb4)['replace'](/\\/g,'/'),_0x69533a=_0x456015['split']('/');return _0x523f7a['some'](_0x466ff5=>_0x69533a['some'](_0x12388b=>_0x12388b===_0x466ff5));}return ![];}__name(shouldIgnorePath,'shouldIgnorePath');async function copyDirectoryContents(_0x23da90,_0x1dbb75){!fs.existsSync(_0x1dbb75)&&fs.mkdirSync(_0x1dbb75,{'recursive':!![]});try{const _0x5f44a3=await fs.promises['readdir'](_0x23da90,{'withFileTypes':!![]});for(const _0x3fd5b0 of _0x5f44a3){const _0x410006=_0x291acf__namespace['join'](_0x23da90,_0x3fd5b0['name']),_0x495d5c=_0x291acf__namespace['join'](_0x1dbb75,_0x3fd5b0['name']);!shouldIgnorePath(_0x410006,_0x23da90,_0x3fd5b0['isDirectory']())&&(_0x3fd5b0['isDirectory']()?await copyDirectoryContents(_0x410006,_0x495d5c):await copyAndProcessFile(_0x410006,_0x495d5c));}}catch(_0x2784e7){const _0x54afcc=_0x2784e7 instanceof Error?_0x2784e7['message']:'Unknown\x20error';loggers.logStringError('Error\x20reading\x20directory\x20'+_0x23da90+':\x20'+_0x54afcc);throw _0x2784e7;}}__name(copyDirectoryContents,'copyDirectoryContents');async function copyAndProcessFile(_0x57542a,_0x1313ae){const _0x5c5eaf=_0x291acf__namespace['dirname'](_0x1313ae);!fs.existsSync(_0x5c5eaf)&&fs.mkdirSync(_0x5c5eaf,{'recursive':!![]});const _0x3a945c=await fs.promises['stat'](_0x57542a);if(_0x3a945c['isDirectory']())await copyDirectoryContents(_0x57542a,_0x1313ae);else {const _0x4664d0=_0x291acf__namespace['extname'](_0x57542a)['toLowerCase'](),_0x3c7b60=['.ico','.png','.jpg','.jpeg','.webp','.gif','.svg','.pdf'];if(_0x3c7b60['includes'](_0x4664d0)){await fs.promises['copyFile'](_0x57542a,_0x1313ae);return;}const _0x508e8d=await fs.promises['readFile'](_0x57542a,'utf8'),_0x18e2f1=replaceImports(_0x508e8d);await fs.promises['writeFile'](_0x1313ae,_0x18e2f1,'utf8');}}__name(copyAndProcessFile,'copyAndProcessFile');function createAdditionalFolders(_0x2b5757){for(const _0x4ba790 of createAppConstants.additionalFoldersToCreate){const _0x14252e=_0x291acf__namespace['join'](_0x2b5757,_0x4ba790);!fs.existsSync(_0x14252e)&&(fs.mkdirSync(_0x14252e,{'recursive':!![]}),loggers.logInfoRaw('Created\x20folder:\x20'+_0x4ba790));}loggers.logInfoRaw('Additional\x20folders\x20created!');}__name(createAdditionalFolders,'createAdditionalFolders');async function setupPreCommitHooks(_0xf5632){const _0xeb46e4=_0x291acf__namespace['join'](_0xf5632,projectPaths.folders['husky']),_0xa7d083=_0x291acf__namespace['join'](_0xeb46e4,projectPaths.files['preCommit']),_0x3b6071=_0x291acf__namespace['join'](_0xeb46e4,projectPaths.files['commitMsg']);fs.mkdirSync(_0xeb46e4,{'recursive':!![]}),await fs.promises['writeFile'](_0xa7d083,cliContents.cliScripts['preCommit'],'utf8'),await fs.promises['writeFile'](_0x3b6071,cliContents.cliScripts['commitMsg'],'utf8'),runCommand(cliContents.cliScripts['chmodPreCommit'],_0xf5632),runCommand(cliContents.cliScripts['chmodCommitMsg'],_0xf5632);}__name(setupPreCommitHooks,'setupPreCommitHooks');async function setupEslintConfig(_0x141137){const _0x299a04=_0x291acf__namespace['join'](_0x141137,projectPaths.files['eslintConfigMjs']);fs.existsSync(_0x299a04)&&await fs.promises['rm'](_0x299a04);const _0x1fe309=_0x291acf__namespace['join'](_0x141137,projectPaths.files['eslintConfigJs']);await fs.promises['writeFile'](_0x1fe309,cliContents.cliEslintContent,'utf8');}__name(setupEslintConfig,'setupEslintConfig');async function enableRepoModeExtras(_0x24564b){loggers.logInfoRaw('Enabling\x20recommendation\x20mode\x20(-r)...'),runCommand(cliContents.cliScripts['gitInit'],_0x24564b),runCommand(cliContents.cliScripts['installDevHuskyTsx'],_0x24564b),runCommand(cliContents.cliScripts['setLint'],_0x24564b),runCommand(cliContents.cliScripts['installHusky'],_0x24564b),await setupPreCommitHooks(_0x24564b);}__name(enableRepoModeExtras,'enableRepoModeExtras');async function updateLayoutTitle(_0x230ce6,_0x3d4d34){const _0x4f93af=_0x291acf__namespace['join'](_0x230ce6,projectPaths.projectPaths['app']+'/'+projectPaths.files['layout']);if(!fs.existsSync(_0x4f93af))throw errors.createError(projectPaths.files['layout']+'\x20not\x20found\x20at\x20'+_0x4f93af+',\x20cannot\x20update\x20title.');let _0x2f496d=await fs.promises['readFile'](_0x4f93af,'utf8');const _0x4d5865=/"SaaS Kit"/g;if(!_0x4d5865['test'](_0x2f496d))throw errors.createError('SaaS\x20Kit\x20not\x20found\x20in\x20'+projectPaths.files['layout']+',\x20cannot\x20update\x20title.');_0x2f496d=_0x2f496d['replace'](_0x4d5865,'\x22'+_0x3d4d34+'\x22'),await fs.promises['writeFile'](_0x4f93af,_0x2f496d,'utf8');}__name(updateLayoutTitle,'updateLayoutTitle');async function create(_0x3779b0){try{_0x3779b0['length']<0x255a*0x1+0x17ce+-0x3d27&&(loggers.logStringError('Error:\x20Specify\x20folder\x20name.\x20Example:\x20npx\x20create-saas-kit-app\x20<folder-name>'),process['exit'](0x17a7+-0x194d+-0x1*-0x1a7));const _0x117fa7=_0x3779b0[0x2702*-0x1+0x1393+0x136f],_0x571bae=_0x3779b0['includes']('-r'),_0x856850=_0x291acf__namespace['resolve'](process['cwd'](),_0x117fa7);loggers.logInfoRaw('\x0aCreating\x20'+constants.projectName+'\x20project\x20\x22'+_0x117fa7+'\x22...\x0a');try{checkTargetFolder(_0x856850),createNextProject(_0x117fa7,_0x856850),await copyProjectFiles(_0x856850),await overridePackageJson(_0x856850),createAdditionalFolders(_0x856850),await createEnvFile(_0x856850),await updateLayoutTitle(_0x856850,_0x117fa7),await setupEslintConfig(_0x856850),_0x571bae&&await enableRepoModeExtras(_0x856850),loggers.logInfoRaw('\x0a'+constants.projectName+'\x20project\x20\x22'+_0x117fa7+'\x22\x20is\x20ready!'),loggers.logInfoRaw('Next\x20steps:'),loggers.logInfoRaw('\x20\x20cd\x20'+_0x117fa7),loggers.logInfoRaw('\x20\x20npm\x20run\x20prod'),loggers.logInfoRaw('\x20\x20npm\x20start');}catch(_0x465a24){const _0x8e7f74=_0x465a24 instanceof Error?_0x465a24['message']:'Unknown\x20error';loggers.logStringError('Error:'),loggers.logStringError(_0x8e7f74),fs.existsSync(_0x856850)&&(loggers.logInfoRaw('Cleaning\x20up...'),fs.rmSync(_0x856850,{'recursive':!![],'force':!![]})),process['exit'](0x1*0xe2c+-0x501*0x4+-0x3*-0x1f3);}}catch(_0x2a848e){const _0x10ffc5=_0x2a848e instanceof Error?_0x2a848e['message']:'Unknown\x20error';loggers.logStringError('Unhandled\x20error:'),loggers.logStringError(_0x10ffc5),process['exit'](-0x1ca6+-0x6c8+0xc1*0x2f);}}__name(create,'create');
40
+ var __defProp=Object['defineProperty'],__name=(_0x59bd8c,_0x22c9fe)=>__defProp(_0x59bd8c,'name',{'value':_0x22c9fe,'configurable':!![]});const requiredNodeVersion='v20.0.0';process['version']<requiredNodeVersion&&(loggers.logStringError('Node.js\x20'+requiredNodeVersion+'+\x20is\x20required'),process['exit'](0x1b7*0x11+0x22bf+-0x3fe5*0x1));const filename=node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('level2/cli/create/bin/create.cjs.js', document.baseURI).href))),sourceDir='../../../../',binDir=_0x2abbe5__namespace['dirname'](filename),repoRoot=_0x2abbe5__namespace['resolve'](binDir,sourceDir),envLocalPath=_0x2abbe5__namespace['join'](binDir,sourceDir+projectPaths.folders['cli']+'/'+projectPaths.files['envExample']),envTemplate=_0xbe647a['readFileSync'](envLocalPath,'utf8'),foldersToIgnore=[projectPaths.folders['cli']+'/'+projectPaths.folders['constants'],projectPaths.folders['cli']+'/'+projectPaths.files['packageTemplate'],projectPaths.folders['cli']+'/'+projectPaths.files['envExample'],projectPaths.folders['cli']+'/'+projectPaths.folders['bin'],projectPaths.folders['cli']+'/'+projectPaths.folders['configs']];function runCommand(_0x44752e,_0x3b6e76){loggers.logInfoRaw('Executing:\x20'+_0x44752e);try{child_process.execSync(_0x44752e,{'stdio':'inherit','cwd':_0x3b6e76??process['cwd']()});}catch(_0x2b1809){const _0x4b70bf=_0x2b1809 instanceof Error?_0x2b1809['message']:'Unknown\x20error';loggers.logStringError('Error\x20executing:\x20'+_0x44752e),loggers.logStringError(_0x4b70bf),process['exit'](-0x2399+0x1e05+0x595);}}__name(runCommand,'runCommand');function checkTargetFolder(_0x4f2edc){fs.existsSync(_0x4f2edc)&&(loggers.logStringError('Error:\x20Folder\x20\x22'+_0x2abbe5__namespace['basename'](_0x4f2edc)+'\x22\x20already\x20exists.'),process['exit'](0x14b3+0xd1e*-0x2+0x58a));}__name(checkTargetFolder,'checkTargetFolder');function getCreateNextAppVersion(){const _0x34ae0f=_0x2abbe5__namespace['resolve'](repoRoot,projectPaths.files['packageJson']),_0x453ccd=JSON['parse'](_0xbe647a['readFileSync'](_0x34ae0f,'utf-8'));return String(_0x453ccd['devDependencies']?.['next']??_0x453ccd['dependencies']?.['next']??'latest');}__name(getCreateNextAppVersion,'getCreateNextAppVersion');function createNextProject(_0x2e3841,_0x585859){loggers.logInfoRaw('Creating\x20Next.js\x20project...');const _0x32639d=getCreateNextAppVersion(),_0x936ecf=['npx\x20--yes\x20create-next-app@'+_0x32639d+'\x20\x22'+_0x2e3841+'\x22','--typescript','--tailwind','--eslint','--app','--src-dir','--turbopack','--no-import-alias','--no-git','--react-compiler']['join']('\x20');runCommand(_0x936ecf,_0x2abbe5__namespace['dirname'](_0x585859)),loggers.logInfoRaw('Next.js\x20project\x20created!');const _0x4f3530=_0x2abbe5__namespace['join'](_0x585859,'next.config.ts'),_0xfc8679=_0x2abbe5__namespace['join'](_0x585859,projectPaths.folders['public']);_0xbe647a['existsSync'](_0x4f3530)&&(_0xbe647a['rmSync'](_0x4f3530),loggers.logInfoRaw('Removed\x20default\x20next.config.ts')),_0xbe647a['existsSync'](_0xfc8679)&&(_0xbe647a['rmSync'](_0xfc8679,{'recursive':!![],'force':!![]}),loggers.logInfoRaw('Removed\x20default\x20public\x20folder')),_0xbe647a['mkdirSync'](_0xfc8679);}__name(createNextProject,'createNextProject');async function createEnvFile(_0x42d5b2){loggers.logInfoRaw('Creating\x20'+projectPaths.files['env']+'\x20file\x20with\x20default\x20values...');const _0x8d3c2e=_0x2abbe5__namespace['join'](_0x42d5b2,projectPaths.files['env']);try{await fs.promises['writeFile'](_0x8d3c2e,envTemplate,'utf8'),loggers.logInfoRaw(projectPaths.files['env']+'\x20file\x20created\x20with\x20values!');}catch(_0x57ab78){const _0x43e7ff=_0x57ab78 instanceof Error?_0x57ab78['message']:'Unknown\x20error';loggers.logStringError('Error\x20creating\x20'+projectPaths.files['env']+'\x20file:'),loggers.logStringError(_0x43e7ff);throw _0x57ab78;}}__name(createEnvFile,'createEnvFile');async function overridePackageJson(_0x57ef22){const _0x417f7a=_0x2abbe5__namespace['join'](_0x57ef22,projectPaths.files['packageJson']),_0x40027f=_0x2abbe5__namespace['join'](repoRoot,projectPaths.folders['cli']+'/'+projectPaths.files['packageTemplate']);try{const _0x19ee5e=JSON['parse'](await fs.promises['readFile'](_0x417f7a,'utf8')),_0x283df0=_0x19ee5e['name'],_0x4635b8=JSON['parse'](await fs.promises['readFile'](_0x40027f,'utf8')),_0x42687c={..._0x4635b8,'name':_0x283df0};await fs.promises['writeFile'](_0x417f7a,JSON['stringify'](_0x42687c,null,-0x240b*0x1+0x1765+-0x2*-0x654)+'\x0a','utf8');}catch(_0x2e4189){const _0x21caaa=_0x2e4189 instanceof Error?_0x2e4189['message']:'Unknown\x20error';loggers.logStringError('Error\x20overriding\x20'+projectPaths.files['packageJson']+':'),loggers.logStringError(_0x21caaa);throw _0x2e4189;}}__name(overridePackageJson,'overridePackageJson');function replaceImports(_0xd3316f){const _0x3fb3bb=/(import\s+)([^'"]+)(\s+from\s+["'])([^"']+)(["'])/g;return _0xd3316f['replace'](_0x3fb3bb,(_0x2ee833,_0x406b56,_0x20384,_0x3d11da,_0x44a9dc,_0x294422)=>{if(!_0x44a9dc['startsWith'](aliases.aliasSymbols['atSign'])||_0x44a9dc['startsWith'](packages.npmPackages['saasKit']))return _0x2ee833;let _0x559a9b;_0x44a9dc['startsWith'](aliases.aliasSymbols['atSign']+projectPaths.folders['server'])||_0x44a9dc['includes'](''+projectPaths.nonRootProjectPaths['server'])?_0x559a9b=packages.npmPackages['saasKitServer']:_0x559a9b=packages.npmPackages['saasKit'];let _0x69074=_0x20384['trim']();const _0x46fa07=/^type\b/['test'](_0x69074),_0x34fc8b=/^\*\s+as\s+/['test'](_0x69074);return !_0x46fa07&&!_0x34fc8b&&!_0x69074['startsWith']('{')&&(_0x69074='{\x20'+_0x69074+'\x20}'),''+_0x406b56+_0x69074+_0x3d11da+_0x559a9b+_0x294422;});}__name(replaceImports,'replaceImports');async function copyProjectFiles(_0x254aee){loggers.logInfoRaw('Copying\x20'+constants.projectName+'\x20files...');for(const _0x6dcdc8 of path.allFilesToCopy){const _0x2d258e=_0x6dcdc8['replace'](/\[(.)\]/g,'$1'),_0x2f215b=projectPaths.folders['cli']+'/'+_0x2d258e,_0x597c07=_0x2abbe5__namespace['join'](repoRoot,_0x2f215b),_0x1bed2b=replaceToolsFolder(_0x2d258e),_0x16dcfc=_0x2abbe5__namespace['join'](_0x254aee,_0x1bed2b);if(fs.existsSync(_0x597c07)){const _0x1f8381=await fs.promises['stat'](_0x597c07);_0x1f8381['isDirectory']()?await copyDirectoryContents(_0x597c07,_0x16dcfc):await copyAndProcessFile(_0x597c07,_0x16dcfc);}else loggers.logInfoRaw('Source\x20file\x20not\x20found:\x20'+_0x2f215b);}loggers.logInfoRaw('Files\x20copied\x20and\x20imports\x20updated!');}__name(copyProjectFiles,'copyProjectFiles');function replaceToolsFolder(_0x1e4ea2){let _0x4ee4c1=_0x1e4ea2;for(const [_0x29a402,_0x371eac]of Object['entries'](createAppConstants.toolsFoldersToReplace)){if(_0x4ee4c1['startsWith'](_0x29a402)&&ensureType.isWithIndexer(_0x371eac)){const _0x16a723=_0x371eac;for(const _0x1f6a08 in _0x16a723){const _0x53276e=_0x16a723[_0x1f6a08];ensureType.isString(_0x53276e)&&(_0x4ee4c1=_0x4ee4c1['replace'](_0x1f6a08,_0x53276e));}break;}}return _0x4ee4c1;}__name(replaceToolsFolder,'replaceToolsFolder');function shouldIgnorePath(_0x536965,_0x5b2340,_0x580c36=![]){const _0x5133e2=_0x2abbe5__namespace['relative'](repoRoot,_0x536965)['replace'](/\\/g,'/'),_0x3ef87d=foldersToIgnore['map'](_0x2a73ce=>_0x2a73ce['replace'](/\\/g,'/'));if(_0x3ef87d['includes'](_0x5133e2))return !![];if(_0x580c36){const _0xf443f9=_0x2abbe5__namespace['relative'](_0x5b2340,_0x536965)['replace'](/\\/g,'/'),_0x18840e=_0xf443f9['split']('/');return _0x3ef87d['some'](_0xe63b85=>_0x18840e['some'](_0x8cb999=>_0x8cb999===_0xe63b85));}return ![];}__name(shouldIgnorePath,'shouldIgnorePath');async function copyDirectoryContents(_0x3ac55a,_0x2702ae){!fs.existsSync(_0x2702ae)&&fs.mkdirSync(_0x2702ae,{'recursive':!![]});try{const _0x4c5f0a=await fs.promises['readdir'](_0x3ac55a,{'withFileTypes':!![]});for(const _0x4a9f93 of _0x4c5f0a){const _0x328f88=_0x2abbe5__namespace['join'](_0x3ac55a,_0x4a9f93['name']),_0x4b067c=_0x2abbe5__namespace['join'](_0x2702ae,_0x4a9f93['name']);!shouldIgnorePath(_0x328f88,_0x3ac55a,_0x4a9f93['isDirectory']())&&(_0x4a9f93['isDirectory']()?await copyDirectoryContents(_0x328f88,_0x4b067c):await copyAndProcessFile(_0x328f88,_0x4b067c));}}catch(_0xf301d0){const _0x4eeba1=_0xf301d0 instanceof Error?_0xf301d0['message']:'Unknown\x20error';loggers.logStringError('Error\x20reading\x20directory\x20'+_0x3ac55a+':\x20'+_0x4eeba1);throw _0xf301d0;}}__name(copyDirectoryContents,'copyDirectoryContents');async function copyAndProcessFile(_0x3d98de,_0x5096ab){const _0xe2df57=_0x2abbe5__namespace['dirname'](_0x5096ab);!fs.existsSync(_0xe2df57)&&fs.mkdirSync(_0xe2df57,{'recursive':!![]});const _0x517036=await fs.promises['stat'](_0x3d98de);if(_0x517036['isDirectory']())await copyDirectoryContents(_0x3d98de,_0x5096ab);else {const _0x20fbed=_0x2abbe5__namespace['extname'](_0x3d98de)['toLowerCase'](),_0x41ec23=['.ico','.png','.jpg','.jpeg','.webp','.gif','.svg','.pdf'];if(_0x41ec23['includes'](_0x20fbed)){await fs.promises['copyFile'](_0x3d98de,_0x5096ab);return;}const _0x99ba03=await fs.promises['readFile'](_0x3d98de,'utf8'),_0x5b6053=replaceImports(_0x99ba03);await fs.promises['writeFile'](_0x5096ab,_0x5b6053,'utf8');}}__name(copyAndProcessFile,'copyAndProcessFile');function createAdditionalFolders(_0x537066){for(const _0x2ac6e7 of createAppConstants.additionalFoldersToCreate){const _0x520685=_0x2abbe5__namespace['join'](_0x537066,_0x2ac6e7);!fs.existsSync(_0x520685)&&(fs.mkdirSync(_0x520685,{'recursive':!![]}),loggers.logInfoRaw('Created\x20folder:\x20'+_0x2ac6e7));}loggers.logInfoRaw('Additional\x20folders\x20created!');}__name(createAdditionalFolders,'createAdditionalFolders');async function setupPreCommitHooks(_0x52365d){const _0x59b890=_0x2abbe5__namespace['join'](_0x52365d,projectPaths.folders['husky']),_0xba8aa7=_0x2abbe5__namespace['join'](_0x59b890,projectPaths.files['preCommit']),_0x5cd7cf=_0x2abbe5__namespace['join'](_0x59b890,projectPaths.files['commitMsg']);fs.mkdirSync(_0x59b890,{'recursive':!![]}),await fs.promises['writeFile'](_0xba8aa7,cliContents.cliScripts['preCommit'],'utf8'),await fs.promises['writeFile'](_0x5cd7cf,cliContents.cliScripts['commitMsg'],'utf8'),runCommand(cliContents.cliScripts['chmodPreCommit'],_0x52365d),runCommand(cliContents.cliScripts['chmodCommitMsg'],_0x52365d);}__name(setupPreCommitHooks,'setupPreCommitHooks');async function setupEslintConfig(_0x3f0f20){const _0x187864=_0x2abbe5__namespace['join'](_0x3f0f20,projectPaths.files['eslintConfigMjs']);fs.existsSync(_0x187864)&&await fs.promises['rm'](_0x187864);const _0x49c128=_0x2abbe5__namespace['join'](_0x3f0f20,projectPaths.files['eslintConfigJs']);await fs.promises['writeFile'](_0x49c128,cliContents.cliEslintContent,'utf8');}__name(setupEslintConfig,'setupEslintConfig');async function enableRepoModeExtras(_0x14b07f){loggers.logInfoRaw('Enabling\x20recommendation\x20mode\x20(-r)...'),runCommand(cliContents.cliScripts['gitInit'],_0x14b07f),runCommand(cliContents.cliScripts['installDevHuskyTsx'],_0x14b07f),runCommand(cliContents.cliScripts['setLint'],_0x14b07f),runCommand(cliContents.cliScripts['installHusky'],_0x14b07f),await setupPreCommitHooks(_0x14b07f);}__name(enableRepoModeExtras,'enableRepoModeExtras');async function updateLayoutTitle(_0x34eccd,_0x203ebb){const _0x550717=_0x2abbe5__namespace['join'](_0x34eccd,projectPaths.projectPaths['app']+'/'+projectPaths.files['layout']);if(!fs.existsSync(_0x550717))throw errors.createError(projectPaths.files['layout']+'\x20not\x20found\x20at\x20'+_0x550717+',\x20cannot\x20update\x20title.');let _0x3ef347=await fs.promises['readFile'](_0x550717,'utf8');const _0x42ad07=/"SaaS Kit"/g;if(!_0x42ad07['test'](_0x3ef347))throw errors.createError('SaaS\x20Kit\x20not\x20found\x20in\x20'+projectPaths.files['layout']+',\x20cannot\x20update\x20title.');_0x3ef347=_0x3ef347['replace'](_0x42ad07,'\x22'+_0x203ebb+'\x22'),await fs.promises['writeFile'](_0x550717,_0x3ef347,'utf8');}__name(updateLayoutTitle,'updateLayoutTitle');async function create(_0x5e9e1b){try{_0x5e9e1b['length']<-0x178c+-0x1*-0x18b+-0x9*-0x272&&(loggers.logStringError('Error:\x20Specify\x20folder\x20name.\x20Example:\x20npx\x20create-saas-kit-app\x20<folder-name>'),process['exit'](0x5*0x705+0x50e+-0x2826));const _0x5df846=_0x5e9e1b[-0xa*-0x201+0x26a4+-0x3aae],_0x2f1ae1=_0x5e9e1b['includes']('-r'),_0x33204d=_0x2abbe5__namespace['resolve'](process['cwd'](),_0x5df846);loggers.logInfoRaw('\x0aCreating\x20'+constants.projectName+'\x20project\x20\x22'+_0x5df846+'\x22...\x0a');try{checkTargetFolder(_0x33204d),createNextProject(_0x5df846,_0x33204d),await copyProjectFiles(_0x33204d),await overridePackageJson(_0x33204d),createAdditionalFolders(_0x33204d),await createEnvFile(_0x33204d),await updateLayoutTitle(_0x33204d,_0x5df846),await setupEslintConfig(_0x33204d),_0x2f1ae1&&await enableRepoModeExtras(_0x33204d),loggers.logInfoRaw('\x0a'+constants.projectName+'\x20project\x20\x22'+_0x5df846+'\x22\x20is\x20ready!'),loggers.logInfoRaw('Next\x20steps:'),loggers.logInfoRaw('\x20\x20cd\x20'+_0x5df846),loggers.logInfoRaw('\x20\x20npm\x20run\x20prod'),loggers.logInfoRaw('\x20\x20npm\x20start');}catch(_0x51921d){const _0x55c938=_0x51921d instanceof Error?_0x51921d['message']:'Unknown\x20error';loggers.logStringError('Error:'),loggers.logStringError(_0x55c938),fs.existsSync(_0x33204d)&&(loggers.logInfoRaw('Cleaning\x20up...'),fs.rmSync(_0x33204d,{'recursive':!![],'force':!![]})),process['exit'](-0x120a+-0x160e*-0x1+-0x403);}}catch(_0x14e487){const _0x407113=_0x14e487 instanceof Error?_0x14e487['message']:'Unknown\x20error';loggers.logStringError('Unhandled\x20error:'),loggers.logStringError(_0x407113),process['exit'](-0x2de+0x1*-0xfa3+-0x941*-0x2);}}__name(create,'create');
41
41
 
42
42
  exports.create = create;
@@ -2,8 +2,8 @@
2
2
  import { execSync } from 'child_process';
3
3
  import { existsSync, promises, mkdirSync, rmSync } from 'fs';
4
4
  import { fileURLToPath } from 'node:url';
5
- import * as _0x291acf from 'path';
6
- import _0x50bf40 from 'node:fs';
5
+ import * as _0x2abbe5 from 'path';
6
+ import _0xbe647a from 'node:fs';
7
7
  import { toolsFoldersToReplace, additionalFoldersToCreate } from '../../../../base-repo/constants/create-app-constants.js';
8
8
  import { logStringError, logInfoRaw } from '../../../../fd-toolbox/logging/loggers.js';
9
9
  import { projectName } from '../../../../fd-toolbox/constants/constants.js';
@@ -15,6 +15,6 @@ import { aliasSymbols } from '../../../../base-repo/app-constants/aliases.js';
15
15
  import { isWithIndexer, isString } from '../../../../fd-toolbox/types/ensure-type.js';
16
16
  import { cliScripts, cliEslintContent } from '../../../npm-commands/build-npm/cli-contents.js';
17
17
 
18
- var __defProp=Object['defineProperty'],__name=(_0x14dd53,_0x5680bc)=>__defProp(_0x14dd53,'name',{'value':_0x5680bc,'configurable':!![]});const requiredNodeVersion='v20.0.0';process['version']<requiredNodeVersion&&(logStringError('Node.js\x20'+requiredNodeVersion+'+\x20is\x20required'),process['exit'](-0x2643+0x1*0x2e3+0x2361));const filename=fileURLToPath(import.meta.url),sourceDir='../../../../',binDir=_0x291acf['dirname'](filename),repoRoot=_0x291acf['resolve'](binDir,sourceDir),envLocalPath=_0x291acf['join'](binDir,''+sourceDir+folders['cli']+'/'+files['envExample']),envTemplate=_0x50bf40['readFileSync'](envLocalPath,'utf8'),foldersToIgnore=[folders['cli']+'/'+folders['constants'],folders['cli']+'/'+files['packageTemplate'],folders['cli']+'/'+files['envExample'],folders['cli']+'/'+folders['bin'],folders['cli']+'/'+folders['configs']];function runCommand(_0x5a61f6,_0xf47c97){logInfoRaw('Executing:\x20'+_0x5a61f6);try{execSync(_0x5a61f6,{'stdio':'inherit','cwd':_0xf47c97??process['cwd']()});}catch(_0x4e7e9a){const _0x31f968=_0x4e7e9a instanceof Error?_0x4e7e9a['message']:'Unknown\x20error';logStringError('Error\x20executing:\x20'+_0x5a61f6),logStringError(_0x31f968),process['exit'](0x227*0x11+-0x1f2b*0x1+-0x49*0x13);}}__name(runCommand,'runCommand');function checkTargetFolder(_0xc4d97e){existsSync(_0xc4d97e)&&(logStringError('Error:\x20Folder\x20\x22'+_0x291acf['basename'](_0xc4d97e)+'\x22\x20already\x20exists.'),process['exit'](0x2*-0x7e5+0x2*-0x891+0x20ed));}__name(checkTargetFolder,'checkTargetFolder');function getCreateNextAppVersion(){const _0x37df3b=_0x291acf['resolve'](repoRoot,files['packageJson']),_0x13354c=JSON['parse'](_0x50bf40['readFileSync'](_0x37df3b,'utf-8'));return String(_0x13354c['devDependencies']?.['next']??_0x13354c['dependencies']?.['next']??'latest');}__name(getCreateNextAppVersion,'getCreateNextAppVersion');function createNextProject(_0x1bb257,_0x552652){logInfoRaw('Creating\x20Next.js\x20project...');const _0x5ccd82=getCreateNextAppVersion(),_0xc2820c=['npx\x20--yes\x20create-next-app@'+_0x5ccd82+'\x20\x22'+_0x1bb257+'\x22','--typescript','--tailwind','--eslint','--app','--src-dir','--turbopack','--no-import-alias','--no-git','--react-compiler']['join']('\x20');runCommand(_0xc2820c,_0x291acf['dirname'](_0x552652)),logInfoRaw('Next.js\x20project\x20created!');const _0x27fcb3=_0x291acf['join'](_0x552652,'next.config.ts');_0x50bf40['existsSync'](_0x27fcb3)&&(_0x50bf40['rmSync'](_0x27fcb3),logInfoRaw('Removed\x20default\x20next.config.ts'));}__name(createNextProject,'createNextProject');async function createEnvFile(_0x24a070){logInfoRaw('Creating\x20'+files['env']+'\x20file\x20with\x20default\x20values...');const _0x20134b=_0x291acf['join'](_0x24a070,files['env']);try{await promises['writeFile'](_0x20134b,envTemplate,'utf8'),logInfoRaw(files['env']+'\x20file\x20created\x20with\x20values!');}catch(_0x4c0175){const _0x10b7e5=_0x4c0175 instanceof Error?_0x4c0175['message']:'Unknown\x20error';logStringError('Error\x20creating\x20'+files['env']+'\x20file:'),logStringError(_0x10b7e5);throw _0x4c0175;}}__name(createEnvFile,'createEnvFile');async function overridePackageJson(_0x53051a){const _0x14e0cf=_0x291acf['join'](_0x53051a,files['packageJson']),_0x8282fb=_0x291acf['join'](repoRoot,folders['cli']+'/'+files['packageTemplate']);try{const _0x46836a=JSON['parse'](await promises['readFile'](_0x14e0cf,'utf8')),_0x5be005=_0x46836a['name'],_0x22ceab=JSON['parse'](await promises['readFile'](_0x8282fb,'utf8')),_0x50813b={..._0x22ceab,'name':_0x5be005};await promises['writeFile'](_0x14e0cf,JSON['stringify'](_0x50813b,null,0x242a+-0x7ab+-0x1c7d)+'\x0a','utf8');}catch(_0x3d9983){const _0x3cd18a=_0x3d9983 instanceof Error?_0x3d9983['message']:'Unknown\x20error';logStringError('Error\x20overriding\x20'+files['packageJson']+':'),logStringError(_0x3cd18a);throw _0x3d9983;}}__name(overridePackageJson,'overridePackageJson');function replaceImports(_0x59d1fb){const _0x562844=/(import\s+)([^'"]+)(\s+from\s+["'])([^"']+)(["'])/g;return _0x59d1fb['replace'](_0x562844,(_0x5e644d,_0x8791fe,_0x15b69b,_0x3ff39a,_0x5abefc,_0xa48089)=>{if(!_0x5abefc['startsWith'](aliasSymbols['atSign'])||_0x5abefc['startsWith'](npmPackages['saasKit']))return _0x5e644d;let _0xf4bd53;_0x5abefc['startsWith'](aliasSymbols['atSign']+folders['server'])||_0x5abefc['includes'](''+nonRootProjectPaths['server'])?_0xf4bd53=npmPackages['saasKitServer']:_0xf4bd53=npmPackages['saasKit'];let _0x223e67=_0x15b69b['trim']();const _0x1df423=/^type\b/['test'](_0x223e67),_0x47ee61=/^\*\s+as\s+/['test'](_0x223e67);return !_0x1df423&&!_0x47ee61&&!_0x223e67['startsWith']('{')&&(_0x223e67='{\x20'+_0x223e67+'\x20}'),''+_0x8791fe+_0x223e67+_0x3ff39a+_0xf4bd53+_0xa48089;});}__name(replaceImports,'replaceImports');async function copyProjectFiles(_0x3b3d9d){logInfoRaw('Copying\x20'+projectName+'\x20files...');for(const _0x571851 of allFilesToCopy){const _0x16d4bb=folders['cli']+'/'+_0x571851,_0x4e0aa8=_0x291acf['join'](repoRoot,_0x16d4bb),_0x640a40=replaceToolsFolder(_0x571851),_0x22c6b3=_0x291acf['join'](_0x3b3d9d,_0x640a40);if(existsSync(_0x4e0aa8)){const _0x1eb8f7=await promises['stat'](_0x4e0aa8);_0x1eb8f7['isDirectory']()?await copyDirectoryContents(_0x4e0aa8,_0x22c6b3):await copyAndProcessFile(_0x4e0aa8,_0x22c6b3);}else logInfoRaw('Source\x20file\x20not\x20found:\x20'+_0x16d4bb);}logInfoRaw('Files\x20copied\x20and\x20imports\x20updated!');}__name(copyProjectFiles,'copyProjectFiles');function replaceToolsFolder(_0x5a1002){let _0x33a3e1=_0x5a1002;for(const [_0x25ed1e,_0x1932e4]of Object['entries'](toolsFoldersToReplace)){if(_0x33a3e1['startsWith'](_0x25ed1e)&&isWithIndexer(_0x1932e4)){const _0x49b0f5=_0x1932e4;for(const _0x519647 in _0x49b0f5){const _0x4be070=_0x49b0f5[_0x519647];isString(_0x4be070)&&(_0x33a3e1=_0x33a3e1['replace'](_0x519647,_0x4be070));}break;}}return _0x33a3e1;}__name(replaceToolsFolder,'replaceToolsFolder');function shouldIgnorePath(_0x424cb4,_0x115dd1,_0x578f91=![]){const _0x1df599=_0x291acf['relative'](repoRoot,_0x424cb4)['replace'](/\\/g,'/'),_0x523f7a=foldersToIgnore['map'](_0x2d7ff4=>_0x2d7ff4['replace'](/\\/g,'/'));if(_0x523f7a['includes'](_0x1df599))return !![];if(_0x578f91){const _0x456015=_0x291acf['relative'](_0x115dd1,_0x424cb4)['replace'](/\\/g,'/'),_0x69533a=_0x456015['split']('/');return _0x523f7a['some'](_0x466ff5=>_0x69533a['some'](_0x12388b=>_0x12388b===_0x466ff5));}return ![];}__name(shouldIgnorePath,'shouldIgnorePath');async function copyDirectoryContents(_0x23da90,_0x1dbb75){!existsSync(_0x1dbb75)&&mkdirSync(_0x1dbb75,{'recursive':!![]});try{const _0x5f44a3=await promises['readdir'](_0x23da90,{'withFileTypes':!![]});for(const _0x3fd5b0 of _0x5f44a3){const _0x410006=_0x291acf['join'](_0x23da90,_0x3fd5b0['name']),_0x495d5c=_0x291acf['join'](_0x1dbb75,_0x3fd5b0['name']);!shouldIgnorePath(_0x410006,_0x23da90,_0x3fd5b0['isDirectory']())&&(_0x3fd5b0['isDirectory']()?await copyDirectoryContents(_0x410006,_0x495d5c):await copyAndProcessFile(_0x410006,_0x495d5c));}}catch(_0x2784e7){const _0x54afcc=_0x2784e7 instanceof Error?_0x2784e7['message']:'Unknown\x20error';logStringError('Error\x20reading\x20directory\x20'+_0x23da90+':\x20'+_0x54afcc);throw _0x2784e7;}}__name(copyDirectoryContents,'copyDirectoryContents');async function copyAndProcessFile(_0x57542a,_0x1313ae){const _0x5c5eaf=_0x291acf['dirname'](_0x1313ae);!existsSync(_0x5c5eaf)&&mkdirSync(_0x5c5eaf,{'recursive':!![]});const _0x3a945c=await promises['stat'](_0x57542a);if(_0x3a945c['isDirectory']())await copyDirectoryContents(_0x57542a,_0x1313ae);else {const _0x4664d0=_0x291acf['extname'](_0x57542a)['toLowerCase'](),_0x3c7b60=['.ico','.png','.jpg','.jpeg','.webp','.gif','.svg','.pdf'];if(_0x3c7b60['includes'](_0x4664d0)){await promises['copyFile'](_0x57542a,_0x1313ae);return;}const _0x508e8d=await promises['readFile'](_0x57542a,'utf8'),_0x18e2f1=replaceImports(_0x508e8d);await promises['writeFile'](_0x1313ae,_0x18e2f1,'utf8');}}__name(copyAndProcessFile,'copyAndProcessFile');function createAdditionalFolders(_0x2b5757){for(const _0x4ba790 of additionalFoldersToCreate){const _0x14252e=_0x291acf['join'](_0x2b5757,_0x4ba790);!existsSync(_0x14252e)&&(mkdirSync(_0x14252e,{'recursive':!![]}),logInfoRaw('Created\x20folder:\x20'+_0x4ba790));}logInfoRaw('Additional\x20folders\x20created!');}__name(createAdditionalFolders,'createAdditionalFolders');async function setupPreCommitHooks(_0xf5632){const _0xeb46e4=_0x291acf['join'](_0xf5632,folders['husky']),_0xa7d083=_0x291acf['join'](_0xeb46e4,files['preCommit']),_0x3b6071=_0x291acf['join'](_0xeb46e4,files['commitMsg']);mkdirSync(_0xeb46e4,{'recursive':!![]}),await promises['writeFile'](_0xa7d083,cliScripts['preCommit'],'utf8'),await promises['writeFile'](_0x3b6071,cliScripts['commitMsg'],'utf8'),runCommand(cliScripts['chmodPreCommit'],_0xf5632),runCommand(cliScripts['chmodCommitMsg'],_0xf5632);}__name(setupPreCommitHooks,'setupPreCommitHooks');async function setupEslintConfig(_0x141137){const _0x299a04=_0x291acf['join'](_0x141137,files['eslintConfigMjs']);existsSync(_0x299a04)&&await promises['rm'](_0x299a04);const _0x1fe309=_0x291acf['join'](_0x141137,files['eslintConfigJs']);await promises['writeFile'](_0x1fe309,cliEslintContent,'utf8');}__name(setupEslintConfig,'setupEslintConfig');async function enableRepoModeExtras(_0x24564b){logInfoRaw('Enabling\x20recommendation\x20mode\x20(-r)...'),runCommand(cliScripts['gitInit'],_0x24564b),runCommand(cliScripts['installDevHuskyTsx'],_0x24564b),runCommand(cliScripts['setLint'],_0x24564b),runCommand(cliScripts['installHusky'],_0x24564b),await setupPreCommitHooks(_0x24564b);}__name(enableRepoModeExtras,'enableRepoModeExtras');async function updateLayoutTitle(_0x230ce6,_0x3d4d34){const _0x4f93af=_0x291acf['join'](_0x230ce6,projectPaths['app']+'/'+files['layout']);if(!existsSync(_0x4f93af))throw createError(files['layout']+'\x20not\x20found\x20at\x20'+_0x4f93af+',\x20cannot\x20update\x20title.');let _0x2f496d=await promises['readFile'](_0x4f93af,'utf8');const _0x4d5865=/"SaaS Kit"/g;if(!_0x4d5865['test'](_0x2f496d))throw createError('SaaS\x20Kit\x20not\x20found\x20in\x20'+files['layout']+',\x20cannot\x20update\x20title.');_0x2f496d=_0x2f496d['replace'](_0x4d5865,'\x22'+_0x3d4d34+'\x22'),await promises['writeFile'](_0x4f93af,_0x2f496d,'utf8');}__name(updateLayoutTitle,'updateLayoutTitle');async function create(_0x3779b0){try{_0x3779b0['length']<0x255a*0x1+0x17ce+-0x3d27&&(logStringError('Error:\x20Specify\x20folder\x20name.\x20Example:\x20npx\x20create-saas-kit-app\x20<folder-name>'),process['exit'](0x17a7+-0x194d+-0x1*-0x1a7));const _0x117fa7=_0x3779b0[0x2702*-0x1+0x1393+0x136f],_0x571bae=_0x3779b0['includes']('-r'),_0x856850=_0x291acf['resolve'](process['cwd'](),_0x117fa7);logInfoRaw('\x0aCreating\x20'+projectName+'\x20project\x20\x22'+_0x117fa7+'\x22...\x0a');try{checkTargetFolder(_0x856850),createNextProject(_0x117fa7,_0x856850),await copyProjectFiles(_0x856850),await overridePackageJson(_0x856850),createAdditionalFolders(_0x856850),await createEnvFile(_0x856850),await updateLayoutTitle(_0x856850,_0x117fa7),await setupEslintConfig(_0x856850),_0x571bae&&await enableRepoModeExtras(_0x856850),logInfoRaw('\x0a'+projectName+'\x20project\x20\x22'+_0x117fa7+'\x22\x20is\x20ready!'),logInfoRaw('Next\x20steps:'),logInfoRaw('\x20\x20cd\x20'+_0x117fa7),logInfoRaw('\x20\x20npm\x20run\x20prod'),logInfoRaw('\x20\x20npm\x20start');}catch(_0x465a24){const _0x8e7f74=_0x465a24 instanceof Error?_0x465a24['message']:'Unknown\x20error';logStringError('Error:'),logStringError(_0x8e7f74),existsSync(_0x856850)&&(logInfoRaw('Cleaning\x20up...'),rmSync(_0x856850,{'recursive':!![],'force':!![]})),process['exit'](0x1*0xe2c+-0x501*0x4+-0x3*-0x1f3);}}catch(_0x2a848e){const _0x10ffc5=_0x2a848e instanceof Error?_0x2a848e['message']:'Unknown\x20error';logStringError('Unhandled\x20error:'),logStringError(_0x10ffc5),process['exit'](-0x1ca6+-0x6c8+0xc1*0x2f);}}__name(create,'create');
18
+ var __defProp=Object['defineProperty'],__name=(_0x59bd8c,_0x22c9fe)=>__defProp(_0x59bd8c,'name',{'value':_0x22c9fe,'configurable':!![]});const requiredNodeVersion='v20.0.0';process['version']<requiredNodeVersion&&(logStringError('Node.js\x20'+requiredNodeVersion+'+\x20is\x20required'),process['exit'](0x1b7*0x11+0x22bf+-0x3fe5*0x1));const filename=fileURLToPath(import.meta.url),sourceDir='../../../../',binDir=_0x2abbe5['dirname'](filename),repoRoot=_0x2abbe5['resolve'](binDir,sourceDir),envLocalPath=_0x2abbe5['join'](binDir,sourceDir+folders['cli']+'/'+files['envExample']),envTemplate=_0xbe647a['readFileSync'](envLocalPath,'utf8'),foldersToIgnore=[folders['cli']+'/'+folders['constants'],folders['cli']+'/'+files['packageTemplate'],folders['cli']+'/'+files['envExample'],folders['cli']+'/'+folders['bin'],folders['cli']+'/'+folders['configs']];function runCommand(_0x44752e,_0x3b6e76){logInfoRaw('Executing:\x20'+_0x44752e);try{execSync(_0x44752e,{'stdio':'inherit','cwd':_0x3b6e76??process['cwd']()});}catch(_0x2b1809){const _0x4b70bf=_0x2b1809 instanceof Error?_0x2b1809['message']:'Unknown\x20error';logStringError('Error\x20executing:\x20'+_0x44752e),logStringError(_0x4b70bf),process['exit'](-0x2399+0x1e05+0x595);}}__name(runCommand,'runCommand');function checkTargetFolder(_0x4f2edc){existsSync(_0x4f2edc)&&(logStringError('Error:\x20Folder\x20\x22'+_0x2abbe5['basename'](_0x4f2edc)+'\x22\x20already\x20exists.'),process['exit'](0x14b3+0xd1e*-0x2+0x58a));}__name(checkTargetFolder,'checkTargetFolder');function getCreateNextAppVersion(){const _0x34ae0f=_0x2abbe5['resolve'](repoRoot,files['packageJson']),_0x453ccd=JSON['parse'](_0xbe647a['readFileSync'](_0x34ae0f,'utf-8'));return String(_0x453ccd['devDependencies']?.['next']??_0x453ccd['dependencies']?.['next']??'latest');}__name(getCreateNextAppVersion,'getCreateNextAppVersion');function createNextProject(_0x2e3841,_0x585859){logInfoRaw('Creating\x20Next.js\x20project...');const _0x32639d=getCreateNextAppVersion(),_0x936ecf=['npx\x20--yes\x20create-next-app@'+_0x32639d+'\x20\x22'+_0x2e3841+'\x22','--typescript','--tailwind','--eslint','--app','--src-dir','--turbopack','--no-import-alias','--no-git','--react-compiler']['join']('\x20');runCommand(_0x936ecf,_0x2abbe5['dirname'](_0x585859)),logInfoRaw('Next.js\x20project\x20created!');const _0x4f3530=_0x2abbe5['join'](_0x585859,'next.config.ts'),_0xfc8679=_0x2abbe5['join'](_0x585859,folders['public']);_0xbe647a['existsSync'](_0x4f3530)&&(_0xbe647a['rmSync'](_0x4f3530),logInfoRaw('Removed\x20default\x20next.config.ts')),_0xbe647a['existsSync'](_0xfc8679)&&(_0xbe647a['rmSync'](_0xfc8679,{'recursive':!![],'force':!![]}),logInfoRaw('Removed\x20default\x20public\x20folder')),_0xbe647a['mkdirSync'](_0xfc8679);}__name(createNextProject,'createNextProject');async function createEnvFile(_0x42d5b2){logInfoRaw('Creating\x20'+files['env']+'\x20file\x20with\x20default\x20values...');const _0x8d3c2e=_0x2abbe5['join'](_0x42d5b2,files['env']);try{await promises['writeFile'](_0x8d3c2e,envTemplate,'utf8'),logInfoRaw(files['env']+'\x20file\x20created\x20with\x20values!');}catch(_0x57ab78){const _0x43e7ff=_0x57ab78 instanceof Error?_0x57ab78['message']:'Unknown\x20error';logStringError('Error\x20creating\x20'+files['env']+'\x20file:'),logStringError(_0x43e7ff);throw _0x57ab78;}}__name(createEnvFile,'createEnvFile');async function overridePackageJson(_0x57ef22){const _0x417f7a=_0x2abbe5['join'](_0x57ef22,files['packageJson']),_0x40027f=_0x2abbe5['join'](repoRoot,folders['cli']+'/'+files['packageTemplate']);try{const _0x19ee5e=JSON['parse'](await promises['readFile'](_0x417f7a,'utf8')),_0x283df0=_0x19ee5e['name'],_0x4635b8=JSON['parse'](await promises['readFile'](_0x40027f,'utf8')),_0x42687c={..._0x4635b8,'name':_0x283df0};await promises['writeFile'](_0x417f7a,JSON['stringify'](_0x42687c,null,-0x240b*0x1+0x1765+-0x2*-0x654)+'\x0a','utf8');}catch(_0x2e4189){const _0x21caaa=_0x2e4189 instanceof Error?_0x2e4189['message']:'Unknown\x20error';logStringError('Error\x20overriding\x20'+files['packageJson']+':'),logStringError(_0x21caaa);throw _0x2e4189;}}__name(overridePackageJson,'overridePackageJson');function replaceImports(_0xd3316f){const _0x3fb3bb=/(import\s+)([^'"]+)(\s+from\s+["'])([^"']+)(["'])/g;return _0xd3316f['replace'](_0x3fb3bb,(_0x2ee833,_0x406b56,_0x20384,_0x3d11da,_0x44a9dc,_0x294422)=>{if(!_0x44a9dc['startsWith'](aliasSymbols['atSign'])||_0x44a9dc['startsWith'](npmPackages['saasKit']))return _0x2ee833;let _0x559a9b;_0x44a9dc['startsWith'](aliasSymbols['atSign']+folders['server'])||_0x44a9dc['includes'](''+nonRootProjectPaths['server'])?_0x559a9b=npmPackages['saasKitServer']:_0x559a9b=npmPackages['saasKit'];let _0x69074=_0x20384['trim']();const _0x46fa07=/^type\b/['test'](_0x69074),_0x34fc8b=/^\*\s+as\s+/['test'](_0x69074);return !_0x46fa07&&!_0x34fc8b&&!_0x69074['startsWith']('{')&&(_0x69074='{\x20'+_0x69074+'\x20}'),''+_0x406b56+_0x69074+_0x3d11da+_0x559a9b+_0x294422;});}__name(replaceImports,'replaceImports');async function copyProjectFiles(_0x254aee){logInfoRaw('Copying\x20'+projectName+'\x20files...');for(const _0x6dcdc8 of allFilesToCopy){const _0x2d258e=_0x6dcdc8['replace'](/\[(.)\]/g,'$1'),_0x2f215b=folders['cli']+'/'+_0x2d258e,_0x597c07=_0x2abbe5['join'](repoRoot,_0x2f215b),_0x1bed2b=replaceToolsFolder(_0x2d258e),_0x16dcfc=_0x2abbe5['join'](_0x254aee,_0x1bed2b);if(existsSync(_0x597c07)){const _0x1f8381=await promises['stat'](_0x597c07);_0x1f8381['isDirectory']()?await copyDirectoryContents(_0x597c07,_0x16dcfc):await copyAndProcessFile(_0x597c07,_0x16dcfc);}else logInfoRaw('Source\x20file\x20not\x20found:\x20'+_0x2f215b);}logInfoRaw('Files\x20copied\x20and\x20imports\x20updated!');}__name(copyProjectFiles,'copyProjectFiles');function replaceToolsFolder(_0x1e4ea2){let _0x4ee4c1=_0x1e4ea2;for(const [_0x29a402,_0x371eac]of Object['entries'](toolsFoldersToReplace)){if(_0x4ee4c1['startsWith'](_0x29a402)&&isWithIndexer(_0x371eac)){const _0x16a723=_0x371eac;for(const _0x1f6a08 in _0x16a723){const _0x53276e=_0x16a723[_0x1f6a08];isString(_0x53276e)&&(_0x4ee4c1=_0x4ee4c1['replace'](_0x1f6a08,_0x53276e));}break;}}return _0x4ee4c1;}__name(replaceToolsFolder,'replaceToolsFolder');function shouldIgnorePath(_0x536965,_0x5b2340,_0x580c36=![]){const _0x5133e2=_0x2abbe5['relative'](repoRoot,_0x536965)['replace'](/\\/g,'/'),_0x3ef87d=foldersToIgnore['map'](_0x2a73ce=>_0x2a73ce['replace'](/\\/g,'/'));if(_0x3ef87d['includes'](_0x5133e2))return !![];if(_0x580c36){const _0xf443f9=_0x2abbe5['relative'](_0x5b2340,_0x536965)['replace'](/\\/g,'/'),_0x18840e=_0xf443f9['split']('/');return _0x3ef87d['some'](_0xe63b85=>_0x18840e['some'](_0x8cb999=>_0x8cb999===_0xe63b85));}return ![];}__name(shouldIgnorePath,'shouldIgnorePath');async function copyDirectoryContents(_0x3ac55a,_0x2702ae){!existsSync(_0x2702ae)&&mkdirSync(_0x2702ae,{'recursive':!![]});try{const _0x4c5f0a=await promises['readdir'](_0x3ac55a,{'withFileTypes':!![]});for(const _0x4a9f93 of _0x4c5f0a){const _0x328f88=_0x2abbe5['join'](_0x3ac55a,_0x4a9f93['name']),_0x4b067c=_0x2abbe5['join'](_0x2702ae,_0x4a9f93['name']);!shouldIgnorePath(_0x328f88,_0x3ac55a,_0x4a9f93['isDirectory']())&&(_0x4a9f93['isDirectory']()?await copyDirectoryContents(_0x328f88,_0x4b067c):await copyAndProcessFile(_0x328f88,_0x4b067c));}}catch(_0xf301d0){const _0x4eeba1=_0xf301d0 instanceof Error?_0xf301d0['message']:'Unknown\x20error';logStringError('Error\x20reading\x20directory\x20'+_0x3ac55a+':\x20'+_0x4eeba1);throw _0xf301d0;}}__name(copyDirectoryContents,'copyDirectoryContents');async function copyAndProcessFile(_0x3d98de,_0x5096ab){const _0xe2df57=_0x2abbe5['dirname'](_0x5096ab);!existsSync(_0xe2df57)&&mkdirSync(_0xe2df57,{'recursive':!![]});const _0x517036=await promises['stat'](_0x3d98de);if(_0x517036['isDirectory']())await copyDirectoryContents(_0x3d98de,_0x5096ab);else {const _0x20fbed=_0x2abbe5['extname'](_0x3d98de)['toLowerCase'](),_0x41ec23=['.ico','.png','.jpg','.jpeg','.webp','.gif','.svg','.pdf'];if(_0x41ec23['includes'](_0x20fbed)){await promises['copyFile'](_0x3d98de,_0x5096ab);return;}const _0x99ba03=await promises['readFile'](_0x3d98de,'utf8'),_0x5b6053=replaceImports(_0x99ba03);await promises['writeFile'](_0x5096ab,_0x5b6053,'utf8');}}__name(copyAndProcessFile,'copyAndProcessFile');function createAdditionalFolders(_0x537066){for(const _0x2ac6e7 of additionalFoldersToCreate){const _0x520685=_0x2abbe5['join'](_0x537066,_0x2ac6e7);!existsSync(_0x520685)&&(mkdirSync(_0x520685,{'recursive':!![]}),logInfoRaw('Created\x20folder:\x20'+_0x2ac6e7));}logInfoRaw('Additional\x20folders\x20created!');}__name(createAdditionalFolders,'createAdditionalFolders');async function setupPreCommitHooks(_0x52365d){const _0x59b890=_0x2abbe5['join'](_0x52365d,folders['husky']),_0xba8aa7=_0x2abbe5['join'](_0x59b890,files['preCommit']),_0x5cd7cf=_0x2abbe5['join'](_0x59b890,files['commitMsg']);mkdirSync(_0x59b890,{'recursive':!![]}),await promises['writeFile'](_0xba8aa7,cliScripts['preCommit'],'utf8'),await promises['writeFile'](_0x5cd7cf,cliScripts['commitMsg'],'utf8'),runCommand(cliScripts['chmodPreCommit'],_0x52365d),runCommand(cliScripts['chmodCommitMsg'],_0x52365d);}__name(setupPreCommitHooks,'setupPreCommitHooks');async function setupEslintConfig(_0x3f0f20){const _0x187864=_0x2abbe5['join'](_0x3f0f20,files['eslintConfigMjs']);existsSync(_0x187864)&&await promises['rm'](_0x187864);const _0x49c128=_0x2abbe5['join'](_0x3f0f20,files['eslintConfigJs']);await promises['writeFile'](_0x49c128,cliEslintContent,'utf8');}__name(setupEslintConfig,'setupEslintConfig');async function enableRepoModeExtras(_0x14b07f){logInfoRaw('Enabling\x20recommendation\x20mode\x20(-r)...'),runCommand(cliScripts['gitInit'],_0x14b07f),runCommand(cliScripts['installDevHuskyTsx'],_0x14b07f),runCommand(cliScripts['setLint'],_0x14b07f),runCommand(cliScripts['installHusky'],_0x14b07f),await setupPreCommitHooks(_0x14b07f);}__name(enableRepoModeExtras,'enableRepoModeExtras');async function updateLayoutTitle(_0x34eccd,_0x203ebb){const _0x550717=_0x2abbe5['join'](_0x34eccd,projectPaths['app']+'/'+files['layout']);if(!existsSync(_0x550717))throw createError(files['layout']+'\x20not\x20found\x20at\x20'+_0x550717+',\x20cannot\x20update\x20title.');let _0x3ef347=await promises['readFile'](_0x550717,'utf8');const _0x42ad07=/"SaaS Kit"/g;if(!_0x42ad07['test'](_0x3ef347))throw createError('SaaS\x20Kit\x20not\x20found\x20in\x20'+files['layout']+',\x20cannot\x20update\x20title.');_0x3ef347=_0x3ef347['replace'](_0x42ad07,'\x22'+_0x203ebb+'\x22'),await promises['writeFile'](_0x550717,_0x3ef347,'utf8');}__name(updateLayoutTitle,'updateLayoutTitle');async function create(_0x5e9e1b){try{_0x5e9e1b['length']<-0x178c+-0x1*-0x18b+-0x9*-0x272&&(logStringError('Error:\x20Specify\x20folder\x20name.\x20Example:\x20npx\x20create-saas-kit-app\x20<folder-name>'),process['exit'](0x5*0x705+0x50e+-0x2826));const _0x5df846=_0x5e9e1b[-0xa*-0x201+0x26a4+-0x3aae],_0x2f1ae1=_0x5e9e1b['includes']('-r'),_0x33204d=_0x2abbe5['resolve'](process['cwd'](),_0x5df846);logInfoRaw('\x0aCreating\x20'+projectName+'\x20project\x20\x22'+_0x5df846+'\x22...\x0a');try{checkTargetFolder(_0x33204d),createNextProject(_0x5df846,_0x33204d),await copyProjectFiles(_0x33204d),await overridePackageJson(_0x33204d),createAdditionalFolders(_0x33204d),await createEnvFile(_0x33204d),await updateLayoutTitle(_0x33204d,_0x5df846),await setupEslintConfig(_0x33204d),_0x2f1ae1&&await enableRepoModeExtras(_0x33204d),logInfoRaw('\x0a'+projectName+'\x20project\x20\x22'+_0x5df846+'\x22\x20is\x20ready!'),logInfoRaw('Next\x20steps:'),logInfoRaw('\x20\x20cd\x20'+_0x5df846),logInfoRaw('\x20\x20npm\x20run\x20prod'),logInfoRaw('\x20\x20npm\x20start');}catch(_0x51921d){const _0x55c938=_0x51921d instanceof Error?_0x51921d['message']:'Unknown\x20error';logStringError('Error:'),logStringError(_0x55c938),existsSync(_0x33204d)&&(logInfoRaw('Cleaning\x20up...'),rmSync(_0x33204d,{'recursive':!![],'force':!![]})),process['exit'](-0x120a+-0x160e*-0x1+-0x403);}}catch(_0x14e487){const _0x407113=_0x14e487 instanceof Error?_0x14e487['message']:'Unknown\x20error';logStringError('Unhandled\x20error:'),logStringError(_0x407113),process['exit'](-0x2de+0x1*-0xfa3+-0x941*-0x2);}}__name(create,'create');
19
19
 
20
20
  export { create };
@@ -3,10 +3,11 @@
3
3
 
4
4
  var projectPaths = require('../../../base-repo/app-constants/project-paths.cjs.js');
5
5
 
6
- const filesToCopy=['',''+projectPaths.folders['git']];const rootFilesToCopy=['.gitignore','postcss.config.mjs','server.ts'];const appFilesToCopy=[projectPaths.clientPaths['styles'],projectPaths.projectPaths['app']+'/favicon.ico',projectPaths.projectPaths['app']+'/globals.css',projectPaths.projectPaths['app']+'/layout.tsx',projectPaths.projectPaths['app']+'/page.tsx'];const apiRoutesToCopy=[projectPaths.projectPaths['apiV1']+'/searchable-resources/route.ts',projectPaths.projectPaths['apiV1']+'/searchresult/route.ts',projectPaths.projectPaths['apiV1']+'/workspace/change/route.ts',projectPaths.projectPaths['apiV1']+'/visible-workspace/route.ts',projectPaths.projectPaths['apiV1']+'/userpermission/route.ts',projectPaths.projectPaths['apiV1']+'/userfeature/isenabled/route.ts',projectPaths.projectPaths['apiV1']+'/uimetas/route.ts',projectPaths.projectPaths['apiV1']+'/uimeta/route.ts',projectPaths.projectPaths['apiV1']+'/subscription/update/route.ts',projectPaths.projectPaths['apiV1']+'/subscription/create/route.ts',projectPaths.projectPaths['apiV1']+'/subscription/cancel/route.ts',projectPaths.projectPaths['apiV1']+'/sign-up/route.ts',projectPaths.projectPaths['apiV1']+'/sign-out/route.ts',projectPaths.projectPaths['apiV1']+'/sign-in/route.ts',projectPaths.projectPaths['apiV1']+'/preload/route.ts',projectPaths.projectPaths['apiV1']+'/payment/route.ts',projectPaths.projectPaths['apiV1']+'/payment/verify-success/route.ts',projectPaths.projectPaths['apiV1']+'/payment/verify-fail/route.ts',projectPaths.projectPaths['apiV1']+'/payment/method/route.ts',projectPaths.projectPaths['apiV1']+'/password/resetpassword/route.ts',projectPaths.projectPaths['apiV1']+'/password/forgotpassword/route.ts',projectPaths.projectPaths['apiV1']+'/otheruser/route.ts',projectPaths.projectPaths['apiV1']+'/otheruser/[id]/route.ts',projectPaths.projectPaths['apiV1']+'/log/route.ts',projectPaths.projectPaths['apiV1']+'/blob/route.ts',projectPaths.projectPaths['apiV1']+'/[resourceName]/route.ts',projectPaths.projectPaths['apiV1']+'/[resourceName]/upsert/route.ts',projectPaths.projectPaths['apiV1']+'/[resourceName]/[id]/route.ts'];const allFilesToCopy=[...filesToCopy,...rootFilesToCopy,...appFilesToCopy,...apiRoutesToCopy];
6
+ const apiV1Glob=projectPaths.projectPaths['apiV1']['replace'](/\(([^)]+)\)/g,'[(]$1[)]');const filesToCopy=['',''+projectPaths.folders['git']];const rootFilesToCopy=['.gitignore','postcss.config.mjs','server.ts'];const appFilesToCopy=[projectPaths.clientPaths['styles'],projectPaths.projectPaths['app']+'/favicon.ico',projectPaths.projectPaths['app']+'/globals.css',projectPaths.projectPaths['app']+'/layout.tsx',projectPaths.projectPaths['app']+'/page.tsx'];const apiRoutesToCopy=[apiV1Glob+'/searchable-resources/route.ts',apiV1Glob+'/search-result/route.ts',apiV1Glob+'/workspace/change/route.ts',apiV1Glob+'/visible-workspace/route.ts',apiV1Glob+'/user-permission/route.ts',apiV1Glob+'/user-feature/isenabled/route.ts',apiV1Glob+'/uimetas/route.ts',apiV1Glob+'/uimeta/route.ts',apiV1Glob+'/subscription/update/route.ts',apiV1Glob+'/subscription/create/route.ts',apiV1Glob+'/subscription/cancel/route.ts',apiV1Glob+'/sign-up/route.ts',apiV1Glob+'/sign-out/route.ts',apiV1Glob+'/sign-in/route.ts',apiV1Glob+'/preload/route.ts',apiV1Glob+'/payment/route.ts',apiV1Glob+'/payment/verify-success/route.ts',apiV1Glob+'/payment/verify-fail/route.ts',apiV1Glob+'/payment/method/route.ts',apiV1Glob+'/password/reset-password/route.ts',apiV1Glob+'/password/forgot-password/route.ts',apiV1Glob+'/other-user/route.ts',apiV1Glob+'/other-user/[id]/route.ts',apiV1Glob+'/log/route.ts',apiV1Glob+'/blob/route.ts',apiV1Glob+'/[resourceName]/route.ts',apiV1Glob+'/[resourceName]/upsert/route.ts',apiV1Glob+'/[resourceName]/[id]/route.ts'];const allFilesToCopy=[...filesToCopy,...rootFilesToCopy,...appFilesToCopy,...apiRoutesToCopy];
7
7
 
8
8
  exports.allFilesToCopy = allFilesToCopy;
9
9
  exports.apiRoutesToCopy = apiRoutesToCopy;
10
+ exports.apiV1Glob = apiV1Glob;
10
11
  exports.appFilesToCopy = appFilesToCopy;
11
12
  exports.filesToCopy = filesToCopy;
12
13
  exports.rootFilesToCopy = rootFilesToCopy;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
- import { folders, clientPaths, projectPaths } from '../../../base-repo/app-constants/project-paths.js';
2
+ import { projectPaths, folders, clientPaths } from '../../../base-repo/app-constants/project-paths.js';
3
3
 
4
- const filesToCopy=['',''+folders['git']];const rootFilesToCopy=['.gitignore','postcss.config.mjs','server.ts'];const appFilesToCopy=[clientPaths['styles'],projectPaths['app']+'/favicon.ico',projectPaths['app']+'/globals.css',projectPaths['app']+'/layout.tsx',projectPaths['app']+'/page.tsx'];const apiRoutesToCopy=[projectPaths['apiV1']+'/searchable-resources/route.ts',projectPaths['apiV1']+'/searchresult/route.ts',projectPaths['apiV1']+'/workspace/change/route.ts',projectPaths['apiV1']+'/visible-workspace/route.ts',projectPaths['apiV1']+'/userpermission/route.ts',projectPaths['apiV1']+'/userfeature/isenabled/route.ts',projectPaths['apiV1']+'/uimetas/route.ts',projectPaths['apiV1']+'/uimeta/route.ts',projectPaths['apiV1']+'/subscription/update/route.ts',projectPaths['apiV1']+'/subscription/create/route.ts',projectPaths['apiV1']+'/subscription/cancel/route.ts',projectPaths['apiV1']+'/sign-up/route.ts',projectPaths['apiV1']+'/sign-out/route.ts',projectPaths['apiV1']+'/sign-in/route.ts',projectPaths['apiV1']+'/preload/route.ts',projectPaths['apiV1']+'/payment/route.ts',projectPaths['apiV1']+'/payment/verify-success/route.ts',projectPaths['apiV1']+'/payment/verify-fail/route.ts',projectPaths['apiV1']+'/payment/method/route.ts',projectPaths['apiV1']+'/password/resetpassword/route.ts',projectPaths['apiV1']+'/password/forgotpassword/route.ts',projectPaths['apiV1']+'/otheruser/route.ts',projectPaths['apiV1']+'/otheruser/[id]/route.ts',projectPaths['apiV1']+'/log/route.ts',projectPaths['apiV1']+'/blob/route.ts',projectPaths['apiV1']+'/[resourceName]/route.ts',projectPaths['apiV1']+'/[resourceName]/upsert/route.ts',projectPaths['apiV1']+'/[resourceName]/[id]/route.ts'];const allFilesToCopy=[...filesToCopy,...rootFilesToCopy,...appFilesToCopy,...apiRoutesToCopy];
4
+ const apiV1Glob=projectPaths['apiV1']['replace'](/\(([^)]+)\)/g,'[(]$1[)]');const filesToCopy=['',''+folders['git']];const rootFilesToCopy=['.gitignore','postcss.config.mjs','server.ts'];const appFilesToCopy=[clientPaths['styles'],projectPaths['app']+'/favicon.ico',projectPaths['app']+'/globals.css',projectPaths['app']+'/layout.tsx',projectPaths['app']+'/page.tsx'];const apiRoutesToCopy=[apiV1Glob+'/searchable-resources/route.ts',apiV1Glob+'/search-result/route.ts',apiV1Glob+'/workspace/change/route.ts',apiV1Glob+'/visible-workspace/route.ts',apiV1Glob+'/user-permission/route.ts',apiV1Glob+'/user-feature/isenabled/route.ts',apiV1Glob+'/uimetas/route.ts',apiV1Glob+'/uimeta/route.ts',apiV1Glob+'/subscription/update/route.ts',apiV1Glob+'/subscription/create/route.ts',apiV1Glob+'/subscription/cancel/route.ts',apiV1Glob+'/sign-up/route.ts',apiV1Glob+'/sign-out/route.ts',apiV1Glob+'/sign-in/route.ts',apiV1Glob+'/preload/route.ts',apiV1Glob+'/payment/route.ts',apiV1Glob+'/payment/verify-success/route.ts',apiV1Glob+'/payment/verify-fail/route.ts',apiV1Glob+'/payment/method/route.ts',apiV1Glob+'/password/reset-password/route.ts',apiV1Glob+'/password/forgot-password/route.ts',apiV1Glob+'/other-user/route.ts',apiV1Glob+'/other-user/[id]/route.ts',apiV1Glob+'/log/route.ts',apiV1Glob+'/blob/route.ts',apiV1Glob+'/[resourceName]/route.ts',apiV1Glob+'/[resourceName]/upsert/route.ts',apiV1Glob+'/[resourceName]/[id]/route.ts'];const allFilesToCopy=[...filesToCopy,...rootFilesToCopy,...appFilesToCopy,...apiRoutesToCopy];
5
5
 
6
- export { allFilesToCopy, apiRoutesToCopy, appFilesToCopy, filesToCopy, rootFilesToCopy };
6
+ export { allFilesToCopy, apiRoutesToCopy, apiV1Glob, appFilesToCopy, filesToCopy, rootFilesToCopy };