diff --git a/.babelrc b/.babelrc new file mode 100644 index 000000000..c06df4d53 --- /dev/null +++ b/.babelrc @@ -0,0 +1,18 @@ +{ + "presets": [ + ["env", { + "modules": false, + "targets": { + "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] + } + }], + "stage-2" + ], + "plugins": ["transform-runtime"], + "env": { + "test": { + "presets": ["env", "stage-2"], + "plugins": ["istanbul"] + } + } +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..9d08a1a82 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 000000000..34af3774f --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +build/*.js +config/*.js diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 000000000..a516412b3 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,27 @@ +// http://eslint.org/docs/user-guide/configuring + +module.exports = { + root: true, + parser: 'babel-eslint', + parserOptions: { + sourceType: 'module' + }, + env: { + browser: true, + }, + // https://github.com/standard/standard/blob/master/docs/RULES-en.md + extends: 'standard', + // required to lint *.vue files + plugins: [ + 'html' + ], + // add your custom rules here + 'rules': { + // allow paren-less arrow functions + 'arrow-parens': 0, + // allow async-await + 'generator-star-spacing': 0, + // allow debugger during development + 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0 + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..1b285b676 --- /dev/null +++ b/.gitignore @@ -0,0 +1,86 @@ + +# Created by https://www.gitignore.io/api/node + +### Node ### +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# next.js build output +.next + +# nuxt.js build output +.nuxt + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless + +# FuseBox cache +.fusebox/ + + +# End of https://www.gitignore.io/api/node + +build/contracts/ + diff --git a/.postcssrc.js b/.postcssrc.js new file mode 100644 index 000000000..09948d63e --- /dev/null +++ b/.postcssrc.js @@ -0,0 +1,8 @@ +// https://github.com/michael-ciniawsky/postcss-load-config + +module.exports = { + "plugins": { + // to edit target browsers: use "browserslist" field in package.json + "autoprefixer": {} + } +} diff --git a/LICENCE.md b/LICENCE.md new file mode 100644 index 000000000..9cecc1d46 --- /dev/null +++ b/LICENCE.md @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + {one line to give the program's name and a brief idea of what it does.} + Copyright (C) {year} {name of author} + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + {project} Copyright (C) {year} {fullname} + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/Readme.md b/Readme.md new file mode 100644 index 000000000..b7d260797 --- /dev/null +++ b/Readme.md @@ -0,0 +1,31 @@ +# CryptoLife +A repo for all the #CryptoLife Hackathon submissions, The National House Smichov, Prague, 26-28th October 2018. + +You can read more about the meaning behind the event [here](https://our.status.im/why-name-the-status-hackathon-cryptolife-what-does-that-actually-mean/). + +The [EthMagicians](https://our.status.im/magic-internet-people/) will be in full attendance! + +You can check out the #CryptoLife Master List [here](https://our.status.im/your-cryptolife-masterlist/). + +# Submit Your Hack To This Repo + +**Reminder:** In line with our principles at Status, all code that is submitted during the #CryptoLife Hackathon is considered completely open source and under the same license as this repo - the Mozilla Public License 2.0. + +## Steps to Follow + +1. Fork the repo to your own profile or orgnaization by using the button in the top right of this page. +2. `git clone ` +3. `cd ` +4. Create a new branch in your forked version of the repo and add your code to it. Use the naming convention suggested by placing your team name first, and your project name after (if there is one). + + `git checkout -b ` + +5. Add, commit and push your changes to your new branch in your forked repo: + + ```shell + git add . + git commit -m " Submission for CryptoLife" + git push + ``` + +6. Go to your forked repo in the browser and submit a PR using the green button there. diff --git a/build/build.js b/build/build.js new file mode 100644 index 000000000..a64501161 --- /dev/null +++ b/build/build.js @@ -0,0 +1,40 @@ +require('./check-versions')() + +process.env.NODE_ENV = 'production' + +var ora = require('ora') +var rm = require('rimraf') +var path = require('path') +var chalk = require('chalk') +var webpack = require('webpack') +var config = require('../config') +var webpackConfig = require('./webpack.prod.conf') + +var spinner = ora('building for production...') +spinner.start() + +rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { + if (err) throw err + webpack(webpackConfig, function (err, stats) { + spinner.stop() + if (err) throw err + process.stdout.write(stats.toString({ + colors: true, + modules: false, + children: false, + chunks: false, + chunkModules: false + }) + '\n\n') + + if (stats.hasErrors()) { + console.log(chalk.red(' Build failed with errors.\n')) + process.exit(1) + } + + console.log(chalk.cyan(' Build complete.\n')) + console.log(chalk.yellow( + ' Tip: built files are meant to be served over an HTTP server.\n' + + ' Opening index.html over file:// won\'t work.\n' + )) + }) +}) diff --git a/build/check-versions.js b/build/check-versions.js new file mode 100644 index 000000000..b3e7e17e3 --- /dev/null +++ b/build/check-versions.js @@ -0,0 +1,48 @@ +var chalk = require('chalk') +var semver = require('semver') +var packageConfig = require('../package.json') +var shell = require('shelljs') +function exec (cmd) { + return require('child_process').execSync(cmd).toString().trim() +} + +var versionRequirements = [ + { + name: 'node', + currentVersion: semver.clean(process.version), + versionRequirement: packageConfig.engines.node + } +] + +if (shell.which('npm')) { + versionRequirements.push({ + name: 'npm', + currentVersion: exec('npm --version'), + versionRequirement: packageConfig.engines.npm + }) +} + +module.exports = function () { + var warnings = [] + for (var i = 0; i < versionRequirements.length; i++) { + var mod = versionRequirements[i] + if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { + warnings.push(mod.name + ': ' + + chalk.red(mod.currentVersion) + ' should be ' + + chalk.green(mod.versionRequirement) + ) + } + } + + if (warnings.length) { + console.log('') + console.log(chalk.yellow('To use this template, you must update following to modules:')) + console.log() + for (var i = 0; i < warnings.length; i++) { + var warning = warnings[i] + console.log(' ' + warning) + } + console.log() + process.exit(1) + } +} diff --git a/build/dev-client.js b/build/dev-client.js new file mode 100644 index 000000000..18aa1e219 --- /dev/null +++ b/build/dev-client.js @@ -0,0 +1,9 @@ +/* eslint-disable */ +require('eventsource-polyfill') +var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') + +hotClient.subscribe(function (event) { + if (event.action === 'reload') { + window.location.reload() + } +}) diff --git a/build/dev-server.js b/build/dev-server.js new file mode 100644 index 000000000..2e27cae27 --- /dev/null +++ b/build/dev-server.js @@ -0,0 +1,92 @@ +require('./check-versions')() + +var config = require('../config') +if (!process.env.NODE_ENV) { + process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) +} + +var opn = require('opn') +var path = require('path') +var express = require('express') +var webpack = require('webpack') +var proxyMiddleware = require('http-proxy-middleware') +var webpackConfig = (process.env.NODE_ENV === 'testing' || process.env.NODE_ENV === 'production') + ? require('./webpack.prod.conf') + : require('./webpack.dev.conf') + +// default port where dev server listens for incoming traffic +var port = process.env.PORT || config.dev.port +// automatically open browser, if not set will be false +var autoOpenBrowser = !!config.dev.autoOpenBrowser +// Define HTTP proxies to your custom API backend +// https://github.com/chimurai/http-proxy-middleware +var proxyTable = config.dev.proxyTable + +var app = express() +var compiler = webpack(webpackConfig) + +var devMiddleware = require('webpack-dev-middleware')(compiler, { + publicPath: webpackConfig.output.publicPath, + quiet: true +}) + +var hotMiddleware = require('webpack-hot-middleware')(compiler, { + log: false, + heartbeat: 2000 +}) +// force page reload when html-webpack-plugin template changes +compiler.plugin('compilation', function (compilation) { + compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) { + hotMiddleware.publish({ action: 'reload' }) + cb() + }) +}) + +// proxy api requests +Object.keys(proxyTable).forEach(function (context) { + var options = proxyTable[context] + if (typeof options === 'string') { + options = { target: options } + } + app.use(proxyMiddleware(options.filter || context, options)) +}) + +// handle fallback for HTML5 history API +app.use(require('connect-history-api-fallback')()) + +// serve webpack bundle output +app.use(devMiddleware) + +// enable hot-reload and state-preserving +// compilation error display +app.use(hotMiddleware) + +// serve pure static assets +var staticPath = path.posix.join(config.dev.assetsPublicPath, config.dev.assetsSubDirectory) +app.use(staticPath, express.static('./static')) + +var uri = 'http://localhost:' + port + +var _resolve +var readyPromise = new Promise(resolve => { + _resolve = resolve +}) + +console.log('> Starting dev server...') +devMiddleware.waitUntilValid(() => { + console.log('> Listening at ' + uri + '\n') + // when env is testing, don't need open it + if (autoOpenBrowser && process.env.NODE_ENV !== 'testing') { + opn(uri) + } + _resolve() +}) + +var server = app.listen(port) + +module.exports = { + ready: readyPromise, + close: () => { + server.close() + } +} diff --git a/build/utils.js b/build/utils.js new file mode 100644 index 000000000..b1d54b4d6 --- /dev/null +++ b/build/utils.js @@ -0,0 +1,71 @@ +var path = require('path') +var config = require('../config') +var ExtractTextPlugin = require('extract-text-webpack-plugin') + +exports.assetsPath = function (_path) { + var assetsSubDirectory = process.env.NODE_ENV === 'production' + ? config.build.assetsSubDirectory + : config.dev.assetsSubDirectory + return path.posix.join(assetsSubDirectory, _path) +} + +exports.cssLoaders = function (options) { + options = options || {} + + var cssLoader = { + loader: 'css-loader', + options: { + minimize: process.env.NODE_ENV === 'production', + sourceMap: options.sourceMap + } + } + + // generate loader string to be used with extract text plugin + function generateLoaders (loader, loaderOptions) { + var loaders = [cssLoader] + if (loader) { + loaders.push({ + loader: loader + '-loader', + options: Object.assign({}, loaderOptions, { + sourceMap: options.sourceMap + }) + }) + } + + // Extract CSS when that option is specified + // (which is the case during production build) + if (options.extract) { + return ExtractTextPlugin.extract({ + use: loaders, + fallback: 'vue-style-loader' + }) + } else { + return ['vue-style-loader'].concat(loaders) + } + } + + // https://vue-loader.vuejs.org/en/configurations/extract-css.html + return { + css: generateLoaders(), + postcss: generateLoaders(), + less: generateLoaders('less'), + sass: generateLoaders('sass', { indentedSyntax: true }), + scss: generateLoaders('sass'), + stylus: generateLoaders('stylus'), + styl: generateLoaders('stylus') + } +} + +// Generate loaders for standalone style files (outside of .vue) +exports.styleLoaders = function (options) { + var output = [] + var loaders = exports.cssLoaders(options) + for (var extension in loaders) { + var loader = loaders[extension] + output.push({ + test: new RegExp('\\.' + extension + '$'), + use: loader + }) + } + return output +} diff --git a/build/vue-loader.conf.js b/build/vue-loader.conf.js new file mode 100644 index 000000000..8a346d522 --- /dev/null +++ b/build/vue-loader.conf.js @@ -0,0 +1,18 @@ +var utils = require('./utils') +var config = require('../config') +var isProduction = process.env.NODE_ENV === 'production' + +module.exports = { + loaders: utils.cssLoaders({ + sourceMap: isProduction + ? config.build.productionSourceMap + : config.dev.cssSourceMap, + extract: isProduction + }), + transformToRequire: { + video: 'src', + source: 'src', + img: 'src', + image: 'xlink:href' + } +} diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js new file mode 100644 index 000000000..8f79f6833 --- /dev/null +++ b/build/webpack.base.conf.js @@ -0,0 +1,75 @@ +var path = require('path') +var utils = require('./utils') +var config = require('../config') +var vueLoaderConfig = require('./vue-loader.conf') + +function resolve (dir) { + return path.join(__dirname, '..', dir) +} + +module.exports = { + entry: { + app: './src/main.js' + }, + output: { + path: config.build.assetsRoot, + filename: '[name].js', + publicPath: process.env.NODE_ENV === 'production' + ? config.build.assetsPublicPath + : config.dev.assetsPublicPath + }, + resolve: { + extensions: ['.js', '.vue', '.json'], + alias: { + 'vue$': 'vue/dist/vue.esm.js', + '@': resolve('src'), + } + }, + module: { + rules: [ + // { + // test: /\.(js|vue)$/, + // loader: 'eslint-loader', + // enforce: 'pre', + // include: [resolve('src'), resolve('test')], + // options: { + // formatter: require('eslint-friendly-formatter') + // } + // }, + { + test: /\.vue$/, + loader: 'vue-loader', + options: vueLoaderConfig + }, + { + test: /\.js$/, + loader: 'babel-loader', + include: [resolve('src'), resolve('test')] + }, + { + test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('img/[name].[hash:7].[ext]') + } + }, + { + test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('media/[name].[hash:7].[ext]') + } + }, + { + test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, + loader: 'url-loader', + options: { + limit: 10000, + name: utils.assetsPath('fonts/[name].[hash:7].[ext]') + } + } + ] + } +} diff --git a/build/webpack.dev.conf.js b/build/webpack.dev.conf.js new file mode 100644 index 000000000..5470402d0 --- /dev/null +++ b/build/webpack.dev.conf.js @@ -0,0 +1,35 @@ +var utils = require('./utils') +var webpack = require('webpack') +var config = require('../config') +var merge = require('webpack-merge') +var baseWebpackConfig = require('./webpack.base.conf') +var HtmlWebpackPlugin = require('html-webpack-plugin') +var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin') + +// add hot-reload related code to entry chunks +Object.keys(baseWebpackConfig.entry).forEach(function (name) { + baseWebpackConfig.entry[name] = ['./build/dev-client'].concat(baseWebpackConfig.entry[name]) +}) + +module.exports = merge(baseWebpackConfig, { + module: { + rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap }) + }, + // cheap-module-eval-source-map is faster for development + devtool: '#cheap-module-eval-source-map', + plugins: [ + new webpack.DefinePlugin({ + 'process.env': config.dev.env + }), + // https://github.com/glenjamin/webpack-hot-middleware#installation--usage + new webpack.HotModuleReplacementPlugin(), + new webpack.NoEmitOnErrorsPlugin(), + // https://github.com/ampedandwired/html-webpack-plugin + new HtmlWebpackPlugin({ + filename: 'index.html', + template: 'index.html', + inject: true + }), + new FriendlyErrorsPlugin() + ] +}) diff --git a/build/webpack.prod.conf.js b/build/webpack.prod.conf.js new file mode 100644 index 000000000..8d4bce7be --- /dev/null +++ b/build/webpack.prod.conf.js @@ -0,0 +1,126 @@ +var path = require('path') +var utils = require('./utils') +var webpack = require('webpack') +var config = require('../config') +var merge = require('webpack-merge') +var baseWebpackConfig = require('./webpack.base.conf') +var CopyWebpackPlugin = require('copy-webpack-plugin') +var HtmlWebpackPlugin = require('html-webpack-plugin') +var ExtractTextPlugin = require('extract-text-webpack-plugin') +var OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') + +var env = process.env.NODE_ENV === 'testing' + ? require('../config/test.env') + : config.build.env + +var webpackConfig = merge(baseWebpackConfig, { + module: { + rules: utils.styleLoaders({ + sourceMap: config.build.productionSourceMap, + extract: true + }) + }, + devtool: config.build.productionSourceMap ? '#source-map' : false, + output: { + path: config.build.assetsRoot, + filename: utils.assetsPath('js/[name].[chunkhash].js'), + chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') + }, + plugins: [ + // http://vuejs.github.io/vue-loader/en/workflow/production.html + new webpack.DefinePlugin({ + 'process.env': env + }), + new webpack.optimize.UglifyJsPlugin({ + compress: { + warnings: false + }, + sourceMap: true + }), + // extract css into its own file + new ExtractTextPlugin({ + filename: utils.assetsPath('css/[name].[contenthash].css') + }), + // Compress extracted CSS. We are using this plugin so that possible + // duplicated CSS from different components can be deduped. + new OptimizeCSSPlugin({ + cssProcessorOptions: { + safe: true + } + }), + // generate dist index.html with correct asset hash for caching. + // you can customize output by editing /index.html + // see https://github.com/ampedandwired/html-webpack-plugin + new HtmlWebpackPlugin({ + filename: process.env.NODE_ENV === 'testing' + ? 'index.html' + : config.build.index, + template: 'index.html', + inject: true, + minify: { + removeComments: true, + collapseWhitespace: true, + removeAttributeQuotes: true + // more options: + // https://github.com/kangax/html-minifier#options-quick-reference + }, + // necessary to consistently work with multiple chunks via CommonsChunkPlugin + chunksSortMode: 'dependency' + }), + // keep module.id stable when vender modules does not change + new webpack.HashedModuleIdsPlugin(), + // split vendor js into its own file + new webpack.optimize.CommonsChunkPlugin({ + name: 'vendor', + minChunks: function (module, count) { + // any required modules inside node_modules are extracted to vendor + return ( + module.resource && + /\.js$/.test(module.resource) && + module.resource.indexOf( + path.join(__dirname, '../node_modules') + ) === 0 + ) + } + }), + // extract webpack runtime and module manifest to its own file in order to + // prevent vendor hash from being updated whenever app bundle is updated + new webpack.optimize.CommonsChunkPlugin({ + name: 'manifest', + chunks: ['vendor'] + }), + // copy custom static assets + new CopyWebpackPlugin([ + { + from: path.resolve(__dirname, '../static'), + to: config.build.assetsSubDirectory, + ignore: ['.*'] + } + ]) + ] +}) + +if (config.build.productionGzip) { + var CompressionWebpackPlugin = require('compression-webpack-plugin') + + webpackConfig.plugins.push( + new CompressionWebpackPlugin({ + asset: '[path].gz[query]', + algorithm: 'gzip', + test: new RegExp( + '\\.(' + + config.build.productionGzipExtensions.join('|') + + ')$' + ), + threshold: 10240, + minRatio: 0.8 + }) + ) +} + +if (config.build.bundleAnalyzerReport) { + var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin + webpackConfig.plugins.push(new BundleAnalyzerPlugin()) +} + +module.exports = webpackConfig diff --git a/build/webpack.test.conf.js b/build/webpack.test.conf.js new file mode 100644 index 000000000..48f64cc31 --- /dev/null +++ b/build/webpack.test.conf.js @@ -0,0 +1,31 @@ +// This is the webpack config used for unit tests. + +var utils = require('./utils') +var webpack = require('webpack') +var merge = require('webpack-merge') +var baseConfig = require('./webpack.base.conf') + +var webpackConfig = merge(baseConfig, { + // use inline sourcemap for karma-sourcemap-loader + module: { + rules: utils.styleLoaders() + }, + devtool: '#inline-source-map', + resolveLoader: { + alias: { + // necessary to to make lang="scss" work in test when using vue-loader's ?inject option + // see discussion at https://github.com/vuejs/vue-loader/issues/724 + 'scss-loader': 'sass-loader' + } + }, + plugins: [ + new webpack.DefinePlugin({ + 'process.env': require('../config/test.env') + }) + ] +}) + +// no need for app entry during tests +delete webpackConfig.entry + +module.exports = webpackConfig diff --git a/config/dev.env.js b/config/dev.env.js new file mode 100644 index 000000000..efead7c84 --- /dev/null +++ b/config/dev.env.js @@ -0,0 +1,6 @@ +var merge = require('webpack-merge') +var prodEnv = require('./prod.env') + +module.exports = merge(prodEnv, { + NODE_ENV: '"development"' +}) diff --git a/config/index.js b/config/index.js new file mode 100644 index 000000000..86308f469 --- /dev/null +++ b/config/index.js @@ -0,0 +1,38 @@ +// see http://vuejs-templates.github.io/webpack for documentation. +var path = require('path') + +module.exports = { + build: { + env: require('./prod.env'), + index: path.resolve(__dirname, '../dist/index.html'), + assetsRoot: path.resolve(__dirname, '../dist'), + assetsSubDirectory: 'static', + assetsPublicPath: '/', + productionSourceMap: true, + // Gzip off by default as many popular static hosts such as + // Surge or Netlify already gzip all static assets for you. + // Before setting to `true`, make sure to: + // npm install --save-dev compression-webpack-plugin + productionGzip: false, + productionGzipExtensions: ['js', 'css'], + // Run the build command with an extra argument to + // View the bundle analyzer report after build finishes: + // `npm run build --report` + // Set to `true` or `false` to always turn it on or off + bundleAnalyzerReport: process.env.npm_config_report + }, + dev: { + env: require('./dev.env'), + port: 3001, + autoOpenBrowser: true, + assetsSubDirectory: 'static', + assetsPublicPath: '/', + proxyTable: {}, + // CSS Sourcemaps off by default because relative paths are "buggy" + // with this option, according to the CSS-Loader README + // (https://github.com/webpack/css-loader#sourcemaps) + // In our experience, they generally work as expected, + // just be aware of this issue when enabling this option. + cssSourceMap: false + } +} diff --git a/config/prod.env.js b/config/prod.env.js new file mode 100644 index 000000000..773d263d3 --- /dev/null +++ b/config/prod.env.js @@ -0,0 +1,3 @@ +module.exports = { + NODE_ENV: '"production"' +} diff --git a/config/test.env.js b/config/test.env.js new file mode 100644 index 000000000..89f90deb2 --- /dev/null +++ b/config/test.env.js @@ -0,0 +1,6 @@ +var merge = require('webpack-merge') +var devEnv = require('./dev.env') + +module.exports = merge(devEnv, { + NODE_ENV: '"testing"' +}) diff --git a/contracts/AuditorsRegistry.sol b/contracts/AuditorsRegistry.sol new file mode 100644 index 000000000..01a2e4fe9 --- /dev/null +++ b/contracts/AuditorsRegistry.sol @@ -0,0 +1,46 @@ +pragma solidity ^0.4.24; + +/** + * Author: xaxa + */ + +/** @title Auditors Registry. */ +/** @dev Allows to self register as an auditor, with a stake, and users to validate to consolidate your position */ + +contract AuditorsRegistry { + struct Auditor { + string name; + address[] validations; + bool unlisted; + uint reputation; + } + + mapping(address => Auditor) public auditors; + + function selfRegistration(string _name) public payable { + //primitive barrier to entry: a stake ( disabled to facilitate testing) + // require(msg.value == 1 ether); + auditors[msg.sender].name= _name; + } + + function selfUnlisting() public { + require(!auditors[msg.sender].unlisted ); + auditors[msg.sender].unlisted= true; + // msg.sender.transfer(1 ether); + } + + function getAuditor(address _addr) public view returns(string) { + return auditors[_addr].name; + } + + function validateAuditor(address _addr) public { + auditors[_addr].validations.push(msg.sender); + //if the validator is itself an auditor it adds some of its reputation + auditors[_addr].reputation = 1 + auditors[msg.sender].reputation/2; + } + + function getValidator(address _addr, uint _index) public view returns(address) { + return auditors[_addr].validations[_index]; + } + +} diff --git a/contracts/Bond.sol b/contracts/Bond.sol new file mode 100644 index 000000000..e02479666 --- /dev/null +++ b/contracts/Bond.sol @@ -0,0 +1,247 @@ +pragma solidity ^0.4.24; + +/** + * Author: Carlos Gonzalez -- Github: carlosgj94 + */ +/** @title Bond . */ + +import "./LoanRegistry.sol"; + + +contract Bond { + uint BLOCKSPERYEAR = 2138648; + + event BondTransfered(address newOwner, uint bloomId); + + struct BondStruct { + uint lender; + address lenderAddress; + uint borrower; + address borrowerAddress; + uint principal; + uint bidTimeFrame; + uint amountRepaid; + bool defaulted; + uint creationDate; // in block height + uint duration; // The amount of years + uint interestRate; + bool granted; + uint grade; + address auditor; + } + + BondStruct public bond; + + constructor ( + uint _borrower, + uint _principal, + uint _bidTimeFrame, + uint _duration, + uint _interestRate, + address _loanRegistry, + address _auditor + ) public { + BondStruct memory _bond = BondStruct({ + lender: 0, + lenderAddress: address(0), + borrower: _borrower, + borrowerAddress: address(0), + principal: _principal, + bidTimeFrame: _bidTimeFrame, + amountRepaid: 0, + defaulted: false, + creationDate: block.number, + duration: _duration, + interestRate: _interestRate, + granted: false, + grade: 0, + auditor: _auditor + }); + bond = _bond; + + LoanRegistry _loanRegistryContract = LoanRegistry(_loanRegistry); + + require(_loanRegistryContract.addLoan(_borrower, address(this)) == true); + } + + function getBond() + public view returns( + uint, + address, + uint, + address, + uint, + uint, + uint, + bool, + bool, + uint, + uint, + uint, + uint, + address + ) { + return + ( + bond.lender, + bond.lenderAddress, + bond.borrower, + bond.borrowerAddress, + bond.principal, + bond.bidTimeFrame, + bond.amountRepaid, + bond.defaulted, + getComplete(), + bond.creationDate, + bond.duration, + bond.interestRate, + bond.grade, + bond.auditor + ); + } + + function getLender() public view returns(uint) { + return bond.lender; + } + + function getLenderAddress() public view returns(address) { + return bond.lenderAddress; + } + + function getBorrower() public view returns(uint) { + return bond.borrower; + } + + function getBorrowerAddress() public view returns(address) { + return bond.borrowerAddress; + } + + function getPrincipal() public view returns(uint) { + return bond.principal; + } + + function bidTimeFrame() public view returns(uint) { + return bond.bidTimeFrame; + } + + function getAmountRepaid() public view returns(uint) { + return bond.amountRepaid; + } + + function getComplete() public view returns(bool) { + if (bond.creationDate + bond.bidTimeFrame + bond.duration * 2138648 <= block.number && + bond.amountRepaid >= getTotalToPay()) { + return true; + } + } + + function getDefaulted() public view returns(bool) { + return bond.defaulted; + } + + function getCreationDate() public view returns(uint) { + return bond.creationDate; + } + + function getDuration() public view returns(uint) { + return bond.duration; + } + + function getInterestRate() public view returns(uint) { + return bond.interestRate; + } + + function getTotalToPay() public view returns(uint) { + require(bond.granted == true); + + return bond.principal + (((bond.interestRate*100) / bond.principal) * bond.duration); + } + + function getRating() public view returns(uint) { + return bond.grade; + } + + function getAuditor() public view returns(address) { + return bond.auditor; + } + + + function getGrade() public view returns(uint) { + return bond.grade; + } + + function setRating(uint rate) public { + require(msg.sender == bond.auditor); + require(rate < 32); + + bond.grade = rate; + } + + function isBiddingTime() public view returns(bool) { + if (bond.creationDate + bond.bidTimeFrame < block.number) + return true; + else + return false; + } + + function setGrade(uint _grade) public { + require(msg.sender == bond.auditor); + require(_grade>=0 && _grade<21); + bond.grade=_grade; + } + + function addBid(uint _interestRate, uint _bloomId) public returns(bool) { + require(_interestRate < bond.interestRate); + require(bond.creationDate + bond.bidTimeFrame > block.number); + require(getComplete() == false); + + bond.borrower = _bloomId; + bond.borrowerAddress = msg.sender; + bond.interestRate = _interestRate; + return true; + } + + function giveLoan() public payable { + require(bond.creationDate + bond.bidTimeFrame < block.number); + require(getComplete() == false); + // One week to give the loan timeframe + require(bond.creationDate + bond.bidTimeFrame + 41000 > block.number); + + if (msg.value >= bond.principal || address(this).balance >= bond.principal) { + bond.granted = true; + bond.borrowerAddress.transfer(msg.value); + } + } + + function payCouponRate() public payable { + require(getComplete() == true); + require(bond.creationDate + bond.bidTimeFrame > block.number); + + bond.amountRepaid += msg.value; + bond.borrowerAddress.transfer(msg.value); + } + + function setDefaulted() public { + require(getComplete() == false); + require(isBiddingTime() == false); + + uint _yearsPassed = (block.number - bond.creationDate + bond.bidTimeFrame)/2138648; + if ( + (_yearsPassed >= bond.duration && getComplete() == false) || + (bond.amountRepaid < _yearsPassed * (bond.interestRate * 100) / bond.principal) + ) { + bond.defaulted = true; + // These scammers... + // Do something in here + } + + } + + function transferBond(address _newOwner, uint _bloomId) public { + require(msg.sender == bond.lenderAddress); + + bond.lenderAddress = _newOwner; + bond.lender = _bloomId; + emit BondTransfered(_newOwner, _bloomId); + } +} diff --git a/contracts/LoanRegistry.sol b/contracts/LoanRegistry.sol new file mode 100644 index 000000000..b72a5b38f --- /dev/null +++ b/contracts/LoanRegistry.sol @@ -0,0 +1,35 @@ +pragma solidity ^0.4.24; + +/** + * Author: Carlos Gonzalez -- Github: carlosgj94 + */ +/** @title Loan Registry. */ + +contract LoanRegistry { + mapping(uint => address[]) public loansByBloomId; + address[] public loans; + + event LoanCreated(uint bloomId, address loan); + + function addLoan(uint _bloomId, address _loanAddress) public returns(bool) { + loansByBloomId[_bloomId].push(_loanAddress); + loans.push(_loanAddress); + emit LoanCreated(_bloomId, _loanAddress); + return true; + } + + function getLoansLength() public view returns(uint) { + return loans.length; + } + + function getLoans(uint _index) public view returns(address[10]) { + address[10] memory _loans; + uint _counter = 0; + while (_counter + (10 * _index) < loans.length) { + _loans[_counter] = loans[_counter + (10 * _index)]; + _counter++; + } + + return (_loans); + } +} diff --git a/contracts/Migrations.sol b/contracts/Migrations.sol new file mode 100644 index 000000000..cf15a8e58 --- /dev/null +++ b/contracts/Migrations.sol @@ -0,0 +1,24 @@ +pragma solidity ^0.4.24; + + +contract Migrations { + address public owner; + uint public lastCompletedMigration; + + modifier restricted() { + if (msg.sender == owner) _; + } + + constructor() public { + owner = msg.sender; + } + + function setCompleted(uint completed) public restricted { + lastCompletedMigration = completed; + } + + function upgrade(address newAddress) public restricted { + Migrations upgraded = Migrations(newAddress); + upgraded.setCompleted(lastCompletedMigration); + } +} diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 000000000..48c8a3197 --- /dev/null +++ b/dist/index.html @@ -0,0 +1 @@ +eth-vue
\ No newline at end of file diff --git a/dist/static/css/app.6cbfb67fb6e3b1d8078abb6f05a930e0.css b/dist/static/css/app.6cbfb67fb6e3b1d8078abb6f05a930e0.css new file mode 100644 index 000000000..19dee9481 --- /dev/null +++ b/dist/static/css/app.6cbfb67fb6e3b1d8078abb6f05a930e0.css @@ -0,0 +1 @@ +body{margin:0;width:100%}*{box-sizing:border-box}a{text-decoration:none;color:inherit}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;width:100%;min-width:1020px;margin:auto}#profile[data-v-010bf07b]{width:100%;height:420px}.blockchain-message[data-v-010bf07b]{float:left;margin-top:20px;font-size:14px;border:1px solid #dcdede;color:#4d4c49;width:auto;padding:10px}.content[data-v-010bf07b]{height:100%;text-align:center;max-width:920px;margin:auto;padding:160px}.message[data-v-010bf07b]{height:80px;line-height:40px}#profile-form[data-v-0692b5df]{width:100%;height:420px;position:relative;top:100px}h3[data-v-0692b5df]{width:100px;margin:auto;margin-bottom:20px}.row[data-v-0692b5df]{margin-top:20px;font-size:14px;width:300px;height:40px;display:block;margin:auto}label[data-v-0692b5df]{height:100%;line-height:40px;width:100px;display:inline-block}input[type=text][data-v-0692b5df]{height:30px;line-height:30px;width:200px;display:inline-block;color:#4d4c49;outline:none}input[data-v-0692b5df]{height:30px;line-height:30px;width:100px;float:right}#web3-message[data-v-6477bc0c]{width:100%;height:420px}.blockchain-message[data-v-6477bc0c]{float:left;margin-top:20px;font-size:14px;border:1px solid #dcdede;color:#4d4c49;width:auto;padding:10px}.content[data-v-6477bc0c]{height:100%;text-align:center;max-width:920px;margin:auto;padding:160px}.message[data-v-6477bc0c]{height:80px;line-height:40px}.metamask-resource[data-v-6477bc0c]{background:url(/.static/images/metamask.png) no-repeat;background-size:contain;height:auto;width:20px}#header-template[data-v-7f942609],#home[data-v-2f35305c]{width:100%}.sticky[data-v-7f942609]{position:fixed;padding:5px 20px;top:0;height:70px;background:#bababa;width:100%;box-sizing:border-box;z-index:666}.content[data-v-7f942609]{height:60px;line-height:60px}.logo[data-v-7f942609]{float:left;width:250px;height:36px;background-size:contain;margin:15px 0;text-decoration:none;color:#4d4c49}.links[data-v-7f942609]{float:right;height:60px}.links[data-v-7f942609]:before{content:"|||||";color:#dcdede;position:absolute;right:20px;height:20px;line-height:20px;top:40px}.links:hover a[data-v-7f942609]{display:block}.links a[data-v-7f942609]{display:none;width:150px;height:50px;line-height:50px;font-size:14px;color:#bababa;text-decoration:none;text-align:center;border-bottom:1px solid #dcdede;background:#efefef;position:absolute;right:20px}.links a[data-v-7f942609]:last-child{border:none}.links a[data-v-7f942609]:hover{background:#dcdede;color:#feffff}.link1[data-v-7f942609]{top:60px}.link2[data-v-7f942609]{top:110px}.link3[data-v-7f942609]{top:160px}.link4[data-v-7f942609]{top:210px}.divider[data-v-7f942609]{display:none}@media only screen and (min-width:780px){.links[data-v-7f942609]:before{display:none}.links:hover a[data-v-7f942609]{display:inline-block}.links a[data-v-7f942609],.links a[data-v-7f942609]:hover{background:transparent;color:#4c4e49}.links a[data-v-7f942609]{display:inline-block;width:auto;margin-top:5px;border:none;position:relative;top:0;right:0}.divider[data-v-7f942609]{color:#4c4e49;display:inline-block}.divider[data-v-7f942609]:before{content:"|"}}.body-template[data-v-6a0a301e]{width:100%}#footer-template[data-v-10c3d417]{width:100%;background:#bababa;color:#1d1e1f;height:150px;position:fixed;bottom:0;min-width:700px}.content[data-v-10c3d417]{height:100%;max-width:920px;margin:auto;text-align:center;padding:50px 0 10px}.links[data-v-10c3d417]{clear:both;height:20px;margin-bottom:30px}.links a[data-v-10c3d417]{color:inherit;text-decoration:none}.divider[data-v-10c3d417]{color:inherit}.divider[data-v-10c3d417]:before{content:"|"}.copyright[data-v-10c3d417]{clear:both;height:20px;font-size:14px}.copyleft-resource[data-v-10c3d417]{background:url(/static/images/copyleft.png) no-repeat;height:20px;width:20px;display:inline-block;background-size:contain}.social[data-v-10c3d417]{clear:both;height:20px;float:right;position:relative;top:-39px}.facebook[data-v-10c3d417]{display:inline-block;width:20px;height:20px;background:url(/static/images/Facebook.png) no-repeat;background-size:contain}.twitter[data-v-10c3d417]{display:inline-block;width:20px;margin:0 0 0 30px;height:20px;background:url(/static/images/twitter.png) no-repeat;background-size:contain}#dashboard[data-v-2d3a9c31]{width:100%} \ No newline at end of file diff --git a/dist/static/css/app.6cbfb67fb6e3b1d8078abb6f05a930e0.css.map b/dist/static/css/app.6cbfb67fb6e3b1d8078abb6f05a930e0.css.map new file mode 100644 index 000000000..c52f89fd2 --- /dev/null +++ b/dist/static/css/app.6cbfb67fb6e3b1d8078abb6f05a930e0.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./src/components/App.vue","webpack:///./src/components/sections/Profile.vue","webpack:///./src/components/sections/ProfileForm.vue","webpack:///./src/components/sections/Web3Message.vue","webpack:///./src/components/Home.vue","webpack:///./src/components/layout/HeaderTemplate.vue","webpack:///./src/components/layout/BodyTemplate.vue","webpack:///./src/components/layout/FooterTemplate.vue","webpack:///./src/components/Dashboard.vue"],"names":[],"mappings":"AACA,KACE,SACA,UAAY,CAEd,EACE,8BACQ,qBAAuB,CAEjC,EACE,qBACA,aAAe,CAEjB,KACE,8CACA,mCACA,kCACA,cACA,WACA,iBACA,WAAa,CCnBf,0BACE,WACA,YAAc,CAEhB,qCACE,WACA,gBACA,eACA,yBACA,cACA,WACA,YAAc,CAEhB,0BACE,YACA,kBACA,gBACA,YACA,aAAe,CAEjB,0BACE,YACA,gBAAkB,CCtBpB,+BACE,WACA,aACA,kBACA,SAAW,CAEb,oBACE,YACA,YACA,kBAAoB,CAEtB,sBACE,gBACA,eACA,YACA,YACA,cACA,WAAa,CAEf,uBACE,YACA,iBACA,YACA,oBAAsB,CAExB,kCACE,YACA,iBACA,YACA,qBACA,cACA,YAAc,CAEhB,uBACE,YACA,iBACA,YACA,WAAa,CCrCf,+BACE,WACA,YAAc,CAEhB,qCACE,WACA,gBACA,eACA,yBACA,cACA,WACA,YAAc,CAEhB,0BACE,YACA,kBACA,gBACA,YACA,aAAe,CAEjB,0BACE,YACA,gBAAkB,CAEpB,oCACE,yDACA,wBACA,YACA,UAAY,CC5Bd,uBACE,UAAY,CCDd,kCACE,UAAY,CAEd,yBACE,eACA,iBACA,MACA,YACA,mBACA,WACA,8BACQ,sBACR,WAAa,CAEf,0BACE,YACA,gBAAkB,CAEpB,uBACE,WACA,YACA,YACA,wBACA,cACA,qBACA,aAAe,CAEjB,wBACE,YACA,WAAa,CAEf,+BACE,gBACA,cACA,kBACA,WACA,YACA,iBACA,QAAU,CAEZ,gCACE,aAAe,CAEjB,0BACE,aACA,YACA,YACA,iBACA,eACA,cACA,qBACA,kBACA,gCACA,mBACA,kBACA,UAAY,CAEd,qCACE,WAAa,CAEf,gCACE,mBACA,aAAe,CAEjB,wBACE,QAAU,CAEZ,wBACE,SAAW,CAEb,wBACE,SAAW,CAEb,wBACE,SAAW,CAEb,0BACE,YAAc,CAEhB,yCACA,+BACI,YAAc,CAElB,gCACI,oBAAsB,CAM1B,0DAHI,uBACA,aAAe,CAYlB,0BATG,qBACA,WACA,eAEA,YACA,kBACA,MAEA,OAAW,CAEf,0BACI,cACA,oBAAsB,CAE1B,iCACI,WAAa,CAChB,CC3GD,gCACE,UAAY,CCDd,kCACE,WACA,mBACA,cACA,aACA,eACA,SACA,eAAgB,CAElB,0BACE,YACA,gBACA,YACA,kBACA,mBAA2B,CAE7B,wBACE,WACA,YACA,kBAAoB,CAEtB,0BACE,cACA,oBAAsB,CAExB,0BACE,aAAe,CAEjB,iCACE,WAAY,CAEd,4BACE,WACA,YACA,cAAgB,CAElB,oCACE,wDACA,YACA,WACA,qBACA,uBAAyB,CAE3B,yBACE,WACA,YACA,YACA,kBACA,SAAW,CAEb,2BACE,qBACA,WACA,YACA,wDACA,uBAAyB,CAE3B,0BACE,qBACA,WACA,kBACA,YACA,uDACA,uBAAyB,CC/D3B,4BACE,UAAY","file":"static/css/app.6cbfb67fb6e3b1d8078abb6f05a930e0.css","sourcesContent":["\nbody {\n margin: 0;\n width: 100%;\n}\n* {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\na {\n text-decoration: none;\n color: inherit;\n}\n#app {\n font-family: 'Avenir', Helvetica, Arial, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n color: #2c3e50;\n width: 100%;\n min-width: 1020px;\n margin: auto;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/App.vue","\n#profile[data-v-010bf07b] {\n width: 100%;\n height: 420px;\n}\n.blockchain-message[data-v-010bf07b] {\n float: left;\n margin-top: 20px;\n font-size: 14px;\n border: 1px solid #dcdede;\n color: #4d4c49;\n width: auto;\n padding: 10px;\n}\n.content[data-v-010bf07b] {\n height: 100%;\n text-align: center;\n max-width: 920px;\n margin: auto;\n padding: 160px;\n}\n.message[data-v-010bf07b] {\n height: 80px;\n line-height: 40px;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/sections/Profile.vue","\n#profile-form[data-v-0692b5df] {\n width: 100%;\n height: 420px;\n position: relative;\n top: 100px;\n}\nh3[data-v-0692b5df] {\n width: 100px;\n margin: auto;\n margin-bottom: 20px;\n}\n.row[data-v-0692b5df] {\n margin-top: 20px;\n font-size: 14px;\n width: 300px;\n height: 40px;\n display: block;\n margin: auto;\n}\nlabel[data-v-0692b5df] {\n height: 100%;\n line-height: 40px;\n width: 100px;\n display: inline-block;\n}\ninput[type=text][data-v-0692b5df] {\n height: 30px;\n line-height: 30px;\n width: 200px;\n display: inline-block;\n color: #4d4c49;\n outline: none;\n}\ninput[data-v-0692b5df] {\n height: 30px;\n line-height: 30px;\n width: 100px;\n float: right;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/sections/ProfileForm.vue","\n#web3-message[data-v-6477bc0c] {\n width: 100%;\n height: 420px;\n}\n.blockchain-message[data-v-6477bc0c] {\n float: left;\n margin-top: 20px;\n font-size: 14px;\n border: 1px solid #dcdede;\n color: #4d4c49;\n width: auto;\n padding: 10px;\n}\n.content[data-v-6477bc0c] {\n height: 100%;\n text-align: center;\n max-width: 920px;\n margin: auto;\n padding: 160px;\n}\n.message[data-v-6477bc0c] {\n height: 80px;\n line-height: 40px;\n}\n.metamask-resource[data-v-6477bc0c] {\n background: url('/.static/images/metamask.png') no-repeat;\n background-size: contain;\n height: auto;\n width: 20px;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/sections/Web3Message.vue","\n#home[data-v-2f35305c] {\n width: 100%;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Home.vue","\n#header-template[data-v-7f942609] {\n width: 100%;\n}\n.sticky[data-v-7f942609] {\n position: fixed;\n padding: 5px 20px;\n top: 0px;\n height: 70px;\n background: #bababa;\n width: 100%;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n z-index: 666;\n}\n.content[data-v-7f942609] {\n height: 60px;\n line-height: 60px;\n}\n.logo[data-v-7f942609] {\n float: left;\n width: 250px;\n height: 36px;\n background-size: contain;\n margin: 15px 0px;\n text-decoration: none;\n color: #4d4c49;\n}\n.links[data-v-7f942609] {\n float: right;\n height: 60px;\n}\n.links[data-v-7f942609]:before {\n content: '|||||';\n color: #dcdede;\n position: absolute;\n right: 20px;\n height: 20px;\n line-height: 20px;\n top: 40px;\n}\n.links:hover a[data-v-7f942609] {\n display: block;\n}\n.links a[data-v-7f942609] {\n display: none;\n width: 150px;\n height: 50px;\n line-height: 50px;\n font-size: 14px;\n color: #bababa;\n text-decoration: none;\n text-align: center;\n border-bottom: 1px solid #dcdede;\n background: #efefef;\n position: absolute;\n right: 20px;\n}\n.links a[data-v-7f942609]:last-child {\n border: none;\n}\n.links a[data-v-7f942609]:hover {\n background: #dcdede;\n color: #feffff;\n}\n.link1[data-v-7f942609] {\n top: 60px;\n}\n.link2[data-v-7f942609] {\n top: 110px;\n}\n.link3[data-v-7f942609] {\n top: 160px;\n}\n.link4[data-v-7f942609] {\n top: 210px;\n}\n.divider[data-v-7f942609] {\n display: none;\n}\n@media only screen and (min-width: 780px) {\n.links[data-v-7f942609]:before {\n display: none;\n}\n.links:hover a[data-v-7f942609] {\n display: inline-block;\n}\n.links a[data-v-7f942609]:hover {\n background: transparent;\n color: #4c4e49;\n}\n.links a[data-v-7f942609] {\n display: inline-block;\n width: auto;\n margin-top: 5px;\n color: #4c4e49;\n border: none;\n position: relative;\n top: 0px;\n background: transparent;\n right: 0px;\n}\n.divider[data-v-7f942609] {\n color: #4c4e49;\n display: inline-block;\n}\n.divider[data-v-7f942609]:before {\n content: \"|\";\n}\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/layout/HeaderTemplate.vue","\n.body-template[data-v-6a0a301e] {\n width: 100%;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/layout/BodyTemplate.vue","\n#footer-template[data-v-10c3d417] {\n width: 100%;\n background: #bababa;\n color: #1d1e1f;\n height: 150px;\n position: fixed;\n bottom: 0;\n min-width: 700px\n}\n.content[data-v-10c3d417] {\n height: 100%;\n max-width: 920px;\n margin: auto;\n text-align: center;\n padding: 50px 0px 10px 0px;\n}\n.links[data-v-10c3d417] {\n clear: both;\n height: 20px;\n margin-bottom: 30px;\n}\n.links a[data-v-10c3d417] {\n color: inherit;\n text-decoration: none;\n}\n.divider[data-v-10c3d417] {\n color: inherit;\n}\n.divider[data-v-10c3d417]:before {\n content: \"|\"\n}\n.copyright[data-v-10c3d417] {\n clear: both;\n height: 20px;\n font-size: 14px;\n}\n.copyleft-resource[data-v-10c3d417] {\n background: url('/static/images/copyleft.png') no-repeat;\n height: 20px;\n width: 20px;\n display: inline-block;\n background-size: contain;\n}\n.social[data-v-10c3d417] {\n clear: both;\n height: 20px;\n float: right;\n position: relative;\n top: -39px;\n}\n.facebook[data-v-10c3d417] {\n display: inline-block;\n width: 20px;\n height: 20px;\n background: url('/static/images/Facebook.png') no-repeat;\n background-size: contain;\n}\n.twitter[data-v-10c3d417] {\n display: inline-block;\n width: 20px;\n margin: 0px 0px 0px 30px;\n height: 20px;\n background: url('/static/images/twitter.png') no-repeat;\n background-size: contain;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/layout/FooterTemplate.vue","\n#dashboard[data-v-2d3a9c31] {\n width: 100%;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/components/Dashboard.vue"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/static/images/Facebook.png b/dist/static/images/Facebook.png new file mode 100644 index 000000000..d0f9a88f9 Binary files /dev/null and b/dist/static/images/Facebook.png differ diff --git a/dist/static/images/copyleft.png b/dist/static/images/copyleft.png new file mode 100644 index 000000000..83d82bf88 Binary files /dev/null and b/dist/static/images/copyleft.png differ diff --git a/dist/static/images/danielokwufulueze.png b/dist/static/images/danielokwufulueze.png new file mode 100644 index 000000000..922e9c46a Binary files /dev/null and b/dist/static/images/danielokwufulueze.png differ diff --git a/dist/static/images/metamask.png b/dist/static/images/metamask.png new file mode 100644 index 000000000..f1da8d4ee Binary files /dev/null and b/dist/static/images/metamask.png differ diff --git a/dist/static/images/twitter.png b/dist/static/images/twitter.png new file mode 100644 index 000000000..5c3eb0114 Binary files /dev/null and b/dist/static/images/twitter.png differ diff --git a/dist/static/js/app.e2d35e51f4b7fe2e8ce9.js b/dist/static/js/app.e2d35e51f4b7fe2e8ce9.js new file mode 100644 index 000000000..b74cdc7e9 --- /dev/null +++ b/dist/static/js/app.e2d35e51f4b7fe2e8ce9.js @@ -0,0 +1,2 @@ +webpackJsonp([1],{"+lBM":function(e,t){e.exports={_from:"truffle-contract-schema@0.0.5",_id:"truffle-contract-schema@0.0.5",_inBundle:!1,_integrity:"sha1-Xp0gvQvyon/pQxB0gknUhO7kmWE=",_location:"/truffle-contract-schema",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"truffle-contract-schema@0.0.5",name:"truffle-contract-schema",escapedName:"truffle-contract-schema",rawSpec:"0.0.5",saveSpec:null,fetchSpec:"0.0.5"},_requiredBy:["/truffle-contract"],_resolved:"https://registry.npmjs.org/truffle-contract-schema/-/truffle-contract-schema-0.0.5.tgz",_shasum:"5e9d20bd0bf2a27fe94310748249d484eee49961",_spec:"truffle-contract-schema@0.0.5",_where:"/home/daniel/dev/vue/apps/eth-vue/node_modules/truffle-contract",author:{name:"Tim Coulter",email:"tim.coulter@consensys.net"},bugs:{url:"https://github.com/trufflesuite/truffle-schema/issues"},bundleDependencies:!1,dependencies:{"crypto-js":"^3.1.9-1"},deprecated:!1,description:"JSON schema for contract artifacts",devDependencies:{mocha:"^3.2.0"},homepage:"https://github.com/trufflesuite/truffle-schema#readme",keywords:["ethereum","json","schema","contract","artifacts"],license:"MIT",main:"index.js",name:"truffle-contract-schema",repository:{type:"git",url:"git+https://github.com/trufflesuite/truffle-schema.git"},scripts:{test:"mocha"},version:"0.0.5"}},"+xc3":function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return i});var a={1:"Main Net",2:"Deprecated Morden test network",3:"Ropsten test network",4:"Rinkeby test network",42:"Kovan test network",765:"DanielNet test network",approvedBlockchainNetwork:"3"},s={CHANGE_CURRENT_ROUTE_TO:"changeCurrentRouteTo",REGISTER_WEB3_INSTANCE:"registerWeb3Instance",UPDATE_USER_BLOCKCHAIN_STATUS:"updateUserBlockchainStatus",LOGIN:"login",LOGOUT:"logout"},i=s},"0lwJ":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sticky header",attrs:{id:"header-template"}},[n("div",{staticClass:"content"},[n("router-link",{staticClass:"logo",attrs:{to:"/"}},[e._v("INSERT YOUR LOGO HERE")]),e._v(" "),n("div",{staticClass:"links"},[e.isLoggedIn?e._e():n("router-link",{staticClass:"link1",attrs:{to:"/sign-up"}},[e._v("Sign Up")]),e._v(" "),e.isLoggedIn?e._e():n("span",{staticClass:"divider"}),e._v(" "),e.isLoggedIn?e._e():n("input",{staticClass:"link1",attrs:{type:"button",value:"Login"},on:{click:e.logUserIn}}),e._v(" "),e.isLoggedIn?e._e():n("span",{staticClass:"divider"}),e._v(" "),e.isLoggedIn?n("router-link",{staticClass:"link2",attrs:{to:"/profile/edit"}},[e._v("Edit Profile")]):e._e(),e._v(" "),e.isLoggedIn?n("span",{staticClass:"divider"}):e._e(),e._v(" "),e.isLoggedIn?n("input",{staticClass:"link2",attrs:{type:"button",value:"Logout"},on:{click:e.logUserOut}}):e._e(),e._v(" "),e.isLoggedIn?n("span",{staticClass:"divider"}):e._e(),e._v(" "),n("a",{staticClass:"link3",attrs:{href:"https://github.com/DOkwufulueze/eth-vue",target:"_blank"}},[e._v("Github")]),e._v(" "),n("span",{staticClass:"divider"}),e._v(" "),n("a",{staticClass:"link4",attrs:{href:"http://danielokwufulueze.com",target:"_blank"}},[e._v("www")])],1)],1)])},s=[],i={render:a,staticRenderFns:s};t.a=i},"1Sql":function(e,t,n){"use strict";var a=n("Dd8w"),s=n.n(a),i=n("NYxO"),o=n("N9OI"),r=n("+xc3");t.a={name:"header-template",computed:{user:function(){return this.$store.state.user},isLoggedIn:function(){return this.$store.state.user.isLoggedIn}},methods:s()({},n.i(i.b)([r.a.LOGIN,r.a.LOGOUT]),{logUserIn:function(e){var t=this;e.target.disabled=!0,this.$store.state.user.isLoggedIn||o.a.login(this.$store.state).then(function(n){t[r.a.LOGIN](n).then(function(n){e.target.disabled=!1,t.$store.state.user.isLoggedIn?t.$router.push("/dashboard"):t.$router.push("/")})})},logUserOut:function(e){var t=this;e.target.disabled=!0,this[r.a.LOGOUT]().then(function(){e.target.disabled=!1,t.$router.push("/")})}})}},"2NTp":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"profile-form"}},[n("h3",[e._v(e._s("/sign-up"===this.$route.path?"Sign Up":"Edit Profile"))]),e._v(" "),n("div",{staticClass:"row"},[n("label",{attrs:{for:"first-name"}},[e._v("First name")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.firstName,expression:"firstName"}],attrs:{type:"text",id:"first-name",name:"first-name"},domProps:{value:e.firstName},on:{input:function(t){t.target.composing||(e.firstName=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"row"},[n("label",{attrs:{for:"last-name"}},[e._v("Last name")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.lastName,expression:"lastName"}],attrs:{type:"text",id:"Last-name",name:"Last-name"},domProps:{value:e.lastName},on:{input:function(t){t.target.composing||(e.lastName=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"row"},[n("label",{attrs:{for:"email"}},[e._v("Email")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],attrs:{type:"text",id:"email",name:"email"},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}})]),e._v(" "),n("div",{staticClass:"row"},[n("input",{attrs:{type:"button",value:"Submit"},on:{click:e.submitProfileToTheBlockchain}})])])},s=[],i={render:a,staticRenderFns:s};t.a=i},"2g7C":function(e,t,n){"use strict";function a(e){n("HPCu")}var s=n("f2im"),i=n("mOn1"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-10c3d417",null);t.a=u.exports},D5te:function(e,t){e.exports=[{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_refund",type:"address"}],name:"disown",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"}],name:"setAddr",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"}]},DQit:function(e,t){},EEbw:function(e,t){e.exports={version:"0.16.0"}},EWfp:function(e,t,n){"use strict";function a(e){n("DQit")}var s=n("EZYi"),i=n("xGuS"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,null,null);t.a=u.exports},EZYi:function(e,t,n){"use strict";var a=n("Dd8w"),s=n.n(a),i=n("NYxO"),o=n("+xc3"),r=n("POeb"),u=n("Z1Py"),c=n("rEmu");t.a={name:"app",computed:s()({},n.i(i.a)({hasInjectedWeb3:function(e){return e.web3.isInjected},hasWeb3InjectedBrowser:function(e){return e.user.hasWeb3InjectedBrowser},isConnectedToApprovedNetwork:function(e){return e.user.isConnectedToApprovedNetwork},hasCoinbase:function(e){return e.user.hasCoinbase},networkId:function(e){return e.web3.networkId},coinbase:function(e){return e.web3.coinbase},currentRoute:function(e){return e.currentRoute},user:function(e){return e.user}}),{currentView:function(){switch(this.$route.path){case"/home":return c.a;case"/dashboard":return r.a;case"/sign-up":case"/profile/edit":return u.a;default:return c.a}}}),components:{Profile:r.a,ProfileForm:u.a,Web3Message:c.a},beforeCreate:function(){var e=this;this.$store.dispatch(o.a.REGISTER_WEB3_INSTANCE).then(function(){e.$store.dispatch(o.a.UPDATE_USER_BLOCKCHAIN_STATUS)}).catch(function(e){console.log("We've encountered problems with your Web3 connection")})},created:function(){this[o.a.CHANGE_CURRENT_ROUTE_TO](this.$route)},methods:s()({},n.i(i.b)([o.a.CHANGE_CURRENT_ROUTE_TO,o.a.UPDATE_USER_BLOCKCHAIN_STATUS])),watch:{hasInjectedWeb3:function(e){console.log("hasInjectedWeb3: ",e)},networkId:function(e){console.log("networkId: "+e)},coinbase:function(e){console.log("coinbase: "+e)},$route:function(e){this[o.a.CHANGE_CURRENT_ROUTE_TO](e)}}}},Fs8J:function(e,t,n){"use strict";var a=n("yz5X"),s=n("ffIc"),i=n("2g7C");t.a={name:"home",props:["currentView"],components:{HeaderTemplate:a.a,BodyTemplate:s.a,FooterTemplate:i.a},computed:{user:function(){return this.$store.state.user}}}},HPCu:function(e,t){},IcnI:function(e,t,n){"use strict";var a=n("7+uW"),s=n("NYxO"),i=n("lwq5"),o=n("mUbh"),r=n("UjVw"),u=n.n(r),c=n("ukYY");a.a.use(s.c);var d=new s.c.Store({state:i.a,actions:o.a,getters:u.a,mutations:c.a});t.a=d},LmkH:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"home"}},[n("HeaderTemplate"),e._v(" "),n("BodyTemplate",{attrs:{"current-view":e.currentView}}),e._v(" "),n("FooterTemplate")],1)},s=[],i={render:a,staticRenderFns:s};t.a=i},N9OI:function(e,t,n){"use strict";var a=n("//Fk"),s=n.n(a),i=n("Zrlr"),o=n.n(i),r=n("wxAW"),u=n.n(r),c=n("dztg"),d=n.n(c),p=n("ZBzV"),m=n.n(p),f=null,l=function(){function e(){return o()(this,e),f=f||this}return u()(e,[{key:"editProfile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.a(function(a,i){e.accessAuthenticationContractWith({state:t,method:function(e,t){return new s.a(function(a,s){e.update(n.firstName,n.lastName,n.email,{from:t}).then(function(e){a(n)}).catch(function(e){console.error(e)})})}}).then(function(e){a(e)})})}},{key:"signup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.a(function(a,i){e.accessAuthenticationContractWith({state:t,method:function(e,t){return new s.a(function(a,s){e.signup(n.firstName,n.lastName,n.email,{from:t}).then(function(e){a(n)}).catch(function(e){console.error(e)})})}}).then(function(e){a(e)})})}},{key:"login",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new s.a(function(n,a){e.accessAuthenticationContractWith({state:t,method:function(n,a){return new s.a(function(s,i){n.login({from:a}).then(function(n){s(e.getUTF8DataOfResults(t,n))}).catch(function(e){console.error(e)})})}}).then(function(e){n(e)})})}},{key:"accessAuthenticationContractWith",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.state;return new s.a(function(n,a){if(t&&t.web3&&t.web3.instance){var s=d()(m.a);s.setProvider(t.web3.instance().currentProvider),t.web3.instance().eth.getCoinbase(function(t,i){t?(console.err(":::Unable to get coinbase for this operation"),a(t)):s.deployed().then(function(t){e.method(t,i).then(function(e){n(e)})})})}else console.log("Web3 is not initialised. Use a Web3 injector")})}},{key:"getUTF8DataOfResults",value:function(e,t){var n=t.map(function(t){return e.web3.instance().toUtf8(t)});return{firstName:n[0],lastName:n[1],email:n[2]}}}]),e}();t.a=new l},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("7+uW"),s=n("EWfp"),i=n("YaEn"),o=n("IcnI");a.a.config.devtools=!0,a.a.config.productionTip=!1,new a.a({el:"#app",router:i.a,store:o.a,template:"",components:{App:s.a}})},Ow54:function(e,t){},POeb:function(e,t,n){"use strict";function a(e){n("zrg/")}var s=n("SQ2D"),i=n("myIA"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-010bf07b",null);t.a=u.exports},Qm11:function(e,t){e.exports=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_content",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"disown",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_winner",type:"address"}],name:"AuctionEnded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_bidder",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"NewBid",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"},{indexed:!0,name:"addr",type:"address"}],name:"PrimaryChanged",type:"event"}]},"R/pS":function(e,t){e.exports=[{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"name",outputs:[{name:"o_name",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"subRegistrar",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_registrar",type:"address"}],name:"setSubRegistrar",outputs:[],type:"function"},{constant:!1,inputs:[],name:"Registrar",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"},{name:"_primary",type:"bool"}],name:"setAddress",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_content",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"disown",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_winner",type:"address"}],name:"AuctionEnded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_name",type:"bytes32"},{indexed:!1,name:"_bidder",type:"address"},{indexed:!1,name:"_value",type:"uint256"}],name:"NewBid",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"},{indexed:!0,name:"addr",type:"address"}],name:"PrimaryChanged",type:"event"}]},SQ2D:function(e,t,n){"use strict";t.a={name:"profile",computed:{user:function(){return this.$store.state.user},isLoggedIn:function(){return this.$store.state.user.isLoggedIn}}}},TGvd:function(e,t,n){"use strict";function a(e){n("Ow54")}var s=n("aEfQ"),i=n("m7aE"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-2d3a9c31",null);t.a=u.exports},"U+8w":function(e,t){},UIsv:function(e,t){e.exports=[{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_refund",type:"address"}],name:"disown",outputs:[],type:"function"},{constant:!0,inputs:[{name:"_name",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"}],name:"reserve",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_newOwner",type:"address"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"_name",type:"bytes32"},{name:"_a",type:"address"}],name:"setAddr",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"name",type:"bytes32"}],name:"Changed",type:"event"}]},UjVw:function(e,t){},VfEa:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"web3-message"}},[n("div",{staticClass:"content"},[n("div",{staticClass:"message"},[e.user.hasWeb3InjectedBrowser?n("div",[e._v("\n Your browser is Web3-injected.\n "),n("br"),e._v(" "),e.user.isConnectedToApprovedNetwork?n("div",[e._v("\n You are also connected to the "+e._s(e.approvedNetworkName)+" on the blockchain.\n "),n("br"),e._v(" "),e.user.hasCoinbase?n("div",[e._v("\n And you have an account on the blockchain."),n("br"),e._v("\n You're all set to use the dApp. Click the LOGIN button above to begin.\n ")]):n("div",[e._v("\n But it seems you don't have an account with us on the blockchain."),n("br"),e._v("Or you do but the account is currently inaccessible."),n("br"),e._v("Create an account on the blockchain and sign up to begin, or make your existing account accessible.\n ")])]):n("div",[e._v("\n But you are not connected to the network on the blockchain ["+e._s(e.approvedNetworkName)+"]."),n("br"),e._v("\n Connect to the "+e._s(e.approvedNetworkName)+".\n ")])]):n("div",[e._v("\n Your browser is not Web3-injected. To use the dApp, you can install "),n("a",{attrs:{href:"https://metamask.io/"}},[e._v("Metamask")]),e._v(".\n "),n("div",{staticClass:"metamask-resource"})])])])])},s=[],i={render:a,staticRenderFns:s};t.a=i},WP4h:function(e,t){e.exports={version:"0.18.4"}},XDkp:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement;return(e._self._c||t)(e.currentView,{tag:"component",staticClass:"body-template"})},s=[],i={render:a,staticRenderFns:s};t.a=i},YaEn:function(e,t,n){"use strict";var a=n("7+uW"),s=n("/ocq"),i=n("lO7g"),o=n("TGvd");a.a.use(s.a),t.a=new s.a({routes:[{mode:"history",path:"/",name:"Home",component:i.a},{mode:"history",path:"/home",component:i.a},{mode:"history",path:"/dashboard",component:o.a},{mode:"history",path:"/sign-up",component:i.a},{mode:"history",path:"/profile/edit",component:o.a}]})},Z1Py:function(e,t,n){"use strict";function a(e){n("U+8w")}var s=n("v4ix"),i=n("2NTp"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-0692b5df",null);t.a=u.exports},ZBzV:function(e,t){e.exports={contract_name:"Authentication",abi:[{constant:!1,inputs:[{name:"firstName",type:"bytes32"},{name:"lastName",type:"bytes32"},{name:"email",type:"bytes32"}],name:"signup",outputs:[{name:"",type:"bytes32"},{name:"",type:"bytes32"},{name:"",type:"bytes32"}],payable:!0,type:"function"},{constant:!1,inputs:[],name:"destroy",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"firstName",type:"bytes32"},{name:"lastName",type:"bytes32"},{name:"email",type:"bytes32"}],name:"update",outputs:[{name:"",type:"bytes32"},{name:"",type:"bytes32"},{name:"",type:"bytes32"}],payable:!0,type:"function"},{constant:!0,inputs:[],name:"login",outputs:[{name:"",type:"bytes32"},{name:"",type:"bytes32"},{name:"",type:"bytes32"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"_recipient",type:"address"}],name:"destroyAndSend",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"_userAddress",type:"address"},{indexed:!1,name:"_firstName",type:"bytes32"},{indexed:!1,name:"_lastName",type:"bytes32"},{indexed:!0,name:"_email",type:"bytes32"}],name:"SignedUp",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"_userAddress",type:"address"},{indexed:!1,name:"_firstName",type:"bytes32"},{indexed:!1,name:"_lastName",type:"bytes32"},{indexed:!0,name:"_email",type:"bytes32"}],name:"Updated",type:"event"}],unlinked_binary:"0x60606040525b5b60008054600160a060020a03191633600160a060020a03161790555b5b5b61062d806100336000396000f300606060405236156100805763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631a2dc634811461008557806383197ef0146100ba5780638da5cb5b146100cf5780639c0d2525146100fe578063b34e97e814610133578063f2fde38b1461016a578063f5074f411461018b575b600080fd5b6100966004356024356044356101ac565b60405192835260208301919091526040808301919091526060909101905180910390f35b34156100c557600080fd5b6100cd6102eb565b005b34156100da57600080fd5b6100e2610317565b604051600160a060020a03909116815260200160405180910390f35b610096600435602435604435610326565b60405192835260208301919091526040808301919091526060909101905180910390f35b341561013e57600080fd5b6100966104d6565b60405192835260208301919091526040808301919091526060909101905180910390f35b341561017557600080fd5b6100cd600160a060020a036004351661057e565b005b341561019657600080fd5b6100cd600160a060020a03600435166105d6565b005b60008080858015156101bd57600080fd5b858015156101ca57600080fd5b858015156101d757600080fd5b600160a060020a033316600090815260016020526040902054151561021257600160a060020a03331660009081526001602052604090208990555b600160a060020a03331660009081526001602081905260409091200154151561025557600160a060020a0333166000908152600160208190526040909120018890555b600160a060020a033316600090815260016020526040902060020154151561029657600160a060020a03331660009081526001602052604090206002018790555b86600160a060020a0333167f43b85add1b26d595d269b3b3500e49383cdcc47fdda5c8584d6c601c5dc0ab5b8b8b60405191825260208201526040908101905180910390a35b5b505b505b5093509350939050565b60005433600160a060020a0390811691161461030657600080fd5b600054600160a060020a0316ff5b5b565b600054600160a060020a031681565b600080808580151561033757600080fd5b8580151561034457600080fd5b8580151561035157600080fd5b600160a060020a033316600090815260016020526040902054158015906103935750600160a060020a0333166000908152600160208190526040909120015415155b80156103b95750600160a060020a03331660009081526001602052604090206002015415155b15156103c457600080fd5b600160a060020a033316600090815260016020526040902054156103fe57600160a060020a03331660009081526001602052604090208990555b600160a060020a033316600090815260016020819052604090912001541561044057600160a060020a0333166000908152600160208190526040909120018890555b600160a060020a0333166000908152600160205260409020600201541561048057600160a060020a03331660009081526001602052604090206002018790555b86600160a060020a0333167ff30000b0c45b2f041d5fbfa2021f30a3799312d9a346b182802b0ef9ee4878838b8b60405191825260208201526040908101905180910390a35b5b5b505b505b5093509350939050565b600160a060020a033316600090815260016020526040812054819081901580159061051c5750600160a060020a0333166000908152600160208190526040909120015415155b80156105425750600160a060020a03331660009081526001602052604090206002015415155b151561054d57600080fd5b505050600160a060020a03331660009081526001602081905260409091208054918101546002909101545b5b909192565b60005433600160a060020a0390811691161461059957600080fd5b600160a060020a038116156105d1576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b5b50565b60005433600160a060020a039081169116146105f157600080fd5b80600160a060020a0316ff5b5b505600a165627a7a72305820a9a70bfcc18383e915de076ec251518e397a46b17551fa0cf47976a24370bab30029",networks:{765:{events:{"0x43b85add1b26d595d269b3b3500e49383cdcc47fdda5c8584d6c601c5dc0ab5b":{anonymous:!1,inputs:[{indexed:!0,name:"_userAddress",type:"address"},{indexed:!1,name:"_firstName",type:"bytes32"},{indexed:!1,name:"_lastName",type:"bytes32"},{indexed:!0,name:"_email",type:"bytes32"}],name:"SignedUp",type:"event"},"0xf30000b0c45b2f041d5fbfa2021f30a3799312d9a346b182802b0ef9ee487883":{anonymous:!1,inputs:[{indexed:!0,name:"_userAddress",type:"address"},{indexed:!1,name:"_firstName",type:"bytes32"},{indexed:!1,name:"_lastName",type:"bytes32"},{indexed:!0,name:"_email",type:"bytes32"}],name:"Updated",type:"event"}},links:{},address:"0x609a32adcc2f6877fe5d448d79609ff9b7bcc9f2",updated_at:1505265489232}},schema_version:"0.0.5",updated_at:1505265489232}},"ZHP+":function(e,t,n){"use strict";t.a={name:"body-template",props:["currentView"],computed:{user:function(){return this.$store.state.user},isLoggedIn:function(){return this.$store.state.user.isLoggedIn}}}},aEfQ:function(e,t,n){"use strict";var a=n("Dd8w"),s=n.n(a),i=n("NYxO"),o=n("yz5X"),r=n("ffIc"),u=n("2g7C"),c=n("+xc3");t.a={name:"dashboard",props:["currentView"],components:{HeaderTemplate:o.a,BodyTemplate:r.a,FooterTemplate:u.a},created:function(){""!==this.$store.state.user.email&&this.$store.state.user.isLoggedIn||this.$router.push("/")},computed:{user:function(){return this.$store.state.user},isLoggedIn:function(){return this.$store.state.user.isLoggedIn}},methods:s()({},n.i(i.b)([c.a.LOGIN]))}},djAN:function(e,t){},f2im:function(e,t,n){"use strict";t.a={name:"footer-template",computed:{user:function(){return this.$store.state.user}}}},ffIc:function(e,t,n){"use strict";function a(e){n("qLi9")}var s=n("ZHP+"),i=n("XDkp"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-6a0a301e",null);t.a=u.exports},fqMf:function(e,t){},gPMH:function(e,t,n){"use strict";var a=n("+xc3");t.a={name:"web3-message",data:function(){return{approvedNetworkName:a.b[a.b.approvedBlockchainNetwork]}},computed:{user:function(){return this.$store.state.user}}}},gi4C:function(e,t){e.exports=[{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"indirectId",type:"bytes32"},{name:"value",type:"uint256"}],name:"icapTransfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"to",type:"bytes32"}],name:"deposit",outputs:[],payable:!0,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"AnonymousDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"indirectId",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"IcapTransfer",type:"event"}]},lO7g:function(e,t,n){"use strict";function a(e){n("fqMf")}var s=n("Fs8J"),i=n("LmkH"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-2f35305c",null);t.a=u.exports},lquA:function(e,t){},lwq5:function(e,t,n){"use strict";t.a={currentRoute:null,web3:{address:null,coinbase:null,error:null,instance:null,isInjected:!1,networkId:null},user:{email:"",firstName:"",lastName:"",hasCoinbase:!1,hasWeb3InjectedBrowser:!1,isConnectedToApprovedNetwork:!1,isLoggedIn:!1}}},m7aE:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"dashboard"}},[n("HeaderTemplate"),e._v(" "),n("BodyTemplate",{attrs:{"current-view":e.currentView}}),e._v(" "),n("FooterTemplate")],1)},s=[],i={render:a,staticRenderFns:s};t.a=i},mOn1:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"footer-template"}},[n("div",{staticClass:"content"},[n("div",{staticClass:"links"},[n("a",{staticClass:"link2",attrs:{href:"https://github.com/DOkwufulueze/eth-vue",target:"_blank"}},[e._v("Github")]),e._v(" "),n("span",{staticClass:"divider"}),e._v(" "),n("a",{staticClass:"link3",attrs:{href:"http://danielokwufulueze.com",target:"_blank"}},[e._v("www")])]),e._v(" "),n("div",{staticClass:"copyleft"},[n("div",{staticClass:"text"},[e._v("Copyleft "),n("span",{staticClass:"copyleft-resource"}),e._v(" 2017 "),n("a",{staticClass:"link2",attrs:{href:"https://danielokwufulueze.com"}},[e._v("Daniel Okwufulueze")]),e._v(".")])]),e._v(" "),n("div",{staticClass:"social"},[n("a",{staticClass:"facebook",attrs:{href:"https://facebook.com/DOkwufulueze",target:"_blank"}}),e._v(" "),n("a",{staticClass:"twitter",attrs:{href:"https://twitter.com/dokwufulueze",target:"_blank"}})])])])}],i={render:a,staticRenderFns:s};t.a=i},mUbh:function(e,t,n){"use strict";var a,s=n("bOdI"),i=n.n(s),o=n("//Fk"),r=n.n(o),u=n("+xc3"),c=n("sW12");t.a=(a={},i()(a,u.a.REGISTER_WEB3_INSTANCE,function(e){var t=e.commit;e.dispatch;return new r.a(function(e,n){c.a.then(function(n){t(u.c.REGISTER_WEB3_INSTANCE,{result:n,callback:function(){return e()}})}).catch(function(e){if(e.result){var a=e.result;t(u.c.REGISTER_WEB3_INSTANCE,{result:{web3:a.hasInjectedWeb3?function(){return a.web3}:null,hasInjectedWeb3:!!a.hasInjectedWeb3&&a.hasInjectedWeb3,web3Error:e.err},callback:function(){return n(a)}})}})})}),i()(a,u.a.UPDATE_USER_BLOCKCHAIN_STATUS,function(e){(0,e.commit)(u.c.UPDATE_USER_BLOCKCHAIN_STATUS)}),i()(a,u.a.LOGIN,function(e,t){var n=e.commit;return new r.a(function(e,a){n(u.c.LOGIN,{userData:t,callback:function(){return e(t)}})})}),i()(a,u.a.LOGOUT,function(e){var t=e.commit;return new r.a(function(e,n){t(u.c.LOGOUT,{callback:function(){return e()}})})}),i()(a,u.a.CHANGE_CURRENT_ROUTE_TO,function(e,t){(0,e.commit)(u.c.CHANGE_CURRENT_ROUTE_TO,t)}),a)},myIA:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"profile"}},[n("div",{staticClass:"content"},[n("div",{staticClass:"message"},[n("div",[e._v("\n Welcome to your Profile Page "+e._s(e.user.firstName)+"\n ")])])])])},s=[],i={render:a,staticRenderFns:s};t.a=i},oPsS:function(e,t){e.exports=[{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"value",type:"uint256"}],name:"transfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"from",type:"bytes32"},{name:"to",type:"address"},{name:"indirectId",type:"bytes32"},{name:"value",type:"uint256"}],name:"icapTransfer",outputs:[],type:"function"},{constant:!1,inputs:[{name:"to",type:"bytes32"}],name:"deposit",outputs:[],type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"AnonymousDeposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"bytes32"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"indirectId",type:"bytes32"},{indexed:!1,name:"value",type:"uint256"}],name:"IcapTransfer",type:"event"}]},qLi9:function(e,t){},rEmu:function(e,t,n){"use strict";function a(e){n("lquA")}var s=n("gPMH"),i=n("VfEa"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-6477bc0c",null);t.a=u.exports},sW12:function(e,t,n){"use strict";var a=n("woOf"),s=n.n(a),i=n("//Fk"),o=n.n(i),r=n("8k0n"),u=n.n(r),c=new o.a(function(e,t){window.addEventListener("load",function(){var n=window.web3;void 0!==n?(n=new u.a(n.currentProvider),e({hasInjectedWeb3:n.isConnected(),web3:n})):t({result:null,err:"Unable to connect to Web3"})})}).then(function(e){return new o.a(function(t,n){e.web3.version.getNetwork(function(a,i){a?(e=s()({},e),n({result:e,err:a})):(i=i.toString(),e=s()({},e,{networkId:i}),t(e))})})}).then(function(e){return new o.a(function(t,n){e.web3.eth.getCoinbase(function(a,i){var o=void 0;a?(o=s()({},e),n({result:o,err:a})):(o=s()({},e,{coinbase:i}),t(o))})})}).then(function(e){return new o.a(function(t,n){var a=e.web3.eth.defaultAccount;t(s()({},e,{address:a}))})});t.a=c},ukYY:function(e,t,n){"use strict";var a,s=n("bOdI"),i=n.n(s),o=n("+xc3");t.a=(a={},i()(a,o.c.REGISTER_WEB3_INSTANCE,function(e,t){var n=t.result;e.web3.instance=function(){return n.web3},e.web3.address=n.address,e.web3.coinbase=n.coinbase,e.web3.networkId=n.networkId,e.web3.error=n.web3Error,e.web3.isInjected=n.hasInjectedWeb3,t.callback&&t.callback(n)}),i()(a,o.c.UPDATE_USER_BLOCKCHAIN_STATUS,function(e){e.user.hasWeb3InjectedBrowser=e.web3.isInjected,e.user.hasCoinbase=e.web3.coinbase&&""!==e.web3.coinbase,e.user.isConnectedToApprovedNetwork=e.web3.networkId&&""!==e.web3.networkId&&e.web3.networkId===o.b.approvedBlockchainNetwork}),i()(a,o.c.LOGIN,function(e,t){var n=t.userData;e.user.firstName=n.firstName,e.user.lastName=n.lastName,e.user.email=n.email,e.user.isLoggedIn=!(!n.email||""===n.email),t.callback&&t.callback(n)}),i()(a,o.c.LOGOUT,function(e,t){e.user.firstName="",e.user.lastName="",e.user.email="",e.user.isLoggedIn=!1,t.callback&&t.callback()}),i()(a,o.c.CHANGE_CURRENT_ROUTE_TO,function(e,t){e.currentRoute=t}),a)},v4ix:function(e,t,n){"use strict";var a=n("Dd8w"),s=n.n(a),i=n("NYxO"),o=n("+xc3"),r=n("N9OI");t.a={data:function(){return{firstName:this.$store.state.user.firstName,lastName:this.$store.state.user.lastName,email:this.$store.state.user.email}},computed:{user:function(){return this.$store.state.user}},methods:s()({},n.i(i.b)([o.a.LOGIN]),{submitProfileToTheBlockchain:function(e){var t=this;e.target.disabled=!0;var n="/sign-up"===this.$route.path?"signup":"editProfile",a={firstName:this.firstName,lastName:this.lastName,email:this.email};r.a[n](this.$store.state,a).then(function(a){t[o.a.LOGIN](a).then(function(a){e.target.disabled=!1,console.log("signup"===n?"Signed up and logged In":"Successfully updated profile"),""!==t.$store.state.user.email&&t.$store.state.user.isLoggedIn?t.$router.push("/dashboard"):t.$router.push("/")})})}})}},xGuS:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view",{attrs:{"current-view":e.currentView}})],1)},s=[],i={render:a,staticRenderFns:s};t.a=i},yz5X:function(e,t,n){"use strict";function a(e){n("djAN")}var s=n("1Sql"),i=n("0lwJ"),o=n("VU/8"),r=a,u=o(s.a,i.a,r,"data-v-7f942609",null);t.a=u.exports},"zrg/":function(e,t){}},["NHnr"]); +//# sourceMappingURL=app.e2d35e51f4b7fe2e8ce9.js.map \ No newline at end of file diff --git a/dist/static/js/app.e2d35e51f4b7fe2e8ce9.js.map b/dist/static/js/app.e2d35e51f4b7fe2e8ce9.js.map new file mode 100644 index 000000000..0b0bec9a5 --- /dev/null +++ b/dist/static/js/app.e2d35e51f4b7fe2e8ce9.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///static/js/app.e2d35e51f4b7fe2e8ce9.js","webpack:///./~/truffle-contract-schema/package.json","webpack:///./src/util/constants.js","webpack:///./src/components/layout/HeaderTemplate.vue?3d9d","webpack:///src/components/layout/HeaderTemplate.vue","webpack:///./src/components/sections/ProfileForm.vue?6190","webpack:///./src/components/layout/FooterTemplate.vue?2f2a","webpack:///./~/truffle-blockchain-utils/~/web3/lib/contracts/ICAPRegistrar.json","webpack:///./~/web3/lib/version.json","webpack:///./src/components/App.vue?2b9a","webpack:///src/components/App.vue","webpack:///src/components/Home.vue","webpack:///./src/store/index.js","webpack:///./src/components/Home.vue?9458","webpack:///./src/js/Auth.js","webpack:///./src/main.js","webpack:///./src/components/sections/Profile.vue?f8e1","webpack:///./~/truffle-blockchain-utils/~/web3/lib/contracts/GlobalRegistrar.json","webpack:///./~/web3/lib/contracts/GlobalRegistrar.json","webpack:///src/components/sections/Profile.vue","webpack:///./src/components/Dashboard.vue?7390","webpack:///./~/web3/lib/contracts/ICAPRegistrar.json","webpack:///./src/components/sections/Web3Message.vue?af40","webpack:///./~/truffle-blockchain-utils/~/web3/lib/version.json","webpack:///./src/components/layout/BodyTemplate.vue?83c9","webpack:///./src/router/index.js","webpack:///./src/components/sections/ProfileForm.vue?40fa","webpack:///./build/contracts/Authentication.json","webpack:///src/components/layout/BodyTemplate.vue","webpack:///src/components/Dashboard.vue","webpack:///src/components/layout/FooterTemplate.vue","webpack:///./src/components/layout/BodyTemplate.vue?8874","webpack:///src/components/sections/Web3Message.vue","webpack:///./~/truffle-blockchain-utils/~/web3/lib/contracts/SmartExchange.json","webpack:///./src/components/Home.vue?3806","webpack:///./src/store/state.js","webpack:///./src/components/Dashboard.vue?5d88","webpack:///./src/components/layout/FooterTemplate.vue?db3e","webpack:///./src/store/actions.js","webpack:///./src/components/sections/Profile.vue?8c7c","webpack:///./~/web3/lib/contracts/SmartExchange.json","webpack:///./src/components/sections/Web3Message.vue?ba12","webpack:///./src/util/web3/getWeb3.js","webpack:///./src/store/mutations.js","webpack:///src/components/sections/ProfileForm.vue","webpack:///./src/components/App.vue?d22e","webpack:///./src/components/layout/HeaderTemplate.vue?cf0e"],"names":["webpackJsonp","+lBM","module","exports","_from","_id","_inBundle","_integrity","_location","_phantomChildren","_requested","type","registry","raw","name","escapedName","rawSpec","saveSpec","fetchSpec","_requiredBy","_resolved","_shasum","_spec","_where","author","email","bugs","url","bundleDependencies","dependencies","crypto-js","deprecated","description","devDependencies","mocha","homepage","keywords","license","main","repository","scripts","test","version","+xc3","__webpack_exports__","__webpack_require__","d","NETWORKS","MUTATION_TYPES","ACTION_TYPES","1","2","3","4","42","765","approvedBlockchainNetwork","CHANGE_CURRENT_ROUTE_TO","REGISTER_WEB3_INSTANCE","UPDATE_USER_BLOCKCHAIN_STATUS","LOGIN","LOGOUT","0lwJ","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","id","to","_v","isLoggedIn","_e","value","on","click","logUserIn","logUserOut","href","target","staticRenderFns","esExports","1Sql","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default","n","__WEBPACK_IMPORTED_MODULE_1_vuex__","__WEBPACK_IMPORTED_MODULE_2__js_Auth__","__WEBPACK_IMPORTED_MODULE_3__util_constants__","computed","user","$store","state","methods","i","evt","_this","disabled","login","then","userData","$router","push","_this2","2NTp","_s","$route","path","for","directives","rawName","expression","domProps","input","$event","composing","firstName","lastName","submitProfileToTheBlockchain","2g7C","injectStyle","ssrContext","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_FooterTemplate_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_10c3d417_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_FooterTemplate_vue__","normalizeComponent","__vue_styles__","Component","D5te","constant","inputs","outputs","anonymous","indexed","DQit","EEbw","EWfp","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f75f604_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__","EZYi","__WEBPACK_IMPORTED_MODULE_2__util_constants__","__WEBPACK_IMPORTED_MODULE_3__sections_Profile__","__WEBPACK_IMPORTED_MODULE_4__sections_ProfileForm__","__WEBPACK_IMPORTED_MODULE_5__sections_Web3Message__","hasInjectedWeb3","web3","isInjected","hasWeb3InjectedBrowser","isConnectedToApprovedNetwork","hasCoinbase","networkId","coinbase","currentRoute","currentView","components","Profile","ProfileForm","Web3Message","beforeCreate","dispatch","catch","result","console","log","created","watch","web3ConnectionValue","_networkId","_coinbase","newRoute","Fs8J","__WEBPACK_IMPORTED_MODULE_0__layout_HeaderTemplate__","__WEBPACK_IMPORTED_MODULE_1__layout_BodyTemplate__","__WEBPACK_IMPORTED_MODULE_2__layout_FooterTemplate__","props","HeaderTemplate","BodyTemplate","FooterTemplate","HPCu","IcnI","__WEBPACK_IMPORTED_MODULE_0_vue__","__WEBPACK_IMPORTED_MODULE_2__state__","__WEBPACK_IMPORTED_MODULE_3__actions__","__WEBPACK_IMPORTED_MODULE_4__getters__","__WEBPACK_IMPORTED_MODULE_4__getters___default","__WEBPACK_IMPORTED_MODULE_5__mutations__","use","store","Store","actions","getters","a","mutations","LmkH","current-view","N9OI","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise__","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default","__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__","__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default","__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__","__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default","__WEBPACK_IMPORTED_MODULE_3_truffle_contract__","__WEBPACK_IMPORTED_MODULE_3_truffle_contract___default","__WEBPACK_IMPORTED_MODULE_4__build_contracts_Authentication_json__","__WEBPACK_IMPORTED_MODULE_4__build_contracts_Authentication_json___default","auth","Auth","key","arguments","length","undefined","data","resolve","reject","accessAuthenticationContractWith","method","contractInstance","update","from","e","error","signup","_this3","getUTF8DataOfResults","dataObject","instance","authContract","setProvider","currentProvider","eth","getCoinbase","err","deployed","results","utf8Results","map","toUtf8","NHnr","Object","defineProperty","__WEBPACK_IMPORTED_MODULE_1__components_App__","__WEBPACK_IMPORTED_MODULE_2__router__","__WEBPACK_IMPORTED_MODULE_3__store__","config","devtools","productionTip","el","router","template","App","Ow54","POeb","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Profile_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_010bf07b_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Profile_vue__","Qm11","R/pS","SQ2D","TGvd","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Dashboard_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2d3a9c31_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Dashboard_vue__","U+8w","UIsv","UjVw","VfEa","approvedNetworkName","WP4h","XDkp","tag","YaEn","__WEBPACK_IMPORTED_MODULE_1_vue_router__","__WEBPACK_IMPORTED_MODULE_2__components_Home__","__WEBPACK_IMPORTED_MODULE_3__components_Dashboard__","routes","mode","component","Z1Py","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ProfileForm_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0692b5df_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_ProfileForm_vue__","ZBzV","contract_name","abi","payable","unlinked_binary","networks","events","0x43b85add1b26d595d269b3b3500e49383cdcc47fdda5c8584d6c601c5dc0ab5b","0xf30000b0c45b2f041d5fbfa2021f30a3799312d9a346b182802b0ef9ee487883","links","address","updated_at","schema_version","ZHP+","aEfQ","__WEBPACK_IMPORTED_MODULE_2__layout_HeaderTemplate__","__WEBPACK_IMPORTED_MODULE_3__layout_BodyTemplate__","__WEBPACK_IMPORTED_MODULE_4__layout_FooterTemplate__","__WEBPACK_IMPORTED_MODULE_5__util_constants__","djAN","f2im","ffIc","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_BodyTemplate_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6a0a301e_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_BodyTemplate_vue__","fqMf","gPMH","__WEBPACK_IMPORTED_MODULE_0__util_constants__","gi4C","lO7g","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Home_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f35305c_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Home_vue__","lquA","lwq5","m7aE","mOn1","_m","mUbh","_ACTION_TYPES$REGISTE","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default","__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise__","__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default","__WEBPACK_IMPORTED_MODULE_3__util_web3_getWeb3__","_ref","commit","callback","web3Error","_ref2","_ref3","_ref4","_ref5","myIA","oPsS","qLi9","rEmu","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Web3Message_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6477bc0c_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Web3Message_vue__","sW12","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign__","__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default","__WEBPACK_IMPORTED_MODULE_2_web3__","__WEBPACK_IMPORTED_MODULE_2_web3___default","getWeb3","window","addEventListener","isConnected","getNetwork","toString","networkIdResult","coinbaseResult","defaultAccount","ukYY","_MUTATION_TYPES$REGIS","__WEBPACK_IMPORTED_MODULE_1__util_constants__","payload","v4ix","__WEBPACK_IMPORTED_MODULE_3__js_Auth__","action","userProfileData","xGuS","yz5X","__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_HeaderTemplate_vue__","__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f942609_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_HeaderTemplate_vue__","zrg/"],"mappings":"AAAAA,cAAc,IAERC,OACA,SAAUC,EAAQC,GCHxBD,EAAAC,SAAkBC,MAAA,gCAAAC,IAAA,gCAAAC,WAAA,EAAAC,WAAA,oCAAAC,UAAA,2BAAAC,oBAA6MC,YAAeC,KAAA,UAAAC,UAAA,EAAAC,IAAA,gCAAAC,KAAA,0BAAAC,YAAA,0BAAAC,QAAA,QAAAC,SAAA,KAAAC,UAAA,SAAsMC,aAAA,qBAAAC,UAAA,yFAAAC,QAAA,2CAAAC,MAAA,gCAAAC,OAAA,kEAAAC,QAA4TV,KAAA,cAAAW,MAAA,6BAAyDC,MAASC,IAAA,yDAA8DC,oBAAA,EAAAC,cAA4CC,YAAA,YAAuBC,YAAA,EAAAC,YAAA,qCAAAC,iBAA0FC,MAAA,UAAiBC,SAAA,wDAAAC,UAAA,mDAAAC,QAAA,MAAAC,KAAA,WAAAxB,KAAA,0BAAAyB,YAAoN5B,KAAA,MAAAgB,IAAA,0DAA4Ea,SAAYC,KAAA,SAAeC,QAAA,UDSn1CC,OACA,SAAUzC,EAAQ0C,EAAqBC,GAE7C,YAC+BA,GAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOG,KACpEF,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOI,KACpEH,EAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOK,IEf5F,IAAMF,IACXG,EAAK,WACLC,EAAK,iCACLC,EAAK,uBACLC,EAAK,uBACLC,GAAM,qBACNC,IAAO,yBACPC,0BAA6B,KAGlBR,GACXS,wBAAyB,uBACzBC,uBAAwB,uBACxBC,8BAA+B,6BAC/BC,MAAO,QACPC,OAAQ,UAGGZ,EAAeD,GFoBtBc,OACA,SAAU5D,EAAQ0C,EAAqBC,GAE7C,YGzCA,IAAAkB,GAAA,WAA0B,GAAAC,GAAAC,KAAaC,EAAAF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W,EAAQ0C,EAAqBC,GAE7C,Y6CjvDA,IAAAkB,GAAA,WAA0B,GAAAC,GAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,CACjE,OAAAE,GAAA,OACAG,OACAC,GAAA,SAEGJ,EAAA,eACHG,OACA8H,eAAArI,EAAA4F,gBAEG,IAEHxE,KACAC,GAAiBtB,SAAAqB,kBACjBxC,GAAA,K7CsvDM8T,KACA,SAAUxW,EAAQ0C,EAAqBC,GAE7C,Y8CtwDA,SAAA+E,GAAAC,GACAhF,EAAA,Q9CswDqB,GAAI8T,GAA0H9T,EAAoB,Q8CvwDvK+T,EAAA/T,EAAA,QAGAmF,EAAAnF,EAAA,QAMAoF,EAAAL,EAKAM,EAAAF,EACA2O,EAAA,EACAC,EAAA,EACA3O,EANA,kBAEA,KASArF,GAAA,EAAAsF,EAAA,S9C8wDM2O,OACA,SAAU3W,EAAQC,OAMrB","file":"static/js/app.e2d35e51f4b7fe2e8ce9.js","sourcesContent":["webpackJsonp([1],{\n\n/***/ \"+lBM\":\n/***/ (function(module, exports) {\n\nmodule.exports = {\"_from\":\"truffle-contract-schema@0.0.5\",\"_id\":\"truffle-contract-schema@0.0.5\",\"_inBundle\":false,\"_integrity\":\"sha1-Xp0gvQvyon/pQxB0gknUhO7kmWE=\",\"_location\":\"/truffle-contract-schema\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"truffle-contract-schema@0.0.5\",\"name\":\"truffle-contract-schema\",\"escapedName\":\"truffle-contract-schema\",\"rawSpec\":\"0.0.5\",\"saveSpec\":null,\"fetchSpec\":\"0.0.5\"},\"_requiredBy\":[\"/truffle-contract\"],\"_resolved\":\"https://registry.npmjs.org/truffle-contract-schema/-/truffle-contract-schema-0.0.5.tgz\",\"_shasum\":\"5e9d20bd0bf2a27fe94310748249d484eee49961\",\"_spec\":\"truffle-contract-schema@0.0.5\",\"_where\":\"/home/daniel/dev/vue/apps/eth-vue/node_modules/truffle-contract\",\"author\":{\"name\":\"Tim Coulter\",\"email\":\"tim.coulter@consensys.net\"},\"bugs\":{\"url\":\"https://github.com/trufflesuite/truffle-schema/issues\"},\"bundleDependencies\":false,\"dependencies\":{\"crypto-js\":\"^3.1.9-1\"},\"deprecated\":false,\"description\":\"JSON schema for contract artifacts\",\"devDependencies\":{\"mocha\":\"^3.2.0\"},\"homepage\":\"https://github.com/trufflesuite/truffle-schema#readme\",\"keywords\":[\"ethereum\",\"json\",\"schema\",\"contract\",\"artifacts\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"truffle-contract-schema\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/trufflesuite/truffle-schema.git\"},\"scripts\":{\"test\":\"mocha\"},\"version\":\"0.0.5\"}\n\n/***/ }),\n\n/***/ \"+xc3\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return NETWORKS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return MUTATION_TYPES; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ACTION_TYPES; });\nvar NETWORKS = {\n '1': 'Main Net',\n '2': 'Deprecated Morden test network',\n '3': 'Ropsten test network',\n '4': 'Rinkeby test network',\n '42': 'Kovan test network',\n '765': 'DanielNet test network',\n 'approvedBlockchainNetwork': '3'\n};\n\nvar MUTATION_TYPES = {\n CHANGE_CURRENT_ROUTE_TO: 'changeCurrentRouteTo',\n REGISTER_WEB3_INSTANCE: 'registerWeb3Instance',\n UPDATE_USER_BLOCKCHAIN_STATUS: 'updateUserBlockchainStatus',\n LOGIN: 'login',\n LOGOUT: 'logout'\n};\n\nvar ACTION_TYPES = MUTATION_TYPES;\n\n/***/ }),\n\n/***/ \"0lwJ\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"sticky header\",\n attrs: {\n \"id\": \"header-template\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('router-link', {\n staticClass: \"logo\",\n attrs: {\n \"to\": \"/\"\n }\n }, [_vm._v(\"INSERT YOUR LOGO HERE\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"links\"\n }, [(!_vm.isLoggedIn) ? _c('router-link', {\n staticClass: \"link1\",\n attrs: {\n \"to\": \"/sign-up\"\n }\n }, [_vm._v(\"Sign Up\")]) : _vm._e(), _vm._v(\" \"), (!_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), (!_vm.isLoggedIn) ? _c('input', {\n staticClass: \"link1\",\n attrs: {\n \"type\": \"button\",\n \"value\": \"Login\"\n },\n on: {\n \"click\": _vm.logUserIn\n }\n }) : _vm._e(), _vm._v(\" \"), (!_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('router-link', {\n staticClass: \"link2\",\n attrs: {\n \"to\": \"/profile/edit\"\n }\n }, [_vm._v(\"Edit Profile\")]) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('input', {\n staticClass: \"link2\",\n attrs: {\n \"type\": \"button\",\n \"value\": \"Logout\"\n },\n on: {\n \"click\": _vm.logUserOut\n }\n }) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), _c('a', {\n staticClass: \"link3\",\n attrs: {\n \"href\": \"https://github.com/DOkwufulueze/eth-vue\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"Github\")]), _vm._v(\" \"), _c('span', {\n staticClass: \"divider\"\n }), _vm._v(\" \"), _c('a', {\n staticClass: \"link4\",\n attrs: {\n \"href\": \"http://danielokwufulueze.com\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"www\")])], 1)], 1)])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"1Sql\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(\"Dd8w\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(\"NYxO\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__js_Auth__ = __webpack_require__(\"N9OI\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_constants__ = __webpack_require__(\"+xc3\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'header-template',\n computed: {\n user: function user() {\n return this.$store.state.user;\n },\n isLoggedIn: function isLoggedIn() {\n return this.$store.state.user.isLoggedIn;\n }\n },\n methods: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"b\" /* mapActions */])([__WEBPACK_IMPORTED_MODULE_3__util_constants__[\"a\" /* ACTION_TYPES */].LOGIN, __WEBPACK_IMPORTED_MODULE_3__util_constants__[\"a\" /* ACTION_TYPES */].LOGOUT]), {\n logUserIn: function logUserIn(evt) {\n var _this = this;\n\n evt.target.disabled = true;\n if (!this.$store.state.user.isLoggedIn) {\n __WEBPACK_IMPORTED_MODULE_2__js_Auth__[\"a\" /* default */].login(this.$store.state).then(function (userData) {\n _this[__WEBPACK_IMPORTED_MODULE_3__util_constants__[\"a\" /* ACTION_TYPES */].LOGIN](userData).then(function (userData) {\n evt.target.disabled = false;\n if (!_this.$store.state.user.isLoggedIn) {\n _this.$router.push('/');\n } else {\n _this.$router.push('/dashboard');\n }\n });\n });\n }\n },\n logUserOut: function logUserOut(evt) {\n var _this2 = this;\n\n evt.target.disabled = true;\n this[__WEBPACK_IMPORTED_MODULE_3__util_constants__[\"a\" /* ACTION_TYPES */].LOGOUT]().then(function () {\n evt.target.disabled = false;\n _this2.$router.push('/');\n });\n }\n })\n});\n\n\n\n\n\n/***/ }),\n\n/***/ \"2NTp\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"profile-form\"\n }\n }, [_c('h3', [_vm._v(_vm._s(this.$route.path === '/sign-up' ? 'Sign Up' : 'Edit Profile'))]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('label', {\n attrs: {\n \"for\": \"first-name\"\n }\n }, [_vm._v(\"First name\")]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.firstName),\n expression: \"firstName\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"first-name\",\n \"name\": \"first-name\"\n },\n domProps: {\n \"value\": (_vm.firstName)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.firstName = $event.target.value\n }\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('label', {\n attrs: {\n \"for\": \"last-name\"\n }\n }, [_vm._v(\"Last name\")]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.lastName),\n expression: \"lastName\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"Last-name\",\n \"name\": \"Last-name\"\n },\n domProps: {\n \"value\": (_vm.lastName)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.lastName = $event.target.value\n }\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('label', {\n attrs: {\n \"for\": \"email\"\n }\n }, [_vm._v(\"Email\")]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.email),\n expression: \"email\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"email\",\n \"name\": \"email\"\n },\n domProps: {\n \"value\": (_vm.email)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.email = $event.target.value\n }\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('input', {\n attrs: {\n \"type\": \"button\",\n \"value\": \"Submit\"\n },\n on: {\n \"click\": _vm.submitProfileToTheBlockchain\n }\n })])])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"2g7C\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_FooterTemplate_vue__ = __webpack_require__(\"f2im\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_10c3d417_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_FooterTemplate_vue__ = __webpack_require__(\"mOn1\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"HPCu\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-10c3d417\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_FooterTemplate_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_10c3d417_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_FooterTemplate_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"D5te\":\n/***/ (function(module, exports) {\n\nmodule.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_refund\",\"type\":\"address\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"}],\"name\":\"setAddr\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"}]\n\n/***/ }),\n\n/***/ \"DQit\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"EEbw\":\n/***/ (function(module, exports) {\n\nmodule.exports = {\"version\":\"0.16.0\"}\n\n/***/ }),\n\n/***/ \"EWfp\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__ = __webpack_require__(\"EZYi\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f75f604_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__ = __webpack_require__(\"xGuS\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"DQit\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_App_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f75f604_hasScoped_false_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_App_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"EZYi\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(\"Dd8w\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(\"NYxO\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_constants__ = __webpack_require__(\"+xc3\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__sections_Profile__ = __webpack_require__(\"POeb\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__sections_ProfileForm__ = __webpack_require__(\"Z1Py\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__sections_Web3Message__ = __webpack_require__(\"rEmu\");\n\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'app',\n computed: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"a\" /* mapState */])({\n hasInjectedWeb3: function hasInjectedWeb3(state) {\n return state.web3.isInjected;\n },\n hasWeb3InjectedBrowser: function hasWeb3InjectedBrowser(state) {\n return state.user.hasWeb3InjectedBrowser;\n },\n isConnectedToApprovedNetwork: function isConnectedToApprovedNetwork(state) {\n return state.user.isConnectedToApprovedNetwork;\n },\n hasCoinbase: function hasCoinbase(state) {\n return state.user.hasCoinbase;\n },\n networkId: function networkId(state) {\n return state.web3.networkId;\n },\n coinbase: function coinbase(state) {\n return state.web3.coinbase;\n },\n currentRoute: function currentRoute(state) {\n return state.currentRoute;\n },\n user: function user(state) {\n return state.user;\n }\n }), {\n currentView: function currentView() {\n switch (this.$route.path) {\n case '/home':\n return __WEBPACK_IMPORTED_MODULE_5__sections_Web3Message__[\"a\" /* default */];\n case '/dashboard':\n return __WEBPACK_IMPORTED_MODULE_3__sections_Profile__[\"a\" /* default */];\n case '/sign-up':\n return __WEBPACK_IMPORTED_MODULE_4__sections_ProfileForm__[\"a\" /* default */];\n case '/profile/edit':\n return __WEBPACK_IMPORTED_MODULE_4__sections_ProfileForm__[\"a\" /* default */];\n default:\n return __WEBPACK_IMPORTED_MODULE_5__sections_Web3Message__[\"a\" /* default */];\n }\n }\n }),\n components: {\n Profile: __WEBPACK_IMPORTED_MODULE_3__sections_Profile__[\"a\" /* default */],\n ProfileForm: __WEBPACK_IMPORTED_MODULE_4__sections_ProfileForm__[\"a\" /* default */],\n Web3Message: __WEBPACK_IMPORTED_MODULE_5__sections_Web3Message__[\"a\" /* default */]\n },\n beforeCreate: function beforeCreate() {\n var _this = this;\n\n this.$store.dispatch(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].REGISTER_WEB3_INSTANCE).then(function () {\n _this.$store.dispatch(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].UPDATE_USER_BLOCKCHAIN_STATUS);\n }).catch(function (result) {\n console.log(\"We've encountered problems with your Web3 connection\");\n });\n },\n created: function created() {\n this[__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].CHANGE_CURRENT_ROUTE_TO](this.$route);\n },\n methods: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"b\" /* mapActions */])([__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].CHANGE_CURRENT_ROUTE_TO, __WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].UPDATE_USER_BLOCKCHAIN_STATUS])),\n watch: {\n hasInjectedWeb3: function hasInjectedWeb3(web3ConnectionValue) {\n console.log('hasInjectedWeb3: ', web3ConnectionValue);\n },\n networkId: function networkId(_networkId) {\n console.log('networkId: ' + _networkId);\n },\n coinbase: function coinbase(_coinbase) {\n console.log('coinbase: ' + _coinbase);\n },\n $route: function $route(newRoute) {\n this[__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].CHANGE_CURRENT_ROUTE_TO](newRoute);\n }\n }\n});\n\n\n\n\n\n\n\n/***/ }),\n\n/***/ \"Fs8J\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__layout_HeaderTemplate__ = __webpack_require__(\"yz5X\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__layout_BodyTemplate__ = __webpack_require__(\"ffIc\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__layout_FooterTemplate__ = __webpack_require__(\"2g7C\");\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'home',\n props: ['currentView'],\n components: {\n HeaderTemplate: __WEBPACK_IMPORTED_MODULE_0__layout_HeaderTemplate__[\"a\" /* default */],\n BodyTemplate: __WEBPACK_IMPORTED_MODULE_1__layout_BodyTemplate__[\"a\" /* default */],\n FooterTemplate: __WEBPACK_IMPORTED_MODULE_2__layout_FooterTemplate__[\"a\" /* default */]\n },\n computed: {\n user: function user() {\n return this.$store.state.user;\n }\n }\n});\n\n\n\n\n\n/***/ }),\n\n/***/ \"HPCu\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"IcnI\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(\"7+uW\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(\"NYxO\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__state__ = __webpack_require__(\"lwq5\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__actions__ = __webpack_require__(\"mUbh\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__getters__ = __webpack_require__(\"UjVw\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__getters___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__getters__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__mutations__ = __webpack_require__(\"ukYY\");\n\n\n// import VuexPersist from 'vuex-persist'\n\n\n\n\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].use(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"c\" /* default */]);\n\n// const vuexLocalStorage = new VuexPersist({\n// key: 'vuex',\n// storage: window.localStorage\n// })\n\nvar store = new __WEBPACK_IMPORTED_MODULE_1_vuex__[\"c\" /* default */].Store({\n // plugins: [vuexLocalStorage.plugin],\n state: __WEBPACK_IMPORTED_MODULE_2__state__[\"a\" /* default */],\n actions: __WEBPACK_IMPORTED_MODULE_3__actions__[\"a\" /* default */],\n getters: __WEBPACK_IMPORTED_MODULE_4__getters___default.a,\n mutations: __WEBPACK_IMPORTED_MODULE_5__mutations__[\"a\" /* default */]\n});\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (store);\n\n/***/ }),\n\n/***/ \"LmkH\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"home\"\n }\n }, [_c('HeaderTemplate'), _vm._v(\" \"), _c('BodyTemplate', {\n attrs: {\n \"current-view\": _vm.currentView\n }\n }), _vm._v(\" \"), _c('FooterTemplate')], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"N9OI\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise__ = __webpack_require__(\"//Fk\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__ = __webpack_require__(\"Zrlr\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__ = __webpack_require__(\"wxAW\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_truffle_contract__ = __webpack_require__(\"dztg\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_truffle_contract___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_truffle_contract__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__build_contracts_Authentication_json__ = __webpack_require__(\"ZBzV\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__build_contracts_Authentication_json___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__build_contracts_Authentication_json__);\n\n\n\n\n\n\nvar auth = null;\n\nvar Auth = function () {\n function Auth() {\n __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_classCallCheck___default()(this, Auth);\n\n auth = auth || this;\n return auth;\n }\n\n __WEBPACK_IMPORTED_MODULE_2_babel_runtime_helpers_createClass___default()(Auth, [{\n key: 'editProfile',\n value: function editProfile() {\n var _this = this;\n\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n _this.accessAuthenticationContractWith({\n state: state,\n method: function method(contractInstance, coinbase) {\n return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n contractInstance.update(data.firstName, data.lastName, data.email, { from: coinbase }).then(function (result) {\n // Successful Sign-up\n resolve(data);\n }).catch(function (e) {\n console.error(e);\n });\n });\n }\n }).then(function (result) {\n resolve(result);\n });\n });\n }\n }, {\n key: 'signup',\n value: function signup() {\n var _this2 = this;\n\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n _this2.accessAuthenticationContractWith({\n state: state,\n method: function method(contractInstance, coinbase) {\n return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n contractInstance.signup(data.firstName, data.lastName, data.email, { from: coinbase }).then(function (result) {\n // Successful Sign-up\n resolve(data);\n }).catch(function (e) {\n console.error(e);\n });\n });\n }\n }).then(function (result) {\n resolve(result);\n });\n });\n }\n }, {\n key: 'login',\n value: function login() {\n var _this3 = this;\n\n var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;\n\n return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n _this3.accessAuthenticationContractWith({\n state: state,\n method: function method(contractInstance, coinbase) {\n return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n contractInstance.login({ from: coinbase }).then(function (result) {\n // Successful Fetch\n resolve(_this3.getUTF8DataOfResults(state, result));\n }).catch(function (e) {\n console.error(e);\n });\n });\n }\n }).then(function (result) {\n resolve(result);\n });\n });\n }\n }, {\n key: 'accessAuthenticationContractWith',\n value: function accessAuthenticationContractWith() {\n var dataObject = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var state = dataObject.state;\n return new __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n if (!state || !state.web3 || !state.web3.instance) {\n console.log('Web3 is not initialised. Use a Web3 injector');\n } else {\n var authContract = __WEBPACK_IMPORTED_MODULE_3_truffle_contract___default()(__WEBPACK_IMPORTED_MODULE_4__build_contracts_Authentication_json___default.a);\n authContract.setProvider(state.web3.instance().currentProvider);\n state.web3.instance().eth.getCoinbase(function (err, coinbase) {\n if (err) {\n console.err(':::Unable to get coinbase for this operation');\n reject(err);\n } else {\n authContract.deployed().then(function (contractInstance) {\n dataObject.method(contractInstance, coinbase).then(function (result) {\n resolve(result);\n });\n });\n }\n });\n }\n });\n }\n }, {\n key: 'getUTF8DataOfResults',\n value: function getUTF8DataOfResults(state, results) {\n var utf8Results = results.map(function (result) {\n return state.web3.instance().toUtf8(result);\n });\n return {\n firstName: utf8Results[0],\n lastName: utf8Results[1],\n email: utf8Results[2]\n };\n }\n }]);\n\n return Auth;\n}();\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (new Auth());\n\n/***/ }),\n\n/***/ \"NHnr\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(\"7+uW\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_App__ = __webpack_require__(\"EWfp\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__router__ = __webpack_require__(\"YaEn\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__store__ = __webpack_require__(\"IcnI\");\n\n\n\n\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].config.devtools = true;\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].config.productionTip = false;\n\n/* eslint-disable no-new */\n\nnew __WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */]({\n el: '#app',\n router: __WEBPACK_IMPORTED_MODULE_2__router__[\"a\" /* default */],\n store: __WEBPACK_IMPORTED_MODULE_3__store__[\"a\" /* default */],\n template: '',\n components: { App: __WEBPACK_IMPORTED_MODULE_1__components_App__[\"a\" /* default */] }\n});\n\n/***/ }),\n\n/***/ \"Ow54\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"POeb\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Profile_vue__ = __webpack_require__(\"SQ2D\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_010bf07b_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Profile_vue__ = __webpack_require__(\"myIA\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"zrg/\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-010bf07b\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Profile_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_010bf07b_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Profile_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"Qm11\":\n/***/ (function(module, exports) {\n\nmodule.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"name\",\"outputs\":[{\"name\":\"o_name\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"content\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"subRegistrar\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_registrar\",\"type\":\"address\"}],\"name\":\"setSubRegistrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"Registrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_primary\",\"type\":\"bool\"}],\"name\":\"setAddress\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_content\",\"type\":\"bytes32\"}],\"name\":\"setContent\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_winner\",\"type\":\"address\"}],\"name\":\"AuctionEnded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_bidder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"NewBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"PrimaryChanged\",\"type\":\"event\"}]\n\n/***/ }),\n\n/***/ \"R/pS\":\n/***/ (function(module, exports) {\n\nmodule.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"name\",\"outputs\":[{\"name\":\"o_name\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"content\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"subRegistrar\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_registrar\",\"type\":\"address\"}],\"name\":\"setSubRegistrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"Registrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_primary\",\"type\":\"bool\"}],\"name\":\"setAddress\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_content\",\"type\":\"bytes32\"}],\"name\":\"setContent\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_winner\",\"type\":\"address\"}],\"name\":\"AuctionEnded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_bidder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"NewBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"PrimaryChanged\",\"type\":\"event\"}]\n\n/***/ }),\n\n/***/ \"SQ2D\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'profile',\n computed: {\n user: function user() {\n return this.$store.state.user;\n },\n isLoggedIn: function isLoggedIn() {\n return this.$store.state.user.isLoggedIn;\n }\n }\n});\n\n/***/ }),\n\n/***/ \"TGvd\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Dashboard_vue__ = __webpack_require__(\"aEfQ\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2d3a9c31_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Dashboard_vue__ = __webpack_require__(\"m7aE\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"Ow54\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2d3a9c31\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Dashboard_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2d3a9c31_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Dashboard_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"U+8w\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"UIsv\":\n/***/ (function(module, exports) {\n\nmodule.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_refund\",\"type\":\"address\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"}],\"name\":\"setAddr\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"}]\n\n/***/ }),\n\n/***/ \"UjVw\":\n/***/ (function(module, exports) {\n\n\n\n/***/ }),\n\n/***/ \"VfEa\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"web3-message\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('div', {\n staticClass: \"message\"\n }, [(_vm.user.hasWeb3InjectedBrowser) ? _c('div', [_vm._v(\"\\n Your browser is Web3-injected.\\n \"), _c('br'), _vm._v(\" \"), (_vm.user.isConnectedToApprovedNetwork) ? _c('div', [_vm._v(\"\\n You are also connected to the \" + _vm._s(_vm.approvedNetworkName) + \" on the blockchain.\\n \"), _c('br'), _vm._v(\" \"), (_vm.user.hasCoinbase) ? _c('div', [_vm._v(\"\\n And you have an account on the blockchain.\"), _c('br'), _vm._v(\"\\n You're all set to use the dApp. Click the LOGIN button above to begin.\\n \")]) : _c('div', [_vm._v(\"\\n But it seems you don't have an account with us on the blockchain.\"), _c('br'), _vm._v(\"Or you do but the account is currently inaccessible.\"), _c('br'), _vm._v(\"Create an account on the blockchain and sign up to begin, or make your existing account accessible.\\n \")])]) : _c('div', [_vm._v(\"\\n But you are not connected to the network on the blockchain [\" + _vm._s(_vm.approvedNetworkName) + \"].\"), _c('br'), _vm._v(\"\\n Connect to the \" + _vm._s(_vm.approvedNetworkName) + \".\\n \")])]) : _c('div', [_vm._v(\"\\n Your browser is not Web3-injected. To use the dApp, you can install \"), _c('a', {\n attrs: {\n \"href\": \"https://metamask.io/\"\n }\n }, [_vm._v(\"Metamask\")]), _vm._v(\".\\n \"), _c('div', {\n staticClass: \"metamask-resource\"\n })])])])])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"WP4h\":\n/***/ (function(module, exports) {\n\nmodule.exports = {\"version\":\"0.18.4\"}\n\n/***/ }),\n\n/***/ \"XDkp\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c(_vm.currentView, {\n tag: \"component\",\n staticClass: \"body-template\"\n })\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"YaEn\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(\"7+uW\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vue_router__ = __webpack_require__(\"/ocq\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Home__ = __webpack_require__(\"lO7g\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_Dashboard__ = __webpack_require__(\"TGvd\");\n\n\n\n\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].use(__WEBPACK_IMPORTED_MODULE_1_vue_router__[\"a\" /* default */]);\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (new __WEBPACK_IMPORTED_MODULE_1_vue_router__[\"a\" /* default */]({\n routes: [{\n mode: 'history',\n path: '/',\n name: 'Home',\n component: __WEBPACK_IMPORTED_MODULE_2__components_Home__[\"a\" /* default */]\n }, {\n mode: 'history',\n path: '/home',\n component: __WEBPACK_IMPORTED_MODULE_2__components_Home__[\"a\" /* default */]\n }, {\n mode: 'history',\n path: '/dashboard',\n component: __WEBPACK_IMPORTED_MODULE_3__components_Dashboard__[\"a\" /* default */]\n }, {\n mode: 'history',\n path: '/sign-up',\n component: __WEBPACK_IMPORTED_MODULE_2__components_Home__[\"a\" /* default */]\n }, {\n mode: 'history',\n path: '/profile/edit',\n component: __WEBPACK_IMPORTED_MODULE_3__components_Dashboard__[\"a\" /* default */]\n }]\n}));\n\n/***/ }),\n\n/***/ \"Z1Py\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ProfileForm_vue__ = __webpack_require__(\"v4ix\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0692b5df_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_ProfileForm_vue__ = __webpack_require__(\"2NTp\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"U+8w\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-0692b5df\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_ProfileForm_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_0692b5df_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_ProfileForm_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"ZBzV\":\n/***/ (function(module, exports) {\n\nmodule.exports = {\"contract_name\":\"Authentication\",\"abi\":[{\"constant\":false,\"inputs\":[{\"name\":\"firstName\",\"type\":\"bytes32\"},{\"name\":\"lastName\",\"type\":\"bytes32\"},{\"name\":\"email\",\"type\":\"bytes32\"}],\"name\":\"signup\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":true,\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"destroy\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"firstName\",\"type\":\"bytes32\"},{\"name\":\"lastName\",\"type\":\"bytes32\"},{\"name\":\"email\",\"type\":\"bytes32\"}],\"name\":\"update\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":true,\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"login\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_recipient\",\"type\":\"address\"}],\"name\":\"destroyAndSend\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"SignedUp\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"Updated\",\"type\":\"event\"}],\"unlinked_binary\":\"0x60606040525b5b60008054600160a060020a03191633600160a060020a03161790555b5b5b61062d806100336000396000f300606060405236156100805763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631a2dc634811461008557806383197ef0146100ba5780638da5cb5b146100cf5780639c0d2525146100fe578063b34e97e814610133578063f2fde38b1461016a578063f5074f411461018b575b600080fd5b6100966004356024356044356101ac565b60405192835260208301919091526040808301919091526060909101905180910390f35b34156100c557600080fd5b6100cd6102eb565b005b34156100da57600080fd5b6100e2610317565b604051600160a060020a03909116815260200160405180910390f35b610096600435602435604435610326565b60405192835260208301919091526040808301919091526060909101905180910390f35b341561013e57600080fd5b6100966104d6565b60405192835260208301919091526040808301919091526060909101905180910390f35b341561017557600080fd5b6100cd600160a060020a036004351661057e565b005b341561019657600080fd5b6100cd600160a060020a03600435166105d6565b005b60008080858015156101bd57600080fd5b858015156101ca57600080fd5b858015156101d757600080fd5b600160a060020a033316600090815260016020526040902054151561021257600160a060020a03331660009081526001602052604090208990555b600160a060020a03331660009081526001602081905260409091200154151561025557600160a060020a0333166000908152600160208190526040909120018890555b600160a060020a033316600090815260016020526040902060020154151561029657600160a060020a03331660009081526001602052604090206002018790555b86600160a060020a0333167f43b85add1b26d595d269b3b3500e49383cdcc47fdda5c8584d6c601c5dc0ab5b8b8b60405191825260208201526040908101905180910390a35b5b505b505b5093509350939050565b60005433600160a060020a0390811691161461030657600080fd5b600054600160a060020a0316ff5b5b565b600054600160a060020a031681565b600080808580151561033757600080fd5b8580151561034457600080fd5b8580151561035157600080fd5b600160a060020a033316600090815260016020526040902054158015906103935750600160a060020a0333166000908152600160208190526040909120015415155b80156103b95750600160a060020a03331660009081526001602052604090206002015415155b15156103c457600080fd5b600160a060020a033316600090815260016020526040902054156103fe57600160a060020a03331660009081526001602052604090208990555b600160a060020a033316600090815260016020819052604090912001541561044057600160a060020a0333166000908152600160208190526040909120018890555b600160a060020a0333166000908152600160205260409020600201541561048057600160a060020a03331660009081526001602052604090206002018790555b86600160a060020a0333167ff30000b0c45b2f041d5fbfa2021f30a3799312d9a346b182802b0ef9ee4878838b8b60405191825260208201526040908101905180910390a35b5b5b505b505b5093509350939050565b600160a060020a033316600090815260016020526040812054819081901580159061051c5750600160a060020a0333166000908152600160208190526040909120015415155b80156105425750600160a060020a03331660009081526001602052604090206002015415155b151561054d57600080fd5b505050600160a060020a03331660009081526001602081905260409091208054918101546002909101545b5b909192565b60005433600160a060020a0390811691161461059957600080fd5b600160a060020a038116156105d1576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b5b50565b60005433600160a060020a039081169116146105f157600080fd5b80600160a060020a0316ff5b5b505600a165627a7a72305820a9a70bfcc18383e915de076ec251518e397a46b17551fa0cf47976a24370bab30029\",\"networks\":{\"765\":{\"events\":{\"0x43b85add1b26d595d269b3b3500e49383cdcc47fdda5c8584d6c601c5dc0ab5b\":{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"SignedUp\",\"type\":\"event\"},\"0xf30000b0c45b2f041d5fbfa2021f30a3799312d9a346b182802b0ef9ee487883\":{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"Updated\",\"type\":\"event\"}},\"links\":{},\"address\":\"0x609a32adcc2f6877fe5d448d79609ff9b7bcc9f2\",\"updated_at\":1505265489232}},\"schema_version\":\"0.0.5\",\"updated_at\":1505265489232}\n\n/***/ }),\n\n/***/ \"ZHP+\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'body-template',\n props: ['currentView'],\n computed: {\n user: function user() {\n return this.$store.state.user;\n },\n isLoggedIn: function isLoggedIn() {\n return this.$store.state.user.isLoggedIn;\n }\n }\n});\n\n/***/ }),\n\n/***/ \"aEfQ\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(\"Dd8w\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(\"NYxO\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__layout_HeaderTemplate__ = __webpack_require__(\"yz5X\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__layout_BodyTemplate__ = __webpack_require__(\"ffIc\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__layout_FooterTemplate__ = __webpack_require__(\"2g7C\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__util_constants__ = __webpack_require__(\"+xc3\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'dashboard',\n props: ['currentView'],\n components: {\n HeaderTemplate: __WEBPACK_IMPORTED_MODULE_2__layout_HeaderTemplate__[\"a\" /* default */],\n BodyTemplate: __WEBPACK_IMPORTED_MODULE_3__layout_BodyTemplate__[\"a\" /* default */],\n FooterTemplate: __WEBPACK_IMPORTED_MODULE_4__layout_FooterTemplate__[\"a\" /* default */]\n },\n created: function created() {\n if (this.$store.state.user.email === '' || !this.$store.state.user.isLoggedIn) this.$router.push('/');\n },\n computed: {\n user: function user() {\n return this.$store.state.user;\n },\n isLoggedIn: function isLoggedIn() {\n return this.$store.state.user.isLoggedIn;\n }\n },\n methods: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"b\" /* mapActions */])([__WEBPACK_IMPORTED_MODULE_5__util_constants__[\"a\" /* ACTION_TYPES */].LOGIN]))\n});\n\n\n\n\n\n\n\n/***/ }),\n\n/***/ \"djAN\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"f2im\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'footer-template',\n computed: {\n user: function user() {\n return this.$store.state.user;\n }\n }\n});\n\n/***/ }),\n\n/***/ \"ffIc\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_BodyTemplate_vue__ = __webpack_require__(\"ZHP+\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6a0a301e_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_BodyTemplate_vue__ = __webpack_require__(\"XDkp\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"qLi9\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6a0a301e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_BodyTemplate_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6a0a301e_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_BodyTemplate_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"fqMf\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"gPMH\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_constants__ = __webpack_require__(\"+xc3\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n name: 'web3-message',\n data: function data() {\n return {\n approvedNetworkName: __WEBPACK_IMPORTED_MODULE_0__util_constants__[\"b\" /* NETWORKS */][__WEBPACK_IMPORTED_MODULE_0__util_constants__[\"b\" /* NETWORKS */]['approvedBlockchainNetwork']]\n };\n },\n computed: {\n user: function user() {\n return this.$store.state.user;\n }\n }\n});\n\n\n\n/***/ }),\n\n/***/ \"gi4C\":\n/***/ (function(module, exports) {\n\nmodule.exports = [{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"icapTransfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"to\",\"type\":\"bytes32\"}],\"name\":\"deposit\",\"outputs\":[],\"payable\":true,\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"AnonymousDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"IcapTransfer\",\"type\":\"event\"}]\n\n/***/ }),\n\n/***/ \"lO7g\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Home_vue__ = __webpack_require__(\"Fs8J\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f35305c_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Home_vue__ = __webpack_require__(\"LmkH\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"fqMf\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2f35305c\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Home_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_2f35305c_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Home_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"lquA\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"lwq5\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n currentRoute: null,\n web3: {\n address: null,\n coinbase: null,\n error: null,\n instance: null,\n isInjected: false,\n networkId: null\n },\n user: {\n email: '',\n firstName: '',\n lastName: '',\n hasCoinbase: false,\n hasWeb3InjectedBrowser: false,\n isConnectedToApprovedNetwork: false,\n isLoggedIn: false\n }\n});\n\n/***/ }),\n\n/***/ \"m7aE\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"dashboard\"\n }\n }, [_c('HeaderTemplate'), _vm._v(\" \"), _c('BodyTemplate', {\n attrs: {\n \"current-view\": _vm.currentView\n }\n }), _vm._v(\" \"), _c('FooterTemplate')], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"mOn1\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _vm._m(0)\n}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"footer-template\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('div', {\n staticClass: \"links\"\n }, [_c('a', {\n staticClass: \"link2\",\n attrs: {\n \"href\": \"https://github.com/DOkwufulueze/eth-vue\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"Github\")]), _vm._v(\" \"), _c('span', {\n staticClass: \"divider\"\n }), _vm._v(\" \"), _c('a', {\n staticClass: \"link3\",\n attrs: {\n \"href\": \"http://danielokwufulueze.com\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"www\")])]), _vm._v(\" \"), _c('div', {\n staticClass: \"copyleft\"\n }, [_c('div', {\n staticClass: \"text\"\n }, [_vm._v(\"Copyleft \"), _c('span', {\n staticClass: \"copyleft-resource\"\n }), _vm._v(\" 2017 \"), _c('a', {\n staticClass: \"link2\",\n attrs: {\n \"href\": \"https://danielokwufulueze.com\"\n }\n }, [_vm._v(\"Daniel Okwufulueze\")]), _vm._v(\".\")])]), _vm._v(\" \"), _c('div', {\n staticClass: \"social\"\n }, [_c('a', {\n staticClass: \"facebook\",\n attrs: {\n \"href\": \"https://facebook.com/DOkwufulueze\",\n \"target\": \"_blank\"\n }\n }), _vm._v(\" \"), _c('a', {\n staticClass: \"twitter\",\n attrs: {\n \"href\": \"https://twitter.com/dokwufulueze\",\n \"target\": \"_blank\"\n }\n })])])])\n}]\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"mUbh\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(\"bOdI\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise__ = __webpack_require__(\"//Fk\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_constants__ = __webpack_require__(\"+xc3\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util_web3_getWeb3__ = __webpack_require__(\"sW12\");\n\n\n\nvar _ACTION_TYPES$REGISTE;\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (_ACTION_TYPES$REGISTE = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_ACTION_TYPES$REGISTE, __WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].REGISTER_WEB3_INSTANCE, function (_ref) {\n var commit = _ref.commit,\n dispatch = _ref.dispatch;\n\n return new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n // Try to initialize web3\n __WEBPACK_IMPORTED_MODULE_3__util_web3_getWeb3__[\"a\" /* default */].then(function (result) {\n commit(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"c\" /* MUTATION_TYPES */].REGISTER_WEB3_INSTANCE, {\n result: result,\n callback: function callback() {\n return resolve();\n }\n });\n }).catch(function (e) {\n if (e.result) {\n var result = e.result;\n commit(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"c\" /* MUTATION_TYPES */].REGISTER_WEB3_INSTANCE, {\n result: {\n web3: result.hasInjectedWeb3 ? function () {\n return result.web3;\n } : null,\n hasInjectedWeb3: result.hasInjectedWeb3 ? result.hasInjectedWeb3 : false,\n web3Error: e.err\n },\n callback: function callback() {\n return reject(result);\n }\n });\n }\n });\n });\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_ACTION_TYPES$REGISTE, __WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].UPDATE_USER_BLOCKCHAIN_STATUS, function (_ref2) {\n var commit = _ref2.commit;\n\n commit(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"c\" /* MUTATION_TYPES */].UPDATE_USER_BLOCKCHAIN_STATUS);\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_ACTION_TYPES$REGISTE, __WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].LOGIN, function (_ref3, userData) {\n var commit = _ref3.commit;\n\n return new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n commit(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"c\" /* MUTATION_TYPES */].LOGIN, {\n userData: userData,\n callback: function callback() {\n return resolve(userData);\n }\n });\n });\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_ACTION_TYPES$REGISTE, __WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].LOGOUT, function (_ref4) {\n var commit = _ref4.commit;\n\n return new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n commit(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"c\" /* MUTATION_TYPES */].LOGOUT, {\n callback: function callback() {\n return resolve();\n }\n });\n });\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_ACTION_TYPES$REGISTE, __WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].CHANGE_CURRENT_ROUTE_TO, function (_ref5, newRoute) {\n var commit = _ref5.commit;\n\n commit(__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"c\" /* MUTATION_TYPES */].CHANGE_CURRENT_ROUTE_TO, newRoute);\n}), _ACTION_TYPES$REGISTE);\n\n/***/ }),\n\n/***/ \"myIA\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"profile\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('div', {\n staticClass: \"message\"\n }, [_c('div', [_vm._v(\"\\n Welcome to your Profile Page \" + _vm._s(_vm.user.firstName) + \"\\n \")])])])])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"oPsS\":\n/***/ (function(module, exports) {\n\nmodule.exports = [{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"icapTransfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"to\",\"type\":\"bytes32\"}],\"name\":\"deposit\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"AnonymousDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"IcapTransfer\",\"type\":\"event\"}]\n\n/***/ }),\n\n/***/ \"qLi9\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n\n/***/ \"rEmu\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Web3Message_vue__ = __webpack_require__(\"gPMH\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6477bc0c_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Web3Message_vue__ = __webpack_require__(\"VfEa\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"lquA\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6477bc0c\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_Web3Message_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_6477bc0c_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_Web3Message_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"sW12\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign__ = __webpack_require__(\"woOf\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise__ = __webpack_require__(\"//Fk\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_web3__ = __webpack_require__(\"8k0n\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_web3___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_web3__);\n\n\n\n\nvar getWeb3 = new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n // Wait for loading completion to avoid race conditions with web3 injection timing.\n window.addEventListener('load', function () {\n var web3 = window.web3;\n\n // Checking if Web3 has been injected by the browser (Mist/MetaMask)\n if (typeof web3 !== 'undefined') {\n // Use Mist/MetaMask's provider.\n web3 = new __WEBPACK_IMPORTED_MODULE_2_web3___default.a(web3.currentProvider);\n resolve({\n hasInjectedWeb3: web3.isConnected(),\n web3: web3\n });\n } else {\n reject({\n result: null,\n err: 'Unable to connect to Web3'\n });\n }\n });\n}).then(function (result) {\n // get blockchain network Id\n return new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n result.web3.version.getNetwork(function (err, networkId) {\n if (err) {\n result = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default()({}, result);\n reject({\n result: result,\n err: err\n });\n } else {\n networkId = networkId.toString();\n result = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default()({}, result, { networkId: networkId });\n resolve(result);\n }\n });\n });\n}).then(function (networkIdResult) {\n // get coinbase\n return new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n networkIdResult.web3.eth.getCoinbase(function (err, coinbase) {\n var result = void 0;\n if (err) {\n result = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default()({}, networkIdResult);\n reject({\n result: result,\n err: err\n });\n } else {\n result = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default()({}, networkIdResult, { coinbase: coinbase });\n resolve(result);\n }\n });\n });\n}).then(function (coinbaseResult) {\n return new __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a(function (resolve, reject) {\n var address = coinbaseResult.web3.eth.defaultAccount;\n var result = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default()({}, coinbaseResult, { address: address });\n resolve(result);\n });\n});\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (getWeb3);\n\n/***/ }),\n\n/***/ \"ukYY\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__ = __webpack_require__(\"bOdI\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_constants__ = __webpack_require__(\"+xc3\");\n\n\nvar _MUTATION_TYPES$REGIS;\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (_MUTATION_TYPES$REGIS = {}, __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_MUTATION_TYPES$REGIS, __WEBPACK_IMPORTED_MODULE_1__util_constants__[\"c\" /* MUTATION_TYPES */].REGISTER_WEB3_INSTANCE, function (state, payload) {\n var result = payload.result;\n state.web3.instance = function () {\n return result.web3;\n };\n state.web3.address = result.address;\n state.web3.coinbase = result.coinbase;\n state.web3.networkId = result.networkId;\n state.web3.error = result.web3Error;\n state.web3.isInjected = result.hasInjectedWeb3;\n if (payload.callback) payload.callback(result);\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_MUTATION_TYPES$REGIS, __WEBPACK_IMPORTED_MODULE_1__util_constants__[\"c\" /* MUTATION_TYPES */].UPDATE_USER_BLOCKCHAIN_STATUS, function (state) {\n state.user.hasWeb3InjectedBrowser = state.web3.isInjected;\n state.user.hasCoinbase = state.web3.coinbase && state.web3.coinbase !== '';\n state.user.isConnectedToApprovedNetwork = state.web3.networkId && state.web3.networkId !== '' && state.web3.networkId === __WEBPACK_IMPORTED_MODULE_1__util_constants__[\"b\" /* NETWORKS */]['approvedBlockchainNetwork'];\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_MUTATION_TYPES$REGIS, __WEBPACK_IMPORTED_MODULE_1__util_constants__[\"c\" /* MUTATION_TYPES */].LOGIN, function (state, payload) {\n var userData = payload.userData;\n state.user.firstName = userData.firstName;\n state.user.lastName = userData.lastName;\n state.user.email = userData.email;\n state.user.isLoggedIn = !!(userData.email && userData.email !== '');\n if (payload.callback) payload.callback(userData);\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_MUTATION_TYPES$REGIS, __WEBPACK_IMPORTED_MODULE_1__util_constants__[\"c\" /* MUTATION_TYPES */].LOGOUT, function (state, payload) {\n state.user.firstName = '';\n state.user.lastName = '';\n state.user.email = '';\n state.user.isLoggedIn = false;\n if (payload.callback) payload.callback();\n}), __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_defineProperty___default()(_MUTATION_TYPES$REGIS, __WEBPACK_IMPORTED_MODULE_1__util_constants__[\"c\" /* MUTATION_TYPES */].CHANGE_CURRENT_ROUTE_TO, function (state, newRoute) {\n state.currentRoute = newRoute;\n}), _MUTATION_TYPES$REGIS);\n\n/***/ }),\n\n/***/ \"v4ix\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__ = __webpack_require__(\"Dd8w\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(\"NYxO\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_constants__ = __webpack_require__(\"+xc3\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__js_Auth__ = __webpack_require__(\"N9OI\");\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"a\"] = ({\n data: function data() {\n return {\n firstName: this.$store.state.user.firstName,\n lastName: this.$store.state.user.lastName,\n email: this.$store.state.user.email\n };\n },\n computed: {\n user: function user() {\n return this.$store.state.user;\n }\n },\n methods: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"b\" /* mapActions */])([__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].LOGIN]), {\n submitProfileToTheBlockchain: function submitProfileToTheBlockchain(evt) {\n var _this = this;\n\n evt.target.disabled = true;\n var action = this.$route.path === '/sign-up' ? 'signup' : 'editProfile';\n var userProfileData = {\n firstName: this.firstName,\n lastName: this.lastName,\n email: this.email\n };\n\n __WEBPACK_IMPORTED_MODULE_3__js_Auth__[\"a\" /* default */][action](this.$store.state, userProfileData).then(function (userData) {\n _this[__WEBPACK_IMPORTED_MODULE_2__util_constants__[\"a\" /* ACTION_TYPES */].LOGIN](userData).then(function (userData) {\n evt.target.disabled = false;\n console.log(action === 'signup' ? 'Signed up and logged In' : 'Successfully updated profile');\n if (_this.$store.state.user.email === '' || !_this.$store.state.user.isLoggedIn) {\n _this.$router.push('/');\n } else {\n _this.$router.push('/dashboard');\n }\n });\n });\n }\n })\n});\n\n\n\n\n\n/***/ }),\n\n/***/ \"xGuS\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nvar render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"app\"\n }\n }, [_c('router-view', {\n attrs: {\n \"current-view\": _vm.currentView\n }\n })], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\n/* harmony default export */ __webpack_exports__[\"a\"] = (esExports);\n\n/***/ }),\n\n/***/ \"yz5X\":\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_HeaderTemplate_vue__ = __webpack_require__(\"1Sql\");\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f942609_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_HeaderTemplate_vue__ = __webpack_require__(\"0lwJ\");\nfunction injectStyle (ssrContext) {\n __webpack_require__(\"djAN\")\n}\nvar normalizeComponent = __webpack_require__(\"VU/8\")\n/* script */\n\n/* template */\n\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-7f942609\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_HeaderTemplate_vue__[\"a\" /* default */],\n __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_7f942609_hasScoped_true_transformToRequire_video_src_source_src_img_src_image_xlink_href_node_modules_vue_loader_lib_selector_type_template_index_0_HeaderTemplate_vue__[\"a\" /* default */],\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\n/* harmony default export */ __webpack_exports__[\"a\"] = (Component.exports);\n\n\n/***/ }),\n\n/***/ \"zrg/\":\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ })\n\n},[\"NHnr\"]);\n\n\n// WEBPACK FOOTER //\n// static/js/app.e2d35e51f4b7fe2e8ce9.js","module.exports = {\"_from\":\"truffle-contract-schema@0.0.5\",\"_id\":\"truffle-contract-schema@0.0.5\",\"_inBundle\":false,\"_integrity\":\"sha1-Xp0gvQvyon/pQxB0gknUhO7kmWE=\",\"_location\":\"/truffle-contract-schema\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"truffle-contract-schema@0.0.5\",\"name\":\"truffle-contract-schema\",\"escapedName\":\"truffle-contract-schema\",\"rawSpec\":\"0.0.5\",\"saveSpec\":null,\"fetchSpec\":\"0.0.5\"},\"_requiredBy\":[\"/truffle-contract\"],\"_resolved\":\"https://registry.npmjs.org/truffle-contract-schema/-/truffle-contract-schema-0.0.5.tgz\",\"_shasum\":\"5e9d20bd0bf2a27fe94310748249d484eee49961\",\"_spec\":\"truffle-contract-schema@0.0.5\",\"_where\":\"/home/daniel/dev/vue/apps/eth-vue/node_modules/truffle-contract\",\"author\":{\"name\":\"Tim Coulter\",\"email\":\"tim.coulter@consensys.net\"},\"bugs\":{\"url\":\"https://github.com/trufflesuite/truffle-schema/issues\"},\"bundleDependencies\":false,\"dependencies\":{\"crypto-js\":\"^3.1.9-1\"},\"deprecated\":false,\"description\":\"JSON schema for contract artifacts\",\"devDependencies\":{\"mocha\":\"^3.2.0\"},\"homepage\":\"https://github.com/trufflesuite/truffle-schema#readme\",\"keywords\":[\"ethereum\",\"json\",\"schema\",\"contract\",\"artifacts\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"truffle-contract-schema\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/trufflesuite/truffle-schema.git\"},\"scripts\":{\"test\":\"mocha\"},\"version\":\"0.0.5\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/truffle-contract-schema/package.json\n// module id = +lBM\n// module chunks = 1","export const NETWORKS = {\n '1': 'Main Net',\n '2': 'Deprecated Morden test network',\n '3': 'Ropsten test network',\n '4': 'Rinkeby test network',\n '42': 'Kovan test network',\n '765': 'DanielNet test network',\n 'approvedBlockchainNetwork': '3'\n}\n\nexport const MUTATION_TYPES = {\n CHANGE_CURRENT_ROUTE_TO: 'changeCurrentRouteTo',\n REGISTER_WEB3_INSTANCE: 'registerWeb3Instance',\n UPDATE_USER_BLOCKCHAIN_STATUS: 'updateUserBlockchainStatus',\n LOGIN: 'login',\n LOGOUT: 'logout'\n}\n\nexport const ACTION_TYPES = MUTATION_TYPES\n\n\n\n// WEBPACK FOOTER //\n// ./src/util/constants.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"sticky header\",\n attrs: {\n \"id\": \"header-template\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('router-link', {\n staticClass: \"logo\",\n attrs: {\n \"to\": \"/\"\n }\n }, [_vm._v(\"INSERT YOUR LOGO HERE\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"links\"\n }, [(!_vm.isLoggedIn) ? _c('router-link', {\n staticClass: \"link1\",\n attrs: {\n \"to\": \"/sign-up\"\n }\n }, [_vm._v(\"Sign Up\")]) : _vm._e(), _vm._v(\" \"), (!_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), (!_vm.isLoggedIn) ? _c('input', {\n staticClass: \"link1\",\n attrs: {\n \"type\": \"button\",\n \"value\": \"Login\"\n },\n on: {\n \"click\": _vm.logUserIn\n }\n }) : _vm._e(), _vm._v(\" \"), (!_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('router-link', {\n staticClass: \"link2\",\n attrs: {\n \"to\": \"/profile/edit\"\n }\n }, [_vm._v(\"Edit Profile\")]) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('input', {\n staticClass: \"link2\",\n attrs: {\n \"type\": \"button\",\n \"value\": \"Logout\"\n },\n on: {\n \"click\": _vm.logUserOut\n }\n }) : _vm._e(), _vm._v(\" \"), (_vm.isLoggedIn) ? _c('span', {\n staticClass: \"divider\"\n }) : _vm._e(), _vm._v(\" \"), _c('a', {\n staticClass: \"link3\",\n attrs: {\n \"href\": \"https://github.com/DOkwufulueze/eth-vue\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"Github\")]), _vm._v(\" \"), _c('span', {\n staticClass: \"divider\"\n }), _vm._v(\" \"), _c('a', {\n staticClass: \"link4\",\n attrs: {\n \"href\": \"http://danielokwufulueze.com\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"www\")])], 1)], 1)])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-7f942609\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/layout/HeaderTemplate.vue\n// module id = 0lwJ\n// module chunks = 1","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/layout/HeaderTemplate.vue?57b9c981","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"profile-form\"\n }\n }, [_c('h3', [_vm._v(_vm._s(this.$route.path === '/sign-up' ? 'Sign Up' : 'Edit Profile'))]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('label', {\n attrs: {\n \"for\": \"first-name\"\n }\n }, [_vm._v(\"First name\")]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.firstName),\n expression: \"firstName\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"first-name\",\n \"name\": \"first-name\"\n },\n domProps: {\n \"value\": (_vm.firstName)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.firstName = $event.target.value\n }\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('label', {\n attrs: {\n \"for\": \"last-name\"\n }\n }, [_vm._v(\"Last name\")]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.lastName),\n expression: \"lastName\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"Last-name\",\n \"name\": \"Last-name\"\n },\n domProps: {\n \"value\": (_vm.lastName)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.lastName = $event.target.value\n }\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('label', {\n attrs: {\n \"for\": \"email\"\n }\n }, [_vm._v(\"Email\")]), _vm._v(\" \"), _c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.email),\n expression: \"email\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"email\",\n \"name\": \"email\"\n },\n domProps: {\n \"value\": (_vm.email)\n },\n on: {\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.email = $event.target.value\n }\n }\n })]), _vm._v(\" \"), _c('div', {\n staticClass: \"row\"\n }, [_c('input', {\n attrs: {\n \"type\": \"button\",\n \"value\": \"Submit\"\n },\n on: {\n \"click\": _vm.submitProfileToTheBlockchain\n }\n })])])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-0692b5df\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/sections/ProfileForm.vue\n// module id = 2NTp\n// module chunks = 1","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-10c3d417\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./FooterTemplate.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./FooterTemplate.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-10c3d417\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./FooterTemplate.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-10c3d417\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/layout/FooterTemplate.vue\n// module id = 2g7C\n// module chunks = 1","module.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_refund\",\"type\":\"address\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"}],\"name\":\"setAddr\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/truffle-blockchain-utils/~/web3/lib/contracts/ICAPRegistrar.json\n// module id = D5te\n// module chunks = 1","module.exports = {\"version\":\"0.16.0\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/web3/lib/version.json\n// module id = EEbw\n// module chunks = 1","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-7f75f604\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./App.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./App.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7f75f604\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./App.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/App.vue\n// module id = EWfp\n// module chunks = 1","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/App.vue?144bbe61","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Home.vue?786074f8","import Vue from 'vue'\nimport Vuex from 'vuex'\n// import VuexPersist from 'vuex-persist'\nimport state from './state'\nimport actions from './actions'\nimport getters from './getters'\nimport mutations from './mutations'\n\nVue.use(Vuex)\n\n// const vuexLocalStorage = new VuexPersist({\n// key: 'vuex',\n// storage: window.localStorage\n// })\n\nconst store = new Vuex.Store({\n // plugins: [vuexLocalStorage.plugin],\n state,\n actions,\n getters,\n mutations\n})\n\nexport default store\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/index.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"home\"\n }\n }, [_c('HeaderTemplate'), _vm._v(\" \"), _c('BodyTemplate', {\n attrs: {\n \"current-view\": _vm.currentView\n }\n }), _vm._v(\" \"), _c('FooterTemplate')], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-2f35305c\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/Home.vue\n// module id = LmkH\n// module chunks = 1","import contract from 'truffle-contract'\nimport AuthContract from '../../build/contracts/Authentication.json'\n\nlet auth = null\nclass Auth {\n constructor () {\n auth = auth || this\n return auth\n }\n\n editProfile (state = null, data = {}) {\n return new Promise((resolve, reject) => {\n this.accessAuthenticationContractWith({\n state,\n method: (contractInstance, coinbase) => {\n return new Promise((resolve, reject) => {\n contractInstance.update(data.firstName, data.lastName, data.email, { from: coinbase })\n .then((result) => {\n // Successful Sign-up\n resolve(data)\n })\n .catch((e) => {\n console.error(e)\n })\n })\n }\n })\n .then((result) => {\n resolve(result)\n })\n })\n }\n\n signup (state = null, data = {}) {\n return new Promise((resolve, reject) => {\n this.accessAuthenticationContractWith({\n state,\n method: (contractInstance, coinbase) => {\n return new Promise((resolve, reject) => {\n contractInstance.signup(data.firstName, data.lastName, data.email, { from: coinbase })\n .then((result) => {\n // Successful Sign-up\n resolve(data)\n })\n .catch((e) => {\n console.error(e)\n })\n })\n }\n })\n .then((result) => {\n resolve(result)\n })\n })\n }\n\n login (state = null) {\n return new Promise((resolve, reject) => {\n this.accessAuthenticationContractWith({\n state,\n method: (contractInstance, coinbase) => {\n return new Promise((resolve, reject) => {\n contractInstance.login({ from: coinbase })\n .then((result) => {\n // Successful Fetch\n resolve(this.getUTF8DataOfResults(state, result))\n })\n .catch((e) => {\n console.error(e)\n })\n })\n }\n })\n .then((result) => {\n resolve(result)\n })\n })\n }\n\n accessAuthenticationContractWith (dataObject = {}) {\n const state = dataObject.state\n return new Promise(function (resolve, reject) {\n if (!state || !state.web3 || !(state.web3.instance)) {\n console.log('Web3 is not initialised. Use a Web3 injector')\n } else {\n let authContract = contract(AuthContract)\n authContract.setProvider(state.web3.instance().currentProvider)\n state.web3.instance().eth.getCoinbase((err, coinbase) => {\n if (err) {\n console.err(':::Unable to get coinbase for this operation')\n reject(err)\n } else {\n authContract.deployed()\n .then((contractInstance) => {\n dataObject.method(contractInstance, coinbase)\n .then((result) => {\n resolve(result)\n })\n })\n }\n })\n }\n })\n }\n\n getUTF8DataOfResults (state, results) {\n const utf8Results = results.map(result => state.web3.instance().toUtf8(result))\n return {\n firstName: utf8Results[0],\n lastName: utf8Results[1],\n email: utf8Results[2]\n }\n }\n}\n\nexport default new Auth()\n\n\n\n// WEBPACK FOOTER //\n// ./src/js/Auth.js","import Vue from 'vue'\nimport App from './components/App'\nimport router from './router'\nimport store from './store'\n\nVue.config.devtools = true\nVue.config.productionTip = false\n\n/* eslint-disable no-new */\n\nnew Vue({\n el: '#app',\n router,\n store,\n template: '',\n components: { App }\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/main.js","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-010bf07b\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Profile.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Profile.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-010bf07b\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Profile.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-010bf07b\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/sections/Profile.vue\n// module id = POeb\n// module chunks = 1","module.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"name\",\"outputs\":[{\"name\":\"o_name\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"content\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"subRegistrar\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_registrar\",\"type\":\"address\"}],\"name\":\"setSubRegistrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"Registrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_primary\",\"type\":\"bool\"}],\"name\":\"setAddress\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_content\",\"type\":\"bytes32\"}],\"name\":\"setContent\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_winner\",\"type\":\"address\"}],\"name\":\"AuctionEnded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_bidder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"NewBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"PrimaryChanged\",\"type\":\"event\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/truffle-blockchain-utils/~/web3/lib/contracts/GlobalRegistrar.json\n// module id = Qm11\n// module chunks = 1","module.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_owner\",\"type\":\"address\"}],\"name\":\"name\",\"outputs\":[{\"name\":\"o_name\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"content\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"subRegistrar\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_registrar\",\"type\":\"address\"}],\"name\":\"setSubRegistrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"Registrar\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"},{\"name\":\"_primary\",\"type\":\"bool\"}],\"name\":\"setAddress\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_content\",\"type\":\"bytes32\"}],\"name\":\"setContent\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_winner\",\"type\":\"address\"}],\"name\":\"AuctionEnded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_name\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_bidder\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"NewBid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"PrimaryChanged\",\"type\":\"event\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/web3/lib/contracts/GlobalRegistrar.json\n// module id = R/pS\n// module chunks = 1","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/sections/Profile.vue?7211d1f1","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2d3a9c31\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Dashboard.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Dashboard.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2d3a9c31\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Dashboard.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2d3a9c31\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Dashboard.vue\n// module id = TGvd\n// module chunks = 1","module.exports = [{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_refund\",\"type\":\"address\"}],\"name\":\"disown\",\"outputs\":[],\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"}],\"name\":\"reserve\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_newOwner\",\"type\":\"address\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_name\",\"type\":\"bytes32\"},{\"name\":\"_a\",\"type\":\"address\"}],\"name\":\"setAddr\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"name\",\"type\":\"bytes32\"}],\"name\":\"Changed\",\"type\":\"event\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/web3/lib/contracts/ICAPRegistrar.json\n// module id = UIsv\n// module chunks = 1","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"web3-message\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('div', {\n staticClass: \"message\"\n }, [(_vm.user.hasWeb3InjectedBrowser) ? _c('div', [_vm._v(\"\\n Your browser is Web3-injected.\\n \"), _c('br'), _vm._v(\" \"), (_vm.user.isConnectedToApprovedNetwork) ? _c('div', [_vm._v(\"\\n You are also connected to the \" + _vm._s(_vm.approvedNetworkName) + \" on the blockchain.\\n \"), _c('br'), _vm._v(\" \"), (_vm.user.hasCoinbase) ? _c('div', [_vm._v(\"\\n And you have an account on the blockchain.\"), _c('br'), _vm._v(\"\\n You're all set to use the dApp. Click the LOGIN button above to begin.\\n \")]) : _c('div', [_vm._v(\"\\n But it seems you don't have an account with us on the blockchain.\"), _c('br'), _vm._v(\"Or you do but the account is currently inaccessible.\"), _c('br'), _vm._v(\"Create an account on the blockchain and sign up to begin, or make your existing account accessible.\\n \")])]) : _c('div', [_vm._v(\"\\n But you are not connected to the network on the blockchain [\" + _vm._s(_vm.approvedNetworkName) + \"].\"), _c('br'), _vm._v(\"\\n Connect to the \" + _vm._s(_vm.approvedNetworkName) + \".\\n \")])]) : _c('div', [_vm._v(\"\\n Your browser is not Web3-injected. To use the dApp, you can install \"), _c('a', {\n attrs: {\n \"href\": \"https://metamask.io/\"\n }\n }, [_vm._v(\"Metamask\")]), _vm._v(\".\\n \"), _c('div', {\n staticClass: \"metamask-resource\"\n })])])])])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-6477bc0c\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/sections/Web3Message.vue\n// module id = VfEa\n// module chunks = 1","module.exports = {\"version\":\"0.18.4\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/truffle-blockchain-utils/~/web3/lib/version.json\n// module id = WP4h\n// module chunks = 1","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c(_vm.currentView, {\n tag: \"component\",\n staticClass: \"body-template\"\n })\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-6a0a301e\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/layout/BodyTemplate.vue\n// module id = XDkp\n// module chunks = 1","import Vue from 'vue'\nimport Router from 'vue-router'\nimport Home from '@/components/Home'\nimport Dashboard from '@/components/Dashboard'\n\nVue.use(Router)\n\nexport default new Router({\n routes: [\n {\n mode: 'history',\n path: '/',\n name: 'Home',\n component: Home\n },\n {\n mode: 'history',\n path: '/home',\n component: Home\n },\n {\n mode: 'history',\n path: '/dashboard',\n component: Dashboard\n },\n {\n mode: 'history',\n path: '/sign-up',\n component: Home\n },\n {\n mode: 'history',\n path: '/profile/edit',\n component: Dashboard\n }\n ]\n})\n\n\n\n// WEBPACK FOOTER //\n// ./src/router/index.js","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-0692b5df\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./ProfileForm.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ProfileForm.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-0692b5df\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./ProfileForm.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-0692b5df\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/sections/ProfileForm.vue\n// module id = Z1Py\n// module chunks = 1","module.exports = {\"contract_name\":\"Authentication\",\"abi\":[{\"constant\":false,\"inputs\":[{\"name\":\"firstName\",\"type\":\"bytes32\"},{\"name\":\"lastName\",\"type\":\"bytes32\"},{\"name\":\"email\",\"type\":\"bytes32\"}],\"name\":\"signup\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":true,\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"destroy\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"firstName\",\"type\":\"bytes32\"},{\"name\":\"lastName\",\"type\":\"bytes32\"},{\"name\":\"email\",\"type\":\"bytes32\"}],\"name\":\"update\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":true,\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"login\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"},{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_recipient\",\"type\":\"address\"}],\"name\":\"destroyAndSend\",\"outputs\":[],\"payable\":false,\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"SignedUp\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"Updated\",\"type\":\"event\"}],\"unlinked_binary\":\"0x60606040525b5b60008054600160a060020a03191633600160a060020a03161790555b5b5b61062d806100336000396000f300606060405236156100805763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631a2dc634811461008557806383197ef0146100ba5780638da5cb5b146100cf5780639c0d2525146100fe578063b34e97e814610133578063f2fde38b1461016a578063f5074f411461018b575b600080fd5b6100966004356024356044356101ac565b60405192835260208301919091526040808301919091526060909101905180910390f35b34156100c557600080fd5b6100cd6102eb565b005b34156100da57600080fd5b6100e2610317565b604051600160a060020a03909116815260200160405180910390f35b610096600435602435604435610326565b60405192835260208301919091526040808301919091526060909101905180910390f35b341561013e57600080fd5b6100966104d6565b60405192835260208301919091526040808301919091526060909101905180910390f35b341561017557600080fd5b6100cd600160a060020a036004351661057e565b005b341561019657600080fd5b6100cd600160a060020a03600435166105d6565b005b60008080858015156101bd57600080fd5b858015156101ca57600080fd5b858015156101d757600080fd5b600160a060020a033316600090815260016020526040902054151561021257600160a060020a03331660009081526001602052604090208990555b600160a060020a03331660009081526001602081905260409091200154151561025557600160a060020a0333166000908152600160208190526040909120018890555b600160a060020a033316600090815260016020526040902060020154151561029657600160a060020a03331660009081526001602052604090206002018790555b86600160a060020a0333167f43b85add1b26d595d269b3b3500e49383cdcc47fdda5c8584d6c601c5dc0ab5b8b8b60405191825260208201526040908101905180910390a35b5b505b505b5093509350939050565b60005433600160a060020a0390811691161461030657600080fd5b600054600160a060020a0316ff5b5b565b600054600160a060020a031681565b600080808580151561033757600080fd5b8580151561034457600080fd5b8580151561035157600080fd5b600160a060020a033316600090815260016020526040902054158015906103935750600160a060020a0333166000908152600160208190526040909120015415155b80156103b95750600160a060020a03331660009081526001602052604090206002015415155b15156103c457600080fd5b600160a060020a033316600090815260016020526040902054156103fe57600160a060020a03331660009081526001602052604090208990555b600160a060020a033316600090815260016020819052604090912001541561044057600160a060020a0333166000908152600160208190526040909120018890555b600160a060020a0333166000908152600160205260409020600201541561048057600160a060020a03331660009081526001602052604090206002018790555b86600160a060020a0333167ff30000b0c45b2f041d5fbfa2021f30a3799312d9a346b182802b0ef9ee4878838b8b60405191825260208201526040908101905180910390a35b5b5b505b505b5093509350939050565b600160a060020a033316600090815260016020526040812054819081901580159061051c5750600160a060020a0333166000908152600160208190526040909120015415155b80156105425750600160a060020a03331660009081526001602052604090206002015415155b151561054d57600080fd5b505050600160a060020a03331660009081526001602081905260409091208054918101546002909101545b5b909192565b60005433600160a060020a0390811691161461059957600080fd5b600160a060020a038116156105d1576000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0383161790555b5b5b50565b60005433600160a060020a039081169116146105f157600080fd5b80600160a060020a0316ff5b5b505600a165627a7a72305820a9a70bfcc18383e915de076ec251518e397a46b17551fa0cf47976a24370bab30029\",\"networks\":{\"765\":{\"events\":{\"0x43b85add1b26d595d269b3b3500e49383cdcc47fdda5c8584d6c601c5dc0ab5b\":{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"SignedUp\",\"type\":\"event\"},\"0xf30000b0c45b2f041d5fbfa2021f30a3799312d9a346b182802b0ef9ee487883\":{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_userAddress\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_firstName\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"_lastName\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"_email\",\"type\":\"bytes32\"}],\"name\":\"Updated\",\"type\":\"event\"}},\"links\":{},\"address\":\"0x609a32adcc2f6877fe5d448d79609ff9b7bcc9f2\",\"updated_at\":1505265489232}},\"schema_version\":\"0.0.5\",\"updated_at\":1505265489232}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./build/contracts/Authentication.json\n// module id = ZBzV\n// module chunks = 1","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/layout/BodyTemplate.vue?eb2470da","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/Dashboard.vue?9a1b67d0","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/layout/FooterTemplate.vue?6038b56e","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6a0a301e\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./BodyTemplate.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./BodyTemplate.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6a0a301e\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./BodyTemplate.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6a0a301e\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/layout/BodyTemplate.vue\n// module id = ffIc\n// module chunks = 1","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/sections/Web3Message.vue?5086a0de","module.exports = [{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"icapTransfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"to\",\"type\":\"bytes32\"}],\"name\":\"deposit\",\"outputs\":[],\"payable\":true,\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"AnonymousDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"IcapTransfer\",\"type\":\"event\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/truffle-blockchain-utils/~/web3/lib/contracts/SmartExchange.json\n// module id = gi4C\n// module chunks = 1","function injectStyle (ssrContext) {\n require(\"!!../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2f35305c\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Home.vue\")\n}\nvar normalizeComponent = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Home.vue\"\n/* template */\nimport __vue_template__ from \"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2f35305c\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Home.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2f35305c\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/Home.vue\n// module id = lO7g\n// module chunks = 1","export default {\n currentRoute: null,\n web3: {\n address: null,\n coinbase: null,\n error: null,\n instance: null,\n isInjected: false,\n networkId: null\n },\n user: {\n email: '',\n firstName: '',\n lastName: '',\n hasCoinbase: false,\n hasWeb3InjectedBrowser: false,\n isConnectedToApprovedNetwork: false,\n isLoggedIn: false\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/state.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"dashboard\"\n }\n }, [_c('HeaderTemplate'), _vm._v(\" \"), _c('BodyTemplate', {\n attrs: {\n \"current-view\": _vm.currentView\n }\n }), _vm._v(\" \"), _c('FooterTemplate')], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-2d3a9c31\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/Dashboard.vue\n// module id = m7aE\n// module chunks = 1","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _vm._m(0)\n}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"footer-template\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('div', {\n staticClass: \"links\"\n }, [_c('a', {\n staticClass: \"link2\",\n attrs: {\n \"href\": \"https://github.com/DOkwufulueze/eth-vue\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"Github\")]), _vm._v(\" \"), _c('span', {\n staticClass: \"divider\"\n }), _vm._v(\" \"), _c('a', {\n staticClass: \"link3\",\n attrs: {\n \"href\": \"http://danielokwufulueze.com\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"www\")])]), _vm._v(\" \"), _c('div', {\n staticClass: \"copyleft\"\n }, [_c('div', {\n staticClass: \"text\"\n }, [_vm._v(\"Copyleft \"), _c('span', {\n staticClass: \"copyleft-resource\"\n }), _vm._v(\" 2017 \"), _c('a', {\n staticClass: \"link2\",\n attrs: {\n \"href\": \"https://danielokwufulueze.com\"\n }\n }, [_vm._v(\"Daniel Okwufulueze\")]), _vm._v(\".\")])]), _vm._v(\" \"), _c('div', {\n staticClass: \"social\"\n }, [_c('a', {\n staticClass: \"facebook\",\n attrs: {\n \"href\": \"https://facebook.com/DOkwufulueze\",\n \"target\": \"_blank\"\n }\n }), _vm._v(\" \"), _c('a', {\n staticClass: \"twitter\",\n attrs: {\n \"href\": \"https://twitter.com/dokwufulueze\",\n \"target\": \"_blank\"\n }\n })])])])\n}]\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-10c3d417\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/layout/FooterTemplate.vue\n// module id = mOn1\n// module chunks = 1","import { ACTION_TYPES, MUTATION_TYPES } from '../util/constants'\nimport getWeb3 from '../util/web3/getWeb3'\n\nexport default {\n [ACTION_TYPES.REGISTER_WEB3_INSTANCE] ({ commit, dispatch }) {\n return new Promise(function (resolve, reject) {\n // Try to initialize web3\n getWeb3\n .then((result) => {\n commit(MUTATION_TYPES.REGISTER_WEB3_INSTANCE, {\n result,\n callback: () => resolve()\n })\n })\n .catch((e) => {\n if (e.result) {\n const result = e.result\n commit(MUTATION_TYPES.REGISTER_WEB3_INSTANCE, {\n result: {\n web3: (result.hasInjectedWeb3 ? () => result.web3 : null),\n hasInjectedWeb3: (result.hasInjectedWeb3 ? result.hasInjectedWeb3 : false),\n web3Error: e.err\n },\n callback: () => reject(result)\n })\n }\n })\n })\n },\n [ACTION_TYPES.UPDATE_USER_BLOCKCHAIN_STATUS] ({ commit }) {\n commit(MUTATION_TYPES.UPDATE_USER_BLOCKCHAIN_STATUS)\n },\n [ACTION_TYPES.LOGIN] ({ commit }, userData) {\n return new Promise(function (resolve, reject) {\n commit(MUTATION_TYPES.LOGIN, {\n userData,\n callback: () => resolve(userData)\n })\n })\n },\n [ACTION_TYPES.LOGOUT] ({ commit }) {\n return new Promise(function (resolve, reject) {\n commit(MUTATION_TYPES.LOGOUT, {\n callback: () => resolve()\n })\n })\n },\n [ACTION_TYPES.CHANGE_CURRENT_ROUTE_TO] ({ commit }, newRoute) {\n commit(MUTATION_TYPES.CHANGE_CURRENT_ROUTE_TO, newRoute)\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/actions.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"profile\"\n }\n }, [_c('div', {\n staticClass: \"content\"\n }, [_c('div', {\n staticClass: \"message\"\n }, [_c('div', [_vm._v(\"\\n Welcome to your Profile Page \" + _vm._s(_vm.user.firstName) + \"\\n \")])])])])\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-010bf07b\",\"hasScoped\":true,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/sections/Profile.vue\n// module id = myIA\n// module chunks = 1","module.exports = [{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"bytes32\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"icapTransfer\",\"outputs\":[],\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"to\",\"type\":\"bytes32\"}],\"name\":\"deposit\",\"outputs\":[],\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"AnonymousDeposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Deposit\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"bytes32\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"indirectId\",\"type\":\"bytes32\"},{\"indexed\":false,\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"IcapTransfer\",\"type\":\"event\"}]\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/web3/lib/contracts/SmartExchange.json\n// module id = oPsS\n// module chunks = 1","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6477bc0c\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Web3Message.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Web3Message.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6477bc0c\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Web3Message.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6477bc0c\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/sections/Web3Message.vue\n// module id = rEmu\n// module chunks = 1","import Web3 from 'web3'\n\nlet getWeb3 = new Promise(function (resolve, reject) {\n // Wait for loading completion to avoid race conditions with web3 injection timing.\n window.addEventListener('load', function () {\n var web3 = window.web3\n\n // Checking if Web3 has been injected by the browser (Mist/MetaMask)\n if (typeof web3 !== 'undefined') {\n // Use Mist/MetaMask's provider.\n web3 = new Web3(web3.currentProvider)\n resolve({\n hasInjectedWeb3: web3.isConnected(),\n web3\n })\n } else {\n reject({\n result: null,\n err: 'Unable to connect to Web3'\n })\n }\n })\n})\n.then((result) => { // get blockchain network Id\n return new Promise(function (resolve, reject) {\n result.web3.version.getNetwork((err, networkId) => {\n if (err) {\n result = Object.assign({}, result)\n reject({\n result,\n err\n })\n } else {\n networkId = networkId.toString()\n result = Object.assign({}, result, { networkId })\n resolve(result)\n }\n })\n })\n})\n.then((networkIdResult) => { // get coinbase\n return new Promise(function (resolve, reject) {\n networkIdResult.web3.eth.getCoinbase((err, coinbase) => {\n let result\n if (err) {\n result = Object.assign({}, networkIdResult)\n reject({\n result,\n err\n })\n } else {\n result = Object.assign({}, networkIdResult, { coinbase })\n resolve(result)\n }\n })\n })\n})\n.then((coinbaseResult) => {\n return new Promise(function (resolve, reject) {\n let address = coinbaseResult.web3.eth.defaultAccount\n let result = Object.assign({}, coinbaseResult, { address })\n resolve(result)\n })\n})\n\nexport default getWeb3\n\n\n\n// WEBPACK FOOTER //\n// ./src/util/web3/getWeb3.js","import { MUTATION_TYPES, NETWORKS } from '../util/constants'\n\nexport default {\n [MUTATION_TYPES.REGISTER_WEB3_INSTANCE] (state, payload) {\n const result = payload.result\n state.web3.instance = () => result.web3\n state.web3.address = result.address\n state.web3.coinbase = result.coinbase\n state.web3.networkId = result.networkId\n state.web3.error = result.web3Error\n state.web3.isInjected = result.hasInjectedWeb3\n if (payload.callback) payload.callback(result)\n },\n [MUTATION_TYPES.UPDATE_USER_BLOCKCHAIN_STATUS] (state) {\n state.user.hasWeb3InjectedBrowser = state.web3.isInjected\n state.user.hasCoinbase = state.web3.coinbase && state.web3.coinbase !== ''\n state.user.isConnectedToApprovedNetwork = state.web3.networkId && state.web3.networkId !== '' && state.web3.networkId === NETWORKS['approvedBlockchainNetwork']\n },\n [MUTATION_TYPES.LOGIN] (state, payload) {\n const userData = payload.userData\n state.user.firstName = userData.firstName\n state.user.lastName = userData.lastName\n state.user.email = userData.email\n state.user.isLoggedIn = !!(userData.email && userData.email !== '')\n if (payload.callback) payload.callback(userData)\n },\n [MUTATION_TYPES.LOGOUT] (state, payload) {\n state.user.firstName = ''\n state.user.lastName = ''\n state.user.email = ''\n state.user.isLoggedIn = false\n if (payload.callback) payload.callback()\n },\n [MUTATION_TYPES.CHANGE_CURRENT_ROUTE_TO] (state, newRoute) {\n state.currentRoute = newRoute\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/store/mutations.js","\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/components/sections/ProfileForm.vue?07972fe8","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"app\"\n }\n }, [_c('router-view', {\n attrs: {\n \"current-view\": _vm.currentView\n }\n })], 1)\n}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-7f75f604\",\"hasScoped\":false,\"transformToRequire\":{\"video\":\"src\",\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"}}!./~/vue-loader/lib/selector.js?type=template&index=0!./src/components/App.vue\n// module id = xGuS\n// module chunks = 1","function injectStyle (ssrContext) {\n require(\"!!../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"minimize\\\":true,\\\"sourceMap\\\":true}!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-7f942609\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./HeaderTemplate.vue\")\n}\nvar normalizeComponent = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nimport __vue_script__ from \"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./HeaderTemplate.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-7f942609\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":\\\"src\\\",\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"}}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./HeaderTemplate.vue\"\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-7f942609\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/components/layout/HeaderTemplate.vue\n// module id = yz5X\n// module chunks = 1"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/static/js/manifest.296015450722b84e619c.js b/dist/static/js/manifest.296015450722b84e619c.js new file mode 100644 index 000000000..d6f1c8b65 --- /dev/null +++ b/dist/static/js/manifest.296015450722b84e619c.js @@ -0,0 +1,2 @@ +!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,c,i){for(var u,a,f,s=0,l=[];s-1}function o(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0}}function a(t,e,n){void 0===e&&(e={});var r,i=n||s;try{r=i(t||"")}catch(t){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.slice():a}return r}function s(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=Nt(n.shift()),i=n.length>0?Nt(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]}),e):e}function u(t){var e=t?Object.keys(t).map(function(e){var n=t[e];if(void 0===n)return"";if(null===n)return It(e);if(Array.isArray(n)){var r=[];return n.forEach(function(t){void 0!==t&&(null===t?r.push(It(e)):r.push(It(e)+"="+It(t)))}),r.join("&")}return It(e)+"="+It(n)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}function c(t,e,n,r){var i=r&&r.options.stringifyQuery,o={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:e.query||{},params:e.params||{},fullPath:l(e,i),matched:t?f(t):[]};return n&&(o.redirectedFrom=l(n,i)),Object.freeze(o)}function f(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function l(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||u;return(n||"/")+o(r)+i}function h(t,e){return e===Dt?t===e:!!e&&(t.path&&e.path?t.path.replace(Rt,"")===e.path.replace(Rt,"")&&t.hash===e.hash&&p(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&p(t.query,e.query)&&p(t.params,e.params)))}function p(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every(function(n){var r=t[n],i=e[n];return"object"==typeof r&&"object"==typeof i?p(r,i):String(r)===String(i)})}function d(t,e){return 0===t.path.replace(Rt,"/").indexOf(e.path.replace(Rt,"/"))&&(!e.hash||t.hash===e.hash)&&m(t.query,e.query)}function m(t,e){for(var n in e)if(!(n in t))return!1;return!0}function v(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){if(/\b_blank\b/i.test(t.currentTarget.getAttribute("target")))return}return t.preventDefault&&t.preventDefault(),!0}}function g(t){if(t)for(var e,n=0;n=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function _(t){return t.replace(/\/\//g,"/")}function k(t,e){for(var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=Jt.exec(t));){var u=n[0],c=n[1],f=n.index;if(a+=t.slice(o,f),o=f+u.length,c)a+=c[1];else{var l=t[o],h=n[2],p=n[3],d=n[4],m=n[5],v=n[6],g=n[7];a&&(r.push(a),a="");var y=null!=h&&null!=l&&l!==h,w="+"===v||"*"===v,b="?"===v||"*"===v,_=n[2]||s,k=d||m;r.push({name:p||i++,prefix:h||"",delimiter:_,optional:b,repeat:w,partial:y,asterisk:!!g,pattern:k?S(k):g?".*":"[^"+O(_)+"]+?"})}}return o-1&&(i.params[h]=n.params[h]);if(s)return i.path=R(s.path,i.params,'named route "'+o+'"'),a(s,i,r)}else if(i.path){i.params={};for(var p=0;p=t.length?n():t[i]?e(t[i],function(){r(i+1)}):r(i+1)};r(0)}function st(t){return function(e,n,r){var o=!1,a=0,s=null;ut(t,function(t,e,n,u){if("function"==typeof t&&void 0===t.cid){o=!0,a++;var c,f=ft(function(e){e.__esModule&&e.default&&(e=e.default),t.resolved="function"==typeof e?e:Et.extend(e),n.components[u]=e,--a<=0&&r()}),l=ft(function(t){var e="Failed to resolve async component "+u+": "+t;s||(s=i(t)?t:new Error(e),r(s))});try{c=t(f,l)}catch(t){l(t)}if(c)if("function"==typeof c.then)c.then(f,l);else{var h=c.component;h&&"function"==typeof h.then&&h.then(f,l)}}}),o||r()}}function ut(t,e){return ct(t.map(function(t){return Object.keys(t.components).map(function(n){return e(t.components[n],t.instances[n],t,n)})}))}function ct(t){return Array.prototype.concat.apply([],t)}function ft(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}function lt(t){if(!t)if(Ht){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function ht(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e;window.location.replace(r+"#"+t)}function Ot(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function St(t,e,n){var r="hash"===n?"#"+e:e;return t?_(t+"/"+r):r}var Et,Bt={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,a=e.data;a.routerView=!0;for(var s=i.$createElement,u=n.name,c=i.$route,f=i._routerViewCache||(i._routerViewCache={}),l=0,h=!1;i&&i._routerRoot!==i;)i.$vnode&&i.$vnode.data.routerView&&l++,i._inactive&&(h=!0),i=i.$parent;if(a.routerViewDepth=l,h)return s(f[u],a,r);var p=c.matched[l];if(!p)return f[u]=null,s();var d=f[u]=p.components[u];return a.registerRouteInstance=function(t,e){var n=p.instances[u];(e&&n!==t||!e&&n===t)&&(p.instances[u]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){p.instances[u]=e.componentInstance},a.props=o(c,p.props&&p.props[u]),s(d,a,r)}},Tt=/[!'()*]/g,Pt=function(t){return"%"+t.charCodeAt(0).toString(16)},Ft=/%2C/g,It=function(t){return encodeURIComponent(t).replace(Tt,Pt).replace(Ft,",")},Nt=decodeURIComponent,Rt=/\/?$/,Dt=c(null,{path:"/"}),jt=[String,Object],Lt=[String,Array],$t={name:"router-link",props:{to:{type:jt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:Lt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,u={},f=n.options.linkActiveClass,l=n.options.linkExactActiveClass,p=null==f?"router-link-active":f,m=null==l?"router-link-exact-active":l,y=null==this.activeClass?p:this.activeClass,w=null==this.exactActiveClass?m:this.exactActiveClass,b=o.path?c(null,o,null,n):a;u[w]=h(r,b),u[y]=this.exact?u[w]:d(r,b);var _=function(t){v(t)&&(e.replace?n.replace(o):n.push(o))},k={click:v};Array.isArray(this.event)?this.event.forEach(function(t){k[t]=_}):k[this.event]=_;var x={class:u};if("a"===this.tag)x.on=k,x.attrs={href:s};else{var M=g(this.$slots.default);if(M){M.isStatic=!1;var A=Et.util.extend;(M.data=A({},M.data)).on=k;(M.data.attrs=A({},M.data.attrs)).href=s}else x.on=k}return t(this.tag,x,this.$slots.default)}},Ht="undefined"!=typeof window,qt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Ut=N,zt=k,Gt=x,Vt=C,Wt=I,Jt=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Ut.parse=zt,Ut.compile=Gt,Ut.tokensToFunction=Vt,Ut.tokensToRegExp=Wt;var Kt=Object.create(null),Yt=Object.create(null),Zt=Ht&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),Xt=Ht&&window.performance&&window.performance.now?window.performance:Date,Qt=et(),te=function(t,e){this.router=t,this.base=lt(e),this.current=Dt,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};te.prototype.listen=function(t){this.cb=t},te.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},te.prototype.onError=function(t){this.errorCbs.push(t)},te.prototype.transitionTo=function(t,e,n){var r=this,i=this.router.match(t,this.current);this.confirmTransition(i,function(){r.updateRoute(i),e&&e(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach(function(t){t(i)}))},function(t){n&&n(t),t&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach(function(e){e(t)}))})},te.prototype.confirmTransition=function(t,e,n){var o=this,a=this.current,s=function(t){i(t)&&(o.errorCbs.length?o.errorCbs.forEach(function(e){e(t)}):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)};if(h(t,a)&&t.matched.length===a.matched.length)return this.ensureURL(),s();var u=ht(this.current.matched,t.matched),c=u.updated,f=u.deactivated,l=u.activated,p=[].concat(mt(f),this.router.beforeHooks,vt(c),l.map(function(t){return t.beforeEnter}),st(l));this.pending=t;var d=function(e,n){if(o.pending!==t)return s();try{e(t,a,function(t){!1===t||i(t)?(o.ensureURL(!0),s(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(s(),"object"==typeof t&&t.replace?o.replace(t):o.push(t)):n(t)})}catch(t){s(t)}};at(p,d,function(){var n=[];at(yt(l,n,function(){return o.current===t}).concat(o.router.resolveHooks),d,function(){if(o.pending!==t)return s();o.pending=null,e(t),o.router.app&&o.router.app.$nextTick(function(){n.forEach(function(t){t()})})})})},te.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var ee=function(t){function e(e,n){var r=this;t.call(this,e,n);var i=e.options.scrollBehavior;i&&V(),window.addEventListener("popstate",function(t){var n=r.current;r.transitionTo(_t(r.base),function(t){i&&W(e,t,n,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,function(t){it(_(r.base+t.fullPath)),W(r.router,t,o,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,function(t){ot(_(r.base+t.fullPath)),W(r.router,t,o,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(_t(this.base)!==this.current.fullPath){var e=_(this.base+this.current.fullPath);t?it(e):ot(e)}},e.prototype.getCurrentLocation=function(){return _t(this.base)},e}(te),ne=function(t){function e(e,n,r){t.call(this,e,n),r&&kt(this.base)||xt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;window.addEventListener("hashchange",function(){xt()&&t.transitionTo(Mt(),function(t){Ct(t.fullPath)})})},e.prototype.push=function(t,e,n){this.transitionTo(t,function(t){At(t.fullPath),e&&e(t)},n)},e.prototype.replace=function(t,e,n){this.transitionTo(t,function(t){Ct(t.fullPath),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Mt()!==e&&(t?At(e):Ct(e))},e.prototype.getCurrentLocation=function(){return Mt()},e}(te),re=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,function(){e.index=n,e.updateRoute(r)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(te),ie=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=U(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Zt&&!1!==t.fallback,this.fallback&&(e="hash"),Ht||(e="abstract"),this.mode=e,e){case"history":this.history=new ee(this,t.base);break;case"hash":this.history=new ne(this,t.base,this.fallback);break;case"abstract":this.history=new re(this,t.base)}},oe={currentRoute:{}};ie.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},oe.currentRoute.get=function(){return this.history&&this.history.current},ie.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof ee)n.transitionTo(n.getCurrentLocation());else if(n instanceof ne){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ie.prototype.beforeEach=function(t){return Ot(this.beforeHooks,t)},ie.prototype.beforeResolve=function(t){return Ot(this.resolveHooks,t)},ie.prototype.afterEach=function(t){return Ot(this.afterHooks,t)},ie.prototype.onReady=function(t,e){this.history.onReady(t,e)},ie.prototype.onError=function(t){this.history.onError(t)},ie.prototype.push=function(t,e,n){this.history.push(t,e,n)},ie.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ie.prototype.go=function(t){this.history.go(t)},ie.prototype.back=function(){this.go(-1)},ie.prototype.forward=function(){this.go(1)},ie.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ie.prototype.resolve=function(t,e,n){var r=H(t,e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:St(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},ie.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Dt&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ie.prototype,oe),ie.install=y,ie.version="2.7.0",Ht&&window.Vue&&window.Vue.use(ie),e.a=ie},"02Hb":function(t,e,n){!function(n,r){t.exports=e=r()}(0,function(){var t=t||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),r={},i=r.lib={},o=i.Base=function(){return{extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=0;i>16)&r,e=18e3*(65535&e)+(e>>16)&r;var i=(n<<16)+e&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}}(4294967296*(n||t.random()));n=987654071*o(),r.push(4294967296*o()|0)}return new a.init(r,e)}}),s=r.enc={},u=s.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},f=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},l=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,u=i/s;u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0);var c=u*o,f=t.min(4*c,i);if(c){for(var l=0;l=55296&&e<=56319&&i65535&&(e-=65536,i+=b(e>>>10&1023|55296),e=56320|1023&e),i+=b(e);return i}function u(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function c(t,e){return b(t>>e&63|128)}function f(t){if(0==(4294967168&t))return b(t);var e="";return 0==(4294965248&t)?e=b(t>>6&31|192):0==(4294901760&t)?(u(t),e=b(t>>12&15|224),e+=c(t,6)):0==(4292870144&t)&&(e=b(t>>18&7|240),e+=c(t,12),e+=c(t,6)),e+=b(63&t|128)}function l(t){for(var e,n=a(t),r=n.length,i=-1,o="";++i=y)throw Error("Invalid byte index");var t=255&g[w];if(w++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function p(){var t,e,n,r,i;if(w>y)throw Error("Invalid byte index");if(w==y)return!1;if(t=255&g[w],w++,0==(128&t))return t;if(192==(224&t)){if(e=h(),(i=(31&t)<<6|e)>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=h(),n=h(),(i=(15&t)<<12|e<<6|n)>=2048)return u(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=h(),n=h(),r=h(),(i=(7&t)<<18|e<<12|n<<6|r)>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}function d(t){g=a(t),y=g.length,w=0;for(var e,n=[];!1!==(e=p());)n.push(e);return s(n)}var m="object"==typeof e&&e,v=("object"==typeof t&&t&&t.exports,"object"==typeof r&&r);var g,y,w,b=String.fromCharCode,_={version:"2.1.2",encode:l,decode:d};void 0!==(i=function(){return _}.call(e,n,e,t))&&(t.exports=i)}()}).call(e,n("3IRH")(t),n("DuR2"))},"0hgu":function(t,e,n){!function(r,i,o){t.exports=e=i(n("02Hb"),n("mP1F"))}(0,function(t){return function(){var e=t,n=e.lib,r=n.WordArray,i=e.algo,o=i.SHA256,a=i.SHA224=o.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=o._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=o._createHelper(a),e.HmacSHA224=o._createHmacHelper(a)}(),t.SHA224})},"0xS5":function(t,e,n){!function(n,r){t.exports=e=r()}(0,function(){var t=t||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),r={},i=r.lib={},o=i.Base=function(){return{extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=0;i>16)&r,e=18e3*(65535&e)+(e>>16)&r;var i=(n<<16)+e&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}}(4294967296*(n||t.random()));n=987654071*o(),r.push(4294967296*o()|0)}return new a.init(r,e)}}),s=r.enc={},u=s.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},f=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},l=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,u=i/s;u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0);var c=u*o,f=t.min(4*c,i);if(c){for(var l=0;l1?(t[n[0]]=t[n[0]]||{},t[n[0]][n[1]]=e):t[n[0]]=e},o.prototype.buildCall=function(){var t=this,e=function(){var e=t.toPayload(Array.prototype.slice.call(arguments));return e.callback?t.requestManager.sendAsync(e,function(n,r){e.callback(n,t.formatOutput(r))}):t.formatOutput(t.requestManager.send(e))};return e.request=this.request.bind(this),e},o.prototype.request=function(){var t=this.toPayload(Array.prototype.slice.call(arguments));return t.format=this.formatOutput.bind(this),t},t.exports=o},"1ImL":function(t,e,n){var r=n("aJOp"),i=function(t,e){this.value=t||"",this.offset=e};i.prototype.dynamicPartLength=function(){return this.dynamicPart().length/2},i.prototype.withOffset=function(t){return new i(this.value,t)},i.prototype.combine=function(t){return new i(this.value+t.value)},i.prototype.isDynamic=function(){return void 0!==this.offset},i.prototype.offsetAsBytes=function(){return this.isDynamic()?r.padLeft(r.toTwosComplement(this.offset).toString(16),64):""},i.prototype.staticPart=function(){return this.isDynamic()?this.offsetAsBytes():this.value},i.prototype.dynamicPart=function(){return this.isDynamic()?this.value:""},i.prototype.encode=function(){return this.staticPart()+this.dynamicPart()},i.encodeList=function(t){var e=32*t.length,n=t.map(function(t){if(!t.isDynamic())return t;var n=e;return e+=t.dynamicPartLength(),t.withOffset(n)});return n.reduce(function(t,e){return t+e.dynamicPart()},n.reduce(function(t,e){return t+e.staticPart()},""))},t.exports=i},"1J88":function(t,e,n){!function(r,i){t.exports=e=i(n("02Hb"))}(0,function(t){return function(e){var n=t,r=n.lib,i=r.Base,o=r.WordArray,a=n.x64={};a.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],r=0;r>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(var n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,o=r>>>16,a=((i*i>>>17)+i*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);u[n]=a^c}t[0]=u[0]+(u[7]<<16|u[7]>>>16)+(u[6]<<16|u[6]>>>16)|0,t[1]=u[1]+(u[0]<<8|u[0]>>>24)+u[7]|0,t[2]=u[2]+(u[1]<<16|u[1]>>>16)+(u[0]<<16|u[0]>>>16)|0,t[3]=u[3]+(u[2]<<8|u[2]>>>24)+u[1]|0,t[4]=u[4]+(u[3]<<16|u[3]>>>16)+(u[2]<<16|u[2]>>>16)|0,t[5]=u[5]+(u[4]<<8|u[4]>>>24)+u[3]|0,t[6]=u[6]+(u[5]<<16|u[5]>>>16)+(u[4]<<16|u[4]>>>16)|0,t[7]=u[7]+(u[6]<<8|u[6]>>>24)+u[5]|0}var n=t,r=n.lib,i=r.StreamCipher,o=n.algo,a=[],s=[],u=[],c=o.RabbitLegacy=i.extend({_doReset:function(){var t=this._key.words,n=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)e.call(this);for(var o=0;o<8;o++)i[o]^=r[o+4&7];if(n){var a=n.words,s=a[0],u=a[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),l=c>>>16|4294901760&f,h=f<<16|65535&c;i[0]^=c,i[1]^=l,i[2]^=f,i[3]^=h,i[4]^=c,i[5]^=l,i[6]^=f,i[7]^=h;for(var o=0;o<4;o++)e.call(this)}},_doProcessBlock:function(t,n){var r=this._X;e.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)a[i]=16711935&(a[i]<<8|a[i]>>>24)|4278255360&(a[i]<<24|a[i]>>>8),t[n+i]^=a[i]},blockSize:4,ivSize:2});n.RabbitLegacy=i._createHelper(c)}(),t.RabbitLegacy})},"3fs2":function(t,e,n){var r=n("RY/4"),i=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},"44tV":function(t,e,n){var r=n("MyC0"),i=function(){return[new r({name:"newFilter",call:function(t){switch(t[0]){case"latest":return t.shift(),this.params=0,"eth_newBlockFilter";case"pending":return t.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new r({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new r({name:"getLogs",call:"eth_getFilterLogs",params:1}),new r({name:"poll",call:"eth_getFilterChanges",params:1})]},o=function(){return[new r({name:"newFilter",call:"shh_newFilter",params:1}),new r({name:"uninstallFilter",call:"shh_uninstallFilter",params:1}),new r({name:"getLogs",call:"shh_getMessages",params:1}),new r({name:"poll",call:"shh_getFilterChanges",params:1})]};t.exports={eth:i,shh:o}},"4mcu":function(t,e){t.exports=function(){}},"4pyl":function(t,e,n){!function(r,i,o){t.exports=e=i(n("02Hb"),n("uFh6"),n("gykg"),n("wj1U"),n("fGru"))}(0,function(t){return function(){function e(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<>>5]>>>31-i%32&1}for(var o=this._subKeys=[],a=0;a<16;a++){for(var s=o[a]=[],l=f[a],r=0;r<24;r++)s[r/6|0]|=n[(c[r]-1+l)%28]<<31-r%6,s[4+(r/6|0)]|=n[28+(c[r+24]-1+l)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var h=this._invSubKeys=[],r=0;r<16;r++)h[r]=o[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,r,i){this._lBlock=t[r],this._rBlock=t[r+1],e.call(this,4,252645135),e.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),e.call(this,1,1431655765);for(var o=0;o<16;o++){for(var a=i[o],s=this._lBlock,u=this._rBlock,c=0,f=0;f<8;f++)c|=l[f][((u^a[f])&h[f])>>>0];this._lBlock=u,this._rBlock=s^c}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,e.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),t[r]=this._lBlock,t[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=a._createHelper(p);var d=s.TripleDES=a.extend({_doReset:function(){var t=this._key,e=t.words;this._des1=p.createEncryptor(o.create(e.slice(0,2))),this._des2=p.createEncryptor(o.create(e.slice(2,4))),this._des3=p.createEncryptor(o.create(e.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=a._createHelper(d)}(),t.TripleDES})},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"5Kd7":function(t,e,n){var r=n("kivB"),i=n("cHfC"),o=function(){this._inputFormatter=r.formatInputBool,this._outputFormatter=r.formatOutputBool};o.prototype=new i({}),o.prototype.constructor=o,o.prototype.isType=function(t){return!!t.match(/^bool(\[([0-9]*)\])*$/)},t.exports=o},"5Pol":function(t,e,n){!function(r,i,o){t.exports=e=i(n("02Hb"),n("uFh6"),n("gykg"),n("wj1U"),n("fGru"))}(0,function(t){return function(){function e(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){e=(e+1)%256,n=(n+t[e])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}var n=t,r=n.lib,i=r.StreamCipher,o=n.algo,a=o.RC4=i.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;for(var i=0,o=0;i<256;i++){var a=i%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(t,n){t[n]^=e.call(this)},keySize:8,ivSize:0});n.RC4=i._createHelper(a);var s=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)e.call(this)}});n.RC4Drop=i._createHelper(s)}(),t.RC4})},"618g":function(t,e,n){var r=n("R/pS"),i=n("UIsv");t.exports={global:{abi:r,address:"0xc6d9d2cd449a754c494264e1809c50e34d64562b"},icap:{abi:i,address:"0xa1a111bc074c9cfa781f0c38e63bd51c91b8af00"}}},"6qVS":function(t,e,n){!function(r,i){t.exports=e=i(n("02Hb"))}(0,function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,n=e.lib,r=n.WordArray,i=r.init;(r.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,n=[],r=0;r>>2]|=t[r]<<24-r%4*8;i.call(this,n,e)}else i.apply(this,arguments)}).prototype=r}}(),t.lib.WordArray})},"6wrk":function(t,e,n){!function(r,i,o){t.exports=e=i(n("0xS5"),n("zIhi"))}(0,function(t){return function(e){var n=t,r=n.lib,i=r.WordArray,o=r.Hasher,a=n.x64,s=a.Word,u=n.algo,c=[],f=[],l=[];!function(){for(var t=1,e=0,n=0;n<24;n++){c[t+5*e]=(n+1)*(n+2)/2%64;var r=e%5,i=(2*t+3*e)%5;t=r,e=i}for(var t=0;t<5;t++)for(var e=0;e<5;e++)f[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,a=0;a<24;a++){for(var u=0,h=0,p=0;p<7;p++){if(1&o){var d=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[i];s.high^=a,s.low^=o}for(var u=0;u<24;u++){for(var p=0;p<5;p++){for(var d=0,m=0,v=0;v<5;v++){var s=n[p+5*v];d^=s.high,m^=s.low}var g=h[p];g.high=d,g.low=m}for(var p=0;p<5;p++)for(var y=h[(p+4)%5],w=h[(p+1)%5],b=w.high,_=w.low,d=y.high^(b<<1|_>>>31),m=y.low^(_<<1|b>>>31),v=0;v<5;v++){var s=n[p+5*v];s.high^=d,s.low^=m}for(var k=1;k<25;k++){var s=n[k],x=s.high,M=s.low,A=c[k];if(A<32)var d=x<>>32-A,m=M<>>32-A;else var d=M<>>64-A,m=x<>>64-A;var C=h[f[k]];C.high=d,C.low=m}var O=h[0],S=n[0];O.high=S.high,O.low=S.low;for(var p=0;p<5;p++)for(var v=0;v<5;v++){var k=p+5*v,s=n[k],E=h[k],B=h[(p+1)%5+5*v],T=h[(p+2)%5+5*v];s.high=E.high^~B.high&T.high,s.low=E.low^~B.low&T.low}var s=n[0],P=l[u];s.high^=P.high,s.low^=P.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],f=0;f>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(h)}return new i.init(c,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});n.SHA3=o._createHelper(p),n.HmacSHA3=o._createHmacHelper(p)}(Math),t.SHA3})},"7+uW":function(t,e,n){"use strict";(function(t){/*! + * Vue.js v2.4.2 + * (c) 2014-2017 Evan You + * Released under the MIT License. + */ +function n(t){return void 0===t||null===t}function r(t){return void 0!==t&&null!==t}function i(t){return!0===t}function o(t){return!1===t}function a(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Object]"===Di.call(t)}function c(t){return"[object RegExp]"===Di.call(t)}function f(t){var e=parseFloat(t);return e>=0&&Math.floor(e)===e&&isFinite(t)}function l(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function p(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}function m(t,e){return $i.call(t,e)}function v(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}function g(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function y(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function w(t,e){for(var n in e)t[n]=e[n];return t}function b(t){for(var e={},n=0;nHo&&Ro[n].id>t.id;)n--;Ro.splice(n+1,0,t)}else Ro.push(t);Lo||(Lo=!0,wo(Et))}}function It(t){zo.clear(),Nt(t,zo)}function Nt(t,e){var n,r,i=Array.isArray(t);if((i||s(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)Nt(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)Nt(t[r[n]],e)}}function Rt(t,e,n){Go.get=function(){return this[e][n]},Go.set=function(t){this[e][n]=t},Object.defineProperty(t,n,Go)}function Dt(t){t._watchers=[];var e=t.$options;e.props&&jt(t,e.props),e.methods&&zt(t,e.methods),e.data?Lt(t):I(t._data={},!0),e.computed&&Ht(t,e.computed),e.watch&&e.watch!==fo&&Gt(t,e.watch)}function jt(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;Co.shouldConvert=o;for(var a in e)!function(o){i.push(o);var a=J(o,e,n,t);N(r,o,a),o in t||Rt(t,"_props",o)}(a);Co.shouldConvert=!0}function Lt(t){var e=t.$options.data;e=t._data="function"==typeof e?$t(e,t):e||{},u(e)||(e={});for(var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);i--;){var o=n[i];r&&m(r,o)||A(o)||Rt(t,"_data",o)}I(e,!0)}function $t(t,e){try{return t.call(e)}catch(t){return S(t,e,"data()"),{}}}function Ht(t,e){var n=t._computedWatchers=Object.create(null);for(var r in e){var i=e[r],o="function"==typeof i?i:i.get;n[r]=new Uo(t,o||_,_,Vo),r in t||qt(t,r,i)}}function qt(t,e,n){"function"==typeof n?(Go.get=Ut(e),Go.set=_):(Go.get=n.get?!1!==n.cache?Ut(e):n.get:_,Go.set=n.set?n.set:_),Object.defineProperty(t,e,Go)}function Ut(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),_o.target&&e.depend(),e.value}}function zt(t,e){t.$options.props;for(var n in e)t[n]=null==e[n]?_:g(e[n],t)}function Gt(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i=0||n.indexOf(t[i])<0)&&r.push(t[i]);return r}return t}function _e(t){this._init(t)}function ke(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=y(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}function xe(t){t.mixin=function(t){return this.options=V(this.options,t),this}}function Me(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=V(n.options,t),a.super=n,a.options.props&&Ae(a),a.options.computed&&Ce(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,Ki.forEach(function(t){a[t]=n[t]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=w({},a.options),i[r]=a,a}}function Ae(t){var e=t.options.props;for(var n in e)Rt(t.prototype,"_props",n)}function Ce(t){var e=t.options.computed;for(var n in e)qt(t.prototype,n,e[n])}function Oe(t){Ki.forEach(function(e){t[e]=function(t,n){return n?("component"===e&&u(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}})}function Se(t){return t&&(t.Ctor.options.name||t.tag)}function Ee(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!c(t)&&t.test(e)}function Be(t,e,n){for(var r in t){var i=t[r];if(i){var o=Se(i.componentOptions);o&&!n(o)&&(i!==e&&Te(i),t[r]=null)}}}function Te(t){t&&t.componentInstance.$destroy()}function Pe(t){for(var e=t.data,n=t,i=t;r(i.componentInstance);)i=i.componentInstance._vnode,i.data&&(e=Fe(i.data,e));for(;r(n=n.parent);)n.data&&(e=Fe(e,n.data));return Ie(e.staticClass,e.class)}function Fe(t,e){return{staticClass:Ne(t.staticClass,e.staticClass),class:r(t.class)?[t.class,e.class]:e.class}}function Ie(t,e){return r(t)||r(e)?Ne(t,Re(e)):""}function Ne(t,e){return t?e?t+" "+e:t:e||""}function Re(t){return Array.isArray(t)?De(t):s(t)?je(t):"string"==typeof t?t:""}function De(t){for(var e,n="",i=0,o=t.length;i-1?Ma[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Ma[t]=/HTMLUnknownElement/.test(e.toString())}function He(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function qe(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)}function Ue(t,e){return document.createElementNS(wa[t],e)}function ze(t){return document.createTextNode(t)}function Ge(t){return document.createComment(t)}function Ve(t,e,n){t.insertBefore(e,n)}function We(t,e){t.removeChild(e)}function Je(t,e){t.appendChild(e)}function Ke(t){return t.parentNode}function Ye(t){return t.nextSibling}function Ze(t){return t.tagName}function Xe(t,e){t.textContent=e}function Qe(t,e,n){t.setAttribute(e,n)}function tn(t,e){var n=t.data.ref;if(n){var r=t.context,i=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?d(o[n],i):o[n]===i&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}function en(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&r(t.data)===r(e.data)&&nn(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&n(e.asyncFactory.error))}function nn(t,e){if("input"!==t.tag)return!0;var n;return(r(n=t.data)&&r(n=n.attrs)&&n.type)===(r(n=e.data)&&r(n=n.attrs)&&n.type)}function rn(t,e,n){var i,o,a={};for(i=e;i<=n;++i)o=t[i].key,r(o)&&(a[o]=i);return a}function on(t,e){(t.data.directives||e.data.directives)&&an(t,e)}function an(t,e){var n,r,i,o=t===Oa,a=e===Oa,s=sn(t.data.directives,t.context),u=sn(e.data.directives,e.context),c=[],f=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,cn(i,"update",e,t),i.def&&i.def.componentUpdated&&f.push(i)):(cn(i,"bind",e,t),i.def&&i.def.inserted&&c.push(i));if(c.length){var l=function(){for(var n=0;n=0&&" "===(v=t.charAt(m));m--);v&&Ia.test(v)||(f=!0)}}else void 0===o?(d=i+1,o=t.slice(0,i).trim()):e();if(void 0===o?o=t.slice(0,i).trim():0!==d&&e(),a)for(i=0;i=ea}function Sn(t){return 34===t||39===t}function En(t){var e=1;for(oa=ia;!On();)if(t=Cn(),Sn(t))Bn(t);else if(91===t&&e++,93===t&&e--,0===e){aa=ia;break}}function Bn(t){for(var e=t;!On()&&(t=Cn())!==e;);}function Tn(t,e,n){sa=n;var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return xn(t,r,i),!1;if("select"===o)In(t,r,i);else if("input"===o&&"checkbox"===a)Pn(t,r,i);else if("input"===o&&"radio"===a)Fn(t,r,i);else if("input"===o||"textarea"===o)Nn(t,r,i);else if(!Zi.isReservedTag(o))return xn(t,r,i),!1;return!0}function Pn(t,e,n){var r=n&&n.number,i=_n(t,"value")||"null",o=_n(t,"true-value")||"true",a=_n(t,"false-value")||"false";gn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),bn(t,Ra,"var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+Mn(e,"$$c")+"}",null,!0)}function Fn(t,e,n){var r=n&&n.number,i=_n(t,"value")||"null";i=r?"_n("+i+")":i,gn(t,"checked","_q("+e+","+i+")"),bn(t,Ra,Mn(e,i),null,!0)}function In(t,e,n){var r=n&&n.number,i='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})",o="var $$selectedVal = "+i+";";o=o+" "+Mn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),bn(t,"change",o,null,!0)}function Nn(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,u=!o&&"range"!==r,c=o?"change":"range"===r?Na:"input",f="$event.target.value";s&&(f="$event.target.value.trim()"),a&&(f="_n("+f+")");var l=Mn(e,f);u&&(l="if($event.target.composing)return;"+l),gn(t,"value","("+e+")"),bn(t,c,l,null,!0),(s||a)&&bn(t,"blur","$forceUpdate()")}function Rn(t){var e;r(t[Na])&&(e=io?"change":"input",t[e]=[].concat(t[Na],t[e]||[]),delete t[Na]),r(t[Ra])&&(e=co?"click":"change",t[e]=[].concat(t[Ra],t[e]||[]),delete t[Ra])}function Dn(t,e,n,r,i){if(n){var o=e,a=ua;e=function(n){null!==(1===arguments.length?o(n):o.apply(null,arguments))&&jn(t,e,r,a)}}ua.addEventListener(t,e,lo?{capture:r,passive:i}:r)}function jn(t,e,n,r){(r||ua).removeEventListener(t,e,n)}function Ln(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},i=t.data.on||{};ua=e.elm,Rn(r),nt(r,i,Dn,jn,e.context)}}function $n(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var i,o,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};r(u.__ob__)&&(u=e.data.domProps=w({},u));for(i in s)n(u[i])&&(a[i]="");for(i in u)if(o=u[i],"textContent"!==i&&"innerHTML"!==i||(e.children&&(e.children.length=0),o!==s[i]))if("value"===i){a._value=o;var c=n(o)?"":String(o);Hn(a,e,c)&&(a.value=c)}else a[i]=o}}function Hn(t,e,n){return!t.composing&&("option"===e.tag||qn(t,n)||Un(t,n))}function qn(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}function Un(t,e){var n=t.value,i=t._vModifiers;return r(i)&&i.number?h(n)!==h(e):r(i)&&i.trim?n.trim()!==e.trim():n!==e}function zn(t){var e=Gn(t.style);return t.staticStyle?w(t.staticStyle,e):e}function Gn(t){return Array.isArray(t)?b(t):"string"==typeof t?La(t):t}function Vn(t,e){var n,r={};if(e)for(var i=t;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(n=zn(i.data))&&w(r,n);(n=zn(t.data))&&w(r,n);for(var o=t;o=o.parent;)o.data&&(n=zn(o.data))&&w(r,n);return r}function Wn(t,e){var i=e.data,o=t.data;if(!(n(i.staticStyle)&&n(i.style)&&n(o.staticStyle)&&n(o.style))){var a,s,u=e.elm,c=o.staticStyle,f=o.normalizedStyle||o.style||{},l=c||f,h=Gn(e.data.style)||{};e.data.normalizedStyle=r(h.__ob__)?w({},h):h;var p=Vn(e,!0);for(s in l)n(p[s])&&qa(u,s,"");for(s in p)(a=p[s])!==l[s]&&qa(u,s,null==a?"":a)}}function Jn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Kn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Yn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&w(e,Va(t.name||"v")),w(e,t),e}return"string"==typeof t?Va(t):void 0}}function Zn(t){ts(function(){ts(t)})}function Xn(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Jn(t,e))}function Qn(t,e){t._transitionClasses&&d(t._transitionClasses,e),Kn(t,e)}function tr(t,e,n){var r=er(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ja?Za:Qa,u=0,c=function(){t.removeEventListener(s,f),n()},f=function(e){e.target===t&&++u>=a&&c()};setTimeout(function(){u0&&(n=Ja,f=a,l=o.length):e===Ka?c>0&&(n=Ka,f=c,l=u.length):(f=Math.max(a,c),n=f>0?a>c?Ja:Ka:null,l=n?n===Ja?o.length:u.length:0),{type:n,timeout:f,propCount:l,hasTransform:n===Ja&&es.test(r[Ya+"Property"])}}function nr(t,e){for(;t.length1}function ur(t,e){!0!==e.data.show&&ir(e)}function cr(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(k(fr(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function fr(t){return"_value"in t?t._value:t.value}function lr(t){t.target.composing=!0}function hr(t){t.target.composing&&(t.target.composing=!1,pr(t.target,"input"))}function pr(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function dr(t){return!t.componentInstance||t.data&&t.data.transition?t:dr(t.componentInstance._vnode)}function mr(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?mr(pt(e.children)):t}function vr(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[qi(o)]=i[o];return e}function gr(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function yr(t){for(;t=t.parent;)if(t.data.transition)return!0}function wr(t,e){return e.key===t.key&&e.tag===t.tag}function br(t){return t.isComment&&t.asyncFactory}function _r(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function kr(t){t.data.newPos=t.elm.getBoundingClientRect()}function xr(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}function Mr(t,e){var n=e?ws(e):gs;if(n.test(t)){for(var r,i,o=[],a=n.lastIndex=0;r=n.exec(t);){i=r.index,i>a&&o.push(JSON.stringify(t.slice(a,i)));var s=pn(r[1].trim());o.push("_s("+s+")"),a=i+r[0].length}return a=0&&a[i].lowerCasedTag!==s;i--);else i=0;if(i>=0){for(var u=a.length-1;u>=i;u--)e.end&&e.end(a[u].tag,n,r);a.length=i,o=i&&a[i-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,r):"p"===s&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var i,o,a=[],s=e.expectHTML,u=e.isUnaryTag||Vi,c=e.canBeLeftOpenTag||Vi,f=0;t;){if(i=t,o&&Xs(o)){var l=0,h=o.toLowerCase(),p=Qs[h]||(Qs[h]=new RegExp("([\\s\\S]*?)(]*>)","i")),d=t.replace(p,function(t,n,r){return l=r.length,Xs(h)||"noscript"===h||(n=n.replace(//g,"$1").replace(//g,"$1")),iu(h,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""});f+=t.length-d.length,t=d,r(h,f-l,f)}else{var m=t.indexOf("<");if(0===m){if(Ls.test(t)){var v=t.indexOf("--\x3e");if(v>=0){e.shouldKeepComment&&e.comment(t.substring(4,v)),n(v+3);continue}}if($s.test(t)){var g=t.indexOf("]>");if(g>=0){n(g+2);continue}}var y=t.match(js);if(y){n(y[0].length);continue}var w=t.match(Ds);if(w){var b=f;n(w[0].length),r(w[1],b,f);continue}var _=function(){var e=t.match(Ns);if(e){var r={tagName:e[1],attrs:[],start:f};n(e[0].length);for(var i,o;!(i=t.match(Rs))&&(o=t.match(Ps));)n(o[0].length),r.attrs.push(o);if(i)return r.unarySlash=i[1],n(i[0].length),r.end=f,r}}();if(_){!function(t){var n=t.tagName,i=t.unarySlash;s&&("p"===o&&Cs(n)&&r(o),c(n)&&o===n&&r(n));for(var f=u(n)||!!i,l=t.attrs.length,h=new Array(l),p=0;p=0){for(x=t.slice(m);!(Ds.test(x)||Ns.test(x)||Ls.test(x)||$s.test(x)||(M=x.indexOf("<",1))<0);)m+=M,x=t.slice(m);k=t.substring(0,m),n(m)}m<0&&(k=t,t=""),e.chars&&k&&e.chars(k)}if(t===i){e.chars&&e.chars(t);break}}r()}function Fr(t,e){function n(t){t.pre&&(s=!1),Ws(t.tag)&&(u=!1)}qs=e.warn||mn,Ws=e.isPreTag||Vi,Js=e.mustUseProp||Vi,Ks=e.getTagNamespace||Vi,zs=vn(e.modules,"transformNode"),Gs=vn(e.modules,"preTransformNode"),Vs=vn(e.modules,"postTransformNode"),Us=e.delimiters;var r,i,o=[],a=!1!==e.preserveWhitespace,s=!1,u=!1;return Pr(t,{warn:qs,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldKeepComment:e.comments,start:function(t,a,c){var f=i&&i.ns||Ks(t);io&&"svg"===f&&(a=Xr(a));var l={type:1,tag:t,attrsList:a,attrsMap:Kr(a),parent:i,children:[]};f&&(l.ns=f),Zr(l)&&!vo()&&(l.forbidden=!0);for(var h=0;h0,ao=ro&&ro.indexOf("edge/")>0,so=ro&&ro.indexOf("android")>0,uo=ro&&/iphone|ipad|ipod|ios/.test(ro),co=ro&&/chrome\/\d+/.test(ro)&&!ao,fo={}.watch,lo=!1;if(no)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){lo=!0}}),window.addEventListener("test-passive",null,ho)}catch(t){}var po,mo,vo=function(){return void 0===po&&(po=!no&&void 0!==t&&"server"===t.process.env.VUE_ENV),po},go=no&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,yo="undefined"!=typeof Symbol&&E(Symbol)&&"undefined"!=typeof Reflect&&E(Reflect.ownKeys),wo=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1?y(n):n;for(var r=y(arguments,1),i=0,o=n.length;i1&&(e[n[0].trim()]=n[1].trim())}}),e}),$a=/^--/,Ha=/\s*!important$/,qa=function(t,e,n){if($a.test(e))t.style.setProperty(e,n);else if(Ha.test(n))t.style.setProperty(e,n.replace(Ha,""),"important");else{var r=za(e);if(Array.isArray(n))for(var i=0,o=n.length;id?(l=n(i[g+1])?null:i[g+1].elm,y(t,l,i,p,g,o)):p>g&&b(t,e,h,d)}function x(t,e,o,a){if(t!==e){var s=e.elm=t.elm;if(i(t.isAsyncPlaceholder))return void(r(e.asyncFactory.resolved)?A(t.elm,e,o):e.isAsyncPlaceholder=!0);if(i(e.isStatic)&&i(t.isStatic)&&e.key===t.key&&(i(e.isCloned)||i(e.isOnce)))return void(e.componentInstance=t.componentInstance);var u,c=e.data;r(c)&&r(u=c.hook)&&r(u=u.prepatch)&&u(t,e);var f=t.children,l=e.children;if(r(c)&&m(e)){for(u=0;u',n.innerHTML.indexOf(e)>0}("\n"," "),gs=/\{\{((?:.|\n)+?)\}\}/g,ys=/[-.*+?^${}()|[\]\/\\]/g,ws=v(function(t){var e=t[0].replace(ys,"\\$&"),n=t[1].replace(ys,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")}),bs={staticKeys:["staticClass"],transformNode:Ar,genData:Cr},_s={staticKeys:["staticStyle"],transformNode:Or,genData:Sr},ks=[bs,_s],xs={model:Tn,text:Er,html:Br},Ms=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),As=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Cs=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Os={expectHTML:!0,modules:ks,directives:xs,isPreTag:ka,isUnaryTag:Ms,mustUseProp:ha,canBeLeftOpenTag:As,isReservedTag:xa,getTagNamespace:Le,staticKeys:function(t){return t.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")}(ks)},Ss={decode:function(t){return ms=ms||document.createElement("div"),ms.innerHTML=t,ms.textContent}},Es=/([^\s"'<>\/=]+)/,Bs=/(?:=)/,Ts=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],Ps=new RegExp("^\\s*"+Es.source+"(?:\\s*("+Bs.source+")\\s*(?:"+Ts.join("|")+"))?"),Fs="[a-zA-Z_][\\w\\-\\.]*",Is="((?:"+Fs+"\\:)?"+Fs+")",Ns=new RegExp("^<"+Is),Rs=/^\s*(\/?)>/,Ds=new RegExp("^<\\/"+Is+"[^>]*>"),js=/^]+>/i,Ls=/^ ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n if (config.errorHandler) {\n config.errorHandler.call(null, err, vm, info);\n } else {\n if (false) {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if (inBrowser && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n }\n}\n\n/* */\n/* globals MutationObserver */\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nvar isAndroid = UA && UA.indexOf('android') > 0;\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\nvar isChrome = UA && /chrome\\/\\d+/.test(UA) && !isEdge;\n\n// Firefix has a \"watch\" function on Object.prototype...\nvar nativeWatch = ({}).watch;\n\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', ({\n get: function get () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n })); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer\n};\n\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\n/* istanbul ignore next */\nfunction isNative (Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString())\n}\n\nvar hasSymbol =\n typeof Symbol !== 'undefined' && isNative(Symbol) &&\n typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\n\n/**\n * Defer a task to execute it asynchronously.\n */\nvar nextTick = (function () {\n var callbacks = [];\n var pending = false;\n var timerFunc;\n\n function nextTickHandler () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n }\n\n // the nextTick behavior leverages the microtask queue, which can be accessed\n // via either native Promise.then or MutationObserver.\n // MutationObserver has wider support, however it is seriously bugged in\n // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n // completely stops working after triggering a few times... so, if native\n // Promise is available, we will use it:\n /* istanbul ignore if */\n if (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n var logError = function (err) { console.error(err); };\n timerFunc = function () {\n p.then(nextTickHandler).catch(logError);\n // in problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n } else if (typeof MutationObserver !== 'undefined' && (\n isNative(MutationObserver) ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]'\n )) {\n // use MutationObserver where native Promise is not available,\n // e.g. PhantomJS IE11, iOS7, Android 4.4\n var counter = 1;\n var observer = new MutationObserver(nextTickHandler);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function () {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n } else {\n // fallback to setTimeout\n /* istanbul ignore next */\n timerFunc = function () {\n setTimeout(nextTickHandler, 0);\n };\n }\n\n return function queueNextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve, reject) {\n _resolve = resolve;\n })\n }\n }\n})();\n\nvar _Set;\n/* istanbul ignore if */\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = (function () {\n function Set () {\n this.set = Object.create(null);\n }\n Set.prototype.has = function has (key) {\n return this.set[key] === true\n };\n Set.prototype.add = function add (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function clear () {\n this.set = Object.create(null);\n };\n\n return Set;\n }());\n}\n\n/* */\n\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// the current target watcher being evaluated.\n// this is globally unique because there could be only one\n// watcher being evaluated at any time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (_target) {\n if (Dep.target) { targetStack.push(Dep.target); }\n Dep.target = _target;\n}\n\nfunction popTarget () {\n Dep.target = targetStack.pop();\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);[\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n]\n.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * By default, when a reactive property is set, the new value is\n * also converted to become reactive. However when passing down props,\n * we don't want to force conversion because the value may be a nested value\n * under a frozen data structure. Converting it would defeat the optimization.\n */\nvar observerState = {\n shouldConvert: true\n};\n\n/**\n * Observer class that are attached to each observed\n * object. Once attached, the observer converts target\n * object's property keys into getter/setters that\n * collect dependencies and dispatches updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n var augment = hasProto\n ? protoAugment\n : copyAugment;\n augment(value, arrayMethods, arrayKeys);\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through each property and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive$$1(obj, keys[i], obj[keys[i]]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment an target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src, keys) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment an target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value)) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n observerState.shouldConvert &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive$$1 (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n }\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (false) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (hasOwn(target, key)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"production\" !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive$$1(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"production\" !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (false) {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n var keys = Object.keys(from);\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this) : parentVal\n )\n }\n } else if (parentVal || childVal) {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm)\n : undefined;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n \"production\" !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn.call(this, parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n return childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (parentVal, childVal) {\n var res = Object.create(parentVal || null);\n return childVal\n ? extend(res, childVal)\n : res\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (parentVal, childVal) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key in childVal) {\n var parent = ret[key];\n var child = childVal[key];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (parentVal, childVal) {\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n var lower = key.toLowerCase();\n if (isBuiltInTag(lower) || config.isReservedTag(lower)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + key\n );\n }\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (false) {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options) {\n var inject = options.inject;\n if (Array.isArray(inject)) {\n var normalized = options.inject = {};\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = inject[i];\n }\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def = dirs[key];\n if (typeof def === 'function') {\n dirs[key] = { bind: def, update: def };\n }\n }\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (false) {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child);\n normalizeInject(child);\n normalizeDirectives(child);\n var extendsFrom = child.extends;\n if (extendsFrom) {\n parent = mergeOptions(parent, extendsFrom, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (false) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // handle boolean props\n if (isType(Boolean, prop.type)) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {\n value = true;\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldConvert = observerState.shouldConvert;\n observerState.shouldConvert = true;\n observe(value);\n observerState.shouldConvert = prevShouldConvert;\n }\n if (false) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (false) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n if (!valid) {\n warn(\n 'Invalid prop: type check failed for prop \"' + name + '\".' +\n ' Expected ' + expectedTypes.map(capitalize).join(', ') +\n ', got ' + Object.prototype.toString.call(value).slice(8, -1) + '.',\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n valid = typeof value === expectedType.toLowerCase();\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isType (type, fn) {\n if (!Array.isArray(fn)) {\n return getType(fn) === getType(type)\n }\n for (var i = 0, len = fn.length; i < len; i++) {\n if (getType(fn[i]) === getType(type)) {\n return true\n }\n }\n /* istanbul ignore next */\n return false\n}\n\n/* */\n\nvar mark;\nvar measure;\n\nif (false) {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n perf.clearMeasures(name);\n };\n }\n}\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (false) {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n \"referenced during render. Make sure to declare reactive data \" +\n \"properties in the data option.\",\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' &&\n Proxy.toString().match(/native code/);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';\n if (!has && !isAllowed) {\n warnNonPresent(target, key);\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n warnNonPresent(target, key);\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.functionalContext = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: {} };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode) {\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n vnode.children,\n vnode.text,\n vnode.elm,\n vnode.context,\n vnode.componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.isCloned = true;\n return cloned\n}\n\nfunction cloneVNodes (vnodes) {\n var len = vnodes.length;\n var res = new Array(len);\n for (var i = 0; i < len; i++) {\n res[i] = cloneVNode(vnodes[i]);\n }\n return res\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n cloned[i].apply(null, arguments$1);\n }\n } else {\n // return handler return value for single handlers\n return fns.apply(null, arguments)\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n vm\n) {\n var name, cur, old, event;\n for (name in on) {\n cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n \"production\" !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur);\n }\n add(event.name, cur, event.once, event.capture, event.passive);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (false) {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.