@maka/maka-cli 4.12.13 → 4.12.15

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 (158) 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/tool.js +1 -1
  140. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  141. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/https/https.class.js +1 -1
  148. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  149. package/bundle/obf/src/tools/log/log.class.js +1 -1
  150. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/options/options.class.js +1 -1
  152. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  153. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  158. package/package.json +1 -1
@@ -1 +1 @@
1
- const a116r=a116d;function a116c(){const u=['withValue','export\x20const\x20AuthProvider','kit/auth/service/meteor-auth-service.js','useTracker','publish','\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\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','constructor','\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','meteor','meteor/meteor','9563823yEEmfJ','fsi','AuthService','checkMeteorPackage','/imports/startup/client','pathFromApp','56kjrFEY','findProjectDirectory','getMakaProjectConfig','172PESGCG','362312ibQByE','119359ZAixlq','const\x20registerNewUser','engines','toString','/imports/startup/lib','react','imports','1317qeHDme','/imports/startup/client/authentication-service','Meteor','REACT','12BUhcGh','10GvwxTX','const\x20getUserAuthorizations','meteor/accounts-base','server','const\x20sendForgotPasswordEmail','injectImport','alanning:roles','\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','4751250PRuppc','processAndRunGenerator','injectIntoCodeBlock','\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','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','Meteor.publish','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','exit','.js','accounts-password','search','(((.+)+)+)+$','create','const\x20authenticateUser','force','\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','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','17967983BZeEhx','apply','template','6044795ahYYfb','/imports/startup/lib/authentication-service','error','startup','ssr','const\x20authenticateToken','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','injectIntoFile','kit:auth:provider'];a116c=function(){return u;};return a116c();}(function(a,b){const o=a116d,c=a();while(!![]){try{const d=-parseInt(o(0x8e))/0x1*(parseInt(o(0x99))/0x2)+parseInt(o(0x95))/0x3*(-parseInt(o(0x8c))/0x4)+parseInt(o(0xb6))/0x5+-parseInt(o(0xa2))/0x6+-parseInt(o(0x89))/0x7*(-parseInt(o(0x8d))/0x8)+-parseInt(o(0x83))/0x9*(parseInt(o(0x9a))/0xa)+parseInt(o(0xb3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x96303));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a116d;if(c){const e=c[p(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const q=a116d;return a116a[q(0x91)]()['search']('(((.+)+)+)+$')[q(0x91)]()[q(0x7f)](a116a)[q(0xac)](q(0xad));});a116a();function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x7c;let f=c[d];return f;},a116d(a,b);}import{Generator}from'../../../generator.js';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(0xae)]({'name':a116r(0x81),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','shortDesc':a116r(0xbc),'validOpts':[a116r(0xb0)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a116r(0x98)]},'description':a116r(0x80)},async function(a,b){const s=a116r;try{const c=b[s(0xb0)]||![];await this[s(0x84)][s(0x86)]([s(0xab),s(0xa0)],{'shouldInstall':!![]});const d=this[s(0x84)][s(0x8a)](),f=this[s(0x84)][s(0x8b)](),g=f[s(0x90)][s(0xba)]==='true';await a116f[s(0xa3)](s(0xbe),[],{'force':c,'cwd':d,'config':f});const h=await a116f[s(0xa3)](s(0x7c),['auth/roles'],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?s(0x92):s(0x87),j=this['fsi'][s(0x88)]({'pathParts':[i,'','','authentication-service']});await this[s(0x84)][s(0xbf)](f,async()=>{const t=s;await this[t(0x84)][t(0xb5)]({'srcPath':t(0xc1),'destPath':j+t(0xaa),'framework':t(0x93),'context':{},'config':f,'force':c,'ignore':![]});});const k=this[s(0x84)][s(0x88)]({'pathParts':[i,'','','authentication-provider']}),l=f[s(0x90)]['js'];await this[s(0x84)]['injectImport']({'filePath':k+'.'+l,'importName':s(0x85),'modulePath':g?s(0xb7):s(0x96),'isNamedExport':![]}),await this[s(0x84)][s(0xa4)]({'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(0xaf),'replace':!![]}),await this['fsi'][s(0xa4)]({'filePath':k+'.'+l,'content':s(0xb1),'begin':s(0xbb),'replace':!![]}),await this[s(0x84)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':s(0x7d),'begin':s(0x9b),'replace':!![]}),await this['fsi'][s(0xa4)]({'filePath':k+'.'+l,'content':s(0xa8),'begin':'const\x20deauthenticateUser','replace':!![]}),await this[s(0x84)][s(0xa4)]({'filePath':k+'.'+l,'content':s(0xa6),'begin':s(0x9e),'replace':!![]}),await this['fsi'][s(0xa4)]({'filePath':k+'.'+l,'content':s(0xb2),'begin':s(0x8f),'replace':!![]}),await this[s(0x84)][s(0xa4)]({'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':'const\x20resetPasswordWithToken','replace':!![]});g&&(await this[s(0x84)][s(0x9f)]({'filePath':k+'.'+l,'importName':s(0xc2),'modulePath':'meteor/maka:react-tracker','isNamedExport':!![]}),await this[s(0x84)][s(0xbd)]({'filePath':k+'.'+l,'content':s(0xa1),'begin':s(0xc0),'end':'return\x20\x5c('}));await this[s(0x84)]['injectImport']({'filePath':h,'importName':s(0x97),'modulePath':s(0x82),'isNamedExport':!![],'injectAtStart':!![]}),await this[s(0x84)]['injectIntoCodeBlock']({'filePath':h,'content':s(0xa5),'begin':s(0xa7),'replace':!![]});const m=this[s(0x84)][s(0x88)]({'pathParts':[s(0x94),s(0xb9),s(0x9d),'index']});await this[s(0x84)]['injectImport']({'filePath':m+'.'+l,'importName':'Accounts','modulePath':s(0x9c),'isNamedExport':!![]}),await this[s(0x84)][s(0xa4)]({'filePath':m+'.'+l,'content':s(0x7e),'begin':'Meteor.startup','replace':!![]});}catch(n){Log[s(0xb8)](n),process[s(0xa9)](0x1);}},async function(){},a116e);
1
+ const a116q=a116d;(function(a,b){const o=a116d,c=a();while(!![]){try{const d=parseInt(o(0x16e))/0x1+parseInt(o(0x17c))/0x2*(-parseInt(o(0x17a))/0x3)+parseInt(o(0x162))/0x4+-parseInt(o(0x14c))/0x5*(parseInt(o(0x171))/0x6)+parseInt(o(0x16b))/0x7*(parseInt(o(0x156))/0x8)+-parseInt(o(0x144))/0x9+-parseInt(o(0x147))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x1aea9));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(0x167)]()[p(0x17b)](p(0x155))[p(0x167)]()[p(0x15a)](a116a)['search'](p(0x155));});function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x141;let f=c[d];return f;},a116d(a,b);}a116a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a116e from'./auth.generator.js';import a116f from'../../../generators/maka.gen.js';function a116c(){const t=['true','return\x20\x5c(','pathFromApp','constructor','exit','/imports/startup/lib/authentication-service','server','meteor/accounts-base','ssr','\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','\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','769956BoYfUM','const\x20resetPasswordWithToken','findProjectDirectory','/imports/startup/client/authentication-service','injectIntoCodeBlock','toString','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.registerNewUser(email,\x20password);\x0a\x20\x20\x20\x20\x20\x20','index','const\x20getUserAuthorizations','765779KKZRfu','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{meteor,\x20m}','meteor','189281ryRRIg','engines','REACT','12TlEFEz','const\x20deauthenticateUser','\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20AuthService.resetPasswordWithToken(token,\x20password);\x0a\x20\x20\x20\x20\x20\x20','withValue','\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','getMakaProjectConfig','injectImport','authentication-service','export\x20const\x20AuthProvider','654393xMlcMV','search','2svqGcb','react','Meteor','const\x20sendForgotPasswordEmail','force','fsi','Accounts','kit:auth:provider','1256400LQyfPf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.sendForgotPasswordEmail(email);\x0a\x20\x20\x20\x20\x20\x20','publish','1315560EwgQBt','processAndRunGenerator','/imports/startup/client','meteor/maka:react-tracker','.js','2570Ljdqpk','\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','\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','const\x20authenticateUser','accounts-password','Meteor.publish','checkMeteorPackage','useTracker','injectIntoFile','(((.+)+)+)+$','16KYTPkj'];a116c=function(){return t;};return a116c();}import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator['create']({'name':a116q(0x16d),'aliases':['m'],'usage':a116q(0x16c),'shortDesc':'Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context\x20using\x20Meteors\x20default\x20accounts\x20system.','validOpts':[a116q(0x180)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a116q(0x170)]},'description':a116q(0x161)},async function(a,b){const r=a116q;try{const c=b['force']||![];await this[r(0x141)][r(0x152)]([r(0x150),'alanning:roles'],{'shouldInstall':!![]});const d=this[r(0x141)][r(0x164)](),f=this[r(0x141)][r(0x176)](),g=f['engines'][r(0x15f)]===r(0x157);await a116f[r(0x148)](r(0x143),[],{'force':c,'cwd':d,'config':f});const h=await a116f[r(0x148)](r(0x146),['auth/roles'],{'force':c,'globalPublish':!![],'cwd':d,'config':f}),i=g?'/imports/startup/lib':r(0x149),j=this[r(0x141)]['pathFromApp']({'pathParts':[i,'','',r(0x178)]});await this[r(0x141)][r(0x174)](f,async()=>{const s=r;await this[s(0x141)]['template']({'srcPath':'kit/auth/service/meteor-auth-service.js','destPath':j+s(0x14b),'framework':s(0x17d),'context':{},'config':f,'force':c,'ignore':![]});});const k=this['fsi']['pathFromApp']({'pathParts':[i,'','','authentication-provider']}),l=f[r(0x16f)]['js'];await this[r(0x141)][r(0x177)]({'filePath':k+'.'+l,'importName':'AuthService','modulePath':g?r(0x15c):r(0x165),'isNamedExport':![]}),await this['fsi']['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':r(0x160),'begin':r(0x14f),'replace':!![]}),await this[r(0x141)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':r(0x14e),'begin':'const\x20authenticateToken','replace':!![]}),await this[r(0x141)][r(0x166)]({'filePath':k+'.'+l,'content':'\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','begin':r(0x16a),'replace':!![]}),await this[r(0x141)][r(0x166)]({'filePath':k+'.'+l,'content':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20await\x20AuthService.deauthenticateUser();\x0a\x20\x20\x20\x20\x20\x20','begin':r(0x172),'replace':!![]}),await this[r(0x141)][r(0x166)]({'filePath':k+'.'+l,'content':r(0x145),'begin':r(0x17f),'replace':!![]}),await this[r(0x141)]['injectIntoCodeBlock']({'filePath':k+'.'+l,'content':r(0x168),'begin':'const\x20registerNewUser','replace':!![]}),await this[r(0x141)][r(0x166)]({'filePath':k+'.'+l,'content':r(0x173),'begin':r(0x163),'replace':!![]});g&&(await this['fsi'][r(0x177)]({'filePath':k+'.'+l,'importName':r(0x153),'modulePath':r(0x14a),'isNamedExport':!![]}),await this[r(0x141)][r(0x154)]({'filePath':k+'.'+l,'content':r(0x14d),'begin':r(0x179),'end':r(0x158)}));await this[r(0x141)]['injectImport']({'filePath':h,'importName':r(0x17e),'modulePath':'meteor/meteor','isNamedExport':!![],'injectAtStart':!![]}),await this[r(0x141)][r(0x166)]({'filePath':h,'content':r(0x175),'begin':r(0x151),'replace':!![]});const m=this[r(0x141)][r(0x159)]({'pathParts':['imports','startup',r(0x15d),r(0x169)]});await this[r(0x141)][r(0x177)]({'filePath':m+'.'+l,'importName':r(0x142),'modulePath':r(0x15e),'isNamedExport':!![]}),await this[r(0x141)][r(0x166)]({'filePath':m+'.'+l,'content':'\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','begin':'Meteor.startup','replace':!![]});}catch(n){Log['error'](n),process[r(0x15b)](0x1);}},async function(){},a116e);
@@ -1 +1 @@
1
- const a117x=a117d;(function(a,b){const u=a117d,c=a();while(!![]){try{const d=parseInt(u(0x209))/0x1+-parseInt(u(0x203))/0x2*(-parseInt(u(0x202))/0x3)+parseInt(u(0x1e7))/0x4+parseInt(u(0x1fc))/0x5+-parseInt(u(0x1e3))/0x6+parseInt(u(0x1e9))/0x7+-parseInt(u(0x204))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x75351));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a117d;if(c){const e=c[v(0x20c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const w=a117d;return a117a['toString']()[w(0x1ef)](w(0x1f0))[w(0x1ee)]()['constructor'](a117a)[w(0x1ef)](w(0x1f0));});a117a();import{Generator}from'../../../generator.js';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a117d(a,b);}import{Log}from'../../../tools/log/log.class.js';function a117c(){const A=['fsi','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','</AuthProvider>','\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','3794090BjMjgI','bright','react','/imports/startup/client','pathFromApp','engines','404715qitnkX','2AderbL','8157560qoerDk','/imports/startup/client/index','/routes','create','kit/auth/provider/authentication-provider.js','561601DKnVmH','split','function\x20Routes','apply','ssr','injectImport','Creating\x20an\x20AuthProvider\x20and\x20AuthContext','/imports/startup/client/authentication-provider','withValue','REACT','/imports/startup/server/index','/imports/startup/lib','4666182JCmCsh','replaceAll','appName','error','360188prYXdK','/imports/startup/lib/authentication-provider','5124714yZrJMz','<Routes\x20history={history}/>','.js','force','true','toString','search','(((.+)+)+)+$','template','authentication-provider','injectAroundString','<AuthProvider>','getMakaProjectConfig','injectIntoCodeBlock','\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'];a117c=function(){return A;};return a117c();}import a117e from'./auth.generator.js';import{headerCase}from'change-case';import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a117x(0x207)]({'name':'provider','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','shortDesc':a117x(0x1f9),'validOpts':[a117x(0x1ec)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a117x(0x212)]},'description':a117x(0x1f7)},async function(a,b){const y=a117x;try{const c=b[y(0x1ec)]||![];Log[y(0x1fd)](y(0x20f));const d=this[y(0x1f8)][y(0x1f5)](),f=d['engines'][y(0x20d)]===y(0x1ed),g={'name':headerCase(d[y(0x1e5)])[y(0x1e4)]('-','\x20')},h=f?y(0x1e2):y(0x1ff),i=this['fsi'][y(0x200)]({'pathParts':[h,'','',y(0x1f2)]});await this[y(0x1f8)][y(0x211)](d,async()=>{const z=y;await this[z(0x1f8)][z(0x1f1)]({'srcPath':z(0x208),'destPath':i+z(0x1eb),'framework':z(0x1fe),'context':g,'config':d,'force':c,'ignore':![]});});const j=d[y(0x201)]['js'],k=h+y(0x206),l=k[y(0x20a)]('/'),m=this['fsi'][y(0x200)]({'pathParts':l});await this[y(0x1f8)][y(0x20e)]({'filePath':m+'.'+j,'importName':'AuthContext','modulePath':f?'/imports/startup/lib/authentication-provider':y(0x210),'isNamedExport':!![]}),await this[y(0x1f8)][y(0x20e)]({'filePath':m+'.'+j,'importName':'useContext','modulePath':'react','isNamedExport':!![],'injectAtStart':!![]}),await this['fsi'][y(0x1f6)]({'filePath':m+'.'+j,'content':y(0x1fb),'begin':['const\x20Routes',y(0x20b)],'replace':!![]});const n=y(0x205),o=n[y(0x20a)]('/'),p=this[y(0x1f8)][y(0x200)]({'pathParts':o});await this['fsi'][y(0x20e)]({'filePath':p+'.'+j,'importName':'AuthProvider','modulePath':f?y(0x1e8):y(0x210),'isNamedExport':!![]}),await this[y(0x1f8)][y(0x1f3)]({'filePath':p+'.'+j,'aboveContent':y(0x1f4),'belowContent':y(0x1fa),'targetString':'<Routes\x20history={browserHistory}/>','indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q=y(0x213),r=q[y(0x20a)]('/'),s=this[y(0x1f8)][y(0x200)]({'pathParts':r});await this[y(0x1f8)][y(0x20e)]({'filePath':s+'.'+j,'importName':'AuthProvider','modulePath':f?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]}),await this[y(0x1f8)][y(0x1f3)]({'filePath':s+'.'+j,'aboveContent':y(0x1f4),'belowContent':y(0x1fa),'targetString':y(0x1ea),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log[y(0x1e6)](t),process['exit'](0x1);}},async function(){},a117e);
1
+ const a117w=a117d;(function(a,b){const u=a117d,c=a();while(!![]){try{const d=parseInt(u(0x14e))/0x1+parseInt(u(0x142))/0x2*(-parseInt(u(0x159))/0x3)+parseInt(u(0x15b))/0x4+parseInt(u(0x135))/0x5+parseInt(u(0x13e))/0x6+-parseInt(u(0x15c))/0x7+parseInt(u(0x157))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x2fd98));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(0x14c)]()['search'](v(0x15d))[v(0x14c)]()[v(0x146)](a117a)['search'](v(0x15d));});a117a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';function a117c(){const z=['581200ieCGVo','2041578KZXEZq','(((.+)+)+)+$','template','/imports/startup/lib/authentication-provider','split','withValue','\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','434030CEbTnb','/imports/startup/client/authentication-provider','create','</AuthProvider>','useContext','engines','\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','fsi','injectIntoCodeBlock','1161036WjSCXv','getMakaProjectConfig','pathFromApp','/imports/startup/lib','4168ktKUpm','bright','injectImport','Generate\x20a\x20React\x20Authentication\x20Provider\x20and\x20Context','constructor','<Routes\x20history={history}/>','exit','AuthProvider','force','function\x20Routes','toString','Creating\x20an\x20AuthProvider\x20and\x20AuthContext','12764PLIyzU','injectAroundString','<Routes\x20history={browserHistory}/>','<AuthProvider>','.js','authentication-provider','/imports/startup/client','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:{provider,\x20p}','/imports/startup/server/index','810960nHAFrN','provider','75lkbXPp','/imports/startup/client/index'];a117c=function(){return z;};return a117c();}import a117e from'./auth.generator.js';import{headerCase}from'change-case';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x133;let f=c[d];return f;},a117d(a,b);}import{ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a117w(0x137)]({'name':a117w(0x158),'aliases':['p'],'usage':a117w(0x155),'shortDesc':a117w(0x145),'validOpts':[a117w(0x14a)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines['REACT']},'description':a117w(0x13b)},async function(a,b){const x=a117w;try{const c=b['force']||![];Log[x(0x143)](x(0x14d));const d=this[x(0x13c)][x(0x13f)](),f=d['engines']['ssr']==='true',g={'name':headerCase(d['appName'])['replaceAll']('-','\x20')},h=f?x(0x141):x(0x154),i=this[x(0x13c)][x(0x140)]({'pathParts':[h,'','',x(0x153)]});await this[x(0x13c)][x(0x133)](d,async()=>{const y=x;await this[y(0x13c)][y(0x15e)]({'srcPath':'kit/auth/provider/authentication-provider.js','destPath':i+y(0x152),'framework':'react','context':g,'config':d,'force':c,'ignore':![]});});const j=d[x(0x13a)]['js'],k=h+'/routes',l=k[x(0x160)]('/'),m=this[x(0x13c)][x(0x140)]({'pathParts':l});await this['fsi'][x(0x144)]({'filePath':m+'.'+j,'importName':'AuthContext','modulePath':f?x(0x15f):x(0x136),'isNamedExport':!![]}),await this[x(0x13c)][x(0x144)]({'filePath':m+'.'+j,'importName':x(0x139),'modulePath':'react','isNamedExport':!![],'injectAtStart':!![]}),await this['fsi'][x(0x13d)]({'filePath':m+'.'+j,'content':x(0x134),'begin':['const\x20Routes',x(0x14b)],'replace':!![]});const n=x(0x15a),o=n[x(0x160)]('/'),p=this[x(0x13c)][x(0x140)]({'pathParts':o});await this[x(0x13c)][x(0x144)]({'filePath':p+'.'+j,'importName':x(0x149),'modulePath':f?x(0x15f):x(0x136),'isNamedExport':!![]}),await this[x(0x13c)]['injectAroundString']({'filePath':p+'.'+j,'aboveContent':x(0x151),'belowContent':x(0x138),'targetString':x(0x150),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});if(f){const q=x(0x156),r=q[x(0x160)]('/'),s=this['fsi'][x(0x140)]({'pathParts':r});await this[x(0x13c)][x(0x144)]({'filePath':s+'.'+j,'importName':x(0x149),'modulePath':f?x(0x15f):x(0x136),'isNamedExport':!![]}),await this[x(0x13c)][x(0x14f)]({'filePath':s+'.'+j,'aboveContent':x(0x151),'belowContent':x(0x138),'targetString':x(0x147),'indentAdjustment':0x2,'targetIndentAdjustment':0x6});}}catch(t){Log['error'](t),process[x(0x148)](0x1);}},async function(){},a117e);
@@ -1 +1 @@
1
- function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x1f2;var f=c[d];return f;},a118d(a,b);}(function(a,b){var f=a118d,c=a();while(!![]){try{var d=parseInt(f(0x1f2))/0x1+parseInt(f(0x1f4))/0x2+parseInt(f(0x1f9))/0x3+-parseInt(f(0x1fc))/0x4*(-parseInt(f(0x1f7))/0x5)+-parseInt(f(0x1f5))/0x6+-parseInt(f(0x1f8))/0x7+-parseInt(f(0x1f6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x36cd8));function a118c(){var i=['5sJDPKB','2279179jxfUyV','533622zCLcxP','toString','apply','1734584ohrsrp','219773WHkBWa','search','557742uCBuYn','2198412dewMCv','1549544qkilAE'];a118c=function(){return i;};return a118c();}var a118b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a118d;if(c){var e=c[g(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){var h=a118d;return a118a[h(0x1fa)]()[h(0x1f3)]('(((.+)+)+)+$')[h(0x1fa)]()['constructor'](a118a)['search']('(((.+)+)+)+$');});a118a();import'./esri.generator.js';import'./map.esri.gen.js';
1
+ function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x190;var f=c[d];return f;},a118d(a,b);}(function(a,b){var f=a118d,c=a();while(!![]){try{var d=-parseInt(f(0x197))/0x1+parseInt(f(0x194))/0x2+-parseInt(f(0x195))/0x3+-parseInt(f(0x19a))/0x4+parseInt(f(0x192))/0x5+parseInt(f(0x196))/0x6+parseInt(f(0x191))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x55a8f));var a118b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a118d;if(c){var e=c[g(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){var h=a118d;return a118a[h(0x198)]()[h(0x190)](h(0x193))[h(0x198)]()[h(0x19b)](a118a)[h(0x190)](h(0x193));});a118a();import'./esri.generator.js';import'./map.esri.gen.js';function a118c(){var i=['276552KNkzdK','1902486wKUALN','3888948LkFrUU','624830MKIHdo','toString','apply','2765308Ivchpn','constructor','search','7115339WaBZlY','2491355YNOUAW','(((.+)+)+)+$'];a118c=function(){return i;};return a118c();}
@@ -1 +1 @@
1
- const a119i=a119d;(function(a,b){const f=a119d,c=a();while(!![]){try{const d=-parseInt(f(0x11e))/0x1*(-parseInt(f(0x116))/0x2)+parseInt(f(0x113))/0x3*(parseInt(f(0x123))/0x4)+-parseInt(f(0x119))/0x5+parseInt(f(0x121))/0x6*(-parseInt(f(0x112))/0x7)+parseInt(f(0x118))/0x8+parseInt(f(0x11f))/0x9+-parseInt(f(0x11c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x7bb23));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a119d;if(c){const e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const h=a119d;return a119a['toString']()['search'](h(0x11a))[h(0x117)]()[h(0x120)](a119a)[h(0x124)](h(0x11a));});a119a();function a119c(){const k=['create','216167MnsWWf','2534220XBIuLC','constructor','22038vTyYiu','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','4POjNuh','search','/foo','maka\x20g:kit:e','esri','apply','1687jcdpSS','1436268ZTAaHM','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','\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','8KCkJIC','toString','7960464fAlpdS','2767245TCHhBL','(((.+)+)+)+$','Esri\x20Kit\x20generated\x20successfully','6747610biOEej'];a119c=function(){return k;};return a119c();}import{Generator}from'../../../generator.js';import a119e from'../kit.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x110;let f=c[d];return f;},a119d(a,b);}const EsriGen=Generator[a119i(0x11d)]({'name':a119i(0x110),'aliases':['e'],'usage':a119i(0x114),'noNeedResource':!![],'shortDesc':a119i(0x122),'validOpts':[''],'isPro':!![],'examples':[a119i(0x126)],'description':a119i(0x115)},async function(){const j=a119i;return{'success':!![],'message':j(0x11b),'details':{'filesCreated':['/foo/bar'],'filesUpdated':[j(0x125)]}};},async function(){},a119e);export default EsriGen;
1
+ const a119i=a119d;(function(a,b){const f=a119d,c=a();while(!![]){try{const d=-parseInt(f(0x1e2))/0x1+-parseInt(f(0x1e1))/0x2*(-parseInt(f(0x1d5))/0x3)+parseInt(f(0x1de))/0x4+parseInt(f(0x1d4))/0x5*(-parseInt(f(0x1db))/0x6)+parseInt(f(0x1d6))/0x7+parseInt(f(0x1e3))/0x8*(parseInt(f(0x1d7))/0x9)+parseInt(f(0x1d2))/0xa*(-parseInt(f(0x1e5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x52fb5));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a119d;if(c){const e=c[g(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const h=a119d;return a119a['toString']()[h(0x1da)](h(0x1d9))[h(0x1d3)]()[h(0x1e6)](a119a)[h(0x1da)](h(0x1d9));});a119a();import{Generator}from'../../../generator.js';import a119e from'../kit.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a119d(a,b);}const EsriGen=Generator[a119i(0x1dd)]({'name':a119i(0x1d1),'aliases':['e'],'usage':a119i(0x1e4),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20Esri\x20Maps','validOpts':[''],'isPro':!![],'examples':[a119i(0x1d8)],'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':j(0x1df),'details':{'filesCreated':[j(0x1dc)],'filesUpdated':[j(0x1e0)]}};},async function(){},a119e);function a119c(){const k=['/foo','7654ctjgnH','239620QdzchY','40tDVNXX','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','550hBkXSr','constructor','apply','esri','195490jrRWBw','toString','11555NbKhOS','369FMfxmR','4518073BxFMvL','1117917gJqsFr','maka\x20g:kit:e','(((.+)+)+)+$','search','1662sNJoDK','/foo/bar','create','1839540CyQMuR','Esri\x20Kit\x20generated\x20successfully'];a119c=function(){return k;};return a119c();}export default EsriGen;
@@ -1 +1 @@
1
- const a120s=a120d;(function(a,b){const p=a120d,c=a();while(!![]){try{const d=-parseInt(p(0x1b5))/0x1*(-parseInt(p(0x1af))/0x2)+parseInt(p(0x1c4))/0x3*(parseInt(p(0x1a6))/0x4)+-parseInt(p(0x1b4))/0x5*(-parseInt(p(0x1bd))/0x6)+parseInt(p(0x1b0))/0x7+-parseInt(p(0x198))/0x8+-parseInt(p(0x1c3))/0x9*(-parseInt(p(0x1c5))/0xa)+-parseInt(p(0x1b1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x57ab5));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a120d;if(c){const e=c[q(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const r=a120d;return a120a['toString']()['search'](r(0x1c7))['toString']()['constructor'](a120a)['search']('(((.+)+)+)+$');});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';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x198;let f=c[d];return f;},a120d(a,b);}import{paramCase,headerCase,pascalCase}from'change-case';function a120c(){const v=['15094739lgwpWP','getMakaProjectConfig','split','55NOpIfP','26419PDoPlS','fsi','withValue','pathFromApp','REACT','/imports/ui/hooks','</div>','/imports/ui/','350598uwXWap','.js','Generating\x20a\x20map\x20component','create','ssr','page','81eVgUKV','39GGOthj','437480xoRpPe','apply','(((.+)+)+)+$','2470088PrxkFb','injectTemplateModule','processAndRunGenerator','\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','@esri/react-arcgis','baseDir','/imports/startup/client/templates','true','error','checkNpmPackage','Generate\x20an\x20Esri\x20map\x20component','kit/esri/map/','findProjectDirectory','103904nwDrpN','injectImport','injectIntoFile','<div\x20id=\x22map\x22>','bright','FALSE','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','basic-map','engines','26vEzBUi','2257311rFuizt'];a120c=function(){return v;};return a120c();}import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a120s(0x1c0)]({'name':'map','aliases':['m'],'usage':a120s(0x1ac),'shortDesc':a120s(0x1a3),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a120s(0x1b9)],'ssr':SsrEngines[a120s(0x1ab)]},'description':a120s(0x19b)},async function(a,b){const t=a120s;try{Log[t(0x1aa)](t(0x1bf));const c=t(0x1ad);await this[t(0x1b6)][t(0x1a2)]([t(0x19d),'esri-loader'],{'shouldInstall':!![]});const d=this['fsi'][t(0x1a5)](),f=this[t(0x1b6)][t(0x1b2)](),g=f[t(0x1ae)][t(0x1c1)]===t(0x1a0),h=await a120f[t(0x19a)](t(0x1c2),[t(0x19c)],{'cwd':d,'config':f}),i={'name':headerCase(f['appName'])['replaceAll']('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x19e)]?t(0x1bc)+b[t(0x19e)]:t(0x1ba),k=this[t(0x1b6)][t(0x1b8)]({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});await this[t(0x1b6)][t(0x1b7)](f,async()=>{const u=t;await this[u(0x1b6)]['template']({'srcPath':u(0x1a4)+c+u(0x1be),'destPath':k+'.js','framework':'react','context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b['dir']+'/'+c+'/'+c;await this[t(0x1b6)][t(0x199)](c,f,l);const m=h[t(0x1b3)]('/'),n=this[t(0x1b6)][t(0x1b8)]({'pathParts':m});await this[t(0x1b6)][t(0x1a7)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':t(0x19f),'isNamedExport':!![]}),await this[t(0x1b6)][t(0x1a8)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+'\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','begin':[t(0x1a9),t(0x1a9)],'end':[t(0x1bb)],'replace':!![]});}catch(o){Log[t(0x1a1)](o),process['exit'](0x1);}},async function(){},a120e);
1
+ const a120r=a120d;(function(a,b){const p=a120d,c=a();while(!![]){try{const d=-parseInt(p(0x1c4))/0x1*(-parseInt(p(0x1c1))/0x2)+parseInt(p(0x1ca))/0x3*(-parseInt(p(0x1db))/0x4)+parseInt(p(0x1ac))/0x5*(-parseInt(p(0x1b7))/0x6)+-parseInt(p(0x1c5))/0x7*(-parseInt(p(0x1a9))/0x8)+parseInt(p(0x1d8))/0x9*(-parseInt(p(0x1d4))/0xa)+-parseInt(p(0x1af))/0xb*(-parseInt(p(0x1cc))/0xc)+-parseInt(p(0x1dd))/0xd*(-parseInt(p(0x1c2))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0xa4308));const a120b=(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;};}()),a120a=a120b(this,function(){const q=a120d;return a120a['toString']()[q(0x1d9)](q(0x1b8))[q(0x1d7)]()[q(0x1bd)](a120a)['search'](q(0x1b8));});a120a();import{Generator}from'../../../generator.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a120d(a,b);}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';function a120c(){const u=['52134vseycJ','33664526MlJcXr','<div\x20id=\x22map\x22>','25BGwCWv','3228281BFlhpu','injectIntoFile','appName','.js','injectTemplateModule','22920RAqVmm','react','24pgEtNL','bright','map','fsi','@esri/react-arcgis','/imports/startup/client/templates','exit','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','70WfdrnY','Generating\x20a\x20map\x20component','/imports/ui/','toString','1103958MiKnsm','search','FALSE','572bobOnn','dir','13kDDHiq','Generate\x20an\x20Esri\x20map\x20component','REACT','8YNmzat','replaceAll','create','1555mYhAVf','baseDir','processAndRunGenerator','983653bmsivx','/imports/ui/hooks','basic-map','esri-loader','findProjectDirectory','pathFromApp','split','/imports/startup/lib/templates','20694FYnnrB','(((.+)+)+)+$','</div>','kit/esri/map/','template','engines','constructor','ssr','getMakaProjectConfig','withValue'];a120c=function(){return u;};return a120c();}import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a120r(0x1ab)]({'name':a120r(0x1ce),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','shortDesc':a120r(0x1de),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a120r(0x1a8)],'ssr':SsrEngines[a120r(0x1da)]},'description':'\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'},async function(a,b){const s=a120r;try{Log[s(0x1cd)](s(0x1d5));const c=s(0x1b1);await this['fsi']['checkNpmPackage']([s(0x1d0),s(0x1b2)],{'shouldInstall':!![]});const d=this[s(0x1cf)][s(0x1b3)](),f=this[s(0x1cf)][s(0x1bf)](),g=f[s(0x1bc)][s(0x1be)]==='true',h=await a120f[s(0x1ae)]('page',['map'],{'cwd':d,'config':f}),i={'name':headerCase(f[s(0x1c7)])[s(0x1aa)]('-','\x20'),'componentName':pascalCase(c)},j=b[s(0x1ad)]?s(0x1d6)+b[s(0x1ad)]:s(0x1b0),k=this['fsi'][s(0x1b4)]({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});await this[s(0x1cf)][s(0x1c0)](f,async()=>{const t=s;await this[t(0x1cf)][t(0x1bb)]({'srcPath':t(0x1ba)+c+t(0x1c8),'destPath':k+t(0x1c8),'framework':t(0x1cb),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[s(0x1dc)]+'/'+c+'/'+c;await this[s(0x1cf)][s(0x1c9)](c,f,l);const m=h[s(0x1b5)]('/'),n=this[s(0x1cf)][s(0x1b4)]({'pathParts':m});await this[s(0x1cf)]['injectImport']({'filePath':n,'importName':pascalCase(c),'modulePath':g?s(0x1b6):s(0x1d1),'isNamedExport':!![]}),await this[s(0x1cf)][s(0x1c6)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+s(0x1d3),'begin':[s(0x1c3),s(0x1c3)],'end':[s(0x1b9)],'replace':!![]});}catch(o){Log['error'](o),process[s(0x1d2)](0x1);}},async function(){},a120e);
@@ -1 +1 @@
1
- const a121h=a121d;(function(a,b){const f=a121d,c=a();while(!![]){try{const d=parseInt(f(0x12a))/0x1*(parseInt(f(0x123))/0x2)+parseInt(f(0x125))/0x3*(-parseInt(f(0x133))/0x4)+-parseInt(f(0x12f))/0x5+parseInt(f(0x12d))/0x6*(-parseInt(f(0x127))/0x7)+parseInt(f(0x124))/0x8*(-parseInt(f(0x128))/0x9)+parseInt(f(0x130))/0xa+parseInt(f(0x132))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xdad96));function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x122;let f=c[d];return f;},a121d(a,b);}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(0x131)]()['search'](g(0x129))[g(0x131)]()['constructor'](a121a)[g(0x12b)](g(0x129));});function a121c(){const i=['13694088kSNSeP','39jDqUTZ','maka\x20{generate,\x20g}:{kit}\x20<name>','6994918fAxXRH','9jdGiTS','(((.+)+)+)+$','79102DgyxPy','search','maka\x20g:k','6ESUWvy','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','3199090HxrXSY','5627490LGehpm','toString','27986607KZaKEg','38572HSWOPa','kit','32zwendW'];a121c=function(){return i;};return a121c();}a121a();import{Generator}from'../../generator.js';const KitGen=Generator['create']({'name':a121h(0x122),'aliases':['k'],'usage':a121h(0x126),'shortDesc':a121h(0x12e),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit',a121h(0x12c)]},async function(){});export default KitGen;
1
+ const a121i=a121d;function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x162;let f=c[d];return f;},a121d(a,b);}(function(a,b){const f=a121d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1*(parseInt(f(0x16f))/0x2)+-parseInt(f(0x176))/0x3*(-parseInt(f(0x175))/0x4)+-parseInt(f(0x162))/0x5+parseInt(f(0x16c))/0x6+parseInt(f(0x173))/0x7*(-parseInt(f(0x166))/0x8)+-parseInt(f(0x174))/0x9*(-parseInt(f(0x16e))/0xa)+parseInt(f(0x167))/0xb*(-parseInt(f(0x172))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xb4b88));function a121c(){const j=['constructor','48lCqbrz','7zpTMeI','9szzHux','692oGgHkO','8331oeKJtS','4596325JMMtdm','maka\x20{generate,\x20g}:{kit}\x20<name>','kit','toString','833488gjxZRt','7132224OZgHcK','Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','search','apply','maka\x20g:k','7431498TEdYXm','create','12766790eJxNwQ','64DkLnNM','42548LtJAvi'];a121c=function(){return j;};return a121c();}const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a121d;if(c){const e=c[g(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const h=a121d;return a121a[h(0x165)]()[h(0x169)]('(((.+)+)+)+$')['toString']()[h(0x171)](a121a)[h(0x169)]('(((.+)+)+)+$');});a121a();import{Generator}from'../../generator.js';const KitGen=Generator[a121i(0x16d)]({'name':a121i(0x164),'aliases':['k'],'usage':a121i(0x163),'shortDesc':a121i(0x168),'minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':['maka\x20g:kit',a121i(0x16b)]},async function(){});export default KitGen;
@@ -1 +1 @@
1
- (function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0x1c9))/0x1*(parseInt(f(0x1b9))/0x2)+parseInt(f(0x1bb))/0x3*(parseInt(f(0x1c1))/0x4)+parseInt(f(0x1c3))/0x5*(parseInt(f(0x1c7))/0x6)+parseInt(f(0x1ba))/0x7*(-parseInt(f(0x1bf))/0x8)+parseInt(f(0x1c5))/0x9*(parseInt(f(0x1c0))/0xa)+-parseInt(f(0x1be))/0xb*(-parseInt(f(0x1c6))/0xc)+-parseInt(f(0x1bc))/0xd*(parseInt(f(0x1c4))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xecfea));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x1ca)]()[h(0x1c2)](h(0x1bd))[h(0x1ca)]()['constructor'](a122a)[h(0x1c2)](h(0x1bd));});a122a();function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1b9;var f=c[d];return f;},a122d(a,b);}import'./mui.generator.js';function a122c(){var i=['56Mbqmvf','39520zWgSAU','7188RqWJOS','search','12035yKAbcZ','38248TOuYAG','2412QJlWXM','8519532gQeuxB','156ououRD','apply','726689qepjMF','toString','2NHweWi','1050273uTIMjH','2328KjqzGc','5655iVsYqE','(((.+)+)+)+$','22xWoKdN'];a122c=function(){return i;};return a122c();}import'./frame.mui.gen.js';import'./auth.mui.gen.js';
1
+ (function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0x144))/0x1*(-parseInt(f(0x145))/0x2)+parseInt(f(0x14b))/0x3+-parseInt(f(0x14c))/0x4*(parseInt(f(0x146))/0x5)+-parseInt(f(0x149))/0x6*(parseInt(f(0x143))/0x7)+parseInt(f(0x14a))/0x8+-parseInt(f(0x148))/0x9+parseInt(f(0x14f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x79468));function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x142;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(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x147)]()['search'](h(0x14d))['toString']()[h(0x14e)](a122a)['search'](h(0x14d));});function a122c(){var i=['4730cQWhLu','toString','4423572lfwLev','654ZwRIsU','1666960OAAsiq','421842uPAQZx','1724XoDYOr','(((.+)+)+)+$','constructor','23865660GejSmJ','apply','28343jjoEqQ','898231llhPvJ','2KsejQO'];a122c=function(){return i;};return a122c();}a122a();import'./mui.generator.js';import'./frame.mui.gen.js';import'./auth.mui.gen.js';
@@ -1 +1 @@
1
- const a123J=a123d;(function(a,b){const G=a123d,c=a();while(!![]){try{const d=parseInt(G(0x149))/0x1+-parseInt(G(0x12b))/0x2*(parseInt(G(0x112))/0x3)+-parseInt(G(0x140))/0x4+-parseInt(G(0x113))/0x5*(-parseInt(G(0x121))/0x6)+-parseInt(G(0x146))/0x7+-parseInt(G(0x136))/0x8*(-parseInt(G(0x11f))/0x9)+-parseInt(G(0x154))/0xa*(-parseInt(G(0x14b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xf2eae));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a123d;if(c){const e=c[H(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const I=a123d;return a123a['toString']()[I(0x142)](I(0x131))[I(0x138)]()[I(0x148)](a123a)[I(0x142)](I(0x131));});a123a();function a123c(){const N=['template','7450476vqfPuT','basic-forgot-password-page','search','create','custom','kit/mui/auth/login/','8606388QJZZAb','engines','constructor','650574lVewdA','react','1683FRbjiC','/imports/startup/lib/authentication-provider','route','split','baseDir','apply','withValue','basic-register-page','ssr','115870oTNqsD','171fpFItH','22655gMqvZe','dir','list','kit:auth:provider','Cleaning\x20up...','forgot-password','meteor','injectImport','fsi','kit:auth:meteor','basic-password-reset-page','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','1053pykGhn','.js','1950wHTKCB','MATERIAL','maka\x20g:k:m:f','pathFromApp','auth','injectTemplateModule','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','kit/mui/auth/password-reset/','appName','error','3684orYOXp','register','processAndRunGenerator','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','getMakaProjectConfig','REACT','(((.+)+)+)+$','kit/mui/auth/forgot-password/','force','kit/mui/auth/logout/','findProjectDirectory','20248JftUQg','replaceAll','toString','logout','AuthContext','/imports/startup/client/authentication-provider','options','true','basic-logout-page'];a123c=function(){return N;};return a123c();}import{Generator}from'../../../generator.js';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';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x112;let f=c[d];return f;},a123d(a,b);}import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a123J(0x143)]({'name':a123J(0x125),'aliases':['a'],'usage':a123J(0x11e),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','validOpts':['layouts',a123J(0x133)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a123J(0x122)],'client':ClientEngines[a123J(0x130)]},'examples':['maka\x20generate:kit:mui:frame',a123J(0x123)],'description':a123J(0x127)},async function(a,b){const K=a123J;try{const c=b[K(0x133)]||![],d=this[K(0x11b)][K(0x135)](),f=this['fsi'][K(0x12f)](),{authType:g}=await Actions[K(0x13c)]({'type':K(0x115),'name':'authType','message':K(0x12e),'choices':[{'name':'Meteor\x20Accounts','value':K(0x119)},{'name':'Custom\x20(roll\x20your\x20own)','value':'custom'}]}),h='basic-login-page',i=K(0x13e),j='basic-register-page',k=K(0x11d),l=K(0x141),m=b[K(0x14f)]?'/imports/ui/'+b[K(0x14f)]:'/imports/ui/pages/auth',n=this[K(0x11b)]['pathFromApp']({'pathParts':[m,b['dir'],paramCase(h),paramCase(h)]}),o=this[K(0x11b)][K(0x124)]({'pathParts':[m,b[K(0x114)],paramCase(i),paramCase(i)]}),p=this[K(0x11b)]['pathFromApp']({'pathParts':[m,b[K(0x114)],paramCase(j),paramCase(j)]}),q=this[K(0x11b)][K(0x124)]({'pathParts':[m,b[K(0x114)],paramCase(k),paramCase(k)]}),r=this[K(0x11b)][K(0x124)]({'pathParts':[m,b['dir'],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0x129)])[K(0x137)]('-','\x20')};await this[K(0x11b)][K(0x151)](f,async()=>{const L=K;await this[L(0x11b)]['template']({'srcPath':L(0x145)+h+L(0x120),'destPath':n+L(0x120),'framework':L(0x14a),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x11b)][L(0x13f)]({'srcPath':L(0x134)+i+L(0x120),'destPath':o+L(0x120),'framework':L(0x14a),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x11b)]['template']({'srcPath':'kit/mui/auth/register/'+j+L(0x120),'destPath':p+L(0x120),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x11b)]['template']({'srcPath':L(0x128)+k+L(0x120),'destPath':q+L(0x120),'framework':L(0x14a),'context':s,'config':f,'force':c,'ignore':![]}),await this['fsi'][L(0x13f)]({'srcPath':L(0x132)+l+L(0x120),'destPath':r+L(0x120),'framework':'react','context':s,'config':f,'force':c,'ignore':![]});});const t=''+m+b[K(0x114)]+'/'+h+'/'+h;await this[K(0x11b)][K(0x126)](h,f,t);const u=''+m+b[K(0x114)]+'/'+i+'/'+i;await this['fsi'][K(0x126)](i,f,u);const v=''+m+b[K(0x114)]+'/'+j+'/'+j;await this[K(0x11b)][K(0x126)](j,f,v);const w=''+m+b[K(0x114)]+'/'+k+'/'+k;await this[K(0x11b)]['injectTemplateModule'](k,f,w);const x=''+m+b['dir']+'/'+l+'/'+l;await this['fsi']['injectTemplateModule'](l,f,x),await a123e[K(0x12d)](K(0x14d),['basic-login-page'],{'url':'login','cwd':d,'config':f}),await a123e[K(0x12d)](K(0x14d),[K(0x13e)],{'url':K(0x139),'private':!![],'cwd':d,'config':f}),await a123e['processAndRunGenerator'](K(0x14d),[K(0x152)],{'url':K(0x12c),'cwd':d,'config':f}),await a123e[K(0x12d)]('route',['basic-password-reset-page'],{'url':'reset-password/:token','cwd':d,'config':f}),await a123e['processAndRunGenerator'](K(0x14d),[K(0x141)],{'url':K(0x118),'cwd':d,'config':f});g===K(0x119)&&await a123e['processAndRunGenerator'](K(0x11c),[],{'force':c,'cwd':d,'config':f});g===K(0x144)&&await a123e[K(0x12d)](K(0x116),[],{'force':c,'cwd':d,'config':f});const y=f[K(0x147)][K(0x153)]===K(0x13d),z=f[K(0x147)]['js'],A=this[K(0x11b)][K(0x124)]({'pathParts':t['split']('/')});await this[K(0x11b)][K(0x11a)]({'filePath':A+'.'+z,'importName':K(0x13a),'modulePath':y?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]});const B=this[K(0x11b)][K(0x124)]({'pathParts':u[K(0x14e)]('/')});await this['fsi'][K(0x11a)]({'filePath':B+'.'+z,'importName':K(0x13a),'modulePath':y?K(0x14c):'/imports/startup/client/authentication-provider','isNamedExport':!![]});const C=this[K(0x11b)]['pathFromApp']({'pathParts':v[K(0x14e)]('/')});await this[K(0x11b)][K(0x11a)]({'filePath':C+'.'+z,'importName':K(0x13a),'modulePath':y?K(0x14c):K(0x13b),'isNamedExport':!![]});const D=this[K(0x11b)][K(0x124)]({'pathParts':w['split']('/')});await this['fsi'][K(0x11a)]({'filePath':D+'.'+z,'importName':K(0x13a),'modulePath':y?K(0x14c):K(0x13b),'isNamedExport':!![]});const E=this[K(0x11b)][K(0x124)]({'pathParts':x[K(0x14e)]('/')});await this['fsi'][K(0x11a)]({'filePath':E+'.'+z,'importName':'AuthContext','modulePath':y?K(0x14c):K(0x13b),'isNamedExport':!![]});}catch(F){Log[K(0x12a)](F);}},async function(){const M=a123J;console['log'](M(0x117));},a123f);
1
+ const a123J=a123d;(function(a,b){const G=a123d,c=a();while(!![]){try{const d=parseInt(G(0x1fe))/0x1+parseInt(G(0x22c))/0x2*(-parseInt(G(0x210))/0x3)+parseInt(G(0x20a))/0x4*(-parseInt(G(0x203))/0x5)+-parseInt(G(0x1fb))/0x6*(-parseInt(G(0x217))/0x7)+parseInt(G(0x231))/0x8+parseInt(G(0x213))/0x9*(parseInt(G(0x222))/0xa)+-parseInt(G(0x227))/0xb*(parseInt(G(0x21b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x423d3));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const H=a123d;if(c){const e=c[H(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const I=a123d;return a123a[I(0x1fa)]()[I(0x226)](I(0x200))[I(0x1fa)]()[I(0x201)](a123a)[I(0x226)](I(0x200));});a123a();import{Generator}from'../../../generator.js';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x1ea;let f=c[d];return f;},a123d(a,b);}import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a123e from'../../../generators/maka.gen.js';function a123c(){const N=['6FIHTqk','create','split','Meteor\x20Accounts','AuthContext','3775656DKyvid','true','pathFromApp','dir','basic-logout-page','baseDir','withValue','maka\x20generate:kit:mui:frame','template','engines','ssr','What\x20sort\x20of\x20Authentication\x20/\x20Authorization\x20are\x20you\x20using?','custom','logout','Generate\x20a\x20standard\x20MUI\x20Login,\x20Logout,\x20Register,\x20and\x20Password\x20Reset\x20page','.js','fsi','toString','18VdBwek','kit/mui/auth/login/','REACT','66426TnGMNM','apply','(((.+)+)+)+$','constructor','register','2107760YLpUpi','Custom\x20(roll\x20your\x20own)','layouts','processAndRunGenerator','react','appName','Cleaning\x20up...','4eqHXph','MATERIAL','/imports/ui/pages/auth','basic-login-page','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','/imports/ui/','267483zSxKkX','route','kit:auth:meteor','27IlVJbB','kit/mui/auth/forgot-password/','injectImport','basic-forgot-password-page','1220317GYBfEL','basic-register-page','findProjectDirectory','basic-password-reset-page','12AsKekz','log','/imports/startup/client/authentication-provider','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','options','kit:auth:provider','/imports/startup/lib/authentication-provider','876830SNOjVN','list','injectTemplateModule','kit/mui/auth/password-reset/','search','4004825NROBTY','maka\x20g:k:m:f','reset-password/:token','getMakaProjectConfig','meteor'];a123c=function(){return N;};return a123c();}import a123f from'./mui.generator.js';import{paramCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a123J(0x22d)]({'name':'auth','aliases':['a'],'usage':a123J(0x20e),'shortDesc':a123J(0x1f7),'validOpts':[a123J(0x205),'force'],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a123J(0x20b)],'client':ClientEngines[a123J(0x1fd)]},'examples':[a123J(0x1f0),a123J(0x228)],'description':a123J(0x21e)},async function(a,b){const K=a123J;try{const c=b['force']||![],d=this['fsi'][K(0x219)](),f=this['fsi'][K(0x22a)](),{authType:g}=await Actions[K(0x21f)]({'type':K(0x223),'name':'authType','message':K(0x1f4),'choices':[{'name':K(0x22f),'value':K(0x22b)},{'name':K(0x204),'value':K(0x1f5)}]}),h='basic-login-page',i=K(0x1ed),j=K(0x218),k=K(0x21a),l='basic-forgot-password-page',m=b[K(0x1ee)]?K(0x20f)+b[K(0x1ee)]:K(0x20c),n=this[K(0x1f9)][K(0x1eb)]({'pathParts':[m,b['dir'],paramCase(h),paramCase(h)]}),o=this['fsi'][K(0x1eb)]({'pathParts':[m,b[K(0x1ec)],paramCase(i),paramCase(i)]}),p=this['fsi']['pathFromApp']({'pathParts':[m,b[K(0x1ec)],paramCase(j),paramCase(j)]}),q=this[K(0x1f9)]['pathFromApp']({'pathParts':[m,b['dir'],paramCase(k),paramCase(k)]}),r=this[K(0x1f9)][K(0x1eb)]({'pathParts':[m,b[K(0x1ec)],paramCase(l),paramCase(l)]}),s={'name':headerCase(f[K(0x208)])['replaceAll']('-','\x20')};await this[K(0x1f9)][K(0x1ef)](f,async()=>{const L=K;await this['fsi'][L(0x1f1)]({'srcPath':L(0x1fc)+h+L(0x1f8),'destPath':n+L(0x1f8),'framework':L(0x207),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x1f9)]['template']({'srcPath':'kit/mui/auth/logout/'+i+'.js','destPath':o+L(0x1f8),'framework':'react','context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x1f9)]['template']({'srcPath':'kit/mui/auth/register/'+j+L(0x1f8),'destPath':p+'.js','framework':L(0x207),'context':s,'config':f,'force':c,'ignore':![]}),await this[L(0x1f9)]['template']({'srcPath':L(0x225)+k+L(0x1f8),'destPath':q+L(0x1f8),'framework':L(0x207),'context':s,'config':f,'force':c,'ignore':![]}),await this['fsi']['template']({'srcPath':L(0x214)+l+L(0x1f8),'destPath':r+'.js','framework':L(0x207),'context':s,'config':f,'force':c,'ignore':![]});});const t=''+m+b[K(0x1ec)]+'/'+h+'/'+h;await this[K(0x1f9)][K(0x224)](h,f,t);const u=''+m+b['dir']+'/'+i+'/'+i;await this[K(0x1f9)][K(0x224)](i,f,u);const v=''+m+b[K(0x1ec)]+'/'+j+'/'+j;await this[K(0x1f9)][K(0x224)](j,f,v);const w=''+m+b[K(0x1ec)]+'/'+k+'/'+k;await this['fsi'][K(0x224)](k,f,w);const x=''+m+b['dir']+'/'+l+'/'+l;await this[K(0x1f9)]['injectTemplateModule'](l,f,x),await a123e[K(0x206)](K(0x211),[K(0x20d)],{'url':'login','cwd':d,'config':f}),await a123e[K(0x206)](K(0x211),[K(0x1ed)],{'url':K(0x1f6),'private':!![],'cwd':d,'config':f}),await a123e[K(0x206)]('route',[K(0x218)],{'url':K(0x202),'cwd':d,'config':f}),await a123e[K(0x206)](K(0x211),[K(0x21a)],{'url':K(0x229),'cwd':d,'config':f}),await a123e[K(0x206)](K(0x211),[K(0x216)],{'url':'forgot-password','cwd':d,'config':f});g===K(0x22b)&&await a123e['processAndRunGenerator'](K(0x212),[],{'force':c,'cwd':d,'config':f});g===K(0x1f5)&&await a123e[K(0x206)](K(0x220),[],{'force':c,'cwd':d,'config':f});const y=f['engines'][K(0x1f3)]===K(0x1ea),z=f[K(0x1f2)]['js'],A=this['fsi'][K(0x1eb)]({'pathParts':t[K(0x22e)]('/')});await this[K(0x1f9)][K(0x215)]({'filePath':A+'.'+z,'importName':K(0x230),'modulePath':y?'/imports/startup/lib/authentication-provider':'/imports/startup/client/authentication-provider','isNamedExport':!![]});const B=this['fsi'][K(0x1eb)]({'pathParts':u[K(0x22e)]('/')});await this[K(0x1f9)][K(0x215)]({'filePath':B+'.'+z,'importName':'AuthContext','modulePath':y?K(0x221):'/imports/startup/client/authentication-provider','isNamedExport':!![]});const C=this[K(0x1f9)][K(0x1eb)]({'pathParts':v['split']('/')});await this[K(0x1f9)]['injectImport']({'filePath':C+'.'+z,'importName':K(0x230),'modulePath':y?K(0x221):'/imports/startup/client/authentication-provider','isNamedExport':!![]});const D=this[K(0x1f9)][K(0x1eb)]({'pathParts':w[K(0x22e)]('/')});await this[K(0x1f9)][K(0x215)]({'filePath':D+'.'+z,'importName':'AuthContext','modulePath':y?K(0x221):K(0x21d),'isNamedExport':!![]});const E=this['fsi'][K(0x1eb)]({'pathParts':x[K(0x22e)]('/')});await this['fsi']['injectImport']({'filePath':E+'.'+z,'importName':K(0x230),'modulePath':y?K(0x221):K(0x21d),'isNamedExport':!![]});}catch(F){Log['error'](F);}},async function(){const M=a123J;console[M(0x21c)](M(0x209));},a123f);
@@ -1 +1 @@
1
- const a124E=a124d;(function(a,b){const B=a124d,c=a();while(!![]){try{const d=parseInt(B(0x1f2))/0x1*(parseInt(B(0x208))/0x2)+parseInt(B(0x218))/0x3*(parseInt(B(0x212))/0x4)+-parseInt(B(0x1e6))/0x5+parseInt(B(0x1f5))/0x6*(parseInt(B(0x1f4))/0x7)+-parseInt(B(0x1ed))/0x8*(-parseInt(B(0x215))/0x9)+parseInt(B(0x206))/0xa+-parseInt(B(0x1f3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x83dd3));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a124d;if(c){const e=c[C(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const D=a124d;return a124a[D(0x1ec)]()[D(0x21f)](D(0x1db))[D(0x1ec)]()[D(0x21c)](a124a)[D(0x21f)](D(0x1db));});a124a();function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a124d(a,b);}import{Generator}from'../../../generator.js';function a124c(){const I=['apply','baseDir','template','log','basic-sticky-footer','594260RqjYcv','engines','basic-app-bar','/imports/startup/client/templates','kit/mui/frame/app-bars/','\x20/>\x0a','toString','32pVrXHY','<div\x20id=\x22','fsi','Box','-hook\x22>','15719juwjFr','31439969pFSIpi','7672ecKGFt','5184OVBLlC','injectIntoFile','/imports/startup/lib/templates','{\x20this.props.children\x20}','dir','{props.children}','frame','withValue','{this.props.children}','layouts','MATERIAL','react','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','{\x20props.children\x20}','tests','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','.js','3943110IWoWku','test','78RoQjCx','pathFromApp','getFiles','@mui/material/Box','replaceAll','</div>','Cleaning\x20up...','findAppDirectory','join','injectImport','381256wbJuPt','force','Container','1157391ZWaJFc','getMakaProjectConfig','checkMeteorPackage','33EDEPZQ','injectTemplateModule','imports','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','constructor','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','appName','search','jsx','kit/mui/frame/drawers/','kit/mui/frame/footers/','(((.+)+)+)+$','injectAroundString','getDirectories','options','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','checkbox'];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['create']({'name':a124E(0x1fb),'aliases':['f'],'usage':a124E(0x1df),'shortDesc':a124E(0x21b),'validOpts':[a124E(0x1fe),'baseDir',a124E(0x1f9),'force'],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a124E(0x1ff)],'client':ClientEngines['REACT']},'examples':['maka\x20generate:kit:mui:frame','maka\x20g:k:m:f'],'description':a124E(0x21d)},async function(a,b){const F=a124E;try{const c=b[F(0x213)]||![],d=F(0x1e8),f='basic-drawer',g=F(0x1e5),h=this[F(0x1ef)][F(0x216)](),i=h[F(0x1e7)]['ssr']==='true';await this[F(0x1ef)][F(0x217)](['session','maka:react-tracker'],{'shouldInstall':!![]});const j=this[F(0x1ef)][F(0x20f)](),k=a124e[F(0x210)](j,F(0x21a),'ui','layouts'),l=this['fsi'][F(0x1dd)](k),m=await Actions[F(0x1de)]({'type':F(0x1e0),'name':F(0x1fe),'message':F(0x204),'choices':l});if(m[F(0x1fe)]['length']===0x0){Log['error']('No\x20layouts\x20selected');return;}const n=b[F(0x1e2)]?'/imports/ui/'+b['baseDir']:'/imports/ui/components',o=this[F(0x1ef)][F(0x209)]({'pathParts':[n,b[F(0x1f9)],paramCase(d),paramCase(d)]}),p=this[F(0x1ef)][F(0x209)]({'pathParts':[n,b[F(0x1f9)],paramCase(f),paramCase(f)]}),q=this[F(0x1ef)][F(0x209)]({'pathParts':[n,b['dir'],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[F(0x21e)])[F(0x20c)]('-','\x20')};await this[F(0x1ef)][F(0x1fc)](h,async()=>{const G=F;await this[G(0x1ef)][G(0x1e3)]({'srcPath':G(0x1ea)+d+G(0x205),'destPath':o+G(0x205),'framework':G(0x200),'context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x1ef)]['template']({'srcPath':G(0x1d9)+f+G(0x205),'destPath':p+'.js','framework':'react','context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x1ef)][G(0x1e3)]({'srcPath':G(0x1da)+g+'.js','destPath':q+G(0x205),'framework':'react','context':r,'config':h,'force':c,'ignore':![]});});const s=''+n+b['dir']+'/'+d+'/'+d;await this[F(0x1ef)][F(0x219)](d,h,s);const t=''+n+b[F(0x1f9)]+'/'+f+'/'+f;await this[F(0x1ef)][F(0x219)](f,h,t);const u=''+n+b['dir']+'/'+g+'/'+g;await this[F(0x1ef)][F(0x219)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this[F(0x1ef)][F(0x20a)](a124e[F(0x210)](k,w),{'extensions':[F(0x1d8),'tsx'],'omit':['app-tests',F(0x203),F(0x207)]});for(const y of x){const z=a124e['join'](k,w,y);await this['fsi'][F(0x211)]({'filePath':z,'importName':F(0x1f0),'modulePath':F(0x20b),'isNamedExport':![]}),await this[F(0x1ef)][F(0x211)]({'filePath':z,'importName':F(0x214),'modulePath':'@mui/material/Container','isNamedExport':![]}),await this['fsi'][F(0x211)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?F(0x1f7):F(0x1e9),'isNamedExport':!![]}),await this['fsi'][F(0x1f6)]({'filePath':z,'content':'<'+pascalCase(d)+'\x20/>\x0a','begin':[F(0x1ee)+w+'\x22>','<div\x20id=\x22'+w+F(0x1f1)],'end':[F(0x1fd),F(0x1f8),F(0x1fa),'{\x20props.children\x20}']}),await this[F(0x1ef)][F(0x211)]({'filePath':z,'importName':pascalCase(f),'modulePath':i?F(0x1f7):F(0x1e9),'isNamedExport':!![]}),await this[F(0x1ef)]['injectIntoFile']({'filePath':z,'content':'<'+pascalCase(f)+F(0x1eb),'begin':[F(0x1ee)+w+'\x22>',F(0x1ee)+w+'-hook\x22>'],'end':[F(0x1fd),'{\x20this.props.children\x20}',F(0x1fa),'{\x20props.children\x20}']}),await this[F(0x1ef)][F(0x1f6)]({'filePath':z,'content':'<'+pascalCase(g)+F(0x1eb),'begin':[F(0x1fd),F(0x1f8),'{props.children}',F(0x202)],'end':[F(0x20d)]}),await this['fsi']['injectImport']({'filePath':z,'importName':pascalCase(g),'modulePath':i?F(0x1f7):F(0x1e9),'isNamedExport':!![]}),await this[F(0x1ef)][F(0x1dc)]({'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(0x201),'targetString':['{this.props.children}',F(0x1f8),F(0x1fa),F(0x202)],'targetIndentAdjustment':0x6});}}return!![];}catch(A){Log['error'](A);}},async function(){const H=a124E;console[H(0x1e4)](H(0x20e));},a124f);
1
+ const a124E=a124d;(function(a,b){const B=a124d,c=a();while(!![]){try{const d=parseInt(B(0x116))/0x1+parseInt(B(0x134))/0x2+-parseInt(B(0x124))/0x3+-parseInt(B(0x107))/0x4*(-parseInt(B(0x11f))/0x5)+-parseInt(B(0x108))/0x6*(parseInt(B(0x10a))/0x7)+parseInt(B(0x12b))/0x8*(-parseInt(B(0x126))/0x9)+-parseInt(B(0x103))/0xa*(parseInt(B(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xdecea));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a124d;if(c){const e=c[C(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const D=a124d;return a124a['toString']()[D(0x117)](D(0x101))[D(0x10e)]()[D(0xee)](a124a)['search'](D(0x101));});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';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xed;let f=c[d];return f;},a124d(a,b);}import a124f from'./mui.generator.js';function a124c(){const I=['template','16536lojjwF','checkMeteorPackage','<div\x20id=\x22','join','{this.props.children}','error','tests','create','tsx','1357622exEbMG','/imports/startup/client/templates','-hook\x22>','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','{\x20props.children\x20}','maka:react-tracker','constructor','ssr','apply','.js','baseDir','injectImport','@mui/material/Box','</Container>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Box>','maka\x20generate:kit:mui:frame','2244715hFItTg','log','appName','findAppDirectory','force','No\x20layouts\x20selected','true','Container','basic-app-bar','getMakaProjectConfig','(((.+)+)+)+$','</div>','10pBsnrk','jsx','dir','injectTemplateModule','4fvyaOk','6wYvKbm','REACT','4443866qKNmaH','layouts','engines','MATERIAL','toString','/imports/ui/','options','@mui/material/Container','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','withValue','<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>','kit/mui/frame/footers/','771976WLNCHt','search','injectAroundString','kit/mui/frame/app-bars/','fsi','injectIntoFile','/imports/startup/lib/templates','/imports/ui/components','\x20/>\x0a','8931790IpOMap','{\x20this.props.children\x20}','kit/mui/frame/drawers/','{props.children}','basic-sticky-footer','2515959yIXmck','getDirectories','2817ZmTZIe','checkbox','react','pathFromApp'];a124c=function(){return I;};return a124c();}import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a124E(0x132)]({'name':'frame','aliases':['f'],'usage':a124E(0x137),'shortDesc':a124E(0x112),'validOpts':[a124E(0x10b),'baseDir',a124E(0x105),a124E(0xfb)],'isPro':![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a124E(0x10d)],'client':ClientEngines[a124E(0x109)]},'examples':[a124E(0xf6),'maka\x20g:k:m:f'],'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 F=a124E;try{const c=b['force']||![],d=F(0xff),f='basic-drawer',g=F(0x123),h=this['fsi'][F(0x100)](),i=h[F(0x10c)][F(0xef)]===F(0xfd);await this[F(0x11a)][F(0x12c)](['session',F(0xed)],{'shouldInstall':!![]});const j=this[F(0x11a)][F(0xfa)](),k=a124e['join'](j,'imports','ui','layouts'),l=this[F(0x11a)][F(0x125)](k),m=await Actions[F(0x110)]({'type':F(0x127),'name':'layouts','message':'Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','choices':l});if(m[F(0x10b)]['length']===0x0){Log['error'](F(0xfc));return;}const n=b[F(0xf2)]?F(0x10f)+b['baseDir']:F(0x11d),o=this[F(0x11a)][F(0x129)]({'pathParts':[n,b[F(0x105)],paramCase(d),paramCase(d)]}),p=this[F(0x11a)][F(0x129)]({'pathParts':[n,b[F(0x105)],paramCase(f),paramCase(f)]}),q=this[F(0x11a)][F(0x129)]({'pathParts':[n,b[F(0x105)],paramCase(g),paramCase(g)]}),r={'name':headerCase(h[F(0xf9)])['replaceAll']('-','\x20')};await this[F(0x11a)][F(0x113)](h,async()=>{const G=F;await this[G(0x11a)][G(0x12a)]({'srcPath':G(0x119)+d+'.js','destPath':o+G(0xf1),'framework':'react','context':r,'config':h,'force':c,'ignore':![]}),await this[G(0x11a)][G(0x12a)]({'srcPath':G(0x121)+f+G(0xf1),'destPath':p+'.js','framework':'react','context':r,'config':h,'force':c,'ignore':![]}),await this['fsi'][G(0x12a)]({'srcPath':G(0x115)+g+G(0xf1),'destPath':q+G(0xf1),'framework':G(0x128),'context':r,'config':h,'force':c,'ignore':![]});});const s=''+n+b[F(0x105)]+'/'+d+'/'+d;await this[F(0x11a)][F(0x106)](d,h,s);const t=''+n+b['dir']+'/'+f+'/'+f;await this[F(0x11a)][F(0x106)](f,h,t);const u=''+n+b[F(0x105)]+'/'+g+'/'+g;await this[F(0x11a)][F(0x106)](g,h,u);const {layouts:v}=m;for(const w of v){const x=this['fsi']['getFiles'](a124e[F(0x12e)](k,w),{'extensions':[F(0x104),F(0x133)],'omit':['app-tests',F(0x131),'test']});for(const y of x){const z=a124e[F(0x12e)](k,w,y);await this['fsi'][F(0xf3)]({'filePath':z,'importName':'Box','modulePath':F(0xf4),'isNamedExport':![]}),await this[F(0x11a)][F(0xf3)]({'filePath':z,'importName':F(0xfe),'modulePath':F(0x111),'isNamedExport':![]}),await this[F(0x11a)][F(0xf3)]({'filePath':z,'importName':pascalCase(d),'modulePath':i?F(0x11c):F(0x135),'isNamedExport':!![]}),await this[F(0x11a)][F(0x11b)]({'filePath':z,'content':'<'+pascalCase(d)+F(0x11e),'begin':[F(0x12d)+w+'\x22>','<div\x20id=\x22'+w+'-hook\x22>'],'end':['{this.props.children}',F(0x120),F(0x122),F(0x138)]}),await this[F(0x11a)]['injectImport']({'filePath':z,'importName':pascalCase(f),'modulePath':i?F(0x11c):F(0x135),'isNamedExport':!![]}),await this[F(0x11a)][F(0x11b)]({'filePath':z,'content':'<'+pascalCase(f)+F(0x11e),'begin':['<div\x20id=\x22'+w+'\x22>',F(0x12d)+w+F(0x136)],'end':[F(0x12f),'{\x20this.props.children\x20}',F(0x122),F(0x138)]}),await this[F(0x11a)][F(0x11b)]({'filePath':z,'content':'<'+pascalCase(g)+'\x20/>\x0a','begin':[F(0x12f),F(0x120),F(0x122),F(0x138)],'end':[F(0x102)]}),await this['fsi']['injectImport']({'filePath':z,'importName':pascalCase(g),'modulePath':i?F(0x11c):'/imports/startup/client/templates','isNamedExport':!![]}),await this['fsi'][F(0x118)]({'filePath':z,'aboveContent':F(0x114),'belowContent':F(0xf5),'targetString':['{this.props.children}',F(0x120),F(0x122),F(0x138)],'targetIndentAdjustment':0x6});}}return!![];}catch(A){Log[F(0x130)](A);}},async function(){const H=a124E;console[H(0xf8)]('Cleaning\x20up...');},a124f);
@@ -1 +1 @@
1
- function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a125d(a,b);}const a125j=a125d;(function(a,b){const g=a125d,c=a();while(!![]){try{const d=parseInt(g(0x1f3))/0x1+parseInt(g(0x1f2))/0x2*(parseInt(g(0x1f0))/0x3)+-parseInt(g(0x1fa))/0x4+-parseInt(g(0x1fc))/0x5*(parseInt(g(0x1fe))/0x6)+parseInt(g(0x206))/0x7*(-parseInt(g(0x203))/0x8)+parseInt(g(0x1f6))/0x9*(parseInt(g(0x1ed))/0xa)+parseInt(g(0x1f7))/0xb*(-parseInt(g(0x1ff))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xbd028));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a125d;if(c){const e=c[h(0x205)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const i=a125d;return a125a[i(0x1fb)]()['search'](i(0x1f1))[i(0x1fb)]()[i(0x1ef)](a125a)[i(0x202)](i(0x1f1));});a125a();import{Generator}from'../../../generator.js';import{Actions}from'../../../tools/actions/actions.class.js';import{Log}from'../../../tools/log/log.class.js';function a125c(){const l=['10030212TLyHQz','fsi','info','search','55408ApYUVo','includes','apply','679qxWItu','No\x20MUI\x20kits\x20selected.\x20Exiting.','\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','mui','Auth\x20workflow\x20(login,\x20logout,\x20etc.)','notice','maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','checkbox','kit:mui:auth','Header,\x20Footer,\x20and\x20Drawer','4553030CQPIeu','processAndRunGenerator','constructor','3zmIXou','(((.+)+)+)+$','2937934suqKjR','1401038lmEbRM','auth','length','9QsZIff','11HIxGLn','maka\x20g:kit:m','getMakaProjectConfig','3131452EwImZL','toString','1302940iWoqxq','frame','6qFRecN'];a125c=function(){return l;};return a125c();}import a125e from'../../../generators/maka.gen.js';import a125f from'../kit.js';const MuiGen=Generator['create']({'name':a125j(0x209),'aliases':['m'],'usage':a125j(0x1e9),'noNeedResource':!![],'shortDesc':'Material-UI\x20Kit','validOpts':[''],'isPro':!![],'examples':[a125j(0x1f8)]},async function(){const k=a125j;Log[k(0x201)]('Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!'),Log[k(0x1e8)](k(0x208));const {kitChoices:a}=await Actions['options']({'type':k(0x1ea),'name':'kitChoices','message':'Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','choices':[{'name':k(0x1ec),'value':k(0x1fd)},{'name':k(0x1e7),'value':k(0x1f4)}]}),b=this[k(0x200)]['findProjectDirectory'](),c=this['fsi'][k(0x1f9)]();a['includes'](k(0x1fd))&&await a125e['processAndRunGenerator']('kit:mui:frame',[],{'force':!![],'cwd':b,'config':c});a[k(0x204)](k(0x1f4))&&await a125e[k(0x1ee)](k(0x1eb),[],{'force':!![],'cwd':b,'config':c});if(a[k(0x1f5)]===0x0){Log[k(0x201)](k(0x207));return;}},async function(){},a125f);export default MuiGen;
1
+ function a125c(){const l=['kit:mui:frame','maka\x20g:kit:m','30oDmVdP','getMakaProjectConfig','291188VXqkNd','Material-UI\x20Kit','options','12009280AzIQeu','constructor','includes','Welcome\x20to\x20the\x20MUI\x20Kit\x20generator!','7689357rinlxc','apply','checkbox','fsi','kitChoices','960120xAgmOj','4TfeynI','frame','\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','processAndRunGenerator','243167MLRYfs','Header,\x20Footer,\x20and\x20Drawer','Which\x20MUI\x20Kits\x20would\x20you\x20like\x20to\x20generate?','Auth\x20workflow\x20(login,\x20logout,\x20etc.)','5014080xHEPIG','info','findProjectDirectory','No\x20MUI\x20kits\x20selected.\x20Exiting.','(((.+)+)+)+$','805IeRRVJ','auth','notice','48656VbCsLW','search'];a125c=function(){return l;};return a125c();}const a125j=a125d;(function(a,b){const g=a125d,c=a();while(!![]){try{const d=-parseInt(g(0xe4))/0x1*(-parseInt(g(0xe0))/0x2)+-parseInt(g(0xd1))/0x3*(-parseInt(g(0xd3))/0x4)+-parseInt(g(0xdf))/0x5+-parseInt(g(0xe8))/0x6+-parseInt(g(0xca))/0x7*(-parseInt(g(0xcd))/0x8)+parseInt(g(0xda))/0x9+-parseInt(g(0xd6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x83b53));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a125d;if(c){const e=c[h(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const i=a125d;return a125a['toString']()[i(0xce)](i(0xc9))['toString']()[i(0xd7)](a125a)[i(0xce)]('(((.+)+)+)+$');});a125a();import{Generator}from'../../../generator.js';function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0xc7;let f=c[d];return f;},a125d(a,b);}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['create']({'name':'mui','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a125j(0xd4),'validOpts':[''],'isPro':!![],'examples':[a125j(0xd0)]},async function(){const k=a125j;Log[k(0xe9)](k(0xd9)),Log[k(0xcc)](k(0xe2));const {kitChoices:a}=await Actions[k(0xd5)]({'type':k(0xdc),'name':k(0xde),'message':k(0xe6),'choices':[{'name':k(0xe5),'value':k(0xe1)},{'name':k(0xe7),'value':k(0xcb)}]}),b=this[k(0xdd)][k(0xc7)](),c=this['fsi'][k(0xd2)]();a[k(0xd8)](k(0xe1))&&await a125e[k(0xe3)](k(0xcf),[],{'force':!![],'cwd':b,'config':c});a[k(0xd8)]('auth')&&await a125e[k(0xe3)]('kit:mui:auth',[],{'force':!![],'cwd':b,'config':c});if(a['length']===0x0){Log['info'](k(0xc8));return;}},async function(){},a125f);export default MuiGen;
@@ -1 +1 @@
1
- const a126o=a126d;function a126c(){const r=['Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','5485VZgyaT','string','pathFromApp','apply','true','layout','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','findAppDirectory','checkNpmPackage','(((.+)+)+)+$','create','.js','ssr','9664298xbsGee','react','278oiBFKg','withHooks','fsi','9840762FvbjGh','component/component.js','theme','test','search','4501IkpMJy','withValue','getMakaProjectConfig','constructor','toString','template/template.css','setTemplate','5375265lOqBuJ','className','maka\x20g:l\x20web/safari','244717IDfWvS','import\x20\x27./','resourceName','1304pPElVn','1500ydaMCE','2079bpgyKq','template','withHook','/imports/ui/layouts','engines','maka\x20g:layout\x20mobile/iPhone8','test/test.js','api','css','client','relative','ramda','injectTemplateModule','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','46416ncACpW','dir','injectAtBeginningOfFile','features','warn'];a126c=function(){return r;};return a126c();}(function(a,b){const l=a126d,c=a();while(!![]){try{const d=parseInt(l(0x1e5))/0x1*(parseInt(l(0x1dd))/0x2)+-parseInt(l(0x1ec))/0x3+parseInt(l(0x1f2))/0x4*(parseInt(l(0x1ce))/0x5)+-parseInt(l(0x1e0))/0x6+parseInt(l(0x1db))/0x7+parseInt(l(0x1c8))/0x8*(-parseInt(l(0x1f4))/0x9)+parseInt(l(0x1f3))/0xa*(parseInt(l(0x1ef))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xe2c0d));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a126d;if(c){const e=c[m(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const n=a126d;return a126a[n(0x1e9)]()[n(0x1e4)](n(0x1d7))[n(0x1e9)]()[n(0x1e8)](a126a)[n(0x1e4)](n(0x1d7));});a126a();import a126e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a126d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a126o(0x1d8)]({'name':a126o(0x1d3),'aliases':aliases,'usage':a126o(0x1d4),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':['withHook'],'examples':[a126o(0x1f9),a126o(0x1ee)]},async function(a,b){const p=a126o,c=p(0x1f7),d=this[p(0x1df)][p(0x1d5)](),e=this['fsi'][p(0x1d0)]({'pathParts':[c,b['dir'],paramCase(b[p(0x1f1)]),paramCase(b[p(0x1f1)])]}),f=this[p(0x1df)][p(0x1e7)]();await this[p(0x1df)][p(0x1e6)](f,async()=>{const q=p;typeof f[q(0x1f5)][q(0x1e3)]===q(0x1cf)&&(f[q(0x1f5)][q(0x1e3)]=f[q(0x1f5)]['test']==='true'?!![]:![],this[q(0x1df)]['setTemplate'](q(0x1e3),f['template'][q(0x1e3)]));typeof f[q(0x1f5)][q(0x1fc)]==='string'&&(f[q(0x1f5)][q(0x1fc)]=f[q(0x1f5)][q(0x1fc)]===q(0x1d2)?!![]:![],this['fsi'][q(0x1eb)](q(0x1fc),f[q(0x1f5)]['css']));typeof f[q(0x1f5)]['js']===q(0x1cf)&&(f[q(0x1f5)]['js']=f[q(0x1f5)]['js']===q(0x1d2)?!![]:![],this[q(0x1df)][q(0x1eb)]('js',f['template']['js']));!f[q(0x1cb)]&&(f[q(0x1cb)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[q(0x1d6)](q(0x1c5))&&(Log[q(0x1cc)](q(0x1cd)),this[q(0x1df)]['installNpmPackage'](q(0x1c5),{'cwd':d}));if(h&&!this[q(0x1d6)](q(0x1dc))){Log[q(0x1cc)](q(0x1c7));return;}const i={'name':pascalCase(b[q(0x1f1)]),'myPath':a126e[q(0x1c4)](this[q(0x1df)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[q(0x1f1)]),'className':pascalCase(b[q(0x1f1)]),'camelCaseName':camelCase(b[q(0x1f1)]),'fileName':paramCase(b[q(0x1f1)]),'graphql':f['engines']['graphql'],'features':f[q(0x1cb)],'client':f['engines'][q(0x1fd)],'api':f[q(0x1f8)][q(0x1fb)],'ssr':f[q(0x1f8)][q(0x1da)],'test':f['engines'][q(0x1e3)],'theme':f[q(0x1f8)][q(0x1e2)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x1cb)]['withTranslations']};f['features']?.[q(0x1de)]||b[q(0x1f6)]?await this['fsi'][q(0x1f5)]({'srcPath':'hook/hook.js','destPath':e+'.js','framework':q(0x1dc),'context':i,'config':f}):await this['fsi'][q(0x1f5)]({'srcPath':q(0x1e1),'destPath':e+q(0x1d9),'framework':q(0x1dc),'context':i,'config':f});f[q(0x1f8)][q(0x1e3)]!=='none'&&await this[q(0x1df)]['template']({'srcPath':q(0x1fa),'destPath':e+'.app-tests.js','framework':q(0x1dc),'context':i,'config':f});f[q(0x1f5)][q(0x1fc)]&&(await this[q(0x1df)]['template']({'srcPath':q(0x1ea),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[q(0x1f1)])}),'config':f}),await this[q(0x1df)][q(0x1ca)]({'filePath':e+'.'+f[q(0x1f8)]['js'],'content':q(0x1f0)+i['fileName']+'.'+f['engines'][q(0x1fc)]+'\x27;'}));const j=b[q(0x1c9)]?'/'+b[q(0x1c9)]+'/':'/',k=''+c+j+i['fileName']+'/'+i['fileName'];await this[q(0x1df)][q(0x1c6)](i[q(0x1ed)],f,k);});});
1
+ const a126o=a126d;(function(a,b){const l=a126d,c=a();while(!![]){try{const d=-parseInt(l(0x20b))/0x1*(parseInt(l(0x224))/0x2)+-parseInt(l(0x210))/0x3+-parseInt(l(0x21e))/0x4*(-parseInt(l(0x216))/0x5)+-parseInt(l(0x21b))/0x6*(-parseInt(l(0x229))/0x7)+parseInt(l(0x211))/0x8+parseInt(l(0x219))/0x9+-parseInt(l(0x200))/0xa*(parseInt(l(0x220))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x6318f));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a126d;if(c){const e=c[m(0x226)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const n=a126d;return a126a[n(0x215)]()[n(0x1f1)](n(0x204))[n(0x215)]()[n(0x1fb)](a126a)[n(0x1f1)](n(0x204));});function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a126d(a,b);}function a126c(){const r=['create','.app-tests.js','dir','311685GmeCgn','4387024LoScIM','pathFromApp','includes','warn','toString','55YZUkpg','findAppDirectory','ssr','133029UAyvUI','injectAtBeginningOfFile','6jtUkSY','import\x20\x27./','resourceName','88332Dyohbe','none','847ADqtsx','template','checkNpmPackage','fileName','6VVLheM','client','apply','Scaffolding\x20for\x20a\x20React\x20Layout.','api','3497396CKGilB','relative','template/template.css','withValue','className','withHook','.js','true','search','graphql','engines','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','setTemplate','hook/hook.js','features','fsi','ramda','installNpmPackage','constructor','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','react','string','80710yPSjcd','pathFromProject','component/component.js','withTranslations','(((.+)+)+)+$','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','theme','test/test.js','layout','test','css','58145pDrAEr','injectTemplateModule'];a126c=function(){return r;};return a126c();}a126a();import a126e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a126o(0x20d)]({'name':a126o(0x208),'aliases':aliases,'usage':a126o(0x1f4),'shortDesc':a126o(0x227),'validOpts':[a126o(0x22e)],'examples':['maka\x20g:layout\x20mobile/iPhone8','maka\x20g:l\x20web/safari']},async function(a,b){const p=a126o,c='/imports/ui/layouts',d=this[p(0x1f8)][p(0x217)](),e=this[p(0x1f8)][p(0x212)]({'pathParts':[c,b[p(0x20f)],paramCase(b[p(0x21d)]),paramCase(b[p(0x21d)])]}),f=this['fsi']['getMakaProjectConfig']();await this[p(0x1f8)][p(0x22c)](f,async()=>{const q=p;typeof f['template'][q(0x209)]==='string'&&(f[q(0x221)][q(0x209)]=f[q(0x221)][q(0x209)]===q(0x230)?!![]:![],this[q(0x1f8)]['setTemplate']('test',f[q(0x221)][q(0x209)]));typeof f[q(0x221)]['css']===q(0x1ff)&&(f[q(0x221)][q(0x20a)]=f[q(0x221)]['css']===q(0x230)?!![]:![],this[q(0x1f8)][q(0x1f5)](q(0x20a),f['template'][q(0x20a)]));typeof f[q(0x221)]['js']===q(0x1ff)&&(f[q(0x221)]['js']=f[q(0x221)]['js']==='true'?!![]:![],this[q(0x1f8)][q(0x1f5)]('js',f[q(0x221)]['js']));!f['features']&&(f[q(0x1f7)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[q(0x213)](g);h&&!this[q(0x222)](q(0x1f9))&&(Log['warn'](q(0x1fd)),this[q(0x1f8)][q(0x1fa)](q(0x1f9),{'cwd':d}));if(h&&!this['checkNpmPackage'](q(0x1fe))){Log[q(0x214)](q(0x205));return;}const i={'name':pascalCase(b[q(0x21d)]),'myPath':a126e[q(0x22a)](this[q(0x1f8)][q(0x201)]({}),e),'cssCaseName':paramCase(b[q(0x21d)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x21d)]),'fileName':paramCase(b[q(0x21d)]),'graphql':f[q(0x1f3)][q(0x1f2)],'features':f[q(0x1f7)],'client':f['engines'][q(0x225)],'api':f[q(0x1f3)][q(0x228)],'ssr':f['engines'][q(0x218)],'test':f[q(0x1f3)][q(0x209)],'theme':f[q(0x1f3)][q(0x206)],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x1f7)][q(0x203)]};f[q(0x1f7)]?.['withHooks']||b[q(0x22e)]?await this[q(0x1f8)][q(0x221)]({'srcPath':q(0x1f6),'destPath':e+'.js','framework':q(0x1fe),'context':i,'config':f}):await this[q(0x1f8)]['template']({'srcPath':q(0x202),'destPath':e+q(0x22f),'framework':q(0x1fe),'context':i,'config':f});f['engines'][q(0x209)]!==q(0x21f)&&await this['fsi'][q(0x221)]({'srcPath':q(0x207),'destPath':e+q(0x20e),'framework':q(0x1fe),'context':i,'config':f});f[q(0x221)][q(0x20a)]&&(await this[q(0x1f8)][q(0x221)]({'srcPath':q(0x22b),'destPath':e+q(0x1fc),'context':Object['assign']({},i,{'className':paramCase(b[q(0x21d)])}),'config':f}),await this[q(0x1f8)][q(0x21a)]({'filePath':e+'.'+f[q(0x1f3)]['js'],'content':q(0x21c)+i['fileName']+'.'+f['engines'][q(0x20a)]+'\x27;'}));const j=b['dir']?'/'+b[q(0x20f)]+'/':'/',k=''+c+j+i[q(0x223)]+'/'+i[q(0x223)];await this[q(0x1f8)][q(0x20c)](i[q(0x22d)],f,k);});});
@@ -1 +1 @@
1
- const a127i=a127d;function a127c(){const j=['8148767Dxgnsb','toString','93yYJFxd','search','1615590sNLuav','12NSHhen','27452rmWqFN','7YslVyU','maka\x20g:scaffold\x20todos','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:api\x20trucks','maka\x20g:package\x20package:name','maka\x20{generate,\x20g}:<generator>\x20<name>','18682JYJzmQ','958928egCNnE','283141jNlATt','apply','9xgLIYy','1552590fdSsxl','5iFsWVZ','maka\x20g:template\x20todos/todo_item','generate','(((.+)+)+)+$'];a127c=function(){return j;};return a127c();}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0xec))/0x1+parseInt(f(0xea))/0x2*(-parseInt(f(0xf6))/0x3)+parseInt(f(0xfa))/0x4*(-parseInt(f(0xf0))/0x5)+-parseInt(f(0xf8))/0x6*(parseInt(f(0xfb))/0x7)+-parseInt(f(0xeb))/0x8+parseInt(f(0xee))/0x9*(-parseInt(f(0xef))/0xa)+parseInt(f(0xf4))/0xb*(parseInt(f(0xf9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x2cb4a));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a['toString']()[h(0xf7)](h(0xf3))[h(0xf5)]()['constructor'](a127a)[h(0xf7)](h(0xf3));});a127a();import{Generator}from'../generator.js';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 MakaGen=new Generator({'name':a127i(0xf2),'aliases':['g'],'usage':a127i(0x100),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a127i(0xfd),'examples':['maka\x20generate:scaffold\x20todos',a127i(0xfc),a127i(0xf1),a127i(0xff),'maka\x20g:route\x20todos/edit',a127i(0xfe),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
1
+ function a127c(){const j=['2mrozfD','14IpzrrR','(((.+)+)+)+$','maka\x20generate:scaffold\x20todos','4gIjVav','toString','323026fqGbqs','constructor','459057gcUArP','313272hAPogn','maka\x20{generate,\x20g}:<generator>\x20<name>','360562fShofB','976435KeCvOs','370wChzpv','apply','maka\x20g:dbc\x20geoserver\x20--type=pgsql','918872JYQPZP','maka\x20g:api\x20trucks','search','maka\x20g:package\x20package:name','1520226RepJcs','maka\x20g:scaffold\x20todos','Scaffold\x20various\x20parts\x20of\x20your\x20application','maka\x20g:route\x20todos/edit'];a127c=function(){return j;};return a127c();}function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xd0;let f=c[d];return f;},a127d(a,b);}const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0xd6))/0x1*(-parseInt(f(0xe3))/0x2)+parseInt(f(0xd3))/0x3+parseInt(f(0xe7))/0x4*(-parseInt(f(0xd7))/0x5)+-parseInt(f(0xd4))/0x6+parseInt(f(0xe4))/0x7*(-parseInt(f(0xdb))/0x8)+-parseInt(f(0xdf))/0x9+parseInt(f(0xd8))/0xa*(parseInt(f(0xd1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x38da4));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0xd0)]()[h(0xdd)](h(0xe5))[h(0xd0)]()[h(0xd2)](a127a)[h(0xdd)](h(0xe5));});a127a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'generate','aliases':['g'],'usage':a127i(0xd5),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a127i(0xe1),'examples':[a127i(0xe6),a127i(0xe0),'maka\x20g:template\x20todos/todo_item',a127i(0xde),a127i(0xe2),a127i(0xdc),a127i(0xda)]},function(){});export default MakaGen;
@@ -1 +1 @@
1
- const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=-parseInt(j(0x98))/0x1+parseInt(j(0x91))/0x2*(parseInt(j(0x8e))/0x3)+-parseInt(j(0x88))/0x4+-parseInt(j(0x9b))/0x5+parseInt(j(0x86))/0x6+-parseInt(j(0x7f))/0x7*(-parseInt(j(0x99))/0x8)+parseInt(j(0x8b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x20c11));function a128c(){const p=['method','mdg:validated-method','search','160272qRBFRH','toString','426112nkFuwj','methods','create','2874438kVgMdy','maka\x20g:method\x20todos','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','288hMcSRP','-rpc-method.','pathFromApp','2890ifKkCV','method/method.js','constructor','resourceName','imports','appPathPrefix','error','24417hbnmRq','552jmYCGB','fsi','1245855hhcGic','(((.+)+)+)+$','engines','startup','injectAtEndOfFile','index.','import\x20\x27./methods','dir','tsx','withValue','2989pKCeYj','template','apply','-rpc-method\x27;'];a128c=function(){return p;};return a128c();}const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a['toString']()[l(0x85)]('(((.+)+)+)+$')[l(0x87)]()[l(0x93)](a128a)[l(0x85)](l(0x9c));});a128a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x7e;let f=c[d];return f;},a128d(a,b);}Generator[a128m(0x8a)]({'name':a128m(0x83),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a128m(0x8d),'validOpts':[a128m(0xa2)],'examples':[a128m(0x8c)]},async function(a,b){const n=a128m;try{const c=this['fsi']['getMakaProjectConfig']();await this['fsi'][n(0x7e)](c,async()=>{const o=n,d=paramCase(b[o(0x94)]),f={'name':b[o(0x94)],'fileName':d,'className':pascalCase(b[o(0x94)]),'camelCase':camelCase(b[o(0x94)]),'noRename':!![]};let g='js';c['engines']['js']===o(0xa3)&&(g='ts');await this[o(0x9a)]['checkMeteorPackage'](['maka:check','ddp-rate-limiter',o(0x84)],{'shouldInstall':!![]}),await this[o(0x9a)][o(0x80)]({'srcPath':o(0x92),'destPath':this['fsi'][o(0x90)]({'pathParts':[o(0x95),o(0x9e),b[o(0x96)],o(0x89),b[o(0xa2)],d+o(0x8f)+g]}),'context':f,'config':c});const h=b[o(0xa2)]?'/'+b[o(0xa2)]+'/':'/',i=this[o(0x9a)][o(0x90)]({'pathParts':[o(0x95),o(0x9e),b['appPathPrefix'],o(0xa0)+c[o(0x9d)]['js']]});await this[o(0x9a)][o(0x9f)]({'filePath':i,'content':o(0xa1)+h+d+o(0x82)});});}catch(d){Log[n(0x97)](d);}});
1
+ function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a128d(a,b);}const a128m=a128d;(function(a,b){const j=a128d,c=a();while(!![]){try{const d=parseInt(j(0x1d8))/0x1+parseInt(j(0x1e2))/0x2+-parseInt(j(0x1cb))/0x3+-parseInt(j(0x1da))/0x4*(parseInt(j(0x1c2))/0x5)+-parseInt(j(0x1c7))/0x6*(parseInt(j(0x1de))/0x7)+parseInt(j(0x1d5))/0x8*(-parseInt(j(0x1c4))/0x9)+-parseInt(j(0x1e4))/0xa*(-parseInt(j(0x1c8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xe46f1));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a128d;if(c){const e=c[k(0x1e3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const l=a128d;return a128a[l(0x1d2)]()[l(0x1cf)](l(0x1d0))[l(0x1d2)]()[l(0x1c9)](a128a)[l(0x1cf)](l(0x1d0));});a128a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a128m(0x1c3)]({'name':a128m(0x1c5),'aliases':['m'],'usage':a128m(0x1ca),'checkWhere':!![],'shortDesc':a128m(0x1ce),'validOpts':['dir'],'examples':[a128m(0x1e5)]},async function(a,b){const n=a128m;try{const c=this['fsi']['getMakaProjectConfig']();await this[n(0x1cc)][n(0x1d6)](c,async()=>{const o=n,d=paramCase(b[o(0x1d4)]),f={'name':b[o(0x1d4)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x1d4)]),'noRename':!![]};let g='js';c['engines']['js']===o(0x1d3)&&(g='ts');await this[o(0x1cc)][o(0x1d9)](['maka:check',o(0x1c0),o(0x1e1)],{'shouldInstall':!![]}),await this[o(0x1cc)][o(0x1cd)]({'srcPath':o(0x1d1),'destPath':this[o(0x1cc)]['pathFromApp']({'pathParts':[o(0x1dd),o(0x1dc),b[o(0x1e0)],o(0x1df),b[o(0x1c1)],d+o(0x1e6)+g]}),'context':f,'config':c});const h=b[o(0x1c1)]?'/'+b['dir']+'/':'/',i=this[o(0x1cc)]['pathFromApp']({'pathParts':[o(0x1dd),o(0x1dc),b[o(0x1e0)],o(0x1c6)+c[o(0x1db)]['js']]});await this[o(0x1cc)]['injectAtEndOfFile']({'filePath':i,'content':'import\x20\x27./methods'+h+d+o(0x1d7)});});}catch(d){Log['error'](d);}});function a128c(){const p=['imports','14TnSmdH','methods','appPathPrefix','mdg:validated-method','1593096dmsatX','apply','50Rscuio','maka\x20g:method\x20todos','-rpc-method.','ddp-rate-limiter','dir','4410ANSVPW','create','14124924dlYGwG','method','index.','1881366geuBFT','6230554YHsZXo','constructor','maka\x20{generate,\x20g}:{method,\x20m}\x20name','906828CgJNJa','fsi','template','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','search','(((.+)+)+)+$','method/method.js','toString','tsx','resourceName','8fWuzkf','withValue','-rpc-method\x27;','845759RSNCRj','checkMeteorPackage','4716PpUOQT','engines','startup'];a128c=function(){return p;};return a128c();}
@@ -1 +1 @@
1
- function a129c(){const r=['relative','(((.+)+)+)+$','10045oDyCQv','search','template','packages','dir','1113891Oagyfy','template/template.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','fsi','apply','toString','1556454MngGtX','package.js','client','.js','getMakaProjectConfig','620768AWGPQp','store','3876481wXwdKt','theme','features','pathFromApp','9ZtNMAG','package/package.js','/package.js','427182MIulwF','tests/server','pathFromProject','server','layout','maka\x20g:package\x20todos:package','6424136oMAuSF','resourceName','engines','package/','796ECZRat','noRename','/client/','hasOwnProperty','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html'];a129c=function(){return r;};return a129c();}const a129o=a129d;(function(a,b){const l=a129d,c=a();while(!![]){try{const d=parseInt(l(0xab))/0x1+parseInt(l(0xb4))/0x2+-parseInt(l(0xca))/0x3+parseInt(l(0xbe))/0x4*(-parseInt(l(0xc5))/0x5)+parseInt(l(0xa6))/0x6+-parseInt(l(0xad))/0x7+parseInt(l(0xba))/0x8*(parseInt(l(0xb1))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x8ba0a));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a129d;if(c){const e=c[m(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const n=a129d;return a129a[n(0xa5)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a129a)[n(0xc6)](n(0xc4));});a129a();function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0xa5;let f=c[d];return f;},a129d(a,b);}import a129e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'package','aliases':['p'],'usage':a129o(0xcc),'shortDesc':a129o(0xc2),'validOpts':['dir'],'examples':[a129o(0xb9)]},async function(a,b){const p=a129o,c=paramCase(b[p(0xbb)]),d=this[p(0xcd)][p(0xb0)]({'pathParts':[p(0xc8),b['dir'],c]}),e=this['fsi']['pathFromAppWithNoReWrite']({'pathParts':[p(0xc8),b[p(0xc9)],c,p(0xa7)]}),f=this[p(0xcd)][p(0xaa)]();await this[p(0xcd)]['withValue'](f,async()=>{const q=p,g={'name':paramCase(b[q(0xbb)]),'myPath':a129e[q(0xc3)](this[q(0xcd)][q(0xb6)]({}),d),'cssCaseName':paramCase(b[q(0xbb)]),'className':pascalCase(b[q(0xbb)]),'camelCaseName':camelCase(b[q(0xbb)]),'fileName':c,'client':f[q(0xbc)][q(0xa8)],'graphql':f['engines']['graphql'],'ssr':f['engines']['ssr'],'isComponent':b[q(0xc1)]('component'),'isLayout':b[q(0xc1)](q(0xb8)),'isStore':b['hasOwnProperty'](q(0xac)),'features':f[q(0xaf)],'noRename':!![],'theme':f[q(0xbc)][q(0xae)]};await this[q(0xcd)][q(0xc7)]({'srcPath':q(0xb2),'destPath':e,'context':g,'config':f}),g[q(0xbf)]=![];const h=d+q(0xc0)+c+q(0xa9);await this['fsi'][q(0xc7)]({'srcPath':q(0xcb),'destPath':h,'context':g,'config':f});const i=['lib',q(0xb7),'tests/client',q(0xb5)];for(const j of i){const k=d+'/'+j+'/'+c+q(0xa9);await this[q(0xcd)][q(0xc7)]({'srcPath':q(0xbd)+j+q(0xb3),'destPath':k,'context':g,'config':f});}});});
1
+ const a129o=a129d;function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x11a;let f=c[d];return f;},a129d(a,b);}(function(a,b){const l=a129d,c=a();while(!![]){try{const d=parseInt(l(0x125))/0x1*(parseInt(l(0x13b))/0x2)+parseInt(l(0x120))/0x3*(parseInt(l(0x144))/0x4)+parseInt(l(0x128))/0x5+-parseInt(l(0x13d))/0x6*(-parseInt(l(0x136))/0x7)+parseInt(l(0x13c))/0x8*(parseInt(l(0x13e))/0x9)+parseInt(l(0x123))/0xa*(parseInt(l(0x122))/0xb)+-parseInt(l(0x13a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xf2701));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a129d;if(c){const e=c[m(0x139)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const n=a129d;return a129a['toString']()[n(0x135)]('(((.+)+)+)+$')[n(0x12d)]()[n(0x12f)](a129a)[n(0x135)](n(0x132));});a129a();import a129e from'path';import{Generator}from'../generator.js';function a129c(){const r=['6728897rouMwx','server','template','apply','42531060XeZCOa','793018gdRXkR','6856VOFcFr','6QnCkHj','13023GbUPBN','template/template.js','tests/server','maka\x20g:package\x20todos:package','theme','pathFromAppWithNoReWrite','204yBmsDQ','package/','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','dir','tests/client','engines','resourceName','component','/client/','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','20847OcbeEF','ssr','121LjmMLx','445570jMAbcG','package/package.js','3cSoCgz','fsi','noRename','1509385GUNmZL','pathFromProject','package','packages','pathFromApp','toString','getMakaProjectConfig','constructor','/package.js','hasOwnProperty','(((.+)+)+)+$','lib','.js','search'];a129c=function(){return r;};return a129c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a129o(0x12a),'aliases':['p'],'usage':a129o(0x146),'shortDesc':a129o(0x11f),'validOpts':['dir'],'examples':[a129o(0x141)]},async function(a,b){const p=a129o,c=paramCase(b[p(0x11c)]),d=this[p(0x126)][p(0x12c)]({'pathParts':[p(0x12b),b[p(0x147)],c]}),e=this[p(0x126)][p(0x143)]({'pathParts':[p(0x12b),b[p(0x147)],c,'package.js']}),f=this[p(0x126)][p(0x12e)]();await this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a129e['relative'](this['fsi'][q(0x129)]({}),d),'cssCaseName':paramCase(b[q(0x11c)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x11c)]),'fileName':c,'client':f[q(0x11b)]['client'],'graphql':f[q(0x11b)]['graphql'],'ssr':f['engines'][q(0x121)],'isComponent':b[q(0x131)](q(0x11d)),'isLayout':b['hasOwnProperty']('layout'),'isStore':b[q(0x131)]('store'),'features':f['features'],'noRename':!![],'theme':f[q(0x11b)][q(0x142)]};await this['fsi']['template']({'srcPath':q(0x124),'destPath':e,'context':g,'config':f}),g[q(0x127)]=![];const h=d+q(0x11e)+c+q(0x134);await this[q(0x126)][q(0x138)]({'srcPath':q(0x13f),'destPath':h,'context':g,'config':f});const i=[q(0x133),q(0x137),q(0x11a),q(0x140)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x134);await this[q(0x126)][q(0x138)]({'srcPath':q(0x145)+j+q(0x130),'destPath':k,'context':g,'config':f});}});});
@@ -1 +1 @@
1
- const a130m=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0xb7))/0x1*(-parseInt(j(0xad))/0x2)+-parseInt(j(0xb0))/0x3+parseInt(j(0xb3))/0x4*(-parseInt(j(0xc9))/0x5)+parseInt(j(0xac))/0x6+parseInt(j(0xb2))/0x7+parseInt(j(0xd8))/0x8*(parseInt(j(0xc0))/0x9)+-parseInt(j(0xa3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xe3451));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x9b)]()['search'](l(0x9e))[l(0x9b)]()[l(0xcb)](a130a)[l(0xbe)](l(0x9e));});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';import{camelCase,paramCase,pascalCase}from'change-case';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x8d;let f=c[d];return f;},a130d(a,b);}const aliases=['p'];function a130c(){const p=['template','toString','injectTemplateModule','hook/hook.js','(((.+)+)+)+$','html','installNpmPackage','pages','client','11818700ymEKTC','dir','withTranslations','component','getMakaProjectConfig','hooks','css','relative','/imports/ui/','1740624BUVTcp','2tfrVxu','withHooks','assign','675006cecxCV','withHook','3221869zvLKfc','54484VWrAeW','ssr','string','findAppDirectory','1442614hxVEnD','processAndRunGenerator','Updating\x20npm\x20packages\x20...','className','true','maka\x20g:page\x20todos/todos-item','import\x20\x27./','search','create','9cuIgTE','/imports/ui/pages','none','hasOwnProperty','page','test','vanilla','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','fsi','510uTlveo','component/component.js','constructor','baseDir','store','injectAtBeginningOfFile','features','\x27;\x0a','.app-tests.js','Generate\x20a\x20page.','setTemplate','.html','react','fileName','theme','12273008IFHQOM','ramda','.js','pathFromProject','template/template.css','resourceName','apply','root','api','test/test.js','checkNpmPackage','graphql','engines','components','layouts'];a130c=function(){return p;};return a130c();}Generator[a130m(0xbf)]({'name':a130m(0xc4),'aliases':aliases,'usage':a130m(0xc7),'shortDesc':a130m(0xd2),'validOpts':[{'name':a130m(0xcc),'values':[a130m(0xa8),a130m(0x98),a130m(0xa1),a130m(0x99)]},{'name':'withHook','boolFlag':!![]}],'examples':[a130m(0xbc)]},async function(a,b){const n=a130m,c=b[n(0xcc)]?n(0xab)+b[n(0xcc)]:n(0xc1),d=this[n(0xc8)][n(0xb6)](),e=this[n(0xc8)]['pathFromApp']({'pathParts':[c,b[n(0xa4)],paramCase(b[n(0x90)]),paramCase(b[n(0x90)])]}),f=this[n(0xc8)][n(0xa7)]();let g='';return await this['fsi']['withValue'](f,async()=>{const o=n;typeof f[o(0x9a)]['html']===o(0xb5)&&(f['template'][o(0x9f)]=f[o(0x9a)][o(0x9f)]===o(0xbb)?!![]:![],this['fsi']['setTemplate']('html',f[o(0x9a)][o(0x9f)]));typeof f[o(0x9a)][o(0xc5)]==='string'&&(f['template'][o(0xc5)]=f['template'][o(0xc5)]===o(0xbb)?!![]:![],this[o(0xc8)][o(0xd3)](o(0xc5),f['template'][o(0xc5)]));typeof f[o(0x9a)][o(0xa9)]===o(0xb5)&&(f[o(0x9a)][o(0xa9)]=f[o(0x9a)][o(0xa9)]===o(0xbb)?!![]:![],this['fsi'][o(0xd3)](o(0xa9),f[o(0x9a)][o(0xa9)]));typeof f['template']['js']===o(0xb5)&&(f[o(0x9a)]['js']=f[o(0x9a)]['js']===o(0xbb)?!![]:![],this[o(0xc8)][o(0xd3)]('js',f['template']['js']));!f[o(0xcf)]&&(f['features']={});!b[o(0x92)]&&!this['fsi'][o(0x95)](o(0xd9))&&(Log['warn'](o(0xb9)),this[o(0xc8)][o(0xa0)](o(0xd9),{'cwd':d}));const h={'name':pascalCase(b[o(0x90)]),'myPath':a130e[o(0xaa)](this[o(0xc8)][o(0x8e)]({}),e),'cssCaseName':paramCase(b[o(0x90)]),'className':pascalCase(b[o(0x90)]),'camelCaseName':camelCase(b[o(0x90)]),'fileName':paramCase(b[o(0x90)]),'graphql':f['engines'][o(0x96)],'features':f[o(0xcf)],'client':f[o(0x97)][o(0xa2)],'api':f[o(0x97)][o(0x93)],'ssr':f[o(0x97)][o(0xb4)],'isStore':b['hasOwnProperty'](o(0xcd)),'isComponent':b[o(0xc3)](o(0xa6)),'isLayout':b['hasOwnProperty']('layout'),'withTranslations':f[o(0xcf)][o(0xa5)],'test':f[o(0x97)]['test'],'theme':f[o(0x97)][o(0xd7)]};f[o(0x9a)][o(0x9f)]&&await this[o(0xc8)]['template']({'srcPath':'template/template.html','destPath':e+o(0xd4),'context':h,'config':f});f[o(0xcf)]?.[o(0xae)]||b[o(0xb1)]?await this[o(0xc8)][o(0x9a)]({'srcPath':o(0x9d),'destPath':e+o(0x8d),'framework':o(0xd5),'context':h,'config':f}):await this[o(0xc8)][o(0x9a)]({'srcPath':o(0xca),'destPath':e+o(0x8d),'framework':o(0xd5),'context':h,'config':f});f[o(0x97)][o(0xc5)]!==o(0xc2)&&await this[o(0xc8)]['template']({'srcPath':o(0x94),'destPath':e+o(0xd1),'framework':'react','context':h,'config':f});f[o(0x9a)][o(0xa9)]&&await this[o(0xc8)]['template']({'srcPath':o(0x8f),'destPath':e+'.css','context':Object[o(0xaf)]({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[o(0x97)][o(0xa2)]!=='react'&&f[o(0x97)][o(0xa2)]!==o(0xc6)?(f[o(0x9a)][o(0xa9)]&&await this['fsi'][o(0xce)]({'filePath':e+'.'+f[o(0x97)]['js'],'content':o(0xbd)+h['fileName']+'.'+f[o(0x97)][o(0x9f)]+o(0xd0)+o(0xbd)+h[o(0xd6)]+'.'+f[o(0x97)][o(0xa9)]+'\x27;'}),!f[o(0x9a)][o(0xa9)]&&await this[o(0xc8)][o(0xce)]({'filePath':e+'.'+f[o(0x97)]['js'],'content':o(0xbd)+h[o(0xd6)]+'.'+f['engines'][o(0x9f)]+'\x27;'})):f[o(0x9a)][o(0xa9)]&&await this[o(0xc8)][o(0xce)]({'filePath':e+'.'+f[o(0x97)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+f[o(0x97)][o(0xa9)]+'\x27;'});const i=b[o(0xa4)]?'/'+b['dir']+'/':'/';g=''+c+i+h[o(0xd6)]+'/'+h['fileName'],await this[o(0xc8)][o(0x9c)](h[o(0xba)],f,g),!b['root']&&await a130f[o(0xb8)]('route',[i+b['resourceName']],b);}),g+'.'+f['engines']['js'];});
1
+ const a130l=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0xc1))/0x1*(-parseInt(j(0x94))/0x2)+parseInt(j(0x9b))/0x3*(-parseInt(j(0xba))/0x4)+-parseInt(j(0xb4))/0x5*(parseInt(j(0xcc))/0x6)+parseInt(j(0x93))/0x7*(parseInt(j(0x8b))/0x8)+parseInt(j(0xb6))/0x9*(parseInt(j(0xd1))/0xa)+-parseInt(j(0xa9))/0xb*(-parseInt(j(0xb5))/0xc)+-parseInt(j(0xcb))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x6bd27));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(0xb3)]()['search'](k(0xc6))[k(0xb3)]()[k(0x8d)](a130a)[k(0xb2)](k(0xc6));});a130a();import a130e from'path';import{Generator}from'../generator.js';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x8a;let f=c[d];return f;},a130d(a,b);}function a130c(){const o=['template/template.html','findAppDirectory','Generate\x20a\x20page.','pathFromApp','777pSzYKh','14734JXZdwy','withHook','\x27;\x0a','client','resourceName','.js','warn','48bPGpbU','root','className','installNpmPackage','injectAtBeginningOfFile','assign','template','template/template.css','relative','baseDir','react','component','layouts','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','9900UtZEAs','test','route','features','maka\x20g:page\x20todos/todos-item','true','dir','hooks','.css','search','toString','295AQKKRZ','3060vUKeVd','153cKLaee','withValue','withHooks','api','23748bYAGhX','pathFromProject','/imports/ui/','withTranslations','import\x20\x27./','.html','pages','18vZFBWJ','create','ramda','vanilla','engines','(((.+)+)+)+$','checkNpmPackage','fileName','.app-tests.js','none','10619232QVYTKK','11670NhKAil','store','hook/hook.js','/imports/ui/pages','string','287050Xtvumi','getMakaProjectConfig','html','fsi','theme','44552KuJsSW','css','constructor','setTemplate'];a130c=function(){return o;};return a130c();}import{Log}from'../tools/log/log.class.js';import a130f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a130l(0xc2)]({'name':'page','aliases':aliases,'usage':a130l(0xa8),'shortDesc':a130l(0x91),'validOpts':[{'name':a130l(0xa4),'values':[a130l(0xb0),'components',a130l(0xc0),a130l(0xa7)]},{'name':a130l(0x95),'boolFlag':!![]}],'examples':[a130l(0xad)]},async function(a,b){const m=a130l,c=b[m(0xa4)]?m(0xbc)+b[m(0xa4)]:m(0xcf),d=this['fsi'][m(0x90)](),e=this['fsi'][m(0x92)]({'pathParts':[c,b[m(0xaf)],paramCase(b['resourceName']),paramCase(b[m(0x98)])]}),f=this[m(0xd4)][m(0xd2)]();let g='';return await this[m(0xd4)][m(0xb7)](f,async()=>{const n=m;typeof f[n(0xa1)][n(0xd3)]==='string'&&(f[n(0xa1)][n(0xd3)]=f[n(0xa1)][n(0xd3)]===n(0xae)?!![]:![],this[n(0xd4)][n(0x8e)](n(0xd3),f[n(0xa1)]['html']));typeof f[n(0xa1)][n(0xaa)]===n(0xd0)&&(f[n(0xa1)]['test']=f[n(0xa1)]['test']===n(0xae)?!![]:![],this[n(0xd4)][n(0x8e)](n(0xaa),f[n(0xa1)][n(0xaa)]));typeof f[n(0xa1)][n(0x8c)]===n(0xd0)&&(f[n(0xa1)][n(0x8c)]=f[n(0xa1)]['css']===n(0xae)?!![]:![],this[n(0xd4)][n(0x8e)](n(0x8c),f[n(0xa1)][n(0x8c)]));typeof f[n(0xa1)]['js']===n(0xd0)&&(f['template']['js']=f[n(0xa1)]['js']==='true'?!![]:![],this[n(0xd4)][n(0x8e)]('js',f[n(0xa1)]['js']));!f[n(0xac)]&&(f[n(0xac)]={});!b[n(0x9c)]&&!this[n(0xd4)][n(0xc7)](n(0xc3))&&(Log[n(0x9a)]('Updating\x20npm\x20packages\x20...'),this[n(0xd4)][n(0x9e)]('ramda',{'cwd':d}));const h={'name':pascalCase(b[n(0x98)]),'myPath':a130e[n(0xa3)](this['fsi'][n(0xbb)]({}),e),'cssCaseName':paramCase(b[n(0x98)]),'className':pascalCase(b[n(0x98)]),'camelCaseName':camelCase(b[n(0x98)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines']['graphql'],'features':f['features'],'client':f['engines']['client'],'api':f['engines'][n(0xb9)],'ssr':f[n(0xc5)]['ssr'],'isStore':b['hasOwnProperty'](n(0xcd)),'isComponent':b['hasOwnProperty'](n(0xa6)),'isLayout':b['hasOwnProperty']('layout'),'withTranslations':f[n(0xac)][n(0xbd)],'test':f[n(0xc5)]['test'],'theme':f[n(0xc5)][n(0x8a)]};f[n(0xa1)][n(0xd3)]&&await this[n(0xd4)]['template']({'srcPath':n(0x8f),'destPath':e+n(0xbf),'context':h,'config':f});f[n(0xac)]?.[n(0xb8)]||b['withHook']?await this['fsi'][n(0xa1)]({'srcPath':n(0xce),'destPath':e+n(0x99),'framework':n(0xa5),'context':h,'config':f}):await this[n(0xd4)][n(0xa1)]({'srcPath':'component/component.js','destPath':e+n(0x99),'framework':n(0xa5),'context':h,'config':f});f['engines']['test']!==n(0xca)&&await this[n(0xd4)]['template']({'srcPath':'test/test.js','destPath':e+n(0xc9),'framework':'react','context':h,'config':f});f[n(0xa1)][n(0x8c)]&&await this[n(0xd4)][n(0xa1)]({'srcPath':n(0xa2),'destPath':e+n(0xb1),'context':Object[n(0xa0)]({},h,{'className':paramCase(b[n(0x98)])}),'config':f});f[n(0xc5)][n(0x97)]!==n(0xa5)&&f[n(0xc5)][n(0x97)]!==n(0xc4)?(f['template'][n(0x8c)]&&await this[n(0xd4)][n(0x9f)]({'filePath':e+'.'+f[n(0xc5)]['js'],'content':'import\x20\x27./'+h[n(0xc8)]+'.'+f[n(0xc5)][n(0xd3)]+n(0x96)+n(0xbe)+h['fileName']+'.'+f[n(0xc5)][n(0x8c)]+'\x27;'}),!f[n(0xa1)][n(0x8c)]&&await this[n(0xd4)][n(0x9f)]({'filePath':e+'.'+f[n(0xc5)]['js'],'content':n(0xbe)+h['fileName']+'.'+f[n(0xc5)][n(0xd3)]+'\x27;'})):f[n(0xa1)][n(0x8c)]&&await this['fsi'][n(0x9f)]({'filePath':e+'.'+f[n(0xc5)]['js'],'content':n(0xbe)+h[n(0xc8)]+'.'+f[n(0xc5)][n(0x8c)]+'\x27;'});const i=b[n(0xaf)]?'/'+b[n(0xaf)]+'/':'/';g=''+c+i+h[n(0xc8)]+'/'+h['fileName'],await this[n(0xd4)]['injectTemplateModule'](h[n(0x9d)],f,g),!b[n(0x9c)]&&await a130f['processAndRunGenerator'](n(0xab),[i+b[n(0x98)]],b);}),g+'.'+f[m(0xc5)]['js'];});
@@ -1 +1 @@
1
- function a131c(){const s=['10JfDtcX','index.','10qSHwEm','error','2461624lWdNdf','2619548zLpwID','force','withValue','apply','globalPublish','engines','template','tsx','6203211SBwVSN','publish','resourceName','maka\x20g:publish\x20todos','import\x20\x27./publications','exit','dir','search','getMakaProjectConfig','1400074ekVGsU','1012173FbcfsQ','5214483vQikYs','pathFromApp','constructor','create','3124068ACNxvJ','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','(((.+)+)+)+$','fsi','3NKBWkL','/imports/ui/','injectAtEndOfFile','baseDir','toString'];a131c=function(){return s;};return a131c();}const a131p=a131d;function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a131d(a,b);}(function(a,b){const m=a131d,c=a();while(!![]){try{const d=parseInt(m(0x1aa))/0x1+-parseInt(m(0x1a9))/0x2+-parseInt(m(0x1b3))/0x3*(parseInt(m(0x1bd))/0x4)+parseInt(m(0x1ba))/0x5*(parseInt(m(0x1af))/0x6)+-parseInt(m(0x1c5))/0x7+parseInt(m(0x1bc))/0x8+-parseInt(m(0x1ab))/0x9*(-parseInt(m(0x1b8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xaac82));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a131d;if(c){const e=c[n(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const o=a131d;return a131a[o(0x1b7)]()[o(0x1a7)](o(0x1b1))[o(0x1b7)]()[o(0x1ad)](a131a)[o(0x1a7)](o(0x1b1));});a131a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a131p(0x1ae)]({'name':a131p(0x1c6),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a131p(0x1b0),'validOpts':['force','globalPublish'],'examples':[a131p(0x1c8)]},async function(a,b){const q=a131p;try{const c=b[q(0x1be)]||![],d=b[q(0x1b6)]?q(0x1b4)+b[q(0x1b6)]:'/imports/startup/server/publications',f=this[q(0x1b2)][q(0x1a8)](),g=paramCase(b['resourceName']),h=this[q(0x1b2)][q(0x1ac)]({'pathParts':[d,b[q(0x1a6)],'',g]});let i='js';f[q(0x1c2)]['js']===q(0x1c4)&&(i='ts');await this['fsi'][q(0x1bf)](f,async()=>{const r=q,l={'name':b[r(0x1c7)],'collection':pascalCase(b[r(0x1c7)]),'noRename':!![],'globalPublish':b[r(0x1c1)]};await this[r(0x1b2)][r(0x1c3)]({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this['fsi'][q(0x1ac)]({'pathParts':['imports','startup','server',b['appPathPrefix'],q(0x1b9)+f[q(0x1c2)]['js']]}),k=b[q(0x1a6)]?'/'+b[q(0x1a6)]+'/':'/';return await this[q(0x1b2)][q(0x1b5)]({'filePath':j,'content':q(0x1c9)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x1bb)](l),process[q(0x1a5)](0x1);}});
1
+ function a131c(){const s=['7153006czGJqo','baseDir','92630CklbLN','3016350HAJTGT','1HXnPzN','fsi','pathFromApp','imports','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','/imports/startup/server/publications','appPathPrefix','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','164BejbUF','force','exit','engines','index.','search','10aLknRS','9282053CriaDh','create','maka\x20g:publish\x20todos','toString','594UgOeDf','288590vXIAYS','dir','1017420gDGwmR','globalPublish','tsx','error','(((.+)+)+)+$','resourceName','getMakaProjectConfig','apply','injectAtEndOfFile','117976gWCVeS','publish/publish.js'];a131c=function(){return s;};return a131c();}const a131p=a131d;(function(a,b){const m=a131d,c=a();while(!![]){try{const d=-parseInt(m(0x1f6))/0x1*(-parseInt(m(0x20a))/0x2)+parseInt(m(0x20c))/0x3+-parseInt(m(0x1fe))/0x4*(-parseInt(m(0x1f4))/0x5)+parseInt(m(0x1f5))/0x6+-parseInt(m(0x1f2))/0x7+parseInt(m(0x215))/0x8*(-parseInt(m(0x209))/0x9)+parseInt(m(0x204))/0xa*(parseInt(m(0x205))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x911d5));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a131d;if(c){const e=c[n(0x213)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const o=a131d;return a131a[o(0x208)]()[o(0x203)](o(0x210))['toString']()['constructor'](a131a)['search']('(((.+)+)+)+$');});a131a();function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a131d(a,b);}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a131p(0x206)]({'name':'publish','aliases':['p'],'usage':a131p(0x1fa),'shortDesc':a131p(0x1fd),'validOpts':[a131p(0x1ff),'globalPublish'],'examples':[a131p(0x207)]},async function(a,b){const q=a131p;try{const c=b['force']||![],d=b[q(0x1f3)]?'/imports/ui/'+b[q(0x1f3)]:q(0x1fb),f=this[q(0x1f7)][q(0x212)](),g=paramCase(b[q(0x211)]),h=this[q(0x1f7)][q(0x1f8)]({'pathParts':[d,b[q(0x20b)],'',g]});let i='js';f[q(0x201)]['js']===q(0x20e)&&(i='ts');await this[q(0x1f7)]['withValue'](f,async()=>{const r=q,l={'name':b[r(0x211)],'collection':pascalCase(b[r(0x211)]),'noRename':!![],'globalPublish':b[r(0x20d)]};await this[r(0x1f7)]['template']({'srcPath':r(0x1f1),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0x1f7)][q(0x1f8)]({'pathParts':[q(0x1f9),'startup','server',b[q(0x1fc)],q(0x202)+f['engines']['js']]}),k=b[q(0x20b)]?'/'+b['dir']+'/':'/';return await this[q(0x1f7)][q(0x214)]({'filePath':j,'content':'import\x20\x27./publications'+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x20f)](l),process[q(0x200)](0x1);}});