@htmlbricks/hb-paginate 0.7.3 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-paginate",
3
3
  "displayName": "Svelte Boostrap Pagination WebComponent",
4
4
  "description": "Svelte Boostrap Pagination WebComponent",
5
- "version": "0.7.3",
5
+ "version": "0.7.8",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -27,11 +27,12 @@
27
27
  "prepublish": "npm run build:release"
28
28
  },
29
29
  "devDependencies": {
30
- "@htmlbricks/hb-jsutils": "^0.7.3",
30
+ "@htmlbricks/hb-jsutils": "^0.7.8",
31
31
  "@rollup/plugin-alias": "^3.1.2",
32
32
  "@rollup/plugin-commonjs": "^18.0.0",
33
33
  "@rollup/plugin-json": "^4.1.0",
34
34
  "@rollup/plugin-node-resolve": "^11.2.1",
35
+ "@rollup/plugin-replace": "^4.0.0",
35
36
  "@rollup/plugin-typescript": "^8.2.1",
36
37
  "@tsconfig/svelte": "^1.0.10",
37
38
  "@types/node": "^16.7.1",
@@ -71,5 +72,5 @@
71
72
  "html5-webcomponents"
72
73
  ],
73
74
  "contributors": [],
74
- "gitHead": "f1c8ad92a030f953ee57a9dc5dfe7b58318fbe96"
75
+ "gitHead": "8d5d3227354adbee75d50012b9c05fe0e8a7304d"
75
76
  }
@@ -1,2 +1,2 @@
1
- var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(t)}function i(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,n){e.insertBefore(t,n||null)}function l(e){e.parentNode.removeChild(e)}function c(e){return document.createElement(e)}function d(e){return document.createTextNode(e)}function u(){return d(" ")}function p(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function g(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function f(e){const t={};for(const n of e)t[n.name]=n.value;return t}let m;function h(e){m=e}function k(){if(!m)throw new Error("Function called outside component initialization");return m}function $(){const e=k();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,!1,t),o}(t,n);o.slice().forEach((t=>{t.call(e,i)}))}}}const y=[],w=[],x=[],v=[],E=Promise.resolve();let _=!1;function C(e){x.push(e)}const N=new Set;let M=0;function L(){const e=m;do{for(;M<y.length;){const e=y[M];M++,h(e),S(e.$$)}for(h(null),y.length=0,M=0;w.length;)w.pop()();for(let e=0;e<x.length;e+=1){const t=x[e];N.has(t)||(N.add(t),t())}x.length=0}while(y.length);for(;v.length;)v.pop()();_=!1,N.clear(),h(e)}function S(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}const T=new Set;function z(e,t){-1===e.$$.dirty[0]&&(y.push(e),_||(_=!0,E.then(L)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function H(r,a,s,c,d,u,p,b=[-1]){const g=m;h(r);const f=r.$$={fragment:null,ctx:null,props:u,update:e,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:n(),dirty:b,skip_bound:!1,root:a.target||g.$$.root};p&&p(f.root);let k=!1;if(f.ctx=s?s(r,a.props||{},((e,t,...n)=>{const o=n.length?n[0]:t;return f.ctx&&d(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),k&&z(r,e)),t})):[],f.update(),k=!0,o(f.before_update),f.fragment=!!c&&c(f.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);f.fragment&&f.fragment.l(e),e.forEach(l)}else f.fragment&&f.fragment.c();a.intro&&(($=r.$$.fragment)&&$.i&&(T.delete($),$.i(y))),function(e,n,r,a){const{fragment:s,on_mount:l,on_destroy:c,after_update:d}=e.$$;s&&s.m(n,r),a||C((()=>{const n=l.map(t).filter(i);c?c.push(...n):o(n),e.$$.on_mount=[]})),d.forEach(C)}(r,a.target,a.anchor,a.customElement),L()}var $,y;h(g)}let A;function j(e){let t,n,o,i,r,p,f,m,h,k,$,y,w,x,v=e[1]+1+"";function E(e,t){return e[1]>0?I:R}let _=E(e),C=_(e),N=e[0]>5&&e[1]>e[0]-3&&O(e),M=e[0]>5&&e[1]>e[0]-2&&U(e),L=e[1]-2>-1&&F(e),S=e[1]-1>-1&&q(e),T=e[1]+1<e[0]&&B(e),z=e[1]+2<e[0]&&P(e),H=e[1]<2&&e[1]+3<e[0]&&D(e),A=0===e[1]&&e[1]+4<e[0]&&G(e);function j(e,t){return e[1]<e[0]-1?K:J}let Q=j(e),V=Q(e);return{c(){C.c(),t=u(),N&&N.c(),n=u(),M&&M.c(),o=u(),L&&L.c(),i=u(),S&&S.c(),r=u(),p=c("li"),f=c("button"),m=d(v),h=u(),T&&T.c(),k=u(),z&&z.c(),$=u(),H&&H.c(),y=u(),A&&A.c(),w=u(),V.c(),x=d(""),b(f,"class","page-link "),b(p,"class","page-item active")},m(e,l){C.m(e,l),s(e,t,l),N&&N.m(e,l),s(e,n,l),M&&M.m(e,l),s(e,o,l),L&&L.m(e,l),s(e,i,l),S&&S.m(e,l),s(e,r,l),s(e,p,l),a(p,f),a(f,m),s(e,h,l),T&&T.m(e,l),s(e,k,l),z&&z.m(e,l),s(e,$,l),H&&H.m(e,l),s(e,y,l),A&&A.m(e,l),s(e,w,l),V.m(e,l),s(e,x,l)},p(e,a){_===(_=E(e))&&C?C.p(e,a):(C.d(1),C=_(e),C&&(C.c(),C.m(t.parentNode,t))),e[0]>5&&e[1]>e[0]-3?N?N.p(e,a):(N=O(e),N.c(),N.m(n.parentNode,n)):N&&(N.d(1),N=null),e[0]>5&&e[1]>e[0]-2?M?M.p(e,a):(M=U(e),M.c(),M.m(o.parentNode,o)):M&&(M.d(1),M=null),e[1]-2>-1?L?L.p(e,a):(L=F(e),L.c(),L.m(i.parentNode,i)):L&&(L.d(1),L=null),e[1]-1>-1?S?S.p(e,a):(S=q(e),S.c(),S.m(r.parentNode,r)):S&&(S.d(1),S=null),2&a&&v!==(v=e[1]+1+"")&&g(m,v),e[1]+1<e[0]?T?T.p(e,a):(T=B(e),T.c(),T.m(k.parentNode,k)):T&&(T.d(1),T=null),e[1]+2<e[0]?z?z.p(e,a):(z=P(e),z.c(),z.m($.parentNode,$)):z&&(z.d(1),z=null),e[1]<2&&e[1]+3<e[0]?H?H.p(e,a):(H=D(e),H.c(),H.m(y.parentNode,y)):H&&(H.d(1),H=null),0===e[1]&&e[1]+4<e[0]?A?A.p(e,a):(A=G(e),A.c(),A.m(w.parentNode,w)):A&&(A.d(1),A=null),Q===(Q=j(e))&&V?V.p(e,a):(V.d(1),V=Q(e),V&&(V.c(),V.m(x.parentNode,x)))},d(e){C.d(e),e&&l(t),N&&N.d(e),e&&l(n),M&&M.d(e),e&&l(o),L&&L.d(e),e&&l(i),S&&S.d(e),e&&l(r),e&&l(p),e&&l(h),T&&T.d(e),e&&l(k),z&&z.d(e),e&&l($),H&&H.d(e),e&&l(y),A&&A.d(e),e&&l(w),V.d(e),e&&l(x)}}}function R(t){let n,o,i;return{c(){n=c("li"),n.innerHTML='<button class="page-link" disabled="">«</button>',o=u(),i=c("li"),i.innerHTML='<button class="page-link" disabled="">&lt;</button>',b(n,"class","page-item disabled"),b(i,"class","page-item disabled")},m(e,t){s(e,n,t),s(e,o,t),s(e,i,t)},p:e,d(e){e&&l(n),e&&l(o),e&&l(i)}}}function I(t){let n,i,r,d,g,f,m;return{c(){n=c("li"),i=c("button"),i.textContent="«",r=u(),d=c("li"),g=c("button"),g.textContent="<",b(i,"class","page-link"),b(n,"class","page-item"),b(g,"class","page-link"),b(d,"class","page-item")},m(e,o){s(e,n,o),a(n,i),s(e,r,o),s(e,d,o),a(d,g),f||(m=[p(i,"click",t[4]),p(g,"click",t[5])],f=!0)},p:e,d(e){e&&l(n),e&&l(r),e&&l(d),f=!1,o(m)}}}function O(e){let t,n,o,i,r,u=e[1]-4+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[6]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-4+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function U(e){let t,n,o,i,r,u=e[1]-3+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[7]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-3+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function F(e){let t,n,o,i,r,u=e[1]-2+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[8]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-2+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function q(e){let t,n,o,i,r,u=e[1]-1+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[9]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-1+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function B(e){let t,n,o,i,r,u=e[1]+1+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[10]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+1+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function P(e){let t,n,o,i,r,u=e[1]+2+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[11]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+2+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function D(e){let t,n,o,i,r,u=e[1]+3+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[12]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+3+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function G(e){let t,n,o,i,r,u=e[1]+4+1+"";return{c(){t=c("li"),n=c("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(l,c){s(l,t,c),a(t,n),a(n,o),i||(r=p(n,"click",e[13]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+4+1+"")&&g(o,u)},d(e){e&&l(t),i=!1,r()}}}function J(t){let n,o,i;return{c(){n=c("li"),n.innerHTML='<button class="page-link" disabled="">&gt;</button>',o=u(),i=c("li"),i.innerHTML='<button class="page-link" disabled="">»</button>',b(n,"class","page-item disabled"),b(i,"class","page-item disabled")},m(e,t){s(e,n,t),s(e,o,t),s(e,i,t)},p:e,d(e){e&&l(n),e&&l(o),e&&l(i)}}}function K(t){let n,i,r,d,g,f,m;return{c(){n=c("li"),i=c("button"),i.textContent=">",r=u(),d=c("li"),g=c("button"),g.textContent="»",b(i,"class","page-link"),b(n,"class","page-item"),b(g,"class","page-link"),b(d,"class","page-item")},m(e,o){s(e,n,o),a(n,i),s(e,r,o),s(e,d,o),a(d,g),f||(m=[p(i,"click",t[14]),p(g,"click",t[15])],f=!0)},p:e,d(e){e&&l(n),e&&l(r),e&&l(d),f=!1,o(m)}}}function Q(t){let n,o=t[0]>0&&j(t);return{c(){n=c("ul"),o&&o.c(),this.c=e,b(n,"class","pagination")},m(e,t){s(e,n,t),o&&o.m(n,null)},p(e,[t]){e[0]>0?o?o.p(e,t):(o=j(e),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&l(n),o&&o.d()}}}function V(e,t,n){let{id:o}=t,{pages:i}=t,{page:r}=t;const a=k(),s=$();function l(e){var t,n;s(t="pagechange",n={page:e,pages:i}),a.dispatchEvent&&a.dispatchEvent(new CustomEvent(t,{detail:n}))}return e.$$set=e=>{"id"in e&&n(3,o=e.id),"pages"in e&&n(0,i=e.pages),"page"in e&&n(1,r=e.page)},e.$$.update=()=>{11&e.$$.dirty&&(o||n(3,o=null),n(1,r=r?parseInt(r):0),n(0,i=i?parseInt(i):1))},[i,r,l,o,()=>l(0),()=>l(r-1),()=>l(r-4),()=>l(r-3),()=>l(r-2),()=>l(r-1),()=>l(r+1),()=>l(r+2),()=>l(r+3),()=>l(r+4),()=>l(r+1),()=>l(i-1)]}"function"==typeof HTMLElement&&(A=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class W extends A{constructor(e){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#07689f;--bs-secondary:#c9d6df;--bs-success:#11d3bc;--bs-info:#a2d5f2;--bs-warning:#ff7e67;--bs-danger:#f67280;--bs-light:#fafafa;--bs-dark:#4e4e4e;--bs-primary-rgb:7, 104, 159;--bs-secondary-rgb:201, 214, 223;--bs-success-rgb:17, 211, 188;--bs-info-rgb:162, 213, 242;--bs-warning-rgb:255, 126, 103;--bs-danger-rgb:246, 114, 128;--bs-light-rgb:250, 250, 250;--bs-dark-rgb:78, 78, 78;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}ul{padding-left:2rem}ul{margin-top:0;margin-bottom:1rem}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.pagination{display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;color:#07689f;text-decoration:none;background-color:#fff;border:1px solid #dee2e6;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:#06537f;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;color:#06537f;background-color:#e9ecef;outline:0;box-shadow:0 0 0 0.25rem rgba(7, 104, 159, 0.25)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item.active .page-link{z-index:3;color:#fff;background-color:#07689f;border-color:#07689f}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;background-color:#fff;border-color:#dee2e6}.page-link{padding:0.375rem 0.75rem}.page-item:first-child .page-link{border-top-left-radius:0.25rem;border-bottom-left-radius:0.25rem}.page-item:last-child .page-link{border-top-right-radius:0.25rem;border-bottom-right-radius:0.25rem}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:0.3rem;border-bottom-left-radius:0.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:0.3rem;border-bottom-right-radius:0.3rem}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:0.2rem;border-bottom-left-radius:0.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:0.2rem;border-bottom-right-radius:0.2rem}.pagination{font-family:"Roboto", sans-serif}.page-link{color:var(--bs-primary)}.page-item.active .page-link{background-color:var(--bs-primary)}</style>',H(this,{target:this.shadowRoot,props:f(this.attributes),customElement:!0},V,Q,r,{id:3,pages:0,page:1},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["id","pages","page"]}get id(){return this.$$.ctx[3]}set id(e){this.$$set({id:e}),L()}get pages(){return this.$$.ctx[0]}set pages(e){this.$$set({pages:e}),L()}get page(){return this.$$.ctx[1]}set page(e){this.$$set({page:e}),L()}}return customElements.define("hb-paginate",W),W}();
1
+ var release=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function o(e){e.forEach(t)}function i(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function a(e,t){e.appendChild(t)}function s(e,t,n){e.insertBefore(t,n||null)}function c(e){e.parentNode.removeChild(e)}function l(e){return document.createElement(e)}function d(e){return document.createTextNode(e)}function u(){return d(" ")}function p(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function b(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function g(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function f(e){const t={};for(const n of e)t[n.name]=n.value;return t}let m;function h(e){m=e}function k(){if(!m)throw new Error("Function called outside component initialization");return m}function y(){const e=k();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const i=function(e,t,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,!1,t),o}(t,n);o.slice().forEach((t=>{t.call(e,i)}))}}}const $=[],w=[],v=[],x=[],E=Promise.resolve();let _=!1;function C(e){v.push(e)}const N=new Set;let M=0;function L(){const e=m;do{for(;M<$.length;){const e=$[M];M++,h(e),S(e.$$)}for(h(null),$.length=0,M=0;w.length;)w.pop()();for(let e=0;e<v.length;e+=1){const t=v[e];N.has(t)||(N.add(t),t())}v.length=0}while($.length);for(;x.length;)x.pop()();_=!1,N.clear(),h(e)}function S(e){if(null!==e.fragment){e.update(),o(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C)}}const T=new Set;function z(e,t){-1===e.$$.dirty[0]&&($.push(e),_||(_=!0,E.then(L)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function H(r,a,s,l,d,u,p,b=[-1]){const g=m;h(r);const f=r.$$={fragment:null,ctx:null,props:u,update:e,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:n(),dirty:b,skip_bound:!1,root:a.target||g.$$.root};p&&p(f.root);let k=!1;if(f.ctx=s?s(r,a.props||{},((e,t,...n)=>{const o=n.length?n[0]:t;return f.ctx&&d(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),k&&z(r,e)),t})):[],f.update(),k=!0,o(f.before_update),f.fragment=!!l&&l(f.ctx),a.target){if(a.hydrate){const e=function(e){return Array.from(e.childNodes)}(a.target);f.fragment&&f.fragment.l(e),e.forEach(c)}else f.fragment&&f.fragment.c();a.intro&&((y=r.$$.fragment)&&y.i&&(T.delete(y),y.i($))),function(e,n,r,a){const{fragment:s,on_mount:c,on_destroy:l,after_update:d}=e.$$;s&&s.m(n,r),a||C((()=>{const n=c.map(t).filter(i);l?l.push(...n):o(n),e.$$.on_mount=[]})),d.forEach(C)}(r,a.target,a.anchor,a.customElement),L()}var y,$;h(g)}let A;function j(e){let t,n,o,i,r,p,f,m,h,k,y,$,w,v,x=e[1]+1+"";function E(e,t){return e[1]>0?I:R}let _=E(e),C=_(e),N=e[0]>5&&e[1]>e[0]-3&&O(e),M=e[0]>5&&e[1]>e[0]-2&&U(e),L=e[1]-2>-1&&F(e),S=e[1]-1>-1&&q(e),T=e[1]+1<e[0]&&B(e),z=e[1]+2<e[0]&&P(e),H=e[1]<2&&e[1]+3<e[0]&&D(e),A=0===e[1]&&e[1]+4<e[0]&&G(e);function j(e,t){return e[1]<e[0]-1?K:J}let Q=j(e),V=Q(e);return{c(){C.c(),t=u(),N&&N.c(),n=u(),M&&M.c(),o=u(),L&&L.c(),i=u(),S&&S.c(),r=u(),p=l("li"),f=l("button"),m=d(x),h=u(),T&&T.c(),k=u(),z&&z.c(),y=u(),H&&H.c(),$=u(),A&&A.c(),w=u(),V.c(),v=d(""),b(f,"class","page-link "),b(p,"class","page-item active")},m(e,c){C.m(e,c),s(e,t,c),N&&N.m(e,c),s(e,n,c),M&&M.m(e,c),s(e,o,c),L&&L.m(e,c),s(e,i,c),S&&S.m(e,c),s(e,r,c),s(e,p,c),a(p,f),a(f,m),s(e,h,c),T&&T.m(e,c),s(e,k,c),z&&z.m(e,c),s(e,y,c),H&&H.m(e,c),s(e,$,c),A&&A.m(e,c),s(e,w,c),V.m(e,c),s(e,v,c)},p(e,a){_===(_=E(e))&&C?C.p(e,a):(C.d(1),C=_(e),C&&(C.c(),C.m(t.parentNode,t))),e[0]>5&&e[1]>e[0]-3?N?N.p(e,a):(N=O(e),N.c(),N.m(n.parentNode,n)):N&&(N.d(1),N=null),e[0]>5&&e[1]>e[0]-2?M?M.p(e,a):(M=U(e),M.c(),M.m(o.parentNode,o)):M&&(M.d(1),M=null),e[1]-2>-1?L?L.p(e,a):(L=F(e),L.c(),L.m(i.parentNode,i)):L&&(L.d(1),L=null),e[1]-1>-1?S?S.p(e,a):(S=q(e),S.c(),S.m(r.parentNode,r)):S&&(S.d(1),S=null),2&a&&x!==(x=e[1]+1+"")&&g(m,x),e[1]+1<e[0]?T?T.p(e,a):(T=B(e),T.c(),T.m(k.parentNode,k)):T&&(T.d(1),T=null),e[1]+2<e[0]?z?z.p(e,a):(z=P(e),z.c(),z.m(y.parentNode,y)):z&&(z.d(1),z=null),e[1]<2&&e[1]+3<e[0]?H?H.p(e,a):(H=D(e),H.c(),H.m($.parentNode,$)):H&&(H.d(1),H=null),0===e[1]&&e[1]+4<e[0]?A?A.p(e,a):(A=G(e),A.c(),A.m(w.parentNode,w)):A&&(A.d(1),A=null),Q===(Q=j(e))&&V?V.p(e,a):(V.d(1),V=Q(e),V&&(V.c(),V.m(v.parentNode,v)))},d(e){C.d(e),e&&c(t),N&&N.d(e),e&&c(n),M&&M.d(e),e&&c(o),L&&L.d(e),e&&c(i),S&&S.d(e),e&&c(r),e&&c(p),e&&c(h),T&&T.d(e),e&&c(k),z&&z.d(e),e&&c(y),H&&H.d(e),e&&c($),A&&A.d(e),e&&c(w),V.d(e),e&&c(v)}}}function R(t){let n,o,i;return{c(){n=l("li"),n.innerHTML='<button class="page-link" disabled="">«</button>',o=u(),i=l("li"),i.innerHTML='<button class="page-link" disabled="">&lt;</button>',b(n,"class","page-item disabled"),b(i,"class","page-item disabled")},m(e,t){s(e,n,t),s(e,o,t),s(e,i,t)},p:e,d(e){e&&c(n),e&&c(o),e&&c(i)}}}function I(t){let n,i,r,d,g,f,m;return{c(){n=l("li"),i=l("button"),i.textContent="«",r=u(),d=l("li"),g=l("button"),g.textContent="<",b(i,"class","page-link"),b(n,"class","page-item"),b(g,"class","page-link"),b(d,"class","page-item")},m(e,o){s(e,n,o),a(n,i),s(e,r,o),s(e,d,o),a(d,g),f||(m=[p(i,"click",t[4]),p(g,"click",t[5])],f=!0)},p:e,d(e){e&&c(n),e&&c(r),e&&c(d),f=!1,o(m)}}}function O(e){let t,n,o,i,r,u=e[1]-4+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[6]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-4+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function U(e){let t,n,o,i,r,u=e[1]-3+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[7]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-3+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function F(e){let t,n,o,i,r,u=e[1]-2+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[8]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-2+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function q(e){let t,n,o,i,r,u=e[1]-1+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[9]),i=!0)},p(e,t){2&t&&u!==(u=e[1]-1+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function B(e){let t,n,o,i,r,u=e[1]+1+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[10]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+1+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function P(e){let t,n,o,i,r,u=e[1]+2+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[11]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+2+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function D(e){let t,n,o,i,r,u=e[1]+3+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[12]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+3+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function G(e){let t,n,o,i,r,u=e[1]+4+1+"";return{c(){t=l("li"),n=l("button"),o=d(u),b(n,"class","page-link"),b(t,"class","page-item")},m(c,l){s(c,t,l),a(t,n),a(n,o),i||(r=p(n,"click",e[13]),i=!0)},p(e,t){2&t&&u!==(u=e[1]+4+1+"")&&g(o,u)},d(e){e&&c(t),i=!1,r()}}}function J(t){let n,o,i;return{c(){n=l("li"),n.innerHTML='<button class="page-link" disabled="">&gt;</button>',o=u(),i=l("li"),i.innerHTML='<button class="page-link" disabled="">»</button>',b(n,"class","page-item disabled"),b(i,"class","page-item disabled")},m(e,t){s(e,n,t),s(e,o,t),s(e,i,t)},p:e,d(e){e&&c(n),e&&c(o),e&&c(i)}}}function K(t){let n,i,r,d,g,f,m;return{c(){n=l("li"),i=l("button"),i.textContent=">",r=u(),d=l("li"),g=l("button"),g.textContent="»",b(i,"class","page-link"),b(n,"class","page-item"),b(g,"class","page-link"),b(d,"class","page-item")},m(e,o){s(e,n,o),a(n,i),s(e,r,o),s(e,d,o),a(d,g),f||(m=[p(i,"click",t[14]),p(g,"click",t[15])],f=!0)},p:e,d(e){e&&c(n),e&&c(r),e&&c(d),f=!1,o(m)}}}function Q(t){let n,o=t[0]>0&&j(t);return{c(){n=l("ul"),o&&o.c(),this.c=e,b(n,"class","pagination")},m(e,t){s(e,n,t),o&&o.m(n,null)},p(e,[t]){e[0]>0?o?o.p(e,t):(o=j(e),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&c(n),o&&o.d()}}}function V(e,t,n){let{id:o}=t,{pages:i}=t,{page:r}=t;const a=k(),s=y();function c(e){var t,n;s(t="pagechange",n={page:e,pages:i}),a.dispatchEvent&&a.dispatchEvent(new CustomEvent(t,{detail:n}))}return e.$$set=e=>{"id"in e&&n(3,o=e.id),"pages"in e&&n(0,i=e.pages),"page"in e&&n(1,r=e.page)},e.$$.update=()=>{11&e.$$.dirty&&(o||n(3,o=null),n(1,r=r?parseInt(r):0),n(0,i=i?parseInt(i):1))},[i,r,c,o,()=>c(0),()=>c(r-1),()=>c(r-4),()=>c(r-3),()=>c(r-2),()=>c(r-1),()=>c(r+1),()=>c(r+2),()=>c(r+3),()=>c(r+4),()=>c(r+1),()=>c(i-1)]}"function"==typeof HTMLElement&&(A=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(t).filter(i);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(e,t){const n=e.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});class W extends A{constructor(e){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}ul{padding-left:2rem}ul{margin-top:0;margin-bottom:1rem}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.pagination{display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;color:var(--bs-primary,#07689f);text-decoration:none;background-color:#fff;border:1px solid #dee2e6;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out}@media(prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:#0a58ca;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;color:#0a58ca;background-color:#e9ecef;outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item.active .page-link{z-index:3;color:#fff;background-color:var(--bs-primary,#07689f);border-color:var(--bs-primary,#07689f)}.page-item.disabled .page-link{color:var(--bs-secondary,#c9d6df);pointer-events:none;background-color:#fff;border-color:#dee2e6}.page-link{padding:0.375rem 0.75rem}.page-item:first-child .page-link{border-top-left-radius:0.25rem;border-bottom-left-radius:0.25rem}.page-item:last-child .page-link{border-top-right-radius:0.25rem;border-bottom-right-radius:0.25rem}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:0.3rem;border-bottom-left-radius:0.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:0.3rem;border-bottom-right-radius:0.3rem}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:0.2rem;border-bottom-left-radius:0.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:0.2rem;border-bottom-right-radius:0.2rem}.pagination{font-family:"Roboto", sans-serif}.page-link{color:var(--bs-primary)}.page-item.active .page-link{background-color:var(--bs-primary)}</style>',H(this,{target:this.shadowRoot,props:f(this.attributes),customElement:!0},V,Q,r,{id:3,pages:0,page:1},null),e&&(e.target&&s(e.target,this,e.anchor),e.props&&(this.$set(e.props),L()))}static get observedAttributes(){return["id","pages","page"]}get id(){return this.$$.ctx[3]}set id(e){this.$$set({id:e}),L()}get pages(){return this.$$.ctx[0]}set pages(e){this.$$set({pages:e}),L()}get page(){return this.$$.ctx[1]}set page(e){this.$$set({page:e}),L()}}return customElements.define("hb-paginate",W),W}();
2
2
  //# sourceMappingURL=release.js.map