@maka/maka-cli 4.12.19 → 4.12.21

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 (160) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +1 -4
  140. package/bundle/obf/src/templates/service/docker/Dockerfile +5 -0
  141. package/bundle/obf/src/tool.js +1 -1
  142. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  143. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  144. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  146. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  148. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/https/https.class.js +1 -1
  150. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  151. package/bundle/obf/src/tools/log/log.class.js +1 -1
  152. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/options/options.class.js +1 -1
  154. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  155. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  156. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  158. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  160. package/package.json +1 -1
@@ -1 +1 @@
1
- const a116q=a116d;function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x1da;let f=c[d];return f;},a116d(a,b);}(function(a,b){const o=a116d,c=a();while(!![]){try{const d=-parseInt(o(0x217))/0x1*(-parseInt(o(0x1ef))/0x2)+parseInt(o(0x207))/0x3+parseInt(o(0x20a))/0x4*(-parseInt(o(0x208))/0x5)+-parseInt(o(0x1dd))/0x6*(parseInt(o(0x1f7))/0x7)+-parseInt(o(0x1de))/0x8+parseInt(o(0x1e7))/0x9*(-parseInt(o(0x215))/0xa)+-parseInt(o(0x219))/0xb*(-parseInt(o(0x1f8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x40954));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const p=a116d;return a116a[p(0x21a)]()[p(0x216)]('(((.+)+)+)+$')[p(0x21a)]()[p(0x1e2)](a116a)['search'](p(0x1f6));});a116a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a116c(){const t=['constructor','react','\x0a\x20\x20\x20\x20\x20\x20const\x20authorizations\x20=\x20await\x20AuthService.getUserAuthorizations(user.id);\x0a\x20\x20\x20\x20\x20\x20return\x20authorizations;\x0a\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20useTracker(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.isClient)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.user()\x20&&\x20!currentUser)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20setCurrentUser(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fetchUserAuthorizations(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20\x20\x20','Meteor.startup','9YjeddJ','const\x20resetPasswordWithToken','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','exit','accounts-password','auth/roles','meteor','useTracker','2ktuXlF','/imports/startup/client','findProjectDirectory','\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20If\x20logged\x20in,\x20return\x20documents\x20owned\x20by\x20this\x20user.\x20Otherwise\x20return\x20nothing.\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.userId)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.roleAssignment.find({\x20\x27user._id\x27:\x20this.userId\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20[];\x0a\x20\x20\x20\x20\x20\x20','export\x20const\x20AuthProvider','Meteor.publish','injectImport','(((.+)+)+)+$','595pRYRNM','72012OhmyzA','processAndRunGenerator','fsi','force','kit:auth:provider','AuthService','create','/imports/startup/lib/authentication-service','server','const\x20authenticateUser','index','authentication-service','getMakaProjectConfig','const\x20sendForgotPasswordEmail','meteor/accounts-base','199689jzvIxf','415825mUKHwK','authentication-provider','4hMXeKJ','publish','meteor/meteor','REACT','/imports/startup/client/authentication-service','true','\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateToken();\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','kit/auth/service/meteor-auth-service.js','template','\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateUser(username,\x20password);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','alanning:roles','4998970QYpzMg','search','204923PpNjCn','const\x20getUserAuthorizations','1991oyfOSZ','toString','Accounts','const\x20deauthenticateUser','injectIntoFile','engines','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','ssr','Meteor','pathFromApp','const\x20authenticateToken','injectIntoCodeBlock','2148XcPqto','3837144lFkHQw','imports','checkMeteorPackage','\x0a\x20\x20\x20\x20\x20\x20WebAppInternals.setInlineScriptsAllowed(false);\x0a\x0a\x20\x20\x20\x20\x20\x20Accounts.urls.resetPassword\x20=\x20function\x20(token)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.absoluteUrl(\x27reset-password/\x27\x20+\x20token);\x0a\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20'];a116c=function(){return t;};return a116c();}import a116e from'./auth.generator.js';import a116f from'../../../generators/maka.gen.js';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a116q(0x1fe)]({'name':a116q(0x1ed),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','shortDesc':'Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','validOpts':[a116q(0x1fb)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a116q(0x20d)]},'description':'\x0a\x20\x20\x20\x20This\x20kit\x20will\x20start\x20by\x20generating\x20your\x20auth\x20provider\x20and\x20context,\x20and\x20then\x20setup\x20Meteor\x20Accounts\x0a\x20\x20\x20\x20to\x20handle\x20authentication\x20and\x20authorization.\x0a\x20\x20'},async function(a,b){const r=a116q;try{const c=b[r(0x1fb)]||![];await this[r(0x1fa)][r(0x1e0)]([r(0x1eb),r(0x214)],{'shouldInstall':!![]});const d=this[r(0x1fa)][r(0x1f1)](),f=this[r(0x1fa)][r(0x204)](),g=f[r(0x21e)][r(0x220)]===r(0x20f);await a116f[r(0x1f9)](r(0x1fc),[],{'force':c,'cwd':d,'config':f});const h=await a116f[r(0x1f9)](r(0x20b),[r(0x1ec)],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?'/imports/startup/lib':r(0x1f0),j=this['fsi'][r(0x1da)]({'pathParts':[i,'','',r(0x203)]});await this[r(0x1fa)]['withValue'](f,async()=>{const s=r;await this['fsi'][s(0x212)]({'srcPath':s(0x211),'destPath':j+'.js','framework':s(0x1e3),'context':{},'config':f,'force':c,'ignore':![]});});const k=this['fsi'][r(0x1da)]({'pathParts':[i,'','',r(0x209)]}),l=f[r(0x21e)]['js'];await this[r(0x1fa)][r(0x1f5)]({'filePath':k+'.'+l,'importName':r(0x1fd),'modulePath':g?r(0x1ff):r(0x20e),'isNamedExport':![]}),await this['fsi'][r(0x1dc)]({'filePath':k+'.'+l,'content':r(0x213),'begin':r(0x201),'replace':!![]}),await this[r(0x1fa)][r(0x1dc)]({'filePath':k+'.'+l,'content':r(0x210),'begin':r(0x1db),'replace':!![]}),await this[r(0x1fa)][r(0x1dc)]({'filePath':k+'.'+l,'content':r(0x1e4),'begin':r(0x218),'replace':!![]}),await this['fsi'][r(0x1dc)]({'filePath':k+'.'+l,'content':r(0x21f),'begin':r(0x21c),'replace':!![]}),await this[r(0x1fa)][r(0x1dc)]({'filePath':k+'.'+l,'content':r(0x1e9),'begin':r(0x205),'replace':!![]}),await this[r(0x1fa)][r(0x1dc)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','begin':'const\x20registerNewUser','replace':!![]}),await this[r(0x1fa)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.resetPasswordWithToken(token,\x20password);\x0a\x20\x20\x20\x20\x20\x20','begin':r(0x1e8),'replace':!![]});g&&(await this['fsi'][r(0x1f5)]({'filePath':k+'.'+l,'importName':r(0x1ee),'modulePath':'meteor/maka:react-tracker','isNamedExport':!![]}),await this[r(0x1fa)][r(0x21d)]({'filePath':k+'.'+l,'content':r(0x1e5),'begin':r(0x1f3),'end':'return\x20\x5c('}));await this[r(0x1fa)][r(0x1f5)]({'filePath':h,'importName':r(0x221),'modulePath':r(0x20c),'isNamedExport':!![],'injectAtStart':!![]}),await this['fsi'][r(0x1dc)]({'filePath':h,'content':r(0x1f2),'begin':r(0x1f4),'replace':!![]});const m=this[r(0x1fa)][r(0x1da)]({'pathParts':[r(0x1df),'startup',r(0x200),r(0x202)]});await this[r(0x1fa)][r(0x1f5)]({'filePath':m+'.'+l,'importName':r(0x21b),'modulePath':r(0x206),'isNamedExport':!![]}),await this['fsi'][r(0x1dc)]({'filePath':m+'.'+l,'content':r(0x1e1),'begin':r(0x1e6),'replace':!![]});}catch(n){Log['error'](n),process[r(0x1ea)](0x1);}},async function(){},a116e);
1
+ const a116r=a116d;(function(a,b){const o=a116d,c=a();while(!![]){try{const d=-parseInt(o(0x1e9))/0x1+parseInt(o(0x1cf))/0x2*(-parseInt(o(0x1c6))/0x3)+parseInt(o(0x1ea))/0x4+-parseInt(o(0x1c7))/0x5*(-parseInt(o(0x1e7))/0x6)+parseInt(o(0x206))/0x7+-parseInt(o(0x1c3))/0x8*(parseInt(o(0x204))/0x9)+parseInt(o(0x1e6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x308e8));function a116c(){const u=['true','Meteor','kit/auth/service/meteor-auth-service.js','/imports/startup/client','/imports/startup/lib','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20start\x20by\x20generating\x20your\x20auth\x20provider\x20and\x20context,\x20and\x20then\x20setup\x20Meteor\x20Accounts\x0a\x20\x20\x20\x20to\x20handle\x20authentication\x20and\x20authorization.\x0a\x20\x20','REACT','accounts-password','const\x20authenticateToken','AuthService','server','const\x20authenticateUser','fsi','injectImport','\x0a\x20\x20\x20\x20\x20\x20WebAppInternals.setInlineScriptsAllowed(false);\x0a\x0a\x20\x20\x20\x20\x20\x20Accounts.urls.resetPassword\x20=\x20function\x20(token)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.absoluteUrl(\x27reset-password/\x27\x20+\x20token);\x0a\x20\x20\x20\x20\x20\x20};\x0a\x20\x20\x20\x20\x20\x20','const\x20registerNewUser','getMakaProjectConfig','67869GmvosM','meteor/meteor','342839fUmyEW','240StYKTo','engines','apply','1014NIIpRs','25PmRMcd','error','react','search','meteor/maka:react-tracker','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.resetPasswordWithToken(token,\x20password);\x0a\x20\x20\x20\x20\x20\x20','useTracker','\x0a\x20\x20\x20\x20\x20\x20const\x20authorizations\x20=\x20await\x20AuthService.getUserAuthorizations(user.id);\x0a\x20\x20\x20\x20\x20\x20return\x20authorizations;\x0a\x20\x20\x20\x20\x20\x20','2014MleKYS','const\x20deauthenticateUser','Accounts','injectIntoCodeBlock','create','processAndRunGenerator','authentication-service','return\x20\x5c(','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateToken();\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','exit','const\x20sendForgotPasswordEmail','\x0a\x20\x20\x20\x20\x20\x20\x20\x20useTracker(()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.isClient)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Meteor.user()\x20&&\x20!currentUser)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20setCurrentUser(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fetchUserAuthorizations(Meteor.user());\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x0a\x20\x20\x20\x20\x20\x20','authentication-provider','checkMeteorPackage','toString','ssr','pathFromApp','force','export\x20const\x20AuthProvider','imports','(((.+)+)+)+$','/imports/startup/lib/authentication-service','7230490TmwwOv','7086RkWgtY','meteor','140766hiCVRv','513276FcUluI','publish','const\x20resetPasswordWithToken','alanning:roles','constructor','auth/roles','kit:auth:provider','/imports/startup/client/authentication-service'];a116c=function(){return u;};return a116c();}const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a116d;if(c){const e=c[p(0x1c5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const q=a116d;return a116a['toString']()[q(0x1ca)](q(0x1e4))[q(0x1de)]()[q(0x1ee)](a116a)['search']('(((.+)+)+)+$');});a116a();import{Generator}from'../../../generator.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a116d(a,b);}import{Log}from'../../../tools/log/log.class.js';import a116e from'./auth.generator.js';import a116f from'../../../generators/maka.gen.js';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a116r(0x1d3)]({'name':a116r(0x1e8),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','shortDesc':a116r(0x1f7),'validOpts':[a116r(0x1e1)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a116r(0x1f9)]},'description':a116r(0x1f8)},async function(a,b){const s=a116r;try{const c=b[s(0x1e1)]||![];await this['fsi'][s(0x1dd)]([s(0x1fa),s(0x1ed)],{'shouldInstall':!![]});const d=this[s(0x1ff)]['findProjectDirectory'](),f=this['fsi'][s(0x203)](),g=f[s(0x1c4)][s(0x1df)]===s(0x1f2);await a116f[s(0x1d4)](s(0x1f0),[],{'force':c,'cwd':d,'config':f});const h=await a116f['processAndRunGenerator'](s(0x1eb),[s(0x1ef)],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?s(0x1f6):s(0x1f5),j=this['fsi'][s(0x1e0)]({'pathParts':[i,'','',s(0x1d5)]});await this['fsi']['withValue'](f,async()=>{const t=s;await this['fsi']['template']({'srcPath':t(0x1f4),'destPath':j+'.js','framework':t(0x1c9),'context':{},'config':f,'force':c,'ignore':![]});});const k=this[s(0x1ff)]['pathFromApp']({'pathParts':[i,'','',s(0x1dc)]}),l=f[s(0x1c4)]['js'];await this[s(0x1ff)][s(0x200)]({'filePath':k+'.'+l,'importName':s(0x1fc),'modulePath':g?s(0x1e5):s(0x1f1),'isNamedExport':![]}),await this[s(0x1ff)][s(0x1d2)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20await\x20AuthService.authenticateUser(username,\x20password);\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20user;\x0a\x20\x20\x20\x20\x20\x20','begin':s(0x1fe),'replace':!![]}),await this['fsi'][s(0x1d2)]({'filePath':k+'.'+l,'content':s(0x1d8),'begin':s(0x1fb),'replace':!![]}),await this[s(0x1ff)][s(0x1d2)]({'filePath':k+'.'+l,'content':s(0x1ce),'begin':'const\x20getUserAuthorizations','replace':!![]}),await this[s(0x1ff)][s(0x1d2)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','begin':s(0x1d0),'replace':!![]}),await this['fsi'][s(0x1d2)]({'filePath':k+'.'+l,'content':s(0x1d7),'begin':s(0x1da),'replace':!![]}),await this['fsi'][s(0x1d2)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','begin':s(0x202),'replace':!![]}),await this[s(0x1ff)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':s(0x1cc),'begin':s(0x1ec),'replace':!![]});g&&(await this[s(0x1ff)][s(0x200)]({'filePath':k+'.'+l,'importName':s(0x1cd),'modulePath':s(0x1cb),'isNamedExport':!![]}),await this[s(0x1ff)]['injectIntoFile']({'filePath':k+'.'+l,'content':s(0x1db),'begin':s(0x1e2),'end':s(0x1d6)}));await this['fsi'][s(0x200)]({'filePath':h,'importName':s(0x1f3),'modulePath':s(0x205),'isNamedExport':!![],'injectAtStart':!![]}),await this[s(0x1ff)][s(0x1d2)]({'filePath':h,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20If\x20logged\x20in,\x20return\x20documents\x20owned\x20by\x20this\x20user.\x20Otherwise\x20return\x20nothing.\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(this.userId)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20Meteor.roleAssignment.find({\x20\x27user._id\x27:\x20this.userId\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20[];\x0a\x20\x20\x20\x20\x20\x20','begin':'Meteor.publish','replace':!![]});const m=this[s(0x1ff)][s(0x1e0)]({'pathParts':[s(0x1e3),'startup',s(0x1fd),'index']});await this['fsi'][s(0x200)]({'filePath':m+'.'+l,'importName':s(0x1d1),'modulePath':'meteor/accounts-base','isNamedExport':!![]}),await this[s(0x1ff)][s(0x1d2)]({'filePath':m+'.'+l,'content':s(0x201),'begin':'Meteor.startup','replace':!![]});}catch(n){Log[s(0x1c8)](n),process[s(0x1d9)](0x1);}},async function(){},a116e);
@@ -1 +1 @@
1
- const a117w=a117d;(function(a,b){const u=a117d,c=a();while(!![]){try{const d=parseInt(u(0x164))/0x1*(-parseInt(u(0x155))/0x2)+-parseInt(u(0x161))/0x3*(-parseInt(u(0x15f))/0x4)+-parseInt(u(0x144))/0x5*(-parseInt(u(0x166))/0x6)+parseInt(u(0x16b))/0x7+parseInt(u(0x154))/0x8*(-parseInt(u(0x15d))/0x9)+-parseInt(u(0x14e))/0xa+parseInt(u(0x15a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x41571));function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x140;let f=c[d];return f;},a117d(a,b);}const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const v=a117d;return a117a['toString']()['search'](v(0x162))[v(0x175)]()['constructor'](a117a)[v(0x174)](v(0x162));});a117a();import{Generator}from'../../../generator.js';function a117c(){const z=['/imports/startup/server/index','true','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','split','search','toString','create','/imports/startup/client/authentication-provider','replaceAll','injectAroundString','268050YYvkNM','injectImport','error','pathFromApp','fsi','REACT','engines','Creating\x20an\x20AuthProvider\x20and\x20AuthContext','</AuthProvider>','kit/auth/provider/authentication-provider.js','1643870vMAMvL','useContext','<Routes\x20history={history}/>','/imports/startup/lib','react','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','11056ZDCcwL','290908gXRtkb','authentication-provider','appName','template','/routes','8139395DLkgXB','/imports/startup/lib/authentication-provider','provider','9yeewkh','/imports/startup/client/index','289616eJcEJy','force','3UDCjji','(((.+)+)+)+$','const\x20Routes','3ueOOuM','bright','6qfhlqh','\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useContext(AuthContext);\x0a\x20\x20\x20\x20\x20\x20if\x20(loading)\x20return\x20<PublicRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20return\x20(!currentUser)\x20?\x20<PublicRoutes\x20history={history}/>\x20:\x20<PrivateRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20','AuthProvider','ssr','withValue','26635gCuIiM','exit','<AuthProvider>','AuthContext','.js'];a117c=function(){return z;};return a117c();}import{Log}from'../../../tools/log/log.class.js';import a117e from'./auth.generator.js';import{headerCase}from'change-case';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a117w(0x140)]({'name':a117w(0x15c),'aliases':['p'],'usage':a117w(0x172),'shortDesc':a117w(0x153),'validOpts':[a117w(0x160)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a117w(0x149)]},'description':'\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x0a\x20\x20\x20\x20It\x20will\x20also\x20update\x20your\x20Routes\x20file\x20to\x20include\x20the\x20AuthProvider\x20and\x20Context.\x0a\x20\x20\x20\x20for\x20navigation\x20checking.\x0a\x20\x20'},async function(a,b){const x=a117w;try{const c=b[x(0x160)]||![];Log[x(0x165)](x(0x14b));const d=this['fsi']['getMakaProjectConfig'](),f=d[x(0x14a)][x(0x169)]===x(0x171),g={'name':headerCase(d[x(0x157)])[x(0x142)]('-','\x20')},h=f?x(0x151):'/imports/startup/client',i=this['fsi'][x(0x147)]({'pathParts':[h,'','',x(0x156)]});await this[x(0x148)][x(0x16a)](d,async()=>{const y=x;await this[y(0x148)][y(0x158)]({'srcPath':y(0x14d),'destPath':i+y(0x16f),'framework':y(0x152),'context':g,'config':d,'force':c,'ignore':![]});});const j=d[x(0x14a)]['js'],k=h+x(0x159),l=k['split']('/'),m=this[x(0x148)][x(0x147)]({'pathParts':l});await this[x(0x148)][x(0x145)]({'filePath':m+'.'+j,'importName':x(0x16e),'modulePath':f?x(0x15b):x(0x141),'isNamedExport':!![]}),await this['fsi'][x(0x145)]({'filePath':m+'.'+j,'importName':x(0x14f),'modulePath':x(0x152),'isNamedExport':!![],'injectAtStart':!![]}),await this[x(0x148)]['injectIntoCodeBlock']({'filePath':m+'.'+j,'content':x(0x167),'begin':[x(0x163),'function\x20Routes'],'replace':!![]});const n=x(0x15e),o=n[x(0x173)]('/'),p=this[x(0x148)]['pathFromApp']({'pathParts':o});await this[x(0x148)][x(0x145)]({'filePath':p+'.'+j,'importName':'AuthProvider','modulePath':f?'/imports/startup/lib/authentication-provider':x(0x141),'isNamedExport':!![]}),await this[x(0x148)][x(0x143)]({'filePath':p+'.'+j,'aboveContent':x(0x16d),'belowContent':x(0x14c),'targetString':'<Routes\x20history={browserHistory}/>','indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q=x(0x170),r=q['split']('/'),s=this[x(0x148)][x(0x147)]({'pathParts':r});await this[x(0x148)]['injectImport']({'filePath':s+'.'+j,'importName':x(0x168),'modulePath':f?x(0x15b):x(0x141),'isNamedExport':!![]}),await this[x(0x148)][x(0x143)]({'filePath':s+'.'+j,'aboveContent':x(0x16d),'belowContent':'</AuthProvider>','targetString':x(0x150),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log[x(0x146)](t),process[x(0x16c)](0x1);}},async function(){},a117e);
1
+ function a117c(){const z=['6026325DvzfMj','<Routes\x20history={history}/>','17974460drhYez','replaceAll','const\x20Routes','pathFromApp','AuthContext','<AuthProvider>','/imports/startup/client/index','fsi','423067BRloLN','injectAroundString','7PhlxCy','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','create','/imports/startup/client/authentication-provider','true','/imports/startup/lib/authentication-provider','template','useContext','12956shBAxf','engines','6rajlno','5271192vscyue','</AuthProvider>','6861840QNFSnA','18ptdadN','/routes','\x0a\x20\x20\x20\x20\x20\x20const\x20{\x20currentUser,\x20loading\x20}\x20=\x20useContext(AuthContext);\x0a\x20\x20\x20\x20\x20\x20if\x20(loading)\x20return\x20<PublicRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20return\x20(!currentUser)\x20?\x20<PublicRoutes\x20history={history}/>\x20:\x20<PrivateRoutes\x20history={history}/>;\x0a\x20\x20\x20\x20\x20\x20','kit/auth/provider/authentication-provider.js','(((.+)+)+)+$','force','search','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','injectImport','6559746HJgXpZ','split','/imports/startup/client','constructor','ssr','error','bright','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x0a\x20\x20\x20\x20It\x20will\x20also\x20update\x20your\x20Routes\x20file\x20to\x20include\x20the\x20AuthProvider\x20and\x20Context.\x0a\x20\x20\x20\x20for\x20navigation\x20checking.\x0a\x20\x20','REACT','.js','react','provider','AuthProvider','injectIntoCodeBlock','<Routes\x20history={browserHistory}/>','/imports/startup/lib','/imports/startup/server/index','toString','appName'];a117c=function(){return z;};return a117c();}const a117w=a117d;(function(a,b){const u=a117d,c=a();while(!![]){try{const d=parseInt(u(0xa6))/0x1*(-parseInt(u(0xb2))/0x2)+-parseInt(u(0xb6))/0x3*(-parseInt(u(0xb0))/0x4)+-parseInt(u(0xd2))/0x5+parseInt(u(0xbf))/0x6+-parseInt(u(0xa8))/0x7*(-parseInt(u(0xb5))/0x8)+-parseInt(u(0xb3))/0x9+parseInt(u(0x9e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xacca3));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const v=a117d;return a117a[v(0xd0)]()['search'](v(0xba))['toString']()[v(0xc2)](a117a)[v(0xbc)](v(0xba));});a117a();function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x9e;let f=c[d];return f;},a117d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a117e from'./auth.generator.js';import{headerCase}from'change-case';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a117w(0xaa)]({'name':a117w(0xca),'aliases':['p'],'usage':a117w(0xbd),'shortDesc':a117w(0xa9),'validOpts':[a117w(0xbb)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a117w(0xc7)]},'description':a117w(0xc6)},async function(a,b){const x=a117w;try{const c=b[x(0xbb)]||![];Log[x(0xc5)]('Creating\x20an\x20AuthProvider\x20and\x20AuthContext');const d=this[x(0xa5)]['getMakaProjectConfig'](),f=d[x(0xb1)][x(0xc3)]===x(0xac),g={'name':headerCase(d[x(0xd1)])[x(0x9f)]('-','\x20')},h=f?x(0xce):x(0xc1),i=this['fsi']['pathFromApp']({'pathParts':[h,'','','authentication-provider']});await this['fsi']['withValue'](d,async()=>{const y=x;await this['fsi'][y(0xae)]({'srcPath':y(0xb9),'destPath':i+y(0xc8),'framework':y(0xc9),'context':g,'config':d,'force':c,'ignore':![]});});const j=d['engines']['js'],k=h+x(0xb7),l=k['split']('/'),m=this[x(0xa5)][x(0xa1)]({'pathParts':l});await this[x(0xa5)][x(0xbe)]({'filePath':m+'.'+j,'importName':x(0xa2),'modulePath':f?'/imports/startup/lib/authentication-provider':x(0xab),'isNamedExport':!![]}),await this[x(0xa5)]['injectImport']({'filePath':m+'.'+j,'importName':x(0xaf),'modulePath':x(0xc9),'isNamedExport':!![],'injectAtStart':!![]}),await this[x(0xa5)][x(0xcc)]({'filePath':m+'.'+j,'content':x(0xb8),'begin':[x(0xa0),'function\x20Routes'],'replace':!![]});const n=x(0xa4),o=n[x(0xc0)]('/'),p=this['fsi'][x(0xa1)]({'pathParts':o});await this[x(0xa5)]['injectImport']({'filePath':p+'.'+j,'importName':x(0xcb),'modulePath':f?x(0xad):'/imports/startup/client/authentication-provider','isNamedExport':!![]}),await this[x(0xa5)][x(0xa7)]({'filePath':p+'.'+j,'aboveContent':x(0xa3),'belowContent':'</AuthProvider>','targetString':x(0xcd),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q=x(0xcf),r=q[x(0xc0)]('/'),s=this[x(0xa5)][x(0xa1)]({'pathParts':r});await this[x(0xa5)]['injectImport']({'filePath':s+'.'+j,'importName':x(0xcb),'modulePath':f?'/imports/startup/lib/authentication-provider':x(0xab),'isNamedExport':!![]}),await this[x(0xa5)][x(0xa7)]({'filePath':s+'.'+j,'aboveContent':x(0xa3),'belowContent':x(0xb4),'targetString':x(0xd3),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log[x(0xc4)](t),process['exit'](0x1);}},async function(){},a117e);
@@ -1 +1 @@
1
- (function(a,b){var f=a118d,c=a();while(!![]){try{var d=parseInt(f(0x9b))/0x1*(parseInt(f(0x95))/0x2)+parseInt(f(0x94))/0x3+-parseInt(f(0x9a))/0x4+parseInt(f(0xa0))/0x5+parseInt(f(0x9f))/0x6*(-parseInt(f(0x97))/0x7)+-parseInt(f(0x99))/0x8*(-parseInt(f(0x93))/0x9)+-parseInt(f(0xa1))/0xa*(parseInt(f(0x98))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x6ebff));var a118b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a118d;if(c){var e=c[g(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){var h=a118d;return a118a[h(0x9d)]()['search']('(((.+)+)+)+$')[h(0x9d)]()[h(0xa2)](a118a)[h(0x9e)](h(0x9c));});a118a();function a118c(){var i=['apply','7fsbfiH','976382ojGJpD','32408aeKLRe','136108sWjiOH','1806dUiAQZ','(((.+)+)+)+$','toString','search','1272378FnQVdO','4204345usWjwR','110kwQsMW','constructor','63WBnbvc','1813815wnEGxO','224euOGtU'];a118c=function(){return i;};return a118c();}function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x93;var f=c[d];return f;},a118d(a,b);}import'./esri.generator.js';import'./map.esri.gen.js';
1
+ function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x101;var f=c[d];return f;},a118d(a,b);}function a118c(){var i=['63192MoUoMM','18885GlGbto','5XrRVNb','apply','2526623JbqdwN','52484hjSkoc','474chrLzD','toString','137980bJCmLP','4gLIJmH','659235RfZdhx','search','(((.+)+)+)+$','1134259ApIgcf','99oHqEXR','constructor'];a118c=function(){return i;};return a118c();}(function(a,b){var f=a118d,c=a();while(!![]){try{var d=-parseInt(f(0x105))/0x1*(parseInt(f(0x108))/0x2)+parseInt(f(0x10d))/0x3*(parseInt(f(0x10c))/0x4)+-parseInt(f(0x104))/0x5*(-parseInt(f(0x109))/0x6)+parseInt(f(0x110))/0x7+-parseInt(f(0x103))/0x8+-parseInt(f(0x101))/0x9*(parseInt(f(0x10b))/0xa)+-parseInt(f(0x107))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x26f61));var a118b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a118d;if(c){var e=c[g(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){var h=a118d;return a118a[h(0x10a)]()[h(0x10e)](h(0x10f))[h(0x10a)]()[h(0x102)](a118a)[h(0x10e)](h(0x10f));});a118a();import'./esri.generator.js';import'./map.esri.gen.js';
@@ -1 +1 @@
1
- const a119i=a119d;(function(a,b){const f=a119d,c=a();while(!![]){try{const d=parseInt(f(0x16a))/0x1+parseInt(f(0x175))/0x2+-parseInt(f(0x174))/0x3+parseInt(f(0x169))/0x4*(parseInt(f(0x165))/0x5)+parseInt(f(0x176))/0x6*(parseInt(f(0x16c))/0x7)+-parseInt(f(0x173))/0x8*(parseInt(f(0x166))/0x9)+-parseInt(f(0x177))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x305b1));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a119d;if(c){const e=c[g(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const h=a119d;return a119a[h(0x16b)]()[h(0x16f)](h(0x171))['toString']()[h(0x16d)](a119a)[h(0x16f)](h(0x171));});function a119c(){const k=['18zXZDWP','create','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','51420aHOcrT','111780xJJaGa','toString','13447ThRaNi','constructor','apply','search','maka\x20g:kit:e','(((.+)+)+)+$','/foo/bar','217416CGfsdF','804438YRwmio','668732Iwyydj','774KBeUrG','3662150hwrCzg','esri','/foo','75LohUhq'];a119c=function(){return k;};return a119c();}a119a();function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x163;let f=c[d];return f;},a119d(a,b);}import{Generator}from'../../../generator.js';import a119e from'../kit.js';const EsriGen=Generator[a119i(0x167)]({'name':a119i(0x163),'aliases':['e'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','noNeedResource':!![],'shortDesc':a119i(0x168),'validOpts':[''],'isPro':!![],'examples':[a119i(0x170)],'description':'\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20'},async function(){const j=a119i;return{'success':!![],'message':'Esri\x20Kit\x20generated\x20successfully','details':{'filesCreated':[j(0x172)],'filesUpdated':[j(0x164)]}};},async function(){},a119e);export default EsriGen;
1
+ const a119i=a119d;(function(a,b){const f=a119d,c=a();while(!![]){try{const d=parseInt(f(0x205))/0x1*(-parseInt(f(0x1f6))/0x2)+parseInt(f(0x1f4))/0x3*(-parseInt(f(0x206))/0x4)+-parseInt(f(0x1f9))/0x5*(parseInt(f(0x1fe))/0x6)+-parseInt(f(0x202))/0x7+parseInt(f(0x1fc))/0x8+parseInt(f(0x1f5))/0x9*(-parseInt(f(0x207))/0xa)+parseInt(f(0x1f1))/0xb*(parseInt(f(0x1f3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xdf98d));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a119d;if(c){const e=c[g(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const h=a119d;return a119a['toString']()[h(0x204)](h(0x1f8))[h(0x1f2)]()[h(0x1fb)](a119a)[h(0x204)]('(((.+)+)+)+$');});a119a();import{Generator}from'../../../generator.js';import a119e from'../kit.js';function a119c(){const k=['toString','4133940nWFnml','3qOaBVV','2979ZFzwLa','2OIRXOG','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20kit\x20for\x20Esri\x20Maps.\x20Starting\x20with\x20a\x20basic\x20map,\x0a\x20\x20\x20\x20but\x20with\x20the\x20ability\x20to\x20add\x20more\x20components\x20to\x20the\x20kit.\x0a\x20\x20','(((.+)+)+)+$','3350185XPJXgr','apply','constructor','10392392YfWCLH','esri','12frrAjH','/foo','/foo/bar','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','5739475jglHbt','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','search','387307LvXzEG','4481632FOvWaX','36070kdGzzk','Esri\x20Kit\x20generated\x20successfully','maka\x20g:kit:e','143urhsBD'];a119c=function(){return k;};return a119c();}const EsriGen=Generator['create']({'name':a119i(0x1fd),'aliases':['e'],'usage':a119i(0x201),'noNeedResource':!![],'shortDesc':a119i(0x203),'validOpts':[''],'isPro':!![],'examples':[a119i(0x1f0)],'description':a119i(0x1f7)},async function(){const j=a119i;return{'success':!![],'message':j(0x1ef),'details':{'filesCreated':[j(0x200)],'filesUpdated':[j(0x1ff)]}};},async function(){},a119e);function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a119d(a,b);}export default EsriGen;
@@ -1 +1 @@
1
- const a120s=a120d;(function(a,b){const p=a120d,c=a();while(!![]){try{const d=-parseInt(p(0x14a))/0x1*(-parseInt(p(0x154))/0x2)+-parseInt(p(0x158))/0x3+-parseInt(p(0x14f))/0x4+-parseInt(p(0x156))/0x5+parseInt(p(0x166))/0x6+-parseInt(p(0x150))/0x7+parseInt(p(0x15e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x46142));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a120d;if(c){const e=c[q(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const r=a120d;return a120a['toString']()['search'](r(0x153))[r(0x175)]()[r(0x15b)](a120a)['search'](r(0x153));});function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x149;let f=c[d];return f;},a120d(a,b);}a120a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a120e from'./esri.generator.js';import a120f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':a120s(0x15d),'aliases':['m'],'usage':a120s(0x155),'shortDesc':a120s(0x14c),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT'],'ssr':SsrEngines[a120s(0x174)]},'description':a120s(0x165)},async function(a,b){const t=a120s;try{Log[t(0x169)](t(0x15f));const c=t(0x171);await this[t(0x16d)][t(0x14e)]([t(0x167),t(0x159)],{'shouldInstall':!![]});const d=this[t(0x16d)][t(0x149)](),f=this[t(0x16d)][t(0x173)](),g=f['engines'][t(0x14b)]===t(0x16e),h=await a120f['processAndRunGenerator'](t(0x161),[t(0x15d)],{'cwd':d,'config':f}),i={'name':headerCase(f['appName'])['replaceAll']('-','\x20'),'componentName':pascalCase(c)},j=b['baseDir']?'/imports/ui/'+b[t(0x16b)]:t(0x151),k=this['fsi'][t(0x16f)]({'pathParts':[j,b[t(0x15c)],paramCase(c),paramCase(c)]});await this['fsi'][t(0x164)](f,async()=>{const u=t;await this[u(0x16d)][u(0x16a)]({'srcPath':'kit/esri/map/'+c+u(0x163),'destPath':k+u(0x163),'framework':u(0x172),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0x15c)]+'/'+c+'/'+c;await this['fsi'][t(0x15a)](c,f,l);const m=h[t(0x14d)]('/'),n=this[t(0x16d)][t(0x16f)]({'pathParts':m});await this['fsi'][t(0x162)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0x168):'/imports/startup/client/templates','isNamedExport':!![]}),await this[t(0x16d)]['injectIntoFile']({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x160),'begin':['<div\x20id=\x22map\x22>',t(0x176)],'end':[t(0x157)],'replace':!![]});}catch(o){Log[t(0x152)](o),process[t(0x16c)](0x1);}},async function(){},a120e);function a120c(){const v=['maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','179030tjbevc','</div>','287307QrYDLn','esri-loader','injectTemplateModule','constructor','dir','map','1158632cVKXxx','Generating\x20a\x20map\x20component','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','page','injectImport','.js','withValue','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20','437454MhDbDd','@esri/react-arcgis','/imports/startup/lib/templates','bright','template','baseDir','exit','fsi','true','pathFromApp','apply','basic-map','react','getMakaProjectConfig','FALSE','toString','<div\x20id=\x22map\x22>','findProjectDirectory','424760FZOJPs','ssr','Generate\x20an\x20Esri\x20map\x20component','split','checkNpmPackage','632288nZcRre','460663JNkbof','/imports/ui/hooks','error','(((.+)+)+)+$','2rHdSGJ'];a120c=function(){return v;};return a120c();}
1
+ const a120s=a120d;(function(a,b){const p=a120d,c=a();while(!![]){try{const d=parseInt(p(0xc4))/0x1*(parseInt(p(0xbf))/0x2)+parseInt(p(0xc2))/0x3+-parseInt(p(0xcf))/0x4+parseInt(p(0xd1))/0x5*(parseInt(p(0xb5))/0x6)+parseInt(p(0xc7))/0x7+parseInt(p(0xc3))/0x8+-parseInt(p(0xaf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x88333));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a120d;if(c){const e=c[q(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const r=a120d;return a120a[r(0xba)]()[r(0xb2)]('(((.+)+)+)+$')['toString']()[r(0xd0)](a120a)[r(0xb2)](r(0xc9));});function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xa3;let f=c[d];return f;},a120d(a,b);}a120a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a120e from'./esri.generator.js';function a120c(){const v=['withValue','/imports/ui/hooks','kit/esri/map/','checkNpmPackage','fsi','react','pathFromApp','apply','replaceAll','injectTemplateModule','REACT','Generating\x20a\x20map\x20component','esri-loader','engines','template','<div\x20id=\x22map\x22>','19330893dACNtz','/imports/startup/client/templates','true','search','dir','exit','78YMsNmt','.js','ssr','processAndRunGenerator','error','toString','baseDir','FALSE','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','34lSICOu','</div>','@esri/react-arcgis','2831031LytQJa','698832xvafUV','17027lpsASJ','create','page','7768999QVmTNo','/imports/ui/','(((.+)+)+)+$','split','injectImport','injectIntoFile','\x0a\x20\x20\x20\x20This\x20generator\x20will\x20create\x20a\x20map\x20component\x20in\x20the\x20/imports/ui/hooks\x20directory.\x0a\x0a\x20\x20\x20\x20It\x27ll\x20also\x20create\x20a\x20page\x20component\x20in\x20the\x20/imports/ui/pages/map\x20directory.\x0a\x0a\x20\x20\x20\x20The\x20map\x20component\x20will\x20be\x20named\x20\x27BasicMap\x27\x20by\x20default.\x0a\x0a\x20\x20','map','1018264JnAVmo','constructor','203835iRnAWd'];a120c=function(){return v;};return a120c();}import a120f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a120s(0xc5)]({'name':a120s(0xce),'aliases':['m'],'usage':a120s(0xbd),'shortDesc':'Generate\x20an\x20Esri\x20map\x20component','validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a120s(0xa9)],'ssr':SsrEngines[a120s(0xbc)]},'description':a120s(0xcd)},async function(a,b){const t=a120s;try{Log['bright'](t(0xaa));const c='basic-map';await this[t(0xa3)][t(0xd5)]([t(0xc1),t(0xab)],{'shouldInstall':!![]});const d=this[t(0xa3)]['findProjectDirectory'](),f=this[t(0xa3)]['getMakaProjectConfig'](),g=f[t(0xac)][t(0xb7)]===t(0xb1),h=await a120f[t(0xb8)](t(0xc6),[t(0xce)],{'cwd':d,'config':f}),i={'name':headerCase(f['appName'])[t(0xa7)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0xbb)]?t(0xc8)+b[t(0xbb)]:t(0xd3),k=this[t(0xa3)][t(0xa5)]({'pathParts':[j,b[t(0xb3)],paramCase(c),paramCase(c)]});await this[t(0xa3)][t(0xd2)](f,async()=>{const u=t;await this['fsi'][u(0xad)]({'srcPath':u(0xd4)+c+'.js','destPath':k+u(0xb6),'framework':u(0xa4),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0xb3)]+'/'+c+'/'+c;await this['fsi'][t(0xa8)](c,f,l);const m=h[t(0xca)]('/'),n=this['fsi']['pathFromApp']({'pathParts':m});await this['fsi'][t(0xcb)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':t(0xb0),'isNamedExport':!![]}),await this[t(0xa3)][t(0xcc)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0xbe),'begin':[t(0xae),t(0xae)],'end':[t(0xc0)],'replace':!![]});}catch(o){Log[t(0xb9)](o),process[t(0xb4)](0x1);}},async function(){},a120e);
@@ -1 +1 @@
1
- const a121h=a121d;(function(a,b){const f=a121d,c=a();while(!![]){try{const d=parseInt(f(0x143))/0x1+parseInt(f(0x14c))/0x2+-parseInt(f(0x13b))/0x3*(-parseInt(f(0x14a))/0x4)+parseInt(f(0x140))/0x5*(parseInt(f(0x13f))/0x6)+parseInt(f(0x13d))/0x7+parseInt(f(0x13e))/0x8*(-parseInt(f(0x13c))/0x9)+-parseInt(f(0x142))/0xa*(parseInt(f(0x146))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x7e44f));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const g=a121d;return a121a[g(0x141)]()[g(0x14b)](g(0x145))['toString']()[g(0x147)](a121a)[g(0x14b)](g(0x145));});a121a();function a121c(){const i=['kit','maka\x20{generate,\x20g}:{kit}\x20<name>','3788PXwYOt','search','1883978egAYUi','maka\x20g:kit','2577Axhbwe','423iMUZUX','1229613QoWEnj','99088tXWduY','431502LJjerV','65mOCpub','toString','18420xzTmgR','58721QgDIFR','create','(((.+)+)+)+$','10901tQsLfz','constructor'];a121c=function(){return i;};return a121c();}import{Generator}from'../../generator.js';const KitGen=Generator[a121h(0x144)]({'name':a121h(0x148),'aliases':['k'],'usage':a121h(0x149),'shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a121h(0x14d),'maka\x20g:k']},async function(){});function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x13b;let f=c[d];return f;},a121d(a,b);}export default KitGen;
1
+ const a121i=a121d;function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1cc;let f=c[d];return f;},a121d(a,b);}function a121c(){const j=['2891728PeELHu','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','constructor','1221660GjufHo','2OgstCq','create','toString','apply','3738115gSSdOL','search','maka\x20g:k','416697NhtDDZ','12417601LUmrtq','4VUcdNB','3305022GOcOSZ','830010opbiIc','maka\x20g:kit','(((.+)+)+)+$'];a121c=function(){return j;};return a121c();}(function(a,b){const f=a121d,c=a();while(!![]){try{const d=parseInt(f(0x1d3))/0x1+-parseInt(f(0x1da))/0x2*(-parseInt(f(0x1cf))/0x3)+-parseInt(f(0x1d1))/0x4*(-parseInt(f(0x1cc))/0x5)+parseInt(f(0x1d2))/0x6+-parseInt(f(0x1d0))/0x7+parseInt(f(0x1d6))/0x8+parseInt(f(0x1d9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xf1da8));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a121d;if(c){const e=c[g(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const h=a121d;return a121a['toString']()[h(0x1cd)](h(0x1d5))[h(0x1dc)]()[h(0x1d8)](a121a)[h(0x1cd)](h(0x1d5));});a121a();import{Generator}from'../../generator.js';const KitGen=Generator[a121i(0x1db)]({'name':'kit','aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<name>','shortDesc':a121i(0x1d7),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a121i(0x1d4),a121i(0x1ce)]},async function(){});export default KitGen;
@@ -1 +1 @@
1
- function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0xd2;var f=c[d];return f;},a122d(a,b);}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0xd4))/0x1*(-parseInt(f(0xdf))/0x2)+parseInt(f(0xd2))/0x3+-parseInt(f(0xe0))/0x4*(parseInt(f(0xd3))/0x5)+-parseInt(f(0xd8))/0x6*(parseInt(f(0xd6))/0x7)+parseInt(f(0xde))/0x8+parseInt(f(0xd5))/0x9+parseInt(f(0xd9))/0xa*(-parseInt(f(0xe1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x19ad1));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0xd7)]()[h(0xdb)](h(0xdd))[h(0xd7)]()[h(0xda)](a122a)['search']('(((.+)+)+)+$');});function a122c(){var i=['1848618nBSuaA','1121617wLtwIE','toString','6IiNAwS','10fstrOJ','constructor','search','apply','(((.+)+)+)+$','473032vUbPRy','24992yZSMet','1676rhEZML','706706REKZGF','344412ENFaYo','1935zmrOUV','9mnLVQF'];a122c=function(){return i;};return a122c();}a122a();import'./mui.generator.js';import'./frame.mui.gen.js';import'./auth.mui.gen.js';
1
+ function a122c(){var i=['toString','255702QcGAgT','24899784iOMdmx','280182JAyvAS','apply','52385ZDcWwD','(((.+)+)+)+$','436FBfduO','search','882194ORsFVj','3342074EZvWJM','9728810yhcGyH'];a122c=function(){return i;};return a122c();}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0x136))/0x1+-parseInt(f(0x137))/0x2+parseInt(f(0x130))/0x3+-parseInt(f(0x134))/0x4*(parseInt(f(0x132))/0x5)+-parseInt(f(0x12e))/0x6+parseInt(f(0x138))/0x7+parseInt(f(0x12f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xd1700));function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x12e;var f=c[d];return f;},a122d(a,b);}var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x131)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a['toString']()[h(0x135)](h(0x133))[h(0x139)]()['constructor'](a122a)[h(0x135)](h(0x133));});a122a();import'./mui.generator.js';import'./frame.mui.gen.js';import'./auth.mui.gen.js';
@@ -1 +1 @@
1
- const a123I=a123d;(function(a,b){const G=a123d,c=a();while(!![]){try{const d=-parseInt(G(0x204))/0x1+parseInt(G(0x22a))/0x2+-parseInt(G(0x1ff))/0x3*(parseInt(G(0x217))/0x4)+parseInt(G(0x22d))/0x5+parseInt(G(0x222))/0x6+parseInt(G(0x212))/0x7+-parseInt(G(0x21d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x90e71));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const H=a123d;return a123a[H(0x20a)]()['search'](H(0x21a))[H(0x20a)]()[H(0x206)](a123a)[H(0x1fa)](H(0x21a));});a123a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a123d(a,b);}import a123e from'../../../generators/maka.gen.js';import a123f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a123c(){const M=['split','register','4053768bPldff','kit/mui/auth/forgot-password/','fsi','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','list','kit/mui/auth/login/','replaceAll','Meteor\x20Accounts','1754560QcxCie','template','kit/mui/auth/logout/','5056880bcvyIy','basic-register-page','kit:auth:meteor','basic-login-page','baseDir','maka\x20generate:kit:mui:frame','AuthContext','meteor','.js','route','login','MATERIAL','search','pathFromApp','/imports/startup/client/authentication-provider','custom','Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','9HWTEyK','Cleaning\x20up...','REACT','processAndRunGenerator','appName','992761hZMfDs','force','constructor','dir','basic-logout-page','getMakaProjectConfig','toString','react','injectImport','Custom\x20(roll\x20your\x20own)','injectTemplateModule','logout','/imports/startup/lib/authentication-provider','log','5093515ophKfz','ssr','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','reset-password/:token','create','428460OFUXwr','withValue','kit:auth:provider','(((.+)+)+)+$','basic-forgot-password-page','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','11074416vVNXAF','kit/mui/auth/register/','engines'];a123c=function(){return M;};return a123c();}Generator[a123I(0x216)]({'name':'auth','aliases':['a'],'usage':a123I(0x214),'shortDesc':a123I(0x1fe),'validOpts':['layouts',a123I(0x205)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a123I(0x1f9)],'client':ClientEngines[a123I(0x201)]},'examples':[a123I(0x1f3),'maka\x20g:k:m:f'],'description':a123I(0x21c)},async function(a,b){const J=a123I;try{const c=b[J(0x205)]||![],d=this[J(0x224)]['findProjectDirectory'](),f=this[J(0x224)][J(0x209)](),{authType:g}=await Actions['options']({'type':J(0x226),'name':'authType','message':J(0x225),'choices':[{'name':J(0x229),'value':J(0x1f5)},{'name':J(0x20d),'value':J(0x1fd)}]}),h=J(0x1f1),i=J(0x208),j=J(0x22e),k='basic-password-reset-page',l=J(0x21b),m=b[J(0x1f2)]?'/imports/ui/'+b['baseDir']:'/imports/ui/pages/auth',n=this[J(0x224)][J(0x1fb)]({'pathParts':[m,b[J(0x207)],paramCase(h),paramCase(h)]}),o=this[J(0x224)][J(0x1fb)]({'pathParts':[m,b[J(0x207)],paramCase(i),paramCase(i)]}),p=this[J(0x224)][J(0x1fb)]({'pathParts':[m,b['dir'],paramCase(j),paramCase(j)]}),q=this[J(0x224)][J(0x1fb)]({'pathParts':[m,b[J(0x207)],paramCase(k),paramCase(k)]}),r=this[J(0x224)][J(0x1fb)]({'pathParts':[m,b[J(0x207)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[J(0x203)])[J(0x228)]('-','\x20')};await this['fsi'][J(0x218)](f,async()=>{const K=J;await this['fsi'][K(0x22b)]({'srcPath':K(0x227)+h+K(0x1f6),'destPath':n+K(0x1f6),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x224)][K(0x22b)]({'srcPath':K(0x22c)+i+K(0x1f6),'destPath':o+K(0x1f6),'framework':K(0x20b),'context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x224)][K(0x22b)]({'srcPath':K(0x21e)+j+K(0x1f6),'destPath':p+K(0x1f6),'framework':K(0x20b),'context':s,'config':f,'force':c,'ignore':![]}),await this[K(0x224)][K(0x22b)]({'srcPath':'kit/mui/auth/password-reset/'+k+K(0x1f6),'destPath':q+K(0x1f6),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this['fsi'][K(0x22b)]({'srcPath':K(0x223)+l+'.js','destPath':r+'.js','framework':K(0x20b),'context':s,'config':f,'force':c,'ignore':![]});});const t=''+m+b[J(0x207)]+'/'+h+'/'+h;await this[J(0x224)][J(0x20e)](h,f,t);const u=''+m+b[J(0x207)]+'/'+i+'/'+i;await this['fsi'][J(0x20e)](i,f,u);const v=''+m+b[J(0x207)]+'/'+j+'/'+j;await this[J(0x224)][J(0x20e)](j,f,v);const w=''+m+b[J(0x207)]+'/'+k+'/'+k;await this[J(0x224)][J(0x20e)](k,f,w);const x=''+m+b[J(0x207)]+'/'+l+'/'+l;await this['fsi'][J(0x20e)](l,f,x),await a123e[J(0x202)](J(0x1f7),[J(0x1f1)],{'url':J(0x1f8),'cwd':d,'config':f}),await a123e[J(0x202)](J(0x1f7),[J(0x208)],{'url':J(0x20f),'private':!![],'cwd':d,'config':f}),await a123e['processAndRunGenerator'](J(0x1f7),[J(0x22e)],{'url':J(0x221),'cwd':d,'config':f}),await a123e['processAndRunGenerator'](J(0x1f7),['basic-password-reset-page'],{'url':J(0x215),'cwd':d,'config':f}),await a123e[J(0x202)](J(0x1f7),[J(0x21b)],{'url':'forgot-password','cwd':d,'config':f});g===J(0x1f5)&&await a123e['processAndRunGenerator'](J(0x22f),[],{'force':c,'cwd':d,'config':f});g==='custom'&&await a123e[J(0x202)](J(0x219),[],{'force':c,'cwd':d,'config':f});const y=f[J(0x21f)][J(0x213)]==='true',z=f['engines']['js'],A=this[J(0x224)]['pathFromApp']({'pathParts':t[J(0x220)]('/')});await this[J(0x224)][J(0x20c)]({'filePath':A+'.'+z,'importName':'AuthContext','modulePath':y?'/imports/startup/lib/authentication-provider':J(0x1fc),'isNamedExport':!![]});const B=this['fsi'][J(0x1fb)]({'pathParts':u['split']('/')});await this[J(0x224)][J(0x20c)]({'filePath':B+'.'+z,'importName':J(0x1f4),'modulePath':y?J(0x210):J(0x1fc),'isNamedExport':!![]});const C=this[J(0x224)]['pathFromApp']({'pathParts':v[J(0x220)]('/')});await this[J(0x224)][J(0x20c)]({'filePath':C+'.'+z,'importName':J(0x1f4),'modulePath':y?J(0x210):J(0x1fc),'isNamedExport':!![]});const D=this[J(0x224)][J(0x1fb)]({'pathParts':w['split']('/')});await this[J(0x224)][J(0x20c)]({'filePath':D+'.'+z,'importName':J(0x1f4),'modulePath':y?J(0x210):J(0x1fc),'isNamedExport':!![]});const E=this['fsi'][J(0x1fb)]({'pathParts':x[J(0x220)]('/')});await this['fsi'][J(0x20c)]({'filePath':E+'.'+z,'importName':J(0x1f4),'modulePath':y?J(0x210):J(0x1fc),'isNamedExport':!![]});}catch(F){Log['error'](F);}},async function(){const L=a123I;console[L(0x211)](L(0x200));},a123f);
1
+ const a123J=a123d;(function(a,b){const G=a123d,c=a();while(!![]){try{const d=parseInt(G(0x147))/0x1*(parseInt(G(0x15a))/0x2)+-parseInt(G(0x15d))/0x3+parseInt(G(0x14a))/0x4+parseInt(G(0x165))/0x5+-parseInt(G(0x146))/0x6+-parseInt(G(0x15b))/0x7*(parseInt(G(0x16d))/0x8)+parseInt(G(0x170))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x5ab2f));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a123d;if(c){const e=c[H(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const I=a123d;return a123a['toString']()[I(0x142)](I(0x15f))[I(0x143)]()[I(0x159)](a123a)[I(0x142)](I(0x15f));});a123a();import{Generator}from'../../../generator.js';function a123c(){const N=['fsi','kit/mui/auth/password-reset/','injectTemplateModule','83720kcUwwJ','basic-login-page','REACT','3222252gkHuyy','split','authType','Custom\x20(roll\x20your\x20own)','appName','create','custom','AuthContext','engines','apply','.js','basic-register-page','Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','findProjectDirectory','log','true','login','injectImport','search','toString','react','basic-logout-page','1460028UzRLuQ','33477JTAvWi','force','/imports/startup/lib/authentication-provider','109836HveUrc','kit/mui/auth/logout/','dir','layouts','options','kit:auth:provider','basic-password-reset-page','/imports/startup/client/authentication-provider','/imports/ui/pages/auth','route','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','pathFromApp','forgot-password','basic-forgot-password-page','auth','constructor','34VAFskz','147yppCai','meteor','829410qLPTKj','kit/mui/auth/forgot-password/','(((.+)+)+)+$','baseDir','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','logout','Cleaning\x20up...','template','782400ghbskp','maka\x20g:k:m:f','kit:auth:meteor','kit/mui/auth/register/','processAndRunGenerator'];a123c=function(){return N;};return a123c();}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a123e from'../../../generators/maka.gen.js';import a123f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x132;let f=c[d];return f;},a123d(a,b);}Generator[a123J(0x135)]({'name':a123J(0x158),'aliases':['a'],'usage':a123J(0x154),'shortDesc':a123J(0x13c),'validOpts':[a123J(0x14d),a123J(0x148)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a123J(0x16f)]},'examples':['maka\x20generate:kit:mui:frame',a123J(0x166)],'description':'\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20'},async function(a,b){const K=a123J;try{const c=b[K(0x148)]||![],d=this[K(0x16a)][K(0x13d)](),f=this[K(0x16a)]['getMakaProjectConfig'](),{authType:g}=await Actions[K(0x14e)]({'type':'list','name':K(0x132),'message':K(0x161),'choices':[{'name':'Meteor\x20Accounts','value':K(0x15c)},{'name':K(0x133),'value':K(0x136)}]}),h='basic-login-page',i=K(0x145),j=K(0x13b),k='basic-password-reset-page',l=K(0x157),m=b['baseDir']?'/imports/ui/'+b[K(0x160)]:K(0x152),n=this[K(0x16a)][K(0x155)]({'pathParts':[m,b[K(0x14c)],paramCase(h),paramCase(h)]}),o=this[K(0x16a)][K(0x155)]({'pathParts':[m,b[K(0x14c)],paramCase(i),paramCase(i)]}),p=this[K(0x16a)]['pathFromApp']({'pathParts':[m,b[K(0x14c)],paramCase(j),paramCase(j)]}),q=this[K(0x16a)][K(0x155)]({'pathParts':[m,b[K(0x14c)],paramCase(k),paramCase(k)]}),r=this['fsi'][K(0x155)]({'pathParts':[m,b[K(0x14c)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0x134)])['replaceAll']('-','\x20')};await this['fsi']['withValue'](f,async()=>{const L=K;await this['fsi']['template']({'srcPath':'kit/mui/auth/login/'+h+L(0x13a),'destPath':n+'.js','framework':L(0x144),'context':s,'config':f,'force':c,'ignore':![]}),await this['fsi'][L(0x164)]({'srcPath':L(0x14b)+i+L(0x13a),'destPath':o+L(0x13a),'framework':L(0x144),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x16a)][L(0x164)]({'srcPath':L(0x168)+j+'.js','destPath':p+L(0x13a),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this['fsi']['template']({'srcPath':L(0x16b)+k+'.js','destPath':q+L(0x13a),'framework':L(0x144),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x16a)][L(0x164)]({'srcPath':L(0x15e)+l+L(0x13a),'destPath':r+L(0x13a),'framework':L(0x144),'context':s,'config':f,'force':c,'ignore':![]});});const t=''+m+b[K(0x14c)]+'/'+h+'/'+h;await this['fsi'][K(0x16c)](h,f,t);const u=''+m+b[K(0x14c)]+'/'+i+'/'+i;await this[K(0x16a)][K(0x16c)](i,f,u);const v=''+m+b[K(0x14c)]+'/'+j+'/'+j;await this[K(0x16a)]['injectTemplateModule'](j,f,v);const w=''+m+b[K(0x14c)]+'/'+k+'/'+k;await this['fsi'][K(0x16c)](k,f,w);const x=''+m+b[K(0x14c)]+'/'+l+'/'+l;await this[K(0x16a)][K(0x16c)](l,f,x),await a123e[K(0x169)]('route',[K(0x16e)],{'url':K(0x140),'cwd':d,'config':f}),await a123e[K(0x169)](K(0x153),[K(0x145)],{'url':K(0x162),'private':!![],'cwd':d,'config':f}),await a123e[K(0x169)]('route',[K(0x13b)],{'url':'register','cwd':d,'config':f}),await a123e[K(0x169)](K(0x153),[K(0x150)],{'url':'reset-password/:token','cwd':d,'config':f}),await a123e['processAndRunGenerator'](K(0x153),[K(0x157)],{'url':K(0x156),'cwd':d,'config':f});g===K(0x15c)&&await a123e[K(0x169)](K(0x167),[],{'force':c,'cwd':d,'config':f});g==='custom'&&await a123e['processAndRunGenerator'](K(0x14f),[],{'force':c,'cwd':d,'config':f});const y=f['engines']['ssr']===K(0x13f),z=f[K(0x138)]['js'],A=this[K(0x16a)][K(0x155)]({'pathParts':t[K(0x171)]('/')});await this[K(0x16a)][K(0x141)]({'filePath':A+'.'+z,'importName':K(0x137),'modulePath':y?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]});const B=this[K(0x16a)][K(0x155)]({'pathParts':u[K(0x171)]('/')});await this[K(0x16a)][K(0x141)]({'filePath':B+'.'+z,'importName':K(0x137),'modulePath':y?K(0x149):'/imports/startup/client/authentication-provider','isNamedExport':!![]});const C=this[K(0x16a)][K(0x155)]({'pathParts':v[K(0x171)]('/')});await this[K(0x16a)][K(0x141)]({'filePath':C+'.'+z,'importName':K(0x137),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0x151),'isNamedExport':!![]});const D=this[K(0x16a)][K(0x155)]({'pathParts':w[K(0x171)]('/')});await this[K(0x16a)]['injectImport']({'filePath':D+'.'+z,'importName':K(0x137),'modulePath':y?'/imports/startup/lib/authentication-provider':K(0x151),'isNamedExport':!![]});const E=this[K(0x16a)][K(0x155)]({'pathParts':x[K(0x171)]('/')});await this[K(0x16a)]['injectImport']({'filePath':E+'.'+z,'importName':K(0x137),'modulePath':y?K(0x149):K(0x151),'isNamedExport':!![]});}catch(F){Log['error'](F);}},async function(){const M=a123J;console[M(0x13e)](M(0x163));},a123f);
@@ -1 +1 @@
1
- const a124E=a124d;(function(a,b){const B=a124d,c=a();while(!![]){try{const d=-parseInt(B(0x15b))/0x1*(parseInt(B(0x127))/0x2)+parseInt(B(0x131))/0x3*(parseInt(B(0x141))/0x4)+parseInt(B(0x133))/0x5*(-parseInt(B(0x16c))/0x6)+-parseInt(B(0x167))/0x7+-parseInt(B(0x169))/0x8*(parseInt(B(0x155))/0x9)+parseInt(B(0x129))/0xa*(-parseInt(B(0x14e))/0xb)+parseInt(B(0x16e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x28447));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a124d;if(c){const e=c[C(0x145)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const D=a124d;return a124a[D(0x16a)]()['search']('(((.+)+)+)+$')[D(0x16a)]()[D(0x168)](a124a)[D(0x135)](D(0x14c));});a124a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a124e from'path';import a124f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';function a124c(){const I=['options','kit/mui/frame/drawers/','getFiles','injectIntoFile','No\x20layouts\x20selected','getDirectories','app-tests','engines','1134735bfPJCk','constructor','528WsmzSr','toString','basic-app-bar','6JfmxeE','join','12572436EVcfcW','maka:react-tracker','tsx','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','error','length','\x20/>\x0a','/imports/ui/','-hook\x22>','injectTemplateModule','/imports/ui/components','template','55778WPtZDx','basic-sticky-footer','10eODnTw','tests','{\x20this.props.children\x20}','REACT','layouts','</div>','create','<Box\x20style={{\x20display:\x20\x27flex\x27,\x20flexDirection:\x20\x27column\x27,\x20minHeight:\x20\x27calc(100vh\x20-\x20157px)\x27\x20}}>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Container\x20component=\x22main\x22>','124926vLAykH','ssr','954745TAmqsB','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','search','replaceAll','{\x20props.children\x20}','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','{props.children}','kit/mui/frame/app-bars/','@mui/material/Box','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','test','dir','withValue','Container','4fWjsNU','force','imports','Cleaning\x20up...','apply','findAppDirectory','appName','maka\x20g:k:m:f','/imports/startup/lib/templates','true','.js','(((.+)+)+)+$','checkMeteorPackage','1875071YWMzRb','pathFromApp','{this.props.children}','/imports/startup/client/templates','kit/mui/frame/footers/','getMakaProjectConfig','<div\x20id=\x22','12834efGexN','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','Box','injectAroundString','react','fsi','11RsYsbB','MATERIAL','injectImport','baseDir'];a124c=function(){return I;};return a124c();}import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x120;let f=c[d];return f;},a124d(a,b);}Generator[a124E(0x12f)]({'name':'frame','aliases':['f'],'usage':a124E(0x134),'shortDesc':a124E(0x13c),'validOpts':[a124E(0x12d),'baseDir',a124E(0x13e),a124E(0x142)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a124E(0x15c)],'client':ClientEngines[a124E(0x12c)]},'examples':['maka\x20generate:kit:mui:frame',a124E(0x148)],'description':a124E(0x171)},async function(a,b){const F=a124E;try{const c=b[F(0x142)]||![],d=F(0x16b),f='basic-drawer',g=F(0x128),h=this[F(0x15a)][F(0x153)](),i=h[F(0x166)][F(0x132)]===F(0x14a);await this[F(0x15a)][F(0x14d)](['session',F(0x16f)],{'shouldInstall':!![]});const j=this[F(0x15a)][F(0x146)](),k=a124e['join'](j,F(0x143),'ui',F(0x12d)),l=this[F(0x15a)][F(0x164)](k),m=await Actions[F(0x15f)]({'type':'checkbox','name':F(0x12d),'message':F(0x138),'choices':l});if(m['layouts'][F(0x120)]===0x0){Log[F(0x172)](F(0x163));return;}const n=b[F(0x15e)]?F(0x122)+b['baseDir']:F(0x125),o=this['fsi']['pathFromApp']({'pathParts':[n,b[F(0x13e)],paramCase(d),paramCase(d)]}),p=this['fsi'][F(0x14f)]({'pathParts':[n,b[F(0x13e)],paramCase(f),paramCase(f)]}),q=this['fsi'][F(0x14f)]({'pathParts':[n,b['dir'],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[F(0x147)])[F(0x136)]('-','\x20')};await this[F(0x15a)][F(0x13f)](h,async()=>{const G=F;await this[G(0x15a)][G(0x126)]({'srcPath':G(0x13a)+d+G(0x14b),'destPath':o+'.js','framework':G(0x159),'context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x15a)][G(0x126)]({'srcPath':G(0x160)+f+'.js','destPath':p+G(0x14b),'framework':G(0x159),'context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x15a)][G(0x126)]({'srcPath':G(0x152)+g+G(0x14b),'destPath':q+'.js','framework':'react','context':r,'config':h,'force':c,'ignore':![]});});const s=''+n+b['dir']+'/'+d+'/'+d;await this[F(0x15a)][F(0x124)](d,h,s);const t=''+n+b[F(0x13e)]+'/'+f+'/'+f;await this['fsi'][F(0x124)](f,h,t);const u=''+n+b[F(0x13e)]+'/'+g+'/'+g;await this[F(0x15a)][F(0x124)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this[F(0x15a)][F(0x161)](a124e['join'](k,w),{'extensions':['jsx',F(0x170)],'omit':[F(0x165),F(0x12a),F(0x13d)]});for(const y of x){const z=a124e[F(0x16d)](k,w,y);await this['fsi'][F(0x15d)]({'filePath':z,'importName':F(0x157),'modulePath':F(0x13b),'isNamedExport':![]}),await this['fsi'][F(0x15d)]({'filePath':z,'importName':F(0x140),'modulePath':'@mui/material/Container','isNamedExport':![]}),await this['fsi'][F(0x15d)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?F(0x149):F(0x151),'isNamedExport':!![]}),await this['fsi'][F(0x162)]({'filePath':z,'content':'<'+pascalCase(d)+F(0x121),'begin':[F(0x154)+w+'\x22>',F(0x154)+w+'-hook\x22>'],'end':[F(0x150),F(0x12b),F(0x139),F(0x137)]}),await this[F(0x15a)]['injectImport']({'filePath':z,'importName':pascalCase(f),'modulePath':i?F(0x149):F(0x151),'isNamedExport':!![]}),await this[F(0x15a)][F(0x162)]({'filePath':z,'content':'<'+pascalCase(f)+F(0x121),'begin':[F(0x154)+w+'\x22>',F(0x154)+w+F(0x123)],'end':[F(0x150),F(0x12b),F(0x139),'{\x20props.children\x20}']}),await this[F(0x15a)]['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(g)+F(0x121),'begin':[F(0x150),'{\x20this.props.children\x20}',F(0x139),F(0x137)],'end':[F(0x12e)]}),await this['fsi'][F(0x15d)]({'filePath':z,'importName':pascalCase(g),'modulePath':i?'/imports/startup/lib/templates':F(0x151),'isNamedExport':!![]}),await this['fsi'][F(0x158)]({'filePath':z,'aboveContent':F(0x130),'belowContent':F(0x156),'targetString':[F(0x150),F(0x12b),F(0x139),F(0x137)],'targetIndentAdjustment':0x6});}}return!![];}catch(A){Log[F(0x172)](A);}},async function(){const H=a124E;console['log'](H(0x144));},a124f);
1
+ const a124E=a124d;(function(a,b){const B=a124d,c=a();while(!![]){try{const d=-parseInt(B(0x1ae))/0x1*(parseInt(B(0x1cc))/0x2)+parseInt(B(0x1d6))/0x3+-parseInt(B(0x1cf))/0x4+parseInt(B(0x1ea))/0x5*(-parseInt(B(0x1bf))/0x6)+parseInt(B(0x1aa))/0x7+-parseInt(B(0x1b1))/0x8*(-parseInt(B(0x1b3))/0x9)+-parseInt(B(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x7af0d));function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a124d(a,b);}const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a124d;if(c){const e=c[C(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const D=a124d;return a124a[D(0x1a8)]()[D(0x1e0)](D(0x1ec))['toString']()[D(0x1d9)](a124a)['search']('(((.+)+)+)+$');});a124a();import{Generator}from'../../../generator.js';function a124c(){const I=['{props.children}','injectImport','test','dir','-hook\x22>','1573380suzBcX','\x20/>\x0a','No\x20layouts\x20selected','constructor','engines','/imports/ui/','basic-sticky-footer','</div>','MATERIAL','basic-drawer','search','true','/imports/startup/client/templates','replaceAll','Cleaning\x20up...','baseDir','tsx','injectTemplateModule','fsi','{\x20this.props.children\x20}','685zvRQza','getMakaProjectConfig','(((.+)+)+)+$','maka:react-tracker','jsx','create','template','pathFromApp','{\x20props.children\x20}','toString','withValue','4303348LyCxAp','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','checkbox','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','1PnpyBL','maka\x20generate:kit:mui:frame','@mui/material/Box','24qQElCW','/imports/ui/components','1980675JkiLcB','getDirectories','length','kit/mui/frame/drawers/','/imports/startup/lib/templates','<div\x20id=\x22','injectIntoFile','react','force','injectAroundString','join','options','162DdeIDX','layouts','.js','error','Container','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','session','Box','@mui/material/Container','app-tests','7323960biGosf','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','log','700646NiDHXj','{this.props.children}','tests','837864gdFzFv','apply'];a124c=function(){return I;};return a124c();}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a124e from'path';import a124f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a124E(0x1ef)]({'name':'frame','aliases':['f'],'usage':'maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','shortDesc':a124E(0x1ca),'validOpts':['layouts','baseDir','dir',a124E(0x1bb)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a124E(0x1de)],'client':ClientEngines['REACT']},'examples':[a124E(0x1af),'maka\x20g:k:m:f'],'description':a124E(0x1ad)},async function(a,b){const F=a124E;try{const c=b[F(0x1bb)]||![],d='basic-app-bar',f=F(0x1df),g=F(0x1dc),h=this['fsi'][F(0x1eb)](),i=h[F(0x1da)]['ssr']===F(0x1e1);await this[F(0x1e8)]['checkMeteorPackage']([F(0x1c5),F(0x1ed)],{'shouldInstall':!![]});const j=this[F(0x1e8)]['findAppDirectory'](),k=a124e[F(0x1bd)](j,'imports','ui','layouts'),l=this[F(0x1e8)][F(0x1b4)](k),m=await Actions[F(0x1be)]({'type':F(0x1ac),'name':'layouts','message':F(0x1ab),'choices':l});if(m[F(0x1c0)][F(0x1b5)]===0x0){Log[F(0x1c2)](F(0x1d8));return;}const n=b[F(0x1e5)]?F(0x1db)+b[F(0x1e5)]:F(0x1b2),o=this[F(0x1e8)][F(0x1f1)]({'pathParts':[n,b[F(0x1d4)],paramCase(d),paramCase(d)]}),p=this[F(0x1e8)][F(0x1f1)]({'pathParts':[n,b[F(0x1d4)],paramCase(f),paramCase(f)]}),q=this[F(0x1e8)][F(0x1f1)]({'pathParts':[n,b[F(0x1d4)],paramCase(g),paramCase(g)]}),r={'name':headerCase(h['appName'])[F(0x1e3)]('-','\x20')};await this['fsi'][F(0x1a9)](h,async()=>{const G=F;await this[G(0x1e8)][G(0x1f0)]({'srcPath':'kit/mui/frame/app-bars/'+d+'.js','destPath':o+G(0x1c1),'framework':G(0x1ba),'context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x1e8)][G(0x1f0)]({'srcPath':G(0x1b6)+f+'.js','destPath':p+'.js','framework':G(0x1ba),'context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x1e8)][G(0x1f0)]({'srcPath':'kit/mui/frame/footers/'+g+G(0x1c1),'destPath':q+G(0x1c1),'framework':G(0x1ba),'context':r,'config':h,'force':c,'ignore':![]});});const s=''+n+b[F(0x1d4)]+'/'+d+'/'+d;await this[F(0x1e8)][F(0x1e7)](d,h,s);const t=''+n+b[F(0x1d4)]+'/'+f+'/'+f;await this['fsi'][F(0x1e7)](f,h,t);const u=''+n+b[F(0x1d4)]+'/'+g+'/'+g;await this[F(0x1e8)][F(0x1e7)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this[F(0x1e8)]['getFiles'](a124e[F(0x1bd)](k,w),{'extensions':[F(0x1ee),F(0x1e6)],'omit':[F(0x1c8),F(0x1ce),F(0x1d3)]});for(const y of x){const z=a124e[F(0x1bd)](k,w,y);await this[F(0x1e8)][F(0x1d2)]({'filePath':z,'importName':F(0x1c6),'modulePath':F(0x1b0),'isNamedExport':![]}),await this[F(0x1e8)][F(0x1d2)]({'filePath':z,'importName':F(0x1c3),'modulePath':F(0x1c7),'isNamedExport':![]}),await this[F(0x1e8)]['injectImport']({'filePath':z,'importName':pascalCase(d),'modulePath':i?F(0x1b7):'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi'][F(0x1b9)]({'filePath':z,'content':'<'+pascalCase(d)+F(0x1d7),'begin':[F(0x1b8)+w+'\x22>',F(0x1b8)+w+'-hook\x22>'],'end':['{this.props.children}',F(0x1e9),F(0x1d1),F(0x1f2)]}),await this['fsi']['injectImport']({'filePath':z,'importName':pascalCase(f),'modulePath':i?F(0x1b7):'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi'][F(0x1b9)]({'filePath':z,'content':'<'+pascalCase(f)+F(0x1d7),'begin':[F(0x1b8)+w+'\x22>',F(0x1b8)+w+F(0x1d5)],'end':[F(0x1cd),F(0x1e9),F(0x1d1),F(0x1f2)]}),await this[F(0x1e8)][F(0x1b9)]({'filePath':z,'content':'<'+pascalCase(g)+F(0x1d7),'begin':['{this.props.children}',F(0x1e9),F(0x1d1),F(0x1f2)],'end':[F(0x1dd)]}),await this['fsi'][F(0x1d2)]({'filePath':z,'importName':pascalCase(g),'modulePath':i?F(0x1b7):F(0x1e2),'isNamedExport':!![]}),await this[F(0x1e8)][F(0x1bc)]({'filePath':z,'aboveContent':'<Box\x20style={{\x20display:\x20\x27flex\x27,\x20flexDirection:\x20\x27column\x27,\x20minHeight:\x20\x27calc(100vh\x20-\x20157px)\x27\x20}}>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Container\x20component=\x22main\x22>','belowContent':F(0x1c4),'targetString':[F(0x1cd),'{\x20this.props.children\x20}','{props.children}',F(0x1f2)],'targetIndentAdjustment':0x6});}}return!![];}catch(A){Log[F(0x1c2)](A);}},async function(){const H=a124E;console[H(0x1cb)](H(0x1e4));},a124f);
@@ -1 +1 @@
1
- const a125i=a125d;(function(a,b){const g=a125d,c=a();while(!![]){try{const d=parseInt(g(0x78))/0x1+parseInt(g(0x7e))/0x2*(-parseInt(g(0x83))/0x3)+-parseInt(g(0x77))/0x4*(parseInt(g(0x73))/0x5)+-parseInt(g(0x79))/0x6+parseInt(g(0x84))/0x7+parseInt(g(0x7b))/0x8*(-parseInt(g(0x82))/0x9)+-parseInt(g(0x85))/0xa*(-parseInt(g(0x8b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x77065));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const h=a125d;return a125a[h(0x75)]()['search'](h(0x86))[h(0x75)]()[h(0x87)](a125a)[h(0x70)](h(0x86));});a125a();import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';import{Log}from'../../../tools/log/log.class.js';function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x6c;let f=c[d];return f;},a125d(a,b);}import a125e from'../../../generators/maka.gen.js';function a125c(){const k=['15puLcef','info','toString','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','1101008WFNcpw','825634jpTLkV','3375792kACHrO','mui','4041352MbLMsI','Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','checkbox','21498jPBczb','includes','Header,\x20Footer,\x20and\x20Drawer','frame','9xywuud','27yaICei','4096736rzFYph','1185490WrsnxG','(((.+)+)+)+$','constructor','length','options','\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&####%&@@@@@@@@@@@@@@@@@@@&&%###&@@@@@@&%###%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#(((((##%&&@@@@@@@@@&&%%#(((((#&@@@@@&#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((#%&&@&&%##(((((((((#&@@@@&&#((##%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((((((#((((((((((((((#&@@@@@&%&&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#%%%%##((((((((#%%&%#((((#&@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@&&%###%%&@@@@&#((((#&@@@@@@@@&&&&@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@@@&#((((#&@@@@@&%#(((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@&%##((((#&@@@@&%#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&%#(((#&&@@@@@@@@@&&%##(((((((#%&@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@&%#%&@@@@@@@@&#((((((((##%&@@@@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((%&@@@@@@@@@&%#((((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((#%%&@@&&%##((((((((#%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@&%%#((((((((##((((((((##%&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&%##(((((((((##%&@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&%##(#%&&@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a\x0a\x20\x20This\x20generator\x20will\x20help\x20you\x20add\x20MUI\x20to\x20your\x20project.\x0a\x20\x20Choose\x20from\x20a\x20selection\x20of\x20premade\x20MUI\x20components.\x0a\x20\x20','99rgrGXR','auth','getMakaProjectConfig','processAndRunGenerator','kit:mui:auth','No\x20MUI\x20kits\x20selected.\x20Exiting.','Material-UI\x20Kit','fsi','search','findProjectDirectory','kitChoices'];a125c=function(){return k;};return a125c();}import a125f from'../kit.js';const MuiGen=Generator['create']({'name':a125i(0x7a),'aliases':['m'],'usage':a125i(0x76),'noNeedResource':!![],'shortDesc':a125i(0x6e),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:m']},async function(){const j=a125i;Log[j(0x74)](j(0x7c)),Log['notice'](j(0x8a));const {kitChoices:a}=await Actions[j(0x89)]({'type':j(0x7d),'name':j(0x72),'message':'Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','choices':[{'name':j(0x80),'value':j(0x81)},{'name':'Auth\x20workflow\x20(login,\x20logout,\x20etc.)','value':j(0x8c)}]}),b=this[j(0x6f)][j(0x71)](),c=this[j(0x6f)][j(0x8d)]();a[j(0x7f)](j(0x81))&&await a125e[j(0x8e)]('kit:mui:frame',[],{'force':!![],'cwd':b,'config':c});a[j(0x7f)]('auth')&&await a125e[j(0x8e)](j(0x6c),[],{'force':!![],'cwd':b,'config':c});if(a[j(0x88)]===0x0){Log['info'](j(0x6d));return;}},async function(){},a125f);export default MuiGen;
1
+ const a125i=a125d;(function(a,b){const g=a125d,c=a();while(!![]){try{const d=-parseInt(g(0xe3))/0x1+parseInt(g(0xce))/0x2*(parseInt(g(0xde))/0x3)+parseInt(g(0xcd))/0x4+-parseInt(g(0xdd))/0x5*(-parseInt(g(0xd8))/0x6)+parseInt(g(0xe4))/0x7*(-parseInt(g(0xcc))/0x8)+parseInt(g(0xd3))/0x9+-parseInt(g(0xcf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xacfc2));function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0xcb;let f=c[d];return f;},a125d(a,b);}const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const h=a125d;return a125a[h(0xda)]()['search'](h(0xdf))[h(0xda)]()['constructor'](a125a)[h(0xe1)]('(((.+)+)+)+$');});function a125c(){const k=['45bHGmBa','3gCsyzt','(((.+)+)+)+$','No\x20MUI\x20kits\x20selected.\x20Exiting.','search','processAndRunGenerator','194831INKrDQ','8598933asGcRS','maka\x20g:kit:m','kit:mui:auth','info','Auth\x20workflow\x20(login,\x20logout,\x20etc.)','findProjectDirectory','checkbox','Material-UI\x20Kit','getMakaProjectConfig','options','8SyUumC','5513380QwzcYX','979078KLfcov','1206590pIvXJG','\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&####%&@@@@@@@@@@@@@@@@@@@&&%###&@@@@@@&%###%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#(((((##%&&@@@@@@@@@&&%%#(((((#&@@@@@&#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((#%&&@&&%##(((((((((#&@@@@&&#((##%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((((((((((((#((((((((((((((#&@@@@@&%&&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#%%%%##((((((((#%%&%#((((#&@@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@&&%###%%&@@@@&#((((#&@@@@@@@@&&&&@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@@@&#((((#&@@@@@&%#(((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&#((((#&&@@@@@@@@@@@@@@&%##((((#&@@@@&%#((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@&%#(((#&&@@@@@@@@@&&%##(((((((#%&@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@&%#%&@@@@@@@@&#((((((((##%&@@@@@@@&%(((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((%&@@@@@@@@@&%#((((((%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@&&#((((((#%%&@@&&%##((((((((#%@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@&%%#((((((((##((((((((##%&@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&%##(((((((((##%&@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&&%##(#%&&@@@@@@@@@@@@@@@@@@@@@@@@\x0a@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\x0a\x0a\x20\x20This\x20generator\x20will\x20help\x20you\x20add\x20MUI\x20to\x20your\x20project.\x0a\x20\x20Choose\x20from\x20a\x20selection\x20of\x20premade\x20MUI\x20components.\x0a\x20\x20','frame','Header,\x20Footer,\x20and\x20Drawer','1434924lMrhdG','Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','fsi','auth','includes','150090fEAmOE','create','toString','mui','length'];a125c=function(){return k;};return a125c();}a125a();import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';import{Log}from'../../../tools/log/log.class.js';import a125e from'../../../generators/maka.gen.js';import a125f from'../kit.js';const MuiGen=Generator[a125i(0xd9)]({'name':a125i(0xdb),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a125i(0xeb),'validOpts':[''],'isPro':!![],'examples':[a125i(0xe5)]},async function(){const j=a125i;Log[j(0xe7)](j(0xd4)),Log['notice'](j(0xd0));const {kitChoices:a}=await Actions[j(0xcb)]({'type':j(0xea),'name':'kitChoices','message':'Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','choices':[{'name':j(0xd2),'value':j(0xd1)},{'name':j(0xe8),'value':j(0xd6)}]}),b=this[j(0xd5)][j(0xe9)](),c=this[j(0xd5)][j(0xec)]();a['includes'](j(0xd1))&&await a125e[j(0xe2)]('kit:mui:frame',[],{'force':!![],'cwd':b,'config':c});a[j(0xd7)](j(0xd6))&&await a125e[j(0xe2)](j(0xe6),[],{'force':!![],'cwd':b,'config':c});if(a[j(0xdc)]===0x0){Log[j(0xe7)](j(0xe0));return;}},async function(){},a125f);export default MuiGen;
@@ -1 +1 @@
1
- const a126n=a126d;(function(a,b){const l=a126d,c=a();while(!![]){try{const d=-parseInt(l(0xe9))/0x1+-parseInt(l(0xe6))/0x2+parseInt(l(0xd6))/0x3*(parseInt(l(0xc6))/0x4)+parseInt(l(0xe1))/0x5+parseInt(l(0xe7))/0x6*(-parseInt(l(0xdc))/0x7)+parseInt(l(0xce))/0x8+parseInt(l(0xc9))/0x9*(parseInt(l(0xde))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xa55c4));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const m=a126d;return a126a[m(0xcd)]()[m(0xea)](m(0xe4))[m(0xcd)]()[m(0xd1)](a126a)['search'](m(0xe4));});a126a();import a126e from'path';function a126c(){const q=['string','component/component.js','setTemplate','77021eFwDXT','withHook','1506320nobEcw','withValue','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','1581415EOrxbW','assign','fileName','(((.+)+)+)+$','pathFromProject','799264UcZTJO','318JQlwdW','className','1206386ckWGle','search','includes','fsi','dir','maka\x20g:layout\x20mobile/iPhone8','split','withTranslations','ssr','theme','api','template/template.css','test','ramda','/imports/ui/layouts','.js','warn','client','true','relative','template','injectAtBeginningOfFile','12DrENEn','create','injectTemplateModule','99tOldef','installNpmPackage','features','checkNpmPackage','toString','3166120FmZsaA','css','.app-tests.js','constructor','graphql','engines','resourceName','.css','497493ldPqyo','getMakaProjectConfig','react'];a126c=function(){return q;};return a126c();}function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0xc6;let f=c[d];return f;},a126d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a126n(0xc7)]({'name':'layout','aliases':aliases,'usage':a126n(0xe0),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[a126n(0xdd)],'examples':[a126n(0xee),'maka\x20g:l\x20web/safari']},async function(a,b){const o=a126n,c=o(0xf7),d=this[o(0xec)]['findAppDirectory'](),e=this[o(0xec)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[o(0xd4)])]}),f=this[o(0xec)][o(0xd7)]();await this[o(0xec)][o(0xdf)](f,async()=>{const p=o;typeof f[p(0xfd)]['test']===p(0xd9)&&(f[p(0xfd)][p(0xf5)]=f[p(0xfd)]['test']===p(0xfb)?!![]:![],this[p(0xec)]['setTemplate'](p(0xf5),f[p(0xfd)][p(0xf5)]));typeof f[p(0xfd)]['css']==='string'&&(f[p(0xfd)][p(0xcf)]=f[p(0xfd)]['css']===p(0xfb)?!![]:![],this[p(0xec)][p(0xdb)](p(0xcf),f[p(0xfd)][p(0xcf)]));typeof f['template']['js']===p(0xd9)&&(f[p(0xfd)]['js']=f[p(0xfd)]['js']===p(0xfb)?!![]:![],this[p(0xec)][p(0xdb)]('js',f['template']['js']));!f['features']&&(f['features']={});const g=b['_']?b['_'][0x0][p(0xef)](':')[0x1]:![],h=b['_']&&aliases[p(0xeb)](g);h&&!this[p(0xcc)]('ramda')&&(Log[p(0xf9)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),this['fsi'][p(0xca)](p(0xf6),{'cwd':d}));if(h&&!this[p(0xcc)](p(0xd8))){Log[p(0xf9)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b['resourceName']),'myPath':a126e[p(0xfc)](this['fsi'][p(0xe5)]({}),e),'cssCaseName':paramCase(b[p(0xd4)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0xd4)]),'fileName':paramCase(b[p(0xd4)]),'graphql':f[p(0xd3)][p(0xd2)],'features':f[p(0xcb)],'client':f[p(0xd3)][p(0xfa)],'api':f['engines'][p(0xf3)],'ssr':f[p(0xd3)][p(0xf1)],'test':f[p(0xd3)][p(0xf5)],'theme':f[p(0xd3)][p(0xf2)],'isComponent':![],'isLayout':!![],'withTranslations':f[p(0xcb)][p(0xf0)]};f[p(0xcb)]?.['withHooks']||b[p(0xdd)]?await this[p(0xec)][p(0xfd)]({'srcPath':'hook/hook.js','destPath':e+p(0xf8),'framework':p(0xd8),'context':i,'config':f}):await this[p(0xec)][p(0xfd)]({'srcPath':p(0xda),'destPath':e+'.js','framework':p(0xd8),'context':i,'config':f});f[p(0xd3)][p(0xf5)]!=='none'&&await this[p(0xec)]['template']({'srcPath':'test/test.js','destPath':e+p(0xd0),'framework':p(0xd8),'context':i,'config':f});f[p(0xfd)][p(0xcf)]&&(await this[p(0xec)][p(0xfd)]({'srcPath':p(0xf4),'destPath':e+p(0xd5),'context':Object[p(0xe2)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),await this['fsi'][p(0xfe)]({'filePath':e+'.'+f[p(0xd3)]['js'],'content':'import\x20\x27./'+i[p(0xe3)]+'.'+f['engines'][p(0xcf)]+'\x27;'}));const j=b[p(0xed)]?'/'+b[p(0xed)]+'/':'/',k=''+c+j+i[p(0xe3)]+'/'+i[p(0xe3)];await this[p(0xec)][p(0xc8)](i[p(0xe8)],f,k);});});
1
+ const a126o=a126d;function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x64;let f=c[d];return f;},a126d(a,b);}(function(a,b){const l=a126d,c=a();while(!![]){try{const d=parseInt(l(0x7f))/0x1*(-parseInt(l(0x6e))/0x2)+-parseInt(l(0x97))/0x3+parseInt(l(0x89))/0x4+-parseInt(l(0x8f))/0x5+-parseInt(l(0x7e))/0x6*(-parseInt(l(0x8e))/0x7)+-parseInt(l(0x66))/0x8*(parseInt(l(0x86))/0x9)+-parseInt(l(0x67))/0xa*(-parseInt(l(0x9b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x8718b));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a126d;if(c){const e=c[m(0x64)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const n=a126d;return a126a[n(0x68)]()[n(0x8b)](n(0x71))[n(0x68)]()['constructor'](a126a)['search']('(((.+)+)+)+$');});a126a();import a126e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a126c(){const r=['injectAtBeginningOfFile','client','fsi','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','installNpmPackage','withValue','withHook','565074pQYywM','injectTemplateModule','theme','ssr','11ebUccb','dir','warn','true','apply','findAppDirectory','243472aqMgxN','13424480fSWclK','toString','relative','css','template/template.css','engines','fileName','4DAECYG','.css','template','(((.+)+)+)+$','withHooks','ramda','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','checkNpmPackage','string','react','none','assign','maka\x20g:layout\x20mobile/iPhone8','setTemplate','api','getMakaProjectConfig','18cpAQMC','141353pzCdKS','withTranslations','create','className','import\x20\x27./','resourceName','.app-tests.js','36EIUvZG','graphql','split','1739456GwKqVg','includes','search','test','features','746725USCQFd','4755910gSTppI'];a126c=function(){return r;};return a126c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a126o(0x81)]({'name':'layout','aliases':aliases,'usage':'maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[a126o(0x96)],'examples':[a126o(0x7a),'maka\x20g:l\x20web/safari']},async function(a,b){const p=a126o,c='/imports/ui/layouts',d=this['fsi'][p(0x65)](),e=this[p(0x92)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[p(0x84)]),paramCase(b[p(0x84)])]}),f=this[p(0x92)][p(0x7d)]();await this[p(0x92)][p(0x95)](f,async()=>{const q=p;typeof f[q(0x70)][q(0x8c)]===q(0x76)&&(f['template']['test']=f['template'][q(0x8c)]==='true'?!![]:![],this['fsi']['setTemplate'](q(0x8c),f[q(0x70)][q(0x8c)]));typeof f['template'][q(0x6a)]===q(0x76)&&(f['template'][q(0x6a)]=f[q(0x70)]['css']===q(0x9e)?!![]:![],this['fsi'][q(0x7b)]('css',f['template']['css']));typeof f[q(0x70)]['js']===q(0x76)&&(f[q(0x70)]['js']=f[q(0x70)]['js']===q(0x9e)?!![]:![],this[q(0x92)][q(0x7b)]('js',f[q(0x70)]['js']));!f[q(0x8d)]&&(f[q(0x8d)]={});const g=b['_']?b['_'][0x0][q(0x88)](':')[0x1]:![],h=b['_']&&aliases[q(0x8a)](g);h&&!this[q(0x75)]('ramda')&&(Log[q(0x9d)](q(0x74)),this[q(0x92)][q(0x94)](q(0x73),{'cwd':d}));if(h&&!this['checkNpmPackage'](q(0x77))){Log[q(0x9d)](q(0x93));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a126e[q(0x69)](this[q(0x92)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[q(0x84)]),'className':pascalCase(b[q(0x84)]),'camelCaseName':camelCase(b[q(0x84)]),'fileName':paramCase(b[q(0x84)]),'graphql':f[q(0x6c)][q(0x87)],'features':f[q(0x8d)],'client':f[q(0x6c)][q(0x91)],'api':f['engines'][q(0x7c)],'ssr':f[q(0x6c)][q(0x9a)],'test':f['engines']['test'],'theme':f[q(0x6c)][q(0x99)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x8d)][q(0x80)]};f[q(0x8d)]?.[q(0x72)]||b[q(0x96)]?await this['fsi']['template']({'srcPath':'hook/hook.js','destPath':e+'.js','framework':q(0x77),'context':i,'config':f}):await this[q(0x92)]['template']({'srcPath':'component/component.js','destPath':e+'.js','framework':q(0x77),'context':i,'config':f});f[q(0x6c)][q(0x8c)]!==q(0x78)&&await this[q(0x92)][q(0x70)]({'srcPath':'test/test.js','destPath':e+q(0x85),'framework':'react','context':i,'config':f});f[q(0x70)]['css']&&(await this[q(0x92)][q(0x70)]({'srcPath':q(0x6b),'destPath':e+q(0x6f),'context':Object[q(0x79)]({},i,{'className':paramCase(b[q(0x84)])}),'config':f}),await this['fsi'][q(0x90)]({'filePath':e+'.'+f[q(0x6c)]['js'],'content':q(0x83)+i['fileName']+'.'+f[q(0x6c)][q(0x6a)]+'\x27;'}));const j=b['dir']?'/'+b[q(0x9c)]+'/':'/',k=''+c+j+i[q(0x6d)]+'/'+i[q(0x6d)];await this[q(0x92)][q(0x98)](i[q(0x82)],f,k);});});
@@ -1 +1 @@
1
- const a127i=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xbc;let f=c[d];return f;},a127d(a,b);}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0xcb))/0x1+parseInt(f(0xd2))/0x2*(-parseInt(f(0xc3))/0x3)+parseInt(f(0xcd))/0x4*(-parseInt(f(0xc7))/0x5)+-parseInt(f(0xcc))/0x6+-parseInt(f(0xc6))/0x7+-parseInt(f(0xd0))/0x8*(parseInt(f(0xbe))/0x9)+parseInt(f(0xbc))/0xa*(parseInt(f(0xbf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x9eab9));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a['toString']()['search'](h(0xcf))[h(0xc2)]()[h(0xce)](a127a)[h(0xc4)]('(((.+)+)+)+$');});a127a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a127i(0xc8),'aliases':['g'],'usage':a127i(0xca),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':'Scaffold\x20various\x20parts\x20of\x20your\x20application','examples':[a127i(0xc0),a127i(0xbd),a127i(0xc5),'maka\x20g:package\x20package:name',a127i(0xd1),a127i(0xc9),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;function a127c(){const j=['constructor','(((.+)+)+)+$','1016WWvKub','maka\x20g:route\x20todos/edit','152778RdCIJn','10GjwGOq','maka\x20g:scaffold\x20todos','79686dFMFeA','34253153vWzvhv','maka\x20generate:scaffold\x20todos','apply','toString','27Tsreui','search','maka\x20g:template\x20todos/todo_item','593852xGVlNz','10YAYeCG','generate','maka\x20g:api\x20trucks','maka\x20{generate,\x20g}:<generator>\x20<name>','66659RIyBiL','1290660UxXMlA','570892EUXSYw'];a127c=function(){return j;};return a127c();}
1
+ const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0xf9))/0x1+-parseInt(f(0xea))/0x2*(-parseInt(f(0xfc))/0x3)+parseInt(f(0xf4))/0x4+parseInt(f(0xf6))/0x5+parseInt(f(0xf7))/0x6*(parseInt(f(0xf8))/0x7)+-parseInt(f(0xfe))/0x8*(parseInt(f(0xf2))/0x9)+parseInt(f(0xf5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x27c14));function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xea;let f=c[d];return f;},a127d(a,b);}const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0xfd)]()[h(0xff)](h(0xee))[h(0xfd)]()[h(0xfb)](a127a)[h(0xff)](h(0xee));});a127a();import{Generator}from'../generator.js';function a127c(){const j=['1541150FxsdVk','224040OxlsrR','12mUWKaY','85288oBTsAD','49241PmXiSo','apply','constructor','3NXlTlF','toString','530336STgwuc','search','269286NGTcNK','maka\x20g:scaffold\x20todos','maka\x20generate:scaffold\x20todos','maka\x20g:package\x20package:name','(((.+)+)+)+$','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:template\x20todos/todo_item','generate','27TcjhlH','maka\x20g:dbc\x20geoserver\x20--type=pgsql','212076jNnbNN'];a127c=function(){return j;};return a127c();}const MakaGen=new Generator({'name':a127i(0xf1),'aliases':['g'],'usage':'maka\x20{generate,\x20g}:<generator>\x20<name>','validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a127i(0xef),'examples':[a127i(0xec),a127i(0xeb),a127i(0xf0),a127i(0xed),'maka\x20g:route\x20todos/edit','maka\x20g:api\x20trucks',a127i(0xf3)]},function(){});export default MakaGen;
@@ -1 +1 @@
1
- const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=parseInt(j(0xec))/0x1+parseInt(j(0x103))/0x2*(-parseInt(j(0xf0))/0x3)+-parseInt(j(0x108))/0x4*(-parseInt(j(0x10d))/0x5)+-parseInt(j(0x109))/0x6+-parseInt(j(0x107))/0x7*(parseInt(j(0xfa))/0x8)+parseInt(j(0x10c))/0x9+parseInt(j(0x10b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x3a93d));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a['toString']()['search']('(((.+)+)+)+$')[l(0x104)]()['constructor'](a128a)[l(0xf8)]('(((.+)+)+)+$');});function a128c(){const p=['withValue','fsi','dir','import\x20\x27./methods','mdg:validated-method','28DPgBgM','toString','maka\x20{generate,\x20g}:{method,\x20m}\x20name','engines','14ttRMuc','36JNjfdO','1848660BiCkcz','method/method.js','3152140PGOXQJ','446292zfotxY','2950MIynCV','create','323593hClgzW','appPathPrefix','method','checkMeteorPackage','10236jpvZjN','imports','-rpc-method.','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','maka\x20g:method\x20todos','apply','error','resourceName','search','tsx','391576RrPhVQ','pathFromApp','startup','-rpc-method\x27;'];a128c=function(){return p;};return a128c();}function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xec;let f=c[d];return f;},a128d(a,b);}a128a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a128m(0x10e)]({'name':a128m(0xee),'aliases':['m'],'usage':a128m(0x105),'checkWhere':!![],'shortDesc':a128m(0xf3),'validOpts':[a128m(0x100)],'examples':[a128m(0xf4)]},async function(a,b){const n=a128m;try{const c=this['fsi']['getMakaProjectConfig']();await this[n(0xff)][n(0xfe)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0xf7)],'fileName':d,'className':pascalCase(b[o(0xf7)]),'camelCase':camelCase(b[o(0xf7)]),'noRename':!![]};let g='js';c[o(0x106)]['js']===o(0xf9)&&(g='ts');await this[o(0xff)][o(0xef)](['maka:check','ddp-rate-limiter',o(0x102)],{'shouldInstall':!![]}),await this[o(0xff)]['template']({'srcPath':o(0x10a),'destPath':this['fsi'][o(0xfb)]({'pathParts':[o(0xf1),o(0xfc),b[o(0xed)],'methods',b[o(0x100)],d+o(0xf2)+g]}),'context':f,'config':c});const h=b[o(0x100)]?'/'+b[o(0x100)]+'/':'/',i=this[o(0xff)][o(0xfb)]({'pathParts':['imports',o(0xfc),b['appPathPrefix'],'index.'+c[o(0x106)]['js']]});await this['fsi']['injectAtEndOfFile']({'filePath':i,'content':o(0x101)+h+d+o(0xfd)});});}catch(d){Log[n(0xf6)](d);}});
1
+ const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=parseInt(j(0x137))/0x1*(-parseInt(j(0x126))/0x2)+parseInt(j(0x12d))/0x3+-parseInt(j(0x125))/0x4*(parseInt(j(0x12c))/0x5)+-parseInt(j(0x13c))/0x6*(parseInt(j(0x13d))/0x7)+-parseInt(j(0x13a))/0x8+-parseInt(j(0x13b))/0x9*(-parseInt(j(0x12a))/0xa)+parseInt(j(0x142))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x2f398));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x121)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0x138)]()[l(0x135)]('(((.+)+)+)+$')[l(0x138)]()['constructor'](a128a)['search'](l(0x127));});a128a();function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x120;let f=c[d];return f;},a128d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a128m(0x12f),'aliases':['m'],'usage':a128m(0x120),'checkWhere':!![],'shortDesc':a128m(0x141),'validOpts':[a128m(0x128)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a128m;try{const c=this[n(0x132)]['getMakaProjectConfig']();await this[n(0x132)][n(0x133)](c,async()=>{const o=n,d=paramCase(b[o(0x136)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[o(0x136)]),'camelCase':camelCase(b[o(0x136)]),'noRename':!![]};let g='js';c[o(0x130)]['js']===o(0x123)&&(g='ts');await this[o(0x132)]['checkMeteorPackage']([o(0x131),'ddp-rate-limiter',o(0x140)],{'shouldInstall':!![]}),await this[o(0x132)][o(0x12b)]({'srcPath':o(0x124),'destPath':this[o(0x132)]['pathFromApp']({'pathParts':[o(0x13e),o(0x12e),b[o(0x139)],'methods',b[o(0x128)],d+o(0x129)+g]}),'context':f,'config':c});const h=b[o(0x128)]?'/'+b[o(0x128)]+'/':'/',i=this[o(0x132)][o(0x143)]({'pathParts':[o(0x13e),o(0x12e),b[o(0x139)],o(0x145)+c['engines']['js']]});await this[o(0x132)][o(0x13f)]({'filePath':i,'content':o(0x144)+h+d+o(0x122)});});}catch(d){Log[n(0x134)](d);}});function a128c(){const p=['apply','-rpc-method\x27;','tsx','method/method.js','4AoSRVZ','347864FbOVoQ','(((.+)+)+)+$','dir','-rpc-method.','277390IQKxXk','template','1459965eBOiSO','345720RvWJNW','startup','method','engines','maka:check','fsi','withValue','error','search','resourceName','2yZPLmC','toString','appPathPrefix','2998296aFlzJF','27yRSBfd','5118rTmBgS','1442JGlZjH','imports','injectAtEndOfFile','mdg:validated-method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','13038707zyoRly','pathFromApp','import\x20\x27./methods','index.','maka\x20{generate,\x20g}:{method,\x20m}\x20name'];a128c=function(){return p;};return a128c();}
@@ -1 +1 @@
1
- const a129o=a129d;(function(a,b){const l=a129d,c=a();while(!![]){try{const d=-parseInt(l(0xe1))/0x1*(parseInt(l(0xe7))/0x2)+-parseInt(l(0xd2))/0x3*(parseInt(l(0xe9))/0x4)+parseInt(l(0xdf))/0x5*(-parseInt(l(0xd8))/0x6)+-parseInt(l(0xdb))/0x7+-parseInt(l(0xc2))/0x8+parseInt(l(0xc9))/0x9+parseInt(l(0xe2))/0xa*(parseInt(l(0xe5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x23c33));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a129d;if(c){const e=c[m(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const n=a129d;return a129a[n(0xe0)]()[n(0xd7)](n(0xcc))[n(0xe0)]()['constructor'](a129a)[n(0xd7)](n(0xcc));});function a129c(){const r=['noRename','theme','(((.+)+)+)+$','create','packages','package/','relative','/client/','780vlzgLB','package','template/template.js','pathFromAppWithNoReWrite','resourceName','search','992874KOTSTs','package/package.js','graphql','1044981MSSKAi','getMakaProjectConfig','lib','store','5JmhgwI','toString','1bUfgcm','10LRKVtV','client','template','6920089MWeAky','apply','398690FbHHWU','.js','1268kpXaOw','tests/server','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','layout','maka\x20g:package\x20todos:package','server','hasOwnProperty','fsi','withValue','745904ooBxxL','pathFromApp','features','/package.js','pathFromProject','engines','dir','1864341jRKcrY'];a129c=function(){return r;};return a129c();}a129a();import a129e from'path';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0xbb;let f=c[d];return f;},a129d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a129o(0xcd)]({'name':a129o(0xd3),'aliases':['p'],'usage':a129o(0xbb),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':['dir'],'examples':[a129o(0xbd)]},async function(a,b){const p=a129o,c=paramCase(b[p(0xd6)]),d=this[p(0xc0)][p(0xc3)]({'pathParts':['packages',b[p(0xc8)],c]}),e=this[p(0xc0)][p(0xd5)]({'pathParts':[p(0xce),b[p(0xc8)],c,'package.js']}),f=this[p(0xc0)][p(0xdc)]();await this[p(0xc0)][p(0xc1)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xd6)]),'myPath':a129e[q(0xd0)](this[q(0xc0)][q(0xc6)]({}),d),'cssCaseName':paramCase(b[q(0xd6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0xc7)][q(0xe3)],'graphql':f[q(0xc7)][q(0xda)],'ssr':f[q(0xc7)]['ssr'],'isComponent':b[q(0xbf)]('component'),'isLayout':b[q(0xbf)](q(0xbc)),'isStore':b[q(0xbf)](q(0xde)),'features':f[q(0xc4)],'noRename':!![],'theme':f[q(0xc7)][q(0xcb)]};await this[q(0xc0)][q(0xe4)]({'srcPath':q(0xd9),'destPath':e,'context':g,'config':f}),g[q(0xca)]=![];const h=d+q(0xd1)+c+'.js';await this[q(0xc0)]['template']({'srcPath':q(0xd4),'destPath':h,'context':g,'config':f});const i=[q(0xdd),q(0xbe),'tests/client',q(0xea)];for(const j of i){const k=d+'/'+j+'/'+c+q(0xe8);await this[q(0xc0)]['template']({'srcPath':q(0xcf)+j+q(0xc5),'destPath':k,'context':g,'config':f});}});});
1
+ const a129o=a129d;function a129c(){const r=['graphql','component','store','205552nQAwUa','package.js','99PVvibR','168YYEzFc','package/','create','search','dir','packages','474264dmOdiq','package/package.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','resourceName','443585FOoDqt','576BfhxAs','toString','tests/server','template','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','client','withValue','45YTiqvc','8414UCOnQB','tests/client','fsi','65034FABMuA','theme','engines','pathFromApp','features','layout','package','apply','getMakaProjectConfig','hasOwnProperty','2jCUtzF','.js','ssr','constructor','3933610LAlQcI','7835MTzaKX','maka\x20g:package\x20todos:package','noRename','(((.+)+)+)+$'];a129c=function(){return r;};return a129c();}(function(a,b){const l=a129d,c=a();while(!![]){try{const d=-parseInt(l(0x198))/0x1+parseInt(l(0x17f))/0x2*(-parseInt(l(0x175))/0x3)+parseInt(l(0x18e))/0x4*(parseInt(l(0x184))/0x5)+-parseInt(l(0x199))/0x6*(-parseInt(l(0x172))/0x7)+-parseInt(l(0x18b))/0x8*(parseInt(l(0x171))/0x9)+parseInt(l(0x183))/0xa+-parseInt(l(0x18d))/0xb*(-parseInt(l(0x194))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x52294));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a129d;if(c){const e=c[m(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const n=a129d;return a129a[n(0x19a)]()[n(0x191)](n(0x187))['toString']()[n(0x182)](a129a)[n(0x191)]('(((.+)+)+)+$');});a129a();import a129e from'path';import{Generator}from'../generator.js';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x16e;let f=c[d];return f;},a129d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a129o(0x190)]({'name':a129o(0x17b),'aliases':['p'],'usage':a129o(0x196),'shortDesc':a129o(0x16e),'validOpts':[a129o(0x192)],'examples':[a129o(0x185)]},async function(a,b){const p=a129o,c=paramCase(b[p(0x197)]),d=this[p(0x174)][p(0x178)]({'pathParts':[p(0x193),b[p(0x192)],c]}),e=this[p(0x174)]['pathFromAppWithNoReWrite']({'pathParts':[p(0x193),b[p(0x192)],c,p(0x18c)]}),f=this[p(0x174)][p(0x17d)]();await this[p(0x174)][p(0x170)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x197)]),'myPath':a129e['relative'](this[q(0x174)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x197)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x197)]),'fileName':c,'client':f[q(0x177)][q(0x16f)],'graphql':f[q(0x177)][q(0x188)],'ssr':f[q(0x177)][q(0x181)],'isComponent':b['hasOwnProperty'](q(0x189)),'isLayout':b[q(0x17e)](q(0x17a)),'isStore':b[q(0x17e)](q(0x18a)),'features':f[q(0x179)],'noRename':!![],'theme':f[q(0x177)][q(0x176)]};await this[q(0x174)]['template']({'srcPath':q(0x195),'destPath':e,'context':g,'config':f}),g[q(0x186)]=![];const h=d+'/client/'+c+q(0x180);await this['fsi'][q(0x19c)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib','server',q(0x173),q(0x19b)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x180);await this[q(0x174)][q(0x19c)]({'srcPath':q(0x18f)+j+'/package.js','destPath':k,'context':g,'config':f});}});});
@@ -1 +1 @@
1
- const a130l=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x103))/0x1*(parseInt(j(0xff))/0x2)+parseInt(j(0x11a))/0x3*(-parseInt(j(0x125))/0x4)+-parseInt(j(0x113))/0x5+parseInt(j(0xe1))/0x6+-parseInt(j(0x112))/0x7*(parseInt(j(0x104))/0x8)+-parseInt(j(0x107))/0x9+parseInt(j(0x119))/0xa*(parseInt(j(0xec))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xe0ea5));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const k=a130d;return a130a[k(0x10a)]()['search']('(((.+)+)+)+$')[k(0x10a)]()[k(0xf2)](a130a)[k(0xfb)](k(0x124));});a130a();function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0xe1;let f=c[d];return f;},a130d(a,b);}import a130e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a130f from'../generators/maka.gen.js';function a130c(){const o=['injectAtBeginningOfFile','relative','7370676RNvvxS','import\x20\x27./','resourceName','assign','Updating\x20npm\x20packages\x20...','.js','.css','css','template/template.html','string','withHook','339592Ynixjq','withTranslations','engines','api','component/component.js','ssr','constructor','setTemplate','none','getMakaProjectConfig','true','create','fsi','dir','withHooks','search','fileName','graphql','pages','2lXkcdS','layouts','template','store','209645abJydS','407096DrJRvu','hook/hook.js','findAppDirectory','11764971mjmuqk','pathFromApp','maka\x20g:page\x20todos/todos-item','toString','installNpmPackage','html','ramda','processAndRunGenerator','layout','.app-tests.js','theme','70XLTaeE','6985430BCzntE','baseDir','className','/imports/ui/','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','page','1040iZcodt','3laUgxx','route','components','hasOwnProperty','test','hooks','vanilla','warn','injectTemplateModule','withValue','(((.+)+)+)+$','380244dHWglx','root','features','.html','test/test.js','Generate\x20a\x20page.','client','checkNpmPackage','component','react'];a130c=function(){return o;};return a130c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a130l(0xf7)]({'name':a130l(0x118),'aliases':aliases,'usage':a130l(0x117),'shortDesc':a130l(0x12a),'validOpts':[{'name':a130l(0x114),'values':[a130l(0x11f),a130l(0x11c),a130l(0xfe),a130l(0x100)]},{'name':'withHook','boolFlag':!![]}],'examples':[a130l(0x109)]},async function(a,b){const m=a130l,c=b[m(0x114)]?m(0x116)+b[m(0x114)]:'/imports/ui/pages',d=this[m(0xf8)][m(0x106)](),e=this[m(0xf8)][m(0x108)]({'pathParts':[c,b[m(0xf9)],paramCase(b[m(0xe3)]),paramCase(b[m(0xe3)])]}),f=this[m(0xf8)][m(0xf5)]();let g='';return await this[m(0xf8)][m(0x123)](f,async()=>{const n=m;typeof f[n(0x101)][n(0x10c)]===n(0xea)&&(f[n(0x101)]['html']=f[n(0x101)][n(0x10c)]==='true'?!![]:![],this[n(0xf8)][n(0xf3)](n(0x10c),f[n(0x101)][n(0x10c)]));typeof f[n(0x101)][n(0x11e)]==='string'&&(f[n(0x101)][n(0x11e)]=f[n(0x101)]['test']===n(0xf6)?!![]:![],this[n(0xf8)]['setTemplate'](n(0x11e),f['template'][n(0x11e)]));typeof f['template'][n(0xe8)]===n(0xea)&&(f[n(0x101)][n(0xe8)]=f[n(0x101)][n(0xe8)]===n(0xf6)?!![]:![],this['fsi'][n(0xf3)](n(0xe8),f[n(0x101)][n(0xe8)]));typeof f[n(0x101)]['js']===n(0xea)&&(f[n(0x101)]['js']=f['template']['js']===n(0xf6)?!![]:![],this[n(0xf8)][n(0xf3)]('js',f[n(0x101)]['js']));!f[n(0x127)]&&(f['features']={});!b[n(0x126)]&&!this[n(0xf8)][n(0x12c)](n(0x10d))&&(Log[n(0x121)](n(0xe5)),this[n(0xf8)][n(0x10b)](n(0x10d),{'cwd':d}));const h={'name':pascalCase(b[n(0xe3)]),'myPath':a130e[n(0x130)](this[n(0xf8)]['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[n(0xe3)]),'camelCaseName':camelCase(b[n(0xe3)]),'fileName':paramCase(b[n(0xe3)]),'graphql':f[n(0xee)][n(0xfd)],'features':f[n(0x127)],'client':f[n(0xee)][n(0x12b)],'api':f['engines'][n(0xef)],'ssr':f[n(0xee)][n(0xf1)],'isStore':b['hasOwnProperty'](n(0x102)),'isComponent':b[n(0x11d)](n(0x12d)),'isLayout':b['hasOwnProperty'](n(0x10f)),'withTranslations':f[n(0x127)][n(0xed)],'test':f[n(0xee)][n(0x11e)],'theme':f[n(0xee)][n(0x111)]};f[n(0x101)][n(0x10c)]&&await this['fsi'][n(0x101)]({'srcPath':n(0xe9),'destPath':e+n(0x128),'context':h,'config':f});f[n(0x127)]?.[n(0xfa)]||b[n(0xeb)]?await this[n(0xf8)][n(0x101)]({'srcPath':n(0x105),'destPath':e+'.js','framework':n(0x12e),'context':h,'config':f}):await this['fsi'][n(0x101)]({'srcPath':n(0xf0),'destPath':e+n(0xe6),'framework':'react','context':h,'config':f});f[n(0xee)][n(0x11e)]!==n(0xf4)&&await this[n(0xf8)][n(0x101)]({'srcPath':n(0x129),'destPath':e+n(0x110),'framework':n(0x12e),'context':h,'config':f});f[n(0x101)][n(0xe8)]&&await this[n(0xf8)][n(0x101)]({'srcPath':'template/template.css','destPath':e+n(0xe7),'context':Object[n(0xe4)]({},h,{'className':paramCase(b[n(0xe3)])}),'config':f});f[n(0xee)][n(0x12b)]!==n(0x12e)&&f[n(0xee)][n(0x12b)]!==n(0x120)?(f[n(0x101)][n(0xe8)]&&await this[n(0xf8)][n(0x12f)]({'filePath':e+'.'+f[n(0xee)]['js'],'content':n(0xe2)+h[n(0xfc)]+'.'+f[n(0xee)][n(0x10c)]+'\x27;\x0a'+n(0xe2)+h[n(0xfc)]+'.'+f[n(0xee)][n(0xe8)]+'\x27;'}),!f[n(0x101)][n(0xe8)]&&await this[n(0xf8)][n(0x12f)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+h[n(0xfc)]+'.'+f[n(0xee)][n(0x10c)]+'\x27;'})):f['template'][n(0xe8)]&&await this[n(0xf8)][n(0x12f)]({'filePath':e+'.'+f['engines']['js'],'content':n(0xe2)+h[n(0xfc)]+'.'+f[n(0xee)][n(0xe8)]+'\x27;'});const i=b[n(0xf9)]?'/'+b[n(0xf9)]+'/':'/';g=''+c+i+h[n(0xfc)]+'/'+h[n(0xfc)],await this['fsi'][n(0x122)](h[n(0x115)],f,g),!b[n(0x126)]&&await a130f[n(0x10e)](n(0x11b),[i+b['resourceName']],b);}),g+'.'+f['engines']['js'];});
1
+ const a130m=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(0x14d))/0x1*(-parseInt(j(0x145))/0x2)+parseInt(j(0x150))/0x3+-parseInt(j(0x136))/0x4*(-parseInt(j(0x13c))/0x5)+-parseInt(j(0x123))/0x6+parseInt(j(0x147))/0x7+parseInt(j(0x15a))/0x8+parseInt(j(0x127))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x8d0de));function a130c(){const p=['true','(((.+)+)+)+$','790dQEwGy','apply','2911811OOWMEq','layouts','theme','relative','hooks','Updating\x20npm\x20packages\x20...','2513wlbYhD','root','vanilla','55521UCdodt','react','injectAtBeginningOfFile','injectTemplateModule','graphql','Generate\x20a\x20page.','fileName','test/test.js','import\x20\x27./','none','5670784TMBuEf','hook/hook.js','constructor','engines','html','.css','css','pathFromApp','template/template.css','page','setTemplate','search','features','warn','assign','4299108eUSurT','withTranslations','pages','withHooks','5899671qOlczg','/imports/ui/pages','fsi','baseDir','\x27;\x0a','client','checkNpmPackage','ramda','resourceName','installNpmPackage','component/component.js','test','route','store','className','1312VDvGjf','maka\x20g:page\x20todos/todos-item','withHook','ssr','components','dir','7440jyIOmX','component','hasOwnProperty','.app-tests.js','processAndRunGenerator','string','template'];a130c=function(){return p;};return a130c();}const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a['toString']()[l(0x11f)](l(0x144))['toString']()[l(0x15c)](a130a)[l(0x11f)](l(0x144));});a130a();import a130e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a130f from'../generators/maka.gen.js';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x11b;let f=c[d];return f;},a130d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a130m(0x11d),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a130m(0x155),'validOpts':[{'name':a130m(0x12a),'values':[a130m(0x14b),a130m(0x13a),a130m(0x125),a130m(0x148)]},{'name':'withHook','boolFlag':!![]}],'examples':[a130m(0x137)]},async function(a,b){const n=a130m,c=b['baseDir']?'/imports/ui/'+b[n(0x12a)]:n(0x128),d=this[n(0x129)]['findAppDirectory'](),e=this[n(0x129)][n(0x11b)]({'pathParts':[c,b['dir'],paramCase(b[n(0x12f)]),paramCase(b[n(0x12f)])]}),f=this[n(0x129)]['getMakaProjectConfig']();let g='';return await this['fsi']['withValue'](f,async()=>{const o=n;typeof f[o(0x142)][o(0x15e)]===o(0x141)&&(f[o(0x142)][o(0x15e)]=f[o(0x142)][o(0x15e)]==='true'?!![]:![],this[o(0x129)][o(0x11e)]('html',f[o(0x142)][o(0x15e)]));typeof f['template'][o(0x132)]===o(0x141)&&(f[o(0x142)][o(0x132)]=f[o(0x142)][o(0x132)]==='true'?!![]:![],this['fsi'][o(0x11e)](o(0x132),f[o(0x142)][o(0x132)]));typeof f[o(0x142)][o(0x160)]===o(0x141)&&(f['template'][o(0x160)]=f[o(0x142)]['css']==='true'?!![]:![],this['fsi'][o(0x11e)](o(0x160),f[o(0x142)][o(0x160)]));typeof f[o(0x142)]['js']===o(0x141)&&(f[o(0x142)]['js']=f[o(0x142)]['js']===o(0x143)?!![]:![],this[o(0x129)]['setTemplate']('js',f[o(0x142)]['js']));!f['features']&&(f['features']={});!b[o(0x14e)]&&!this[o(0x129)][o(0x12d)](o(0x12e))&&(Log[o(0x121)](o(0x14c)),this[o(0x129)][o(0x130)]('ramda',{'cwd':d}));const h={'name':pascalCase(b[o(0x12f)]),'myPath':a130e[o(0x14a)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[o(0x12f)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x12f)]),'graphql':f['engines'][o(0x154)],'features':f[o(0x120)],'client':f[o(0x15d)]['client'],'api':f[o(0x15d)]['api'],'ssr':f['engines'][o(0x139)],'isStore':b[o(0x13e)](o(0x134)),'isComponent':b[o(0x13e)](o(0x13d)),'isLayout':b[o(0x13e)]('layout'),'withTranslations':f[o(0x120)][o(0x124)],'test':f[o(0x15d)][o(0x132)],'theme':f[o(0x15d)][o(0x149)]};f[o(0x142)][o(0x15e)]&&await this[o(0x129)][o(0x142)]({'srcPath':'template/template.html','destPath':e+'.html','context':h,'config':f});f[o(0x120)]?.[o(0x126)]||b[o(0x138)]?await this[o(0x129)][o(0x142)]({'srcPath':o(0x15b),'destPath':e+'.js','framework':o(0x151),'context':h,'config':f}):await this[o(0x129)]['template']({'srcPath':o(0x131),'destPath':e+'.js','framework':'react','context':h,'config':f});f['engines'][o(0x132)]!==o(0x159)&&await this[o(0x129)][o(0x142)]({'srcPath':o(0x157),'destPath':e+o(0x13f),'framework':'react','context':h,'config':f});f[o(0x142)][o(0x160)]&&await this[o(0x129)][o(0x142)]({'srcPath':o(0x11c),'destPath':e+o(0x15f),'context':Object[o(0x122)]({},h,{'className':paramCase(b[o(0x12f)])}),'config':f});f['engines'][o(0x12c)]!=='react'&&f[o(0x15d)]['client']!==o(0x14f)?(f[o(0x142)][o(0x160)]&&await this[o(0x129)][o(0x152)]({'filePath':e+'.'+f[o(0x15d)]['js'],'content':o(0x158)+h[o(0x156)]+'.'+f[o(0x15d)]['html']+o(0x12b)+o(0x158)+h[o(0x156)]+'.'+f[o(0x15d)][o(0x160)]+'\x27;'}),!f['template'][o(0x160)]&&await this[o(0x129)][o(0x152)]({'filePath':e+'.'+f[o(0x15d)]['js'],'content':o(0x158)+h[o(0x156)]+'.'+f['engines'][o(0x15e)]+'\x27;'})):f['template'][o(0x160)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x15d)]['js'],'content':o(0x158)+h['fileName']+'.'+f['engines']['css']+'\x27;'});const i=b[o(0x13b)]?'/'+b[o(0x13b)]+'/':'/';g=''+c+i+h[o(0x156)]+'/'+h[o(0x156)],await this[o(0x129)][o(0x153)](h[o(0x135)],f,g),!b[o(0x14e)]&&await a130f[o(0x140)](o(0x133),[i+b[o(0x12f)]],b);}),g+'.'+f[n(0x15d)]['js'];});
@@ -1 +1 @@
1
- const a131o=a131d;function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a131d(a,b);}(function(a,b){const m=a131d,c=a();while(!![]){try{const d=parseInt(m(0x1bc))/0x1+parseInt(m(0x1cd))/0x2*(-parseInt(m(0x1d0))/0x3)+-parseInt(m(0x1dc))/0x4+parseInt(m(0x1bd))/0x5+-parseInt(m(0x1cf))/0x6+parseInt(m(0x1c2))/0x7*(-parseInt(m(0x1be))/0x8)+-parseInt(m(0x1db))/0x9*(-parseInt(m(0x1c0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x3b35c));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const n=a131d;return a131a[n(0x1d6)]()[n(0x1d2)](n(0x1d8))[n(0x1d6)]()['constructor'](a131a)[n(0x1d2)](n(0x1d8));});a131a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a131c(){const r=['withValue','pathFromApp','appPathPrefix','132168duSMiy','227465PzXHaS','586728fmppuc','imports','9085690CchrnQ','injectAtEndOfFile','14uscyXO','maka\x20g:publish\x20todos','dir','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','force','fsi','tsx','error','getMakaProjectConfig','index.','engines','250348DffoKU','startup','1486764iBiFgZ','3IgpVxa','baseDir','search','server','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','globalPublish','toString','import\x20\x27./publications','(((.+)+)+)+$','exit','resourceName','9krlRpL','1296224cNybMa'];a131c=function(){return r;};return a131c();}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'publish','aliases':['p'],'usage':a131o(0x1d4),'shortDesc':a131o(0x1c5),'validOpts':['force',a131o(0x1d5)],'examples':[a131o(0x1c3)]},async function(a,b){const p=a131o;try{const c=b[p(0x1c6)]||![],d=b[p(0x1d1)]?'/imports/ui/'+b['baseDir']:'/imports/startup/server/publications',f=this[p(0x1c7)][p(0x1ca)](),g=paramCase(b[p(0x1da)]),h=this[p(0x1c7)][p(0x1ba)]({'pathParts':[d,b[p(0x1c4)],'',g]});let i='js';f[p(0x1cc)]['js']===p(0x1c8)&&(i='ts');await this[p(0x1c7)][p(0x1dd)](f,async()=>{const q=p,l={'name':b['resourceName'],'collection':pascalCase(b[q(0x1da)]),'noRename':!![],'globalPublish':b['globalPublish']};await this[q(0x1c7)]['template']({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[p(0x1c7)][p(0x1ba)]({'pathParts':[p(0x1bf),p(0x1ce),p(0x1d3),b[p(0x1bb)],p(0x1cb)+f[p(0x1cc)]['js']]}),k=b[p(0x1c4)]?'/'+b[p(0x1c4)]+'/':'/';return await this[p(0x1c7)][p(0x1c1)]({'filePath':j,'content':p(0x1d7)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[p(0x1c9)](l),process[p(0x1d9)](0x1);}});
1
+ const a131p=a131d;(function(a,b){const m=a131d,c=a();while(!![]){try{const d=parseInt(m(0x111))/0x1+-parseInt(m(0x101))/0x2*(-parseInt(m(0x115))/0x3)+-parseInt(m(0xf9))/0x4*(-parseInt(m(0xfc))/0x5)+parseInt(m(0xf4))/0x6*(parseInt(m(0xfb))/0x7)+-parseInt(m(0xfe))/0x8*(-parseInt(m(0x108))/0x9)+parseInt(m(0xf3))/0xa*(parseInt(m(0x113))/0xb)+-parseInt(m(0x112))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xaa0a0));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a131d;if(c){const e=c[n(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const o=a131d;return a131a['toString']()['search']('(((.+)+)+)+$')['toString']()[o(0xfa)](a131a)[o(0x10d)]('(((.+)+)+)+$');});a131a();import{paramCase,pascalCase}from'change-case';function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0xf2;let f=c[d];return f;},a131d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a131c(){const s=['354mTmiKf','getMakaProjectConfig','import\x20\x27./publications','force','globalPublish','4948BCizGT','constructor','46557nlTCZY','2345uSMijh','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','104lavCfQ','resourceName','dir','2674kvDZEl','imports','error','maka\x20g:publish\x20todos','baseDir','template','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','888201VBgHNh','injectAtEndOfFile','engines','exit','appPathPrefix','search','pathFromApp','withValue','server','26482nhcidf','35051400ZHLadn','11ZMnWFe','publish/publish.js','177JxPkym','fsi','/imports/startup/server/publications','apply','/imports/ui/','12565460EEIEUI'];a131c=function(){return s;};return a131c();}Generator['create']({'name':'publish','aliases':['p'],'usage':a131p(0x107),'shortDesc':a131p(0xfd),'validOpts':[a131p(0xf7),a131p(0xf8)],'examples':[a131p(0x104)]},async function(a,b){const q=a131p;try{const c=b['force']||![],d=b[q(0x105)]?q(0xf2)+b[q(0x105)]:q(0x117),f=this[q(0x116)][q(0xf5)](),g=paramCase(b[q(0xff)]),h=this[q(0x116)][q(0x10e)]({'pathParts':[d,b[q(0x100)],'',g]});let i='js';f[q(0x10a)]['js']==='tsx'&&(i='ts');await this[q(0x116)][q(0x10f)](f,async()=>{const r=q,l={'name':b[r(0xff)],'collection':pascalCase(b[r(0xff)]),'noRename':!![],'globalPublish':b[r(0xf8)]};await this[r(0x116)][r(0x106)]({'srcPath':r(0x114),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this['fsi'][q(0x10e)]({'pathParts':[q(0x102),'startup',q(0x110),b[q(0x10c)],'index.'+f['engines']['js']]}),k=b[q(0x100)]?'/'+b[q(0x100)]+'/':'/';return await this[q(0x116)][q(0x109)]({'filePath':j,'content':q(0xf6)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x103)](l),process[q(0x10b)](0x1);}});