@cqfactory/component-generator
Version:
Builds ReactJS/Vue/Angular enabled AEM Touch UI components with dialogue.
1 lines • 20.9 kB
JavaScript
var _0x4903=['reactClass','reactClassParameterIsMissing','Class','getReactScssTemplate','reactScss','getSightlyTemplate','sightly','FullyQualifiedClassName','fullyQualifiedClassName','writeFilesToAEM','buildComponent','componentPath','tabs','/_cq_dialog','writeDialog','makeFolder','/_cq_htmlTag','writeHtmlTag','/analytics','writeAnalytics','buildConfigForAem','configType','reactComponentsSrcPath','writeReactTemplate','writeReactIndex','writeReactScss','UICONFIGS','writeSightlyTemplate','writeCqConfig','noCqDesignDialog','writeCqDesignDialog','resolve','split','forEach','existsSync','mkdirSync','/_cq_dialog/.content.xml','info','AEM\x20Touch\x20UI\x20Dialog\x20built:\x20','writeFileSync','AEM\x20Touch\x20UI\x20HTML-Tag\x20built:\x20','/analytics/.content.xml','writeAEMConfig','/.content.xml','AEM\x20Config\x20XML\x20built:\x20','/_cq_editConfig.xml','getCqConfig','AEM\x20Cq\x20Edit\x20Config\x20XML\x20built:\x20','/_cq_design_dialog/.content.xml','AEM\x20Cq\x20Design\x20Dialog\x20Config\x20XML\x20built:\x20','length','error','REACT\x20AEM\x20HTML\x20built:\x20','/index.tsx','.tsx','overwriteAllFilesOnBuild','REACT\x20Component\x20Component-file\x20already\x20exists,\x20do\x20not\x20overwrite\x20it:\x20','getReactComponentTemplate','REACT\x20Component\x20Component-file\x20built:\x20','.scss','REACT\x20Component\x20SCSS-file\x20already\x20exists,\x20do\x20not\x20overwrite\x20it:\x20','REACT\x20Component\x20SCSS-file\x20built:\x20','.html','SIGHTLY\x20Template\x20built:\x20','ComponentGenerator','__importStar','hasOwnProperty','default','__esModule','./uiconfigs/uIconfiguration','de.cqfactory.componentgenerator.components.RenderingComponent','Path','pathfield','Text','textfield','RichText','richtext','TextArea','textarea','select','selection','Number','numberfield','Multifield','Imagefield','imagefield','Tag','HiddenField','TouchUIField','uiConfiguration','getAnalytics','dialogConfig','analytics','template','tracking','PlaceHolder','Title','componentName','replace','Group','componentGroup','TrackingEvents','getAnalyticsElements','TrackingVars','values','prototype','getAEMConfig','component','resourceSuperType','ResourceSuperType','sling:resourceSuperType=\x22','ComponentDescription','componentDescription','NoDecoration','noDecoration','IsContainer','isContainer','cqEditConfig','getCqDesignDialog','cqDesignDialog','getDialog','dialog','title','Tab','getHtmlTag','htmlTag','tag','div','css','buildTabs','map','tab','Element','tab_','Fields','fields','getField','join','getTemplate','type','Checkbox','Checked','checked','false','UncheckedValue','uncheckedValue','Value','value','{Boolean}true','hiddenField','Dropwdown','dropdown','Options','options','OPTIONERROR','multifieldOptions','multiFieldNested','getMultiFieldNested','multiField','Field','getMultiField','Database','databaseName','Common','MaxLength','maxLength','Max','max','\x20max=\x22','min','\x20min=\x22','Required','isRequired','isDisabled','/element_','label','Description','\x20fieldDescription=\x22','description','getOption','<option_','\x20jcr:primaryType=\x22nt:unstructured\x22\x20value=\x22','\x22\x20text=\x22','\x22/>','multifieldtype','FIELD-TYPE-ERROR','string','object','getReactTemplate','uniqueAppId','getReactIndexTemplate'];(function(_0x2464d6,_0x5c078e){var _0x2a2093=function(_0x5cbf88){while(--_0x5cbf88){_0x2464d6['push'](_0x2464d6['shift']());}};_0x2a2093(++_0x5c078e);}(_0x4903,0x100));var _0x3bcc=function(_0x532631,_0x16d02d){_0x532631=_0x532631-0x0;var _0x13e240=_0x4903[_0x532631];return _0x13e240;};'use strict';var __importStar=this&&this[_0x3bcc('0x0')]||function(_0x4509b8){if(_0x4509b8&&_0x4509b8['__esModule'])return _0x4509b8;var _0x543445={};if(_0x4509b8!=null)for(var _0xd252e4 in _0x4509b8)if(Object[_0x3bcc('0x1')]['call'](_0x4509b8,_0xd252e4))_0x543445[_0xd252e4]=_0x4509b8[_0xd252e4];_0x543445[_0x3bcc('0x2')]=_0x4509b8;return _0x543445;};Object['defineProperty'](exports,_0x3bcc('0x3'),{'value':!![]});var fs=__importStar(require('fs'));var path=__importStar(require('path'));var componentTemplate_1=require('./componentTemplate');var uIconfiguration_1=require(_0x3bcc('0x4'));var standardFullyQualifiedClassName=_0x3bcc('0x5');var TouchUIField;(function(_0x13241f){_0x13241f[_0x3bcc('0x6')]=_0x3bcc('0x7');_0x13241f[_0x3bcc('0x8')]=_0x3bcc('0x9');_0x13241f[_0x3bcc('0xa')]=_0x3bcc('0xb');_0x13241f[_0x3bcc('0xc')]=_0x3bcc('0xd');_0x13241f['Checkbox']=_0x3bcc('0xe');_0x13241f['Dropwdown']=_0x3bcc('0xf');_0x13241f[_0x3bcc('0x10')]=_0x3bcc('0x11');_0x13241f[_0x3bcc('0x12')]='multifield';_0x13241f[_0x3bcc('0x13')]=_0x3bcc('0x14');_0x13241f[_0x3bcc('0x15')]='tag';_0x13241f[_0x3bcc('0x16')]='hiddenField';}(TouchUIField=exports['TouchUIField']||(exports[_0x3bcc('0x17')]={})));var ComponentGenerator=function(){function _0x56e84c(_0x58cf25,_0x39bf1f){this['dialogConfig']=_0x58cf25;this[_0x3bcc('0x18')]=_0x39bf1f;}_0x56e84c['prototype'][_0x3bcc('0x19')]=function(){return!this[_0x3bcc('0x1a')][_0x3bcc('0x1b')]?null:componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x1d')]['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x1f')],this[_0x3bcc('0x1a')][_0x3bcc('0x20')])[_0x3bcc('0x21')](componentTemplate_1['PlaceHolder'][_0x3bcc('0x22')],this[_0x3bcc('0x1a')][_0x3bcc('0x23')])[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x24')],this[_0x3bcc('0x25')]('events'))[_0x3bcc('0x21')](componentTemplate_1['PlaceHolder'][_0x3bcc('0x26')],this[_0x3bcc('0x25')](_0x3bcc('0x27')))[_0x3bcc('0x21')](componentTemplate_1['PlaceHolder']['Group'],this[_0x3bcc('0x1a')][_0x3bcc('0x23')]);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x29')]=function(){componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x2a')]=!this[_0x3bcc('0x1a')][_0x3bcc('0x2b')]?componentTemplate_1['template']['component'][_0x3bcc('0x21')](componentTemplate_1['PlaceHolder'][_0x3bcc('0x2c')],''):componentTemplate_1[_0x3bcc('0x1c')]['component']=componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x2a')][_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x2c')],_0x3bcc('0x2d')+this['dialogConfig'][_0x3bcc('0x2b')]+'\x22');return componentTemplate_1[_0x3bcc('0x1c')]['component']['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x1f')],this['dialogConfig'][_0x3bcc('0x20')])['replace'](componentTemplate_1['PlaceHolder']['Group'],this[_0x3bcc('0x1a')]['componentGroup'])[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x2e')],this[_0x3bcc('0x1a')][_0x3bcc('0x2f')])[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x30')],'{Boolean}'+String(this[_0x3bcc('0x1a')][_0x3bcc('0x31')]?this[_0x3bcc('0x1a')][_0x3bcc('0x31')]:![]))[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x32')],String(this[_0x3bcc('0x1a')][_0x3bcc('0x33')]?this[_0x3bcc('0x1a')][_0x3bcc('0x33')]:![]));};_0x56e84c['prototype']['getCqConfig']=function(){return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x34')];};_0x56e84c['prototype'][_0x3bcc('0x35')]=function(){return componentTemplate_1['template'][_0x3bcc('0x36')];};_0x56e84c['prototype'][_0x3bcc('0x37')]=function(){return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x38')][_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x1f')],this[_0x3bcc('0x1a')][_0x3bcc('0x39')])['replace'](componentTemplate_1['PlaceHolder'][_0x3bcc('0x3a')],this['buildTabs']());};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x3b')]=function(){return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x3c')][_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x15')],this[_0x3bcc('0x1a')]['tag']?this[_0x3bcc('0x1a')][_0x3bcc('0x3d')]:_0x3bcc('0x3e'))[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')]['Class'],this['dialogConfig'][_0x3bcc('0x3f')]?this[_0x3bcc('0x1a')][_0x3bcc('0x3f')]:'');};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x40')]=function(){var _0x1125ba=this;return this[_0x3bcc('0x1a')]['tabs'][_0x3bcc('0x41')](function(_0xc540f8,_0x479261){return componentTemplate_1['template'][_0x3bcc('0x42')][_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x43')],_0x3bcc('0x44')+_0x479261)[_0x3bcc('0x21')]('/'+componentTemplate_1['PlaceHolder'][_0x3bcc('0x43')],'/tab_'+_0x479261)[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x1f')],_0xc540f8[_0x3bcc('0x39')])[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x45')],_0xc540f8[_0x3bcc('0x46')][_0x3bcc('0x41')](function(_0x369d98,_0x2b6f26){return _0x1125ba[_0x3bcc('0x47')](_0x369d98,_0x2b6f26);})[_0x3bcc('0x48')](''));})[_0x3bcc('0x48')]('');};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x49')]=function(_0x2f6b01){var _0x1bd0f2=this;switch(_0x2f6b01[_0x3bcc('0x4a')]){case TouchUIField[_0x3bcc('0x6')]:return componentTemplate_1[_0x3bcc('0x1c')]['pathfield'];case TouchUIField[_0x3bcc('0x4b')]:return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0xe')]['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x4c')],_0x2f6b01[_0x3bcc('0x4d')]?_0x2f6b01[_0x3bcc('0x4d')]:_0x3bcc('0x4e'))[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x4f')],_0x2f6b01[_0x3bcc('0x50')]?_0x2f6b01[_0x3bcc('0x50')]:_0x3bcc('0x4e'))[_0x3bcc('0x21')](componentTemplate_1['PlaceHolder'][_0x3bcc('0x51')],_0x2f6b01[_0x3bcc('0x52')]?_0x2f6b01[_0x3bcc('0x52')]:_0x3bcc('0x53'));case TouchUIField[_0x3bcc('0x16')]:return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x54')]['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x51')],_0x2f6b01['value']?_0x2f6b01[_0x3bcc('0x52')]:'');case TouchUIField[_0x3bcc('0x55')]:return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x56')][_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x57')],_0x2f6b01[_0x3bcc('0x58')]?_0x2f6b01[_0x3bcc('0x58')][_0x3bcc('0x41')](function(_0x3c9663,_0x5569c2){return _0x1bd0f2['getOption'](_0x3c9663,_0x5569c2);})['join'](''):_0x3bcc('0x59'));case TouchUIField[_0x3bcc('0x12')]:var _0x4d9ddf=_0x2f6b01[_0x3bcc('0x5a')]&&_0x2f6b01[_0x3bcc('0x5a')]['length']>0x0;if(_0x4d9ddf){return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x5b')]['replace'](componentTemplate_1['PlaceHolder']['Title'],_0x2f6b01['label'])[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x57')],this[_0x3bcc('0x5c')](_0x2f6b01));}else{return componentTemplate_1['template'][_0x3bcc('0x5d')]['replace'](componentTemplate_1['PlaceHolder'][_0x3bcc('0x5e')],this[_0x3bcc('0x5f')](_0x2f6b01));}case TouchUIField[_0x3bcc('0x13')]:return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x14')][_0x3bcc('0x21')](new RegExp(componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x60')],'g'),_0x2f6b01[_0x3bcc('0x61')]);case TouchUIField['Number']:return componentTemplate_1[_0x3bcc('0x1c')]['numberfield'];case TouchUIField[_0x3bcc('0x15')]:return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x3d')];case TouchUIField[_0x3bcc('0xa')]:return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0xb')];default:return componentTemplate_1['template'][_0x3bcc('0x9')][_0x3bcc('0x21')]('textfield',_0x2f6b01[_0x3bcc('0x4a')]||'FIELDERROR');}};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x47')]=function(_0xe82f9,_0x4825ff){return this[_0x3bcc('0x49')](_0xe82f9)[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x62')],componentTemplate_1[_0x3bcc('0x1c')]['commonField'])['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x63')],_0xe82f9[_0x3bcc('0x64')]?'\x20maxlength=\x22'+_0xe82f9[_0x3bcc('0x64')]+'\x22\x20':'')['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x65')],_0xe82f9[_0x3bcc('0x66')]?_0x3bcc('0x67')+_0xe82f9[_0x3bcc('0x66')]+'\x22\x20':'')[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')]['Min'],_0xe82f9[_0x3bcc('0x68')]?_0x3bcc('0x69')+_0xe82f9['min']+'\x22\x20':'')['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x6a')],_0xe82f9[_0x3bcc('0x6b')]?'\x20required=\x22{Boolean}true\x22\x20':'')['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x6c')],_0xe82f9[_0x3bcc('0x6c')]?'\x20disabled=\x22{Boolean}true\x22\x20':'')['replace'](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x43')],'element_'+_0x4825ff)['replace']('/'+componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x43')],_0x3bcc('0x6d')+_0x4825ff)[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')]['Title'],_0xe82f9[_0x3bcc('0x6e')])[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')]['Database'],'./'+_0xe82f9[_0x3bcc('0x61')])[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x6f')],_0xe82f9['description']?_0x3bcc('0x70')+_0xe82f9[_0x3bcc('0x71')]+'\x22':'');};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x72')]=function(_0x2fd7d2,_0x15cc6e){return _0x3bcc('0x73')+_0x15cc6e+_0x3bcc('0x74')+_0x2fd7d2['value']+_0x3bcc('0x75')+_0x2fd7d2['name']+_0x3bcc('0x76');};_0x56e84c[_0x3bcc('0x28')]['getMultiField']=function(_0x34e4fe){return _0x34e4fe[_0x3bcc('0x77')]?_0x34e4fe[_0x3bcc('0x77')]:_0x3bcc('0x78');};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x5c')]=function(_0x2f4026){var _0x189126=this;return(_0x2f4026[_0x3bcc('0x5a')]||[])['map'](function(_0x583018,_0x4c3523){return _0x189126['getField'](_0x583018,_0x4c3523);})['join']('');};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x25')]=function(_0x1247f1){if(!this[_0x3bcc('0x1a')][_0x3bcc('0x1b')]||!this[_0x3bcc('0x1a')][_0x3bcc('0x1b')][_0x1247f1]){return'';}switch(typeof this[_0x3bcc('0x1a')][_0x3bcc('0x1b')][_0x1247f1]){case _0x3bcc('0x79'):return this[_0x3bcc('0x1a')][_0x3bcc('0x1b')][_0x1247f1];case _0x3bcc('0x7a'):return this[_0x3bcc('0x1a')]['analytics'][_0x1247f1][_0x3bcc('0x48')]();default:return'';}};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x7b')]=function(_0x2fb1e6){return componentTemplate_1[_0x3bcc('0x1c')]['react'][_0x3bcc('0x21')](componentTemplate_1['PlaceHolder'][_0x3bcc('0x1f')],_0x2fb1e6[_0x3bcc('0x7c')]||'uniqueAppIdToBeReplaced');};_0x56e84c['prototype'][_0x3bcc('0x7d')]=function(_0x259cd3){return componentTemplate_1[_0x3bcc('0x1c')]['reactIndex'][_0x3bcc('0x21')](new RegExp(componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x1f')],'g'),_0x259cd3[_0x3bcc('0x7e')]||_0x3bcc('0x7f'))[_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x80')],_0x259cd3[_0x3bcc('0x7c')]);};_0x56e84c[_0x3bcc('0x28')]['getReactComponentTemplate']=function(_0x282776){return componentTemplate_1[_0x3bcc('0x1c')]['reactComponent'][_0x3bcc('0x21')](new RegExp(componentTemplate_1[_0x3bcc('0x1e')][_0x3bcc('0x1f')],'g'),_0x282776['reactClass']||'reactClassParameterIsMissing');};_0x56e84c['prototype'][_0x3bcc('0x81')]=function(){return componentTemplate_1[_0x3bcc('0x1c')][_0x3bcc('0x82')];};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x83')]=function(){return componentTemplate_1['template'][_0x3bcc('0x84')][_0x3bcc('0x21')](componentTemplate_1[_0x3bcc('0x1e')]['Title'],this[_0x3bcc('0x1a')]['componentName'])[_0x3bcc('0x21')](componentTemplate_1['PlaceHolder'][_0x3bcc('0x85')],this[_0x3bcc('0x1a')][_0x3bcc('0x86')]||standardFullyQualifiedClassName);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x87')]=function(){if(this[_0x3bcc('0x1a')][_0x3bcc('0x88')]){this['makeFolder'](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]);if(this['dialogConfig'][_0x3bcc('0x8a')]){this['makeFolder'](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+_0x3bcc('0x8b'));this[_0x3bcc('0x8c')]();if(this['dialogConfig'][_0x3bcc('0x3d')]&&this[_0x3bcc('0x1a')][_0x3bcc('0x3f')]){this[_0x3bcc('0x8d')](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+_0x3bcc('0x8e'));this[_0x3bcc('0x8f')]();}}if(this[_0x3bcc('0x1a')][_0x3bcc('0x1b')]){this[_0x3bcc('0x8d')](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+_0x3bcc('0x90'));this[_0x3bcc('0x91')]();}if(this[_0x3bcc('0x1a')][_0x3bcc('0x92')]){this['writeAEMConfig']();}if(this[_0x3bcc('0x18')][_0x3bcc('0x93')]()===uIconfiguration_1['UICONFIGS']['REACT']){var _0x1bd72d=this[_0x3bcc('0x18')];this[_0x3bcc('0x8d')](_0x1bd72d[_0x3bcc('0x94')]);this[_0x3bcc('0x95')](_0x1bd72d);this[_0x3bcc('0x96')](_0x1bd72d);this['writeReactComponent'](_0x1bd72d);this[_0x3bcc('0x97')](_0x1bd72d);}else if(this['uiConfiguration'][_0x3bcc('0x93')]()===uIconfiguration_1[_0x3bcc('0x98')]['SIGHTLY']){this[_0x3bcc('0x99')]();}this[_0x3bcc('0x9a')]();if(!this[_0x3bcc('0x1a')][_0x3bcc('0x9b')]){this[_0x3bcc('0x8d')](this['dialogConfig'][_0x3bcc('0x89')]+'/_cq_design_dialog');this[_0x3bcc('0x9c')]();}}};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x8d')]=function(_0x431163){var _0x320052=path[_0x3bcc('0x9d')](_0x431163[_0x3bcc('0x9e')]('/')[0x0]);_0x431163[_0x3bcc('0x9e')]('/')[_0x3bcc('0x9f')](function(_0x25075e){_0x320052+='/'+_0x25075e;if(!fs[_0x3bcc('0xa0')](path[_0x3bcc('0x9d')](_0x320052))){fs[_0x3bcc('0xa1')](path['resolve'](_0x320052));}});};_0x56e84c['prototype']['writeDialog']=function(){var _0x4d197f=path[_0x3bcc('0x9d')](this[_0x3bcc('0x1a')]['componentPath']+_0x3bcc('0xa2'));fs['writeFileSync'](path['resolve'](_0x4d197f),this[_0x3bcc('0x37')]());console[_0x3bcc('0xa3')](_0x3bcc('0xa4')+_0x4d197f);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x8f')]=function(){var _0x14d504=path['resolve'](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+'/_cq_htmlTag/.content.xml');fs[_0x3bcc('0xa5')](path[_0x3bcc('0x9d')](_0x14d504),this[_0x3bcc('0x3b')]());console[_0x3bcc('0xa3')](_0x3bcc('0xa6')+_0x14d504);};_0x56e84c[_0x3bcc('0x28')]['writeAnalytics']=function(){var _0x49f6e2=path[_0x3bcc('0x9d')](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+_0x3bcc('0xa7'));fs[_0x3bcc('0xa5')](path[_0x3bcc('0x9d')](_0x49f6e2),this[_0x3bcc('0x19')]());console['info']('AEM\x20Analytics\x20XML\x20built:\x20'+_0x49f6e2);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0xa8')]=function(){var _0x792f51=path[_0x3bcc('0x9d')](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+_0x3bcc('0xa9'));fs[_0x3bcc('0xa5')](path['resolve'](_0x792f51),this[_0x3bcc('0x29')]());console[_0x3bcc('0xa3')](_0x3bcc('0xaa')+_0x792f51);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x9a')]=function(){var _0x1d94b0=path['resolve'](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+_0x3bcc('0xab'));fs[_0x3bcc('0xa5')](path[_0x3bcc('0x9d')](_0x1d94b0),this[_0x3bcc('0xac')]());console[_0x3bcc('0xa3')](_0x3bcc('0xad')+_0x1d94b0);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x9c')]=function(){var _0x1edc78=path['resolve'](this['dialogConfig']['componentPath']+_0x3bcc('0xae'));fs[_0x3bcc('0xa5')](path['resolve'](_0x1edc78),this[_0x3bcc('0x35')]());console[_0x3bcc('0xa3')](_0x3bcc('0xaf')+_0x1edc78);};_0x56e84c[_0x3bcc('0x28')]['writeReactTemplate']=function(_0xf02872){var _0x2f9d7f=this['dialogConfig'][_0x3bcc('0x89')][_0x3bcc('0x9e')]('/')[this['dialogConfig'][_0x3bcc('0x89')]['split']('/')[_0x3bcc('0xb0')]-0x1];var _0x2d53ee=path[_0x3bcc('0x9d')](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+'/'+_0x2f9d7f+'.html');try{if(!this[_0x3bcc('0x1a')]['overwriteAllFilesOnBuild']&&fs[_0x3bcc('0xa0')](_0x2d53ee)){console[_0x3bcc('0xa3')]('REACT\x20AEM\x20HTML-file\x20already\x20exists,\x20do\x20not\x20overwrite\x20it:\x20'+_0x2d53ee);return;}}catch(_0x2a0cd3){console[_0x3bcc('0xb1')](_0x2a0cd3);}fs[_0x3bcc('0xa5')](path[_0x3bcc('0x9d')](_0x2d53ee),this[_0x3bcc('0x7b')](_0xf02872));console[_0x3bcc('0xa3')](_0x3bcc('0xb2')+_0x2d53ee);};_0x56e84c['prototype'][_0x3bcc('0x96')]=function(_0x40498d){var _0x11fa64=path[_0x3bcc('0x9d')](_0x40498d[_0x3bcc('0x94')]+_0x3bcc('0xb3'));try{if(!this[_0x3bcc('0x1a')]['overwriteAllFilesOnBuild']&&fs['existsSync'](_0x11fa64)){console[_0x3bcc('0xa3')]('REACT\x20Component\x20Index-file\x20already\x20exists,\x20do\x20not\x20overwrite\x20it:\x20'+_0x11fa64);return;}}catch(_0x22a4cc){console[_0x3bcc('0xb1')](_0x22a4cc);}fs[_0x3bcc('0xa5')](path[_0x3bcc('0x9d')](_0x11fa64),this[_0x3bcc('0x7d')](_0x40498d));console[_0x3bcc('0xa3')]('REACT\x20Component\x20Index-file\x20built:\x20'+_0x11fa64);};_0x56e84c['prototype']['writeReactComponent']=function(_0x50aee3){var _0x55b787=path['resolve'](_0x50aee3[_0x3bcc('0x94')]+'/'+_0x50aee3[_0x3bcc('0x7e')]+_0x3bcc('0xb4'));try{if(!this['dialogConfig'][_0x3bcc('0xb5')]&&fs[_0x3bcc('0xa0')](_0x55b787)){console[_0x3bcc('0xa3')](_0x3bcc('0xb6')+_0x55b787);return;}}catch(_0x342ac8){console[_0x3bcc('0xb1')](_0x342ac8);}fs['writeFileSync'](path[_0x3bcc('0x9d')](_0x55b787),this[_0x3bcc('0xb7')](_0x50aee3));console[_0x3bcc('0xa3')](_0x3bcc('0xb8')+_0x55b787);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x97')]=function(_0x56abaa){var _0x48c542=path[_0x3bcc('0x9d')](_0x56abaa[_0x3bcc('0x94')]+'/'+_0x56abaa[_0x3bcc('0x7e')]+_0x3bcc('0xb9'));try{if(!this[_0x3bcc('0x1a')][_0x3bcc('0xb5')]&&fs[_0x3bcc('0xa0')](_0x48c542)){console['info'](_0x3bcc('0xba')+_0x48c542);return;}}catch(_0x3432b9){console[_0x3bcc('0xb1')](_0x3432b9);}fs[_0x3bcc('0xa5')](path[_0x3bcc('0x9d')](_0x48c542),this[_0x3bcc('0x81')]());console['info'](_0x3bcc('0xbb')+_0x48c542);};_0x56e84c[_0x3bcc('0x28')][_0x3bcc('0x99')]=function(){var _0x3ac292=this[_0x3bcc('0x1a')][_0x3bcc('0x89')][_0x3bcc('0x9e')]('/')[this[_0x3bcc('0x1a')][_0x3bcc('0x89')][_0x3bcc('0x9e')]('/')[_0x3bcc('0xb0')]-0x1];var _0x52fb51=path[_0x3bcc('0x9d')](this[_0x3bcc('0x1a')][_0x3bcc('0x89')]+'/'+_0x3ac292+_0x3bcc('0xbc'));fs[_0x3bcc('0xa5')](path[_0x3bcc('0x9d')](_0x52fb51),this['getSightlyTemplate']());console[_0x3bcc('0xa3')](_0x3bcc('0xbd')+_0x52fb51);};return _0x56e84c;}();exports[_0x3bcc('0xbe')]=ComponentGenerator;