// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`misc complex template 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let { prepareList, withKey } = helpers; let block1 = createBlock(\`
\`); let block2 = createBlock(\`\`); let block3 = createBlock(\` preparing\`); let block7 = createBlock(\`
\`); let block9 = createBlock(\`
\`); let block10 = createBlock(\`\`); let block11 = createBlock(\`\`); let block12 = createBlock(\`\`); let block13 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let b2,b3,b4,b6,b8; let d1 = \`batch_tile \${ctx['options'].more?'more':'nomore'}\`; let d2 = \`card bg-\${ctx['klass']}-light\`; let d3 = \`/runbot/batch/\${ctx['batch'].id}\`; let d4 = \`badge badge-\${ctx['batch'].has_warning?'warning':'light'}\`; let d5 = ctx['batch'].formated_age; if (ctx['batch'].has_warning) { b2 = block2(); } if (ctx['batch'].state=='preparing') { b3 = block3(); } ctx = Object.create(ctx); const [k_block4, v_block4, l_block4, c_block4] = prepareList(ctx['batch'].slot_ids.filter(slot=>slot.build_id.id&&!slot.trigger_id.manual&&(ctx['options'].trigger_display[slot.trigger_id.id]))); for (let i1 = 0; i1 < l_block4; i1++) { ctx[\`slot\`] = v_block4[i1]; let key1 = ctx['slot'].id; c_block4[i1] = withKey(component(\`SlotButton\`, {class: ctx['slot_container'],slot: ctx['slot']}, key + \`__1__\${key1}\`, node, ctx), key1); } ctx = ctx.__proto__; b4 = list(c_block4); ctx = Object.create(ctx); const [k_block6, v_block6, l_block6, c_block6] = prepareList([1,2,3,4]); for (let i1 = 0; i1 < l_block6; i1++) { ctx[\`x\`] = v_block6[i1]; let key1 = ctx['x']; c_block6[i1] = withKey(block7(), key1); } ctx = ctx.__proto__; b6 = list(c_block6); ctx = Object.create(ctx); const [k_block8, v_block8, l_block8, c_block8] = prepareList(ctx['commit_links']); for (let i1 = 0; i1 < l_block8; i1++) { ctx[\`commit_link\`] = v_block8[i1]; let key1 = ctx['commit_link'].id; let b10,b11,b12,b13; let d6 = \`/runbot/commit/\${ctx['commit_link'].commit_id}\`; let d7 = \`badge badge-light batch_commit match_type_\${ctx['commit_link'].match_type}\`; if (ctx['commit_link'].match_type=='new') { b10 = block10(); } if (ctx['commit_link'].match_type=='head') { b11 = block11(); } if (ctx['commit_link'].match_type=='base_match') { b12 = block12(); } if (ctx['commit_link'].match_type=='base_head') { b13 = block13(); } let d8 = ctx['commit_link'].commit_dname; let d9 = 'https://%s/commit/%s'%(ctx['commit_link'].commit_remote_url,ctx['commit_link'].commit_name); let d10 = ctx['commit_link'].commit_subject; c_block8[i1] = withKey(block9([d6, d7, d8, d9, d10], [b10, b11, b12, b13]), key1); } b8 = list(c_block8); return block1([d1, d2, d3, d4, d5], [b2, b3, b4, b6, b8]); } }" `; exports[`misc global 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let { zero } = helpers; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let d1 = 'agüero'; let b2 = ctx[zero]; return block1([d1], [b2]); } }" `; exports[`misc global 2`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let { withDefault } = helpers; let block1 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { let d1 = withDefault(ctx['foo'], \`foo default\`); return block1([d1]); } }" `; exports[`misc global 3`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let { safeOutput, withDefault } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b3 = text(\`toto default\`); let b2 = withDefault(safeOutput(ctx['toto']), b3); return block1([], [b2]); } }" `; exports[`misc global 4`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let { prepareList, isBoundary, withDefault, setContextValue, getTemplate, zero, withKey } = helpers; const callTemplate_2 = getTemplate(\`_callee-uses-foo\`); const callTemplate_4 = getTemplate(\`_callee-uses-foo\`); const callTemplate_6 = getTemplate(\`_callee-uses-foo\`); const callTemplate_8 = getTemplate(\`_callee-asc\`); const callTemplate_10 = getTemplate(\`_callee-asc-toto\`); let block1 = createBlock(\`
\`); let block4 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 ctx = Object.create(ctx); const [k_block2, v_block2, l_block2, c_block2] = prepareList([4,5,6]); for (let i1 = 0; i1 < l_block2; i1++) { ctx[\`value\`] = v_block2[i1]; ctx[\`value_first\`] = i1 === 0; ctx[\`value_last\`] = i1 === v_block2.length - 1; ctx[\`value_index\`] = i1; ctx[\`value_value\`] = k_block2[i1]; let key1 = ctx['value']; let d1 = ctx['value']; let b4 = block4([d1]); ctx = Object.create(ctx); ctx[isBoundary] = 1; ctx = Object.create(ctx); ctx[isBoundary] = 1; setContextValue(ctx, \\"foo\\", 'aaa'); let b6 = callTemplate_2.call(this, ctx, node, key + \`__1__\${key1}\`); ctx = ctx.__proto__; let b7 = callTemplate_4.call(this, ctx, node, key + \`__3__\${key1}\`); setContextValue(ctx, \\"foo\\", 'bbb'); let b8 = callTemplate_6.call(this, ctx, node, key + \`__5__\${key1}\`); let b5 = multi([b6, b7, b8]); ctx[zero] = b5; let b9 = callTemplate_8.call(this, ctx, node, key + \`__7__\${key1}\`); ctx = ctx.__proto__; c_block2[i1] = withKey(multi([b4, b9]), key1); } ctx = ctx.__proto__; let b2 = list(c_block2); let b10 = callTemplate_10.call(this, ctx, node, key + \`__9\`); return block1([], [b2, b10]); } }" `; exports[`misc other complex template 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let { prepareList, withKey, getTemplate } = helpers; const callTemplate_2 = getTemplate(\`LOAD_INFOS_TEMPLATE\`); let block1 = createBlock(\`
Triggers
\`); let block3 = createBlock(\`
  • \`); let block5 = createBlock(\`
  • Login
  • \`); let block8 = createBlock(\`
  • \`); let block9 = createBlock(\`
  • \`); let block11 = createBlock(\`
  • \`); let block12 = createBlock(\`
  • \`); let block13 = createBlock(\`
  • \`); let block14 = createBlock(\`\`); let block16 = createBlock(\`\`); let block20 = createBlock(\`
    \`); let block21 = createBlock(\`
    \`); let block23 = createBlock(\`
    \`); let block24 = createBlock(\`

    No project

    \`); let block25 = createBlock(\`
    \`); return function template(ctx, node, key = \\"\\") { const refs = ctx.__owl__.refs; let b2,b4,b14,b17,b22,b23,b24,b25; let d1 = \`/runbot/\${ctx['project'].slug}\`; let d2 = ctx['project'].name; ctx = Object.create(ctx); const [k_block2, v_block2, l_block2, c_block2] = prepareList(ctx['projects']); for (let i1 = 0; i1 < l_block2; i1++) { ctx[\`project\`] = v_block2[i1]; let key1 = ctx['project'].id; let d3 = [ctx['selectProject'](ctx['project']), ctx]; let d4 = ctx['project'].name; c_block2[i1] = withKey(block3([d3, d4]), key1); } ctx = ctx.__proto__; b2 = list(c_block2); if (ctx['user']) { let b5,b6; if (ctx['user'].public) { let d5 = \`/web/login?redirect=/\`; b5 = block5([d5]); } else { let b7,b10,b13; if (ctx['nb_assigned_errors']&&ctx['nb_assigned_errors']>0) { let d6 = \`You have \${ctx['nb_assigned_errors']} random bug assigned\`; let d7 = ctx['nb_assigned_errors']; let b8 = block8([d6, d7]); let b9 = block9(); b7 = multi([b8, b9]); } else if (ctx['nb_build_errors']&&ctx['nb_build_errors']>0) { let b11 = block11(); let b12 = block12(); b10 = multi([b11, b12]); } let d8 = ctx['user'].name.length>25?ctx['user'].namesubstring(0,23)+'...':ctx['user'].name; let d9 = \`/web/session/logout?redirect=/\`; let d10 = \`/web\`; b13 = block13([d8, d9, d10]); b6 = multi([b7, b10, b13]); } b4 = multi([b5, b6]); } let d11 = [ctx['toggleSettingsMenu'], ctx]; let d12 = [ctx['toggleMore'], ctx]; if (ctx['categories']&&ctx['categories'].length>1) { ctx = Object.create(ctx); const [k_block15, v_block15, l_block15, c_block15] = prepareList(ctx['categories']); for (let i1 = 0; i1 < l_block15; i1++) { ctx[\`category\`] = v_block15[i1]; let key1 = ctx['category'].id; let d13 = ctx['category'].id; let d14 = ctx['category'].id==ctx['options'].active_category_id; let d15 = ctx['category'].name; c_block15[i1] = withKey(block16([d13, d14, d15]), key1); } ctx = ctx.__proto__; let b15 = list(c_block15); b14 = block14([], [b15]); } let d16 = ctx['search'].value; let d17 = [ctx['updateFilter'], ctx]; let d18 = [ctx['updateFilter'], ctx]; let d19 = (el) => refs[\`search_input\`] = el; let d20 = [ctx['clearSearch'], ctx]; let d21 = (el) => refs[\`settings_menu\`] = el; if (ctx['triggers']) { ctx = Object.create(ctx); const [k_block18, v_block18, l_block18, c_block18] = prepareList(ctx['triggers']); for (let i1 = 0; i1 < l_block18; i1++) { ctx[\`trigger\`] = v_block18[i1]; let key1 = ctx['trigger'].id; let b20; if (!ctx['trigger'].manual&&ctx['trigger'].project_id===ctx['project'].id&&ctx['trigger'].category_id===ctx['options'].active_category_id) { let d22 = \`trigger_\${ctx['trigger'].id}\`; let d23 = \`trigger_\${ctx['trigger'].id}\`; let d24 = ctx['options'].trigger_display[ctx['trigger'].id]; let d25 = ctx['trigger'].id; let d26 = [ctx['updateTriggerDisplay'], ctx]; let d27 = \`trigger_\${ctx['trigger'].id}\`; let d28 = ctx['trigger'].name; b20 = block20([d22, d23, d24, d25, d26, d27, d28]); } c_block18[i1] = withKey(multi([b20]), key1); } ctx = ctx.__proto__; let b18 = list(c_block18); let d29 = [ctx['triggerAll'], ctx]; let d30 = [ctx['triggerNone'], ctx]; let d31 = [ctx['triggerDefault'], ctx]; let d32 = [ctx['toggleSettingsMenu'], ctx]; let b21 = block21([d29, d30, d31, d32]); b17 = multi([b18, b21]); } if (ctx['load_infos']) { b22 = callTemplate_2.call(this, ctx, node, key + \`__1\`); } if (ctx['message']) { let d33 = ctx['message']; b23 = block23([d33]); } if (!ctx['project']) { b24 = block24(); } else { let b26 = component(\`BundlesList\`, {bundles: ctx['bundles'].sticky,category_custom_views: ctx['category_custom_views'],search: ctx['search']}, key + \`__3\`, node, ctx); let b27 = component(\`BundlesList\`, {bundles: ctx['bundles'].dev,search: ctx['search']}, key + \`__4\`, node, ctx); b25 = block25([], [b26, b27]); } return block1([d1, d2, d11, d12, d16, d17, d18, d19, d20, d21], [b2, b4, b14, b17, b22, b23, b24, b25]); } }" `;