@everymatrix/cashier-pagination 1.85.16 → 1.85.18

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.
@@ -1,3 +1,3 @@
1
- "use strict";var gt=Object.defineProperty,mt=Object.defineProperties;var bt=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var _t=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var J=(e,t,n)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&J(e,n,t[n]);if(X)for(var n of X(t))pt.call(t,n)&&J(e,n,t[n]);return e},Z=(e,t)=>mt(e,bt(t));var k=(e,t,n)=>(J(e,typeof t!="symbol"?t+"":t,n),n);var tt=(e,t,n)=>new Promise((i,s)=>{var o=c=>{try{r(n.next(c))}catch(u){s(u)}},l=c=>{try{r(n.throw(c))}catch(u){s(u)}},r=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,l);r((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function M(){}function ft(e){return e()}function et(){return Object.create(null)}function V(e){e.forEach(ft)}function dt(e){return typeof e=="function"}function wt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function yt(e){return Object.keys(e).length===0}function w(e,t){e.appendChild(t)}function kt(e,t,n){const i=vt(e);if(!i.getElementById(t)){const s=E("style");s.id=t,s.textContent=n,Et(i,s)}}function vt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Et(e,t){return w(e.head||e,t),t.sheet}function L(e,t,n){e.insertBefore(t,n||null)}function x(e){e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function E(e){return document.createElement(e)}function I(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function R(e){return document.createTextNode(e)}function z(){return R(" ")}function F(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function d(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function xt(e){return Array.from(e.childNodes)}function at(e,t){t=""+t,e.data!==t&&(e.data=t)}function nt(e,t,n){e.classList.toggle(t,!!n)}function Lt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let H;function T(e){H=e}function St(){if(!H)throw new Error("Function called outside component initialization");return H}function jt(e){St().$$.on_mount.push(e)}const O=[],G=[];let B=[];const it=[],At=Promise.resolve();let K=!1;function Ot(){K||(K=!0,At.then(N))}function Q(e){B.push(e)}const q=new Set;let A=0;function N(){if(A!==0)return;const e=H;do{try{for(;A<O.length;){const t=O[A];A++,T(t),Nt(t.$$)}}catch(t){throw O.length=0,A=0,t}for(T(null),O.length=0,A=0;G.length;)G.pop()();for(let t=0;t<B.length;t+=1){const n=B[t];q.has(n)||(q.add(n),n())}B.length=0}while(O.length);for(;it.length;)it.pop()();K=!1,q.clear(),T(e)}function Nt(e){if(e.fragment!==null){e.update(),V(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Q)}}function Bt(e){const t=[],n=[];B.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),B=t}const Mt=new Set;function Pt(e,t){e&&e.i&&(Mt.delete(e),e.i(t))}function st(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Tt(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),Q(()=>{const o=e.$$.on_mount.map(ft).filter(dt);e.$$.on_destroy?e.$$.on_destroy.push(...o):V(o),e.$$.on_mount=[]}),s.forEach(Q)}function Rt(e,t){const n=e.$$;n.fragment!==null&&(Bt(n.after_update),V(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ft(e,t){e.$$.dirty[0]===-1&&(O.push(e),Ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ht(e,t,n,i,s,o,l=null,r=[-1]){const c=H;T(e);const u=e.$$={fragment:null,ctx:[],props:o,update:M,not_equal:s,bound:et(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:et(),dirty:r,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let g=!1;if(u.ctx=n?n(e,t.props||{},(b,C,...y)=>{const h=y.length?y[0]:C;return u.ctx&&s(u.ctx[b],u.ctx[b]=h)&&(!u.skip_bound&&u.bound[b]&&u.bound[b](h),g&&Ft(e,b)),C}):[],u.update(),g=!0,V(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const b=xt(t.target);u.fragment&&u.fragment.l(b),b.forEach(x)}else u.fragment&&u.fragment.c();t.intro&&Pt(e.$$.fragment),Tt(e,t.target,t.anchor),N()}T(c)}let ht;typeof HTMLElement=="function"&&(ht=class extends HTMLElement{constructor(t,n,i){super();k(this,"$$ctor");k(this,"$$s");k(this,"$$c");k(this,"$$cn",!1);k(this,"$$d",{});k(this,"$$r",!1);k(this,"$$p_d",{});k(this,"$$l",{});k(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let l;return{c:function(){l=E("slot"),o!=="default"&&d(l,"name",o)},m:function(u,g){L(u,l,g)},d:function(u){u&&x(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Lt(this);for(const o of this.$$s)o in i&&(n[o]=[t(o)]);for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=D(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Z(Y({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const l=D(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const l of this.$$l[o]){const r=this.$$c.$on(o,l);this.$$l_u.set(l,r)}this.$$l={}}})}attributeChangedCallback(t,n,i){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=D(t,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function D(e,t,n,i){var o;const s=(o=n[e])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Vt(e,t,n,i,s,o){let l=class extends ht{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(r=>(t[r].attribute||r).toLowerCase())}};return Object.keys(t).forEach(r=>{Object.defineProperty(l.prototype,r,{get(){return this.$$c&&r in this.$$c?this.$$c[r]:this.$$d[r]},set(c){var u;c=D(r,c,t),this.$$d[r]=c,(u=this.$$c)==null||u.$set({[r]:c})}})}),i.forEach(r=>{Object.defineProperty(l.prototype,r,{get(){var c;return(c=this.$$c)==null?void 0:c[r]}})}),e.element=l,l}class Ut{constructor(){k(this,"$$");k(this,"$$set")}$destroy(){Rt(this,1),this.$destroy=M}$on(t,n){if(!dt(n))return M;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const It="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(It);function zt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Dt(e,t){const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,e&&e.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Jt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,s=>{i.innerHTML=s,e&&e.appendChild(i)})}}function qt(e){kt(e,"svelte-1rkxa9f","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.pagination{display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap}button{padding:6px;border:1px solid var(--emw--color-grey-10, #F8F8F8);background:transparent;cursor:pointer;border-radius:4px;color:var(--emw--color-grey-10, #111);min-width:30px}button:hover:not(:disabled):not(.selected){border-color:var(--emw--color-grey-105, #E8E9EB)}button:disabled{color:var(--emw--color-grey-105, #E8E9EB);cursor:not-allowed}.nav-btn{display:flex;align-items:center;gap:4px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-primary, #4A975C);height:30px;width:30px}.selected{color:var(--emw--color-primary, #4A975C);font-weight:var(--emw--font-weight-bold, 700);border-color:var(--emw--color-primary, #4A975C)}")}function ot(e,t,n){const i=e.slice();return i[15]=t[n],i}function lt(e){let t,n,i,s;return{c(){t=E("button"),t.textContent="1",n=R(`
1
+ "use strict";var gt=Object.defineProperty,mt=Object.defineProperties;var bt=Object.getOwnPropertyDescriptors;var X=Object.getOwnPropertySymbols;var _t=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable;var J=(e,t,n)=>t in e?gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t)=>{for(var n in t||(t={}))_t.call(t,n)&&J(e,n,t[n]);if(X)for(var n of X(t))pt.call(t,n)&&J(e,n,t[n]);return e},Z=(e,t)=>mt(e,bt(t));var k=(e,t,n)=>(J(e,typeof t!="symbol"?t+"":t,n),n);var tt=(e,t,n)=>new Promise((i,s)=>{var o=c=>{try{r(n.next(c))}catch(u){s(u)}},l=c=>{try{r(n.throw(c))}catch(u){s(u)}},r=c=>c.done?i(c.value):Promise.resolve(c.value).then(o,l);r((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function M(){}function ft(e){return e()}function et(){return Object.create(null)}function V(e){e.forEach(ft)}function dt(e){return typeof e=="function"}function wt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function yt(e){return Object.keys(e).length===0}function w(e,t){e.appendChild(t)}function kt(e,t,n){const i=vt(e);if(!i.getElementById(t)){const s=E("style");s.id=t,s.textContent=n,Et(i,s)}}function vt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function Et(e,t){return w(e.head||e,t),t.sheet}function L(e,t,n){e.insertBefore(t,n||null)}function x(e){e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function E(e){return document.createElement(e)}function U(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function R(e){return document.createTextNode(e)}function z(){return R(" ")}function F(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function d(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function xt(e){return Array.from(e.childNodes)}function at(e,t){t=""+t,e.data!==t&&(e.data=t)}function nt(e,t,n){e.classList.toggle(t,!!n)}function Lt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0}),t}let H;function T(e){H=e}function jt(){if(!H)throw new Error("Function called outside component initialization");return H}function St(e){jt().$$.on_mount.push(e)}const O=[],G=[];let B=[];const it=[],At=Promise.resolve();let K=!1;function Ot(){K||(K=!0,At.then(N))}function Q(e){B.push(e)}const q=new Set;let A=0;function N(){if(A!==0)return;const e=H;do{try{for(;A<O.length;){const t=O[A];A++,T(t),Nt(t.$$)}}catch(t){throw O.length=0,A=0,t}for(T(null),O.length=0,A=0;G.length;)G.pop()();for(let t=0;t<B.length;t+=1){const n=B[t];q.has(n)||(q.add(n),n())}B.length=0}while(O.length);for(;it.length;)it.pop()();K=!1,q.clear(),T(e)}function Nt(e){if(e.fragment!==null){e.update(),V(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(Q)}}function Bt(e){const t=[],n=[];B.forEach(i=>e.indexOf(i)===-1?t.push(i):n.push(i)),n.forEach(i=>i()),B=t}const Mt=new Set;function Pt(e,t){e&&e.i&&(Mt.delete(e),e.i(t))}function st(e){return(e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Tt(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),Q(()=>{const o=e.$$.on_mount.map(ft).filter(dt);e.$$.on_destroy?e.$$.on_destroy.push(...o):V(o),e.$$.on_mount=[]}),s.forEach(Q)}function Rt(e,t){const n=e.$$;n.fragment!==null&&(Bt(n.after_update),V(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ft(e,t){e.$$.dirty[0]===-1&&(O.push(e),Ot(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Ht(e,t,n,i,s,o,l=null,r=[-1]){const c=H;T(e);const u=e.$$={fragment:null,ctx:[],props:o,update:M,not_equal:s,bound:et(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:et(),dirty:r,skip_bound:!1,root:t.target||c.$$.root};l&&l(u.root);let g=!1;if(u.ctx=n?n(e,t.props||{},(b,C,...y)=>{const h=y.length?y[0]:C;return u.ctx&&s(u.ctx[b],u.ctx[b]=h)&&(!u.skip_bound&&u.bound[b]&&u.bound[b](h),g&&Ft(e,b)),C}):[],u.update(),g=!0,V(u.before_update),u.fragment=i?i(u.ctx):!1,t.target){if(t.hydrate){const b=xt(t.target);u.fragment&&u.fragment.l(b),b.forEach(x)}else u.fragment&&u.fragment.c();t.intro&&Pt(e.$$.fragment),Tt(e,t.target,t.anchor),N()}T(c)}let ht;typeof HTMLElement=="function"&&(ht=class extends HTMLElement{constructor(t,n,i){super();k(this,"$$ctor");k(this,"$$s");k(this,"$$c");k(this,"$$cn",!1);k(this,"$$d",{});k(this,"$$r",!1);k(this,"$$p_d",{});k(this,"$$l",{});k(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,i&&this.attachShadow({mode:"open"})}addEventListener(t,n,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const s=this.$$c.$on(t,n);this.$$l_u.set(n,s)}super.addEventListener(t,n,i)}removeEventListener(t,n,i){if(super.removeEventListener(t,n,i),this.$$c){const s=this.$$l_u.get(n);s&&(s(),this.$$l_u.delete(n))}}connectedCallback(){return tt(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(o){return()=>{let l;return{c:function(){l=E("slot"),o!=="default"&&d(l,"name",o)},m:function(u,g){L(u,l,g)},d:function(u){u&&x(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},i=Lt(this);for(const o of this.$$s)o in i&&(n[o]=[t(o)]);for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=D(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:Z(Y({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const s=()=>{this.$$r=!0;for(const o in this.$$p_d)if(this.$$d[o]=this.$$c.$$.ctx[this.$$c.$$.props[o]],this.$$p_d[o].reflect){const l=D(o,this.$$d[o],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,l)}this.$$r=!1};this.$$c.$$.after_update.push(s),s();for(const o in this.$$l)for(const l of this.$$l[o]){const r=this.$$c.$on(o,l);this.$$l_u.set(l,r)}this.$$l={}}})}attributeChangedCallback(t,n,i){var s;this.$$r||(t=this.$$g_p(t),this.$$d[t]=D(t,i,this.$$p_d,"toProp"),(s=this.$$c)==null||s.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function D(e,t,n,i){var o;const s=(o=n[e])==null?void 0:o.type;if(t=s==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!n[e])return t;if(i==="toAttribute")switch(s){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(s){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Vt(e,t,n,i,s,o){let l=class extends ht{constructor(){super(e,n,s),this.$$p_d=t}static get observedAttributes(){return Object.keys(t).map(r=>(t[r].attribute||r).toLowerCase())}};return Object.keys(t).forEach(r=>{Object.defineProperty(l.prototype,r,{get(){return this.$$c&&r in this.$$c?this.$$c[r]:this.$$d[r]},set(c){var u;c=D(r,c,t),this.$$d[r]=c,(u=this.$$c)==null||u.$set({[r]:c})}})}),i.forEach(r=>{Object.defineProperty(l.prototype,r,{get(){var c;return(c=this.$$c)==null?void 0:c[r]}})}),e.element=l,l}class It{constructor(){k(this,"$$");k(this,"$$set")}$destroy(){Rt(this,1),this.$destroy=M}$on(t,n){if(!dt(n))return M;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!yt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ut="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ut);function zt(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n)}}function Dt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(i=>i.text()).then(i=>{const s=document.createElement("style");s.innerHTML=i,e&&e.appendChild(s)}).catch(i=>{console.error("There was an error while trying to load client styling from URL",i)})}function Jt(e,t,n){if(window.emMessageBus){const i=document.createElement("style");window.emMessageBus.subscribe(t,s=>{i.innerHTML=s,e&&e.appendChild(i)})}}function qt(e){kt(e,"svelte-1rkxa9f","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.pagination{display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap}button{padding:6px;border:1px solid var(--emw--color-grey-10, #F8F8F8);background:transparent;cursor:pointer;border-radius:4px;color:var(--emw--color-grey-10, #111);min-width:30px}button:hover:not(:disabled):not(.selected){border-color:var(--emw--color-grey-105, #E8E9EB)}button:disabled{color:var(--emw--color-grey-105, #E8E9EB);cursor:not-allowed}.nav-btn{display:flex;align-items:center;gap:4px;font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-primary, #4A975C);height:30px;width:30px}.selected{color:var(--emw--color-primary, #4A975C);font-weight:var(--emw--font-weight-bold, 700);border-color:var(--emw--color-primary, #4A975C)}")}function ot(e,t,n){const i=e.slice();return i[15]=t[n],i}function lt(e){let t,n,i,s;return{c(){t=E("button"),t.textContent="1",n=R(`
2
2
  ...`)},m(o,l){L(o,t,l),L(o,n,l),i||(s=F(t,"click",e[9]),i=!0)},p:M,d(o){o&&(x(t),x(n)),i=!1,s()}}}function rt(e){let t,n=e[15]+"",i,s,o;function l(){return e[10](e[15])}return{c(){t=E("button"),i=R(n),nt(t,"selected",e[15]===e[2])},m(r,c){L(r,t,c),w(t,i),s||(o=F(t,"click",l),s=!0)},p(r,c){e=r,c&8&&n!==(n=e[15]+"")&&at(i,n),c&12&&nt(t,"selected",e[15]===e[2])},d(r){r&&x(t),s=!1,o()}}}function ct(e){let t,n,i,s,o;return{c(){t=R(`...
3
- `),n=E("button"),i=R(e[0])},m(l,r){L(l,t,r),L(l,n,r),w(n,i),s||(o=F(n,"click",e[11]),s=!0)},p(l,r){r&1&&at(i,l[0])},d(l){l&&(x(t),x(n)),s=!1,o()}}}function Gt(e){let t,n,i,s,o,l,r,c=!e[3].includes(1),u,g,b=!e[3].includes(+e[0]),C,y,h,P,S,a,U,_=c&&lt(e),j=st(e[3]),m=[];for(let f=0;f<j.length;f+=1)m[f]=rt(ot(e,j,f));let p=b&&ct(e);return{c(){t=E("div"),n=E("nav"),i=E("button"),s=I("svg"),o=I("polyline"),r=z(),_&&_.c(),u=z();for(let f=0;f<m.length;f+=1)m[f].c();g=z(),p&&p.c(),C=z(),y=E("button"),h=I("svg"),P=I("polyline"),d(o,"points","15 18 9 12 15 6"),d(s,"xmlns","http://www.w3.org/2000/svg"),d(s,"width","24"),d(s,"height","24"),d(s,"viewBox","0 0 24 24"),d(s,"fill","none"),d(s,"stroke","currentColor"),d(s,"stroke-width","2"),d(s,"stroke-linecap","round"),d(s,"stroke-linejoin","round"),d(s,"class","feather feather-chevron-left"),d(i,"class","nav-btn"),i.disabled=l=e[2]===1,d(P,"points","9 18 15 12 9 6"),d(h,"xmlns","http://www.w3.org/2000/svg"),d(h,"width","24"),d(h,"height","24"),d(h,"viewBox","0 0 24 24"),d(h,"fill","none"),d(h,"stroke","currentColor"),d(h,"stroke-width","2"),d(h,"stroke-linecap","round"),d(h,"stroke-linejoin","round"),d(h,"class","feather feather-chevron-right"),d(y,"class","nav-btn"),y.disabled=S=e[2]===e[0],d(n,"class","pagination")},m(f,v){L(f,t,v),w(t,n),w(n,i),w(i,s),w(s,o),w(n,r),_&&_.m(n,null),w(n,u);for(let $=0;$<m.length;$+=1)m[$]&&m[$].m(n,null);w(n,g),p&&p.m(n,null),w(n,C),w(n,y),w(y,h),w(h,P),e[13](t),a||(U=[F(i,"click",e[8]),F(y,"click",e[12])],a=!0)},p(f,[v]){if(v&4&&l!==(l=f[2]===1)&&(i.disabled=l),v&8&&(c=!f[3].includes(1)),c?_?_.p(f,v):(_=lt(f),_.c(),_.m(n,u)):_&&(_.d(1),_=null),v&28){j=st(f[3]);let $;for($=0;$<j.length;$+=1){const W=ot(f,j,$);m[$]?m[$].p(W,v):(m[$]=rt(W),m[$].c(),m[$].m(n,g))}for(;$<m.length;$+=1)m[$].d(1);m.length=j.length}v&9&&(b=!f[3].includes(+f[0])),b?p?p.p(f,v):(p=ct(f),p.c(),p.m(n,C)):p&&(p.d(1),p=null),v&5&&S!==(S=f[2]===f[0])&&(y.disabled=S)},i:M,o:M,d(f){f&&x(t),_&&_.d(),Ct(m,f),p&&p.d(),e[13](null),a=!1,V(U)}}}function ut(e,t){const i=[];if(t<=5){for(let l=1;l<=t;l++)i.push(l);return i}let s=e-1,o=e+1;s<1&&(o+=1-s,s=1),o>t&&(s-=o-t,o=t),s=Math.max(1,s);for(let l=s;l<=o;l++)i.push(l);return i}function Kt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:s=""}=t,{mbsource:o}=t,{totalpages:l=5}=t,r,c=1,u;u=ut(c,l),jt(()=>()=>{});function g(a){if(a>=1&&a<=l){n(2,c=a);const U=new CustomEvent("pageChange",{detail:{page:a},bubbles:!0,composed:!0});document.dispatchEvent(U)}}const b=()=>g(c-1),C=()=>g(1),y=a=>g(a),h=()=>g(+l),P=()=>g(c+1);function S(a){G[a?"unshift":"push"](()=>{r=a,n(1,r)})}return e.$$set=a=>{"clientstyling"in a&&n(5,i=a.clientstyling),"clientstylingurl"in a&&n(6,s=a.clientstylingurl),"mbsource"in a&&n(7,o=a.mbsource),"totalpages"in a&&n(0,l=a.totalpages)},e.$$.update=()=>{e.$$.dirty&5&&n(3,u=ut(c,l)),e.$$.dirty&34&&i&&r&&zt(r,i),e.$$.dirty&66&&s&&r&&Dt(r,s),e.$$.dirty&130&&o&&r&&Jt(r,`${o}.Style`)},[l,r,c,u,g,i,s,o,b,C,y,h,P,S]}class $t extends Ut{constructor(t){super(),Ht(this,t,Kt,Gt,wt,{clientstyling:5,clientstylingurl:6,mbsource:7,totalpages:0},qt)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),N()}get totalpages(){return this.$$.ctx[0]}set totalpages(t){this.$$set({totalpages:t}),N()}}Vt($t,{clientstyling:{},clientstylingurl:{},mbsource:{},totalpages:{}},[],[],!0);exports.default=$t;
3
+ `),n=E("button"),i=R(e[0])},m(l,r){L(l,t,r),L(l,n,r),w(n,i),s||(o=F(n,"click",e[11]),s=!0)},p(l,r){r&1&&at(i,l[0])},d(l){l&&(x(t),x(n)),s=!1,o()}}}function Gt(e){let t,n,i,s,o,l,r,c=!e[3].includes(1),u,g,b=!e[3].includes(+e[0]),C,y,h,P,j,a,I,_=c&&lt(e),S=st(e[3]),m=[];for(let f=0;f<S.length;f+=1)m[f]=rt(ot(e,S,f));let p=b&&ct(e);return{c(){t=E("div"),n=E("nav"),i=E("button"),s=U("svg"),o=U("polyline"),r=z(),_&&_.c(),u=z();for(let f=0;f<m.length;f+=1)m[f].c();g=z(),p&&p.c(),C=z(),y=E("button"),h=U("svg"),P=U("polyline"),d(o,"points","15 18 9 12 15 6"),d(s,"xmlns","http://www.w3.org/2000/svg"),d(s,"width","24"),d(s,"height","24"),d(s,"viewBox","0 0 24 24"),d(s,"fill","none"),d(s,"stroke","currentColor"),d(s,"stroke-width","2"),d(s,"stroke-linecap","round"),d(s,"stroke-linejoin","round"),d(s,"class","feather feather-chevron-left"),d(i,"class","nav-btn"),i.disabled=l=e[2]===1,d(P,"points","9 18 15 12 9 6"),d(h,"xmlns","http://www.w3.org/2000/svg"),d(h,"width","24"),d(h,"height","24"),d(h,"viewBox","0 0 24 24"),d(h,"fill","none"),d(h,"stroke","currentColor"),d(h,"stroke-width","2"),d(h,"stroke-linecap","round"),d(h,"stroke-linejoin","round"),d(h,"class","feather feather-chevron-right"),d(y,"class","nav-btn"),y.disabled=j=e[2]===e[0],d(n,"class","pagination")},m(f,v){L(f,t,v),w(t,n),w(n,i),w(i,s),w(s,o),w(n,r),_&&_.m(n,null),w(n,u);for(let $=0;$<m.length;$+=1)m[$]&&m[$].m(n,null);w(n,g),p&&p.m(n,null),w(n,C),w(n,y),w(y,h),w(h,P),e[13](t),a||(I=[F(i,"click",e[8]),F(y,"click",e[12])],a=!0)},p(f,[v]){if(v&4&&l!==(l=f[2]===1)&&(i.disabled=l),v&8&&(c=!f[3].includes(1)),c?_?_.p(f,v):(_=lt(f),_.c(),_.m(n,u)):_&&(_.d(1),_=null),v&28){S=st(f[3]);let $;for($=0;$<S.length;$+=1){const W=ot(f,S,$);m[$]?m[$].p(W,v):(m[$]=rt(W),m[$].c(),m[$].m(n,g))}for(;$<m.length;$+=1)m[$].d(1);m.length=S.length}v&9&&(b=!f[3].includes(+f[0])),b?p?p.p(f,v):(p=ct(f),p.c(),p.m(n,C)):p&&(p.d(1),p=null),v&5&&j!==(j=f[2]===f[0])&&(y.disabled=j)},i:M,o:M,d(f){f&&x(t),_&&_.d(),Ct(m,f),p&&p.d(),e[13](null),a=!1,V(I)}}}function ut(e,t){const i=[];if(t<=5){for(let l=1;l<=t;l++)i.push(l);return i}let s=e-1,o=e+1;s<1&&(o+=1-s,s=1),o>t&&(s-=o-t,o=t),s=Math.max(1,s);for(let l=s;l<=o;l++)i.push(l);return i}function Kt(e,t,n){let{clientstyling:i=""}=t,{clientstylingurl:s=""}=t,{mbsource:o}=t,{totalpages:l=5}=t,r,c=1,u;u=ut(c,l),St(()=>()=>{});function g(a){if(a>=1&&a<=l){n(2,c=a);const I=new CustomEvent("pageChange",{detail:{page:a},bubbles:!0,composed:!0});document.dispatchEvent(I)}}const b=()=>g(c-1),C=()=>g(1),y=a=>g(a),h=()=>g(+l),P=()=>g(c+1);function j(a){G[a?"unshift":"push"](()=>{r=a,n(1,r)})}return e.$$set=a=>{"clientstyling"in a&&n(5,i=a.clientstyling),"clientstylingurl"in a&&n(6,s=a.clientstylingurl),"mbsource"in a&&n(7,o=a.mbsource),"totalpages"in a&&n(0,l=a.totalpages)},e.$$.update=()=>{e.$$.dirty&5&&n(3,u=ut(c,l)),e.$$.dirty&34&&i&&r&&zt(r,i),e.$$.dirty&66&&s&&r&&Dt(r,s),e.$$.dirty&130&&o&&r&&Jt(r,`${o}.Style`)},[l,r,c,u,g,i,s,o,b,C,y,h,P,j]}class $t extends It{constructor(t){super(),Ht(this,t,Kt,Gt,wt,{clientstyling:5,clientstylingurl:6,mbsource:7,totalpages:0},qt)}get clientstyling(){return this.$$.ctx[5]}set clientstyling(t){this.$$set({clientstyling:t}),N()}get clientstylingurl(){return this.$$.ctx[6]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),N()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),N()}get totalpages(){return this.$$.ctx[0]}set totalpages(t){this.$$set({totalpages:t}),N()}}Vt($t,{clientstyling:{},clientstylingurl:{},mbsource:{},totalpages:{}},[],[],!0);exports.default=$t;
@@ -87,7 +87,7 @@ function Et(e, t) {
87
87
  function E(e) {
88
88
  return document.createElement(e);
89
89
  }
90
- function I(e) {
90
+ function U(e) {
91
91
  return document.createElementNS("http://www.w3.org/2000/svg", e);
92
92
  }
93
93
  function R(e) {
@@ -135,30 +135,30 @@ function jt(e) {
135
135
  }
136
136
  const O = [], G = [];
137
137
  let B = [];
138
- const it = [], St = /* @__PURE__ */ Promise.resolve();
138
+ const it = [], At = /* @__PURE__ */ Promise.resolve();
139
139
  let K = !1;
140
- function At() {
141
- K || (K = !0, St.then(N));
140
+ function St() {
141
+ K || (K = !0, At.then(N));
142
142
  }
143
143
  function Q(e) {
144
144
  B.push(e);
145
145
  }
146
146
  const q = /* @__PURE__ */ new Set();
147
- let A = 0;
147
+ let S = 0;
148
148
  function N() {
149
- if (A !== 0)
149
+ if (S !== 0)
150
150
  return;
151
151
  const e = H;
152
152
  do {
153
153
  try {
154
- for (; A < O.length; ) {
155
- const t = O[A];
156
- A++, T(t), Ot(t.$$);
154
+ for (; S < O.length; ) {
155
+ const t = O[S];
156
+ S++, T(t), Ot(t.$$);
157
157
  }
158
158
  } catch (t) {
159
- throw O.length = 0, A = 0, t;
159
+ throw O.length = 0, S = 0, t;
160
160
  }
161
- for (T(null), O.length = 0, A = 0; G.length; )
161
+ for (T(null), O.length = 0, S = 0; G.length; )
162
162
  G.pop()();
163
163
  for (let t = 0; t < B.length; t += 1) {
164
164
  const n = B[t];
@@ -200,7 +200,7 @@ function Tt(e, t) {
200
200
  n.fragment !== null && (Nt(n.after_update), V(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
201
201
  }
202
202
  function Rt(e, t) {
203
- e.$$.dirty[0] === -1 && (O.push(e), At(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
203
+ e.$$.dirty[0] === -1 && (O.push(e), St(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
204
204
  }
205
205
  function Ft(e, t, n, i, s, o, l = null, r = [-1]) {
206
206
  const c = H;
@@ -469,15 +469,17 @@ class Vt {
469
469
  this.$$set && !wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
470
470
  }
471
471
  }
472
- const Ut = "4";
473
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ut);
474
- function It(e, t) {
472
+ const It = "4";
473
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(It);
474
+ function Ut(e, t) {
475
475
  if (e) {
476
476
  const n = document.createElement("style");
477
477
  n.innerHTML = t, e.appendChild(n);
478
478
  }
479
479
  }
480
480
  function zt(e, t) {
481
+ if (!e || !t)
482
+ return;
481
483
  const n = new URL(t);
482
484
  fetch(n.href).then((i) => i.text()).then((i) => {
483
485
  const s = document.createElement("style");
@@ -601,19 +603,19 @@ function qt(e) {
601
603
  let t, n, i, s, o, l, r, c = !/*visiblePages*/
602
604
  e[3].includes(1), u, g, b = !/*visiblePages*/
603
605
  e[3].includes(+/*totalpages*/
604
- e[0]), C, y, h, P, j, a, U, _ = c && lt(e), S = st(
606
+ e[0]), C, y, h, P, j, a, I, _ = c && lt(e), A = st(
605
607
  /*visiblePages*/
606
608
  e[3]
607
609
  ), m = [];
608
- for (let f = 0; f < S.length; f += 1)
609
- m[f] = rt(ot(e, S, f));
610
+ for (let f = 0; f < A.length; f += 1)
611
+ m[f] = rt(ot(e, A, f));
610
612
  let p = b && ct(e);
611
613
  return {
612
614
  c() {
613
- t = E("div"), n = E("nav"), i = E("button"), s = I("svg"), o = I("polyline"), r = z(), _ && _.c(), u = z();
615
+ t = E("div"), n = E("nav"), i = E("button"), s = U("svg"), o = U("polyline"), r = z(), _ && _.c(), u = z();
614
616
  for (let f = 0; f < m.length; f += 1)
615
617
  m[f].c();
616
- g = z(), p && p.c(), C = z(), y = E("button"), h = I("svg"), P = I("polyline"), d(o, "points", "15 18 9 12 15 6"), d(s, "xmlns", "http://www.w3.org/2000/svg"), d(s, "width", "24"), d(s, "height", "24"), d(s, "viewBox", "0 0 24 24"), d(s, "fill", "none"), d(s, "stroke", "currentColor"), d(s, "stroke-width", "2"), d(s, "stroke-linecap", "round"), d(s, "stroke-linejoin", "round"), d(s, "class", "feather feather-chevron-left"), d(i, "class", "nav-btn"), i.disabled = l = /*currentPage*/
618
+ g = z(), p && p.c(), C = z(), y = E("button"), h = U("svg"), P = U("polyline"), d(o, "points", "15 18 9 12 15 6"), d(s, "xmlns", "http://www.w3.org/2000/svg"), d(s, "width", "24"), d(s, "height", "24"), d(s, "viewBox", "0 0 24 24"), d(s, "fill", "none"), d(s, "stroke", "currentColor"), d(s, "stroke-width", "2"), d(s, "stroke-linecap", "round"), d(s, "stroke-linejoin", "round"), d(s, "class", "feather feather-chevron-left"), d(i, "class", "nav-btn"), i.disabled = l = /*currentPage*/
617
619
  e[2] === 1, d(P, "points", "9 18 15 12 9 6"), d(h, "xmlns", "http://www.w3.org/2000/svg"), d(h, "width", "24"), d(h, "height", "24"), d(h, "viewBox", "0 0 24 24"), d(h, "fill", "none"), d(h, "stroke", "currentColor"), d(h, "stroke-width", "2"), d(h, "stroke-linecap", "round"), d(h, "stroke-linejoin", "round"), d(h, "class", "feather feather-chevron-right"), d(y, "class", "nav-btn"), y.disabled = j = /*currentPage*/
618
620
  e[2] === /*totalpages*/
619
621
  e[0], d(n, "class", "pagination");
@@ -622,7 +624,7 @@ function qt(e) {
622
624
  L(f, t, v), w(t, n), w(n, i), w(i, s), w(s, o), w(n, r), _ && _.m(n, null), w(n, u);
623
625
  for (let $ = 0; $ < m.length; $ += 1)
624
626
  m[$] && m[$].m(n, null);
625
- w(n, g), p && p.m(n, null), w(n, C), w(n, y), w(y, h), w(h, P), e[13](t), a || (U = [
627
+ w(n, g), p && p.m(n, null), w(n, C), w(n, y), w(y, h), w(h, P), e[13](t), a || (I = [
626
628
  F(
627
629
  i,
628
630
  "click",
@@ -644,18 +646,18 @@ function qt(e) {
644
646
  8 && (c = !/*visiblePages*/
645
647
  f[3].includes(1)), c ? _ ? _.p(f, v) : (_ = lt(f), _.c(), _.m(n, u)) : _ && (_.d(1), _ = null), v & /*visiblePages, currentPage, goToPage*/
646
648
  28) {
647
- S = st(
649
+ A = st(
648
650
  /*visiblePages*/
649
651
  f[3]
650
652
  );
651
653
  let $;
652
- for ($ = 0; $ < S.length; $ += 1) {
653
- const W = ot(f, S, $);
654
+ for ($ = 0; $ < A.length; $ += 1) {
655
+ const W = ot(f, A, $);
654
656
  m[$] ? m[$].p(W, v) : (m[$] = rt(W), m[$].c(), m[$].m(n, g));
655
657
  }
656
658
  for (; $ < m.length; $ += 1)
657
659
  m[$].d(1);
658
- m.length = S.length;
660
+ m.length = A.length;
659
661
  }
660
662
  v & /*visiblePages, totalpages*/
661
663
  9 && (b = !/*visiblePages*/
@@ -668,7 +670,7 @@ function qt(e) {
668
670
  i: M,
669
671
  o: M,
670
672
  d(f) {
671
- f && x(t), _ && _.d(), Et(m, f), p && p.d(), e[13](null), a = !1, V(U);
673
+ f && x(t), _ && _.d(), Et(m, f), p && p.d(), e[13](null), a = !1, V(I);
672
674
  }
673
675
  };
674
676
  }
@@ -692,7 +694,7 @@ function Gt(e, t, n) {
692
694
  function g(a) {
693
695
  if (a >= 1 && a <= l) {
694
696
  n(2, c = a);
695
- const U = new CustomEvent(
697
+ const I = new CustomEvent(
696
698
  "pageChange",
697
699
  {
698
700
  detail: { page: a },
@@ -700,7 +702,7 @@ function Gt(e, t, n) {
700
702
  composed: !0
701
703
  }
702
704
  );
703
- document.dispatchEvent(U);
705
+ document.dispatchEvent(I);
704
706
  }
705
707
  }
706
708
  const b = () => g(c - 1), C = () => g(1), y = (a) => g(a), h = () => g(+l), P = () => g(c + 1);
@@ -714,7 +716,7 @@ function Gt(e, t, n) {
714
716
  }, e.$$.update = () => {
715
717
  e.$$.dirty & /*currentPage, totalpages*/
716
718
  5 && n(3, u = ut(c, l)), e.$$.dirty & /*clientstyling, customStylingContainer*/
717
- 34 && i && r && It(r, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
719
+ 34 && i && r && Ut(r, i), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
718
720
  66 && s && r && zt(r, s), e.$$.dirty & /*mbsource, customStylingContainer*/
719
721
  130 && o && r && Dt(r, `${o}.Style`);
720
722
  }, [
@@ -58,13 +58,13 @@ function ht(t, e) {
58
58
  function v(t) {
59
59
  return document.createElement(t);
60
60
  }
61
- function U(t) {
61
+ function I(t) {
62
62
  return document.createElementNS("http://www.w3.org/2000/svg", t);
63
63
  }
64
64
  function T(t) {
65
65
  return document.createTextNode(t);
66
66
  }
67
- function I() {
67
+ function U() {
68
68
  return T(" ");
69
69
  }
70
70
  function R(t, e, n, s) {
@@ -104,7 +104,7 @@ function _t() {
104
104
  function mt(t) {
105
105
  _t().$$.on_mount.push(t);
106
106
  }
107
- const A = [], J = [];
107
+ const S = [], J = [];
108
108
  let N = [];
109
109
  const X = [], bt = /* @__PURE__ */ Promise.resolve();
110
110
  let q = !1;
@@ -115,40 +115,40 @@ function G(t) {
115
115
  N.push(t);
116
116
  }
117
117
  const D = /* @__PURE__ */ new Set();
118
- let S = 0;
118
+ let A = 0;
119
119
  function O() {
120
- if (S !== 0)
120
+ if (A !== 0)
121
121
  return;
122
122
  const t = F;
123
123
  do {
124
124
  try {
125
- for (; S < A.length; ) {
126
- const e = A[S];
127
- S++, P(e), yt(e.$$);
125
+ for (; A < S.length; ) {
126
+ const e = S[A];
127
+ A++, P(e), wt(e.$$);
128
128
  }
129
129
  } catch (e) {
130
- throw A.length = 0, S = 0, e;
130
+ throw S.length = 0, A = 0, e;
131
131
  }
132
- for (P(null), A.length = 0, S = 0; J.length; )
132
+ for (P(null), S.length = 0, A = 0; J.length; )
133
133
  J.pop()();
134
134
  for (let e = 0; e < N.length; e += 1) {
135
135
  const n = N[e];
136
136
  D.has(n) || (D.add(n), n());
137
137
  }
138
138
  N.length = 0;
139
- } while (A.length);
139
+ } while (S.length);
140
140
  for (; X.length; )
141
141
  X.pop()();
142
142
  q = !1, D.clear(), P(t);
143
143
  }
144
- function yt(t) {
144
+ function wt(t) {
145
145
  if (t.fragment !== null) {
146
146
  t.update(), H(t.before_update);
147
147
  const e = t.dirty;
148
148
  t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(G);
149
149
  }
150
150
  }
151
- function wt(t) {
151
+ function yt(t) {
152
152
  const e = [], n = [];
153
153
  N.forEach((s) => t.indexOf(s) === -1 ? e.push(s) : n.push(s)), n.forEach((s) => s()), N = e;
154
154
  }
@@ -168,10 +168,10 @@ function Et(t, e, n) {
168
168
  }
169
169
  function Ct(t, e) {
170
170
  const n = t.$$;
171
- n.fragment !== null && (wt(n.after_update), H(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
171
+ n.fragment !== null && (yt(n.after_update), H(n.on_destroy), n.fragment && n.fragment.d(e), n.on_destroy = n.fragment = null, n.ctx = []);
172
172
  }
173
173
  function xt(t, e) {
174
- t.$$.dirty[0] === -1 && (A.push(t), pt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
174
+ t.$$.dirty[0] === -1 && (S.push(t), pt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
175
175
  }
176
176
  function Lt(t, e, n, s, i, o, r = null, l = [-1]) {
177
177
  const c = F;
@@ -198,11 +198,11 @@ function Lt(t, e, n, s, i, o, r = null, l = [-1]) {
198
198
  root: e.target || c.$$.root
199
199
  };
200
200
  r && r(u.root);
201
- let y = !1;
202
- if (u.ctx = n ? n(t, e.props || {}, (_, E, ...w) => {
203
- const h = w.length ? w[0] : E;
204
- return u.ctx && i(u.ctx[_], u.ctx[_] = h) && (!u.skip_bound && u.bound[_] && u.bound[_](h), y && xt(t, _)), E;
205
- }) : [], u.update(), y = !0, H(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
201
+ let w = !1;
202
+ if (u.ctx = n ? n(t, e.props || {}, (_, E, ...y) => {
203
+ const h = y.length ? y[0] : E;
204
+ return u.ctx && i(u.ctx[_], u.ctx[_] = h) && (!u.skip_bound && u.bound[_] && u.bound[_](h), w && xt(t, _)), E;
205
+ }) : [], u.update(), w = !0, H(u.before_update), u.fragment = s ? s(u.ctx) : !1, e.target) {
206
206
  if (e.hydrate) {
207
207
  const _ = $t(e.target);
208
208
  u.fragment && u.fragment.l(_), _.forEach(C);
@@ -388,7 +388,7 @@ function jt(t, e, n, s, i, o) {
388
388
  }), t.element = /** @type {any} */
389
389
  r, r;
390
390
  }
391
- class St {
391
+ class At {
392
392
  /**
393
393
  * ### PRIVATE API
394
394
  *
@@ -432,8 +432,8 @@ class St {
432
432
  this.$$set && !ut(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
433
433
  }
434
434
  }
435
- const At = "4";
436
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(At);
435
+ const St = "4";
436
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(St);
437
437
  function Ot(t, e) {
438
438
  if (t) {
439
439
  const n = document.createElement("style");
@@ -441,6 +441,8 @@ function Ot(t, e) {
441
441
  }
442
442
  }
443
443
  function Nt(t, e) {
444
+ if (!t || !e)
445
+ return;
444
446
  const n = new URL(e);
445
447
  fetch(n.href).then((s) => s.text()).then((s) => {
446
448
  const i = document.createElement("style");
@@ -562,9 +564,9 @@ function nt(t) {
562
564
  }
563
565
  function Pt(t) {
564
566
  let e, n, s, i, o, r, l, c = !/*visiblePages*/
565
- t[3].includes(1), u, y, _ = !/*visiblePages*/
567
+ t[3].includes(1), u, w, _ = !/*visiblePages*/
566
568
  t[3].includes(+/*totalpages*/
567
- t[0]), E, w, h, M, L, a, V, m = c && tt(t), j = Y(
569
+ t[0]), E, y, h, M, L, a, V, m = c && tt(t), j = Y(
568
570
  /*visiblePages*/
569
571
  t[3]
570
572
  ), g = [];
@@ -573,11 +575,11 @@ function Pt(t) {
573
575
  let b = _ && nt(t);
574
576
  return {
575
577
  c() {
576
- e = v("div"), n = v("nav"), s = v("button"), i = U("svg"), o = U("polyline"), l = I(), m && m.c(), u = I();
578
+ e = v("div"), n = v("nav"), s = v("button"), i = I("svg"), o = I("polyline"), l = U(), m && m.c(), u = U();
577
579
  for (let f = 0; f < g.length; f += 1)
578
580
  g[f].c();
579
- y = I(), b && b.c(), E = I(), w = v("button"), h = U("svg"), M = U("polyline"), d(o, "points", "15 18 9 12 15 6"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "24"), d(i, "height", "24"), d(i, "viewBox", "0 0 24 24"), d(i, "fill", "none"), d(i, "stroke", "currentColor"), d(i, "stroke-width", "2"), d(i, "stroke-linecap", "round"), d(i, "stroke-linejoin", "round"), d(i, "class", "feather feather-chevron-left"), d(s, "class", "nav-btn"), s.disabled = r = /*currentPage*/
580
- t[2] === 1, d(M, "points", "9 18 15 12 9 6"), d(h, "xmlns", "http://www.w3.org/2000/svg"), d(h, "width", "24"), d(h, "height", "24"), d(h, "viewBox", "0 0 24 24"), d(h, "fill", "none"), d(h, "stroke", "currentColor"), d(h, "stroke-width", "2"), d(h, "stroke-linecap", "round"), d(h, "stroke-linejoin", "round"), d(h, "class", "feather feather-chevron-right"), d(w, "class", "nav-btn"), w.disabled = L = /*currentPage*/
581
+ w = U(), b && b.c(), E = U(), y = v("button"), h = I("svg"), M = I("polyline"), d(o, "points", "15 18 9 12 15 6"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "24"), d(i, "height", "24"), d(i, "viewBox", "0 0 24 24"), d(i, "fill", "none"), d(i, "stroke", "currentColor"), d(i, "stroke-width", "2"), d(i, "stroke-linecap", "round"), d(i, "stroke-linejoin", "round"), d(i, "class", "feather feather-chevron-left"), d(s, "class", "nav-btn"), s.disabled = r = /*currentPage*/
582
+ t[2] === 1, d(M, "points", "9 18 15 12 9 6"), d(h, "xmlns", "http://www.w3.org/2000/svg"), d(h, "width", "24"), d(h, "height", "24"), d(h, "viewBox", "0 0 24 24"), d(h, "fill", "none"), d(h, "stroke", "currentColor"), d(h, "stroke-width", "2"), d(h, "stroke-linecap", "round"), d(h, "stroke-linejoin", "round"), d(h, "class", "feather feather-chevron-right"), d(y, "class", "nav-btn"), y.disabled = L = /*currentPage*/
581
583
  t[2] === /*totalpages*/
582
584
  t[0], d(n, "class", "pagination");
583
585
  },
@@ -585,7 +587,7 @@ function Pt(t) {
585
587
  x(f, e, k), p(e, n), p(n, s), p(s, i), p(i, o), p(n, l), m && m.m(n, null), p(n, u);
586
588
  for (let $ = 0; $ < g.length; $ += 1)
587
589
  g[$] && g[$].m(n, null);
588
- p(n, y), b && b.m(n, null), p(n, E), p(n, w), p(w, h), p(h, M), t[13](e), a || (V = [
590
+ p(n, w), b && b.m(n, null), p(n, E), p(n, y), p(y, h), p(h, M), t[13](e), a || (V = [
589
591
  R(
590
592
  s,
591
593
  "click",
@@ -593,7 +595,7 @@ function Pt(t) {
593
595
  t[8]
594
596
  ),
595
597
  R(
596
- w,
598
+ y,
597
599
  "click",
598
600
  /*click_handler_4*/
599
601
  t[12]
@@ -614,7 +616,7 @@ function Pt(t) {
614
616
  let $;
615
617
  for ($ = 0; $ < j.length; $ += 1) {
616
618
  const K = Z(f, j, $);
617
- g[$] ? g[$].p(K, k) : (g[$] = et(K), g[$].c(), g[$].m(n, y));
619
+ g[$] ? g[$].p(K, k) : (g[$] = et(K), g[$].c(), g[$].m(n, w));
618
620
  }
619
621
  for (; $ < g.length; $ += 1)
620
622
  g[$].d(1);
@@ -626,7 +628,7 @@ function Pt(t) {
626
628
  f[0])), _ ? b ? b.p(f, k) : (b = nt(f), b.c(), b.m(n, E)) : b && (b.d(1), b = null), k & /*currentPage, totalpages*/
627
629
  5 && L !== (L = /*currentPage*/
628
630
  f[2] === /*totalpages*/
629
- f[0]) && (w.disabled = L);
631
+ f[0]) && (y.disabled = L);
630
632
  },
631
633
  i: B,
632
634
  o: B,
@@ -652,7 +654,7 @@ function Tt(t, e, n) {
652
654
  let { clientstyling: s = "" } = e, { clientstylingurl: i = "" } = e, { mbsource: o } = e, { totalpages: r = 5 } = e, l, c = 1, u;
653
655
  u = it(c, r), mt(() => () => {
654
656
  });
655
- function y(a) {
657
+ function w(a) {
656
658
  if (a >= 1 && a <= r) {
657
659
  n(2, c = a);
658
660
  const V = new CustomEvent(
@@ -666,7 +668,7 @@ function Tt(t, e, n) {
666
668
  document.dispatchEvent(V);
667
669
  }
668
670
  }
669
- const _ = () => y(c - 1), E = () => y(1), w = (a) => y(a), h = () => y(+r), M = () => y(c + 1);
671
+ const _ = () => w(c - 1), E = () => w(1), y = (a) => w(a), h = () => w(+r), M = () => w(c + 1);
670
672
  function L(a) {
671
673
  J[a ? "unshift" : "push"](() => {
672
674
  l = a, n(1, l);
@@ -685,19 +687,19 @@ function Tt(t, e, n) {
685
687
  l,
686
688
  c,
687
689
  u,
688
- y,
690
+ w,
689
691
  s,
690
692
  i,
691
693
  o,
692
694
  _,
693
695
  E,
694
- w,
696
+ y,
695
697
  h,
696
698
  M,
697
699
  L
698
700
  ];
699
701
  }
700
- class Rt extends St {
702
+ class Rt extends At {
701
703
  constructor(e) {
702
704
  super(), Lt(
703
705
  this,
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPagination-BbvO-H_R.cjs")).then(({default:t})=>{!customElements.get("cashier-pagination")&&customElements.define("cashier-pagination",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPagination-D48ivfP7.cjs")).then(({default:t})=>{!customElements.get("cashier-pagination")&&customElements.define("cashier-pagination",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CashierPagination-d_Cd_6ld.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CashierPagination-DpkK4Nxf.js").then(({ default: t }) => {
14
14
  !customElements.get("cashier-pagination") && customElements.define("cashier-pagination", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CashierPagination-Wlxe9Kkx.js";
1
+ import { C as s } from "../components/CashierPagination-HdwkE67R.js";
2
2
  function i(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-pagination",
3
- "version": "1.85.16",
3
+ "version": "1.85.18",
4
4
  "type": "module",
5
5
  "main": "esnext/cashier-pagination.js",
6
6
  "module": "esnext/cashier-pagination.js",