1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{86580:function(e,s,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...products]",function(){return l(39940)}])},39940:function(e,s,l){"use strict";l.r(s),l.d(s,{__N_SSP:function(){return k}});var i=l(85893),d=l(9008),n=l.n(d);l(5152);var a=l(59854),r=l.n(a),c=l(30056),t=l(34051),o=l(31555),u=l(10682),m=l(35005),h=l(67294),p=l(9473),x=l(10615),v=l(86529);l(1538);var j=l(41664),N=l.n(j),g=l(11163);l(44307);var b=l(33004),_=l(92726),f=l(22929),y=l(11768);l(84136),l(50384);let w={desktop:{breakpoint:{max:3e3,min:1024},items:2,slidesToSlide:2},tablet:{breakpoint:{max:1024,min:770},items:2,slidesToSlide:2},mobile:{breakpoint:{max:770,min:0},items:1,slidesToSlide:1}};var k=!0;s.default=function(e){var s,l,d,a,j,k,F,C,S,Z,A;let{singleProduct:P,pageSlug:T}=e,{related_product:q,product:H}=P;console.log(P);let I=(0,p.I0)(),O=(0,_.G)(b.R5.HG_TOKEN),[$,B]=(0,h.useState)(0),[G,E]=(0,h.useState)(1),[R,W]=(0,h.useState)(!1),D=(0,g.useRouter)();(0,p.v9)(e=>({loading:e.cart.cartAfterLogin.isFetching,wish:e.wishlist.wishList.isFetching})),null==H||null===(s=H.unique_label)||void 0===s||s.split("/"),D.isReady&&D.asPath.substring(1);let L=e=>{let s={product_id:null==H?void 0:H.product_id,quantity:e};if(O)I((0,f.NU)(s)).then(e=>{e.type===f.NU.fulfilled.type?(0,b.h4)(e.payload.message,e.payload.success):e.type===f.NU.rejected.type&&(0,b.h4)(e.payload.error,e.payload.success)});else{let e={params:s,url:"/cart/save"},l=localStorage.getItem("cart_id");l&&(e.url="/cart/save?cart_id=".concat(l)),I((0,f.I9)(e)).then(e=>{e.type===f.I9.fulfilled.type?((0,b.h4)(e.payload.message,e.payload.success),l||localStorage.setItem("cart_id",e.payload.data.cart.id)):e.type===f.I9.rejected.type&&(0,b.h4)(e.payload.error,e.payload.success)})}},M=()=>{let e={product_id:null==H?void 0:H.product_id};I((0,y.p8)(e)).then(e=>{e.type===y.p8.fulfilled.type?(0,b.h4)(e.payload.message,e.payload.success):e.type===y.p8.rejected.type&&(0,b.h4)(e.payload.error,e.payload.success)})},U=e=>{B(e)},K=()=>{E(G+1)},X=()=>{G>1&&E(G-1)};return Array.from({length:6}),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n(),{children:(0,i.jsx)("title",{children:["Housing Guards",null].includes(null==T?void 0:T.title)?null!==(A=null==H?void 0:H.product_name)&&void 0!==A?A:"404 Not Found | HousingGuards":null==T?void 0:T.title})}),(0,i.jsx)("main",{className:"".concat(r().main),children:(0,i.jsxs)(c.Z,{children:[(0,i.jsx)("section",{className:"breadcrumb-wrapper",children:(0,i.jsx)("div",{className:"container-xxl",children:(0,i.jsx)(t.Z,{children:(0,i.jsx)(o.Z,{lg:12,children:(0,i.jsx)("nav",{"aria-label":"breadcrumb",children:(0,i.jsxs)("ul",{className:"breadcrumb m-0",children:[(0,i.jsx)("li",{className:"breadcrumb-item",children:(0,i.jsx)(N(),{href:"/",children:"Home"})}),D.isReady&&(null===(l=D.query)||void 0===l?void 0:null===(d=l.products)||void 0===d?void 0:d.map((e,s)=>{var l,d,n,a,r,c,t,o;let u=(null===(l=null===(d=null===(n=D.query)||void 0===n?void 0:n.products.slice(0,s+1))||void 0===d?void 0:d.join("/"))||void 0===l?void 0:l.endsWith(".html"))?null===(a=null===(r=D.query)||void 0===r?void 0:r.products.slice(0,s+1))||void 0===a?void 0:a.join("/"):(null===(c=D.query)||void 0===c?void 0:c.products.slice(0,s+1).join("/"))+".html";return(0,i.jsxs)("li",{className:"breadcrumb-item",children:[(0,i.jsxs)(N(),{href:"/".concat((null===(t=D.query)||void 0===t?void 0:t.products.length)-1==s?u:"supplies/"+u.replace("departments","")),children:[" ",null===(o=String(e))||void 0===o?void 0:o.replace(".html","")]})," "]})}))]})})})})})}),(0,i.jsx)(u.Z,{children:(0,i.jsx)("section",{className:"wrapper padding-1",children:(0,i.jsx)("div",{className:"container-fluid",children:H?(0,i.jsxs)(t.Z,{className:"row gap-5 justify-content-evenly",children:[(0,i.jsx)(o.Z,{lg:5,children:(0,i.jsxs)("div",{className:"product-items-container",children:[(0,i.jsx)(x.lr,{onChange:U,showIndicators:!1,showStatus:!1,className:"new-product-carousel",children:null==H?void 0:H.file_names.map((e,s)=>(0,i.jsx)("img",{style:{maxHeight:"400px",objectFit:"contain"},src:(0,b.FB)(e),alt:"img"}))}),H&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("p",{children:[" ",null===(a=H[$])||void 0===a?void 0:a.caption]})})]})}),(0,i.jsxs)(o.Z,{lg:6,children:[(0,i.jsx)(i.Fragment,{children:H&&(0,i.jsxs)("div",{className:"single-products-details",children:[(0,i.jsx)("h2",{className:"product-title-01 Bold",children:H.product_name}),(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",{children:"Model"}),(0,i.jsx)("li",{children:"|"}),(0,i.jsx)("li",{children:null==H?void 0:H.sku})]}),(0,i.jsxs)("div",{className:"product-price-01",children:[(0,i.jsxs)("h3",{children:[" ","number"==typeof(null==H?void 0:H.promotion_cost_customer)?(null==H?void 0:H.promotion_cost_customer)>(null==H?void 0:H.regular_cost)?" $".concat(null===(j=H.regular_cost)||void 0===j?void 0:j.toFixed(2)):" $".concat(null==H?void 0:null===(k=H.promotion_cost_customer)||void 0===k?void 0:k.toFixed(2)):" $".concat(null===(F=H.regular_cost)||void 0===F?void 0:F.toFixed(2))]}),(0,i.jsxs)("h5",{children:[" ","number"==typeof H.promotion_cost_customer?(null==H?void 0:H.promotion_cost_customer)>(null==H?void 0:H.regular_cost)?" $".concat(null==H?void 0:null===(S=H.promotion_cost_customer)||void 0===S?void 0:S.toFixed(2)):" $".concat(null===(C=H.regular_cost)||void 0===C?void 0:C.toFixed(2)):""]}),(0,i.jsxs)("span",{className:"fs-5 text-success bolder badge",children:["HG Pro: $ ",null==H?void 0:null===(Z=H.member_cost)||void 0===Z?void 0:Z.toFixed(2)]})]}),(0,i.jsx)("div",{className:"d-block mt-4 mb-4",children:(0,i.jsx)("hr",{})}),(0,i.jsx)("div",{className:"",children:(0,i.jsxs)(t.Z,{className:"gap-3 align-items-center gap-sm-0",children:[(0,i.jsx)(o.Z,{xs:12,sm:4,lg:4,children:(0,i.jsx)("div",{className:"d-flex justify-content-center",children:(0,i.jsxs)("div",{className:"cart-plus-adding-01",children:[(0,i.jsx)("div",{className:"d-block",children:(0,i.jsx)("button",{className:"cart-plus-minus-01 pointer-event-none",onClick:X,children:(0,i.jsx)("i",{className:"fa-solid fa-minus"})})}),(0,i.jsx)("div",{className:"d-block",children:(0,i.jsx)("input",{type:"number",className:"cart-plus-adding-input-01",minlength:"1",onKeyPress:e=>(0,b.iM)(e),onChange:e=>E(parseInt(e.target.value)),value:G})}),(0,i.jsx)("div",{className:"d-block",children:(0,i.jsx)("button",{className:"cart-plus-minus-01",onClick:K,children:(0,i.jsx)("i",{className:"fa-solid fa-plus"})})})]})})}),(0,i.jsx)(o.Z,{xs:12,sm:4,md:4,lg:4,children:(0,i.jsx)(m.Z,{className:"btn btn-green addcart w-100",onClick:e=>L(G),children:"Add to Cart"})}),(0,i.jsx)(o.Z,{xs:12,sm:4,md:4,lg:4,children:O?(0,i.jsx)(m.Z,{className:"btn btn-green addwishlist-enable w-100",onClick:e=>M(e),children:"Add to Wishlist"}):(0,i.jsx)(m.Z,{className:"btn btn-green addwishlist w-100",onClick:e=>M(e),disabled:!O,children:"Add to Wishlist"})})]})}),(0,i.jsx)("div",{className:"d-block mt-4 mb-4",children:(0,i.jsx)("hr",{})})]})}),(null==H?void 0:H.description)&&(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"fs-5 Bold",children:"Product Overview"}),(0,i.jsx)("div",{className:"prod",children:(0,i.jsx)("span",{className:"mt-3",style:{textAlign:"justify"},dangerouslySetInnerHTML:{__html:null==H?void 0:H.description}})})]})]}),(null==q?void 0:q[0])&&(0,i.jsx)(o.Z,{xs:12,children:(0,i.jsxs)("div",{className:"d-block",children:[(0,i.jsx)("div",{className:"default-content-1 mb-3",children:(0,i.jsx)("h6",{className:"fw-bold fs-6 Bold",children:"Related Products"})}),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(v.default,{rewind:!1,rewindWithAnimation:!1,rtl:!1,shouldResetAutoplay:!0,sliderClass:"",swipeable:!0,additionalTransfrom:0,arrows:!0,autoPlaySpeed:3e3,centerMode:!1,dotListClass:"",draggable:!1,focusOnSelect:!1,itemClass:"",keyBoardControl:!0,minimumTouchDrag:80,pauseOnHover:!0,renderArrowsWhenDisabled:!1,renderButtonGroupOutside:!1,renderDotsOutside:!1,className:"pb-4",responsive:w,ssr:!0,containerClass:"container",removeArrowOnDeviceType:["tablet","mobile"],children:null==q?void 0:q.map((e,s)=>{var l,d;return(0,i.jsx)("div",{className:"border-dark rounded-1",children:(0,i.jsxs)("div",{className:"row mx-3 single-cards-product roun
1ded-1",children:[(0,i.jsx)(N(),{href:"/".concat(e.unique_label),className:"text-center col-12 col-sm-5 ",children:(0,i.jsx)("div",{className:" p-2 text-center",children:(0,i.jsx)("img",{src:(0,b.FB)(e.file_name),alt:e.alt})})}),(0,i.jsxs)("div",{className:"p-3 col-12 col-sm-7",children:[(0,i.jsx)(N(),{href:"/".concat(e.unique_label),children:(0,i.jsx)("h4",{children:e.product_name})}),(0,i.jsxs)("div",{className:"price-card-2 flex-wrap",children:[(0,i.jsxs)("h5",{className:"text-dark",children:[(0,i.jsx)("span",{className:"fs-5 text-dark",children:"$"}),null===(l=e.regular_cost)||void 0===l?void 0:l.toFixed(2)]}),(0,i.jsxs)("h5",{className:"fs-6 fs-sm-5",children:[(0,i.jsxs)("span",{className:"fs-6 fs-sm-5 text-success",children:[" ","HG Pro: $"]}),null===(d=e.member_cost)||void 0===d?void 0:d.toFixed(2)]})]})]})]})},s)})})})]})})]}):(0,i.jsx)("center",{className:"text-center",children:"404 Not Found"})})})})]})})]})}}},function(e){e.O(0,[9555,4507,3841,8650,8939,785,993,7134,8352,1601,56,9774,2888,179],function(){return e(e.s=86580)}),_N_E=e.O()}]);
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.