// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`t-model directive .lazy modifier 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['text']; let d2 = [(ev) => { bExpr1['text'] = ev.target.value; }]; let d3 = ctx['state'].text; return block1([d1, d2, d3]); } }" `; exports[`t-model directive .number modifier 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['number']; let d2 = [(ev) => { bExpr1['number'] = toNumber(ev.target.value); }]; let d3 = ctx['state'].number; return block1([d1, d2, d3]); } }" `; exports[`t-model directive .trim modifier 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['text']; let d2 = [(ev) => { bExpr1['text'] = ev.target.value.trim(); }]; let d3 = ctx['state'].text; return block1([d1, d2, d3]); } }" `; exports[`t-model directive basic use, on an input 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['text']; let d2 = [(ev) => { bExpr1['text'] = ev.target.value; }]; let d3 = ctx['state'].text; return block1([d1, d2, d3]); } }" `; exports[`t-model directive basic use, on an input with bracket expression 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['text']; let d2 = [(ev) => { bExpr1['text'] = ev.target.value; }]; let d3 = ctx['state'].text; return block1([d1, d2, d3]); } }" `; exports[`t-model directive basic use, on another key in component 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['some']; let d1 = ctx['some']['text']; let d2 = [(ev) => { bExpr1['text'] = ev.target.value; }]; let d3 = ctx['some'].text; return block1([d1, d2, d3]); } }" `; exports[`t-model directive can also define t-on directive on same event, part 1 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let d1 = [ctx, 'onInput']; const bExpr1 = ctx['state']; let d2 = ctx['state']['text']; let d3 = [(ev) => { bExpr1['text'] = ev.target.value; }]; return block1([d1, d2, d3]); } }" `; exports[`t-model directive can also define t-on directive on same event, part 2 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let d1 = [ctx, 'onClick']; const bExpr1 = ctx['state']; let d2 = ctx['state']['choice'] === 'One'; let d3 = [(ev) => { bExpr1['choice'] = ev.target.value; }]; let d4 = [ctx, 'onClick']; const bExpr2 = ctx['state']; let d5 = ctx['state']['choice'] === 'Two'; let d6 = [(ev) => { bExpr2['choice'] = ev.target.value; }]; let d7 = [ctx, 'onClick']; const bExpr3 = ctx['state']; let d8 = ctx['state']['choice'] === 'Three'; let d9 = [(ev) => { bExpr3['choice'] = ev.target.value; }]; return block1([d1, d2, d3, d4, d5, d6, d7, d8, d9]); } }" `; exports[`t-model directive following a scope protecting directive (e.g. t-set) 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); ctx[isBoundary] = 1 setContextValue(ctx, \\"admiral\\", 'Bruno'); const bExpr1 = ctx['state']; let d1 = ctx['state']['text']; let d2 = [(ev) => { bExpr1['text'] = ev.target.value; }]; return block1([d1, d2]); } }" `; exports[`t-model directive in a t-foreach 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); let block3 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); const [k_block2, v_block2, l_block2, c_block2] = prepareList(ctx['state']); for (let i1 = 0; i1 < l_block2; i1++) { ctx[\`thing\`] = v_block2[i1]; let key1 = ctx['thing'].id; const bExpr1 = ctx['thing']; let d1 = ctx['thing']['f']; let d2 = [(ev) => { bExpr1['f'] = ev.target.checked; }]; c_block2[i1] = withKey(block3([d1, d2]), key1); } let b2 = list(c_block2); return block1([], [b2]); } }" `; exports[`t-model directive in a t-foreach, part 2 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); let block3 = createBlock(\`\`); return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); const [k_block2, v_block2, l_block2, c_block2] = prepareList(ctx['state']); for (let i1 = 0; i1 < l_block2; i1++) { ctx[\`thing\`] = v_block2[i1]; ctx[\`thing_index\`] = i1; let key1 = ctx['thing_index']; const bExpr1 = ctx['state']; let d1 = ctx['state'][ctx['thing_index']]; let d2 = [(ev) => { bExpr1[ctx['thing_index']] = ev.target.value; }]; c_block2[i1] = withKey(block3([d1, d2]), key1); } let b2 = list(c_block2); return block1([], [b2]); } }" `; exports[`t-model directive on a select 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
Choice:
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['color']; let d2 = [(ev) => { bExpr1['color'] = ev.target.value; }]; let d3 = ctx['state'].color; return block1([d1, d2, d3]); } }" `; exports[`t-model directive on a select, initial state 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['color']; let d2 = [(ev) => { bExpr1['color'] = ev.target.value; }]; return block1([d1, d2]); } }" `; exports[`t-model directive on a sub state key 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state'].something; let d1 = ctx['state'].something['text']; let d2 = [(ev) => { bExpr1['text'] = ev.target.value; }]; let d3 = ctx['state'].something.text; return block1([d1, d2, d3]); } }" `; exports[`t-model directive on an input type=radio 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
Choice:
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['choice'] === 'One'; let d2 = [(ev) => { bExpr1['choice'] = ev.target.value; }]; const bExpr2 = ctx['state']; let d3 = ctx['state']['choice'] === 'Two'; let d4 = [(ev) => { bExpr2['choice'] = ev.target.value; }]; let d5 = ctx['state'].choice; return block1([d1, d2, d3, d4, d5]); } }" `; exports[`t-model directive on an input type=radio, with initial value 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { const bExpr1 = ctx['state']; let d1 = ctx['state']['choice'] === 'One'; let d2 = [(ev) => { bExpr1['choice'] = ev.target.value; }]; const bExpr2 = ctx['state']; let d3 = ctx['state']['choice'] === 'Two'; let d4 = [(ev) => { bExpr2['choice'] = ev.target.value; }]; return block1([d1, d2, d3, d4]); } }" `; exports[`t-model directive on an input, type=checkbox 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`
\`); return function template(ctx, node, key = \\"\\") { let b2,b3; const bExpr1 = ctx['state']; let d1 = ctx['state']['flag']; let d2 = [(ev) => { bExpr1['flag'] = ev.target.checked; }]; if (ctx['state'].flag) { b2 = text(\`yes\`); } else { b3 = text(\`no\`); } return block1([d1, d2], [b2, b3]); } }" `; exports[`t-model directive on an textarea 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component } = bdom; let { withDefault, getTemplate, prepareList, withKey, zero, call, callSlot, capture, isBoundary, shallowEqual, setContextValue, toNumber } = helpers; let block1 = createBlock(\`