parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"fS7x":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.component=y,exports.h=l,exports.render=p;var e,t,n,i={},o={},r=[],u={},d=[],f=["abort","blur","error","focus","load","mouseenter","mouseleave","resize","scroll","unload"];function c(e){return Array.isArray(e)}function s(){return Math.random().toString(36).substring(2)+(new Date).getTime().toString(36)}function a(e,t){for(var n=0,i=t.length;n<i;n++)c(t[n])?a(e,t[n]):e.push(t[n]);return e}function h(e,t){for(var n in t)e[n]=t[n];return e}function v(e,t,n){return h(h(e,t),n)}function l(e,t){return{e:e,a:h({},t),c:a([],[].slice.call(arguments,2))}}function p(o,r,u){void 0===u&&(u={}),i=h({},u),t=o,e=document.getElementById(r),n=j(o()),C(e,n),w()}function y(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"":n,u=t.state,d=void 0===u?{}:u,f=t.mounted,c=void 0===f?function(){}:f,a=t.updated,h=void 0===a?function(){}:a,v=t.unmounted,l=void 0===v?function(){}:v,p=t.methods,y=void 0===p?function(){}:p,j=t.render,S=void 0===j?function(){}:j,N=s();return function(e){return void 0===e&&(e={}),{id:N,init:function(){return this.id=N,this.name=r+(e.key?"_"+e.key:""),this.key=this.id+(this.name||""),this.props=e,this.store=i,this.getStore=b,this.setStore=m.bind(this),this.getState=g.bind(this),this.setState=k.bind(this),this.createState=function(){void 0===o[this.key]&&(o[this.key]=d)}.bind(this)(),this.deleteState=function(){delete o[this.key]}.bind(this),this.mounted=c.bind(this),this.updated=h.bind(this),this.unmounted=l.bind(this),function(e,t){for(var n in"function"==typeof t&&(t=t.bind(e)()),t)e[n]=t[n].bind(e)}(this,y),this.render=S.bind(this),this}}}}function b(){return h({},i)}function m(e,t){"function"==typeof e&&(e=e(i)),i=v({},i,e),A(),"function"==typeof t&&t.bind(this)()}function g(){return h({},o[this.key])}function k(e,t){"function"==typeof e&&(e=e(o[this.key])),o[this.key]=v({},o[this.key],e),A(),"function"==typeof t&&t.bind(this)()}function j(e){if(void 0===e)return e;if("function"==typeof e.e){var t=h({},e.a.props);delete e.a.props,e=e.e(t)}if("function"==typeof e.init){var n=new e.init;"object"==typeof(e=n.render())&&(e.id=n.id,e.m=n.mounted,e.up=n.updated,e.un=n.unmounted,e.d=n.deleteState)}if(c(e.c))for(var i=0,o=e.c.length;i<o;i++)e.c[i]=j(e.c[i]);return e}function S(e){var t=typeof e;if("string"===t||"number"===t)return document.createTextNode(e);if("boolean"===t||"undefined"===t)return document.createTextNode("");var n=document.createElement(e.e);if("object"==typeof e.a)for(var i=Object.keys(e.a),o=i.length;o--;)"events"===i[o]?(e.eid=s(),O(e.eid,e.a[i[o]],n)):"style"===i[o]?x(e.a[i[o]],n):n.setAttribute(i[o],e.a[i[o]]);if(J(e,"m"),c(e.c))for(var r=0,u=e.c.length;r<u;r++)C(n,e.c[r]);return n}function N(e){if("#document"!==e.parentNode.nodeName){var t=e.getAttribute("data-eid");return"string"==typeof t?t:N(e.parentNode)}}function O(t,n,i){i.setAttribute("data-eid",t),u[t]=n;for(var o=Object.keys(n),d=o.length;d--;)f.includes(o[d])?i.addEventListener(o[d],u[t][o[d]]):r.includes(o[d])||(r.push(o[d]),e.addEventListener(o[d],function(e){var t=N(e.target);if("string"==typeof t&&u[t]){var n=u[t][e.type];"function"==typeof n&&n(e)}}))}function x(e,t){if(void 0!==e)for(var n=Object.keys(e),i=n.length;i--;)t.style[n[i]]=e[n[i]]}function A(i){var o=h({},n),r=j(t());n=r,E(e,e.firstChild,r,o),w()}function E(e,t,n,i){var o=typeof n,r=typeof i;if("undefined"===r)C(e,n);else if("undefined"===o)L(i),t.remove();else if(function(e,t,n,i){return n!==r||e.e!==t.e||e.id!==t.id||("string"===n||"number"===n)&&e!==t}(n,i,o))L(i),e.replaceChild(S(n),t);else if("object"===o){var u;!function(e,t,n){J(t,"up");for(var i,o,r=Object.keys(t.a),u=r.length;u--;)if(o=t.a[r[u]],i=n.a[r[u]],"style"===r[u]){if(a=typeof(f=i),"object"==(c=typeof(d=o))&&"object"===a&&JSON.stringify(d)===JSON.stringify(f)||"undefined"===c&&"undefined"===a)continue;e.removeAttribute(r[u]),x(o,e)}else"events"===r[u]?(_(e,n.eid),T(n.eid),t.eid=s(),O(t.eid,o,e)):"value"===r[u]&&o!==i?e.value=o:void 0!==i&&o===i||e.setAttribute(r[u],o);var d,f,c,a}(t,n,i);for(var d=i.c.length;d--&&void 0===n.c[d];)"object"==typeof(u=t.lastChild)&&(L(i.c[d]),u.remove());for(var f=0,c=n.c.length;f<c;f++)E(t,t.childNodes[f],n.c[f],i.c[f])}}function C(e,t){e.appendChild(S(t))}function L(e){if(void 0!==e&&(J(e,"un"),J(e,"d"),T(e.eid),c(e.c)))for(var t=e.c.length;t--;)L(e.c[t])}function T(e){"string"==typeof e&&delete u[e]}function _(e,t){for(var n=Object.keys(u[t]),i=n.length;i--;)f.includes(n[i])&&e.removeEventListener(n[i],u[t][n[i]])}function w(){for(var e;e=d.shift();)e()}function J(e,t){"object"==typeof e&&"function"==typeof e[t]&&d.push(e[t])}module.exports={component:y,render:p,h:l};
},{}],"ZBnv":[function(require,module,exports) {
function o(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}module.exports=o,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"NoOd":[function(require,module,exports) {
function e(e,r){for(var o=0;o<r.length;o++){var t=r[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function r(r,o,t){return o&&e(r.prototype,o),t&&e(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}module.exports=r,module.exports.__esModule=!0,module.exports.default=module.exports;
},{}],"iz0v":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Store=void 0;var e=a(require("@babel/runtime/helpers/classCallCheck")),t=a(require("@babel/runtime/helpers/createClass"));function a(e){return e&&e.__esModule?e:{default:e}}function n(e){return Math.round(1e3*Math.random())%e}var i=1,l=["pretty","large","big","small","tall","short","long","handsome","plain","quaint","clean","elegant","easy","angry","crazy","helpful","mushy","odd","unsightly","adorable","important","inexpensive","cheap","expensive","fancy"],r=["red","yellow","blue","green","pink","brown","purple","brown","white","black","orange"],u=["table","chair","house","bbq","desk","car","pony","cookie","sandwich","burger","pizza","mouse","keyboard"];function s(e,t){for(var a=0;a<e;a++)t.push({id:i++,label:l[n(l.length)]+" "+r[n(r.length)]+" "+u[n(u.length)]})}var o=function(){function a(){(0,e.default)(this,a),this.data=[],this.selected=void 0,this.id=1}return(0,t.default)(a,[{key:"updateData",value:function(){for(var e=this.data,t=0;t<e.length;t+=10){var a=e[t];e[t]={id:a.id,label:a.label+" !!!"}}}},{key:"delete",value:function(e){var t=this.data,a=t.findIndex(function(t){return t.id===e});t.splice(a,1)}},{key:"run",value:function(){this.data=[],this.add(),this.selected=void 0}},{key:"add",value:function(){s(1e3,this.data)}},{key:"update",value:function(){this.updateData()}},{key:"select",value:function(e){this.selected=e}},{key:"runLots",value:function(){var e=[];s(1e4,e),this.data=e,this.selected=void 0}},{key:"clear",value:function(){this.data=[],this.selected=void 0}},{key:"swapRows",value:function(){var e=this.data;if(e.length>998){var t=e[1];e[1]=e[998],e[998]=t}}}]),a}();exports.Store=o;
},{"@babel/runtime/helpers/classCallCheck":"ZBnv","@babel/runtime/helpers/createClass":"NoOd"}],"Focm":[function(require,module,exports) {
"use strict";var t=require("literaljs"),s=require("./store"),e=(0,t.component)({state:{store:new s.Store},methods:function(){var t=this.getState().store;return{run:function(){t.run(),this.setState({store:t})},add:function(){t.add(),this.setState({store:t})},update:function(){t.update(),this.setState({store:t})},select:function(s){t.select(s),this.setState({store:t})},delete:function(s){t.delete(s),this.setState({store:t})},runLots:function(){t.runLots(),this.setState({store:t})},clear:function(){t.clear(),this.setState({store:t})},swapRows:function(){t.swapRows(),this.setState({store:t})}}},render:function(){var s=this,e=this.getState().store;return(0,t.h)("div",{class:"container"},(0,t.h)("div",{class:"jumbotron"},(0,t.h)("div",{class:"row"},(0,t.h)("div",{class:"col-md-6"},(0,t.h)("h1",null,"LiteralJS (non-keyed)")),(0,t.h)("div",{class:"col-md-6"},(0,t.h)("div",{class:"row"},(0,t.h)("div",{class:"col-sm-6 smallpad"},(0,t.h)("button",{type:"button",class:"btn btn-primary btn-block",id:"run",events:{click:this.run}},"Create 1,000 rows")),(0,t.h)("div",{class:"col-sm-6 smallpad"},(0,t.h)("button",{type:"button",class:"btn btn-primary btn-block",id:"runlots",events:{click:this.runLots}},"Create 10,000 rows")),(0,t.h)("div",{class:"col-sm-6 smallpad"},(0,t.h)("button",{type:"button",class:"btn btn-primary btn-block",id:"add",events:{click:this.add}},"Append 1,000 rows")),(0,t.h)("div",{class:"col-sm-6 smallpad"},(0,t.h)("button",{type:"button",class:"btn btn-primary btn-block",id:"update",events:{click:this.update}},"Update every 10th row")),(0,t.h)("div",{class:"col-sm-6 smallpad"},(0,t.h)("button",{type:"button",class:"btn btn-primary btn-block",id:"clear",events:{click:this.clear}},"Clear")),(0,t.h)("div",{class:"col-sm-6 smallpad"},(0,t.h)("button",{type:"button",class:"btn btn-primary btn-block",id:"swaprows",events:{click:this.swapRows}},"Swap Rows")))))),(0,t.h)("table",{class:"table table-hover table-striped test-data"},(0,t.h)("tbody",null,e.data.map(function(a){return(0,t.h)("tr",{class:a.id===e.selected?"danger":""},(0,t.h)("td",{class:"col-md-1"},a.id),(0,t.h)("td",{class:"col-md-4"},(0,t.h)("a",{events:{click:function(){return s.select(a.id)}}},a.label)),(0,t.h)("td",{class:"col-md-1"},(0,t.h)("a",null,(0,t.h)("span",{class:"glyphicon glyphicon-remove","aria-hidden":"true",events:{click:function(){return s.delete(a.id)}}}))),(0,t.h)("td",{class:"col-md-6"}))}))),(0,t.h)("span",{class:"preloadicon glyphicon glyphicon-remove","aria-hidden":"true"}))}});(0,t.render)(e,"root",{});
},{"literaljs":"fS7x","./store":"iz0v"}]},{},["Focm"], null)
//# sourceMappingURL=/frameworks/non-keyed/literaljs/dist/literaljs.527fe996.js.map