UNPKG

3.41 kBPlain TextView Raw
1{"code":"function defineName$__(cls,name){\n\tObject.defineProperty(cls,\"name\",{value:name,configurable:true});\n};\nimport {use_events as imba_use_events, Component as imba_Component, commit as imba_commit, createComponent as imba_createComponent, createElement as imba_createElement, defineTag as imba_defineTag} from 'imba';\n(imba_use_events());\nconst $__init__$ = Symbol.for('#__init__'), $__patch__$ = Symbol.for('#__patch__'), $beforeReconcile$ = Symbol.for('#beforeReconcile'), $placeChild$ = Symbol.for('#placeChild'), $afterReconcile$ = Symbol.for('#afterReconcile');\nvar $6 = Symbol(), $9 = Symbol(), $13 = Symbol(), $14 = Symbol(), $15 = Symbol(), $16 = Symbol();\n\n/*body*/\n\n\nexport default class App extends imba_Component {\n\t[$__patch__$]($$ = {},fields = true){\n\t\tvar $1;\n\t\t($1 = $$.count) !== undefined && (this.count = $1);\n\t\t\n\t}\n\t[$__init__$]($$ = null,deep = true,fields = true){\n\t\tvar $2;\n\t\tsuper[$__init__$](...arguments);\n\t\tthis.count = ($$ && ($2 = $$.count) !== undefined) ? ($2) : 0;\n\t\t\n\t}\n\tmount(){\n\t\t\n\t\treturn this.count++;\n\t}\n\t\n\thydrate(){\n\t\t\n\t\tthis.innerHTML = '';\n\t\tthis.schedule();\n\t\treturn imba_commit();\n\t}\n\t\n\trender(){\n\t\tvar self = this, $3, $4, $5, $7 = this._ns_ || '', $8, $10, $11, $12;\n\t\t\n\t\t$3=this;\n\t\t$3[$beforeReconcile$]();\n\t\t($4=$5=1,$3[$6] === 1) || ($4=$5=0,$3[$6]=1);\n\t\t($10=$11=1,$8=$3[$9]) || ($10=$11=0,$3[$9]=$8=imba_createElement('button',$3,`z11874dd-ag ${$7}`,null));\n\t\t$10 || ($8.on$(`click`,{log: [\"st\"],$_: [function(e,$$) {\n\t\t\treturn self.count++;\n\t\t}]},this));\n\t\t$10 || $8[$placeChild$](\"Hello \");\n\t\t($12=this.count,($12===$3[$14]&&$10) || ($3[$13] = $8[$placeChild$]($3[$14]=$12,0,$3[$13])));\n\t\t$10 || $8[$placeChild$](\" times hello. Name: \");\n\t\t($12=import.meta.env.IMBA_MY_NAME,($12===$3[$16]&&$10) || ($3[$15] = $8[$placeChild$]($3[$16]=$12,256,$3[$15])));\n\t\t;\n\t\t$3[$afterReconcile$]($5);\n\t\treturn $3;\n\t}\n\tstatic {\n\t\tdefineName$__(this,'App');}\n}; imba_defineTag('app-z11874dd-ah',App,{});\n\nif (!(true)) {};\n\n/*__css_import__*/import \"/Users/abdellah/workspace/scrimba/imba/packages/e2e-tests/imba-config-file/src/App.imba?imba&type=style&lang.css\";\n","map":{"version":3,"file":"App.js","sourceRoot":"","sources":["/Users/abdellah/workspace/scrimba/imba/packages/e2e-tests/imba-config-file/src/App.imba"],"sourcesContent":["global css html, body bg:black c:white\n\nexport default tag App\n\tcount = 0\n\tdef mount\n\t\tcount++\n\n\tdef hydrate\n\t\tinnerHTML = ''\n\t\tschedule!\n\t\timba.commit!\n\t\n\tdef render\n\t\t<self>\n\t\t\t<button[c:liloc6 bg:yellow4] @click.log(\"st\")=(count++)>\n\t\t\t\t\"Hello {count} times hello. Name: {import.meta.env.IMBA_MY_NAME}\"\n\nimba.mount <App>, document.getElementById \"root\" unless $node$\n"],"names":[],"mappings":";;;;;;;;;;;AAEA,MAAM,CAAC,OAAO,CAAC,KAAG,CAAC,GAAG,yBAAA;qCAFtB;;WAGC,KAAK,CAAA,wBAAL,KAAK;;EAHN;kDAAA;;;OAGC,KAAK,mBAAL,KAAK,CAAA,qBAAA,IAAG,CAAC;;EAHV;CAIK,KAAK,EAAA;;EACR,OAAA,KAAA,KAAK,EAAE;EAAA;;CAEJ,OAAO,EAAA;;EACV,KAAA,SAAS,GAAG,EAAE;EACd,KAAA,QAAQ,EAAC;EACT,OAAA,WAAW,EAAC;EAAA;;CAET,MAAM,EAAA;;;;;;gDAEP,wDAAM;+BAAiC,CAAA,IAAI,CAAA,qBAd/C;GAckD,OAAA,KAAA,KAAK,EAAE;GAdzD;;OAeY,KAAA,KAAK;;OAAsB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY;;;;EAAE;;;AAAA,2CAAA;;AAEpB,EAAM,IAAC,IAAM;AAC9D;"},"dependencies":[],"meta":{"vite":{"lang":"js"}}}
\No newline at end of file