// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Portal Portal composed with t-slot 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block1 = createBlock(\`
2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { let b3 = component(\`Portal\`, {target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__2\`, node, ctx); return block1([], [b3]); } }" `; exports[`Portal basic use of portal in dev mode 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { const props2 = {target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}} helpers.validateProps(\`Portal\`, props2, ctx) let b3 = component(\`Portal\`, props2, key + \`__3\`, node, ctx); return block1([], [b3]); } }" `; exports[`Portal conditional use of Portal (with sub Component) 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block2 = createBlock(\`1\`); function slot1(ctx, node, key = \\"\\") { return component(\`Child\`, {val: ctx['state'].val}, key + \`__2\`, node, ctx); } return function template(ctx, node, key = \\"\\") { let b2,b4; b2 = block2(); if (ctx['state'].hasPortal) { b4 = component(\`Portal\`, {target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__3\`, node, ctx); } return multi([b2, b4]); } }" `; exports[`Portal conditional use of Portal (with sub Component) 2`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { return block3(); } return function template(ctx, node, key = \\"\\") { let b2,b4; b2 = block2(); if (ctx['state'].hasPortal) { b4 = component(\`Portal\`, {target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__2\`, node, ctx); } return multi([b2, b4]); } }" `; exports[`Portal lifecycle hooks of portal sub component are properly called 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { let b3 = block3(); let b4 = block4(); return multi([b3, b4]); } return function template(ctx, node, key = \\"\\") { let b5 = component(\`Portal\`, {target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__2\`, node, ctx); return block1([], [b5]); } }" `; exports[`Portal portal with no content 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { let b3 = component(\`Portal\`, {target: '#local-target',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__2\`, node, ctx); return block1([], [b3]); } }" `; exports[`Portal with target in template (before portal) 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { let b3 = component(\`Portal\`, {target: '#local-target',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__2\`, node, ctx); return block1([], [b3]); } }" `; exports[`Portal: Props validation target is mandatory 1`] = ` "function anonymous(bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, component, comment } = bdom; let block1 = createBlock(\`