// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Portal Add and remove portals 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { prepareList, capture, withKey } = helpers; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); function slot1(ctx, node, key = \\"\\") { const b3 = text(\` Portal\`); const b4 = text(ctx['portalId']); return multi([b3, b4]); } return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); const [k_block1, v_block1, l_block1, c_block1] = prepareList(ctx['portalIds']);; for (let i1 = 0; i1 < l_block1; i1++) { ctx[\`portalId\`] = v_block1[i1]; const key1 = ctx['portalId']; const ctx1 = capture(ctx); c_block1[i1] = withKey(comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx1}}}, key + \`__1__\${key1}\`, node, ctx, Portal), key1); } return list(c_block1); } }" `; exports[`Portal Add and remove portals on div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { prepareList, capture, withKey } = helpers; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block2 = createBlock(\`
2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { const b3 = comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); return block1([], [b3]); } }" `; exports[`Portal basic use of portal in dev mode 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { const b3 = comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); return block1([], [b3]); } }" `; exports[`Portal basic use of portal on div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block1 = createBlock(\`2
2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { const b3 = comp1({target: ctx['target'],slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); return block1([], [b3]); } }" `; exports[`Portal conditional use of Portal (with sub Component) 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(\`Child\`, true, false, false, false); const comp2 = app.createComponent(null, false, true, false, false); let block2 = createBlock(\`1\`); function slot1(ctx, node, key = \\"\\") { return comp1({val: ctx['state'].val}, key + \`__1\`, node, this, null); } return function template(ctx, node, key = \\"\\") { let b2,b4; b2 = block2(); if (ctx['state'].hasPortal) { b4 = comp2({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__2\`, node, ctx, Portal); } return multi([b2, b4]); } }" `; exports[`Portal conditional use of Portal (with sub Component) 2`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, 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 = comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); } return multi([b2, b4]); } }" `; exports[`Portal conditional use of Portal with child and div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const comp1 = app.createComponent(\`Child\`, true, false, false, true); return function template(ctx, node, key = \\"\\") { let b2; if (ctx['state'].hasPortal) { b2 = comp1({}, key + \`__1\`, node, this, null); } return multi([b2]); } }" `; exports[`Portal conditional use of Portal with child and div 2`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; let { prepareList, capture, withKey } = helpers; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block1 = createBlock(\`thePortal
\`); function slot1(ctx, node, key = \\"\\") { return block3(); } return function template(ctx, node, key = \\"\\") { ctx = Object.create(ctx); const [k_block2, v_block2, l_block2, c_block2] = prepareList([1]);; for (let i1 = 0; i1 < l_block2; i1++) { ctx[\`elem\`] = v_block2[i1]; const key1 = ctx['elem']; const ctx1 = capture(ctx); c_block2[i1] = withKey(comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx1}}}, key + \`__1__\${key1}\`, node, ctx, Portal), key1); } const b2 = list(c_block2); return block1([], [b2]); } }" `; exports[`Portal conditional use of Portal with child and div, variation 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const comp1 = app.createComponent(\`Child\`, true, false, false, true); let block2 = createBlock(\`thePortal
\`); function slot1(ctx, node, key = \\"\\") { return block4(); } return function template(ctx, node, key = \\"\\") { const b2 = block2(); ctx = Object.create(ctx); const [k_block3, v_block3, l_block3, c_block3] = prepareList([1]);; for (let i1 = 0; i1 < l_block3; i1++) { ctx[\`elem\`] = v_block3[i1]; const key1 = ctx['elem']; const ctx1 = capture(ctx); c_block3[i1] = withKey(comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx1}}}, key + \`__1__\${key1}\`, node, ctx, Portal), key1); } const b3 = list(c_block3); return multi([b2, b3]); } }" `; exports[`Portal conditional use of Portal with div 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block2 = createBlock(\`thePortal
\`); function slot1(ctx, node, key = \\"\\") { return block3(); } return function template(ctx, node, key = \\"\\") { let b2; if (ctx['state'].hasPortal) { const b4 = comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); b2 = block2([], [b4]); } return multi([b2]); } }" `; exports[`Portal lifecycle hooks of portal sub component are properly called 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(\`Child\`, true, false, false, false); const comp2 = app.createComponent(null, false, true, false, false); let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { const b3 = block3(); const b4 = block4(); return multi([b3, b4]); } return function template(ctx, node, key = \\"\\") { const b5 = comp1({target: '#outside',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); return block1([], [b5]); } }" `; exports[`Portal portal with no content 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { const b3 = comp1({target: '#local-target',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); return block1([], [b3]); } }" `; exports[`Portal with target in template (before portal) 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block1 = createBlock(\`2
\`); function slot1(ctx, node, key = \\"\\") { return block2(); } return function template(ctx, node, key = \\"\\") { const b3 = comp1({target: '#local-target',slots: {'default': {__render: slot1, __ctx: ctx}}}, key + \`__1\`, node, ctx, Portal); return block1([], [b3]); } }" `; exports[`Portal: Props validation target must be a valid selector 1`] = ` "function anonymous(app, bdom, helpers ) { let { text, createBlock, list, multi, html, toggler, comment } = bdom; const Portal = app.Portal; const comp1 = app.createComponent(null, false, true, false, false); let block1 = createBlock(\`