/*! Amaze UI v2.5.2 ~ Handlebars helper | by Amaze UI Team | (c) 2016 AllMobilize, Inc. | Licensed under MIT | 2016-01-26T11:06:52+0800 */ (function(undefined) { 'use strict'; var registerIfCondHelper = function(hbs) { hbs.registerHelper('ifCond', function(v1, operator, v2, options) { switch (operator) { case '==': return (v1 == v2) ? options.fn(this) : options.inverse(this); break; case '===': return (v1 === v2) ? options.fn(this) : options.inverse(this); break; case '<': return (v1 < v2) ? options.fn(this) : options.inverse(this); break; case '<=': return (v1 <= v2) ? options.fn(this) : options.inverse(this); break; case '>': return (v1 > v2) ? options.fn(this) : options.inverse(this); break; case '>=': return (v1 >= v2) ? options.fn(this) : options.inverse(this); break; default: return options.inverse(this); break; } return options.inverse(this); }); }; if (typeof module !== 'undefined' && module.exports) { module.exports = registerIfCondHelper; } this.Handlebars && registerIfCondHelper(this.Handlebars); }).call(this); (function(undefined){ 'use strict'; var registerAMUIPartials = function(hbs) { hbs.registerPartial('accordion', "{{#this}}\n
\n {{#each content}}\n
\n
\n {{{title}}}\n
\n
\n \n
\n {{{content}}}\n
\n
\n
\n {{/each}}\n
\n{{/this}}\n"); hbs.registerPartial('divider', "{{#this}}\n
\n{{/this}}\n"); hbs.registerPartial('duoshuo', "{{#this}}\n
\n
\n
\n
\n{{/this}}"); hbs.registerPartial('figure', "{{#this}}\n
\n {{#if content.link}}{{/if}}\n\n {{#if options.figcaptionPosition}}\n {{#ifCond options.figcaptionPosition '==' 'top'}}\n {{#if content.figcaption}}\n
\n {{content.figcaption}}\n
\n {{/if}}\n {{/ifCond}}\n {{/if}}\n\n {{#if content.img}}\n \"{{#if\n {{/if}}\n {{#if options.figcaptionPosition}}\n {{#ifCond options.figcaptionPosition '==' 'bottom'}}\n {{#if content.figcaption}}\n
\n {{content.figcaption}}\n
\n {{/if}}\n {{/ifCond}}\n {{else}}\n {{#if content.figcaption}}\n
\n {{content.figcaption}}\n
\n {{/if}}\n {{/if}}\n\n {{#if content.link}}
{{/if}}\n
\n{{/this}}\n"); hbs.registerPartial('footer', "{{#this}}\n \n\n \n{{/this}}\n"); hbs.registerPartial('gallery', "{{#this}}\n \n{{/this}}\n"); hbs.registerPartial('gotop', "{{#this}}\n
\n \n {{#if content.title}}\n {{content.title}}\n {{/if}}\n {{#if content.customIcon}}\n \n {{else}}\n {{#if content.icon}}\n \n {{else}}\n \n {{/if}}\n {{/if}}\n \n
\n{{/this}}\n"); hbs.registerPartial('header', "{{#this}}\n
\n {{#if content.left}}\n
\n {{#each content.left}}\n \n {{#if title}}\n \n {{title}}\n \n {{/if}}\n\n {{# if customIcon}}\n \"\"/\n {{else}}\n {{#if icon}}\n \n {{/if}}\n {{/if}}\n \n {{/each}}\n
\n {{/if}}\n\n {{#if content.title}}\n

\n {{#if content.link}}\n \n {{{content.title}}}\n \n {{else}}\n {{{content.title}}}\n {{/if}}\n

\n {{/if}}\n\n {{#if content.right}}\n
\n {{#each content.right}}\n \n {{#if title}}\n \n {{title}}\n \n {{/if}}\n\n {{# if customIcon}}\n \"\"/\n {{else}}\n {{#if icon}}\n \n {{/if}}\n {{/if}}\n \n {{/each}}\n
\n {{/if}}\n
\n{{/this}}\n"); hbs.registerPartial('intro', "{{#this }}\n
\n {{#if content.title}}\n
\n

{{{content.title}}}

\n {{#if content.more.link}}\n {{#ifCond options.position '==' 'top'}}\n {{content.more.title}}\n {{/ifCond}}\n {{/if}}\n
\n {{/if}}\n\n
\n {{#if content.left}}\n {{{content.left}}}
\n {{/if}}\n {{#if content.right}}\n {{{content.right}}}
\n {{/if}}\n \n {{#ifCond options.position '==' 'bottom'}}\n
\n {{content.more.title}}\n
\n {{/ifCond}}\n \n{{/this}}\n"); hbs.registerPartial('list_news', "{{#this}}\n
\n \n {{#if content.header.title}}\n
\n {{#if content.header.link}} \n \n

{{{content.header.title}}}

\n {{#ifCond content.header.morePosition '==' 'top'}}\n {{{content.header.moreText}}}\n {{/ifCond}}\n
\n {{else}} \n

{{{content.header.title}}}

\n {{/if}}\n
\n {{/if}}\n\n
\n \n
\n\n {{#ifCond content.header.morePosition '==' 'bottom'}}\n {{#if content.header.link}}\n
\n {{{content.header.moreText}}}\n
\n {{/if}}\n {{/ifCond}}\n
\n{{/this}}\n"); hbs.registerPartial('map', "{{#this}}\n
\n
\n
\n{{/this}}"); hbs.registerPartial('mechat', "{{#this}}\n
\n
\n
\n{{/this}}"); hbs.registerPartial('menu', "{{#this}}\n \n{{/this}}\n"); hbs.registerPartial('navbar', "{{#this}}\n
\n {{#if content}}\n \n {{/if}}\n
\n{{/this}}\n"); hbs.registerPartial('pagination', "{{#this}}\n \n{{/this}}\n"); hbs.registerPartial('paragraph', "{{#this}}\n
\n\n {{#if content}}\n {{{ content.content }}}\n {{/if}}\n
\n{{/this}}\n"); hbs.registerPartial('slider', "{{#this}}\n
\n \n
\n{{/this}}"); hbs.registerPartial('tabs', "{{#this}}\n
\n {{#if content}}\n \n
\n {{#each content}}\n
\n {{{content}}}\n
\n {{/each}}\n
\n {{/if}}\n
\n{{/this}}\n"); hbs.registerPartial('titlebar', "{{#this}}\n
\n {{#if content.title}}\n

\n {{#if content.link}}\n {{{content.title}}}\n {{else}}\n {{{content.title}}}\n {{/if}}\n

\n {{/if}}\n\n {{#if content.nav}}\n \n {{/if}}\n
\n{{/this}}\n"); hbs.registerPartial('wechatpay', "{{#this}}\n
\n \n
\n{{/this}}\n"); }; if (typeof module !== 'undefined' && module.exports) { module.exports = registerAMUIPartials; } this.Handlebars && registerAMUIPartials(this.Handlebars); }).call(this);