@maka/maka-cli 4.7.10 → 4.7.11

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 (147) 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/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -1
  108. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  109. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  110. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  111. package/bundle/obf/src/generators/kits/kit.js +1 -1
  112. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  113. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  115. package/bundle/obf/src/generators/layout.js +1 -1
  116. package/bundle/obf/src/generators/maka.gen.js +1 -1
  117. package/bundle/obf/src/generators/methods.js +1 -1
  118. package/bundle/obf/src/generators/package.js +1 -1
  119. package/bundle/obf/src/generators/page.js +1 -1
  120. package/bundle/obf/src/generators/publish.js +1 -1
  121. package/bundle/obf/src/generators/route.js +1 -1
  122. package/bundle/obf/src/generators/service.js +1 -1
  123. package/bundle/obf/src/generators/services/_index.js +1 -1
  124. package/bundle/obf/src/generators/services/openssl.js +1 -1
  125. package/bundle/obf/src/generators/services/translation.js +1 -1
  126. package/bundle/obf/src/maka.js +1 -1
  127. package/bundle/obf/src/templates/meteor/project/gitignore +1 -0
  128. package/bundle/obf/src/tool.js +1 -1
  129. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  130. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  131. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  133. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  134. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  135. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/https/https.class.js +1 -1
  137. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  138. package/bundle/obf/src/tools/log/log.class.js +1 -1
  139. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/options/options.class.js +1 -1
  141. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  142. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  143. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  145. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  146. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  147. package/package.json +1 -1
@@ -1 +1 @@
1
- const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x20e))/0x1*(-parseInt(q(0x212))/0x2)+parseInt(q(0x209))/0x3*(-parseInt(q(0x230))/0x4)+parseInt(q(0x21c))/0x5+-parseInt(q(0x217))/0x6+parseInt(q(0x205))/0x7*(-parseInt(q(0x22f))/0x8)+parseInt(q(0x20b))/0x9+-parseInt(q(0x248))/0xa*(-parseInt(q(0x1f1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x2fe66));const a97b=(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;};}()),a97a=a97b(this,function(){const r=a97d;return a97a['toString']()[r(0x1fc)](r(0x223))['toString']()[r(0x1fe)](a97a)[r(0x1fc)](r(0x223));});a97a();function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a97d(a,b);}import a97e from'path';function a97c(){const E=['resourceName','handleGenerateError','both','exit','_generators','Location','create','Please\x20run\x20\x22maka\x20install\x20meteor\x22','usage','length','validateMakaSubscription','4460jTKIEr','slice','validateEngines','Alias','includes','addGenerator','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','Too\x20few\x20options','mustHaveMeteorInstalled','8261VYMMEg','Description','mustBeInMakaProject','tableList','Generator\x20not\x20found','addGenerator\x20requires\x20a\x20Generator\x20instance','number','maxArgLength','root','minArgLength','setColorMode','search','invoke','constructor','server','find','findProjectDirectory','dir','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','bind','45521NYMVti','match','Generator\x20requires\x20a\x20name','notice','3UktMDg','Too\x20many\x20options','1191456lkeLWa','options','error','19ymXUOr','validateParams','forEach','pallet','36786FyCTFv','DARK','aliases','No\x20resource\x20name\x20specified','sep','1942170WdZBhW','cwd','client','Client','where','1399720SigBVp','minOptsLength','appPathPrefix','processAndRunGenerator','Generator.create\x20requires\x20some\x20options!','checkWhere','There\x20is\x20no\x20Meteor\x20application\x20here','(((.+)+)+)+$','push','chdir','Both','name','toString','LIGHT','noNeedResource','replace','help','keys','bright','328adRADs','1240900RFGIMr','assign','split','fsi','requiredEngines','validateMeteorInstall','shortDesc','Generator\x20requires\x20a\x20handler\x20function','Name','getGlobalConfig','Generator.create\x20requires\x20a\x20handler\x20function!','function','sort'];a97c=function(){return E;};return a97c();}import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';async function inside(a='.',b){const s=a97d,c=process[s(0x218)]();let d=null;try{process['chdir'](a),d=await b();}finally{process[s(0x225)](c);}return d;}export class Generator extends Tool{[a97t(0x20c)];[a97t(0x241)];constructor(a,b){const u=a97t;super();if(!a)throw new Error(u(0x203));if(!a[u(0x227)])throw new Error(u(0x207));if(typeof b!==u(0x23b))throw new Error(u(0x237));this['_generators']=[],this[u(0x20c)]=Object[u(0x231)]({},a),this[u(0x227)]=this['options'][u(0x227)],this['_handler']=b[u(0x204)](this);}static[a97t(0x243)](a,b,c){const v=a97t;if(!a)throw new Error(v(0x220));if(typeof b!==v(0x23b))throw new Error(v(0x23a));const d=new Generator(a,b);return c=c||a97g,Object[v(0x231)](d,{'parent':c?.[v(0x20c)]?.[v(0x227)]}),c[v(0x24d)](d),d;}[a97t(0x24d)](a){const w=a97t;if(!(a instanceof Generator))throw new Error(w(0x1f6));this[w(0x241)][w(0x224)](a);}async[a97t(0x21f)](a,b=[],c={}){const x=a97t;let d;try{const f=a?.[x(0x232)](':');if(!f||f[x(0x246)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this['_generators'],h;for(const i of f){h=g[x(0x200)](j=>j[x(0x206)](i));if(!h)throw'Generator\x20'+i+'\x20not\x20found';await this['validateMakaSubscription'](h),g=h[x(0x241)];}if(h)d=await h[x(0x1fd)](b,c);else throw x(0x1f5);}catch(j){Log[x(0x20d)](j);}return d;}async[a97t(0x1fd)](a,b){const y=a97t,c=a[y(0x249)]();b[y(0x23d)]=c[0x0];try{const d=await this[y(0x233)][y(0x239)](),f=d[y(0x211)]==='light'?ColorMode[y(0x229)]:ColorMode[y(0x213)];Log[y(0x1fb)](f),await this[y(0x247)](this);const g=a[0x0]===_prevGen||a[y(0x246)]===0x0&&this[y(0x241)][y(0x246)]>=0x0,h=b[y(0x22c)]||b['h'];if(g&&h){if(this['_generators']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[y(0x20c)][y(0x1f3)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this[y(0x20c)][y(0x1f0)]){const j=this[y(0x235)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[y(0x20c)][y(0x1fa)]===y(0x1f7)){if(a['length']<this[y(0x20c)][y(0x1fa)]){Log[y(0x20d)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[y(0x20c)][y(0x1f8)]===y(0x1f7)){if(a[y(0x246)]>this[y(0x20c)][y(0x1f8)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0x20c)]['minOptsLength']==='number'){if(Object[y(0x22d)](b)[y(0x246)]<this['options'][y(0x21d)]){Log[y(0x20d)](y(0x1ef));throw new UsageError();}}if(typeof this[y(0x20c)]['maxOptsLength']===y(0x1f7)){if(Object[y(0x22d)](b)['length']>=this['options']['maxOptsLength']){Log['error'](y(0x20a));throw new UsageError();}}}this[y(0x20c)][y(0x234)]&&this[y(0x24a)](this[y(0x20c)]['requiredEngines']);await this[y(0x20f)](a,b,this[y(0x20c)]);if(!b[y(0x23d)]&&!this[y(0x20c)][y(0x22a)]){Log[y(0x20d)](y(0x215));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0x23e)](k),process[y(0x240)](0x1);}return await inside(b[y(0x218)],async()=>{const z=y;try{if(!b[z(0x1f9)]&&!this['fsi'][z(0x201)]())throw new MustBeInProjectError();const l=b[z(0x23d)]?.[z(0x22b)](/\\/g,'/')[z(0x232)]('/');!b['dir']&&(l?.[z(0x246)]>0x1?(b[z(0x23d)]=l['pop'](),c[0x0]=b[z(0x23d)],b['dir']=l['map'](m=>{return paramCase(m);})['join'](a97e[z(0x216)])):b[z(0x202)]='');if(this[z(0x20c)][z(0x221)]){if(!b[z(0x21b)]){const n={'type':'list','name':'colLocAnswer','message':z(0x242),'choices':[{'name':z(0x21a),'value':z(0x219)},{'name':'Server','value':z(0x1ff)},{'name':z(0x226),'value':z(0x23f)}]},{colLocAnswer:o}=await Actions[z(0x20c)](n);o?b[z(0x21b)]=o:b[z(0x21b)]=z(0x23f);}const m=[z(0x23f),z(0x219),z(0x1ff)];if(!m[z(0x24c)](b[z(0x21b)])){Log[z(0x20d)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[z(0x21b)]){case'both':b['appPathPrefix']='lib';break;case'server':b[z(0x21e)]=z(0x1ff);break;case z(0x219):b[z(0x21e)]=z(0x219);break;default:b[z(0x21e)]='';}}return await this['_handler']['call'](this,c,b);}catch(p){this[z(0x23e)](p);}});}['listGenerators'](){const A=a97t;this[A(0x1f4)](this['_generators']);}['handleGenerateError'](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log[B(0x245)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[B(0x208)]('Generators:'),this[B(0x1f4)](this[B(0x241)]);else{if(a instanceof MustBeInProjectError)Log[B(0x20d)](B(0x1ee));else{if(a instanceof NoMeteorFoundError)Log[B(0x20d)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[B(0x208)](B(0x244));else a instanceof NoMeteorAppFoundError&&Log['error'](B(0x222));}}}[a97t(0x1f4)](a){const C=a97t,b=new a97f({});b[C(0x224)]([C(0x238),C(0x24b),C(0x1f2)]),a[C(0x23c)]()[C(0x210)](c=>{const D=C;b['push']([c[D(0x227)],c[D(0x214)](),c[D(0x236)]()]);}),Log[C(0x22e)](b[C(0x228)]());}}
1
+ function a97c(){const E=['forEach','10BQGSAB','root','where','push','function','bright','minArgLength','getGlobalConfig','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','209445SoVirY','DARK','call','Location','Too\x20few\x20arguments','_generators','server','exit','Generator\x20not\x20found','invoke','Too\x20few\x20options','join','client','1420776BbvysO','There\x20is\x20no\x20Meteor\x20application\x20here','setColorMode','includes','mustHaveMeteorInstalled','requiredEngines','pallet','validateMakaProject','743877apzwdd','length','Too\x20many\x20options','minOptsLength','validateMakaSubscription','Generator\x20format\x20is\x20incorrect','Generator\x20','noNeedResource','chdir','232976WgbxSb','39208bIPuLx','bind','toString','keys','options','No\x20resource\x20name\x20specified','(((.+)+)+)+$','create','slice','2817155qJGpza','\x20not\x20found','dir','Both','help','colLocAnswer','replace','handleGenerateError','7kZSCTR','resourceName','74ewmpCq','Description','fsi','cwd','tableList','Name','processAndRunGenerator','pop','Generator\x20requires\x20a\x20name','81XcBWRh','appPathPrefix','_handler','Generator.create\x20requires\x20a\x20handler\x20function!','validateEngines','Client','addGenerator','Generators:','5099pPqgzD','listGenerators','light','assign','number','LIGHT','validateMeteorInstall','mustBeInMakaProject','search','error','checkWhere','validateParams','map','notice','both','maxOptsLength','shortDesc','name'];a97c=function(){return E;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x146;let f=c[d];return f;},a97d(a,b);}const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x19b))/0x1*(-parseInt(q(0x18a))/0x2)+-parseInt(q(0x16d))/0x3+-parseInt(q(0x177))/0x4+-parseInt(q(0x158))/0x5+-parseInt(q(0x165))/0x6*(-parseInt(q(0x188))/0x7)+parseInt(q(0x176))/0x8*(parseInt(q(0x193))/0x9)+parseInt(q(0x14f))/0xa*(-parseInt(q(0x180))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x202da));const a97b=(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;};}()),a97a=a97b(this,function(){const r=a97d;return a97a[r(0x179)]()[r(0x1a3)](r(0x17d))[r(0x179)]()['constructor'](a97a)['search']('(((.+)+)+)+$');});a97a();import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';async function inside(a='.',b){const s=a97d,c=process[s(0x18d)]();let d=null;try{process[s(0x175)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a97t(0x17b)];['_generators'];constructor(a,b){const u=a97t;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[u(0x14d)])throw new Error(u(0x192));if(typeof b!=='function')throw new Error('Generator\x20requires\x20a\x20handler\x20function');this['_generators']=[],this[u(0x17b)]=Object[u(0x19e)]({},a),this[u(0x14d)]=this[u(0x17b)][u(0x14d)],this['_handler']=b[u(0x178)](this);}static[a97t(0x17e)](a,b,c){const v=a97t;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==v(0x153))throw new Error(v(0x196));const d=new Generator(a,b);return c=c||a97g,Object[v(0x19e)](d,{'parent':c?.[v(0x17b)]?.[v(0x14d)]}),c[v(0x199)](d),d;}['addGenerator'](a){const w=a97t;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][w(0x152)](a);}async[a97t(0x190)](a,b=[],c={}){const x=a97t;let d;try{const f=a?.['split'](':');if(!f||f[x(0x16e)]===0x0)throw x(0x172);let g=this[x(0x15d)],h;for(const i of f){h=g['find'](j=>j['match'](i));if(!h)throw x(0x173)+i+x(0x181);await this[x(0x171)](h),g=h[x(0x15d)];}if(h)d=await h[x(0x161)](b,c);else throw x(0x160);}catch(j){Log['error'](j);}return d;}async[a97t(0x161)](a,b){const y=a97t,c=a[y(0x17f)]();b[y(0x189)]=c[0x0];try{const d=await this[y(0x18c)][y(0x156)](),f=d[y(0x16b)]===y(0x19d)?ColorMode[y(0x1a0)]:ColorMode[y(0x159)];Log[y(0x167)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[y(0x16e)]===0x0&&this[y(0x15d)][y(0x16e)]>=0x0,h=b[y(0x184)]||b['h'];if(g&&h){if(this['_generators'][y(0x16e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][y(0x1a2)]){const i=this[y(0x16c)]();if(!i)throw new MustBeInProjectError();}if(this['options'][y(0x169)]){const j=this[y(0x1a1)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[y(0x17b)]['minArgLength']===y(0x19f)){if(a[y(0x16e)]<this[y(0x17b)][y(0x155)]){Log[y(0x1a4)](y(0x15c));throw new UsageError();}}if(typeof this[y(0x17b)]['maxArgLength']===y(0x19f)){if(a[y(0x16e)]>this[y(0x17b)]['maxArgLength']){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options'][y(0x170)]==='number'){if(Object[y(0x17a)](b)[y(0x16e)]<this[y(0x17b)][y(0x170)]){Log[y(0x1a4)](y(0x162));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===y(0x19f)){if(Object[y(0x17a)](b)[y(0x16e)]>=this[y(0x17b)][y(0x14b)]){Log[y(0x1a4)](y(0x16f));throw new UsageError();}}}this[y(0x17b)]['requiredEngines']&&this[y(0x197)](this['options'][y(0x16a)]);await this[y(0x147)](a,b,this[y(0x17b)]);if(!b[y(0x189)]&&!this[y(0x17b)][y(0x174)]){Log[y(0x1a4)](y(0x17c));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0x187)](k),process[y(0x15f)](0x1);}return await inside(b[y(0x18d)],async()=>{const z=y;try{if(!b[z(0x150)]&&!this[z(0x18c)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b['resourceName']?.[z(0x186)](/\\/g,'/')['split']('/');!b[z(0x182)]&&(l?.['length']>0x1?(b[z(0x189)]=l[z(0x191)](),c[0x0]=b[z(0x189)],b[z(0x182)]=l[z(0x148)](m=>{return paramCase(m);})[z(0x163)](a97e['sep'])):b[z(0x182)]='');if(this[z(0x17b)][z(0x146)]){if(!b[z(0x151)]){const n={'type':'list','name':z(0x185),'message':z(0x15b),'choices':[{'name':z(0x198),'value':z(0x164)},{'name':'Server','value':'server'},{'name':z(0x183),'value':z(0x14a)}]},{colLocAnswer:o}=await Actions[z(0x17b)](n);o?b['where']=o:b[z(0x151)]=z(0x14a);}const m=[z(0x14a),z(0x164),z(0x15e)];if(!m[z(0x168)](b[z(0x151)])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[z(0x151)]){case z(0x14a):b[z(0x194)]='lib';break;case'server':b['appPathPrefix']='server';break;case z(0x164):b[z(0x194)]=z(0x164);break;default:b[z(0x194)]='';}}return await this[z(0x195)][z(0x15a)](this,c,b);}catch(p){this['handleGenerateError'](p);}});}[a97t(0x19c)](){const A=a97t;this[A(0x18e)](this[A(0x15d)]);}[a97t(0x187)](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[B(0x17b)];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[B(0x149)](B(0x19a)),this[B(0x18e)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[B(0x1a4)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[B(0x1a4)](B(0x157)),Log[B(0x149)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log['error'](B(0x166));}}}[a97t(0x18e)](a){const C=a97t,b=new a97f({});b['push']([C(0x18f),'Alias',C(0x18b)]),a['sort']()[C(0x14e)](c=>{const D=C;b['push']([c[D(0x14d)],c['aliases'](),c[D(0x14c)]()]);}),Log[C(0x154)](b['toString']());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a98d,c=a();while(!![]){try{var d=-parseInt(f(0x6f))/0x1*(parseInt(f(0x6c))/0x2)+-parseInt(f(0x68))/0x3+-parseInt(f(0x6b))/0x4+-parseInt(f(0x64))/0x5+parseInt(f(0x67))/0x6+parseInt(f(0x66))/0x7+parseInt(f(0x69))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xf25d6));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x65)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x6e)]()[h(0x6a)](h(0x6d))['toString']()[h(0x70)](a98a)['search'](h(0x6d));});a98a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x64;var f=c[d];return f;},a98d(a,b);}import'./hook.js';import'./kits/_index.js';function a98c(){var i=['toString','30824kZVXxF','constructor','3850975eyyFUu','apply','2855804PODxjO','5231946iCYCTC','5504517dzFuoL','44581456yybPem','search','5128596YNhgEy','128ZWZite','(((.+)+)+)+$'];a98c=function(){return i;};return a98c();}import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0xa3))/0x1+-parseInt(f(0xa6))/0x2*(-parseInt(f(0x9d))/0x3)+-parseInt(f(0x9e))/0x4*(-parseInt(f(0xa4))/0x5)+parseInt(f(0x9c))/0x6*(-parseInt(f(0x9b))/0x7)+-parseInt(f(0xa0))/0x8+-parseInt(f(0xa2))/0x9+-parseInt(f(0xa7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xc3d8b));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x9a)]()[h(0x99)](h(0x9f))[h(0x9a)]()[h(0xa1)](a98a)[h(0x99)](h(0x9f));});function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x99;var f=c[d];return f;},a98d(a,b);}a98a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';function a98c(){var i=['8206090jwQJzD','search','toString','4130462fAtAlG','6orSkuT','771981iIynKu','8rqbvOZ','(((.+)+)+)+$','914400dMCmgc','constructor','8320851eiXRqD','1295998RVIhDL','1672670anziIc','apply','10kZpLpw'];a98c=function(){return i;};return a98c();}import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a99x=a99d;(function(a,b){const u=a99d,c=a();while(!![]){try{const d=-parseInt(u(0x1ae))/0x1+-parseInt(u(0x1a3))/0x2*(-parseInt(u(0x1a6))/0x3)+parseInt(u(0x1bd))/0x4*(-parseInt(u(0x1b6))/0x5)+-parseInt(u(0x1df))/0x6*(parseInt(u(0x19e))/0x7)+parseInt(u(0x1ca))/0x8+-parseInt(u(0x1d3))/0x9*(parseInt(u(0x1b4))/0xa)+-parseInt(u(0x1b8))/0xb*(-parseInt(u(0x1e0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x4202f));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a['toString']()['search'](w(0x1d0))[w(0x1b1)]()[w(0x1c1)](a99a)[w(0x1c2)](w(0x1d0));});function a99c(){const A=['template','.app-tests.','795424iJSAxT','/graphql/resolvers','index.','apollo','fsi','create','(((.+)+)+)+$','Publications','resourceName','9ZLqTYY','API\x20boundaries\x20to\x20create','server','withValue','if\x20\x5c(typeList','withFixtures','collection','resolverList.push(','withPubs','none','/graphql/typeDefs','typeList.push(','1048848FlhMgI','3449088FSTZrs','engines','-api.','No\x20API\x20boundaries\x20selected','api/tests.js','TypeDefs);\x0a','graphql','/imports/api','processAndRunGenerator','rewriteDestinationPathForEngine','dir','getMakaProjectConfig','ddp-rate-limiter','includes','api/api.js','mongo','rpc-methods.','apply','mdg:validated-method','test','checkMeteorPackage','api/fixtures.js','pathFromApp','14XvsrlN','import\x20\x27./register-','maka:check','injectAtBeginningOfFile','error','1017202yBKRHA','rest-api.','fixtures.','3zXWlIa','api','length','maka\x20{generate,\x20g}:{api}\x20<resource-name>','checkbox','withRest','\x27;\x0a','maka:rest','194252ueajUb','resolvers.','const','toString','exit','push','2976690yDdyZU','injectIntoFile','354785pVrLQS','withGql','22JsoDZt','imports','Resolvers\x20}\x20from\x20\x27','register-','apiAnswers','4jOvwvG','Resolvers);\x0a\x0a','withMethods','rest','constructor','search','api/resolvers.js','TypeDefs\x20}\x20from\x20\x27','GraphQL','options','REST\x20API'];a99c=function(){return A;};return a99c();}a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x18b;let f=c[d];return f;},a99d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0x1cf)]({'name':a99x(0x1a7),'aliases':['a'],'usage':a99x(0x1a9),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a99x(0x191)],'examples':['maka\x20g:api\x20Todos'],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const y=a99x;try{const c=this['fsi'][y(0x192)](),d=[{'name':'RPC\x20(Methods)','value':y(0x1bf)},{'name':'Fixtures','value':'withFixtures'},{'name':y(0x1d1),'value':y(0x1db)}];c[y(0x1e1)][y(0x1a7)]==='rest'&&d[y(0x1b3)]({'name':y(0x1c7),'value':y(0x1ab)});c[y(0x1e1)][y(0x18d)]===y(0x1cd)&&d[y(0x1b3)]({'name':y(0x1c5),'value':y(0x1b7)});const f={'type':y(0x1aa),'name':y(0x1bc),'message':y(0x1d4),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x1c6)](f);g[y(0x1a8)]===0x0&&(Log[y(0x1a2)](y(0x1e3)),process[y(0x1b2)](0x1)),await this[y(0x1ce)][y(0x1d6)](c,async()=>{const z=y,h=b[z(0x1d2)],i=paramCase(h),j=camelCase(h),k=b['dir']?'/'+b['dir']+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x1e1)][z(0x1a7)],'graphql':c['engines'][z(0x18d)],'test':c['engines'][z(0x19a)],'noRename':!![],'withPubs':g[z(0x194)](z(0x1db)),'withFixtures':g['includes'](z(0x1d8)),'withMethods':g[z(0x194)]('withMethods'),'withRest':g['includes'](z(0x1ab))};let m='js';c[z(0x1e1)]['js']==='tsx'&&(m='ts');await this['fsi'][z(0x19b)]([z(0x1ad),z(0x1a0),z(0x193),z(0x199),z(0x196)],{'shouldInstall':!![]}),await a99e[z(0x18f)](z(0x1d9),[i],{'config':c,'where':'server'});c[z(0x1e1)][z(0x1a7)]===z(0x1c0)&&(l['withRest']&&await this['fsi']['template']({'srcPath':z(0x195),'destPath':this['fsi'][z(0x19d)]({'pathParts':[z(0x1b9),z(0x1a7),b[z(0x191)],i,z(0x1a4)+m]}),'context':l,'config':c}));l['withMethods']&&await this[z(0x1ce)][z(0x1c8)]({'srcPath':'api/methods.js','destPath':this[z(0x1ce)][z(0x19d)]({'pathParts':[z(0x1b9),z(0x1a7),b[z(0x191)],i,z(0x197)+m]}),'context':l,'config':c});l['withFixtures']&&await this['fsi'][z(0x1c8)]({'srcPath':z(0x19c),'destPath':this[z(0x1ce)][z(0x19d)]({'pathParts':[z(0x1b9),z(0x1a7),b['dir'],i,z(0x1a5)+m]}),'context':l,'config':c});c['engines']['test']!==z(0x1dc)&&this['fsi'][z(0x1c8)]({'srcPath':z(0x18b),'destPath':this['fsi'][z(0x19d)]({'pathParts':[z(0x1b9),z(0x1a7),b[z(0x191)],i,i+z(0x1c9)+m]}),'context':l,'config':c});l[z(0x1db)]&&await this['fsi'][z(0x1c8)]({'srcPath':'api/publications.js','destPath':this[z(0x1ce)][z(0x19d)]({'pathParts':['imports','api',b[z(0x191)],i,'publications.'+m]}),'context':l,'config':c});if(c['engines'][z(0x18d)]===z(0x1cd)){if(g[z(0x194)](z(0x1b7))){const o=this[z(0x1ce)]['pathFromApp']({'pathParts':[z(0x1b9),'startup',z(0x1d5),z(0x1cc)+c[z(0x1e1)]['js']]}),p=this[z(0x1ce)][z(0x190)]({'pathParts':[o],'config':c}),q=this[z(0x1ce)]['pathFromApp']({'pathParts':[z(0x1b9),z(0x1a7),b[z(0x191)],i,'graphql','typeDefs.'+m]}),r=z(0x18e)+k+i+z(0x1dd);this[z(0x1ce)]['template']({'srcPath':'api/typeDefs.js','destPath':q,'context':l,'config':c}),await this[z(0x1ce)][z(0x1a1)]({'filePath':p,'content':'import\x20{\x20typeDefs\x20as\x20'+j+z(0x1c4)+r+z(0x1ac)}),await this[z(0x1ce)]['injectIntoFile']({'filePath':p,'content':z(0x1de)+j+z(0x18c),'begin':z(0x1b0),'end':'if\x20\x5c(typeList'});const s=this[z(0x1ce)][z(0x19d)]({'pathParts':[z(0x1b9),'api',b[z(0x191)],i,z(0x18d),z(0x1af)+m]}),t='/imports/api'+k+i+z(0x1cb);await this['fsi'][z(0x1c8)]({'srcPath':z(0x1c3),'destPath':s,'context':l,'config':c}),await this[z(0x1ce)]['injectAtBeginningOfFile']({'filePath':p,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+j+z(0x1ba)+t+'\x27;'}),await this[z(0x1ce)][z(0x1b5)]({'filePath':p,'content':z(0x1da)+j+z(0x1be),'begin':z(0x1b0),'end':z(0x1d7)});}}await this[z(0x1ce)][z(0x1c8)]({'srcPath':'api/register-api.js','destPath':this['fsi'][z(0x19d)]({'pathParts':[z(0x1b9),'startup',z(0x1d5),z(0x1bb)+i+z(0x1e2)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x1ce)][z(0x19d)]({'pathParts':[z(0x1b9),'startup',z(0x1d5),'index.'+c[z(0x1e1)]['js']]});await this['fsi']['injectAtEndOfFile']({'filePath':n,'content':z(0x19f)+i+'-api\x27;'});});}catch(h){console[y(0x1a2)](h),process[y(0x1b2)](0x0);}});
1
+ const a99x=a99d;function a99c(){const A=['typeDefs.','api/api.js','apollo','injectIntoFile','maka:check','6940EuJhPQ','dir','create','Fixtures','constructor','982072PflrrV','server','6231258gAGjsa','2629XjykKq','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','/graphql/typeDefs','rpc-methods.','const','template','1996AiHBzH','2wgbqVV','rest','.app-tests.','import\x20\x27./register-','\x27;\x0a','none','resolvers.','18ARMblg','imports','startup','includes','1729616CCEHoR','graphql','2095731fgEttn','publications.','search','91310lauVNv','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','withPubs','ddp-rate-limiter','fixtures.','api','Resolvers\x20}\x20from\x20\x27','resolverList.push(','-api.','api/typeDefs.js','Resolvers);\x0a\x0a','\x0aimport\x20{\x20resolvers\x20as\x20','if\x20\x5c(typeList','engines','462961XOEIkR','GraphQL','injectAtBeginningOfFile','api/resolvers.js','api/methods.js','/imports/api','pathFromApp','test','length','api/publications.js','API\x20boundaries\x20to\x20create','withFixtures','withRest','No\x20API\x20boundaries\x20selected','checkbox','RPC\x20(Methods)','withMethods','exit','Publications','mdg:validated-method','withGql','processAndRunGenerator','resourceName','index.','error','-api\x27;','collection','toString','TypeDefs\x20}\x20from\x20\x27','options','withValue','maka:rest','push','/graphql/resolvers','TypeDefs);\x0a','injectAtEndOfFile','fsi','apply','typeList.push(','(((.+)+)+)+$','checkMeteorPackage'];a99c=function(){return A;};return a99c();}(function(a,b){const u=a99d,c=a();while(!![]){try{const d=-parseInt(u(0x16c))/0x1*(parseInt(u(0x14e))/0x2)+-parseInt(u(0x15b))/0x3+-parseInt(u(0x14d))/0x4*(parseInt(u(0x19a))/0x5)+-parseInt(u(0x155))/0x6*(parseInt(u(0x159))/0x7)+parseInt(u(0x19f))/0x8+parseInt(u(0x1a1))/0x9+parseInt(u(0x15e))/0xa*(parseInt(u(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x62260));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x187)]()[w(0x15d)]('(((.+)+)+)+$')[w(0x187)]()[w(0x19e)](a99a)[w(0x15d)](w(0x193));});a99a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x14c;let f=c[d];return f;},a99d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0x19c)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a99x(0x1a3),'validOpts':[a99x(0x19b)],'examples':['maka\x20g:api\x20Todos'],'description':a99x(0x15f)},async function(a,b){const y=a99x;try{const c=this['fsi']['getMakaProjectConfig'](),d=[{'name':y(0x17b),'value':y(0x17c)},{'name':y(0x19d),'value':y(0x177)},{'name':y(0x17e),'value':y(0x160)}];c[y(0x16b)][y(0x163)]===y(0x14f)&&d[y(0x18c)]({'name':'REST\x20API','value':y(0x178)});c[y(0x16b)]['graphql']===y(0x197)&&d[y(0x18c)]({'name':y(0x16d),'value':'withGql'});const f={'type':y(0x17a),'name':'apiAnswers','message':y(0x176),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[y(0x189)](f);g[y(0x174)]===0x0&&(Log[y(0x184)](y(0x179)),process[y(0x17d)](0x1)),await this[y(0x190)][y(0x18a)](c,async()=>{const z=y,h=b[z(0x182)],i=paramCase(h),j=camelCase(h),k=b[z(0x19b)]?'/'+b[z(0x19b)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[z(0x16b)][z(0x163)],'graphql':c[z(0x16b)]['graphql'],'test':c['engines'][z(0x173)],'noRename':!![],'withPubs':g[z(0x158)](z(0x160)),'withFixtures':g[z(0x158)]('withFixtures'),'withMethods':g['includes'](z(0x17c)),'withRest':g['includes']('withRest')};let m='js';c[z(0x16b)]['js']==='tsx'&&(m='ts');await this[z(0x190)][z(0x194)]([z(0x18b),z(0x199),z(0x161),z(0x17f),'mongo'],{'shouldInstall':!![]}),await a99e[z(0x181)](z(0x186),[i],{'config':c,'where':z(0x1a0)});c['engines'][z(0x163)]===z(0x14f)&&(l['withRest']&&await this[z(0x190)][z(0x14c)]({'srcPath':z(0x196),'destPath':this['fsi'][z(0x172)]({'pathParts':['imports',z(0x163),b[z(0x19b)],i,'rest-api.'+m]}),'context':l,'config':c}));l[z(0x17c)]&&await this[z(0x190)]['template']({'srcPath':z(0x170),'destPath':this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x1a5)+m]}),'context':l,'config':c});l[z(0x177)]&&await this[z(0x190)][z(0x14c)]({'srcPath':'api/fixtures.js','destPath':this['fsi'][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x162)+m]}),'context':l,'config':c});c['engines'][z(0x173)]!==z(0x153)&&this[z(0x190)]['template']({'srcPath':'api/tests.js','destPath':this[z(0x190)]['pathFromApp']({'pathParts':[z(0x156),'api',b[z(0x19b)],i,i+z(0x150)+m]}),'context':l,'config':c});l['withPubs']&&await this[z(0x190)][z(0x14c)]({'srcPath':z(0x175),'destPath':this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x15c)+m]}),'context':l,'config':c});if(c[z(0x16b)][z(0x15a)]===z(0x197)){if(g[z(0x158)](z(0x180))){const o=this[z(0x190)]['pathFromApp']({'pathParts':['imports',z(0x157),z(0x1a0),z(0x183)+c[z(0x16b)]['js']]}),p=this[z(0x190)]['rewriteDestinationPathForEngine']({'pathParts':[o],'config':c}),q=this['fsi'][z(0x172)]({'pathParts':['imports',z(0x163),b['dir'],i,z(0x15a),z(0x195)+m]}),r=z(0x171)+k+i+z(0x1a4);this[z(0x190)][z(0x14c)]({'srcPath':z(0x167),'destPath':q,'context':l,'config':c}),await this[z(0x190)][z(0x16e)]({'filePath':p,'content':'import\x20{\x20typeDefs\x20as\x20'+j+z(0x188)+r+z(0x152)}),await this['fsi'][z(0x198)]({'filePath':p,'content':z(0x192)+j+z(0x18e),'begin':z(0x1a6),'end':z(0x16a)});const s=this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x163),b[z(0x19b)],i,z(0x15a),z(0x154)+m]}),t=z(0x171)+k+i+z(0x18d);await this[z(0x190)][z(0x14c)]({'srcPath':z(0x16f),'destPath':s,'context':l,'config':c}),await this[z(0x190)]['injectAtBeginningOfFile']({'filePath':p,'content':z(0x169)+j+z(0x164)+t+'\x27;'}),await this[z(0x190)][z(0x198)]({'filePath':p,'content':z(0x165)+j+z(0x168),'begin':z(0x1a6),'end':'if\x20\x5c(typeList'});}}await this[z(0x190)][z(0x14c)]({'srcPath':'api/register-api.js','destPath':this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x157),z(0x1a0),'register-'+i+z(0x166)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x190)][z(0x172)]({'pathParts':[z(0x156),z(0x157),z(0x1a0),'index.'+c[z(0x16b)]['js']]});await this[z(0x190)][z(0x18f)]({'filePath':n,'content':z(0x151)+i+z(0x185)});});}catch(h){console['error'](h),process[y(0x17d)](0x0);}});
@@ -1 +1 @@
1
- const a100l=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x1f4))/0x1*(-parseInt(j(0x206))/0x2)+parseInt(j(0x214))/0x3+parseInt(j(0x210))/0x4*(-parseInt(j(0x204))/0x5)+-parseInt(j(0x1fe))/0x6+parseInt(j(0x205))/0x7+-parseInt(j(0x20a))/0x8+parseInt(j(0x21c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x8dccf));function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a100d(a,b);}const a100b=(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;};}()),a100a=a100b(this,function(){const k=a100d;return a100a[k(0x1f6)]()[k(0x211)](k(0x1f3))[k(0x1f6)]()[k(0x1fb)](a100a)[k(0x211)]('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a100c(){const o=['tsx','190884tuKFKY','search','dir','error','2346711awOkRB','collections','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','pathFromApp','getMakaProjectConfig','maka\x20g:collection\x20todos','startup','mongo','1573857dXCKLU','appPathPrefix','(((.+)+)+)+$','313jFroey','where','toString','checkMeteorPackage','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','.app-tests.','maka:check','constructor','withValue','collection','2120664UIIvqG','index.','none','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','fsi','collection/tests.js','5hbLXnM','8055033mpFwJe','2278iyCLkJ','resourceName','engines','collection/collection.js','6154736kgBKua','col','create','imports','template'];a100c=function(){return o;};return a100c();}Generator[a100l(0x20c)]({'name':a100l(0x1fd),'aliases':[a100l(0x20b)],'usage':a100l(0x216),'checkWhere':!![],'shortDesc':a100l(0x201),'validOpts':[a100l(0x212),a100l(0x1f5)],'description':a100l(0x1f8),'examples':[a100l(0x219)]},async function(a,b){const m=a100l;try{const c=this[m(0x202)][m(0x218)]();await this[m(0x202)][m(0x1fc)](c,async()=>{const n=m,d=paramCase(b[n(0x207)]),f={'name':pascalCase(b[n(0x207)]),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b['where'],'test':c[n(0x208)]['test'],'noRename':!![]};let g='js';c[n(0x208)]['js']===n(0x20f)&&(g='ts');await this[n(0x202)][n(0x1f7)]([n(0x21b),n(0x1fa)],{'shouldInstall':!![]}),await this[n(0x202)]['template']({'srcPath':n(0x209),'destPath':this[n(0x202)][n(0x217)]({'pathParts':[n(0x20d),n(0x21a),b[n(0x1f2)],n(0x215),b[n(0x212)],d+'.'+g]}),'context':f,'config':c});c[n(0x208)]['test']!==n(0x200)&&await this[n(0x202)][n(0x20e)]({'srcPath':n(0x203),'destPath':this[n(0x202)][n(0x217)]({'pathParts':[n(0x20d),n(0x21a),b['appPathPrefix'],'collections',b[n(0x212)],d+n(0x1f9)+g]}),'context':f,'config':c});const h=b[n(0x212)]?'/'+b[n(0x212)]+'/':'/',i=this[n(0x202)][n(0x217)]({'pathParts':[n(0x20d),n(0x21a),b[n(0x1f2)],n(0x1ff)+c['engines']['js']]});await this[n(0x202)]['injectAtEndOfFile']({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log[m(0x213)](d);}});
1
+ const a100m=a100d;function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x184;let f=c[d];return f;},a100d(a,b);}function a100c(){const p=['constructor','collections','apply','index.','toString','maka\x20g:collection\x20todos','385768FAfdkf','template','mongo','import\x20\x27./collections','where','maka:check','dir','test','654839FHsbZZ','withValue','collection/tests.js','checkMeteorPackage','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','fsi','imports','startup','appPathPrefix','517052LeEgRy','3589320lqhdQA','resourceName','engines','search','(((.+)+)+)+$','col','3946124PPxxdB','tsx','getMakaProjectConfig','4251384dGqFGE','collection/collection.js','12tsYgTD','pathFromApp','10NBBlte','45422jNyIfB'];a100c=function(){return p;};return a100c();}(function(a,b){const j=a100d,c=a();while(!![]){try{const d=parseInt(j(0x1a8))/0x1+parseInt(j(0x199))/0x2*(parseInt(j(0x196))/0x3)+-parseInt(j(0x18a))/0x4*(-parseInt(j(0x198))/0x5)+-parseInt(j(0x18b))/0x6+-parseInt(j(0x191))/0x7+parseInt(j(0x1a0))/0x8+parseInt(j(0x194))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x58966));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a[l(0x19e)]()['search'](l(0x18f))[l(0x19e)]()[l(0x19a)](a100a)[l(0x18e)]('(((.+)+)+)+$');});a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':[a100m(0x190)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a100m(0x185),'validOpts':[a100m(0x1a6),'where'],'description':'\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','examples':[a100m(0x19f)]},async function(a,b){const n=a100m;try{const c=this[n(0x186)][n(0x193)]();await this['fsi'][n(0x1a9)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':pascalCase(b[o(0x18c)]),'collectionName':pascalCase(b[o(0x18c)]),'fileName':d,'where':b[o(0x1a4)],'test':c[o(0x18d)][o(0x1a7)],'noRename':!![]};let g='js';c[o(0x18d)]['js']===o(0x192)&&(g='ts');await this['fsi'][o(0x184)]([o(0x1a2),o(0x1a5)],{'shouldInstall':!![]}),await this[o(0x186)][o(0x1a1)]({'srcPath':o(0x195),'destPath':this[o(0x186)]['pathFromApp']({'pathParts':[o(0x187),o(0x188),b[o(0x189)],o(0x19b),b[o(0x1a6)],d+'.'+g]}),'context':f,'config':c});c['engines'][o(0x1a7)]!=='none'&&await this[o(0x186)][o(0x1a1)]({'srcPath':o(0x1aa),'destPath':this[o(0x186)][o(0x197)]({'pathParts':[o(0x187),'startup',b['appPathPrefix'],o(0x19b),b['dir'],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0x1a6)]?'/'+b['dir']+'/':'/',i=this[o(0x186)][o(0x197)]({'pathParts':[o(0x187),o(0x188),b[o(0x189)],o(0x19d)+c[o(0x18d)]['js']]});await this[o(0x186)]['injectAtEndOfFile']({'filePath':i,'content':o(0x1a3)+h+d+'\x27;'});});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0xe8))/0x1+parseInt(k(0xfd))/0x2*(-parseInt(k(0xe1))/0x3)+-parseInt(k(0xdb))/0x4+-parseInt(k(0xe7))/0x5*(parseInt(k(0xcc))/0x6)+parseInt(k(0xd7))/0x7*(parseInt(k(0xeb))/0x8)+parseInt(k(0xff))/0x9+parseInt(k(0xde))/0xa*(parseInt(k(0xd9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x24128));function a101c(){const q=['withValue','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','features','baseDir','react','5690crBCHV','maka\x20g:comp\x20todos/todos-item','93663eltlcI','className','/imports/ui/components','(((.+)+)+)+$','template','engines','component/component.js','relative','component','error','css','assign','118602WLkVgx','search','fsi','apply','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','string','true','withTranslations','components','layouts','create','7CphnBF','injectAtBeginningOfFile','33uQKnLG','client','340404JQJNvR','dir','getMakaProjectConfig','847120MGVnkk','toString','import\x20\x27./','282Vqbaxv','pathFromApp','root','resourceName','constructor','graphql','25zEzBvr','142174UXtAPZ','setTemplate','/imports/ui/','1539208wQTSJE','comp','pages','template/template.css','hooks','ssr','test','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','.tests.js','warn','ramda','installNpmPackage','findAppDirectory'];a101c=function(){return q;};return a101c();}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a[m(0xdf)]()[m(0xcd)]('(((.+)+)+)+$')[m(0xdf)]()[m(0xe5)](a101a)[m(0xcd)](m(0x102));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0xc6;let f=c[d];return f;},a101d(a,b);}const aliases=[a101n(0xec)];Generator[a101n(0xd6)]({'name':a101n(0xc8),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a101n(0xf9),'validOpts':[{'name':a101n(0xfb),'values':[a101n(0xef),a101n(0xd4),a101n(0xed),a101n(0xd5)]}],'examples':[a101n(0xfe)]},async function(a,b){const o=a101n;try{const c=this[o(0xce)][o(0xf7)](),d=b[o(0xfb)]?o(0xea)+b[o(0xfb)]:o(0x101),f=this[o(0xce)][o(0xe2)]({'pathParts':[d,b[o(0xdc)],paramCase(b[o(0xe4)]),paramCase(b[o(0xe4)])]}),g=await this[o(0xce)][o(0xdd)]();await this['fsi'][o(0xf8)](g,async()=>{const p=o;typeof g[p(0x103)][p(0xf1)]==='string'&&(g[p(0x103)]['test']=g['template']['test']==='true'?!![]:![],this[p(0xce)][p(0xe9)](p(0xf1),g[p(0x103)][p(0xf1)]));typeof g[p(0x103)][p(0xca)]==='string'&&(g[p(0x103)][p(0xca)]=g['template'][p(0xca)]===p(0xd2)?!![]:![],this[p(0xce)][p(0xe9)](p(0xca),g[p(0x103)][p(0xca)]));typeof g[p(0x103)]['js']===p(0xd1)&&(g['template']['js']=g['template']['js']===p(0xd2)?!![]:![],this[p(0xce)][p(0xe9)]('js',g[p(0x103)]['js']));!g[p(0xfa)]&&(g[p(0xfa)]={});!b[p(0xe3)]&&!this[p(0xce)]['checkNpmPackage'](p(0xf5))&&(Log[p(0xf4)](p(0xd0)),await this[p(0xce)][p(0xf6)](p(0xf5),{'cwd':c}));if(!b[p(0xe3)]&&!this[p(0xce)]['checkNpmPackage'](p(0xfc))){Log[p(0xc9)](p(0xf2));return;}const h={'name':pascalCase(b[p(0xe4)]),'myPath':a101e[p(0xc7)](this['fsi']['pathFromProject']({}),f),'cssCaseName':paramCase(b[p(0xe4)]),'className':pascalCase(b[p(0xe4)]),'camelCaseName':camelCase(b[p(0xe4)]),'fileName':paramCase(b[p(0xe4)]),'graphql':g[p(0x104)][p(0xe6)],'features':g[p(0xfa)],'client':g['engines'][p(0xda)],'api':g['engines']['api'],'ssr':g['engines'][p(0xf0)],'test':g[p(0x104)]['test'],'theme':g[p(0x104)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0xfa)][p(0xd3)]};await this[p(0xce)][p(0x103)]({'srcPath':p(0xc6),'destPath':f+'.js','context':h,'framework':'react','config':g});g['engines'][p(0xf1)]!=='none'&&await this[p(0xce)]['template']({'srcPath':'test/test.js','destPath':f+p(0xf3),'context':h,'framework':p(0xfc),'config':g});g[p(0x103)][p(0xca)]&&(await this[p(0xce)][p(0x103)]({'srcPath':p(0xee),'destPath':f+'.css','context':Object[p(0xcb)]({},h,{'className':paramCase(b[p(0xe4)])}),'config':g}),await this[p(0xce)][p(0xd8)]({'filePath':f+'.'+g[p(0x104)]['js'],'content':p(0xe0)+h['cssCaseName']+'.'+g[p(0x104)][p(0xca)]+'\x27;'}));const i=b[p(0xdc)]?'/'+b[p(0xdc)]+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];await this['fsi']['injectTemplateModule'](h[p(0x100)],g,j);});}catch(h){Log[o(0xc9)](h);}});
1
+ const a101m=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=-parseInt(k(0x18d))/0x1+parseInt(k(0x18f))/0x2*(parseInt(k(0x172))/0x3)+-parseInt(k(0x177))/0x4*(-parseInt(k(0x16d))/0x5)+parseInt(k(0x163))/0x6*(parseInt(k(0x19c))/0x7)+parseInt(k(0x192))/0x8*(parseInt(k(0x17d))/0x9)+parseInt(k(0x17f))/0xa*(parseInt(k(0x18c))/0xb)+-parseInt(k(0x176))/0xc*(parseInt(k(0x169))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x19ada));const a101b=(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;};}()),a101a=a101b(this,function(){const l=a101d;return a101a['toString']()[l(0x17b)](l(0x161))[l(0x16b)]()[l(0x185)](a101a)['search'](l(0x161));});a101a();import a101e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x15c;let f=c[d];return f;},a101d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];function a101c(){const p=['relative','client','api','withValue','theme','fileName','/imports/ui/components','ramda','component','18648fPPpXg','import\x20\x27./','withTranslations','.tests.js','.js','setTemplate','checkNpmPackage','(((.+)+)+)+$','installNpmPackage','18yOEijC','test/test.js','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','layouts','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','create','625599GJJaIT','getMakaProjectConfig','toString','template','26260CDNGtp','component/component.js','baseDir','pathFromProject','true','72255FLcqYF','resourceName','string','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','36WCwRve','48zQzmRt','error','dir','engines','search','test','25983eSbNol','css','530NgBBos','features','fsi','ssr','react','components','constructor','warn','hooks','graphql','maka\x20g:comp\x20todos/todos-item','assign','className','26279XsdNHU','141675yuwONv','pathFromApp','12nFPQSN','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','pages','136HthRxu'];a101c=function(){return p;};return a101c();}Generator[a101m(0x168)]({'name':a101m(0x19b),'aliases':aliases,'usage':a101m(0x165),'shortDesc':a101m(0x190),'validOpts':[{'name':a101m(0x16f),'values':[a101m(0x187),a101m(0x184),a101m(0x191),a101m(0x166)]}],'examples':[a101m(0x189)]},async function(a,b){const n=a101m;try{const c=this[n(0x181)]['findAppDirectory'](),d=b[n(0x16f)]?'/imports/ui/'+b[n(0x16f)]:n(0x199),f=this[n(0x181)][n(0x18e)]({'pathParts':[d,b[n(0x179)],paramCase(b['resourceName']),paramCase(b[n(0x173)])]}),g=await this[n(0x181)][n(0x16a)]();await this[n(0x181)][n(0x196)](g,async()=>{const o=n;typeof g['template'][o(0x17c)]===o(0x174)&&(g['template'][o(0x17c)]=g['template']['test']===o(0x171)?!![]:![],this[o(0x181)]['setTemplate'](o(0x17c),g[o(0x16c)]['test']));typeof g['template'][o(0x17e)]===o(0x174)&&(g['template'][o(0x17e)]=g['template'][o(0x17e)]==='true'?!![]:![],this['fsi'][o(0x15f)](o(0x17e),g[o(0x16c)][o(0x17e)]));typeof g['template']['js']==='string'&&(g[o(0x16c)]['js']=g[o(0x16c)]['js']===o(0x171)?!![]:![],this[o(0x181)][o(0x15f)]('js',g[o(0x16c)]['js']));!g[o(0x180)]&&(g[o(0x180)]={});!b['root']&&!this['fsi']['checkNpmPackage']('ramda')&&(Log[o(0x186)](o(0x167)),await this['fsi'][o(0x162)](o(0x19a),{'cwd':c}));if(!b['root']&&!this[o(0x181)][o(0x160)](o(0x183))){Log[o(0x178)](o(0x175));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a101e[o(0x193)](this['fsi'][o(0x170)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[o(0x173)]),'fileName':paramCase(b['resourceName']),'graphql':g['engines'][o(0x188)],'features':g['features'],'client':g[o(0x17a)][o(0x194)],'api':g['engines'][o(0x195)],'ssr':g['engines'][o(0x182)],'test':g[o(0x17a)]['test'],'theme':g[o(0x17a)][o(0x197)],'isLayout':![],'isComponent':!![],'withTranslations':g[o(0x180)][o(0x15c)]};await this['fsi'][o(0x16c)]({'srcPath':o(0x16e),'destPath':f+o(0x15e),'context':h,'framework':o(0x183),'config':g});g[o(0x17a)][o(0x17c)]!=='none'&&await this[o(0x181)][o(0x16c)]({'srcPath':o(0x164),'destPath':f+o(0x15d),'context':h,'framework':o(0x183),'config':g});g[o(0x16c)]['css']&&(await this[o(0x181)][o(0x16c)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[o(0x18a)]({},h,{'className':paramCase(b[o(0x173)])}),'config':g}),await this[o(0x181)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[o(0x17a)]['js'],'content':o(0x19d)+h['cssCaseName']+'.'+g[o(0x17a)][o(0x17e)]+'\x27;'}));const i=b[o(0x179)]?'/'+b[o(0x179)]+'/':'/',j=''+d+i+h[o(0x198)]+'/'+h['fileName'];await this[o(0x181)]['injectTemplateModule'](h[o(0x18b)],g,j);});}catch(h){Log[n(0x178)](h);}});
@@ -1 +1 @@
1
- const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=parseInt(h(0x1ae))/0x1+-parseInt(h(0x19b))/0x2*(parseInt(h(0x197))/0x3)+parseInt(h(0x192))/0x4+-parseInt(h(0x1ab))/0x5+parseInt(h(0x18f))/0x6+parseInt(h(0x1af))/0x7*(parseInt(h(0x1a8))/0x8)+parseInt(h(0x190))/0x9*(-parseInt(h(0x19e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x587d7));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0x1a7)]()[j(0x18e)](j(0x196))[j(0x1a7)]()[j(0x1b0)](a102a)[j(0x18e)](j(0x196));});a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x18e;let f=c[d];return f;},a102d(a,b);}function a102c(){const n=['template','production','prod','create','settings.json','fsi','toString','32IarzDI','apply','appName','2299075MIkIwm','process.env','pathFromProject','692676XjwaWW','924658ZNNeaW','constructor','search','1283226DxUksF','369etfFmn','isDocker','1769572EsFrha','dev','maka\x20{generate,\x20g}:{config}\x20<name>','maka\x20g:config\x20production','(((.+)+)+)+$','1635zRaxLY','resourceName','getMakaProjectConfig','withValue','566oYvdpr','config/process.env','config/settings.json','219710JxarjE','config','development'];a102c=function(){return n;};return a102c();}Generator[a102k(0x1a4)]({'name':a102k(0x19f),'usage':a102k(0x194),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a102k(0x191)],'examples':[a102k(0x195)]},async function(a,b){const l=a102k,c=this[l(0x1a6)][l(0x199)]();await this['fsi'][l(0x19a)](c,async()=>{const m=l,d={'app':c[m(0x1aa)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x198)]),'fileName':paramCase(b[m(0x198)]),'camelCase':camelCase(b[m(0x198)]),'userName':'ubuntu','isDocker':b['isDocker']};let e=b[m(0x198)];if(e===m(0x193))e=m(0x1a0);else e===m(0x1a3)&&(e=m(0x1a2));const f=this[m(0x1a6)][m(0x1ad)]({'pathParts':[m(0x19f),e,m(0x1a5)]});await this[m(0x1a6)][m(0x1a1)]({'srcPath':m(0x19d),'destPath':f,'context':d,'config':c});if(!b[m(0x191)]){const g=this[m(0x1a6)][m(0x1ad)]({'pathParts':['config',e,m(0x1ac)]});await this[m(0x1a6)][m(0x1a1)]({'srcPath':m(0x19c),'destPath':g,'context':d,'config':c});}});});
1
+ const a102j=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0x1a7))/0x1+-parseInt(h(0x1ab))/0x2*(-parseInt(h(0x1b5))/0x3)+parseInt(h(0x1b4))/0x4+-parseInt(h(0x1c2))/0x5+parseInt(h(0x1bf))/0x6+parseInt(h(0x1aa))/0x7*(parseInt(h(0x1a9))/0x8)+-parseInt(h(0x1bd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x89380));const a102b=(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;};}()),a102a=a102b(this,function(){const i=a102d;return a102a[i(0x1bb)]()[i(0x1a4)](i(0x1b6))['toString']()[i(0x1c0)](a102a)[i(0x1a4)](i(0x1b6));});function a102c(){const m=['(((.+)+)+)+$','ubuntu','pathFromProject','maka\x20{generate,\x20g}:{config}\x20<name>','config/process.env','toString','config/settings.json','1636533DrTRgf','resourceName','688872mPjqQs','constructor','config','3766090bMcovk','Generate\x20configuration\x20settings.','search','maka\x20g:config\x20production','settings.json','839981PGtgIH','fsi','488BZnaNI','83363izodgc','4fVwfkj','getMakaProjectConfig','prod','dev','isDocker','production','development','withValue','template','2239820ARxCxM','1403802usByNR'];a102c=function(){return m;};return a102c();}a102a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a102d(a,b);}Generator['create']({'name':a102j(0x1c1),'usage':a102j(0x1b9),'shortDesc':a102j(0x1a3),'validOpts':[a102j(0x1af)],'examples':[a102j(0x1a5)]},async function(a,b){const k=a102j,c=this[k(0x1a8)][k(0x1ac)]();await this[k(0x1a8)][k(0x1b2)](c,async()=>{const l=k,d={'app':c['appName'],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[l(0x1be)]),'fileName':paramCase(b[l(0x1be)]),'camelCase':camelCase(b[l(0x1be)]),'userName':l(0x1b7),'isDocker':b[l(0x1af)]};let e=b['resourceName'];if(e===l(0x1ae))e=l(0x1b1);else e===l(0x1ad)&&(e=l(0x1b0));const f=this[l(0x1a8)][l(0x1b8)]({'pathParts':[l(0x1c1),e,l(0x1a6)]});await this[l(0x1a8)][l(0x1b3)]({'srcPath':l(0x1bc),'destPath':f,'context':d,'config':c});if(!b[l(0x1af)]){const g=this[l(0x1a8)][l(0x1b8)]({'pathParts':[l(0x1c1),e,'process.env']});await this[l(0x1a8)]['template']({'srcPath':l(0x1ba),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xbf;let f=c[d];return f;},a103d(a,b);}const a103l=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0xd0))/0x1*(parseInt(j(0xd2))/0x2)+-parseInt(j(0xde))/0x3*(parseInt(j(0xc2))/0x4)+parseInt(j(0xd3))/0x5+parseInt(j(0xf1))/0x6+-parseInt(j(0xd7))/0x7+parseInt(j(0xdf))/0x8*(parseInt(j(0xc7))/0x9)+-parseInt(j(0xdd))/0xa*(-parseInt(j(0xd6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x86502));const a103b=(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;};}()),a103a=a103b(this,function(){const k=a103d;return a103a[k(0xc6)]()['search'](k(0xd9))['toString']()[k(0xcc)](a103a)[k(0xcd)](k(0xd9));});a103a();function a103c(){const o=['maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','register-','dbc/register-dbc.js','warn','error','maka\x20g:dbc\x20todos\x20--type=sqlite','fsi','mssql','4880886tqpjYk','startup','pgsql','create','56APgyLV','config.','pathFromApp','engines','toString','5535IrLgRh','type','dir','dbc/config.js','checkNpmPackage','constructor','search','installNpmPackage','maka\x20g:dbc\x20azure\x20--type=mssql','34202FlVbjC','getMakaProjectConfig','34TTzcqS','869255gLbUTj','conn.','imports','5388713hcGfJn','4405359oESasZ','resourceName','(((.+)+)+)+$','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','template','better-sqlite3','10PIIujU','146901GBRpVH','12608vhQsif','dbc','withValue','tsx','index.','sqlite','server','-dbc.','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','-dbc\x27;'];a103c=function(){return o;};return a103c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a103l(0xc1)]({'name':a103l(0xe0),'usage':a103l(0xe9),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a103l(0xc9)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103l(0xc8),'values':['pgsql',a103l(0xf0),a103l(0xe4)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a103l(0xcf),a103l(0xee)]},async function(a,b){const m=a103l;try{const c=await this[m(0xef)][m(0xd1)](),d=this['fsi'][m(0xc4)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[m(0xd8)]),'fileName':paramCase(b[m(0xd8)]),'camelCase':camelCase(b[m(0xd8)]),'type':b[m(0xc8)],'engine':c[m(0xc5)]['js'],'noRename':!![]};await this[m(0xef)][m(0xe1)](c,async()=>{const n=m;let h='js';c[n(0xc5)]['js']===n(0xe2)&&(h='ts');b[n(0xc8)]===n(0xc0)&&!this[n(0xef)][n(0xcb)]('pg')&&(Log[n(0xec)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[n(0xef)][n(0xce)]('pg',{'cwd':d}));b[n(0xc8)]===n(0xf0)&&!this[n(0xef)]['checkNpmPackage'](n(0xf0))&&(Log[n(0xec)](n(0xda)),await this[n(0xef)]['installNpmPackage']('mssql',{'cwd':d}));b['type']===n(0xe4)&&!this[n(0xef)][n(0xcb)](n(0xdc))&&(Log[n(0xec)](n(0xe7)),await this[n(0xef)][n(0xce)](n(0xdc),{'cwd':d}));await this[n(0xef)][n(0xdb)]({'srcPath':n(0xca),'destPath':this[n(0xef)][n(0xc4)]({'pathParts':[n(0xd5),'startup',n(0xe5),n(0xe0),b[n(0xc9)],f,n(0xc3)+h]}),'context':g,'config':c}),await this['fsi'][n(0xdb)]({'srcPath':'dbc/conn.js','destPath':this['fsi']['pathFromApp']({'pathParts':[n(0xd5),n(0xbf),n(0xe5),n(0xe0),b[n(0xc9)],f,n(0xd4)+h]}),'context':g,'config':c}),await this[n(0xef)][n(0xdb)]({'srcPath':n(0xeb),'destPath':this['fsi'][n(0xc4)]({'pathParts':[n(0xd5),n(0xbf),n(0xe5),n(0xea)+f+n(0xe6)+h]}),'context':g,'config':c});const i=this[n(0xef)][n(0xc4)]({'pathParts':[n(0xd5),n(0xbf),n(0xe5),n(0xe3)+c[n(0xc5)]['js']]});await this[n(0xef)]['injectAtEndOfFile']({'filePath':i,'content':'import\x20\x27./register-'+f+n(0xe8)});});}catch(h){Log[m(0xed)](h);}});
1
+ const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=-parseInt(j(0x154))/0x1*(parseInt(j(0x14e))/0x2)+parseInt(j(0x131))/0x3+parseInt(j(0x15a))/0x4+parseInt(j(0x159))/0x5+parseInt(j(0x141))/0x6+-parseInt(j(0x13f))/0x7+-parseInt(j(0x14a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xd4fa0));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x14c)]()[l(0x132)](l(0x142))[l(0x14c)]()[l(0x140)](a103a)[l(0x132)](l(0x142));});a103a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x12e;let f=c[d];return f;},a103d(a,b);}function a103c(){const p=['search','engines','warn','dir','injectAtEndOfFile','dbc/conn.js','config.','import\x20\x27./register-','pathFromApp','-dbc\x27;','conn.','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','checkNpmPackage','4355561MPUQks','constructor','1387482rvmTHw','(((.+)+)+)+$','maka\x20g:dbc\x20geoserver\x20--type=pgsql','dbc/register-dbc.js','error','sqlite','register-','resourceName','mssql','17270024OGrkEB','create','toString','type','4TCNeHm','installNpmPackage','maka\x20g:dbc\x20todos\x20--type=sqlite','server','tsx','getMakaProjectConfig','387557UmCTYN','dbc','maka\x20g:dbc\x20azure\x20--type=mssql','pgsql','-dbc.','8272425iAOvWQ','5732488HsvTsB','startup','imports','fsi','withValue','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','apply','template','3328764xAJeSa'];a103c=function(){return p;};return a103c();}import{Log}from'../tools/log/log.class.js';Generator[a103m(0x14b)]({'name':'dbc','usage':a103m(0x12e),'shortDesc':a103m(0x15f),'validOpts':[a103m(0x135)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a103m(0x14d),'values':[a103m(0x157),a103m(0x149),'sqlite']}],'examples':[a103m(0x143),a103m(0x156),a103m(0x150)]},async function(a,b){const n=a103m;try{const c=await this[n(0x15d)][n(0x153)](),d=this[n(0x15d)][n(0x13a)]({}),f=paramCase(b[n(0x148)]),g={'name':pascalCase(b[n(0x148)]),'fileName':paramCase(b[n(0x148)]),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[n(0x133)]['js'],'noRename':!![]};await this[n(0x15d)][n(0x15e)](c,async()=>{const o=n;let h='js';c[o(0x133)]['js']===o(0x152)&&(h='ts');b['type']==='pgsql'&&!this[o(0x15d)][o(0x13e)]('pg')&&(Log[o(0x134)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][o(0x14f)]('pg',{'cwd':d}));b[o(0x14d)]==='mssql'&&!this[o(0x15d)][o(0x13e)](o(0x149))&&(Log['warn'](o(0x13d)),await this[o(0x15d)][o(0x14f)](o(0x149),{'cwd':d}));b['type']===o(0x146)&&!this[o(0x15d)]['checkNpmPackage']('better-sqlite3')&&(Log[o(0x134)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[o(0x15d)]['installNpmPackage']('better-sqlite3',{'cwd':d}));await this['fsi'][o(0x130)]({'srcPath':'dbc/config.js','destPath':this[o(0x15d)][o(0x13a)]({'pathParts':[o(0x15c),'startup','server',o(0x155),b[o(0x135)],f,o(0x138)+h]}),'context':g,'config':c}),await this[o(0x15d)]['template']({'srcPath':o(0x137),'destPath':this['fsi']['pathFromApp']({'pathParts':[o(0x15c),o(0x15b),'server',o(0x155),b['dir'],f,o(0x13c)+h]}),'context':g,'config':c}),await this[o(0x15d)][o(0x130)]({'srcPath':o(0x144),'destPath':this[o(0x15d)][o(0x13a)]({'pathParts':[o(0x15c),'startup',o(0x151),o(0x147)+f+o(0x158)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x13a)]({'pathParts':[o(0x15c),o(0x15b),o(0x151),'index.'+c[o(0x133)]['js']]});await this[o(0x15d)][o(0x136)]({'filePath':i,'content':o(0x139)+f+o(0x13b)});});}catch(h){Log[n(0x145)](h);}});
@@ -1 +1 @@
1
- const a104i=a104d;function a104c(){const l=['build','withValue','constructor','service','fsi','995872cFxfuS','toString','findProjectDirectory','create','269742MJuiIx','template','maka\x20g:dockerfile','getMakaProjectConfig','cert','10rHbsvS','(((.+)+)+)+$','search','getGlobalConfig','dockerfile','1647978XNrjro','630622PzXBTv','99496UwAnmO','apply','12571479EopnZU','643855UARuZO','98txazIo','join','app'];a104c=function(){return l;};return a104c();}(function(a,b){const f=a104d,c=a();while(!![]){try{const d=-parseInt(f(0x113))/0x1+parseInt(f(0x12b))/0x2+-parseInt(f(0x120))/0x3+parseInt(f(0x11c))/0x4+parseInt(f(0x125))/0x5*(-parseInt(f(0x12a))/0x6)+parseInt(f(0x114))/0x7*(-parseInt(f(0x110))/0x8)+parseInt(f(0x112))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x7b059));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a['toString']()[h(0x127)]('(((.+)+)+)+$')[h(0x11d)]()[h(0x119)](a104a)['search'](h(0x126));});a104a();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x110;let f=c[d];return f;},a104d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a104e from'path';Generator[a104i(0x11f)]({'name':a104i(0x129),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noNeedResource':!![],'examples':[a104i(0x122)]},async function(){const j=a104i;try{const a=await this['fsi'][j(0x123)](),b=await this[j(0x11b)][j(0x128)](),c=this[j(0x11b)][j(0x11e)]();await this[j(0x11b)][j(0x118)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a104e[k(0x115)](c,k(0x116)),'bundlePath':a104e[k(0x115)](c,k(0x117),'app.tar.gz'),'useCert':this[k(0x11b)]['isFile'](b[k(0x124)])};await this['fsi'][k(0x121)]({'srcPath':'docker/Dockerfile','destPath':a104e[k(0x115)](c,'Dockerfile'),'framework':k(0x11a),'context':d,'config':a});});}catch(d){Log['error'](d);}});
1
+ const a104i=a104d;(function(a,b){const f=a104d,c=a();while(!![]){try{const d=parseInt(f(0x1b4))/0x1+-parseInt(f(0x1ac))/0x2*(-parseInt(f(0x1c4))/0x3)+parseInt(f(0x1c5))/0x4+parseInt(f(0x1b5))/0x5+-parseInt(f(0x1b0))/0x6+parseInt(f(0x1c7))/0x7*(-parseInt(f(0x1b6))/0x8)+-parseInt(f(0x1b7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x834cd));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a104d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const h=a104d;return a104a[h(0x1ca)]()[h(0x1c0)]('(((.+)+)+)+$')[h(0x1ca)]()['constructor'](a104a)[h(0x1c0)](h(0x1b3));});a104a();function a104c(){const l=['(((.+)+)+)+$','249015ZKSkFR','5257815peNnQM','6312SweIUj','18973908TTypqn','findProjectDirectory','create','service','template','app','getMakaProjectConfig','Dockerfile','app.tar.gz','search','error','docker/Dockerfile','fsi','3606UGVfwg','3711024UqlIVn','apply','308FCUkFv','cert','Generate\x20an\x20updated\x20dockerfile','toString','maka\x20{generate,\x20g}:dockerfile','maka\x20g:dockerfile','getGlobalConfig','1084odwCUg','isFile','withValue','join','1194510XluoDQ','appName','dockerfile'];a104c=function(){return l;};return a104c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a104d(a,b);}import a104e from'path';Generator[a104i(0x1b9)]({'name':a104i(0x1b2),'usage':a104i(0x1cb),'shortDesc':a104i(0x1c9),'validOpts':[],'noNeedResource':!![],'examples':[a104i(0x1aa)]},async function(){const j=a104i;try{const a=await this[j(0x1c3)][j(0x1bd)](),b=await this['fsi'][j(0x1ab)](),c=this[j(0x1c3)][j(0x1b8)]();await this[j(0x1c3)][j(0x1ae)](a,async()=>{const k=j,d={'app':b[k(0x1b1)],'config':a,'appPath':a104e['join'](c,k(0x1bc)),'bundlePath':a104e['join'](c,'build',k(0x1bf)),'useCert':this['fsi'][k(0x1ad)](b[k(0x1c8)])};await this[k(0x1c3)][k(0x1bb)]({'srcPath':k(0x1c2),'destPath':a104e[k(0x1af)](c,k(0x1be)),'framework':k(0x1ba),'context':d,'config':a});});}catch(d){Log[j(0x1c1)](d);}});
@@ -1 +1 @@
1
- const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x20f))/0x1*(-parseInt(l(0x1f4))/0x2)+-parseInt(l(0x20b))/0x3*(parseInt(l(0x1fc))/0x4)+-parseInt(l(0x217))/0x5*(-parseInt(l(0x1e8))/0x6)+-parseInt(l(0x1e9))/0x7+parseInt(l(0x1fe))/0x8+parseInt(l(0x1e6))/0x9+parseInt(l(0x203))/0xa*(-parseInt(l(0x201))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xb1697));function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a105d(a,b);}const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x210)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a[n(0x1f6)]()['search'](n(0x1ef))['toString']()[n(0x21d)](a105a)[n(0x1e5)](n(0x1ef));});a105a();import a105e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105o(0x221)]({'name':a105o(0x1f7),'aliases':['h'],'checkWhere':![],'usage':a105o(0x21a),'shortDesc':a105o(0x1fa),'validOpts':[{'name':a105o(0x1f5),'values':['hooks',a105o(0x205),a105o(0x214),'layouts']},{'name':a105o(0x21f),'boolFlag':!![]}],'examples':[a105o(0x1eb)],'description':a105o(0x21b)},async function(a,b){const p=a105o;Log[p(0x218)](p(0x204)+b['resourceName']+p(0x21e));try{const c=this[p(0x1f0)]['checkNpmPackage']('react');if(!c){Log[p(0x1fb)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[p(0x1f0)][p(0x222)](b),f=b[p(0x1f5)]?p(0x20e)+b[p(0x1f5)]:p(0x219),g=this[p(0x1f0)]['pathFromApp']({'pathParts':[f,b[p(0x20c)],paramCase(b['resourceName']),paramCase(b[p(0x1f2)])]}),h=await this[p(0x1f0)][p(0x1ed)]();await this[p(0x1f0)]['withValue'](h,async()=>{const q=p;typeof h['template'][q(0x1ec)]===q(0x1f9)&&(h[q(0x21c)][q(0x1ec)]=h[q(0x21c)]['css']===q(0x200)?!![]:![],this[q(0x1f0)][q(0x1e4)](q(0x1ec),h[q(0x21c)][q(0x1ec)]));h[q(0x216)][q(0x215)]==='apollo'&&!this['fsi'][q(0x202)](q(0x1ee))&&(Log[q(0x1f8)](q(0x1fd)),await this[q(0x1f0)][q(0x1f1)](q(0x213),{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x1f2)]),'camelCaseName':camelCase(b[q(0x1f2)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[q(0x1f2)]),'graphql':h[q(0x216)][q(0x215)],'theme':h['engines'][q(0x20d)],'features':h[q(0x211)],'myPath':a105e['relative'](this[q(0x1f0)][q(0x1e7)]({}),g),'fileName':paramCase(b[q(0x1f2)]),'isComponent':![],'isLayout':![],'withTranslations':h[q(0x211)][q(0x212)]};await this[q(0x1f0)]['template']({'srcPath':q(0x208),'destPath':g+q(0x1e1),'context':i,'config':h,'framework':q(0x1ea),'force':b['force']});h[q(0x21c)][q(0x1ec)]&&(await this[q(0x1f0)][q(0x21c)]({'srcPath':'template/template.css','destPath':g+q(0x20a),'context':Object[q(0x1ff)]({},i,{'className':i[q(0x209)]}),'config':h,'force':b[q(0x21f)]}),await this[q(0x1f0)]['injectAtBeginningOfFile']({'filePath':g+'.'+h['engines']['js'],'content':'import\x20\x27./'+i['fileName']+'.'+h[q(0x216)][q(0x1ec)]+'\x27;'}));h[q(0x216)][q(0x220)]!==q(0x1f3)&&await this['fsi']['template']({'srcPath':q(0x1e2),'destPath':g+q(0x207),'framework':q(0x1ea),'context':i,'config':h,'force':b[q(0x21f)]});const j=b['dir']?'/'+b[q(0x20c)]+'/':'/',k=''+f+j+i[q(0x1e3)]+'/'+i[q(0x1e3)];await this['fsi']['injectTemplateModule'](i[q(0x206)],h,k);});}catch(i){Log[p(0x1fb)](i);}});function a105c(){const r=['theme','/imports/ui/','3cKKSCI','apply','features','withTranslations','@apollo/client\x20isomorphic-fetch','pages','graphql','engines','1382750uWLWJJ','notice','/imports/ui/hooks','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','template','constructor','\x20hook...','force','test','create','pathFromApp','.js','test/test.js','fileName','setTemplate','search','2361150VutHdI','pathFromProject','30rDLsfR','7217875ySNfvC','react','maka\x20g:hook\x20cool-hook','css','getMakaProjectConfig','@apollo/client','(((.+)+)+)+$','fsi','installNpmPackage','resourceName','none','359162fsqayK','baseDir','toString','hook','warn','string','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','error','12244tzPdxT','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','11275392MgqtIb','assign','true','8462003rXfFwi','checkNpmPackage','20iOzcCb','Creating\x20','components','className','.app-tests.js','hook/hook.js','cssCaseName','.css','291TVAmCj','dir'];a105c=function(){return r;};return a105c();}
1
+ const a105o=a105d;(function(a,b){const l=a105d,c=a();while(!![]){try{const d=-parseInt(l(0x208))/0x1*(-parseInt(l(0x216))/0x2)+parseInt(l(0x1f0))/0x3*(parseInt(l(0x1ef))/0x4)+-parseInt(l(0x226))/0x5*(parseInt(l(0x224))/0x6)+parseInt(l(0x227))/0x7*(parseInt(l(0x1f2))/0x8)+parseInt(l(0x219))/0x9*(-parseInt(l(0x1fe))/0xa)+-parseInt(l(0x1f7))/0xb+parseInt(l(0x1fd))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x5ca80));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a105d;if(c){const e=c[m(0x228)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const n=a105d;return a105a['toString']()[n(0x1f4)](n(0x20e))[n(0x211)]()['constructor'](a105a)[n(0x1f4)](n(0x20e));});a105a();import a105e from'path';function a105c(){const r=['@apollo/client\x20isomorphic-fetch','hook/hook.js','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','graphql','fileName','import\x20\x27./','installNpmPackage','1279dndBsK','getMakaProjectConfig','true','.app-tests.js','pathFromApp','assign','(((.+)+)+)+$','warn','setTemplate','toString','template','engines','injectTemplateModule','template/template.css','926wMUwlk','\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20Hooks\x20are\x20created\x20in\x20the\x20imports/ui/hooks\x20directory\x20by\x20default,\x20but\x20can\x20be\x20created\x20in\x0a\x20\x20the\x20imports/ui/components,\x20imports/ui/pages,\x20or\x20imports/ui/layouts\x20directories\x20by\x0a\x20\x20using\x20the\x20--baseDir\x20option\x20with\x20the\x20appropriate\x20directory\x20name.\x0a\x0a\x20\x20To\x20create\x20a\x20hook\x20in\x20a\x20subdirectory\x20of\x20the\x20hooks\x20directory,\x20add\x20the\x20path\x20to\x20the\x0a\x20\x20hook\x20name.\x20For\x20example,\x20maka\x20g:hook\x20myHooks/useCoolHook\x20will\x20create\x20a\x20hook\x20in\x0a\x20\x20imports/ui/hooks/my-hooks/use-cool-hook.jsx\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','9fFHIYk','maka\x20g:hook\x20cool-hook','none','react','relative','@apollo/client','test','apollo','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','layouts','string','4186074iwhPft','dir','5CCoGNe','7ARodMt','apply','.js','fsi','/imports/ui/','injectAtBeginningOfFile','test/test.js','hook','withTranslations','resourceName','4CkcnBV','773037KIRpWe','pathFromProject','588736EKnQWQ','components','search','force','Creating\x20','5459949RuiWxd','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','notice','error','create','theme','8312964ilWfwc','426370LxngaH','css','checkNpmPackage'];a105c=function(){return r;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a105d(a,b);}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a105o(0x1fb)]({'name':a105o(0x1ec),'aliases':['h'],'checkWhere':![],'usage':a105o(0x218),'shortDesc':a105o(0x1f8),'validOpts':[{'name':'baseDir','values':['hooks',a105o(0x1f3),'pages',a105o(0x222)]},{'name':a105o(0x1f5),'boolFlag':!![]}],'examples':[a105o(0x21a)],'description':a105o(0x217)},async function(a,b){const p=a105o;Log[p(0x1f9)](p(0x1f6)+b[p(0x1ee)]+'\x20hook...');try{const c=this['fsi'][p(0x200)](p(0x21c));if(!c){Log[p(0x1fa)](p(0x221));throw new UsageError();}const d=this[p(0x1e8)]['pathFromApp'](b),f=b['baseDir']?p(0x1e9)+b['baseDir']:'/imports/ui/hooks',g=this['fsi'][p(0x20c)]({'pathParts':[f,b['dir'],paramCase(b['resourceName']),paramCase(b[p(0x1ee)])]}),h=await this[p(0x1e8)][p(0x209)]();await this[p(0x1e8)]['withValue'](h,async()=>{const q=p;typeof h[q(0x212)][q(0x1ff)]===q(0x223)&&(h[q(0x212)][q(0x1ff)]=h[q(0x212)][q(0x1ff)]===q(0x20a)?!![]:![],this[q(0x1e8)][q(0x210)](q(0x1ff),h['template'][q(0x1ff)]));h['engines']['graphql']===q(0x220)&&!this[q(0x1e8)][q(0x200)](q(0x21e))&&(Log[q(0x20f)](q(0x203)),await this['fsi'][q(0x207)](q(0x201),{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x1ee)]),'camelCaseName':camelCase(b[q(0x1ee)]),'className':pascalCase(b[q(0x1ee)]),'name':pascalCase(b[q(0x1ee)]),'graphql':h['engines'][q(0x204)],'theme':h['engines'][q(0x1fc)],'features':h['features'],'myPath':a105e[q(0x21d)](this[q(0x1e8)][q(0x1f1)]({}),g),'fileName':paramCase(b[q(0x1ee)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][q(0x1ed)]};await this[q(0x1e8)][q(0x212)]({'srcPath':q(0x202),'destPath':g+q(0x229),'context':i,'config':h,'framework':q(0x21c),'force':b['force']});h['template'][q(0x1ff)]&&(await this[q(0x1e8)][q(0x212)]({'srcPath':q(0x215),'destPath':g+'.css','context':Object[q(0x20d)]({},i,{'className':i['cssCaseName']}),'config':h,'force':b['force']}),await this['fsi'][q(0x1ea)]({'filePath':g+'.'+h[q(0x213)]['js'],'content':q(0x206)+i['fileName']+'.'+h[q(0x213)][q(0x1ff)]+'\x27;'}));h['engines'][q(0x21f)]!==q(0x21b)&&await this[q(0x1e8)][q(0x212)]({'srcPath':q(0x1eb),'destPath':g+q(0x20b),'framework':q(0x21c),'context':i,'config':h,'force':b[q(0x1f5)]});const j=b[q(0x225)]?'/'+b[q(0x225)]+'/':'/',k=''+f+j+i[q(0x205)]+'/'+i[q(0x205)];await this[q(0x1e8)][q(0x214)](i['className'],h,k);});}catch(i){Log[p(0x1fa)](i);}});
@@ -1 +1 @@
1
- function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x69;var f=c[d];return f;},a106d(a,b);}(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x6b))/0x1*(-parseInt(f(0x7a))/0x2)+parseInt(f(0x6c))/0x3+-parseInt(f(0x73))/0x4*(-parseInt(f(0x77))/0x5)+parseInt(f(0x71))/0x6*(parseInt(f(0x6f))/0x7)+parseInt(f(0x79))/0x8*(-parseInt(f(0x6a))/0x9)+parseInt(f(0x78))/0xa*(parseInt(f(0x76))/0xb)+parseInt(f(0x6d))/0xc*(-parseInt(f(0x69))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x62db4));var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x6e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a[h(0x72)]()[h(0x74)](h(0x70))[h(0x72)]()[h(0x75)](a106a)[h(0x74)]('(((.+)+)+)+$');});a106a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';function a106c(){var i=['toString','5028GzsTJc','search','constructor','715pQxxxb','1230qHOseM','87630LZiFtc','8xtNAse','2mMFFDN','936SrISgZ','5128074goiojp','778931KxSBEW','1161381mhYRVO','279504QeIugN','apply','606851jbITVZ','(((.+)+)+)+$','42sYuXpS'];a106c=function(){return i;};return a106c();}
1
+ (function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x1e5))/0x1*(-parseInt(f(0x1ef))/0x2)+parseInt(f(0x1e6))/0x3*(-parseInt(f(0x1ec))/0x4)+-parseInt(f(0x1e3))/0x5+-parseInt(f(0x1eb))/0x6+parseInt(f(0x1ea))/0x7*(-parseInt(f(0x1ed))/0x8)+parseInt(f(0x1e9))/0x9*(-parseInt(f(0x1ee))/0xa)+parseInt(f(0x1e7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xc4d27));function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x1e2;var f=c[d];return f;},a106d(a,b);}var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x1e2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()[h(0x1f0)]('(((.+)+)+)+$')[h(0x1e8)]()[h(0x1e4)](a106a)[h(0x1f0)]('(((.+)+)+)+$');});a106a();import'./kit.js';import'./mui/_index.js';function a106c(){var i=['2084NQTeld','8IHMxmg','90150HKfPfB','2ZoLdAx','search','apply','5103690mIcOnI','constructor','834580waKWHv','1719UUZHLq','39423615YGXlnZ','toString','297tUItHP','8555428tmwxWb','4640352fYqxlO'];a106c=function(){return i;};return a106c();}import'./esri/_index.js';
@@ -1 +1 @@
1
- (function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0xa4))/0x1+-parseInt(f(0xa6))/0x2*(-parseInt(f(0xa0))/0x3)+-parseInt(f(0xa2))/0x4+parseInt(f(0x9f))/0x5*(parseInt(f(0xab))/0x6)+parseInt(f(0xa3))/0x7+parseInt(f(0xa8))/0x8*(parseInt(f(0xa7))/0x9)+-parseInt(f(0xa5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x36285));function a107c(){var i=['28089CUGHBg','584dxjBlh','apply','(((.+)+)+)+$','6cmtcjp','900635fkRBmQ','119259yTafJx','search','596904pfRJVt','1238622ODAZad','137851Ugvnan','5902200EpYQAB','12QWINky'];a107c=function(){return i;};return a107c();}var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a['toString']()['search'](h(0xaa))['toString']()['constructor'](a107a)[h(0xa1)](h(0xaa));});a107a();function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x9f;var f=c[d];return f;},a107d(a,b);}import'./esri.generator.js';import'./map.esri.gen.js';
1
+ function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x152;var f=c[d];return f;},a107d(a,b);}(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0x15d))/0x1*(-parseInt(f(0x15c))/0x2)+-parseInt(f(0x15e))/0x3*(parseInt(f(0x158))/0x4)+-parseInt(f(0x160))/0x5*(-parseInt(f(0x154))/0x6)+parseInt(f(0x156))/0x7*(parseInt(f(0x157))/0x8)+-parseInt(f(0x153))/0x9+-parseInt(f(0x161))/0xa+-parseInt(f(0x155))/0xb*(-parseInt(f(0x15a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xc9e55));function a107c(){var i=['8033570NwSbWS','search','toString','1914948hKLEJH','714GRzlXn','11aPddTD','371YtYbhR','10232DJRORH','4794360VTaMfx','apply','38935956snkUtt','constructor','8wEHJaU','169377Soiprx','3GMuPDS','(((.+)+)+)+$','17090mtLJpZ'];a107c=function(){return i;};return a107c();}var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0x152)]()[h(0x162)](h(0x15f))['toString']()[h(0x15b)](a107a)[h(0x162)](h(0x15f));});a107a();import'./esri.generator.js';import'./map.esri.gen.js';
@@ -1 +1 @@
1
- const a108i=a108d;function a108c(){const k=['20457yhrzob','52XmNhfE','9479561lJMrmH','apply','create','constructor','19000iAPlyx','905220etYjwK','5383968dyAPMu','7516650jwaawy','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>','toString','3486510EPaxfm','(((.+)+)+)+$','search','\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','NIE','8221bMHBzw','maka\x20g:kit:e'];a108c=function(){return k;};return a108c();}(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0xf5))/0x1*(-parseInt(f(0xf8))/0x2)+-parseInt(f(0xf0))/0x3+-parseInt(f(0xec))/0x4+parseInt(f(0xeb))/0x5+-parseInt(f(0xed))/0x6+-parseInt(f(0xf9))/0x7+-parseInt(f(0xfd))/0x8*(-parseInt(f(0xf7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xa5875));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a['toString']()['search'](h(0xf1))[h(0xef)]()[h(0xfc)](a108a)[h(0xf2)]('(((.+)+)+)+$');});a108a();import{Generator}from'../../../generator.js';import a108e from'../kit.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xeb;let f=c[d];return f;},a108d(a,b);}const EsriGen=Generator[a108i(0xfb)]({'name':'esri','aliases':['e'],'usage':a108i(0xee),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20Esri\x20Maps','validOpts':[''],'isPro':!![],'examples':[a108i(0xf6)],'description':a108i(0xf3)},async function(){const j=a108i;throw j(0xf4);},a108e);export default EsriGen;
1
+ function a108c(){const j=['apply','65891APeLKJ','search','1781442aAXgrY','9093492cIFChd','Starting\x20point\x20for\x20generating\x20Esri\x20Maps','55KdkVha','4103824tGGGgJ','1285179zkmIHd','383164vGpsGs','(((.+)+)+)+$','constructor','maka\x20g:kit:e','esri','toString','\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','2812586AvVoqk','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:<kit-name>'];a108c=function(){return j;};return a108c();}const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x178))/0x1+parseInt(f(0x17a))/0x2+parseInt(f(0x17f))/0x3+-parseInt(f(0x180))/0x4*(parseInt(f(0x17d))/0x5)+parseInt(f(0x17b))/0x6+-parseInt(f(0x175))/0x7+-parseInt(f(0x17e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xc3648));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x173)]()[h(0x179)](h(0x181))[h(0x173)]()[h(0x182)](a108a)[h(0x179)]('(((.+)+)+)+$');});a108a();import{Generator}from'../../../generator.js';import a108e from'../kit.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x172;let f=c[d];return f;},a108d(a,b);}const EsriGen=Generator['create']({'name':a108i(0x172),'aliases':['e'],'usage':a108i(0x176),'noNeedResource':!![],'shortDesc':a108i(0x17c),'validOpts':[''],'isPro':!![],'examples':[a108i(0x183)],'description':a108i(0x174)},async function(){throw'NIE';},a108e);export default EsriGen;
@@ -1 +1 @@
1
- const a109s=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d=parseInt(p(0x126))/0x1*(-parseInt(p(0x123))/0x2)+parseInt(p(0x12a))/0x3+parseInt(p(0x11c))/0x4+-parseInt(p(0x125))/0x5*(-parseInt(p(0x131))/0x6)+parseInt(p(0x11a))/0x7+-parseInt(p(0x10d))/0x8*(-parseInt(p(0x120))/0x9)+-parseInt(p(0x12c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xe27e7));function a109c(){const v=['engines','page','<div\x20id=\x22map-component\x22>','apply','search','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','create','constructor','basic-map','8UylRql','kit/esri/map/','withValue','findProjectDirectory','(((.+)+)+)+$','@esri/react-arcgis','baseDir','exit','replaceAll','REACT','toString','split','fsi','2522282NAkcUJ','pathFromApp','555352MQHera','error','checkNpmPackage','</div>','7644501NAnTio','injectTemplateModule','/imports/ui/hooks','2474OyxVqF','Generate\x20an\x20Esri\x20map\x20component','95LbeGuB','367WsIHQP','appName','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','true','2693034PFSifr','.js','15006340dnunXd','injectIntoFile','injectImport','/imports/ui/','react','200874jtDnTf','getMakaProjectConfig'];a109c=function(){return v;};return a109c();}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a109d;if(c){const e=c[q(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const r=a109d;return a109a[r(0x117)]()['search'](r(0x111))[r(0x117)]()[r(0x10b)](a109a)[r(0x137)](r(0x111));});a109a();import{Generator}from'../../../generator.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x109;let f=c[d];return f;},a109d(a,b);}import{Log}from'../../../tools/log/log.class.js';import a109e from'./esri.generator.js';import a109f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a109s(0x10a)]({'name':'map','aliases':['m'],'usage':a109s(0x109),'shortDesc':a109s(0x124),'validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a109s(0x116)],'ssr':SsrEngines['FALSE']},'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 t=a109s;try{Log['bright']('Generating\x20a\x20map\x20component');const c=t(0x10c);await this[t(0x119)][t(0x11e)]([t(0x112),'esri-loader'],{'shouldInstall':!![]});const d=this[t(0x119)][t(0x110)](),f=this[t(0x119)][t(0x132)](),g=f[t(0x133)]['ssr']===t(0x129),h=await a109f['processAndRunGenerator'](t(0x134),['map'],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0x127)])[t(0x115)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0x113)]?t(0x12f)+b[t(0x113)]:t(0x122),k=this[t(0x119)]['pathFromApp']({'pathParts':[j,b['dir'],paramCase(c),paramCase(c)]});this['fsi'][t(0x10f)](f,async()=>{const u=t;this[u(0x119)]['template']({'srcPath':u(0x10e)+c+u(0x12b),'destPath':k+'.js','framework':u(0x130),'context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b['dir']+'/'+c+'/'+c;await this[t(0x119)][t(0x121)](c,f,l);const m=h[t(0x118)]('/'),n=this[t(0x119)][t(0x11b)]({'pathParts':m});await this['fsi'][t(0x12e)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':'/imports/startup/client/templates','isNamedExport':!![]}),await this[t(0x119)][t(0x12d)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0x128),'begin':['<div\x20id=\x22map-hook\x22>',t(0x135)],'end':[t(0x11f)],'replace':!![]});}catch(o){Log[t(0x11d)](o),process[t(0x114)](0x1);}},a109e);
1
+ function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xae;let f=c[d];return f;},a109d(a,b);}const a109s=a109d;(function(a,b){const p=a109d,c=a();while(!![]){try{const d=parseInt(p(0xd0))/0x1*(-parseInt(p(0xca))/0x2)+parseInt(p(0xaf))/0x3+-parseInt(p(0xc3))/0x4+-parseInt(p(0xd8))/0x5+-parseInt(p(0xbd))/0x6*(parseInt(p(0xd3))/0x7)+-parseInt(p(0xb6))/0x8+parseInt(p(0xc8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xced11));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a109d;if(c){const e=c[q(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const r=a109d;return a109a['toString']()[r(0xcf)](r(0xc7))[r(0xb5)]()[r(0xc9)](a109a)[r(0xcf)]('(((.+)+)+)+$');});a109a();function a109c(){const v=['esri-loader','5425MvitQK','error','findProjectDirectory','baseDir','processAndRunGenerator','2388800IfREsT','/imports/ui/hooks','withValue','apply','checkNpmPackage','\x20webMapId=\x228df8e6f7d4c34f56a1cf8b1473e57f6a\x22\x20/>\x0a','FALSE','create','REACT','getMakaProjectConfig','1143264FkwtDt','</div>','dir','/imports/startup/lib/templates','<div\x20id=\x22map-component\x22>','maka\x20{generate,\x20g}:{kit,\x20k}:{esri,\x20e}:{map,\x20m}','toString','6956808WOPByr','pathFromApp','\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','appName','/imports/ui/','/imports/startup/client/templates','injectImport','10434bEEVXH','injectTemplateModule','@esri/react-arcgis','page','map','exit','4444832zHTOgu','true','<div\x20id=\x22map-hook\x22>','replaceAll','(((.+)+)+)+$','51116625dTJxlJ','constructor','2ViBSac','fsi','.js','bright','ssr','search','1407298zdlYeU','injectIntoFile'];a109c=function(){return v;};return a109c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a109e from'./esri.generator.js';import a109f from'../../../generators/maka.gen.js';import{paramCase,headerCase,pascalCase}from'change-case';import{ClientEngines,SsrEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a109s(0xdf)]({'name':a109s(0xc1),'aliases':['m'],'usage':a109s(0xb4),'shortDesc':'Generate\x20an\x20Esri\x20map\x20component','validOpts':[''],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'client':ClientEngines[a109s(0xe0)],'ssr':SsrEngines[a109s(0xde)]},'description':a109s(0xb8)},async function(a,b){const t=a109s;try{Log[t(0xcd)]('Generating\x20a\x20map\x20component');const c='basic-map';await this[t(0xcb)][t(0xdc)]([t(0xbf),t(0xd2)],{'shouldInstall':!![]});const d=this[t(0xcb)][t(0xd5)](),f=this['fsi'][t(0xae)](),g=f['engines'][t(0xce)]===t(0xc4),h=await a109f[t(0xd7)](t(0xc0),[t(0xc1)],{'cwd':d,'config':f}),i={'name':headerCase(f[t(0xb9)])[t(0xc6)]('-','\x20'),'componentName':pascalCase(c)},j=b[t(0xd6)]?t(0xba)+b['baseDir']:t(0xd9),k=this['fsi'][t(0xb7)]({'pathParts':[j,b[t(0xb1)],paramCase(c),paramCase(c)]});this[t(0xcb)][t(0xda)](f,async()=>{const u=t;this['fsi']['template']({'srcPath':'kit/esri/map/'+c+u(0xcc),'destPath':k+u(0xcc),'framework':'react','context':i,'config':f,'force':![],'ignore':![]});});const l=''+j+b[t(0xb1)]+'/'+c+'/'+c;await this[t(0xcb)][t(0xbe)](c,f,l);const m=h['split']('/'),n=this[t(0xcb)]['pathFromApp']({'pathParts':m});await this['fsi'][t(0xbc)]({'filePath':n,'importName':pascalCase(c),'modulePath':g?t(0xb2):t(0xbb),'isNamedExport':!![]}),await this[t(0xcb)][t(0xd1)]({'filePath':n,'content':'\x0a<'+pascalCase(c)+t(0xdd),'begin':[t(0xc5),t(0xb3)],'end':[t(0xb0)],'replace':!![]});}catch(o){Log[t(0xd4)](o),process[t(0xc2)](0x1);}},a109e);
@@ -1 +1 @@
1
- const a110h=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0x199))/0x1+-parseInt(f(0x18d))/0x2+-parseInt(f(0x197))/0x3*(-parseInt(f(0x18c))/0x4)+parseInt(f(0x191))/0x5+parseInt(f(0x196))/0x6+-parseInt(f(0x198))/0x7*(parseInt(f(0x195))/0x8)+-parseInt(f(0x189))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xbc24d));function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x189;let f=c[d];return f;},a110d(a,b);}const a110b=(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;};}()),a110a=a110b(this,function(){const g=a110d;return a110a[g(0x193)]()[g(0x190)]('(((.+)+)+)+$')[g(0x193)]()['constructor'](a110a)['search'](g(0x18f));});a110a();import{Generator}from'../../generator.js';const KitGen=Generator[a110h(0x192)]({'name':a110h(0x18a),'aliases':['k'],'usage':a110h(0x18e),'shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a110h(0x18b),a110h(0x194)]},async function(){});function a110c(){const i=['24OcThcV','7101066GYmIuq','6489sYkvmF','197463HmeNTo','579191yWEYZg','12240522bAvVDl','kit','maka\x20g:kit','660qaztLm','2481444PCdAbi','maka\x20{generate,\x20g}:{kit}\x20<name>','(((.+)+)+)+$','search','6682235OqqTrK','create','toString','maka\x20g:k'];a110c=function(){return i;};return a110c();}export default KitGen;
1
+ const a110i=a110d;function a110c(){const j=['2248FkEmUw','maka\x20g:k','1221pbUhHe','(((.+)+)+)+$','88TSXPHE','5945052RAjtKi','50452hYNDqV','122775Htgunn','7671797DCHGDz','maka\x20{generate,\x20g}:{kit}\x20<name>','create','2317050WFeOZI','toString','maka\x20g:kit','138FBxofT','constructor','8dWiypV','apply','1309990AQuciF','search','15zzXcIF','kit'];a110c=function(){return j;};return a110c();}function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x147;let f=c[d];return f;},a110d(a,b);}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x15c))/0x1*(parseInt(f(0x14e))/0x2)+-parseInt(f(0x14a))/0x3*(parseInt(f(0x148))/0x4)+parseInt(f(0x14f))/0x5*(-parseInt(f(0x156))/0x6)+parseInt(f(0x150))/0x7+-parseInt(f(0x158))/0x8*(-parseInt(f(0x153))/0x9)+-parseInt(f(0x15a))/0xa*(-parseInt(f(0x14c))/0xb)+-parseInt(f(0x14d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xb3397));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x154)]()[h(0x15b)](h(0x14b))['toString']()[h(0x157)](a110a)['search'](h(0x14b));});a110a();import{Generator}from'../../generator.js';const KitGen=Generator[a110i(0x152)]({'name':a110i(0x147),'aliases':['k'],'usage':a110i(0x151),'shortDesc':'Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','minArgLength':0x1,'isPro':!![],'validOpts':[],'noNeedResource':!![],'examples':[a110i(0x155),a110i(0x149)]},async function(){});export default KitGen;
@@ -1 +1 @@
1
- (function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x165))/0x1+parseInt(f(0x166))/0x2+parseInt(f(0x16d))/0x3*(parseInt(f(0x168))/0x4)+parseInt(f(0x174))/0x5*(parseInt(f(0x172))/0x6)+-parseInt(f(0x16a))/0x7*(parseInt(f(0x167))/0x8)+parseInt(f(0x16e))/0x9+parseInt(f(0x169))/0xa*(-parseInt(f(0x171))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x6865a));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x173)]()[h(0x16b)]('(((.+)+)+)+$')[h(0x173)]()[h(0x16c)](a111a)[h(0x16b)](h(0x16f));});function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x165;var f=c[d];return f;},a111d(a,b);}function a111c(){var i=['3QPOXrf','1406421nwyVOf','(((.+)+)+)+$','apply','11dIyNmp','186ngdllt','toString','28305FASgSv','409842JsGlQe','700076ZDvDMy','29472ThZmiz','2871548ZYSDNI','685770KEnmvz','938JgrgBp','search','constructor'];a111c=function(){return i;};return a111c();}a111a();import'./mui.generator.js';import'./frame.mui.gen.js';
1
+ (function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x172))/0x1+parseInt(f(0x16b))/0x2*(parseInt(f(0x16e))/0x3)+-parseInt(f(0x170))/0x4+parseInt(f(0x167))/0x5*(parseInt(f(0x169))/0x6)+-parseInt(f(0x16d))/0x7*(-parseInt(f(0x16f))/0x8)+parseInt(f(0x173))/0x9+-parseInt(f(0x168))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xbaa36));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x16c)]()[h(0x16a)](h(0x165))[h(0x16c)]()[h(0x171)](a111a)[h(0x16a)](h(0x165));});a111a();import'./mui.generator.js';function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x165;var f=c[d];return f;},a111d(a,b);}import'./frame.mui.gen.js';function a111c(){var i=['291136dneqoa','258908sXaCHA','constructor','894874JJUJFY','6025203SmSFbL','(((.+)+)+)+$','apply','1540445nyvqdm','18830080rBnLCD','6pbfqwt','search','43518qBHlsZ','toString','217LBZFyD','207TNeaat'];a111c=function(){return i;};return a111c();}
@@ -1 +1 @@
1
- const a112A=a112d;function a112c(){const D=['{props.children}','getDirectories','No\x20layouts\x20selected','template','\x20/>\x0a','toString','104qjgfOP','tsx','fsi','8diiDQZ','<div\x20id=\x22','injectTemplateModule','length','1148242TrJSGo','error','pathFromApp','maka\x20g:k:m:f','join','MATERIAL','layouts','getFiles','appName','{\x20this.props.children\x20}','getMakaProjectConfig','create','constructor','findAppDirectory','react','baseDir','basic-drawer','checkMeteorPackage','injectImport','frame','options','/imports/startup/lib/templates','maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','apply','maka\x20generate:kit:mui:frame','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','true','{\x20props.children\x20}','tests','dir','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','684fnNSxu','/imports/startup/client/templates','engines','basic-app-bar','imports','63427CmDZbs','-hook\x22>','-component\x22>','ssr','replaceAll','REACT','(((.+)+)+)+$','51931XmTqGg','.js','jsx','session','205UQNcqU','10320rdgjiL','app-tests','45RCAXPO','364847BnSUVD','/imports/ui/hooks','checkbox','withValue','search','kit/mui/frame/drawers/','1320117mzMOMH','82884noDZqU','{this.props.children}'];a112c=function(){return D;};return a112c();}(function(a,b){const x=a112d,c=a();while(!![]){try{const d=-parseInt(x(0xfc))/0x1+-parseInt(x(0xd8))/0x2+-parseInt(x(0xc8))/0x3*(-parseInt(x(0xd4))/0x4)+-parseInt(x(0xbe))/0x5*(parseInt(x(0xc9))/0x6)+-parseInt(x(0xc2))/0x7*(-parseInt(x(0xd1))/0x8)+-parseInt(x(0xc1))/0x9*(parseInt(x(0xbf))/0xa)+parseInt(x(0x103))/0xb*(parseInt(x(0xf7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x96cc2));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a112d;if(c){const e=c[y(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const z=a112d;return a112a['toString']()[z(0xc6)](z(0x102))[z(0xd0)]()[z(0xe4)](a112a)[z(0xc6)](z(0x102));});a112a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xbd;let f=c[d];return f;},a112d(a,b);}import a112e from'path';import a112f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';Generator[a112A(0xe3)]({'name':a112A(0xeb),'aliases':['f'],'usage':a112A(0xee),'shortDesc':'Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','validOpts':[a112A(0xde)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines[a112A(0xdd)],'client':ClientEngines[a112A(0x101)]},'examples':[a112A(0xf0),a112A(0xdb)],'description':a112A(0xf1)},async function(a,b){const B=a112A;try{const c=B(0xfa),d=B(0xe8),f=this[B(0xd3)][B(0xe2)](),g=f[B(0xf9)][B(0xff)]===B(0xf2);await this[B(0xd3)][B(0xe9)](B(0xbd),{'shouldInstall':!![]});const h=this[B(0xd3)][B(0xe5)](),i=a112e[B(0xdc)](h,B(0xfb),'ui','layouts'),j=this[B(0xd3)][B(0xcc)](i),k=await Actions[B(0xec)]({'type':B(0xc4),'name':'layouts','message':B(0xf6),'choices':j});if(k[B(0xde)][B(0xd7)]===0x0){Log[B(0xd9)](B(0xcd));return;}const l=b[B(0xe7)]?'/imports/ui/'+b[B(0xe7)]:B(0xc3),m=this[B(0xd3)][B(0xda)]({'pathParts':[l,b['dir'],paramCase(c),paramCase(c)]}),n=this[B(0xd3)]['pathFromApp']({'pathParts':[l,b['dir'],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0xe0)])[B(0x100)]('-','\x20')};await this[B(0xd3)][B(0xc5)](f,async()=>{const C=B;await this[C(0xd3)]['template']({'srcPath':'kit/mui/frame/app-bars/'+c+C(0x104),'destPath':m+C(0x104),'framework':C(0xe6),'context':o,'config':f,'force':![],'ignore':![]}),await this[C(0xd3)][C(0xce)]({'srcPath':C(0xc7)+d+C(0x104),'destPath':n+C(0x104),'framework':C(0xe6),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b['dir']+'/'+c+'/'+c;await this[B(0xd3)][B(0xd6)](c,f,p);const q=''+l+b[B(0xf5)]+'/'+d+'/'+d;await this[B(0xd3)][B(0xd6)](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0xd3)][B(0xdf)](a112e[B(0xdc)](i,s),{'extensions':[B(0x105),B(0xd2)],'omit':[B(0xc0),B(0xf4),'test']});for(const u of t){const v=a112e[B(0xdc)](i,s,u);await this[B(0xd3)][B(0xea)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?B(0xed):'/imports/startup/client/templates','isNamedExport':!![]}),await this[B(0xd3)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(c)+'\x20/>\x0a','begin':[B(0xd5)+s+B(0xfe),'<div\x20id=\x22'+s+B(0xfd)],'end':[B(0xca),B(0xe1),B(0xcb),'{\x20props.children\x20}']}),await this[B(0xd3)]['injectImport']({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0xed):B(0xf8),'isNamedExport':!![]}),await this[B(0xd3)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(d)+B(0xcf),'begin':[B(0xd5)+s+B(0xfe),B(0xd5)+s+B(0xfd)],'end':[B(0xca),B(0xe1),'{props.children}',B(0xf3)]});}}}catch(w){Log[B(0xd9)](w);}},a112f);
1
+ const a112A=a112d;function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xd6;let f=c[d];return f;},a112d(a,b);}(function(a,b){const x=a112d,c=a();while(!![]){try{const d=-parseInt(x(0xfc))/0x1*(-parseInt(x(0xf8))/0x2)+-parseInt(x(0xf1))/0x3+parseInt(x(0xe6))/0x4*(-parseInt(x(0x104))/0x5)+-parseInt(x(0xf2))/0x6+-parseInt(x(0x106))/0x7+parseInt(x(0xd7))/0x8+parseInt(x(0xe0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x3ad1d));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a112d;if(c){const e=c[y(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const z=a112d;return a112a[z(0xe1)]()['search'](z(0xd8))[z(0xe1)]()['constructor'](a112a)['search'](z(0xd8));});a112a();import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import a112e from'path';import a112f from'./mui.generator.js';import{paramCase,pascalCase,headerCase}from'change-case';import{ThemeEngines,ClientEngines}from'../../../tools/fsi/fsi.interfaces.js';function a112c(){const D=['\x20/>\x0a','injectTemplateModule','tsx','{props.children}','injectIntoFile','2323945gywoCn','engines','2584981rAcUxv','session','Generate\x20a\x20standard\x20MUI\x20frame\x20that\x20injects\x20into\x20a\x20layout','layouts','appName','dir','fsi','findAppDirectory','react','basic-drawer','Which\x20layouts\x20do\x20you\x20wish\x20to\x20update?','baseDir','checkbox','withValue','-component\x22>','1624200sRwYxX','(((.+)+)+)+$','jsx','{\x20props.children\x20}','maka\x20g:k:m:f','/imports/startup/client/templates','app-tests','template','kit/mui/frame/drawers/','7742286GHwHvR','toString','apply','basic-app-bar','No\x20layouts\x20selected','maka\x20generate:kit:mui:frame','4AXYbjE','kit/mui/frame/app-bars/','frame','true','/imports/ui/hooks','{this.props.children}','REACT','\x0a\x20\x20\x20\x20Generates\x20a\x20standard\x20MUI\x20fram\x20that\x20contains\x20a\x20basic\x20app\x20bar\x20and\x20a\x20drawer.\x0a\x20\x20','error','create','checkMeteorPackage','114618SqBmec','219450eohbMf','join','.js','getDirectories','/imports/startup/lib/templates','<div\x20id=\x22','2746VEeXmd','{\x20this.props.children\x20}','/imports/ui/','injectImport','63bKeKcE','-hook\x22>','replaceAll'];a112c=function(){return D;};return a112c();}Generator[a112A(0xef)]({'name':a112A(0xe8),'aliases':['f'],'usage':'maka\x20{generate,\x20g}:{kit}:{mui,\x20m}:{frame,\x20f','shortDesc':a112A(0x108),'validOpts':[a112A(0x109)],'isPro':!![],'mustBeInMakaProject':!![],'noNeedResource':!![],'requiredEngines':{'theme':ThemeEngines['MATERIAL'],'client':ClientEngines[a112A(0xec)]},'examples':[a112A(0xe5),a112A(0xdb)],'description':a112A(0xed)},async function(a,b){const B=a112A;try{const c=B(0xe3),d=B(0x10f),f=this[B(0x10c)]['getMakaProjectConfig'](),g=f[B(0x105)]['ssr']===B(0xe9);await this[B(0x10c)][B(0xf0)](B(0x107),{'shouldInstall':!![]});const h=this['fsi'][B(0x10d)](),i=a112e[B(0xf3)](h,'imports','ui','layouts'),j=this['fsi'][B(0xf5)](i),k=await Actions['options']({'type':B(0x112),'name':'layouts','message':B(0x110),'choices':j});if(k[B(0x109)]['length']===0x0){Log[B(0xee)](B(0xe4));return;}const l=b[B(0x111)]?B(0xfa)+b['baseDir']:B(0xea),m=this['fsi']['pathFromApp']({'pathParts':[l,b[B(0x10b)],paramCase(c),paramCase(c)]}),n=this[B(0x10c)]['pathFromApp']({'pathParts':[l,b[B(0x10b)],paramCase(d),paramCase(d)]}),o={'name':headerCase(f[B(0x10a)])[B(0xfe)]('-','\x20')};await this[B(0x10c)][B(0x113)](f,async()=>{const C=B;await this[C(0x10c)][C(0xde)]({'srcPath':C(0xe7)+c+'.js','destPath':m+C(0xf4),'framework':'react','context':o,'config':f,'force':![],'ignore':![]}),await this[C(0x10c)][C(0xde)]({'srcPath':C(0xdf)+d+C(0xf4),'destPath':n+'.js','framework':C(0x10e),'context':o,'config':f,'force':![],'ignore':![]});});const p=''+l+b[B(0x10b)]+'/'+c+'/'+c;await this[B(0x10c)][B(0x100)](c,f,p);const q=''+l+b['dir']+'/'+d+'/'+d;await this['fsi']['injectTemplateModule'](d,f,q);const {layouts:r}=k;for(const s of r){const t=this[B(0x10c)]['getFiles'](a112e['join'](i,s),{'extensions':[B(0xd9),B(0x101)],'omit':[B(0xdd),'tests','test']});for(const u of t){const v=a112e[B(0xf3)](i,s,u);await this[B(0x10c)][B(0xfb)]({'filePath':v,'importName':pascalCase(c),'modulePath':g?'/imports/startup/lib/templates':B(0xdc),'isNamedExport':!![]}),await this['fsi'][B(0x103)]({'filePath':v,'content':'<'+pascalCase(c)+'\x20/>\x0a','begin':['<div\x20id=\x22'+s+B(0xd6),B(0xf7)+s+B(0xfd)],'end':[B(0xeb),B(0xf9),B(0x102),B(0xda)]}),await this[B(0x10c)][B(0xfb)]({'filePath':v,'importName':pascalCase(d),'modulePath':g?B(0xf6):B(0xdc),'isNamedExport':!![]}),await this[B(0x10c)]['injectIntoFile']({'filePath':v,'content':'<'+pascalCase(d)+B(0xff),'begin':[B(0xf7)+s+B(0xd6),B(0xf7)+s+B(0xfd)],'end':[B(0xeb),B(0xf9),B(0x102),B(0xda)]});}}}catch(w){Log[B(0xee)](w);}},a112f);
@@ -1 +1 @@
1
- const a113i=a113d;function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xb7;let f=c[d];return f;},a113d(a,b);}(function(a,b){const f=a113d,c=a();while(!![]){try{const d=-parseInt(f(0xc8))/0x1+-parseInt(f(0xc6))/0x2*(-parseInt(f(0xba))/0x3)+parseInt(f(0xc9))/0x4*(-parseInt(f(0xc0))/0x5)+parseInt(f(0xb7))/0x6+-parseInt(f(0xc1))/0x7+-parseInt(f(0xc4))/0x8+-parseInt(f(0xbd))/0x9*(-parseInt(f(0xb8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x7ac6c));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a['toString']()[h(0xc3)](h(0xbc))[h(0xbb)]()[h(0xc5)](a113a)['search'](h(0xbc));});a113a();import{Generator}from'../../../generator.js';import a113e from'../kit.js';const MuiGen=Generator[a113i(0xc7)]({'name':'mui','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a113i(0xbf),'validOpts':[''],'isPro':!![],'examples':[a113i(0xbe)]},async function(){const j=a113i;throw j(0xc2);},a113e);function a113c(){const k=['(((.+)+)+)+$','18evAIZS','maka\x20g:kit:m','Material-UI\x20Kit','490VLEGJw','2848706KwSuCc','NIE','search','2829240OJxyda','constructor','667688tVySUU','create','851817ZsOYYk','31852jiThEE','3170580wbkoOE','8497890Mrbifl','apply','6NDSLut','toString'];a113c=function(){return k;};return a113c();}export default MuiGen;
1
+ const a113i=a113d;function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x10b;let f=c[d];return f;},a113d(a,b);}(function(a,b){const f=a113d,c=a();while(!![]){try{const d=-parseInt(f(0x11d))/0x1*(parseInt(f(0x11e))/0x2)+parseInt(f(0x11c))/0x3*(parseInt(f(0x118))/0x4)+parseInt(f(0x117))/0x5*(-parseInt(f(0x115))/0x6)+-parseInt(f(0x10e))/0x7*(-parseInt(f(0x111))/0x8)+parseInt(f(0x11a))/0x9*(parseInt(f(0x112))/0xa)+-parseInt(f(0x10b))/0xb*(-parseInt(f(0x10c))/0xc)+-parseInt(f(0x10f))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x2326c));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a[h(0x11b)]()[h(0x116)](h(0x113))['toString']()[h(0x110)](a113a)['search'](h(0x113));});a113a();import{Generator}from'../../../generator.js';import a113e from'../kit.js';function a113c(){const k=['constructor','1768HFqcSl','10lDoLTq','(((.+)+)+)+$','apply','138XHuFsX','search','30695dXfOKN','24DoOHfq','NIE','508509yqThax','toString','86511HdArOe','2pvOckY','256678PioudM','55lNROaV','218172rbyhSf','Material-UI\x20Kit','8981cgsIgO','807508pVuJNx'];a113c=function(){return k;};return a113c();}const MuiGen=Generator['create']({'name':'mui','aliases':['m'],'usage':'maka\x20{generate,\x20g}:{kit,\x20k}:{mui,\x20m}\x20<kit-name>','noNeedResource':!![],'shortDesc':a113i(0x10d),'validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:m']},async function(){const j=a113i;throw j(0x119);},a113e);export default MuiGen;
@@ -1 +1 @@
1
- const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0x13a))/0x1*(-parseInt(l(0x13f))/0x2)+-parseInt(l(0x147))/0x3+-parseInt(l(0x127))/0x4*(parseInt(l(0x139))/0x5)+-parseInt(l(0x132))/0x6+-parseInt(l(0x122))/0x7+parseInt(l(0x133))/0x8*(-parseInt(l(0x125))/0x9)+parseInt(l(0x141))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x4237a));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0x130)]()[n(0x140)](n(0x138))['toString']()[n(0x14b)](a114a)['search'](n(0x138));});a114a();function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x11a;let f=c[d];return f;},a114d(a,b);}import a114e 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'];function a114c(){const r=['assign','18XpwYQo','fileName','435796tVUefV','dir','findAppDirectory','resourceName','template','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','engines','/imports/ui/layouts','.js','toString','className','277806MWCzlE','754976tgevcu','hook/hook.js','client','import\x20\x27./','Scaffolding\x20for\x20a\x20React\x20Layout.','(((.+)+)+)+$','20zNhiyf','313387djLHGL','warn','test','getMakaProjectConfig','checkNpmPackage','2zVhtTK','search','17428750cDDWTg','apply','setTemplate','split','installNpmPackage','includes','875223ltQDFJ','.css','injectTemplateModule','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','constructor','create','pathFromApp','template/template.css','string','withHook','component/component.js','withTranslations','ramda','api','true','fsi','none','css','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','withValue','react','.app-tests.js','1369760OwjQhE','features'];a114c=function(){return r;};return a114c();}Generator[a114o(0x14c)]({'name':'layout','aliases':aliases,'usage':a114o(0x11e),'shortDesc':a114o(0x137),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8','maka\x20g:l\x20web/safari']},async function(a,b){const p=a114o,c=p(0x12e),d=this[p(0x11b)][p(0x129)](),e=this[p(0x11b)][p(0x14d)]({'pathParts':[c,b[p(0x128)],paramCase(b['resourceName']),paramCase(b[p(0x12a)])]}),f=this['fsi'][p(0x13d)]();await this['fsi'][p(0x11f)](f,async()=>{const q=p;typeof f[q(0x12b)][q(0x13c)]==='string'&&(f[q(0x12b)][q(0x13c)]=f[q(0x12b)][q(0x13c)]===q(0x11a)?!![]:![],this[q(0x11b)][q(0x143)](q(0x13c),f[q(0x12b)]['test']));typeof f['template'][q(0x11d)]===q(0x14f)&&(f['template'][q(0x11d)]=f[q(0x12b)][q(0x11d)]===q(0x11a)?!![]:![],this['fsi'][q(0x143)](q(0x11d),f[q(0x12b)][q(0x11d)]));typeof f[q(0x12b)]['js']===q(0x14f)&&(f[q(0x12b)]['js']=f[q(0x12b)]['js']===q(0x11a)?!![]:![],this['fsi'][q(0x143)]('js',f[q(0x12b)]['js']));!f[q(0x123)]&&(f[q(0x123)]={});const g=b['_']?b['_'][0x0][q(0x144)](':')[0x1]:![],h=b['_']&&aliases[q(0x146)](g);h&&!this[q(0x13e)](q(0x153))&&(Log[q(0x13b)](q(0x14a)),this[q(0x11b)][q(0x145)]('ramda',{'cwd':d}));if(h&&!this['checkNpmPackage'](q(0x120))){Log['warn'](q(0x12c));return;}const i={'name':pascalCase(b[q(0x12a)]),'myPath':a114e['relative'](this[q(0x11b)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[q(0x12a)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x12a)]),'fileName':paramCase(b[q(0x12a)]),'graphql':f['engines']['graphql'],'features':f[q(0x123)],'client':f[q(0x12d)][q(0x135)],'api':f['engines'][q(0x154)],'ssr':f['engines']['ssr'],'test':f['engines'][q(0x13c)],'theme':f[q(0x12d)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f[q(0x123)][q(0x152)]};f[q(0x123)]?.['withHooks']||b[q(0x150)]?await this[q(0x11b)]['template']({'srcPath':q(0x134),'destPath':e+q(0x12f),'framework':q(0x120),'context':i,'config':f}):await this[q(0x11b)][q(0x12b)]({'srcPath':q(0x151),'destPath':e+q(0x12f),'framework':'react','context':i,'config':f});f['engines'][q(0x13c)]!==q(0x11c)&&await this[q(0x11b)][q(0x12b)]({'srcPath':'test/test.js','destPath':e+q(0x121),'framework':'react','context':i,'config':f});f[q(0x12b)][q(0x11d)]&&(await this[q(0x11b)][q(0x12b)]({'srcPath':q(0x14e),'destPath':e+q(0x148),'context':Object[q(0x124)]({},i,{'className':paramCase(b[q(0x12a)])}),'config':f}),await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':q(0x136)+i[q(0x126)]+'.'+f[q(0x12d)][q(0x11d)]+'\x27;'}));const j=b[q(0x128)]?'/'+b[q(0x128)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[q(0x126)];await this['fsi'][q(0x149)](i[q(0x131)],f,k);});});
1
+ const a114o=a114d;(function(a,b){const l=a114d,c=a();while(!![]){try{const d=parseInt(l(0x1a7))/0x1+parseInt(l(0x1ab))/0x2+-parseInt(l(0x1c3))/0x3*(-parseInt(l(0x1c5))/0x4)+parseInt(l(0x1a3))/0x5+-parseInt(l(0x1cb))/0x6*(parseInt(l(0x19d))/0x7)+-parseInt(l(0x1b5))/0x8+-parseInt(l(0x1bc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xc458f));function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x193;let f=c[d];return f;},a114d(a,b);}function a114c(){const r=['css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','ramda','search','pathFromProject','1723203MucHdF','checkNpmPackage','8WKRneV','setTemplate','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','injectTemplateModule','pathFromApp','create','6jPzpmt','fsi','api','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','features','engines','resourceName','template/template.css','(((.+)+)+)+$','withValue','maka\x20g:layout\x20mobile/iPhone8','template','104069qhikWb','/imports/ui/layouts','injectAtBeginningOfFile','.app-tests.js','string','hook/hook.js','5738635WvncMj','getMakaProjectConfig','true','withHook','705481iKdMND','ssr','.css','toString','1512534PvbkCE','client','maka\x20g:l\x20web/safari','layout','constructor','fileName','apply','dir','withTranslations','react','7658896crYleZ','className','none','.js','graphql','relative','assign','17836281YGOVTB','test'];a114c=function(){return r;};return a114c();}const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a114d;if(c){const e=c[m(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const n=a114d;return a114a[n(0x1aa)]()[n(0x1c1)](n(0x199))[n(0x1aa)]()[n(0x1af)](a114a)[n(0x1c1)](n(0x199));});a114a();import a114e 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[a114o(0x1ca)]({'name':a114o(0x1ae),'aliases':aliases,'usage':a114o(0x1c7),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Layout.','validOpts':[],'examples':[a114o(0x19b),a114o(0x1ad)]},async function(a,b){const p=a114o,c=p(0x19e),d=this[p(0x1cc)]['findAppDirectory'](),e=this['fsi'][p(0x1c9)]({'pathParts':[c,b[p(0x1b2)],paramCase(b[p(0x197)]),paramCase(b[p(0x197)])]}),f=this['fsi'][p(0x1a4)]();await this[p(0x1cc)][p(0x19a)](f,async()=>{const q=p;typeof f['template'][q(0x1bd)]==='string'&&(f[q(0x19c)][q(0x1bd)]=f['template'][q(0x1bd)]===q(0x1a5)?!![]:![],this[q(0x1cc)][q(0x1c6)](q(0x1bd),f[q(0x19c)]['test']));typeof f['template'][q(0x1be)]===q(0x1a1)&&(f[q(0x19c)][q(0x1be)]=f[q(0x19c)]['css']===q(0x1a5)?!![]:![],this[q(0x1cc)]['setTemplate'](q(0x1be),f[q(0x19c)][q(0x1be)]));typeof f[q(0x19c)]['js']===q(0x1a1)&&(f[q(0x19c)]['js']=f[q(0x19c)]['js']===q(0x1a5)?!![]:![],this[q(0x1cc)][q(0x1c6)]('js',f['template']['js']));!f[q(0x195)]&&(f[q(0x195)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[q(0x1c4)](q(0x1c0))&&(Log['warn'](q(0x194)),this['fsi']['installNpmPackage']('ramda',{'cwd':d}));if(h&&!this[q(0x1c4)](q(0x1b4))){Log['warn'](q(0x1bf));return;}const i={'name':pascalCase(b[q(0x197)]),'myPath':a114e[q(0x1ba)](this[q(0x1cc)][q(0x1c2)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x197)]),'camelCaseName':camelCase(b[q(0x197)]),'fileName':paramCase(b['resourceName']),'graphql':f[q(0x196)][q(0x1b9)],'features':f[q(0x195)],'client':f['engines'][q(0x1ac)],'api':f[q(0x196)][q(0x193)],'ssr':f['engines'][q(0x1a8)],'test':f[q(0x196)][q(0x1bd)],'theme':f[q(0x196)]['theme'],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][q(0x1b3)]};f[q(0x195)]?.['withHooks']||b[q(0x1a6)]?await this['fsi'][q(0x19c)]({'srcPath':q(0x1a2),'destPath':e+'.js','framework':'react','context':i,'config':f}):await this[q(0x1cc)][q(0x19c)]({'srcPath':'component/component.js','destPath':e+q(0x1b8),'framework':'react','context':i,'config':f});f[q(0x196)][q(0x1bd)]!==q(0x1b7)&&await this[q(0x1cc)]['template']({'srcPath':'test/test.js','destPath':e+q(0x1a0),'framework':'react','context':i,'config':f});f[q(0x19c)][q(0x1be)]&&(await this[q(0x1cc)]['template']({'srcPath':q(0x198),'destPath':e+q(0x1a9),'context':Object[q(0x1bb)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),await this[q(0x1cc)][q(0x19f)]({'filePath':e+'.'+f[q(0x196)]['js'],'content':'import\x20\x27./'+i[q(0x1b0)]+'.'+f[q(0x196)][q(0x1be)]+'\x27;'}));const j=b[q(0x1b2)]?'/'+b['dir']+'/':'/',k=''+c+j+i['fileName']+'/'+i[q(0x1b0)];await this[q(0x1cc)][q(0x1c8)](i[q(0x1b6)],f,k);});});
@@ -1 +1 @@
1
- const a115i=a115d;function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x147;let f=c[d];return f;},a115d(a,b);}(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0x14f))/0x1*(-parseInt(f(0x151))/0x2)+-parseInt(f(0x14c))/0x3*(parseInt(f(0x14a))/0x4)+parseInt(f(0x15d))/0x5*(-parseInt(f(0x158))/0x6)+parseInt(f(0x14e))/0x7*(-parseInt(f(0x159))/0x8)+-parseInt(f(0x147))/0x9*(-parseInt(f(0x154))/0xa)+-parseInt(f(0x15e))/0xb+parseInt(f(0x148))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xe2062));function a115c(){const j=['2BDdoqc','maka\x20{generate,\x20g}:<generator>\x20<name>','maka\x20g:scaffold\x20todos','2179630PPfZdj','maka\x20g:api\x20trucks','toString','constructor','96420zzcful','6264cRIDgG','maka\x20g:route\x20todos/edit','(((.+)+)+)+$','maka\x20generate:scaffold\x20todos','505LlDjgF','3676651BssFKe','63TBLJrv','41909664vfFWPD','Scaffold\x20various\x20parts\x20of\x20your\x20application','4jFFjkR','maka\x20g:template\x20todos/todo_item','3358776haSgii','generate','14434YCcgQl','599030DsEwYj','apply'];a115c=function(){return j;};return a115c();}const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0x156)]()['search'](h(0x15b))['toString']()[h(0x157)](a115a)['search']('(((.+)+)+)+$');});a115a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a115i(0x14d),'aliases':['g'],'usage':a115i(0x152),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a115i(0x149),'examples':[a115i(0x15c),a115i(0x153),a115i(0x14b),'maka\x20g:package\x20package:name',a115i(0x15a),a115i(0x155),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
1
+ const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0xac))/0x1*(-parseInt(f(0x9d))/0x2)+parseInt(f(0x9f))/0x3+-parseInt(f(0x9c))/0x4*(-parseInt(f(0xa1))/0x5)+-parseInt(f(0xa2))/0x6+-parseInt(f(0xb3))/0x7+parseInt(f(0xa9))/0x8*(-parseInt(f(0xa7))/0x9)+-parseInt(f(0xa5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x7d4e7));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0x9e)]()['search'](h(0xb0))['toString']()[h(0xa8)](a115a)[h(0xa0)]('(((.+)+)+)+$');});a115a();function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x9c;let f=c[d];return f;},a115d(a,b);}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a115i(0xb1),'aliases':['g'],'usage':a115i(0xa3),'validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a115i(0xa4),'examples':[a115i(0xab),a115i(0xa6),a115i(0xaa),a115i(0xae),'maka\x20g:route\x20todos/edit',a115i(0xaf),a115i(0xb2)]},function(){});export default MakaGen;function a115c(){const j=['2775339KCExDw','search','40CBJRNi','5990250VkEaUJ','maka\x20{generate,\x20g}:<generator>\x20<name>','Scaffold\x20various\x20parts\x20of\x20your\x20application','4830890UnVlKP','maka\x20g:scaffold\x20todos','207QLNtys','constructor','33112hXhpHf','maka\x20g:template\x20todos/todo_item','maka\x20generate:scaffold\x20todos','5Uyvsyv','apply','maka\x20g:package\x20package:name','maka\x20g:api\x20trucks','(((.+)+)+)+$','generate','maka\x20g:dbc\x20geoserver\x20--type=pgsql','1004521GctMpS','165728eQYYUu','390740nAFgxD','toString'];a115c=function(){return j;};return a115c();}