1(self.webpackChunkwpjshop=self.webpackChunkwpjshop||[]).push([[92],{1056:function(t,e){var o,n,i;function r(t){return r="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},r(t)}"undefined"!=typeof self&&self,n=[],void 0===(i="function"==typeof(o=function(){var t;return t=function(){function t(t,e){var o,n;if(this.options={target:"instafeed",get:"popular",resolution:"thumbnail",sortBy:"none",links:!0,mock:!1,useHttp:!1},"object"===r(t))for(o in t)n=t[o],this.options[o]=n;this.context=null!=e?e:this,this.unique=this._genKey()}return t.prototype.hasNext=function(){return"string"==typeof this.context.nextUrl&&this.context.nextUrl.length>0},t.prototype.next=function(){return!!this.hasNext()&&this.run(this.context.nextUrl)},t.prototype.run=function(e){var o,n;return null!=this.options.before&&"function"==typeof this.options.before&&this.options.before.call(this),"undefined"!=typeof document&&null!==document&&((n=document.createElement("script")).id="instafeed-fetcher",n.src=e||this._buildUrl(),document.getElementsByTagName("head")[0].appendChild(n),o="instafeedCache"+this.unique,window[o]=new t(this.options,this),window[o].unique=this.unique),!0},t.prototype.parse=function(t){var e,o,n,i,s,a,l,p,u,c,h,d,f,m,g,y,w,b,v;if("object"!==r(t)){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"Invalid JSON data"),!1;throw new Error("Invalid JSON response")}if(200!==t.meta.code){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,t.meta.error_message),!1;throw new Error("Error from Instagram: "+t.meta.error_message)}if(0===t.data.length){if(null!=this.options.error&&"function"==typeof this.options.error)return this.options.error.call(this,"No images were returned from Instagram"),!1;throw new Error("No images were returned from Instagram")}if(null!=this.options.success&&"function"==typeof this.options.success&&this.options.success.call(this,t),this.context.nextUrl="",null!=t.pagination&&(this.context.nextUrl=t.pagination.next_url),"none"!==this.options.sortBy)switch(c="least"===(h="random"===this.options.sortBy?["","random"]:this.options.sortBy.split("-"))[0],h[1]){case"random":t.data.sort((function(){return.5-Math.random()}));break;case"recent":t.data=this._sortBy(t.data,"created_time",c);break;case"liked":t.data=this._sortBy(t.data,"likes.count",c);break;case"commented":t.data=this._sortBy(t.data,"comments.count",c);break;default:throw new Error("Invalid option for sortBy: '"+this.options.sortBy+"'.")}if("undefined"!=typeof document&&null!==document&&!1===this.options.mock){if(a=t.data,null!=this.options.limit&&a.length>this.options.limit&&(a=a.slice(0,this.options.limit+1||9e9)),o=document.createDocumentFragment(),null!=this.options.filter&&"function"==typeof this.options.filter&&(a=this._filter(a,this.options.filter)),null!=this.options.template&&"string"==typeof this.options.template){for(n="",d=document.createElement("div"),f=0,y=a.length;f<y;f++)s=(i=a[f]).images[this.options.resolution].url,this.options.useHttp||(s=s.replace("http://","//")),n+=this._makeTemplate(this.options.template,{model:i,id:i.id,link:i.link,image:s,caption:this._getObjectProperty(i,"caption.text"),likes:i.likes.count,comments:i.comments.count,location:this._getObjectProperty(i,"location.name")});for(d.innerHTML=n,m=0,w=(v=[].slice.call(d.childNodes)).length;m<w;m++)u=v[m],o.appendChild(u)}else for(g=0,b=a.length;g<b;g++)i=a[g],l=document.createElement("img"),s=i.images[this.options.resolution].url,this.options.useHttp||(s=s.replace("http://","//")),l.src=s,!0===this.options.links?(e=document.createElement("a"),s=i.images.standard_resolution.url,this.options.useHttp||(s=s.replace("http://","//")),e.href=s,e.setAttribute("data-rel","instagram"),e.setAttribute("class","imgbox"),e.appendChild(l),o.appendChild(e)):o.appendChild(l);document.getElementById(this.options.target).appendChild(o),document.getElementsByTagName("head")[0].removeChild(document.getElementById("instafeed-fetcher")),p="instafeedCache"+this.unique,window[p]=void 0;try{delete window[p]}catch(t){}}return null!=this.options.after&&"function"==typeof this.options.after&&this.options.after.call(this),!0},t.prototype._buildUrl=function(){var t,e,o;switch(t=window.wpj.data.instagram?"/_kupshop/instagram/feed":"https://instagram.wpj.cz",this.options.get){case"popular":e="media/popular";break;case"tagged":if("string"!=typeof this.options.tagName)throw new Error("No tag name specified. Use the 'tagName' option.");e="?feed=%23"+this.options.tagName;break;case"location":if("number"!=typeof this.options.locationId)throw new Error("No location specified. Use the 'locationId' option.");e="locations/"+this.options.locationId+"/media/recent";break;case"user":if("number"!=typeof this.options.userId)throw new Error("No user specified. Use the 'userId' option.");e="?userId="+this.options.userId;break;case"username":if("string"!=typeof this.options.username)throw new Error("No user specified. Use the 'username' option.");e="?feed=@"+this.options.username;break;default:throw new Error("Invalid option for get: '"+this.options.get+"'.")}return o=t+"/"+e,null!=this.options.limit&&(o+="&count="+this.options.limit),o+="&callback=instafeedCache"+this.unique+".parse"},t.prototype._genKey=function(){var t=new Date;return[t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours()].join("")},t.prototype._makeTemplate=function(t,e){var o,n,i,r,s;for(n=/(?:\{{2})([\w\[\]\.]+)(?:\}{2})/,o=t;n.test(o);)i=o.match(n)[1],r=null!=(s=this._getObjectProperty(e,i))?s:"",o=o.replace(n,""+r);return o},t.prototype._getObjectProperty=function(t,e){var o,n;for(n=(e=e.replace(/\[(\w+)\]/g,".$1")).split(".");n.length;){if(o=n.shift(),null==t||!(o in t))return null;t=t[o]}return t},t.prototype._sortBy=function(t,e,o){var n;return n=function(t,n){var i,r;return i=this._getObjectProperty(t,e),r=this._getObjectProperty(n,e),o?i>r?1:-1:i<r?1:-1},t.sort(n.bind(this)),t},t.prototype._filter=function(t,e){var o,n,i,r;for(o=[],n=function(t){if(e(t))return o.push(t)},i=0,r=t.length;i<r;i++)n(t[i]);return o},t}(),(null!==e?e:window).Instafeed=t,t})?o.apply(e,n):o)||(t.exports=i)},2092:function(t,e,o){var n=new(o(1056))({get:"username",username:"nomademcz",limit:4,resolution:"standard_resolution",template:'<a href="{{model.images.standard_resolution.url}}" class="imgbox" data-rel="gallery" title="{{caption}}"><div style="background-image: url({{model.images.standard_resolution.url}});" title="{{caption}}"><img src="{{model.images.standard_resolution.url}}" hidden><div class="caption">{{caption}}</div></div></a>'});function i(t,e){for(var o=0;o<t.length;o++)t[o].intersectionRatio>0&&!t[o].target.children.length&&n.run()}$(document).ready((function(){var t=new IntersectionObserver(i,{rootMargin:"300px 0px 300px 0px"}),e=document.querySelector("#instafeed");t.observe(e)}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.