(window.webpackJsonp=window.webpackJsonp||[]).push([[30,10,12],{394:function(t,e,r){t.exports=r.p+"img/cross.8ba873a.png"},420:function(t,e,r){"use strict";r.r(e);r(39),r(96);var n={props:{categories:{type:Array,default:function(){return[]}},articles:{type:Array,default:function(){return[]}},loadingCategory:{type:Boolean,default:!1},loadingArticles:{type:Boolean,default:!1},articleOptionsPage:{type:Number,default:function(){return null}},articleOptionsLastPage:{type:Number,default:function(){return null}}},data:function(){return{active:null,cross_id:null}},methods:{filterCategory:function(t){t?this.$emit("filterCategory",t):this.$emit("filterCategory")},activeId:function(t){this.active=t,this.cross_id=t},activeCross:function(t){this.active=null,this.cross_id=null}}},o=r(13),component=Object(o.a)(n,(function(){var t,e=this,n=e._self._c;return n("div",{staticClass:"px-2 sm:px-4 bg-[#17233D]"},[n("div",{staticClass:"xl:px-[170px] lg:px-[150px] md:px-[100px] sm:px-[50px] flex flex-col lg:flex-row justify-between items-center lg:items-start gap-12 mx-auto px-4 py-10 md:py-28 text-white"},[n("div",{staticClass:"max-w-sm"},[n("h1",{staticClass:"text-[1.3rem] font-bold mb-4 md:text-[3vw] text-[#F62A66]"},[e._v("\n INSIGHT\n ")]),e._v(" "),e.loadingCategory?n("Spinner"):n("div",{staticClass:"flex flex-col items-start gap-3"},e._l(e.categories,(function(t,o){return n("div",{key:o,staticClass:"flex gap-2"},[n("p",{on:{click:function(r){return e.filterCategory(t.id)}}},[n("span",{staticClass:"cursor-pointer",class:"".concat(t.id===e.active?"opacity-100":"opacity-20"),on:{click:function(r){return e.activeId(t.id)}}},[e._v("#"+e._s(t.name))])]),e._v(" "),n("div",{class:"".concat(t.id===e.cross_id?"visible w-8":"invisible"),on:{click:function(r){return e.activeCross(t.id)}}},[n("img",{staticClass:"w-6 h-6 cursor-pointer",attrs:{src:r(394),alt:"cross mark"},on:{click:e.filterCategory}})])])})),0)],1),e._v(" "),n("div",[e.loadingCategory?n("Spinner"):n("div",e._l(e.articles,(function(article,t){return n("div",{key:article.id},[n("InsightCard",{attrs:{article:article,index:t,"hover-color":"#F62A66"}})],1)})),0),e._v(" "),e.articleOptionsPage===e.articleOptionsLastPage||0===(null===(t=e.articles)||void 0===t?void 0:t.length)?n("div"):n("div",[n("PrimaryButton",{attrs:{label:"More"},on:{"on-click":function(t){return e.$emit("more-articles")}}})],1)],1)])])}),[],!1,null,null,null);e.default=component.exports},436:function(t,e,r){"use strict";r.r(e);var n=r(11),o=(r(55),{data:function(){return{email:"",success:"",error:[]}},mounted:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$recaptcha.init();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})))()},beforeDestroy:function(){this.$recaptcha.destroy()},methods:{onSubmit:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$recaptcha.execute();case 3:return r=e.sent,n={email:t.email,"g-recaptcha-response":r},e.next=7,t.$axios.post("/subscribes",n);case 7:t.email="",t.success="Thanks for your subscribtion",e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),o=e.t0.response.data.message,t.error=o.email;case 15:case"end":return e.stop()}}),e,null,[[0,11]])})))()}}}),c=r(13),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"px-2 sm:px-4 bg-[#8B1639]"},[e("div",{staticClass:"xl:px-[170px] lg:px-[150px] md:px-[100px] sm:px-[50px] mx-auto px-4 py-10 md:py-16 text-white"},[t.success.length?e("div",{staticClass:"text-center flex items-center p-4 mb-4 text-green-800 rounded-lg bg-green-50 dark:bg-gray-800 dark:text-green-400",attrs:{id:"alert-3",role:"alert"}},[e("span",{staticClass:"sr-only"},[t._v("Info")]),t._v(" "),e("div",{staticClass:"ml-3 text-lg font-medium"},[t._v("\n "+t._s(t.success)+"\n ")]),t._v(" "),e("button",{staticClass:"ml-auto -mx-1.5 -my-1.5 bg-green-50 text-green-500 rounded-lg focus:ring-2 focus:ring-green-400 p-1.5 hover:bg-green-200 inline-flex items-center justify-center h-8 w-8 dark:bg-gray-800 dark:text-green-400 dark:hover:bg-gray-700",attrs:{type:"button","data-dismiss-target":"#alert-3","aria-label":"Close"},on:{click:function(e){t.success=""}}},[e("span",{staticClass:"sr-only"},[t._v("Close")]),t._v(" "),e("svg",{staticClass:"w-3 h-3",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"}},[e("path",{attrs:{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"}})])])]):t._e(),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"max-w-md mt-8"},[e("form",{attrs:{"aria-labelledby":"newsletter-headline"},on:{submit:function(e){return e.preventDefault(),t.onSubmit.apply(null,arguments)}}},[e("div",{staticClass:"sm:flex items-center"},[e("div",{staticClass:"w-full"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.email,expression:"email"}],staticClass:"w-full px-5 py-3 bg-[#0000001A] text-base leading-6 transition duration-150 ease-in-out rounded-[50px] appearance-none focus:outline-none sm:max-w-xs placeholder-[#FFFFFF] placeholder-opacity-30",attrs:{name:"EMAIL",type:"email",required:"required",placeholder:"Enter your email","aria-label":"Email address"},domProps:{value:t.email},on:{input:function(e){e.target.composing||(t.email=e.target.value)}}})]),t._v(" "),t._m(1)])]),t._v(" "),t.error.length>0?e("small",{staticClass:"text-[#FFF82C]"},[t._v(t._s(t.error[0]))]):t._e()])])])}),[function(){var t=this,e=t._self._c;return e("div",[e("span",{staticClass:"font-bold"},[t._v("#DON'T_MISS_OUT")]),t._v(" "),e("p",{staticClass:"flex items-center gap-1 text-[1rem] sm:text-[1.4rem] text-[#FFF82C] font-bold my-3 md:text-[3vw]"},[t._v("\n Hey, hold on!\n ")]),t._v(" "),e("p",{staticClass:"max-w-md"},[t._v('\n "Make sure to subscribe to our newsletters to stay updated on the latest industry news."\n ')])])},function(){var t=this._self._c;return t("div",{staticClass:"mt-3 sm:mt-0 sm:ml-3 sm:flex-shrink-0"},[t("button",{staticClass:"block px-5 bg-[#FFF82C] py-3 text-[#8B1639] transition duration-100 ease-in-out border border-transparent rounded-[50px] shadow-sm hover:opacity-90 focus:border-[#8B1639] focus:ring-2 focus:outline-none disabled:opacity-50 disabled:cursor-not-allowed",attrs:{type:"submit"}},[this._v("\n Subscribe\n ")])])}],!1,null,"19186732",null);e.default=component.exports},463:function(t,e,r){"use strict";r.r(e);var n=r(59),o=r(11),c=(r(55),r(80),r(420)),l=r(436),d={components:{Insight:c.default,NewsLetter:l.default},scrollToTop:!0,data:function(){return{articles:[],categories:[],categoryError:"",articleError:"",loadingArticles:!1,loadingCategory:!1,articleOptions:{page:1,last_page:0},category_id:""}},head:function(){return{title:"Insight | Binarylab",meta:[{hid:"title",name:"title",content:"Binarylab"},{hid:"description",name:"description",content:"Build idea into product : One stop destination for comprehensive software solutions."}]}},computed:{article_url:function(){return this.category_id?"/articles?page=".concat(this.articleOptions.page,"&category_id=").concat(this.category_id):"/articles?page=".concat(this.articleOptions.page,"&paginate=").concat(this.$config.insightPagination)}},created:function(){this.fetchCatrgories(),this.fetchArticles(this.article_url)},methods:{moreArticles:function(){0!==this.articleOptions.page&&this.articleOptions.page===this.articleOptions.last_page||(this.articleOptions.page++,this.fetchArticles(this.article_url))},filterCategory:function(t){this.articleOptions.page=1,this.articleOptions.last_page=0,this.articles=[],t.currentTarget?this.category_id="":(this.category_id=t,this.cross_id=t),this.fetchArticles(this.article_url)},fetchCatrgories:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var r,n,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t.loadingCategory=!0,e.next=4,t.$axios.get("/categories");case 4:r=e.sent.data,n=r.status,data=r.data,1===n&&(t.categories=data),t.loadingCategory=!1,e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.log(e.t0.message);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))()},fetchArticles:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function r(){var o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,e.loadingArticles=!0,r.next=4,e.$axios.get(t);case 4:o=r.sent.data,e.articles=[].concat(Object(n.a)(e.articles),Object(n.a)(o.data)),0===e.articleOptions.last_page&&(e.articleOptions.last_page=o.meta.last_page),e.loadingArticles=!1,r.next=13;break;case 10:r.prev=10,r.t0=r.catch(0),console.log(r.t0.message);case 13:case"end":return r.stop()}}),r,null,[[0,10]])})))()}}},m=r(13),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",[e("Insight",{attrs:{categories:t.categories,"loading-category":t.loadingCategory,"loading-articles":t.loadingArticles,articles:t.articles,"article-options-page":t.articleOptions.page,"article-options-last-page":t.articleOptions.last_page},on:{filterCategory:t.filterCategory,"more-articles":t.moreArticles}}),t._v(" "),e("NewsLetter")],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{Insight:r(420).default})}}]);