1"use strict";(self.webpackChunkbenchmade_theme=self.webpackChunkbenchmade_theme||[]).push([[3484],{6488:(e,n,t)=>{t.d(n,{Z:()=>c});var r=t(885),o=t(6400),u=t(396);function c(e){var n=e.onIntersect,t=(0,u.sO)(null);return(0,u.d4)((function(){var e=t.current,o=new IntersectionObserver((function(e){(0,r.Z)(e,1)[0].isIntersecting&&n()}),{rootMargin:"0px",threshold:1,root:null});return e&&o.observe(e),function(){e&&o.unobserve(e)}}),[n]),(0,o.h)("div",{"aria-hidden":!0,ref:t})}},7917:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Z});var r=t(2982),o=t(4925),u=t(5861),c=t(885),a=t(4687),i=t.n(a),s=t(6400),l=t(396),d=t(5509),f=t(174),p=t(5175),v=t(6488),h=t(8308),b=t(3606),x=["products"],g=new d.default;const Z=function(e,n){var t=function(){var e=(0,l.eJ)(),t=(0,c.Z)(e,2),a=t[0],d=t[1],Z=(0,l.eJ)([]),w=(0,c.Z)(Z,2),k=w[0],y=w[1],m=(0,l.eJ)(),I=(0,c.Z)(m,2),O=I[0],P=I[1],C=(0,l.eJ)(),j=(0,c.Z)(C,2),J=j[0],N=j[1],q=window.btoa("gid://shopify/Collection/".concat(n.collectionId)),M=(0,l.I4)(function(){var e=(0,u.Z)(i().mark((function e(n,t){var r,u,c,a,s,l,d,p,v,Z,w,k;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.request({query:f.sZ,variables:{id:n,cursor:t}});case 2:return s=e.sent,e.next=5,null==s||null===(r=s.data)||void 0===r||null===(u=r.node)||void 0===u||null===(c=u.products)||void 0===c?void 0:c.pageInfo;case 5:if(e.t0=e.sent,e.t0){e.next=8;break}e.t0={};case 8:if(l=e.t0,d=l.endCursor,p=l.hasNextPage){e.next=13;break}return e.abrupt("return",{hasNextPage:p});case 13:return v=(null==s||null===(a=s.data)||void 0===a?void 0:a.node)||{},Z=v.products,w=(0,o.Z)(v,x),k=(0,h.qx)((0,b.F)((null==Z?void 0:Z.edges)||[])),e.abrupt("return",{collection:w,products:k,endCursor:d,hasNextPage:p});case 16:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),[]),S=(0,l.I4)(function(){var e=(0,u.Z)(i().mark((function e(n){var t,o,u,c,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return P(n),e.next=3,M(q,n);case 3:if(t=e.sent,o=t.endCursor,u=t.hasNextPage,c=t.products,a=t.collection,null!=c&&c.length){e.next=10;break}return e.abrupt("return");case 10:u&&N(o),d(a),y((function(e){return[].concat((0,r.Z)(e),(0,r.Z)(c))}));case 13:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),[q,M]);(0,l.d4)((function(){S()}),[S]);var B=(0,l.I4)((function(){J&&J!==O&&S(J)}),[O,S,J]);return(0,s.h)(s.HY,null,(null==k?void 0:k.length)>0&&(0,s.h)(p.Z,{collectionProducts:k,headerMetafields:null==a?void 0:a.headerMetafields,title:null==a?void 0:a.title,description:null==a?void 0:a.descriptionHtml,contentBlocks:n.contentBlocks,isSearchPage:!0}),(0,s.h)(v.Z,{onIntersect:B}))},a=function(){var n=(0,u.Z)(i().mark((function n(){return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:(0,s.sY)((0,s.h)(t,null),e);case 1:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();a()}},4925:(e,n,t)=>{function r(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},u=Object.keys(e);for(r=0;r<u.length;r++)t=u[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)t=u[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}t.d(n,{Z:()=>r})}}]); 2//# sourceMappingURL=347437fc14db9b71223c.js.map
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.