"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4570],{33562:function(t,e,n){var o=n(41376),r=n(42010),i=n(54354),a=n(46583),c=n(31998),s=n(32275);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n=200&&n.status<300){var o;try{o=JSON.parse(n.responseText)}catch(t){return void this.setState(a.Z.ERROR)}this.applyTemplate_(o),this.templateCache_[t]=o,this.setState(a.Z.READY)}else this.setState(a.Z.ERROR)}},{key:"handleInitError_",value:function(t){this.setState(a.Z.ERROR)}},{key:"applyTemplate_",value:function(t){var e="https://"+t.cdn_url.https+"/"+this.account_+"/api/v1/map/"+t.layergroupid+"/{z}/{x}/{y}.png";this.setUrl(e)}}])&&f(e.prototype,n),o&&f(e,o),Object.defineProperty(e,"prototype",{writable:!1}),i}(c.Z),_=n(79847),d={layers:[{type:"cartodb",options:{cartocss_version:"2.1.1",cartocss:"#layer { polygon-fill: #F00; }",sql:"select * from european_countries_e where area > 0"}}]},v=new m({account:"documentation",config:d});new o.Z({layers:[new r.Z({source:new _.Z}),new r.Z({source:v})],target:"map",view:new i.ZP({center:[0,0],zoom:2})});document.getElementById("country-area").addEventListener("change",(function(){var t;t=this.value,d.layers[0].options.sql="select * from european_countries_e where area > "+t,v.setConfig(d)}))}},function(t){var e=function(e){return t(t.s=e)};e(9877),e(33562)}]); //# sourceMappingURL=cartodb.js.map