Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bentoproject/list

Package Overview
Dependencies
Maintainers
3
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bentoproject/list - npm Package Compare versions

Comparing version 1.2203221937.0 to 1.2203231914.0

2

dist/web-component.js
;
var r=Object.create,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,i=function(r){return e(r,"__esModule",{value:!0})},a=function(a){return function(r,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var a,c=t(o),f=0,l=c.length;f<l;f++)a=c[f],u.call(r,a)||"default"===a||e(r,a,{get:function(r){return o[r]}.bind(null,a),enumerable:!(i=n(o,a))||i.enumerable});return r}(i(e(null!=a?r(o(a)):{},"default",a&&a.__esModule&&"default"in a?{get:function(){return a.default},enumerable:!0}:{value:a,enumerable:!0})),a)};function c(r,e){return(c=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function f(r){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function l(r){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function s(r,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}!function(r,n){for(var t in i(r),n)e(r,t,{get:n[t],enumerable:!0})}(exports,{defineElement:function(){return Y}});var v=a(require("@bentoproject/core"));function b(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function d(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function p(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){b(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}function m(r,e,n,t,o,u,i){try{var a=r[u](i),c=a.value}catch(r){return void n(r)}a.done?e(c):Promise.resolve(c).then(t,o)}function y(r){return function(){var e=this,n=arguments;return new Promise((function(t,o){var u=r.apply(e,n);function i(r){m(u,t,o,i,a,"next",r)}function a(r){m(u,t,o,i,a,"throw",r)}i(void 0)}))}}var h=a(require("@bentoproject/core")),g=a(require("@bentoproject/core")),j=a(require("@bentoproject/core")),w=a(require("@bentoproject/core"));function O(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function M(r,e){if(r){if("string"==typeof r)return O(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(r,e):void 0}}function k(r,e){return function(r){if(Array.isArray(r))return r}(r)||function(r,e){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=n){var t,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(t=n.next()).done)&&(u.push(t.value),!e||u.length!==e);i=!0);}catch(r){a=!0,o=r}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}}(r,e)||M(r,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Array.isArray;var S=Object.prototype;function x(r){return(r.ownerDocument||r).defaultView}function R(r){return r.parent&&r.parent!=r}function q(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=n.needsRootBounds,o=n.rootMargin,u=n.threshold,i=R(e)&&(t||o)?e.document:void 0;return new e.IntersectionObserver(r,{threshold:u,root:i,rootMargin:o})}S.hasOwnProperty,S.toString;var A=new WeakMap,P=new WeakMap;function I(r){for(var e=new Set,n=r.length-1;n>=0;n--){var t=r[n],o=t.target;if(!e.has(o)){e.add(o);var u=P.get(o);if(u)for(var i=0;i<u.length;i++)(0,u[i])(t)}}}var T=a(require("@bentoproject/core")),B=a(require("@bentoproject/core"));function E(r){return function(r){if(Array.isArray(r))return O(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||M(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var L=a(require("@bentoproject/core")),C=a(require("@bentoproject/core")),G=a(require("@bentoproject/core")),J={loading:!1,error:null,pages:[],hasMore:!0},K={fetchJson:function(r,e){return this.fetch(r,e).then((function(r){return r.json()}))},fetch:function(r,e){return y(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,self.fetch(r,e);case 2:if((t=n.sent).ok){n.next=5;break}throw new Error(t.statusText);case 5:return n.abrupt("return",t);case 6:case"end":return n.stop()}}),n)})))()}},N={loadMoreSpinner:"load-more-spinner-cc33818",loadMoreIcon:"load-more-icon-cc33818"},U=("url('data:image/svg+xml;charset=utf-8,".concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><linearGradient id="grad"><stop stop-color="rgb(51,51,51)" stop-opacity=".75"></stop><stop offset="100%" stop-color="rgb(51,51,51)" stop-opacity="0"></stop></linearGradient></defs><path d="M11,4.4 A18,18, 0,1,0, 38,20" fill="none" stroke="url(%23grad)" stroke-width="1.725"></path></svg>',"')"),"url('data:image/svg+xml;charset=utf-8,".concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"></path></svg>',"')"),["src","fetchJson","itemsKey","maxItems","loadMore","loadMoreBookmark","viewportBuffer","template","wrapperTemplate","loadMoreTemplate","loadingTemplate","errorTemplate"]),W=function(r){return h.createElement("div",null,String(r))},_=function(r){return h.createElement("div",null,r)},z=function(r,e){return h.createElement("div",null,"Unable to Load More ",h.createElement("button",{"load-more-retry":!0},h.createElement("label",null,h.createElement("span",{class:r.loadMoreIcon})," Retry")))},D=function(){return h.createElement("div",null,h.createElement("button",{"load-more-button":!0},h.createElement("label",null,"See More")))},H=function(r){return h.createElement("div",null,h.createElement("span",{"aria-label":"Loading",class:r.loadMoreSpinner}))};function V(r,e){return e.split(".").reduce((function(r,e){return r&&""!==e?r[e]:r}),r)}var $=(0,j.forwardRef)((function(r,e){var n,t=r.src,o=void 0===t?null:t,u=r.fetchJson,i=void 0===u?K.fetchJson:u,a=r.itemsKey,c=void 0===a?"items":a,f=r.maxItems,s=void 0===f?0:f,v=r.loadMore,b=void 0===v?"none":v,d=r.loadMoreBookmark,m=void 0===d?"load-more-src":d,j=r.viewportBuffer,O=void 0===j?2:j,M=r.template,S=void 0===M?W:M,R=r.wrapperTemplate,$=void 0===R?_:R,Q=r.loadMoreTemplate,X=void 0===Q?D:Q,Y=r.loadingTemplate,Z=void 0===Y?H:Y,rr=r.errorTemplate,er=void 0===rr?z:rr,nr=function(r,e){if(null==r)return{};var n,t,o={},u=Object.keys(r);for(t=0;t<u.length;t++)n=u[t],e.indexOf(n)>=0||(o[n]=r[n]);return o}(r,U),tr=(0,B.useAmpContext)().renderable,or=(0,g.useMemo)((function(){var r=Math.floor(100*O);return{rootMargin:"0% 0% ".concat(r,"% 0%"),threshold:0}}),[O]),ur=(0,g.useRef)(null),ir=function(r,e){var n=k((0,T.useState)(!1),2),t=n[0],o=n[1];return(0,T.useEffect)((function(){var n=r.current;if(n)return function(r,e,n){var t=x(r);if(n){var o=q((function(r){e(r[r.length-1])}),t,n);return o.observe(r),function(){o.unobserve(r)}}var u=A.get(t);u||A.set(t,u=q(I,t));var i=P.get(r);return i||(i=[],P.set(r,i)),i.push(e),u.observe(r),function(){!function(r,e){var n,t,o,u=P.get(r);if(u&&(t=e,-1!=(o=(n=u).indexOf(t))&&(n.splice(o,1),1)&&!u.length)){var i=x(r),a=A.get(i);null==a||a.unobserve(r),P.delete(r)}}(r,e)}}(n,(function(r){o(r.isIntersecting)}),e)}),[r,e]),t}(ur,or),ar=function(r){var e=r.fetchPage,n=r.getNextPageParam,t=function(r){var e=(0,G.useRef)(!1);(0,G.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]);var n=k((0,G.useState)(r),2),t=n[0],o=n[1];return[t,(0,G.useCallback)((function(r){e.current&&o(r)}),[o])]}(J),o=k(t,2),u=o[0],i=o[1],a=(0,C.useValueRef)({fetchPage:e,getNextPageParam:n,state:u}),c=(0,L.useRef)(0),f=(0,L.useCallback)(y(regeneratorRuntime.mark((function r(){var e,n,t,o,u,f,l,s,v,b,d=arguments;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e=d.length>0&&void 0!==d[0]&&d[0],n=a.current,t=n.fetchPage,o=n.getNextPageParam,u=n.state,e||!u.loading){r.next=4;break}return r.abrupt("return");case 4:return f=++c.current,i((function(r){return p(p({},r),{},{loading:!0})})),l=e?[]:u.pages,s=l.length?l[l.length-1]:void 0,r.prev=8,r.next=11,t({pageParam:s?o(s):void 0});case 11:if(v=r.sent,f===c.current){r.next=14;break}return r.abrupt("return");case 14:b=o(v),i({loading:!1,error:null,pages:[].concat(E(l),[v]),hasMore:null!=b}),r.next=23;break;case 18:if(r.prev=18,r.t0=r.catch(8),f===c.current){r.next=22;break}return r.abrupt("return");case 22:i((function(e){return p(p({},e),{},{loading:!1,error:r.t0})}));case 23:case"end":return r.stop()}}),r,null,[[8,18]])}))),[a,i]),l=(0,L.useCallback)((function(){return f(!0)}),[f]);return p(p({},u),{},{loadMore:f,reset:l})}({fetchPage:(n=y(regeneratorRuntime.mark((function r(e){var n,t,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.pageParam,t=void 0===n?o:n,tr){r.next=3;break}return r.abrupt("return",null);case 3:return r.next=5,i(t);case 5:return u=r.sent,r.abrupt("return",u);case 7:case"end":return r.stop()}}),r)}))),function(r){return n.apply(this,arguments)}),getNextPageParam:function(r){return function(r,e){return V(r,e)}(r,m)}}),cr=ar.error,fr=ar.hasMore,lr=ar.loadMore,sr=ar.loading,vr=ar.pages,br=ar.reset;(0,g.useEffect)((function(){br()}),[o,tr,m,br]);var dr=tr&&"auto"===b&&ir&&!sr&&fr;(0,g.useEffect)((function(){dr&&lr()}),[dr,lr]);var pr=(0,g.useMemo)((function(){var r=vr.flatMap((function(r){return function(r,e){if(!r)return[];var n=V(r,e);return n?(Array.isArray(n)||(n=[n]),n):[]}(r,c)}));return s>0&&r.length>s&&(r=r.slice(0,s)),r.map((function(r,e){var n=S(r);return n&&"object"===l(n)&&"string"==typeof n.__html&&(n=h.createElement("span",{dangerouslySetInnerHTML:n})),F(n,{"key":e,"role":"listitem"})}))}),[vr,c,s,S]),mr=sr,yr=0!==pr.length,hr="manual"===b&&fr&&!sr;(0,g.useImperativeHandle)(e,(function(){return{refresh:br}}),[br]);var gr=N;return h.createElement(w.ContainWrapper,p(p({"aria-live":"polite"},nr),{},{onClick:function(r){r.target.closest("[load-more-button], [load-more-retry]")&&lr()}}),h.createElement(g.Fragment,{"test-id":"contents"},yr&&F($(pr),{"role":"list"}),mr&&Z(gr),hr&&X(gr),cr&&er(gr,cr),"auto"===b&&h.createElement("span",{ref:ur})))}));function F(r,e){return(0,g.isValidElement)(r)?(0,g.cloneElement)(r,p(p({},e),r.props)):r}$.displayName="List";var Q=function(r){!function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&c(r,e)}(o,v.PreactBaseElement);var e,n,t=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}(),function(){var r,t=f(e);if(n){var o=f(this).constructor;r=Reflect.construct(t,arguments,o)}else r=t.apply(this,arguments);return s(this,r)});function o(){return t.apply(this,arguments)}return o}();Q.Component=$,Q.props={"src":{attr:"src"},"itemsKey":{attr:"items"},"maxItems":{attr:"max-items",type:"number"},"loadMore":{attr:"load-more"},"loadMoreBookmark":{attr:"load-more-bookmark"},"viewportBuffer":{attr:"viewport-buffer",type:"number"}},Q.layoutSizeDefined=!0,Q.usesShadowDom=!0,Q.usesTemplate=!0;var X=a(require("@bentoproject/core"));function Y(){(0,X.defineBentoElement)("bento-list",Q)}
var r=Object.create,e=Object.defineProperty,n=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,o=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,i=function(r){return e(r,"__esModule",{value:!0})},a=function(a){return function(r,o,i){if(o&&"object"==typeof o||"function"==typeof o)for(var a,c=t(o),f=0,l=c.length;f<l;f++)a=c[f],u.call(r,a)||"default"===a||e(r,a,{get:function(r){return o[r]}.bind(null,a),enumerable:!(i=n(o,a))||i.enumerable});return r}(i(e(null!=a?r(o(a)):{},"default",a&&a.__esModule&&"default"in a?{get:function(){return a.default},enumerable:!0}:{value:a,enumerable:!0})),a)};function c(r,e){return(c=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function f(r){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function l(r){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(r)}function s(r,e){if(e&&("object"===l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(r)}!function(r,n){for(var t in i(r),n)e(r,t,{get:n[t],enumerable:!0})}(exports,{defineElement:function(){return Y}});var v=a(require("@bentoproject/core"));function b(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function d(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.push.apply(n,t)}return n}function p(r){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){b(r,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}))}return r}function m(r,e,n,t,o,u,i){try{var a=r[u](i),c=a.value}catch(r){return void n(r)}a.done?e(c):Promise.resolve(c).then(t,o)}function y(r){return function(){var e=this,n=arguments;return new Promise((function(t,o){var u=r.apply(e,n);function i(r){m(u,t,o,i,a,"next",r)}function a(r){m(u,t,o,i,a,"throw",r)}i(void 0)}))}}var h=a(require("@bentoproject/core")),g=a(require("@bentoproject/core")),j=a(require("@bentoproject/core")),w=a(require("@bentoproject/core"));function O(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}function M(r,e){if(r){if("string"==typeof r)return O(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(r,e):void 0}}function k(r,e){return function(r){if(Array.isArray(r))return r}(r)||function(r,e){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=n){var t,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(t=n.next()).done)&&(u.push(t.value),!e||u.length!==e);i=!0);}catch(r){a=!0,o=r}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}}(r,e)||M(r,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Array.isArray;var S=Object.prototype;function x(r){return(r.ownerDocument||r).defaultView}function R(r){return r.parent&&r.parent!=r}function q(r,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=n.needsRootBounds,o=n.rootMargin,u=n.threshold,i=R(e)&&(t||o)?e.document:void 0;return new e.IntersectionObserver(r,{threshold:u,root:i,rootMargin:o})}S.hasOwnProperty,S.toString;var A=new WeakMap,P=new WeakMap;function I(r){for(var e=new Set,n=r.length-1;n>=0;n--){var t=r[n],o=t.target;if(!e.has(o)){e.add(o);var u=P.get(o);if(u)for(var i=0;i<u.length;i++)(0,u[i])(t)}}}var T=a(require("@bentoproject/core")),B=a(require("@bentoproject/core"));function E(r){return function(r){if(Array.isArray(r))return O(r)}(r)||function(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||M(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var L=a(require("@bentoproject/core")),C=a(require("@bentoproject/core")),G=a(require("@bentoproject/core")),J={loading:!1,error:null,pages:[],hasMore:!0},K={fetchJson:function(r,e){return this.fetch(r,e).then((function(r){return r.json()}))},fetch:function(r,e){return y(regeneratorRuntime.mark((function n(){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,self.fetch(r,e);case 2:if((t=n.sent).ok){n.next=5;break}throw new Error(t.statusText);case 5:return n.abrupt("return",t);case 6:case"end":return n.stop()}}),n)})))()}},N={loadMoreSpinner:"load-more-spinner-cc33818",loadMoreIcon:"load-more-icon-cc33818"},U=("url('data:image/svg+xml;charset=utf-8,".concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><defs><linearGradient id="grad"><stop stop-color="rgb(51,51,51)" stop-opacity=".75"></stop><stop offset="100%" stop-color="rgb(51,51,51)" stop-opacity="0"></stop></linearGradient></defs><path d="M11,4.4 A18,18, 0,1,0, 38,20" fill="none" stroke="url(%23grad)" stroke-width="1.725"></path></svg>',"')"),"url('data:image/svg+xml;charset=utf-8,".concat('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"></path></svg>',"')"),["src","fetchJson","itemsKey","maxItems","loadMore","loadMoreBookmark","viewportBuffer","template","wrapperTemplate","loadMoreTemplate","loadingTemplate","errorTemplate"]),W=function(r){return h.createElement("div",null,String(r))},_=function(r){return h.createElement("div",null,r)},z=function(r,e){return h.createElement("div",null,"Unable to Load More ",h.createElement("button",{"load-more-retry":!0},h.createElement("label",null,h.createElement("span",{class:r.loadMoreIcon})," Retry")))},D=function(){return h.createElement("div",null,h.createElement("button",{"load-more-button":!0},h.createElement("label",null,"See More")))},H=function(r){return h.createElement("div",null,h.createElement("span",{"aria-label":"Loading",class:r.loadMoreSpinner}))};function V(r,e){return e.split(".").reduce((function(r,e){return r&&""!==e?r[e]:r}),r)}var $=(0,j.forwardRef)((function(r,e){var n,t=r.src,o=void 0===t?null:t,u=r.fetchJson,i=void 0===u?K.fetchJson:u,a=r.itemsKey,c=void 0===a?"items":a,f=r.maxItems,s=void 0===f?0:f,v=r.loadMore,b=void 0===v?"none":v,d=r.loadMoreBookmark,m=void 0===d?"load-more-src":d,j=r.viewportBuffer,O=void 0===j?2:j,M=r.template,S=void 0===M?W:M,R=r.wrapperTemplate,$=void 0===R?_:R,Q=r.loadMoreTemplate,X=void 0===Q?D:Q,Y=r.loadingTemplate,Z=void 0===Y?H:Y,rr=r.errorTemplate,er=void 0===rr?z:rr,nr=function(r,e){if(null==r)return{};var n,t,o={},u=Object.keys(r);for(t=0;t<u.length;t++)n=u[t],e.indexOf(n)>=0||(o[n]=r[n]);return o}(r,U),tr=(0,B.useAmpContext)().renderable,or=(0,g.useMemo)((function(){var r=Math.floor(100*O);return{rootMargin:"0% 0% ".concat(r,"% 0%"),threshold:0}}),[O]),ur=(0,g.useRef)(null),ir=function(r,e){var n=k((0,T.useState)(!1),2),t=n[0],o=n[1];return(0,T.useEffect)((function(){var n=r.current;if(n)return function(r,e,n){var t=x(r);if(n){var o=q((function(r){e(r[r.length-1])}),t,n);return o.observe(r),function(){o.unobserve(r)}}var u=A.get(t);u||A.set(t,u=q(I,t));var i=P.get(r);return i||(i=[],P.set(r,i)),i.push(e),u.observe(r),function(){!function(r,e){var n,t,o,u=P.get(r);if(u&&(t=e,-1!=(o=(n=u).indexOf(t))&&(n.splice(o,1),1)&&!u.length)){var i=x(r),a=A.get(i);null==a||a.unobserve(r),P.delete(r)}}(r,e)}}(n,(function(r){o(r.isIntersecting)}),e)}),[r,e]),t}(ur,or),ar=function(r){var e=r.fetchPage,n=r.getNextPageParam,t=function(r){var e=(0,G.useRef)(!1);(0,G.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]);var n=k((0,G.useState)(r),2),t=n[0],o=n[1];return[t,(0,G.useCallback)((function(r){e.current&&o(r)}),[o])]}(J),o=k(t,2),u=o[0],i=o[1],a=(0,C.useValueRef)({fetchPage:e,getNextPageParam:n,state:u}),c=(0,L.useRef)(0),f=(0,L.useCallback)(y(regeneratorRuntime.mark((function r(){var e,n,t,o,u,f,l,s,v,b,d=arguments;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e=d.length>0&&void 0!==d[0]&&d[0],n=a.current,t=n.fetchPage,o=n.getNextPageParam,u=n.state,e||!u.loading){r.next=4;break}return r.abrupt("return");case 4:return f=++c.current,i((function(r){return p(p({},r),{},{loading:!0})})),l=e?[]:u.pages,s=l.length?l[l.length-1]:void 0,r.prev=8,r.next=11,t({pageParam:s?o(s):void 0});case 11:if(v=r.sent,f===c.current){r.next=14;break}return r.abrupt("return");case 14:b=o(v),i({loading:!1,error:null,pages:[].concat(E(l),[v]),hasMore:null!=b}),r.next=23;break;case 18:if(r.prev=18,r.t0=r.catch(8),f===c.current){r.next=22;break}return r.abrupt("return");case 22:i((function(e){return p(p({},e),{},{loading:!1,error:r.t0})}));case 23:case"end":return r.stop()}}),r,null,[[8,18]])}))),[a,i]),l=(0,L.useCallback)((function(){return f(!0)}),[f]);return p(p({},u),{},{loadMore:f,reset:l})}({fetchPage:(n=y(regeneratorRuntime.mark((function r(e){var n,t,u;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=e.pageParam,t=void 0===n?o:n,tr){r.next=3;break}return r.abrupt("return",null);case 3:return r.next=5,i(t);case 5:return u=r.sent,r.abrupt("return",u);case 7:case"end":return r.stop()}}),r)}))),function(r){return n.apply(this,arguments)}),getNextPageParam:function(r){return function(r,e){return V(r,e)}(r,m)}}),cr=ar.error,fr=ar.hasMore,lr=ar.loadMore,sr=ar.loading,vr=ar.pages,br=ar.reset;(0,g.useEffect)((function(){br()}),[o,tr,m,br]);var dr=tr&&"auto"===b&&ir&&!sr&&fr;(0,g.useEffect)((function(){dr&&lr()}),[dr,lr]);var pr=(0,g.useMemo)((function(){var r=vr.flatMap((function(r){return function(r,e){if(!r)return[];var n=V(r,e);return n?(Array.isArray(n)||(n=[n]),n):[]}(r,c)}));return s>0&&r.length>s&&(r=r.slice(0,s)),r.map((function(r,e){var n=S(r);return n&&"object"===l(n)&&"string"==typeof n.__html&&(n=h.createElement("span",{dangerouslySetInnerHTML:n})),F(n,{"key":e,"role":"listitem"})}))}),[vr,c,s,S]),mr=sr,yr=0!==pr.length,hr="manual"===b&&fr&&!sr;(0,g.useImperativeHandle)(e,(function(){return{refresh:br}}),[br]);var gr=N;return h.createElement(w.ContainWrapper,p(p({"aria-live":"polite"},nr),{},{onClick:function(r){r.target.closest("[load-more-button], [load-more-retry]")&&lr()}}),h.createElement(g.Fragment,{"test-id":"contents"},yr&&F($(pr),{"role":"list"}),mr&&Z(gr),hr&&X(gr),cr&&er(gr,cr),"auto"===b&&h.createElement("span",{ref:ur})))}));function F(r,e){return(0,g.isValidElement)(r)?(0,g.cloneElement)(r,p(p({},e),r.props)):r}$.displayName="List";var Q=function(r){!function(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&c(r,e)}(o,v.PreactBaseElement);var e,n,t=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(r){return!1}}(),function(){var r,t=f(e);if(n){var o=f(this).constructor;r=Reflect.construct(t,arguments,o)}else r=t.apply(this,arguments);return s(this,r)});function o(){return t.apply(this,arguments)}return o}();Q.Component=$,Q.props={"src":{attr:"src"},"itemsKey":{attr:"items"},"maxItems":{attr:"max-items",type:"number"},"loadMore":{attr:"load-more"},"loadMoreBookmark":{attr:"load-more-bookmark"},"viewportBuffer":{attr:"viewport-buffer",type:"number"}},Q.layoutSizeDefined=!0,Q.usesShadowDom=!0,Q.usesTemplate=!0;var X=a(require("@bentoproject/core"));function Y(r){(0,X.defineBentoElement)("bento-list",Q,r)}
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=web-component.js.map

@@ -698,4 +698,4 @@ var __create = Object.create;

var import_bento_ce = __toModule(require("@bentoproject/core"));
function defineElement() {
(0, import_bento_ce.defineBentoElement)("bento-list", BaseElement);
function defineElement(win) {
(0, import_bento_ce.defineBentoElement)("bento-list", BaseElement, win);
}

@@ -702,0 +702,0 @@ /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */

@@ -513,4 +513,4 @@ var __async = (__this, __arguments, generator) => {

import { defineBentoElement } from "@bentoproject/core";
function defineElement() {
defineBentoElement("bento-list", BaseElement);
function defineElement(win) {
defineBentoElement("bento-list", BaseElement, win);
}

@@ -517,0 +517,0 @@ export {

;
var e=(e,t,r)=>new Promise(((o,n)=>{var a=e=>{try{l(r.next(e))}catch(e){n(e)}},c=e=>{try{l(r.throw(e))}catch(e){n(e)}},l=e=>e.done?o(e.value):Promise.resolve(e.value).then(a,c);l((r=r.apply(e,t)).next())}));import{PreactBaseElement as t}from"@bentoproject/core";function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}import{createElement as a}from"@bentoproject/core";import{Fragment as c,cloneElement as l,isValidElement as i,useEffect as u,useImperativeHandle as s,useMemo as f,useRef as m}from"@bentoproject/core";import{forwardRef as p}from"@bentoproject/core";import{ContainWrapper as d}from"@bentoproject/core";var{hasOwnProperty:b,toString:g}=Object.prototype;function h(e){return(e.ownerDocument||e).defaultView}function j(e,t,r={}){const{needsRootBounds:o,rootMargin:n,threshold:a}=r,c=function(e){return e.parent&&e.parent!=e}(t)&&(o||n)?t.document:void 0;return new t.IntersectionObserver(e,{threshold:a,root:c,rootMargin:n})}var v=new WeakMap,M=new WeakMap;function y(e){const t=new Set;for(let r=e.length-1;r>=0;r--){const o=e[r],{target:n}=o;if(t.has(n))continue;t.add(n);const a=M.get(n);if(a)for(let e=0;e<a.length;e++)(0,a[e])(o)}}import{useCallback as P,useEffect as w,useRef as O,useState as k}from"@bentoproject/core";import{useAmpContext as x}from"@bentoproject/core";import{useCallback as T,useRef as B}from"@bentoproject/core";import{useValueRef as S}from"@bentoproject/core";import{useCallback as I,useEffect as R,useRef as L,useState as N}from"@bentoproject/core";var C={loading:!1,error:null,pages:[],hasMore:!0},E={fetchJson(e,t){return this.fetch(e,t).then((e=>e.json()))},fetch(t,r){return e(this,null,(function*(){const e=yield self.fetch(t,r);if(!e.ok)throw new Error(e.statusText);return e}))}},J={loadMoreSpinner:"load-more-spinner-cc33818",loadMoreIcon:"load-more-icon-cc33818"},K=["src","fetchJson","itemsKey","maxItems","loadMore","loadMoreBookmark","viewportBuffer","template","wrapperTemplate","loadMoreTemplate","loadingTemplate","errorTemplate"],W=e=>a("div",null,String(e)),A=e=>a("div",null,e),H=(e,t)=>a("div",null,"Unable to Load More ",a("button",{"load-more-retry":!0},a("label",null,a("span",{class:e.loadMoreIcon})," Retry"))),U=()=>a("div",null,a("button",{"load-more-button":!0},a("label",null,"See More"))),$=e=>a("div",null,a("span",{"aria-label":"Loading",class:e.loadMoreSpinner}));function q(e,t){return t.split(".").reduce(((e,t)=>e&&""!==t?e[t]:e),e)}var z=p((function(t,r){let{src:o=null,fetchJson:l=E.fetchJson,itemsKey:i="items",maxItems:p=0,loadMore:b="none",loadMoreBookmark:g="load-more-src",viewportBuffer:P=2,template:O=W,wrapperTemplate:z=A,loadMoreTemplate:F=U,loadingTemplate:G=$,errorTemplate:Q=H}=t,V=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(t,K);const{renderable:X}=x(),Y=f((()=>({rootMargin:`0% 0% ${Math.floor(100*P)}% 0%`,threshold:0})),[P]),Z=m(null),_=function(e,t){const[r,o]=k(!1);return w((()=>{const r=e.current;if(r)return function(e,t,r){const o=h(e);if(r){const n=j((e=>{t(e[e.length-1])}),o,r);return n.observe(e),()=>{n.unobserve(e)}}let n=v.get(o);n||v.set(o,n=j(y,o));let a=M.get(e);return a||(a=[],M.set(e,a)),a.push(t),n.observe(e),()=>{!function(e,t){const r=M.get(e);if(!r)return;if(!function(e,t){const r=e.indexOf(t);return-1!=r&&(e.splice(r,1),!0)}(r,t))return;if(r.length)return;const o=h(e),n=v.get(o);null==n||n.unobserve(e),M.delete(e)}(e,t)}}(r,(e=>{o(e.isIntersecting)}),t)}),[e,t]),r}(Z,Y),{error:ee,hasMore:te,loadMore:re,loading:oe,pages:ne,reset:ae}=function({fetchPage:t,getNextPageParam:r}){const[o,a]=function(e){const t=L(!1);R((()=>(t.current=!0,()=>{t.current=!1})),[]);const[r,o]=N(e);return[r,I((e=>{t.current&&o(e)}),[o])]}(C),c=S({fetchPage:t,getNextPageParam:r,state:o}),l=B(0),i=T(((t=!1)=>e(this,null,(function*(){const{fetchPage:e,getNextPageParam:r,state:o}=c.current;if(!t&&o.loading)return;const i=++l.current;a((e=>n(n({},e),{},{loading:!0})));const u=t?[]:o.pages,s=u.length?u[u.length-1]:void 0;try{const t=yield e({pageParam:s?r(s):void 0});if(i!==l.current)return;const o=r(t);a({loading:!1,error:null,pages:[...u,t],hasMore:null!=o})}catch(e){if(i!==l.current)return;a((t=>n(n({},t),{},{loading:!1,error:e})))}}))),[c,a]),u=T((()=>i(!0)),[i]);return n(n({},o),{},{loadMore:i,reset:u})}({fetchPage:t=>e(this,[t],(function*({pageParam:e=o}){return X?yield l(e):null})),getNextPageParam:e=>function(e,t){return q(e,t)}(e,g)});u((()=>{ae()}),[o,X,g,ae]);const ce=X&&"auto"===b&&_&&!oe&&te;u((()=>{ce&&re()}),[ce,re]);const le=f((()=>{let e=ne.flatMap((e=>function(e,t){if(!e)return[];let r=q(e,t);return r?(Array.isArray(r)||(r=[r]),r):[]}(e,i)));return p>0&&e.length>p&&(e=e.slice(0,p)),e.map(((e,t)=>{let r=O(e);return r&&"object"==typeof r&&"string"==typeof r.__html&&(r=a("span",{dangerouslySetInnerHTML:r})),D(r,{"key":t,"role":"listitem"})}))}),[ne,i,p,O]),ie=oe,ue=0!==le.length,se="manual"===b&&te&&!oe;s(r,(()=>({refresh:ae})),[ae]);const fe=J;return a(d,n(n({"aria-live":"polite"},V),{},{onClick:e=>{e.target.closest("[load-more-button], [load-more-retry]")&&re()}}),a(c,{"test-id":"contents"},ue&&D(z(le),{"role":"list"}),ie&&G(fe),se&&F(fe),ee&&Q(fe,ee),"auto"===b&&a("span",{ref:Z})))}));function D(e,t){return i(e)?l(e,n(n({},t),e.props)):e}z.displayName="List";var F=class extends t{};F.Component=z,F.props={"src":{attr:"src"},"itemsKey":{attr:"items"},"maxItems":{attr:"max-items",type:"number"},"loadMore":{attr:"load-more"},"loadMoreBookmark":{attr:"load-more-bookmark"},"viewportBuffer":{attr:"viewport-buffer",type:"number"}},F.layoutSizeDefined=!0,F.usesShadowDom=!0,F.usesTemplate=!0;import{defineBentoElement as G}from"@bentoproject/core";function Q(){G("bento-list",F)}export{Q as defineElement};
var e=(e,t,r)=>new Promise(((o,n)=>{var a=e=>{try{l(r.next(e))}catch(e){n(e)}},c=e=>{try{l(r.throw(e))}catch(e){n(e)}},l=e=>e.done?o(e.value):Promise.resolve(e.value).then(a,c);l((r=r.apply(e,t)).next())}));import{PreactBaseElement as t}from"@bentoproject/core";function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}import{createElement as a}from"@bentoproject/core";import{Fragment as c,cloneElement as l,isValidElement as i,useEffect as u,useImperativeHandle as s,useMemo as f,useRef as m}from"@bentoproject/core";import{forwardRef as p}from"@bentoproject/core";import{ContainWrapper as d}from"@bentoproject/core";var{hasOwnProperty:b,toString:g}=Object.prototype;function h(e){return(e.ownerDocument||e).defaultView}function j(e,t,r={}){const{needsRootBounds:o,rootMargin:n,threshold:a}=r,c=function(e){return e.parent&&e.parent!=e}(t)&&(o||n)?t.document:void 0;return new t.IntersectionObserver(e,{threshold:a,root:c,rootMargin:n})}var v=new WeakMap,M=new WeakMap;function y(e){const t=new Set;for(let r=e.length-1;r>=0;r--){const o=e[r],{target:n}=o;if(t.has(n))continue;t.add(n);const a=M.get(n);if(a)for(let e=0;e<a.length;e++)(0,a[e])(o)}}import{useCallback as P,useEffect as w,useRef as O,useState as k}from"@bentoproject/core";import{useAmpContext as x}from"@bentoproject/core";import{useCallback as T,useRef as B}from"@bentoproject/core";import{useValueRef as S}from"@bentoproject/core";import{useCallback as I,useEffect as R,useRef as L,useState as N}from"@bentoproject/core";var C={loading:!1,error:null,pages:[],hasMore:!0},E={fetchJson(e,t){return this.fetch(e,t).then((e=>e.json()))},fetch(t,r){return e(this,null,(function*(){const e=yield self.fetch(t,r);if(!e.ok)throw new Error(e.statusText);return e}))}},J={loadMoreSpinner:"load-more-spinner-cc33818",loadMoreIcon:"load-more-icon-cc33818"},K=["src","fetchJson","itemsKey","maxItems","loadMore","loadMoreBookmark","viewportBuffer","template","wrapperTemplate","loadMoreTemplate","loadingTemplate","errorTemplate"],W=e=>a("div",null,String(e)),A=e=>a("div",null,e),H=(e,t)=>a("div",null,"Unable to Load More ",a("button",{"load-more-retry":!0},a("label",null,a("span",{class:e.loadMoreIcon})," Retry"))),U=()=>a("div",null,a("button",{"load-more-button":!0},a("label",null,"See More"))),$=e=>a("div",null,a("span",{"aria-label":"Loading",class:e.loadMoreSpinner}));function q(e,t){return t.split(".").reduce(((e,t)=>e&&""!==t?e[t]:e),e)}var z=p((function(t,r){let{src:o=null,fetchJson:l=E.fetchJson,itemsKey:i="items",maxItems:p=0,loadMore:b="none",loadMoreBookmark:g="load-more-src",viewportBuffer:P=2,template:O=W,wrapperTemplate:z=A,loadMoreTemplate:F=U,loadingTemplate:G=$,errorTemplate:Q=H}=t,V=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(t,K);const{renderable:X}=x(),Y=f((()=>({rootMargin:`0% 0% ${Math.floor(100*P)}% 0%`,threshold:0})),[P]),Z=m(null),_=function(e,t){const[r,o]=k(!1);return w((()=>{const r=e.current;if(r)return function(e,t,r){const o=h(e);if(r){const n=j((e=>{t(e[e.length-1])}),o,r);return n.observe(e),()=>{n.unobserve(e)}}let n=v.get(o);n||v.set(o,n=j(y,o));let a=M.get(e);return a||(a=[],M.set(e,a)),a.push(t),n.observe(e),()=>{!function(e,t){const r=M.get(e);if(!r)return;if(!function(e,t){const r=e.indexOf(t);return-1!=r&&(e.splice(r,1),!0)}(r,t))return;if(r.length)return;const o=h(e),n=v.get(o);null==n||n.unobserve(e),M.delete(e)}(e,t)}}(r,(e=>{o(e.isIntersecting)}),t)}),[e,t]),r}(Z,Y),{error:ee,hasMore:te,loadMore:re,loading:oe,pages:ne,reset:ae}=function({fetchPage:t,getNextPageParam:r}){const[o,a]=function(e){const t=L(!1);R((()=>(t.current=!0,()=>{t.current=!1})),[]);const[r,o]=N(e);return[r,I((e=>{t.current&&o(e)}),[o])]}(C),c=S({fetchPage:t,getNextPageParam:r,state:o}),l=B(0),i=T(((t=!1)=>e(this,null,(function*(){const{fetchPage:e,getNextPageParam:r,state:o}=c.current;if(!t&&o.loading)return;const i=++l.current;a((e=>n(n({},e),{},{loading:!0})));const u=t?[]:o.pages,s=u.length?u[u.length-1]:void 0;try{const t=yield e({pageParam:s?r(s):void 0});if(i!==l.current)return;const o=r(t);a({loading:!1,error:null,pages:[...u,t],hasMore:null!=o})}catch(e){if(i!==l.current)return;a((t=>n(n({},t),{},{loading:!1,error:e})))}}))),[c,a]),u=T((()=>i(!0)),[i]);return n(n({},o),{},{loadMore:i,reset:u})}({fetchPage:t=>e(this,[t],(function*({pageParam:e=o}){return X?yield l(e):null})),getNextPageParam:e=>function(e,t){return q(e,t)}(e,g)});u((()=>{ae()}),[o,X,g,ae]);const ce=X&&"auto"===b&&_&&!oe&&te;u((()=>{ce&&re()}),[ce,re]);const le=f((()=>{let e=ne.flatMap((e=>function(e,t){if(!e)return[];let r=q(e,t);return r?(Array.isArray(r)||(r=[r]),r):[]}(e,i)));return p>0&&e.length>p&&(e=e.slice(0,p)),e.map(((e,t)=>{let r=O(e);return r&&"object"==typeof r&&"string"==typeof r.__html&&(r=a("span",{dangerouslySetInnerHTML:r})),D(r,{"key":t,"role":"listitem"})}))}),[ne,i,p,O]),ie=oe,ue=0!==le.length,se="manual"===b&&te&&!oe;s(r,(()=>({refresh:ae})),[ae]);const fe=J;return a(d,n(n({"aria-live":"polite"},V),{},{onClick:e=>{e.target.closest("[load-more-button], [load-more-retry]")&&re()}}),a(c,{"test-id":"contents"},ue&&D(z(le),{"role":"list"}),ie&&G(fe),se&&F(fe),ee&&Q(fe,ee),"auto"===b&&a("span",{ref:Z})))}));function D(e,t){return i(e)?l(e,n(n({},t),e.props)):e}z.displayName="List";var F=class extends t{};F.Component=z,F.props={"src":{attr:"src"},"itemsKey":{attr:"items"},"maxItems":{attr:"max-items",type:"number"},"loadMore":{attr:"load-more"},"loadMoreBookmark":{attr:"load-more-bookmark"},"viewportBuffer":{attr:"viewport-buffer",type:"number"}},F.layoutSizeDefined=!0,F.usesShadowDom=!0,F.usesTemplate=!0;import{defineBentoElement as G}from"@bentoproject/core";function Q(e){G("bento-list",F,e)}export{Q as defineElement};
/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
//# sourceMappingURL=web-component.module.js.map
{
"name": "@bentoproject/list",
"version": "1.2203221937.0",
"version": "1.2203231914.0",
"description": "Bento list Component",

@@ -45,4 +45,4 @@ "author": "Bento Authors",

"dependencies": {
"@bentoproject/core": "0.2203221937.0"
"@bentoproject/core": "0.2203231914.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc