@htmlbricks/hb-page-invoice 0.20.17 → 0.50.0-alpha.10

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/main.iife.js ADDED
@@ -0,0 +1,89 @@
1
+ var rs=Object.defineProperty;var pn=A=>{throw TypeError(A)};var ns=(A,Y,J)=>Y in A?rs(A,Y,{enumerable:!0,configurable:!0,writable:!0,value:J}):A[Y]=J;var fe=(A,Y,J)=>ns(A,typeof Y!="symbol"?Y+"":Y,J),_n=(A,Y,J)=>Y.has(A)||pn("Cannot "+J);var ne=(A,Y,J)=>(_n(A,Y,"read from private field"),J?J.call(A):Y.get(A)),Qt=(A,Y,J)=>Y.has(A)?pn("Cannot add the same private member more than once"):Y instanceof WeakSet?Y.add(A):Y.set(A,J),er=(A,Y,J,at)=>(_n(A,Y,"write to private field"),at?at.call(A,J):Y.set(A,J),J);(function(A){"use strict";var we,oe;const Y="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Y);const J=1,at=4,mn=8,gn=16,bn=1,yn=2,tr="[",rr="[!",nr="]",Xe={},ee=Symbol(),Ot=!1,ue=2,ir=4,kt=8,zt=16,_e=32,qe=64,ot=128,ae=256,ut=512,te=1024,me=2048,He=4096,Fe=8192,lt=16384,$n=32768,Dt=65536,wn=1<<19,sr=1<<20,ft=Symbol("$state"),ar=Symbol("legacy props"),xn=Symbol("");var or=Array.isArray,En=Array.prototype.indexOf,Sn=Array.from,ct=Object.keys,dt=Object.defineProperty,Ce=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,Mn=Object.prototype,On=Array.prototype,ur=Object.getPrototypeOf;function kn(e){for(var t=0;t<e.length;t++)e[t]()}let vt=!1,Nt=[];function lr(){vt=!1;const e=Nt.slice();Nt=[],kn(e)}function zn(e){vt||(vt=!0,queueMicrotask(lr)),Nt.push(e)}function Dn(){vt&&lr()}function fr(e){return e===this.v}function Nn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cr(e){return!Nn(e,this.v)}function Pn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function An(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Rn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Cn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function In(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ln(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function jn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qn(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Hn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Fn=!1;function ce(e,t){var r={f:0,v:e,reactions:null,equals:fr,rv:0,wv:0};return r}function ht(e){return Vn(ce(e))}function dr(e,t=!1){const r=ce(e);return t||(r.equals=cr),r}function Vn(e){return D!==null&&!de&&D.f&ue&&(ve===null?Zn([e]):ve.push(e)),e}function B(e,t){return D!==null&&!de&&Hr()&&D.f&(ue|zt)&&(ve===null||!ve.includes(e))&&Hn(),Un(e,t)}function Un(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Sr(),vr(e,me),P!==null&&P.f&te&&!(P.f&(_e|qe))&&(ye===null?Qn([e]):ye.push(e))),t}function vr(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,n=0;n<i;n++){var s=r[n],a=s.f;a&me||($e(s,t),a&(te|ae)&&(a&ue?vr(s,He):yt(s)))}}function Se(e){var t=ue|me,r=D!==null&&D.f&ue?D:null;return P===null||r!==null&&r.f&ae?t|=ae:P.f|=sr,{ctx:se,deps:null,effects:null,equals:fr,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??P}}function hr(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ze(t[r])}}function Bn(e){for(var t=e.parent;t!==null;){if(!(t.f&ue))return t;t=t.parent}return null}function Wn(e){var t,r=P;Oe(Bn(e));try{hr(e),t=Mr(e)}finally{Oe(r)}return t}function pr(e){var t=Wn(e),r=(ke||e.f&ae)&&e.deps!==null?He:te;$e(e,r),e.equals(t)||(e.v=t,e.wv=Sr())}function Pt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let U=!1;function Te(e){U=e}let H;function ge(e){if(e===null)throw Pt(),Xe;return H=e}function At(){return ge(Le(H))}function M(e){if(U){if(Le(H)!==null)throw Pt(),Xe;H=e}}function Jn(){for(var e=0,t=H;;){if(t.nodeType===8){var r=t.data;if(r===nr){if(e===0)return t;e-=1}else(r===tr||r===rr)&&(e+=1)}var i=Le(t);t.remove(),t=i}}function be(e,t=null,r){if(typeof e!="object"||e===null||ft in e)return e;const i=ur(e);if(i!==Mn&&i!==On)return e;var n=new Map,s=or(e),a=ce(0);s&&n.set("length",ce(e.length));var u;return new Proxy(e,{defineProperty(l,o,h){(!("value"in h)||h.configurable===!1||h.enumerable===!1||h.writable===!1)&&jn();var f=n.get(o);return f===void 0?(f=ce(h.value),n.set(o,f)):B(f,be(h.value,u)),!0},deleteProperty(l,o){var h=n.get(o);if(h===void 0)o in l&&n.set(o,ce(ee));else{if(s&&typeof o=="string"){var f=n.get("length"),d=Number(o);Number.isInteger(d)&&d<f.v&&B(f,d)}B(h,ee),_r(a)}return!0},get(l,o,h){var w;if(o===ft)return e;var f=n.get(o),d=o in l;if(f===void 0&&(!d||(w=Ce(l,o))!=null&&w.writable)&&(f=ce(be(d?l[o]:ee,u)),n.set(o,f)),f!==void 0){var m=N(f);return m===ee?void 0:m}return Reflect.get(l,o,h)},getOwnPropertyDescriptor(l,o){var h=Reflect.getOwnPropertyDescriptor(l,o);if(h&&"value"in h){var f=n.get(o);f&&(h.value=N(f))}else if(h===void 0){var d=n.get(o),m=d==null?void 0:d.v;if(d!==void 0&&m!==ee)return{enumerable:!0,configurable:!0,value:m,writable:!0}}return h},has(l,o){var m;if(o===ft)return!0;var h=n.get(o),f=h!==void 0&&h.v!==ee||Reflect.has(l,o);if(h!==void 0||P!==null&&(!f||(m=Ce(l,o))!=null&&m.writable)){h===void 0&&(h=ce(f?be(l[o],u):ee),n.set(o,h));var d=N(h);if(d===ee)return!1}return f},set(l,o,h,f){var V;var d=n.get(o),m=o in l;if(s&&o==="length")for(var w=h;w<d.v;w+=1){var x=n.get(w+"");x!==void 0?B(x,ee):w in l&&(x=ce(ee),n.set(w+"",x))}d===void 0?(!m||(V=Ce(l,o))!=null&&V.writable)&&(d=ce(void 0),B(d,be(h,u)),n.set(o,d)):(m=d.v!==ee,B(d,be(h,u)));var R=Reflect.getOwnPropertyDescriptor(l,o);if(R!=null&&R.set&&R.set.call(f,h),!m){if(s&&typeof o=="string"){var X=n.get("length"),I=Number(o);Number.isInteger(I)&&I>=X.v&&B(X,I+1)}_r(a)}return!0},ownKeys(l){N(a);var o=Reflect.ownKeys(l).filter(d=>{var m=n.get(d);return m===void 0||m.v!==ee});for(var[h,f]of n)f.v!==ee&&!(h in l)&&o.push(h);return o},setPrototypeOf(){Yn()}})}function _r(e,t=1){B(e,e.v+t)}var mr,gr,br,yr;function Rt(){if(mr===void 0){mr=window,gr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;br=Ce(t,"firstChild").get,yr=Ce(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Ie(e=""){return document.createTextNode(e)}function Ve(e){return br.call(e)}function Le(e){return yr.call(e)}function O(e,t){if(!U)return Ve(e);var r=Ve(H);if(r===null)r=H.appendChild(Ie());else if(t&&r.nodeType!==3){var i=Ie();return r==null||r.before(i),ge(i),i}return ge(r),r}function Gn(e,t){if(!U){var r=Ve(e);return r instanceof Comment&&r.data===""?Le(r):r}return H}function F(e,t=1,r=!1){let i=U?H:e;for(var n;t--;)n=i,i=Le(i);if(!U)return i;var s=i==null?void 0:i.nodeType;if(r&&s!==3){var a=Ie();return i===null?n==null||n.after(a):i.before(a),ge(a),a}return ge(i),i}function Xn(e){e.textContent=""}const $r=0,Kn=1;let pt=!1,_t=$r,Ke=!1,Ze=null,Ue=!1,Ct=!1;function wr(e){Ue=e}function xr(e){Ct=e}let je=[],Be=0,is=[],D=null,de=!1;function Me(e){D=e}let P=null;function Oe(e){P=e}let ve=null;function Zn(e){ve=e}let Z=null,ie=0,ye=null;function Qn(e){ye=e}let Er=1,mt=0,ke=!1;function Sr(){return++Er}function Qe(e){var f;var t=e.f;if(t&me)return!0;if(t&He){var r=e.deps,i=(t&ae)!==0;if(r!==null){var n,s,a=(t&ut)!==0,u=i&&P!==null&&!ke,l=r.length;if(a||u){var o=e,h=o.parent;for(n=0;n<l;n++)s=r[n],(a||!((f=s==null?void 0:s.reactions)!=null&&f.includes(o)))&&(s.reactions??(s.reactions=[])).push(o);a&&(o.f^=ut),u&&h!==null&&!(h.f&ae)&&(o.f^=ae)}for(n=0;n<l;n++)if(s=r[n],Qe(s)&&pr(s),s.wv>e.wv)return!0}(!i||P!==null&&!ke)&&$e(e,te)}return!1}function ei(e,t){for(var r=t;r!==null;){if(r.f&ot)try{r.fn(e);return}catch{r.f^=ot}r=r.parent}throw pt=!1,e}function ti(e){return(e.f&lt)===0&&(e.parent===null||(e.parent.f&ot)===0)}function gt(e,t,r,i){if(pt){if(r===null&&(pt=!1),ti(t))throw e;return}r!==null&&(pt=!0);{ei(e,t);return}}function Tr(e,t,r=!0){var i=e.reactions;if(i!==null)for(var n=0;n<i.length;n++){var s=i[n];s.f&ue?Tr(s,t,!1):t===s&&(r?$e(s,me):s.f&te&&$e(s,He),yt(s))}}function Mr(e){var m;var t=Z,r=ie,i=ye,n=D,s=ke,a=ve,u=se,l=de,o=e.f;Z=null,ie=0,ye=null,D=o&(_e|qe)?null:e,ke=(o&ae)!==0&&(!Ue||n===null||l),ve=null,jr(e.ctx),de=!1,mt++;try{var h=(0,e.fn)(),f=e.deps;if(Z!==null){var d;if(bt(e,ie),f!==null&&ie>0)for(f.length=ie+Z.length,d=0;d<Z.length;d++)f[ie+d]=Z[d];else e.deps=f=Z;if(!ke)for(d=ie;d<f.length;d++)((m=f[d]).reactions??(m.reactions=[])).push(e)}else f!==null&&ie<f.length&&(bt(e,ie),f.length=ie);if(Hr()&&ye!==null&&!de&&f!==null&&!(e.f&(ue|He|me)))for(d=0;d<ye.length;d++)Tr(ye[d],e);return n!==null&&mt++,h}finally{Z=t,ie=r,ye=i,D=n,ke=s,ve=a,jr(u),de=l}}function ri(e,t){let r=t.reactions;if(r!==null){var i=En.call(r,e);if(i!==-1){var n=r.length-1;n===0?r=t.reactions=null:(r[i]=r[n],r.pop())}}r===null&&t.f&ue&&(Z===null||!Z.includes(t))&&($e(t,He),t.f&(ae|ut)||(t.f^=ut),hr(t),bt(t,0))}function bt(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ri(e,r[i])}function It(e){var t=e.f;if(!(t&lt)){$e(e,te);var r=P,i=se;P=e;try{t&zt?vi(e):Ar(e),Pr(e);var n=Mr(e);e.teardown=typeof n=="function"?n:null,e.wv=Er;var s=e.deps,a;Ot&&Fn&&e.f&me}catch(u){gt(u,e,r,i||e.ctx)}finally{P=r}}}function Or(){if(Be>1e3){Be=0;try{Cn()}catch(e){if(Ze!==null)gt(e,Ze,null);else throw e}}Be++}function kr(e){var t=e.length;if(t!==0){Or();var r=Ue;Ue=!0;try{for(var i=0;i<t;i++){var n=e[i];n.f&te||(n.f^=te);var s=si(n);ni(s)}}finally{Ue=r}}}function ni(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var i=e[r];if(!(i.f&(lt|Fe)))try{Qe(i)&&(It(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Rr(i):i.fn=null))}catch(n){gt(n,i,null,i.ctx)}}}function ii(){if(Ke=!1,Be>1001)return;const e=je;je=[],kr(e),Ke||(Be=0,Ze=null)}function yt(e){_t===$r&&(Ke||(Ke=!0,queueMicrotask(ii))),Ze=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(qe|_e)){if(!(r&te))return;t.f^=te}}je.push(t)}function si(e){var t=[],r=e.first;e:for(;r!==null;){var i=r.f,n=(i&_e)!==0,s=n&&(i&te)!==0,a=r.next;if(!s&&!(i&Fe)){if(i&ir)t.push(r);else if(n)r.f^=te;else{var u=D;try{D=r,Qe(r)&&It(r)}catch(h){gt(h,r,null,r.ctx)}finally{D=u}}var l=r.first;if(l!==null){r=l;continue}}if(a===null){let h=r.parent;for(;h!==null;){if(e===h)break e;var o=h.next;if(o!==null){r=o;continue e}h=h.parent}}r=a}return t}function Ye(e){var t=_t,r=je;try{Or();const n=[];_t=Kn,je=n,Ke=!1,kr(r);var i=e==null?void 0:e();return Dn(),(je.length>0||n.length>0)&&Ye(),Be=0,Ze=null,i}finally{_t=t,je=r}}function N(e){var t=e.f,r=(t&ue)!==0;if(D!==null&&!de){ve!==null&&ve.includes(e)&&qn();var i=D.deps;e.rv<mt&&(e.rv=mt,Z===null&&i!==null&&i[ie]===e?ie++:Z===null?Z=[e]:(!ke||!Z.includes(e))&&Z.push(e))}else if(r&&e.deps===null&&e.effects===null){var n=e,s=n.parent;s!==null&&!(s.f&ae)&&(n.f^=ae)}return r&&(n=e,Qe(n)&&pr(n)),e.v}function zr(e){var t=de;try{return de=!0,e()}finally{de=t}}const ai=-7169;function $e(e,t){e.f=e.f&ai|t}function oi(e){P===null&&D===null&&Rn(),D!==null&&D.f&ae&&P===null&&An(),Ct&&Pn()}function ui(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function We(e,t,r,i=!0){var n=(e&qe)!==0,s=P,a={ctx:se,deps:null,nodes_start:null,nodes_end:null,f:e|me,first:null,fn:t,last:null,next:null,parent:n?null:s,prev:null,teardown:null,transitions:null,wv:0};if(r){var u=Ue;try{wr(!0),It(a),a.f|=$n}catch(h){throw ze(a),h}finally{wr(u)}}else t!==null&&yt(a);var l=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(sr|ot))===0;if(!l&&!n&&i&&(s!==null&&ui(a,s),D!==null&&D.f&ue)){var o=D;(o.effects??(o.effects=[])).push(a)}return a}function li(e){oi();var t=P!==null&&(P.f&_e)!==0&&se!==null&&!se.m;if(t){var r=se;(r.e??(r.e=[])).push({fn:e,effect:P,reaction:D})}else{var i=Dr(e);return i}}function fi(e){const t=We(qe,e,!0);return()=>{ze(t)}}function ci(e){const t=We(qe,e,!0);return(r={})=>new Promise(i=>{r.outro?jt(t,()=>{ze(t),i(void 0)}):(ze(t),i(void 0))})}function Dr(e){return We(ir,e,!1)}function di(e){return We(kt,e,!0)}function $t(e,t=[],r=Se){const i=t.map(r);return Nr(()=>e(...i.map(N)))}function Nr(e,t=0){return We(kt|zt|t,e,!0)}function Lt(e,t=!0){return We(kt|_e,e,!0,t)}function Pr(e){var t=e.teardown;if(t!==null){const r=Ct,i=D;xr(!0),Me(null);try{t.call(null)}finally{xr(r),Me(i)}}}function Ar(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var i=r.next;ze(r,t),r=i}}function vi(e){for(var t=e.first;t!==null;){var r=t.next;t.f&_e||ze(t),t=r}}function ze(e,t=!0){var r=!1;if((t||e.f&wn)&&e.nodes_start!==null){for(var i=e.nodes_start,n=e.nodes_end;i!==null;){var s=i===n?null:Le(i);i.remove(),i=s}r=!0}Ar(e,t&&!r),bt(e,0),$e(e,lt);var a=e.transitions;if(a!==null)for(const l of a)l.stop();Pr(e);var u=e.parent;u!==null&&u.first!==null&&Rr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Rr(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function jt(e,t){var r=[];Cr(e,r,!0),hi(r,()=>{ze(e),t&&t()})}function hi(e,t){var r=e.length;if(r>0){var i=()=>--r||t();for(var n of e)n.out(i)}else t()}function Cr(e,t,r){if(!(e.f&Fe)){if(e.f^=Fe,e.transitions!==null)for(const a of e.transitions)(a.is_global||r)&&t.push(a);for(var i=e.first;i!==null;){var n=i.next,s=(i.f&Dt)!==0||(i.f&_e)!==0;Cr(i,t,s?r:!1),i=n}}}function Ir(e){Lr(e,!0)}function Lr(e,t){if(e.f&Fe){e.f^=Fe,e.f&te||(e.f^=te),Qe(e)&&($e(e,me),yt(e));for(var r=e.first;r!==null;){var i=r.next,n=(r.f&Dt)!==0||(r.f&_e)!==0;Lr(r,n?t:!1),r=i}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let se=null;function jr(e){se=e}function Yr(e,t=!1,r){se={p:se,c:null,e:null,m:!1,s:e,x:null,l:null}}function qr(e){const t=se;if(t!==null){e!==void 0&&(t.x=e);const a=t.e;if(a!==null){var r=P,i=D;t.e=null;try{for(var n=0;n<a.length;n++){var s=a[n];Oe(s.effect),Me(s.reaction),Dr(s.fn)}}finally{Oe(r),Me(i)}}se=t.p,t.m=!0}return e||{}}function Hr(){return!0}const pi=["touchstart","touchmove"];function _i(e){return pi.includes(e)}const Fr=new Set,Yt=new Set;function mi(e){for(var t=0;t<e.length;t++)Fr.add(e[t]);for(var r of Yt)r(e)}function wt(e){var I;var t=this,r=t.ownerDocument,i=e.type,n=((I=e.composedPath)==null?void 0:I.call(e))||[],s=n[0]||e.target,a=0,u=e.__root;if(u){var l=n.indexOf(u);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var o=n.indexOf(t);if(o===-1)return;l<=o&&(a=l)}if(s=n[a]||e.target,s!==t){dt(e,"currentTarget",{configurable:!0,get(){return s||r}});var h=D,f=P;Me(null),Oe(null);try{for(var d,m=[];s!==null;){var w=s.assignedSlot||s.parentNode||s.host||null;try{var x=s["__"+i];if(x!==void 0&&!s.disabled)if(or(x)){var[R,...X]=x;R.apply(s,[e,...X])}else x.call(s,e)}catch(V){d?m.push(V):d=V}if(e.cancelBubble||w===t||w===null)break;s=w}if(d){for(let V of m)queueMicrotask(()=>{throw V});throw d}}finally{e.__root=t,delete e.currentTarget,Me(h),Oe(f)}}}function gi(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function De(e,t){var r=P;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function Vr(e,t){var r=(t&bn)!==0,i=(t&yn)!==0,n,s=!e.startsWith("<!>");return()=>{if(U)return De(H,null),H;n===void 0&&(n=gi(s?e:"<!>"+e),r||(n=Ve(n)));var a=i||gr?document.importNode(n,!0):n.cloneNode(!0);if(r){var u=Ve(a),l=a.lastChild;De(u,l)}else De(a,a);return a}}function bi(e=""){if(!U){var t=Ie(e+"");return De(t,t),t}var r=H;return r.nodeType!==3&&(r.before(r=Ie()),ge(r)),De(r,r),r}function yi(){if(U)return De(H,null),H;var e=document.createDocumentFragment(),t=document.createComment(""),r=Ie();return e.append(t,r),De(t,r),e}function et(e,t){if(U){P.nodes_end=H,At();return}e!==null&&e.before(t)}function re(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function Ur(e,t){return Br(e,t)}function $i(e,t){Rt(),t.intro=t.intro??!1;const r=t.target,i=U,n=H;try{for(var s=Ve(r);s&&(s.nodeType!==8||s.data!==tr);)s=Le(s);if(!s)throw Xe;Te(!0),ge(s),At();const a=Br(e,{...t,anchor:s});if(H===null||H.nodeType!==8||H.data!==nr)throw Pt(),Xe;return Te(!1),a}catch(a){if(a===Xe)return t.recover===!1&&In(),Rt(),Xn(r),Te(!1),Ur(e,t);throw a}finally{Te(i),ge(n)}}const Je=new Map;function Br(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:a=!0}){Rt();var u=new Set,l=f=>{for(var d=0;d<f.length;d++){var m=f[d];if(!u.has(m)){u.add(m);var w=_i(m);t.addEventListener(m,wt,{passive:w});var x=Je.get(m);x===void 0?(document.addEventListener(m,wt,{passive:w}),Je.set(m,1)):Je.set(m,x+1)}}};l(Sn(Fr)),Yt.add(l);var o=void 0,h=ci(()=>{var f=r??t.appendChild(Ie());return Lt(()=>{if(s){Yr({});var d=se;d.c=s}n&&(i.$$events=n),U&&De(f,null),o=e(f,i)||{},U&&(P.nodes_end=H),s&&qr()}),()=>{var w;for(var d of u){t.removeEventListener(d,wt);var m=Je.get(d);--m===0?(document.removeEventListener(d,wt),Je.delete(d)):Je.set(d,m)}Yt.delete(l),f!==r&&((w=f.parentNode)==null||w.removeChild(f))}});return qt.set(o,h),o}let qt=new WeakMap;function wi(e,t){const r=qt.get(e);return r?(qt.delete(e),r(t)):Promise.resolve()}function Wr(e,t,r=!1){U&&At();var i=e,n=null,s=null,a=ee,u=r?Dt:0,l=!1;const o=(f,d=!0)=>{l=!0,h(d,f)},h=(f,d)=>{if(a===(a=f))return;let m=!1;if(U){const w=i.data===rr;!!a===w&&(i=Jn(),ge(i),Te(!1),m=!0)}a?(n?Ir(n):d&&(n=Lt(()=>d(i))),s&&jt(s,()=>{s=null})):(s?Ir(s):d&&(s=Lt(()=>d(i))),n&&jt(n,()=>{n=null})),m&&Te(!0)};Nr(()=>{l=!1,t(o),l||h(null,null)},u),U&&(i=H)}function xi(e,t){zn(()=>{var r=e.getRootNode(),i=r.host?r:r.head??r.ownerDocument.head;if(!i.querySelector("#"+t.hash)){const n=document.createElement("style");n.id=t.hash,n.textContent=t.code,i.appendChild(n)}})}function Jr(e,t,r,i){var n=e.__attributes??(e.__attributes={});U&&(n[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||n[t]!==(n[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[xn]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Gr(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function tt(e,t,r){var i=D,n=P;let s=U;U&&Te(!1),Me(null),Oe(null);try{(Ht.has(e.nodeName)||!customElements||customElements.get(e.tagName.toLowerCase())?Gr(e).includes(t):r&&typeof r=="object")?e[t]=r:Jr(e,t,r==null?r:String(r))}finally{Me(i),Oe(n),s&&Te(!0)}}var Ht=new Map;function Gr(e){var t=Ht.get(e.nodeName);if(t)return t;Ht.set(e.nodeName,t=[]);for(var r,i=e,n=Element.prototype;n!==i;){r=Tn(i);for(var s in r)r[s].set&&t.push(s);i=ur(i)}return t}let xt=!1;function Ei(e){var t=xt;try{return xt=!1,[e(),xt]}finally{xt=t}}function rt(e,t,r,i){var z;var n=(r&J)!==0,s=!0,a=(r&mn)!==0,u=(r&gn)!==0,l=!1,o;a?[o,l]=Ei(()=>e[t]):o=e[t];var h=ft in e||ar in e,f=a&&(((z=Ce(e,t))==null?void 0:z.set)??(h&&t in e&&(T=>e[t]=T)))||void 0,d=i,m=!0,w=!1,x=()=>(w=!0,m&&(m=!1,u?d=zr(i):d=i),d);o===void 0&&i!==void 0&&(f&&s&&Ln(),o=x(),f&&f(o));var R;if(R=()=>{var T=e[t];return T===void 0?x():(m=!0,w=!1,T)},!(r&at))return R;if(f){var X=e.$$legacy;return function(T,C){return arguments.length>0?((!C||X||l)&&f(C?R():T),T):R()}}var I=!1,V=dr(o),b=Se(()=>{var T=R(),C=N(V);return I?(I=!1,C):V.v=T});return n||(b.equals=cr),function(T,C){if(arguments.length>0){const K=C?N(b):a?be(T):T;return b.equals(K)||(I=!0,B(V,K),w&&d!==void 0&&(d=K),zr(()=>N(b))),T}return N(b)}}function Si(e){return new Ti(e)}class Ti{constructor(t){Qt(this,we);Qt(this,oe);var s;var r=new Map,i=(a,u)=>{var l=dr(u);return r.set(a,l),l};const n=new Proxy({...t.props||{},$$events:{}},{get(a,u){return N(r.get(u)??i(u,Reflect.get(a,u)))},has(a,u){return u===ar?!0:(N(r.get(u)??i(u,Reflect.get(a,u))),Reflect.has(a,u))},set(a,u,l){return B(r.get(u)??i(u,l),l),Reflect.set(a,u,l)}});er(this,oe,(t.hydrate?$i:Ur)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&Ye(),er(this,we,n.$$events);for(const a of Object.keys(ne(this,oe)))a==="$set"||a==="$destroy"||a==="$on"||dt(this,a,{get(){return ne(this,oe)[a]},set(u){ne(this,oe)[a]=u},enumerable:!0});ne(this,oe).$set=a=>{Object.assign(n,a)},ne(this,oe).$destroy=()=>{wi(ne(this,oe))}}$set(t){ne(this,oe).$set(t)}$on(t,r){ne(this,we)[t]=ne(this,we)[t]||[];const i=(...n)=>r.call(this,...n);return ne(this,we)[t].push(i),()=>{ne(this,we)[t]=ne(this,we)[t].filter(n=>n!==i)}}$destroy(){ne(this,oe).$destroy()}}we=new WeakMap,oe=new WeakMap;let Xr;typeof HTMLElement=="function"&&(Xr=class extends HTMLElement{constructor(t,r,i){super();fe(this,"$$ctor");fe(this,"$$s");fe(this,"$$c");fe(this,"$$cn",!1);fe(this,"$$d",{});fe(this,"$$r",!1);fe(this,"$$p_d",{});fe(this,"$$l",{});fe(this,"$$l_u",new Map);fe(this,"$$me");this.$$ctor=t,this.$$s=r,i&&this.attachShadow({mode:"open"})}addEventListener(t,r,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const n=this.$$c.$on(t,r);this.$$l_u.set(r,n)}super.addEventListener(t,r,i)}removeEventListener(t,r,i){if(super.removeEventListener(t,r,i),this.$$c){const n=this.$$l_u.get(r);n&&(n(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(n){return s=>{const a=document.createElement("slot");n!=="default"&&(a.name=n),et(s,a)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},i=Mi(this);for(const n of this.$$s)n in i&&(n==="default"&&!this.$$d.children?(this.$$d.children=t(n),r.default=!0):r[n]=t(n));for(const n of this.attributes){const s=this.$$g_p(n.name);s in this.$$d||(this.$$d[s]=Et(s,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Si({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=fi(()=>{di(()=>{var n;this.$$r=!0;for(const s of ct(this.$$c)){if(!((n=this.$$p_d[s])!=null&&n.reflect))continue;this.$$d[s]=this.$$c[s];const a=Et(s,this.$$d[s],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,a)}this.$$r=!1})});for(const n in this.$$l)for(const s of this.$$l[n]){const a=this.$$c.$on(n,s);this.$$l_u.set(s,a)}this.$$l={}}}attributeChangedCallback(t,r,i){var n;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Et(t,i,this.$$p_d,"toProp"),(n=this.$$c)==null||n.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Et(e,t,r,i){var s;const n=(s=r[e])==null?void 0:s.type;if(t=n==="Boolean"&&typeof t!="boolean"?t!=null:t,!i||!r[e])return t;if(i==="toAttribute")switch(n){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(n){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Mi(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Oi(e,t,r,i,n,s){let a=class extends Xr{constructor(){super(e,r,n),this.$$p_d=t}static get observedAttributes(){return ct(t).map(u=>(t[u].attribute||u).toLowerCase())}};return ct(t).forEach(u=>{dt(a.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(l){var f;l=Et(u,l,t),this.$$d[u]=l;var o=this.$$c;if(o){var h=(f=Ce(o,u))==null?void 0:f.get;h?o[u]=l:o.$set({[u]:l})}}})}),i.forEach(u=>{dt(a.prototype,u,{get(){var l;return(l=this.$$c)==null?void 0:l[u]}})}),e.element=a,a}function ki(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(r),setTimeout(()=>{t.print(),t.close()},2e3)}function zi(e){const t=window.open("","PRINT","height=400,width=600");t.document.write("<html><head><title>"+document.title+"</title>"),t.document.write("</head><body >"),t.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(e.items)}' headers='${JSON.stringify(e.headers)}'></hb-page-invoice>`),t.document.write("</body></html>");const r=document.createElement("script");r.id="hb-page-invoice-script",r.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${e.version}/release/release.js`,location.href.includes("localhost")&&(r.src="http://localhost:6006/page-invoice/dist/release.js"),t.document.head.appendChild(r)}const Ft={version:"0.50.0-alpha.10"};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var St={exports:{}},Di=St.exports,Kr;function Zr(){return Kr||(Kr=1,function(e,t){(function(r,i){e.exports=i()})(Di,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",a="second",u="minute",l="hour",o="day",h="week",f="month",d="quarter",m="year",w="date",x="Invalid Date",R=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,X=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(c){var v=["th","st","nd","rd"],p=c%100;return"["+c+(v[(p-20)%10]||v[p]||v[0])+"]"}},V=function(c,v,p){var g=String(c);return!g||g.length>=v?c:""+Array(v+1-g.length).join(p)+c},b={s:V,z:function(c){var v=-c.utcOffset(),p=Math.abs(v),g=Math.floor(p/60),_=p%60;return(v<=0?"+":"-")+V(g,2,"0")+":"+V(_,2,"0")},m:function c(v,p){if(v.date()<p.date())return-c(p,v);var g=12*(p.year()-v.year())+(p.month()-v.month()),_=v.clone().add(g,f),y=p-_<0,$=v.clone().add(g+(y?-1:1),f);return+(-(g+(p-_)/(y?_-$:$-_))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:f,y:m,w:h,d:o,D:w,h:l,m:u,s:a,ms:s,Q:d}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return c===void 0}},z="en",T={};T[z]=I;var C="$isDayjsObject",K=function(c){return c instanceof Ne||!(!c||!c[C])},he=function c(v,p,g){var _;if(!v)return z;if(typeof v=="string"){var y=v.toLowerCase();T[y]&&(_=y),p&&(T[y]=p,_=y);var $=v.split("-");if(!_&&$.length>1)return c($[0])}else{var k=v.name;T[k]=v,_=k}return!g&&_&&(z=_),_||!g&&z},L=function(c,v){if(K(c))return c.clone();var p=typeof v=="object"?v:{};return p.date=c,p.args=arguments,new Ne(p)},E=b;E.l=he,E.i=K,E.w=function(c,v){return L(c,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var Ne=function(){function c(p){this.$L=he(p.locale,null,!0),this.parse(p),this.$x=this.$x||p.x||{},this[C]=!0}var v=c.prototype;return v.parse=function(p){this.$d=function(g){var _=g.date,y=g.utc;if(_===null)return new Date(NaN);if(E.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var $=_.match(R);if($){var k=$[2]-1||0,j=($[7]||"0").substring(0,3);return y?new Date(Date.UTC($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)):new Date($[1],k,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)}}return new Date(_)}(p),this.init()},v.init=function(){var p=this.$d;this.$y=p.getFullYear(),this.$M=p.getMonth(),this.$D=p.getDate(),this.$W=p.getDay(),this.$H=p.getHours(),this.$m=p.getMinutes(),this.$s=p.getSeconds(),this.$ms=p.getMilliseconds()},v.$utils=function(){return E},v.isValid=function(){return this.$d.toString()!==x},v.isSame=function(p,g){var _=L(p);return this.startOf(g)<=_&&_<=this.endOf(g)},v.isAfter=function(p,g){return L(p)<this.startOf(g)},v.isBefore=function(p,g){return this.endOf(g)<L(p)},v.$g=function(p,g,_){return E.u(p)?this[g]:this.set(_,p)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(p,g){var _=this,y=!!E.u(g)||g,$=E.p(p),k=function(Ee,G){var pe=E.w(_.$u?Date.UTC(_.$y,G,Ee):new Date(_.$y,G,Ee),_);return y?pe:pe.endOf(o)},j=function(Ee,G){return E.w(_.toDate()[Ee].apply(_.toDate("s"),(y?[0,0,0,0]:[23,59,59,999]).slice(G)),_)},q=this.$W,W=this.$M,Q=this.$D,Pe="set"+(this.$u?"UTC":"");switch($){case m:return y?k(1,0):k(31,11);case f:return y?k(1,W):k(0,W+1);case h:var le=this.$locale().weekStart||0,xe=(q<le?q+7:q)-le;return k(y?Q-xe:Q+(6-xe),W);case o:case w:return j(Pe+"Hours",0);case l:return j(Pe+"Minutes",1);case u:return j(Pe+"Seconds",2);case a:return j(Pe+"Milliseconds",3);default:return this.clone()}},v.endOf=function(p){return this.startOf(p,!1)},v.$set=function(p,g){var _,y=E.p(p),$="set"+(this.$u?"UTC":""),k=(_={},_[o]=$+"Date",_[w]=$+"Date",_[f]=$+"Month",_[m]=$+"FullYear",_[l]=$+"Hours",_[u]=$+"Minutes",_[a]=$+"Seconds",_[s]=$+"Milliseconds",_)[y],j=y===o?this.$D+(g-this.$W):g;if(y===f||y===m){var q=this.clone().set(w,1);q.$d[k](j),q.init(),this.$d=q.set(w,Math.min(this.$D,q.daysInMonth())).$d}else k&&this.$d[k](j);return this.init(),this},v.set=function(p,g){return this.clone().$set(p,g)},v.get=function(p){return this[E.p(p)]()},v.add=function(p,g){var _,y=this;p=Number(p);var $=E.p(g),k=function(W){var Q=L(y);return E.w(Q.date(Q.date()+Math.round(W*p)),y)};if($===f)return this.set(f,this.$M+p);if($===m)return this.set(m,this.$y+p);if($===o)return k(1);if($===h)return k(7);var j=(_={},_[u]=i,_[l]=n,_[a]=r,_)[$]||1,q=this.$d.getTime()+p*j;return E.w(q,this)},v.subtract=function(p,g){return this.add(-1*p,g)},v.format=function(p){var g=this,_=this.$locale();if(!this.isValid())return _.invalidDate||x;var y=p||"YYYY-MM-DDTHH:mm:ssZ",$=E.z(this),k=this.$H,j=this.$m,q=this.$M,W=_.weekdays,Q=_.months,Pe=_.meridiem,le=function(G,pe,Ae,Re){return G&&(G[pe]||G(g,y))||Ae[pe].slice(0,Re)},xe=function(G){return E.s(k%12||12,G,"0")},Ee=Pe||function(G,pe,Ae){var Re=G<12?"AM":"PM";return Ae?Re.toLowerCase():Re};return y.replace(X,function(G,pe){return pe||function(Ae){switch(Ae){case"YY":return String(g.$y).slice(-2);case"YYYY":return E.s(g.$y,4,"0");case"M":return q+1;case"MM":return E.s(q+1,2,"0");case"MMM":return le(_.monthsShort,q,Q,3);case"MMMM":return le(Q,q);case"D":return g.$D;case"DD":return E.s(g.$D,2,"0");case"d":return String(g.$W);case"dd":return le(_.weekdaysMin,g.$W,W,2);case"ddd":return le(_.weekdaysShort,g.$W,W,3);case"dddd":return W[g.$W];case"H":return String(k);case"HH":return E.s(k,2,"0");case"h":return xe(1);case"hh":return xe(2);case"a":return Ee(k,j,!0);case"A":return Ee(k,j,!1);case"m":return String(j);case"mm":return E.s(j,2,"0");case"s":return String(g.$s);case"ss":return E.s(g.$s,2,"0");case"SSS":return E.s(g.$ms,3,"0");case"Z":return $}return null}(G)||$.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(p,g,_){var y,$=this,k=E.p(g),j=L(p),q=(j.utcOffset()-this.utcOffset())*i,W=this-j,Q=function(){return E.m($,j)};switch(k){case m:y=Q()/12;break;case f:y=Q();break;case d:y=Q()/3;break;case h:y=(W-q)/6048e5;break;case o:y=(W-q)/864e5;break;case l:y=W/n;break;case u:y=W/i;break;case a:y=W/r;break;default:y=W}return _?y:E.a(y)},v.daysInMonth=function(){return this.endOf(f).$D},v.$locale=function(){return T[this.$L]},v.locale=function(p,g){if(!p)return this.$L;var _=this.clone(),y=he(p,g,!0);return y&&(_.$L=y),_},v.clone=function(){return E.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},c}(),S=Ne.prototype;return L.prototype=S,[["$ms",s],["$s",a],["$m",u],["$H",l],["$W",o],["$M",f],["$y",m],["$D",w]].forEach(function(c){S[c[1]]=function(v){return this.$g(v,c[0],c[1])}}),L.extend=function(c,v){return c.$i||(c(v,Ne,L),c.$i=!0),L},L.locale=he,L.isDayjs=K,L.unix=function(c){return L(1e3*c)},L.en=T[z],L.Ls=T,L.p={},L})}(St)),St.exports}var Ni=Zr();const Pi=Vt(Ni);var Tt={exports:{}},Qr;function Ai(){if(Qr)return Tt.exports;Qr=1;function e(t,r=100,i={}){if(typeof t!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof t}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}=typeof i=="boolean"?{immediate:i}:i;let s,a,u,l,o;function h(){const m=s,w=a;return s=void 0,a=void 0,o=t.apply(m,w),o}function f(){const m=Date.now()-l;m<r&&m>=0?u=setTimeout(f,r-m):(u=void 0,n||(o=h()))}const d=function(...m){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,a=m,l=Date.now();const w=n&&!u;return u||(u=setTimeout(f,r)),w&&(o=h()),o};return Object.defineProperty(d,"isPending",{get(){return u!==void 0}}),d.clear=()=>{u&&(clearTimeout(u),u=void 0)},d.flush=()=>{u&&d.trigger()},d.trigger=()=>{o=h(),d.clear()},d}return Tt.exports.debounce=e,Tt.exports=e,Tt.exports}var Ri=Ai();const en=Vt(Ri);var Mt={exports:{}},Ci=Mt.exports,tn;function Ii(){return tn||(tn=1,function(e,t){(function(r,i){e.exports=i(Zr())})(Ci,function(r){function i(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var n=i(r),s={name:"it",weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un' ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(a){return a+"º"}};return n.default.locale(s,null,!0),s})}(Mt)),Mt.exports}Ii();function Li(e,t){var i,n;let r="";if(e&&(t!=null&&t.length)&&((i=Object.keys(e))!=null&&i.length)&&((n=t==null?void 0:t.filter(s=>Object.keys(e).includes(s.name)))!=null&&n.length))for(const s of Object.keys(e))(t==null?void 0:t.filter(u=>u.name===s&&u.defaultValue!==e[s]))&&(r+=`${s}:${e[s]};`);return r}function ji(e){var i;const t=((i=e==null?void 0:e.repoName.split("/"))==null?void 0:i[1])||(e==null?void 0:e.repoName);if(!t)throw new Error("wrong componentPath "+(e==null?void 0:e.repoName));if(!(e!=null&&e.version))throw new Error("wrong version "+(e==null?void 0:e.version));const r=(e==null?void 0:e.iifePath)||"main.iife.js";if(!document.getElementById(t+"-script"))try{const n=document.createElement("script");n.id=t+"-script",n.src=`https://cdn.jsdelivr.net/npm/${e.repoName}@${e.version}/${r}`,e!=null&&e.local&&location.href.includes("localhost")&&(n.src=`${e.local}`),document.head.appendChild(n)}catch(n){console.warn(n)}}var Ge={},Ut,rn;function Yi(){if(rn)return Ut;rn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,u=/^\s+|\s+$/g,l=`
2
+ `,o="/",h="*",f="",d="comment",m="declaration";Ut=function(x,R){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];R=R||{};var X=1,I=1;function V(S){var c=S.match(t);c&&(X+=c.length);var v=S.lastIndexOf(l);I=~v?S.length-v:I+S.length}function b(){var S={line:X,column:I};return function(c){return c.position=new z(S),K(),c}}function z(S){this.start=S,this.end={line:X,column:I},this.source=R.source}z.prototype.content=x;function T(S){var c=new Error(R.source+":"+X+":"+I+": "+S);if(c.reason=S,c.filename=R.source,c.line=X,c.column=I,c.source=x,!R.silent)throw c}function C(S){var c=S.exec(x);if(c){var v=c[0];return V(v),x=x.slice(v.length),c}}function K(){C(r)}function he(S){var c;for(S=S||[];c=L();)c!==!1&&S.push(c);return S}function L(){var S=b();if(!(o!=x.charAt(0)||h!=x.charAt(1))){for(var c=2;f!=x.charAt(c)&&(h!=x.charAt(c)||o!=x.charAt(c+1));)++c;if(c+=2,f===x.charAt(c-1))return T("End of comment missing");var v=x.slice(2,c-2);return I+=2,V(v),x=x.slice(c),I+=2,S({type:d,comment:v})}}function E(){var S=b(),c=C(i);if(c){if(L(),!C(n))return T("property missing ':'");var v=C(s),p=S({type:m,property:w(c[0].replace(e,f)),value:v?w(v[0].replace(e,f)):f});return C(a),p}}function Ne(){var S=[];he(S);for(var c;c=E();)c!==!1&&(S.push(c),he(S));return S}return K(),Ne()};function w(x){return x?x.replace(u,f):f}return Ut}var nn;function qi(){if(nn)return Ge;nn=1;var e=Ge&&Ge.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.default=r;var t=e(Yi());function r(i,n){var s=null;if(!i||typeof i!="string")return s;var a=(0,t.default)(i),u=typeof n=="function";return a.forEach(function(l){if(l.type==="declaration"){var o=l.property,h=l.value;u?n(o,h,l):h&&(s=s||{},s[o]=h)}}),s}return Ge}var Hi=qi();const sn=Vt(Hi),Fi=sn.default||sn,Bt={vars:[{name:"--bs-primary",valueType:"color",theme:"bootstrap",defaultValue:"#07689f"},{name:"--bs-secondary",valueType:"color",theme:"bootstrap",defaultValue:"#c9d6df"},{name:"--bs-success",valueType:"color",theme:"bootstrap",defaultValue:"#11d3bc"},{name:"--bs-info",valueType:"color",theme:"bootstrap",defaultValue:"#a2d5f2"},{name:"--bs-warning",valueType:"color",theme:"bootstrap",defaultValue:"#ffc107"},{name:"--bs-danger",valueType:"color",theme:"bootstrap",defaultValue:"#f67280"}]};var Vi=Vr('<div style="text-align:right;padding-right:60px" class="svelte-1ozupp5"><button class="btn btn-default svelte-1ozupp5"><i class="bi-printer-fill svelte-1ozupp5"></i></button> <button class="btn btn-default svelte-1ozupp5"><i class="bi-arrows-fullscreen svelte-1ozupp5"></i></button></div>'),Ui=Vr('<div id="page" class="container svelte-1ozupp5"><div class="row svelte-1ozupp5" style="margin-top:20px"><div class="col svelte-1ozupp5"><img style="height:80px;margin:0px 0px 0px 60px" alt="" class="svelte-1ozupp5"> <span style="margin:0px 40px 0px 40px" class="svelte-1ozupp5"> </span></div> <div class="col svelte-1ozupp5"><!></div></div> <div class="row svelte-1ozupp5" style="margin-top:60px"><div class="col svelte-1ozupp5"> </div> <div class="col svelte-1ozupp5"></div> <div class="col svelte-1ozupp5"> </div></div> <div class="row svelte-1ozupp5" style="margin-top:40px"><div class="col svelte-1ozupp5"><div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div></div> <div class="col svelte-1ozupp5"><div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div></div> <div class="col svelte-1ozupp5"><div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div> <div class="svelte-1ozupp5"> </div></div></div> <div class="row svelte-1ozupp5" style="margin-top:40px"><div class="col svelte-1ozupp5"><hb-table></hb-table></div></div> <div class="row svelte-1ozupp5" style="margin-top:40px"><div class="col svelte-1ozupp5"><div style="width:300px;float:right" class="svelte-1ozupp5"><div style="text-align:left;" class="svelte-1ozupp5"><div style="line-height:25px" class="svelte-1ozupp5"><span style="display:inline-block;min-width:200px;" class="svelte-1ozupp5">SubTotale:</span> </div> <div style="line-height:25px" class="svelte-1ozupp5"><span style="display:inline-block;min-width:200px;" class="svelte-1ozupp5">Tasse:</span> </div> <div style="line-height:25px;font-weight:bold" class="svelte-1ozupp5"><span style="display:inline-block;min-width:200px;" class="svelte-1ozupp5">Totale:</span> </div></div></div></div></div></div>',2);const Bi={hash:"svelte-1ozupp5",code:`@charset "UTF-8";
3
+ @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");
4
+ @import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");
5
+ /*!
6
+ * Bootstrap v5.1.0 (https://getbootstrap.com/)
7
+ * Copyright 2011-2021 The Bootstrap Authors
8
+ * Copyright 2011-2021 Twitter, Inc.
9
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
10
+ */: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: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--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;}.svelte-1ozupp5,
11
+ .svelte-1ozupp5::before,
12
+ .svelte-1ozupp5::after {box-sizing:border-box;}
13
+ @media (prefers-reduced-motion: no-preference) {:host {scroll-behavior:smooth;}
14
+ }
15
+ @media (min-width: 1200px) {
16
+ }
17
+ @media (min-width: 1200px) {
18
+ }
19
+ @media (min-width: 1200px) {
20
+ }
21
+ @media (min-width: 1200px) {
22
+ }img.svelte-1ozupp5 {vertical-align:middle;}button.svelte-1ozupp5 {border-radius:0;}button.svelte-1ozupp5:focus:not(:focus-visible) {outline:0;}
23
+ button.svelte-1ozupp5 {margin:0;font-family:inherit;font-size:inherit;line-height:inherit;}button.svelte-1ozupp5 {text-transform:none;}button.svelte-1ozupp5 {-webkit-appearance:button;}button.svelte-1ozupp5:not(:disabled) {cursor:pointer;}.svelte-1ozupp5::-moz-focus-inner {padding:0;border-style:none;}
24
+ @media (min-width: 1200px) {
25
+ }.svelte-1ozupp5::-webkit-datetime-edit-fields-wrapper,
26
+ .svelte-1ozupp5::-webkit-datetime-edit-text,
27
+ .svelte-1ozupp5::-webkit-datetime-edit-minute,
28
+ .svelte-1ozupp5::-webkit-datetime-edit-hour-field,
29
+ .svelte-1ozupp5::-webkit-datetime-edit-day-field,
30
+ .svelte-1ozupp5::-webkit-datetime-edit-month-field,
31
+ .svelte-1ozupp5::-webkit-datetime-edit-year-field {padding:0;}.svelte-1ozupp5::-webkit-inner-spin-button {height:auto;}
32
+ /* rtl:raw:
33
+ [type="tel"],
34
+ [type="url"],
35
+ [type="email"],
36
+ [type="number"] {
37
+ direction: ltr;
38
+ }
39
+ */.svelte-1ozupp5::-webkit-search-decoration {-webkit-appearance:none;}.svelte-1ozupp5::-webkit-color-swatch-wrapper {padding:0;}.svelte-1ozupp5::file-selector-button {font:inherit;}.svelte-1ozupp5::-webkit-file-upload-button {font:inherit;-webkit-appearance:button;}
40
+ @media (min-width: 1200px) {
41
+ }
42
+ @media (min-width: 1200px) {
43
+ }
44
+ @media (min-width: 1200px) {
45
+ }
46
+ @media (min-width: 1200px) {
47
+ }
48
+ @media (min-width: 1200px) {
49
+ }
50
+ @media (min-width: 1200px) {
51
+ }.container.svelte-1ozupp5 {width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto;}
52
+ @media (min-width: 576px) { .container.svelte-1ozupp5 {max-width:540px;}
53
+ }
54
+ @media (min-width: 768px) { .container.svelte-1ozupp5 {max-width:720px;}
55
+ }
56
+ @media (min-width: 992px) { .container.svelte-1ozupp5 {max-width:960px;}
57
+ }
58
+ @media (min-width: 1200px) { .container.svelte-1ozupp5 {max-width:1140px;}
59
+ }
60
+ @media (min-width: 1400px) { .container.svelte-1ozupp5 {max-width:1320px;}
61
+ }.row.svelte-1ozupp5 {--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-0.5 * var(--bs-gutter-x));margin-left:calc(-0.5 * var(--bs-gutter-x));}.row.svelte-1ozupp5 > :where(.svelte-1ozupp5) {flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * 0.5);padding-left:calc(var(--bs-gutter-x) * 0.5);margin-top:var(--bs-gutter-y);}.col.svelte-1ozupp5 {flex:1 0 0%;}
62
+ @media (min-width: 576px) {
63
+ }
64
+ @media (min-width: 768px) {
65
+ }
66
+ @media (min-width: 992px) {
67
+ }
68
+ @media (min-width: 1200px) {
69
+ }
70
+ @media (min-width: 1400px) {
71
+ }.btn.svelte-1ozupp5 {display:inline-block;font-weight:400;line-height:1.5;color:#212529;text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:1rem;border-radius:0.25rem;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;}
72
+ @media (prefers-reduced-motion: reduce) {.btn.svelte-1ozupp5 {transition:none;}
73
+ }.btn.svelte-1ozupp5:hover {color:#212529;} .btn.svelte-1ozupp5:focus {outline:0;box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);}.btn.svelte-1ozupp5:disabled {pointer-events:none;opacity:0.65;}
74
+ /* rtl:begin:remove */
75
+ /* rtl:end:remove */
76
+ @media (min-width: 576px) {
77
+ }
78
+ @media (min-width: 768px) {
79
+ }
80
+ @media (min-width: 992px) {
81
+ }
82
+ @media (min-width: 1200px) {
83
+ }
84
+ @media (min-width: 1400px) {
85
+ }
86
+ @media (min-width: 1200px) {
87
+ }
88
+ @media print {
89
+ }:host {font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px;}`};function an(e,t){Yr(t,!0),xi(e,Bi);let r=rt(t,"id",7,""),i=rt(t,"style",7,""),n=rt(t,"printer",7,"no"),s=rt(t,"items",23,()=>[]),a=rt(t,"headers",7),u=ht(""),l=ht("");const o=[{key:"desc",label:"descrizione",nosort:!0},{key:"price",label:"prezzo",nosort:!0},{key:"quantity",label:"quantità",nosort:!0},{key:"subtotal",label:"subtotal",nosort:!0},{key:"vat",label:"iva",nosort:!0},{key:"total",label:"totale",nosort:!0}];let h=Se(()=>{var b;return(b=s())==null?void 0:b.map(z=>z.unitaryPrice*(z.quantity||1)).reduce((z,T)=>z+T,0)}),f=Se(()=>Math.round(s().map(b=>b.unitaryPrice*(b.quantity||1)*b.taxPercentage*.01).reduce((b,z)=>b+z,0)*100)/100),d=Se(()=>N(h)+N(f)),m=Se(()=>s().map((b,z)=>{var C,K;return{_id:z.toString(),price:b.unitaryPrice.toString()+N(l)+" / "+(b.unit?b.unit:"unità"),desc:b.desc,quantity:((K=(C=b.quantity)==null?void 0:C.toString)==null?void 0:K.call(C))||"1",subtotal:(b.unitaryPrice*(b.quantity||1)).toString()+N(l),vat:`${(Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()} (${b.taxPercentage}%)`,total:(b.unitaryPrice*(b.quantity||1)+Math.round(b.taxPercentage*.01*b.unitaryPrice*(b.quantity||1)*100)/100).toString()+N(l)}})),w=ht(be({})),x=ht("");li(()=>{if(i()&&(B(w,be(Fi(i()))),B(x,be(Li(N(w),Bt==null?void 0:Bt.vars)))),n()||n("no"),typeof s()=="string"&&s(JSON.parse(s())),typeof a()=="string")switch(a(JSON.parse(a())),a().date||(a().date=new Date),a().category||(a().category="items"),a().country||(a().country="it"),a().country){case"it":B(u,"euro"),B(l,"€");break;case"eu":B(u,"euro"),B(l,"€");break;case"us":B(u,"dollar"),B(l,"$");break}}),ji({repoName:"@htmlbricks/hb-table",version:Ft.version});var R=yi(),X=Gn(R);{var I=b=>{var z=Ui(),T=O(z),C=O(T),K=O(C),he=F(K,2),L=O(he,!0);M(he),M(C);var E=F(C,2),Ne=O(E);{var S=it=>{var Kt=Vi(),hn=O(Kt),Qi=Se(()=>en(()=>ki({headers:a(),items:s(),version:Ft.version}),200));hn.__click=function(...Zt){var st;(st=N(Qi))==null||st.apply(this,Zt)};var es=F(hn,2),ts=Se(()=>en(()=>zi({headers:a(),items:s(),version:Ft.version}),200));es.__click=function(...Zt){var st;(st=N(ts))==null||st.apply(this,Zt)},M(Kt),et(it,Kt)};Wr(Ne,it=>{n()!=="yes"&&it(S)})}M(E),M(T);var c=F(T,2),v=O(c),p=O(v);M(v);var g=F(v,4),_=O(g);M(g),M(c);var y=F(c,2),$=O(y),k=O($),j=O(k,!0);M(k);var q=F(k,2),W=O(q,!0);M(q);var Q=F(q,2),Pe=O(Q,!0);M(Q),M($);var le=F($,2),xe=O(le),Ee=O(xe,!0);M(xe);var G=F(xe,2),pe=O(G,!0);M(G),M(le);var Ae=F(le,2),Re=O(Ae),Wi=O(Re,!0);M(Re);var Wt=F(Re,2),Ji=O(Wt,!0);M(Wt);var on=F(Wt,2),Gi=O(on,!0);M(on),M(Ae),M(y);var Jt=F(y,2),un=O(Jt),nt=O(un);$t(()=>tt(nt,"style",N(x))),tt(nt,"disablepagination","yes"),$t(()=>tt(nt,"rows",JSON.stringify(N(m)))),$t(()=>tt(nt,"headers",JSON.stringify(o))),tt(nt,"class","svelte-1ozupp5"),M(un),M(Jt);var ln=F(Jt,2),fn=O(ln),cn=O(fn),dn=O(cn),Gt=O(dn),Xi=F(O(Gt));M(Gt);var Xt=F(Gt,2),Ki=F(O(Xt));M(Xt);var vn=F(Xt,2),Zi=F(O(vn));M(vn),M(dn),M(cn),M(fn),M(ln),M(z),$t(it=>{Jr(K,"src",a().from.logo),re(L,a().from.shortName),re(p,`Data: ${it??""}`),re(_,`Fattura numero: ${a().serial??""}`),re(j,a().from.name),re(W,a().from.address),re(Pe,a().from.piva),re(Ee,a().from.email),re(pe,a().from.phone),re(Wi,a().to.name),re(Ji,a().to.address),re(Gi,a().to.piva),re(Xi,` ${N(h)??""}${N(l)??""}`),re(Ki,` ${N(f)??""}${N(l)??""}`),re(Zi,` ${N(d)??""}${N(l)??""}`)},[()=>Pi(a().date).format("DD/MM/YY")]),et(b,z)},V=b=>{var z=bi("error");et(b,z)};Wr(X,b=>{var z;(z=a())!=null&&z.from&&a().to?b(I):b(V,!1)})}return et(e,R),qr({get id(){return r()},set id(b=""){r(b),Ye()},get style(){return i()},set style(b=""){i(b),Ye()},get printer(){return n()},set printer(b="no"){n(b),Ye()},get items(){return s()},set items(b=[]){s(b),Ye()},get headers(){return a()},set headers(b){a(b),Ye()}})}mi(["click"]),customElements.define("hb-page-invoice",Oi(an,{id:{},style:{},printer:{},items:{},headers:{}},[],[],!0)),A.Component=an,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})})(this["page-invoice"]=this["page-invoice"]||{});
@@ -204,6 +204,7 @@
204
204
  }
205
205
  }
206
206
  },
207
+ "description": "",
207
208
  "storybookArgs": {
208
209
  "printer": {
209
210
  "control": {
@@ -262,9 +263,7 @@
262
263
  ],
263
264
  "parts": []
264
265
  },
265
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
266
266
  "contributors": [],
267
- "owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
268
267
  "htmlSlots": [],
269
268
  "i18n": [],
270
269
  "examples": [
@@ -321,7 +320,7 @@
321
320
  "page"
322
321
  ],
323
322
  "size": {},
324
- "iifePath": "release/release.js",
323
+ "iifePath": "main.iife.js",
325
324
  "repoName": "@htmlbricks/hb-page-invoice",
326
- "version": "0.20.17"
325
+ "version": "0.50.0-alpha.10"
327
326
  }
package/package.json CHANGED
@@ -1,85 +1,16 @@
1
1
  {
2
- "name": "@htmlbricks/hb-page-invoice",
3
- "displayName": "Svelte Invoice WebComponent",
4
- "description": "Svelte Invoice WebComponent",
5
- "version": "0.20.17",
6
- "main": "release/release.js",
7
- "publishConfig": {
8
- "access": "public"
9
- },
10
- "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
11
- "authorUrl": "https://dariocaruso.info",
12
- "license": "MIT",
13
- "license-docs": "CC BY 4.0",
14
- "license-translations": "CC BY 4.0",
15
- "license-images": "CC BY-NC 4.0",
16
- "engines": {
17
- "node": ">=16.0.0"
18
- },
19
- "scripts": {
20
- "start": "sirv dist",
21
- "dev": "rm -rf ./dist && rollup -c -w",
22
- "build": "rm -rf ./dist && rollup -c",
23
- "generate-manifest": "npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD",
24
- "generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
25
- "generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
26
- "generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
27
- "copydest": "rsync -avh dist/* ./release/ --delete",
28
- "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
29
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
30
- "prepublish": "npm run build:release"
31
- },
32
- "devDependencies": {
33
- "@rollup/plugin-alias": "^3.1.2",
34
- "@rollup/plugin-commonjs": "^18.0.0",
35
- "@rollup/plugin-json": "^4.1.0",
36
- "@rollup/plugin-node-resolve": "^11.2.1",
37
- "@rollup/plugin-replace": "^4.0.0",
38
- "@rollup/plugin-typescript": "^8.2.1",
39
- "@tsconfig/svelte": "^1.0.10",
40
- "@types/node": "^16.7.1",
41
- "@typescript-eslint/eslint-plugin": "^4.22.0",
42
- "@typescript-eslint/parser": "^4.22.0",
43
- "eslint": "^7.25.0",
44
- "eslint-plugin-jsdoc": "^33.0.0",
45
- "eslint-plugin-svelte3": "^3.2.0",
46
- "monorepo-wc-packages-manifester": "^0.0.3",
47
- "node-sass": "^9.0.0",
48
- "postcss": "^8.2.13",
49
- "postcss-load-config": "^3.0.1",
50
- "prettier": "^2.8.4",
51
- "rollup": "^2.46.0",
52
- "rollup-plugin-copy": "^3.4.0",
53
- "rollup-plugin-css-only": "^3.1.0",
54
- "rollup-plugin-livereload": "^2.0.0",
55
- "rollup-plugin-svelte": "^7.1.0",
56
- "rollup-plugin-terser": "^7.0.2",
57
- "rollup-plugin-ts-paths": "^1.0.5",
58
- "rollup-plugin-typescript2": "^0.31.1",
59
- "sass": "^1.32.12",
60
- "sirv-cli": "^1.0.11",
61
- "svelte": "^3.46.2",
62
- "svelte-check": "^1.5.2",
63
- "svelte-preprocess": "^4.7.2",
64
- "ts-json-schema-generator": "^0.98.0",
65
- "ts-node": "^9.1.1",
66
- "tslib": "^2.2.0",
67
- "ttypescript": "^1.5.12",
68
- "typescript": "^4.3.5",
69
- "typescript-transform-paths": "^2.2.3",
70
- "wc-js-utils": "^0.0.1"
71
- },
72
- "dependencies": {
73
- "@htmlbricks/hb-table": "^0.20.17",
74
- "dayjs": "^1.10.7",
75
- "debounce": "^1.2.1"
76
- },
77
- "keywords": [
78
- "svelte",
79
- "svelte-webcomponents",
80
- "webcomponents",
81
- "html5-webcomponents"
82
- ],
83
- "contributors": [],
84
- "gitHead": "0670e46cc090b813b86b0bdec8587eb30a4d655a"
85
- }
2
+ "name": "@htmlbricks/hb-page-invoice",
3
+ "version": "0.50.0-alpha.10",
4
+ "contributors": [],
5
+ "description": "",
6
+ "licenses": [
7
+ {
8
+ "type": "Apache-2.0",
9
+ "path": "LICENSE.md",
10
+ "cost": 0,
11
+ "currency": "EUR"
12
+ }
13
+ ],
14
+ "main": "main.iife.js",
15
+ "dependencies": []
16
+ }
@@ -0,0 +1,193 @@
1
+ {
2
+ "$ref": "#/definitions/Component",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Component": {
6
+ "additionalProperties": false,
7
+ "properties": {
8
+ "headers": {
9
+ "$ref": "#/definitions/IHeaders"
10
+ },
11
+ "id": {
12
+ "type": "string"
13
+ },
14
+ "items": {
15
+ "items": {
16
+ "$ref": "#/definitions/IItem"
17
+ },
18
+ "type": "array"
19
+ },
20
+ "printer": {
21
+ "enum": [
22
+ "yes",
23
+ "no"
24
+ ],
25
+ "type": "string"
26
+ },
27
+ "style": {
28
+ "type": "string"
29
+ }
30
+ },
31
+ "required": [
32
+ "items",
33
+ "headers"
34
+ ],
35
+ "type": "object"
36
+ },
37
+ "ICompany": {
38
+ "additionalProperties": false,
39
+ "properties": {
40
+ "address": {
41
+ "type": "string"
42
+ },
43
+ "email": {
44
+ "type": "string"
45
+ },
46
+ "iban": {
47
+ "type": "string"
48
+ },
49
+ "name": {
50
+ "type": "string"
51
+ },
52
+ "phone": {
53
+ "type": "string"
54
+ },
55
+ "piva": {
56
+ "type": "string"
57
+ }
58
+ },
59
+ "required": [
60
+ "piva",
61
+ "name",
62
+ "address",
63
+ "email",
64
+ "phone"
65
+ ],
66
+ "type": "object"
67
+ },
68
+ "IHeaders": {
69
+ "additionalProperties": false,
70
+ "properties": {
71
+ "category": {
72
+ "enum": [
73
+ "items",
74
+ "services"
75
+ ],
76
+ "type": "string"
77
+ },
78
+ "country": {
79
+ "enum": [
80
+ "it",
81
+ "eu",
82
+ "us"
83
+ ],
84
+ "type": "string"
85
+ },
86
+ "date": {
87
+ "format": "date-time",
88
+ "type": "string"
89
+ },
90
+ "expirationDate": {
91
+ "format": "date-time",
92
+ "type": "string"
93
+ },
94
+ "from": {
95
+ "additionalProperties": false,
96
+ "properties": {
97
+ "address": {
98
+ "type": "string"
99
+ },
100
+ "email": {
101
+ "type": "string"
102
+ },
103
+ "iban": {
104
+ "type": "string"
105
+ },
106
+ "logo": {
107
+ "type": "string"
108
+ },
109
+ "name": {
110
+ "type": "string"
111
+ },
112
+ "phone": {
113
+ "type": "string"
114
+ },
115
+ "piva": {
116
+ "type": "string"
117
+ },
118
+ "shortName": {
119
+ "type": "string"
120
+ }
121
+ },
122
+ "required": [
123
+ "address",
124
+ "email",
125
+ "logo",
126
+ "name",
127
+ "phone",
128
+ "piva",
129
+ "shortName"
130
+ ],
131
+ "type": "object"
132
+ },
133
+ "serial": {
134
+ "type": "string"
135
+ },
136
+ "to": {
137
+ "$ref": "#/definitions/ICompany"
138
+ }
139
+ },
140
+ "required": [
141
+ "serial",
142
+ "from",
143
+ "to"
144
+ ],
145
+ "type": "object"
146
+ },
147
+ "IItem": {
148
+ "additionalProperties": false,
149
+ "properties": {
150
+ "desc": {
151
+ "type": "string"
152
+ },
153
+ "discount": {
154
+ "additionalProperties": false,
155
+ "properties": {
156
+ "includeVat": {
157
+ "type": "boolean"
158
+ },
159
+ "type": {
160
+ "enum": [
161
+ "gross",
162
+ "item"
163
+ ],
164
+ "type": "string"
165
+ }
166
+ },
167
+ "required": [
168
+ "type"
169
+ ],
170
+ "type": "object"
171
+ },
172
+ "quantity": {
173
+ "type": "number"
174
+ },
175
+ "taxPercentage": {
176
+ "type": "number"
177
+ },
178
+ "unit": {
179
+ "type": "string"
180
+ },
181
+ "unitaryPrice": {
182
+ "type": "number"
183
+ }
184
+ },
185
+ "required": [
186
+ "desc",
187
+ "unitaryPrice",
188
+ "taxPercentage"
189
+ ],
190
+ "type": "object"
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "$ref": "#/definitions/Events",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "Events": {
6
+ "additionalProperties": false,
7
+ "type": "object"
8
+ }
9
+ }
10
+ }
package/LICENSE.md DELETED
@@ -1,68 +0,0 @@
1
- ## MIT License
2
-
3
- > Code and Contributions
4
-
5
- Copyright (c) 2021 Dario Caruso (dottgonzo)
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in all
15
- copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- SOFTWARE.
24
-
25
- ##### https://choosealicense.com/licenses/mit/
26
-
27
- ## Creative Commons BY-NC 4.0 License
28
-
29
- > Images, assets and logos
30
-
31
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
32
-
33
- #### You are free to:
34
-
35
- - Share — copy and redistribute the material in any medium or format
36
- - Adapt — remix, transform, and build upon the material
37
-
38
- The licensor cannot revoke these freedoms as long as you follow the license terms.
39
-
40
- #### Under the following terms:
41
-
42
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that - suggests the licensor endorses you or your use.
43
- - NonCommercial — You may not use the material for commercial purposes.
44
-
45
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
46
-
47
- ##### https://creativecommons.org/licenses/by-nc/4.0/
48
-
49
- ## Creative Commons BY 4.0 License
50
-
51
- > Documentation and Translations
52
-
53
- Copyleft (c) 2021 Dario Caruso (dottgonzo)
54
-
55
- #### You are free to:
56
-
57
- - Share — copy and redistribute the material in any medium or format
58
- - Adapt — remix, transform, and build upon the material for any purpose, even commercially.
59
-
60
- The licensor cannot revoke these freedoms as long as you follow the license terms.
61
-
62
- #### Under the following terms:
63
-
64
- - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
65
-
66
- No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
67
-
68
- ##### https://creativecommons.org/licenses/by/4.0/
package/README.md DELETED
@@ -1,2 +0,0 @@
1
- # page-invoice web component
2
-