1(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{811:function(t,e,r){"use strict";r.r(e);var n=r(0),l=(r(19),r(12),r(6),{name:"SectionComparisonTable",props:{heading:{type:String,default:"Compare devices"},introContent:{type:String,default:""},footerContent:{type:String,default:""},showButton:{type:Boolean,default:!1},hideAi:{type:Boolean,default:!1}},data:function(){return{displaying:0,rows:[],devices:[],loaded:!1}},mounted:function(){this.getRows(),this.getDevices()},methods:{getDevices:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark(function e(){var r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,t.$axios.$post("/.netlify/functions/handle-swell/",{type:"content.devices"},{baseURL:window.location.origin});case 1:r=e.sent,t.devices=t.hideAi?r.filter(function(t){return!t.ai}):r,t.loaded=!0;case 2:case"end":return e.stop()}},e)}))()},getRows:function(){var t=[{property:"number_of_cameras",title:"Cameras (Up to)"},{property:"storage",title:"Storage"},{property:"days_of_storage",title:"Days of Storage (Up to)"},{property:"ai",title:"Artificial Intelligence"},{property:"setup_included",title:"Warranty + Remote Setup Included"}];this.rows=this.hideAi?t.filter(function(t){return"ai"!==t.property}):t}}}),o=r(1),component=Object(o.a)(l,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"container flex flex-col gap-4 bg-primary-lighter p-8 lg:py-16 lg:px-20"},[t.introContent?r("div",[r("h2",{staticClass:"text-xl lg:text-2xl mb-2"},[t._v(t._s(t.heading))]),t._v(" "),r("p",{staticClass:"max-w-128"},[t._v(t._s(t.introContent))])]):t._e(),t._v(" "),r("transition",{attrs:{name:"fade"}},[r("div",{staticClass:"overflow-x-auto",attrs:{tabindex:"0"}},[t.loaded?r("table",{staticClass:"w-full md:table-fixed",attrs:{"aria-live":"polite","aria-labelledby":t.introContent?"comparison-table-heading":null}},[t.introContent?t._e():r("caption",{staticClass:"text-xl lg:text-2xl font-normal text-left"},[t._v(t._s(t.heading))]),t._v(" "),r("thead",[r("tr",[r("td",{staticClass:"p-4 border-b-2"}),t._v(" "),t._l(t.devices.map(function(t){return t.title}),function(title,e){return r("th",{key:e,staticClass:"p-4 border-b-2 text-left",attrs:{scope:"col"}},[t._v("\n "+t._s(title)+"\n ")])})],2)]),t._v(" "),r("tbody",t._l(t.rows,function(e){return r("tr",{key:e.property},[r("th",{staticClass:"p-6 border-b text-left",attrs:{scope:"row"}},[r("span",{staticClass:"block w-full border-b border-dotted border-accent-default"},[t._v("\n "+t._s(e.title)+"\n ")])]),t._v(" "),t._l(t.devices,function(n,l){return r("td",{key:l,staticClass:"p-6 border-b",attrs:{"data-index":l}},[!0===n[e.property]?r("div",[r("svg",{staticClass:"w-10 h-10",attrs:{role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","stroke-width":"2"}},[r("title",[t._v("Yes")]),r("path",{attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm4.768 9.14a1 1 0 1 0-1.536-1.28l-4.3 5.159-2.225-2.226a1 1 0 0 0-1.414 1.414l3 3a1 1 0 0 0 1.475-.067l5-6z"}})])]):!1===n[e.property]?r("span",{staticClass:"block w-full"},[t._v("\n â\n ")]):r("span",{staticClass:"block w-full"},[t._v("\n "+t._s(n[e.property])+"\n ")])])})],2)}),0)]):t._e()])]),t._v(" "),t.footerContent?r("div",[r("p",{staticClass:"max-w-128"},[t._v(t._s(t.footerContent))])]):t._e(),t._v(" "),t.loaded?t._e():r("div",{staticClass:"w-full relative"},[r("table",{staticClass:"w-full mt-12 table-fixed"},[t._m(0),t._v(" "),r("tbody",t._l(t.rows,function(e){return r("tr",{key:e.property},[t._m(1,!0)])}),0)]),t._v(" "),t._m(2)]),t._v(" "),t.showButton?r("div",{staticClass:"w-full mt-12 md:max-w-64"},[r("BaseButton",{attrs:{type:"button_primary",link:"/shop",label:"Shop Now",fit:"full"}})],1):t._e()],1)},[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("thead",[r("tr",[r("th",{staticClass:"w-full py-4 text-left"},[r("p",{staticClass:"block bg-primary-dark opacity-10 rounded-full"},[t._v("Â ")])])])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("td",{staticClass:"py-6"},[r("p",{staticClass:"block bg-primary-dark opacity-10 rounded-full"},[t._v("Â ")])])},function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"center-xy absolute opacity-50"},[r("span",[t._v("loading...")])])}],!1,null,null,null);e.default=component.exports;installComponents(component,{BaseButton:r(88).default})}}]);
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.