@htmlbricks/hb-page-invoice 0.5.17 → 0.5.25
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/extra/docs.ts +2 -0
- package/package.json +5 -4
- package/release/docs.js.map +1 -1
- package/release/docs.ts +2 -0
- package/release/release.js +1 -1
- package/release/webcomponent.type.d.json +0 -1
package/extra/docs.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-page-invoice",
|
|
3
3
|
"displayName": "Svelte Invoice WebComponent",
|
|
4
4
|
"description": "Svelte Invoice WebComponent",
|
|
5
|
-
"version": "0.5.
|
|
5
|
+
"version": "0.5.25",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,13 +20,14 @@
|
|
|
20
20
|
"start": "sirv dist",
|
|
21
21
|
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
22
|
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts'
|
|
23
|
+
"generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' > app/types/webcomponent.type.d.json && cp app/types/webcomponent.type.d.json ./dist/",
|
|
24
24
|
"copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
|
|
25
|
-
"build-extra": "tsc --module es2020 --esModuleInterop true --outDir dist --sourceMap
|
|
25
|
+
"build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
|
|
26
26
|
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-schema && npm run copydest",
|
|
27
27
|
"prepublish": "npm run build:release"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@htmlbricks/hb-jsutils": "^0.5.25",
|
|
30
31
|
"@rollup/plugin-alias": "^3.1.2",
|
|
31
32
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
32
33
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -74,5 +75,5 @@
|
|
|
74
75
|
"html5-webcomponents"
|
|
75
76
|
],
|
|
76
77
|
"contributors": [],
|
|
77
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "bf02f6387ea791705cf939bc105bcd39b38cb313"
|
|
78
79
|
}
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACtC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;CACrC,CAAC"}
|
package/release/docs.ts
CHANGED
package/release/release.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function i(t){t.forEach(e)}function r(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function d(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function c(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function h(t){return document.createElement(t)}function f(t){return document.createTextNode(t)}function m(){return f(" ")}function p(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:b(t,e,n)}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e,n,i){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function v(t){const e={};for(const n of t)e[n.name]=n.value;return e}function w(t){a=t}function x(){if(!a)throw new Error("Function called outside component initialization");return a}function _(){const t=x();return(e,n)=>{const i=t.$$.callbacks[e];if(i){const r=function(t,e,n=!1){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,!1,e),i}(e,n);i.slice().forEach((e=>{e.call(t,r)}))}}}const M=[],S=[],k=[],D=[],T=Promise.resolve();let O=!1;function Y(t){k.push(t)}const L=new Set;let C=0;function E(){const t=a;do{for(;C<M.length;){const t=M[C];C++,w(t),H(t.$$)}for(w(null),M.length=0,C=0;S.length;)S.pop()();for(let t=0;t<k.length;t+=1){const e=k[t];L.has(e)||(L.add(e),e())}k.length=0}while(M.length);for(;D.length;)D.pop()();O=!1,L.clear(),w(t)}function H(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}const N=new Set;function j(t,e){-1===t.$$.dirty[0]&&(M.push(t),O||(O=!0,T.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function P(o,s,d,c,u,h,f,m=[-1]){const p=a;w(o);const b=o.$$={fragment:null,ctx:null,props:h,update:t,not_equal:u,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(p?p.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:s.target||p.$$.root};f&&f(b.root);let g=!1;if(b.ctx=d?d(o,s.props||{},((t,e,...n)=>{const i=n.length?n[0]:e;return b.ctx&&u(b.ctx[t],b.ctx[t]=i)&&(!b.skip_bound&&b.bound[t]&&b.bound[t](i),g&&j(o,t)),e})):[],b.update(),g=!0,i(b.before_update),b.fragment=!!c&&c(b.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);b.fragment&&b.fragment.l(t),t.forEach(l)}else b.fragment&&b.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(N.delete(y),y.i($))),function(t,n,o,s){const{fragment:a,on_mount:d,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,o),s||Y((()=>{const n=d.map(e).filter(r);c?c.push(...n):i(n),t.$$.on_mount=[]})),u.forEach(Y)}(o,s.target,s.anchor,s.customElement),E()}var y,$;w(p)}let z;"function"==typeof HTMLElement&&(z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var A="0.5.17";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function q(t){var e={exports:{}};return t(e,e.exports),e.exports}var J=q((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,i="millisecond",r="second",o="minute",s="hour",a="day",d="week",c="month",u="quarter",l="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,b={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("_")},g=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+g(i,2,"0")+":"+g(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,c),o=n-r<0,s=e.clone().add(i+(o?-1:1),c);return+(-(i+(n-r)/(o?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:d,d:a,D:h,h:s,m:o,s:r,ms:i,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",v={};v[$]=b;var w=function(t){return t instanceof S},x=function(t,e,n){var i;if(!t)return $;if("string"==typeof t)v[t]&&(i=t),e&&(v[t]=e,i=t);else{var r=t.name;v[r]=t,i=r}return!n&&i&&($=i),i||!n&&$},_=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},M=y;M.l=x,M.i=w,M.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function b(t){this.$L=x(t.locale,null,!0),this.parse(t)}var g=b.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(m);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return M},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return _(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<_(t)},g.$g=function(t,e,n){return M.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,i=!!M.u(e)||e,u=M.p(t),f=function(t,e){var r=M.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?r:r.endOf(a)},m=function(t,e){return M.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,b=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case l:return i?f(1,0):f(31,11);case c:return i?f(1,b):f(0,b+1);case d:var $=this.$locale().weekStart||0,v=(p<$?p+7:p)-$;return f(i?g-v:g+(6-v),b);case a:case h:return m(y+"Hours",0);case s:return m(y+"Minutes",1);case o:return m(y+"Seconds",2);case r:return m(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,d=M.p(t),u="set"+(this.$u?"UTC":""),f=(n={},n[a]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[l]=u+"FullYear",n[s]=u+"Hours",n[o]=u+"Minutes",n[r]=u+"Seconds",n[i]=u+"Milliseconds",n)[d],m=d===a?this.$D+(e-this.$W):e;if(d===c||d===l){var p=this.clone().set(h,1);p.$d[f](m),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[M.p(t)]()},g.add=function(i,u){var h,f=this;i=Number(i);var m=M.p(u),p=function(t){var e=_(f);return M.w(e.date(e.date()+Math.round(t*i)),f)};if(m===c)return this.set(c,this.$M+i);if(m===l)return this.set(l,this.$y+i);if(m===a)return p(1);if(m===d)return p(7);var b=(h={},h[o]=e,h[s]=n,h[r]=t,h)[m]||1,g=this.$d.getTime()+i*b;return M.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var i=t||"YYYY-MM-DDTHH:mm:ssZ",r=M.z(this),o=this.$H,s=this.$m,a=this.$M,d=n.weekdays,c=n.months,u=function(t,n,r,o){return t&&(t[n]||t(e,i))||r[n].substr(0,o)},l=function(t){return M.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:M.s(a+1,2,"0"),MMM:u(n.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:M.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,d,2),ddd:u(n.weekdaysShort,this.$W,d,3),dddd:d[this.$W],H:String(o),HH:M.s(o,2,"0"),h:l(1),hh:l(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:M.s(s,2,"0"),s:String(this.$s),ss:M.s(this.$s,2,"0"),SSS:M.s(this.$ms,3,"0"),Z:r};return i.replace(p,(function(t,e){return e||m[t]||r.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(i,h,f){var m,p=M.p(h),b=_(i),g=(b.utcOffset()-this.utcOffset())*e,y=this-b,$=M.m(this,b);return $=(m={},m[l]=$/12,m[c]=$,m[u]=$/3,m[d]=(y-g)/6048e5,m[a]=(y-g)/864e5,m[s]=y/n,m[o]=y/e,m[r]=y/t,m)[p]||y,f?$:M.a($)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return v[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=x(t,e,!0);return i&&(n.$L=i),n},g.clone=function(){return M.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),k=S.prototype;return _.prototype=k,[["$ms",i],["$s",r],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",h]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),_.extend=function(t,e){return t.$i||(t(e,S,_),t.$i=!0),_},_.locale=x,_.isDayjs=w,_.unix=function(t){return _(1e3*t)},_.en=v[$],_.Ls=v,_.p={},_}()}));function I(t,e,n){var i,r,o,s,a;function d(){var c=Date.now()-s;c<e&&c>=0?i=setTimeout(d,e-c):(i=null,n||(a=t.apply(o,r),o=r=null))}null==e&&(e=100);var c=function(){o=this,r=arguments,s=Date.now();var c=n&&!i;return i||(i=setTimeout(d,e)),c&&(a=t.apply(o,r),o=r=null),a};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(a=t.apply(o,r),o=r=null,clearTimeout(i),i=null)},c}I.debounce=I;var U=I;function W(e){let n;return{c(){n=f("error")},m(t,e){u(t,n,e)},p:t,d(t){t&&l(n)}}}function F(t){let e,n,i,r,o,s,a,p,v,w,x,_,M,S,k,D,T,O,Y,L,C,E,H,N,j,P,z,A,q,I,U,W,F,Z,B,V,Q,G,K,X,tt,et,nt,it,rt,ot,st,at,dt,ct,ut,lt,ht,ft,mt,pt,bt,gt,yt,$t,vt,wt,xt,_t,Mt,St,kt,Dt,Tt,Ot,Yt,Lt,Ct,Et,Ht,Nt,jt=t[2].from.shortName+"",Pt=J(t[2].date).format("DD/MM/YY")+"",zt=t[2].serial+"",At=t[2].from.name+"",qt=t[2].from.address+"",Jt=t[2].from.piva+"",It=t[2].from.email+"",Ut=t[2].from.phone+"",Wt=t[2].to.name+"",Ft=t[2].to.address+"",Rt=t[2].to.piva+"",Zt="yes"!==t[0]&&R(t);return{c(){e=h("div"),n=h("div"),i=h("div"),r=h("img"),s=m(),a=h("span"),p=f(jt),v=m(),w=h("div"),Zt&&Zt.c(),x=m(),_=h("div"),M=h("div"),S=f("Data: "),k=f(Pt),D=m(),T=h("div"),O=m(),Y=h("div"),L=f("Fattura numero: "),C=f(zt),E=m(),H=h("div"),N=h("div"),j=h("div"),P=f(At),z=m(),A=h("div"),q=f(qt),I=m(),U=h("div"),W=f(Jt),F=m(),Z=h("div"),B=h("div"),V=f(It),Q=m(),G=h("div"),K=f(Ut),X=m(),tt=h("div"),et=h("div"),nt=f(Wt),it=m(),rt=h("div"),ot=f(Ft),st=m(),at=h("div"),dt=f(Rt),ct=m(),ut=h("div"),lt=h("div"),ht=h("hb-table"),mt=m(),pt=h("div"),bt=h("div"),gt=h("div"),yt=h("div"),$t=h("div"),vt=h("span"),vt.textContent="SubTotale:",wt=m(),xt=f(t[4]),_t=f(t[3]),Mt=m(),St=h("div"),kt=h("span"),kt.textContent="Tasse:",Dt=m(),Tt=f(t[5]),Ot=f(t[3]),Yt=m(),Lt=h("div"),Ct=h("span"),Ct.textContent="Totale:",Et=m(),Ht=f(t[7]),Nt=f(t[3]),$(r,"height","80px"),$(r,"margin","0px 0px 0px 60px"),b(r,"alt",""),d(r.src,o=t[2].from.logo)||b(r,"src",o),$(a,"margin","0px 40px 0px 40px"),b(i,"class","col"),b(w,"class","col"),b(n,"class","row"),$(n,"margin-top","20px"),b(M,"class","col"),b(T,"class","col"),b(Y,"class","col"),b(_,"class","row"),$(_,"margin-top","60px"),b(N,"class","col"),b(Z,"class","col"),b(tt,"class","col"),b(H,"class","row"),$(H,"margin-top","40px"),g(ht,"disablepagination","yes"),g(ht,"rows",ft=JSON.stringify(t[6])),g(ht,"headers",JSON.stringify(t[8])),b(lt,"class","col"),b(ut,"class","row"),$(ut,"margin-top","40px"),$(vt,"display","inline-block"),$(vt,"min-width","200px"),$($t,"line-height","25px"),$(kt,"display","inline-block"),$(kt,"min-width","200px"),$(St,"line-height","25px"),$(Ct,"display","inline-block"),$(Ct,"min-width","200px"),$(Lt,"line-height","25px"),$(Lt,"font-weight","bold"),$(yt,"text-align","left"),$(gt,"width","300px"),$(gt,"float","right"),b(bt,"class","col"),b(pt,"class","row"),$(pt,"margin-top","40px"),b(e,"id","page"),b(e,"class","container")},m(t,o){u(t,e,o),c(e,n),c(n,i),c(i,r),c(i,s),c(i,a),c(a,p),c(n,v),c(n,w),Zt&&Zt.m(w,null),c(e,x),c(e,_),c(_,M),c(M,S),c(M,k),c(_,D),c(_,T),c(_,O),c(_,Y),c(Y,L),c(Y,C),c(e,E),c(e,H),c(H,N),c(N,j),c(j,P),c(N,z),c(N,A),c(A,q),c(N,I),c(N,U),c(U,W),c(H,F),c(H,Z),c(Z,B),c(B,V),c(Z,Q),c(Z,G),c(G,K),c(H,X),c(H,tt),c(tt,et),c(et,nt),c(tt,it),c(tt,rt),c(rt,ot),c(tt,st),c(tt,at),c(at,dt),c(e,ct),c(e,ut),c(ut,lt),c(lt,ht),c(e,mt),c(e,pt),c(pt,bt),c(bt,gt),c(gt,yt),c(yt,$t),c($t,vt),c($t,wt),c($t,xt),c($t,_t),c(yt,Mt),c(yt,St),c(St,kt),c(St,Dt),c(St,Tt),c(St,Ot),c(yt,Yt),c(yt,Lt),c(Lt,Ct),c(Lt,Et),c(Lt,Ht),c(Lt,Nt)},p(t,e){4&e&&!d(r.src,o=t[2].from.logo)&&b(r,"src",o),4&e&&jt!==(jt=t[2].from.shortName+"")&&y(p,jt),"yes"!==t[0]?Zt?Zt.p(t,e):(Zt=R(t),Zt.c(),Zt.m(w,null)):Zt&&(Zt.d(1),Zt=null),4&e&&Pt!==(Pt=J(t[2].date).format("DD/MM/YY")+"")&&y(k,Pt),4&e&&zt!==(zt=t[2].serial+"")&&y(C,zt),4&e&&At!==(At=t[2].from.name+"")&&y(P,At),4&e&&qt!==(qt=t[2].from.address+"")&&y(q,qt),4&e&&Jt!==(Jt=t[2].from.piva+"")&&y(W,Jt),4&e&&It!==(It=t[2].from.email+"")&&y(V,It),4&e&&Ut!==(Ut=t[2].from.phone+"")&&y(K,Ut),4&e&&Wt!==(Wt=t[2].to.name+"")&&y(nt,Wt),4&e&&Ft!==(Ft=t[2].to.address+"")&&y(ot,Ft),4&e&&Rt!==(Rt=t[2].to.piva+"")&&y(dt,Rt),64&e&&ft!==(ft=JSON.stringify(t[6]))&&g(ht,"rows",ft),16&e&&y(xt,t[4]),8&e&&y(_t,t[3]),32&e&&y(Tt,t[5]),8&e&&y(Ot,t[3]),128&e&&y(Ht,t[7]),8&e&&y(Nt,t[3])},d(t){t&&l(e),Zt&&Zt.d()}}}function R(t){let e,n,o,s,a,d;return{c(){e=h("div"),n=h("button"),n.innerHTML='<i class="bi-printer-fill"></i>',o=m(),s=h("button"),s.innerHTML='<i class="bi-arrows-fullscreen"></i>',b(n,"class","btn btn-default"),b(s,"class","btn btn-default"),$(e,"text-align","right"),$(e,"padding-right","60px")},m(i,l){u(i,e,l),c(e,n),c(e,o),c(e,s),a||(d=[p(n,"click",(function(){r(U(t[10],200))&&U(t[10],200).apply(this,arguments)})),p(s,"click",(function(){r(U(t[11],200))&&U(t[11],200).apply(this,arguments)}))],a=!0)},p(e,n){t=e},d(t){t&&l(e),a=!1,i(d)}}}function Z(e){let n;function i(t,e){return t[2]?.from&&t[2].to?F:W}let r=i(e),o=r(e);return{c(){o.c(),n=f(""),this.c=t},m(t,e){o.m(t,e),u(t,n,e)},p(t,[e]){r===(r=i(t))&&o?o.p(t,e):(o.d(1),o=r(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o.d(t),t&&l(n)}}}function B(t,e,n){let i,{id:r}=e,{printer:o}=e,{items:s}=e,{headers:a}=e;let d,c,u,l=[];x(),_(),function(t){if(!document.getElementById("hb-"+t+"-script")){const e=document.createElement("script");e.id="hb-"+t+"-script",e.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-${t}@${A}/release/release.js`,location.href.includes("localhost")&&(e.src=`http://localhost:6006/${t}/dist/release.js`),document.head.appendChild(e)}}("table");return t.$$set=t=>{"id"in t&&n(9,r=t.id),"printer"in t&&n(0,o=t.printer),"items"in t&&n(1,s=t.items),"headers"in t&&n(2,a=t.headers)},t.$$.update=()=>{if(575&t.$$.dirty){if(r||n(9,r=null),o||n(0,o="no"),s?"string"==typeof s&&n(1,s=JSON.parse(s)):n(1,s=[]),a){if("string"==typeof a)switch(n(2,a=JSON.parse(a)),a.date||n(2,a.date=new Date,a),a.category||n(2,a.category="items",a),a.country||n(2,a.country="it",a),a.country){case"it":case"eu":n(3,i="€");break;case"us":n(3,i="$")}}else n(2,a=null);(null==s?void 0:s.length)&&n(6,l=s.map(((t,e)=>{var n,r;return{_id:e.toString(),price:t.unitaryPrice.toString()+i+" / "+(t.unit?t.unit:"unità"),desc:t.desc,quantity:(null===(r=null===(n=t.quantity)||void 0===n?void 0:n.toString)||void 0===r?void 0:r.call(n))||"1",subtotal:(t.unitaryPrice*(t.quantity||1)).toString()+i,vat:`${(Math.round(.01*t.taxPercentage*t.unitaryPrice*(t.quantity||1)*100)/100).toString()} (${t.taxPercentage}%)`,total:(t.unitaryPrice*(t.quantity||1)+Math.round(.01*t.taxPercentage*t.unitaryPrice*(t.quantity||1)*100)/100).toString()+i}}))),n(4,d=null==s?void 0:s.map((t=>t.unitaryPrice*(t.quantity||1))).reduce(((t,e)=>t+e),0)),n(5,c=Math.round(100*s.map((t=>t.unitaryPrice*(t.quantity||1)*t.taxPercentage*.01)).reduce(((t,e)=>t+e),0))/100),n(7,u=d+c)}},[o,s,a,i,d,c,l,u,[{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}],r,()=>function(t){const e=window.open("","PRINT","height=400,width=600");e.document.write("<html><head><title>"+document.title+"</title>"),e.document.write("</head><body >"),e.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(t.items)}' headers='${JSON.stringify(t.headers)}'></hb-page-invoice>`),e.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${t.version}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),e.document.head.appendChild(n),setTimeout((()=>{e.print(),e.close()}),2e3)}({headers:a,items:s,version:A}),()=>function(t){const e=window.open("","PRINT","height=400,width=600");e.document.write("<html><head><title>"+document.title+"</title>"),e.document.write("</head><body >"),e.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(t.items)}' headers='${JSON.stringify(t.headers)}'></hb-page-invoice>`),e.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${t.version}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),e.document.head.appendChild(n)}({headers:a,items:s,version:A})]}q((function(t,e){t.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),i={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(t){return t+"º"}};return n.default.locale(i,null,!0),i}(J)}));class V extends z{constructor(t){super(),this.shadowRoot.innerHTML='<style>@charset "UTF-8";@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");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#07689f;--bs-secondary:#c9d6df;--bs-success:#11d3bc;--bs-info:#a2d5f2;--bs-warning:#ff7e67;--bs-danger:#f67280;--bs-light:#fafafa;--bs-dark:#4e4e4e;--bs-primary-rgb:7, 104, 159;--bs-secondary-rgb:201, 214, 223;--bs-success-rgb:17, 211, 188;--bs-info-rgb:162, 213, 242;--bs-warning-rgb:255, 126, 103;--bs-danger-rgb:246, 114, 128;--bs-light-rgb:250, 250, 250;--bs-dark-rgb:78, 78, 78;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}img{vertical-align:middle}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}.container{width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto}@media(min-width: 576px){.container{max-width:540px}}@media(min-width: 768px){.container{max-width:720px}}@media(min-width: 992px){.container{max-width:960px}}@media(min-width: 1200px){.container{max-width:1140px}}@media(min-width: 1400px){.container{max-width:1320px}}.row{--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>*{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{flex:1 0 0%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.btn{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}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(7, 104, 159, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}:host{font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px}</style>',P(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},B,Z,o,{id:9,printer:0,items:1,headers:2},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),E()))}static get observedAttributes(){return["id","printer","items","headers"]}get id(){return this.$$.ctx[9]}set id(t){this.$$set({id:t}),E()}get printer(){return this.$$.ctx[0]}set printer(t){this.$$set({printer:t}),E()}get items(){return this.$$.ctx[1]}set items(t){this.$$set({items:t}),E()}get headers(){return this.$$.ctx[2]}set headers(t){this.$$set({headers:t}),E()}}return customElements.define("hb-page-invoice",V),V}();
|
|
1
|
+
var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function i(t){t.forEach(e)}function r(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let s,a;function d(t,e){return s||(s=document.createElement("a")),s.href=e,t===s.href}function c(t,e){t.appendChild(e)}function u(t,e,n){t.insertBefore(e,n||null)}function l(t){t.parentNode.removeChild(t)}function h(t){return document.createElement(t)}function f(t){return document.createTextNode(t)}function m(){return f(" ")}function p(t,e,n,i){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n,i)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:b(t,e,n)}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e,n,i){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function v(t){const e={};for(const n of t)e[n.name]=n.value;return e}function w(t){a=t}function x(){if(!a)throw new Error("Function called outside component initialization");return a}function _(){const t=x();return(e,n)=>{const i=t.$$.callbacks[e];if(i){const r=function(t,e,n=!1){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,!1,e),i}(e,n);i.slice().forEach((e=>{e.call(t,r)}))}}}const M=[],S=[],k=[],D=[],T=Promise.resolve();let O=!1;function Y(t){k.push(t)}const L=new Set;let C=0;function E(){const t=a;do{for(;C<M.length;){const t=M[C];C++,w(t),H(t.$$)}for(w(null),M.length=0,C=0;S.length;)S.pop()();for(let t=0;t<k.length;t+=1){const e=k[t];L.has(e)||(L.add(e),e())}k.length=0}while(M.length);for(;D.length;)D.pop()();O=!1,L.clear(),w(t)}function H(t){if(null!==t.fragment){t.update(),i(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}const N=new Set;function j(t,e){-1===t.$$.dirty[0]&&(M.push(t),O||(O=!0,T.then(E)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function P(o,s,d,c,u,h,f,m=[-1]){const p=a;w(o);const b=o.$$={fragment:null,ctx:null,props:h,update:t,not_equal:u,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(s.context||(p?p.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:s.target||p.$$.root};f&&f(b.root);let g=!1;if(b.ctx=d?d(o,s.props||{},((t,e,...n)=>{const i=n.length?n[0]:e;return b.ctx&&u(b.ctx[t],b.ctx[t]=i)&&(!b.skip_bound&&b.bound[t]&&b.bound[t](i),g&&j(o,t)),e})):[],b.update(),g=!0,i(b.before_update),b.fragment=!!c&&c(b.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);b.fragment&&b.fragment.l(t),t.forEach(l)}else b.fragment&&b.fragment.c();s.intro&&((y=o.$$.fragment)&&y.i&&(N.delete(y),y.i($))),function(t,n,o,s){const{fragment:a,on_mount:d,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,o),s||Y((()=>{const n=d.map(e).filter(r);c?c.push(...n):i(n),t.$$.on_mount=[]})),u.forEach(Y)}(o,s.target,s.anchor,s.customElement),E()}var y,$;w(p)}let z;"function"==typeof HTMLElement&&(z=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){i(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var A="0.5.25";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function q(t){var e={exports:{}};return t(e,e.exports),e.exports}var J=q((function(t,e){t.exports=function(){var t=1e3,e=6e4,n=36e5,i="millisecond",r="second",o="minute",s="hour",a="day",d="week",c="month",u="quarter",l="year",h="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,b={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("_")},g=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},y={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+g(i,2,"0")+":"+g(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,c),o=n-r<0,s=e.clone().add(i+(o?-1:1),c);return+(-(i+(n-r)/(o?r-s:s-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:d,d:a,D:h,h:s,m:o,s:r,ms:i,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",v={};v[$]=b;var w=function(t){return t instanceof S},x=function(t,e,n){var i;if(!t)return $;if("string"==typeof t)v[t]&&(i=t),e&&(v[t]=e,i=t);else{var r=t.name;v[r]=t,i=r}return!n&&i&&($=i),i||!n&&$},_=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new S(n)},M=y;M.l=x,M.i=w,M.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var S=function(){function b(t){this.$L=x(t.locale,null,!0),this.parse(t)}var g=b.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(M.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(m);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return M},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return _(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<_(t)},g.$g=function(t,e,n){return M.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,i=!!M.u(e)||e,u=M.p(t),f=function(t,e){var r=M.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?r:r.endOf(a)},m=function(t,e){return M.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},p=this.$W,b=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case l:return i?f(1,0):f(31,11);case c:return i?f(1,b):f(0,b+1);case d:var $=this.$locale().weekStart||0,v=(p<$?p+7:p)-$;return f(i?g-v:g+(6-v),b);case a:case h:return m(y+"Hours",0);case s:return m(y+"Minutes",1);case o:return m(y+"Seconds",2);case r:return m(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,d=M.p(t),u="set"+(this.$u?"UTC":""),f=(n={},n[a]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[l]=u+"FullYear",n[s]=u+"Hours",n[o]=u+"Minutes",n[r]=u+"Seconds",n[i]=u+"Milliseconds",n)[d],m=d===a?this.$D+(e-this.$W):e;if(d===c||d===l){var p=this.clone().set(h,1);p.$d[f](m),p.init(),this.$d=p.set(h,Math.min(this.$D,p.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[M.p(t)]()},g.add=function(i,u){var h,f=this;i=Number(i);var m=M.p(u),p=function(t){var e=_(f);return M.w(e.date(e.date()+Math.round(t*i)),f)};if(m===c)return this.set(c,this.$M+i);if(m===l)return this.set(l,this.$y+i);if(m===a)return p(1);if(m===d)return p(7);var b=(h={},h[o]=e,h[s]=n,h[r]=t,h)[m]||1,g=this.$d.getTime()+i*b;return M.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var i=t||"YYYY-MM-DDTHH:mm:ssZ",r=M.z(this),o=this.$H,s=this.$m,a=this.$M,d=n.weekdays,c=n.months,u=function(t,n,r,o){return t&&(t[n]||t(e,i))||r[n].substr(0,o)},l=function(t){return M.s(o%12||12,t,"0")},h=n.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:M.s(a+1,2,"0"),MMM:u(n.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:M.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,d,2),ddd:u(n.weekdaysShort,this.$W,d,3),dddd:d[this.$W],H:String(o),HH:M.s(o,2,"0"),h:l(1),hh:l(2),a:h(o,s,!0),A:h(o,s,!1),m:String(s),mm:M.s(s,2,"0"),s:String(this.$s),ss:M.s(this.$s,2,"0"),SSS:M.s(this.$ms,3,"0"),Z:r};return i.replace(p,(function(t,e){return e||m[t]||r.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(i,h,f){var m,p=M.p(h),b=_(i),g=(b.utcOffset()-this.utcOffset())*e,y=this-b,$=M.m(this,b);return $=(m={},m[l]=$/12,m[c]=$,m[u]=$/3,m[d]=(y-g)/6048e5,m[a]=(y-g)/864e5,m[s]=y/n,m[o]=y/e,m[r]=y/t,m)[p]||y,f?$:M.a($)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return v[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=x(t,e,!0);return i&&(n.$L=i),n},g.clone=function(){return M.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),k=S.prototype;return _.prototype=k,[["$ms",i],["$s",r],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",h]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),_.extend=function(t,e){return t.$i||(t(e,S,_),t.$i=!0),_},_.locale=x,_.isDayjs=w,_.unix=function(t){return _(1e3*t)},_.en=v[$],_.Ls=v,_.p={},_}()}));function I(t,e,n){var i,r,o,s,a;function d(){var c=Date.now()-s;c<e&&c>=0?i=setTimeout(d,e-c):(i=null,n||(a=t.apply(o,r),o=r=null))}null==e&&(e=100);var c=function(){o=this,r=arguments,s=Date.now();var c=n&&!i;return i||(i=setTimeout(d,e)),c&&(a=t.apply(o,r),o=r=null),a};return c.clear=function(){i&&(clearTimeout(i),i=null)},c.flush=function(){i&&(a=t.apply(o,r),o=r=null,clearTimeout(i),i=null)},c}I.debounce=I;var U=I;function W(e){let n;return{c(){n=f("error")},m(t,e){u(t,n,e)},p:t,d(t){t&&l(n)}}}function F(t){let e,n,i,r,o,s,a,p,v,w,x,_,M,S,k,D,T,O,Y,L,C,E,H,N,j,P,z,A,q,I,U,W,F,Z,B,V,Q,G,K,X,tt,et,nt,it,rt,ot,st,at,dt,ct,ut,lt,ht,ft,mt,pt,bt,gt,yt,$t,vt,wt,xt,_t,Mt,St,kt,Dt,Tt,Ot,Yt,Lt,Ct,Et,Ht,Nt,jt=t[2].from.shortName+"",Pt=J(t[2].date).format("DD/MM/YY")+"",zt=t[2].serial+"",At=t[2].from.name+"",qt=t[2].from.address+"",Jt=t[2].from.piva+"",It=t[2].from.email+"",Ut=t[2].from.phone+"",Wt=t[2].to.name+"",Ft=t[2].to.address+"",Rt=t[2].to.piva+"",Zt="yes"!==t[0]&&R(t);return{c(){e=h("div"),n=h("div"),i=h("div"),r=h("img"),s=m(),a=h("span"),p=f(jt),v=m(),w=h("div"),Zt&&Zt.c(),x=m(),_=h("div"),M=h("div"),S=f("Data: "),k=f(Pt),D=m(),T=h("div"),O=m(),Y=h("div"),L=f("Fattura numero: "),C=f(zt),E=m(),H=h("div"),N=h("div"),j=h("div"),P=f(At),z=m(),A=h("div"),q=f(qt),I=m(),U=h("div"),W=f(Jt),F=m(),Z=h("div"),B=h("div"),V=f(It),Q=m(),G=h("div"),K=f(Ut),X=m(),tt=h("div"),et=h("div"),nt=f(Wt),it=m(),rt=h("div"),ot=f(Ft),st=m(),at=h("div"),dt=f(Rt),ct=m(),ut=h("div"),lt=h("div"),ht=h("hb-table"),mt=m(),pt=h("div"),bt=h("div"),gt=h("div"),yt=h("div"),$t=h("div"),vt=h("span"),vt.textContent="SubTotale:",wt=m(),xt=f(t[4]),_t=f(t[3]),Mt=m(),St=h("div"),kt=h("span"),kt.textContent="Tasse:",Dt=m(),Tt=f(t[5]),Ot=f(t[3]),Yt=m(),Lt=h("div"),Ct=h("span"),Ct.textContent="Totale:",Et=m(),Ht=f(t[7]),Nt=f(t[3]),$(r,"height","80px"),$(r,"margin","0px 0px 0px 60px"),b(r,"alt",""),d(r.src,o=t[2].from.logo)||b(r,"src",o),$(a,"margin","0px 40px 0px 40px"),b(i,"class","col"),b(w,"class","col"),b(n,"class","row"),$(n,"margin-top","20px"),b(M,"class","col"),b(T,"class","col"),b(Y,"class","col"),b(_,"class","row"),$(_,"margin-top","60px"),b(N,"class","col"),b(Z,"class","col"),b(tt,"class","col"),b(H,"class","row"),$(H,"margin-top","40px"),g(ht,"disablepagination","yes"),g(ht,"rows",ft=JSON.stringify(t[6])),g(ht,"headers",JSON.stringify(t[8])),b(lt,"class","col"),b(ut,"class","row"),$(ut,"margin-top","40px"),$(vt,"display","inline-block"),$(vt,"min-width","200px"),$($t,"line-height","25px"),$(kt,"display","inline-block"),$(kt,"min-width","200px"),$(St,"line-height","25px"),$(Ct,"display","inline-block"),$(Ct,"min-width","200px"),$(Lt,"line-height","25px"),$(Lt,"font-weight","bold"),$(yt,"text-align","left"),$(gt,"width","300px"),$(gt,"float","right"),b(bt,"class","col"),b(pt,"class","row"),$(pt,"margin-top","40px"),b(e,"id","page"),b(e,"class","container")},m(t,o){u(t,e,o),c(e,n),c(n,i),c(i,r),c(i,s),c(i,a),c(a,p),c(n,v),c(n,w),Zt&&Zt.m(w,null),c(e,x),c(e,_),c(_,M),c(M,S),c(M,k),c(_,D),c(_,T),c(_,O),c(_,Y),c(Y,L),c(Y,C),c(e,E),c(e,H),c(H,N),c(N,j),c(j,P),c(N,z),c(N,A),c(A,q),c(N,I),c(N,U),c(U,W),c(H,F),c(H,Z),c(Z,B),c(B,V),c(Z,Q),c(Z,G),c(G,K),c(H,X),c(H,tt),c(tt,et),c(et,nt),c(tt,it),c(tt,rt),c(rt,ot),c(tt,st),c(tt,at),c(at,dt),c(e,ct),c(e,ut),c(ut,lt),c(lt,ht),c(e,mt),c(e,pt),c(pt,bt),c(bt,gt),c(gt,yt),c(yt,$t),c($t,vt),c($t,wt),c($t,xt),c($t,_t),c(yt,Mt),c(yt,St),c(St,kt),c(St,Dt),c(St,Tt),c(St,Ot),c(yt,Yt),c(yt,Lt),c(Lt,Ct),c(Lt,Et),c(Lt,Ht),c(Lt,Nt)},p(t,e){4&e&&!d(r.src,o=t[2].from.logo)&&b(r,"src",o),4&e&&jt!==(jt=t[2].from.shortName+"")&&y(p,jt),"yes"!==t[0]?Zt?Zt.p(t,e):(Zt=R(t),Zt.c(),Zt.m(w,null)):Zt&&(Zt.d(1),Zt=null),4&e&&Pt!==(Pt=J(t[2].date).format("DD/MM/YY")+"")&&y(k,Pt),4&e&&zt!==(zt=t[2].serial+"")&&y(C,zt),4&e&&At!==(At=t[2].from.name+"")&&y(P,At),4&e&&qt!==(qt=t[2].from.address+"")&&y(q,qt),4&e&&Jt!==(Jt=t[2].from.piva+"")&&y(W,Jt),4&e&&It!==(It=t[2].from.email+"")&&y(V,It),4&e&&Ut!==(Ut=t[2].from.phone+"")&&y(K,Ut),4&e&&Wt!==(Wt=t[2].to.name+"")&&y(nt,Wt),4&e&&Ft!==(Ft=t[2].to.address+"")&&y(ot,Ft),4&e&&Rt!==(Rt=t[2].to.piva+"")&&y(dt,Rt),64&e&&ft!==(ft=JSON.stringify(t[6]))&&g(ht,"rows",ft),16&e&&y(xt,t[4]),8&e&&y(_t,t[3]),32&e&&y(Tt,t[5]),8&e&&y(Ot,t[3]),128&e&&y(Ht,t[7]),8&e&&y(Nt,t[3])},d(t){t&&l(e),Zt&&Zt.d()}}}function R(t){let e,n,o,s,a,d;return{c(){e=h("div"),n=h("button"),n.innerHTML='<i class="bi-printer-fill"></i>',o=m(),s=h("button"),s.innerHTML='<i class="bi-arrows-fullscreen"></i>',b(n,"class","btn btn-default"),b(s,"class","btn btn-default"),$(e,"text-align","right"),$(e,"padding-right","60px")},m(i,l){u(i,e,l),c(e,n),c(e,o),c(e,s),a||(d=[p(n,"click",(function(){r(U(t[10],200))&&U(t[10],200).apply(this,arguments)})),p(s,"click",(function(){r(U(t[11],200))&&U(t[11],200).apply(this,arguments)}))],a=!0)},p(e,n){t=e},d(t){t&&l(e),a=!1,i(d)}}}function Z(e){let n;function i(t,e){return t[2]?.from&&t[2].to?F:W}let r=i(e),o=r(e);return{c(){o.c(),n=f(""),this.c=t},m(t,e){o.m(t,e),u(t,n,e)},p(t,[e]){r===(r=i(t))&&o?o.p(t,e):(o.d(1),o=r(t),o&&(o.c(),o.m(n.parentNode,n)))},i:t,o:t,d(t){o.d(t),t&&l(n)}}}function B(t,e,n){let i,{id:r}=e,{printer:o}=e,{items:s}=e,{headers:a}=e;let d,c,u,l=[];x(),_(),function(t){if(!document.getElementById("hb-"+t+"-script")){const e=document.createElement("script");e.id="hb-"+t+"-script",e.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-${t}@${A}/release/release.js`,location.href.includes("localhost")&&(e.src=`http://localhost:6006/${t}/dist/release.js`),document.head.appendChild(e)}}("table");return t.$$set=t=>{"id"in t&&n(9,r=t.id),"printer"in t&&n(0,o=t.printer),"items"in t&&n(1,s=t.items),"headers"in t&&n(2,a=t.headers)},t.$$.update=()=>{if(575&t.$$.dirty){if(r||n(9,r=null),o||n(0,o="no"),s?"string"==typeof s&&n(1,s=JSON.parse(s)):n(1,s=[]),a){if("string"==typeof a)switch(n(2,a=JSON.parse(a)),a.date||n(2,a.date=new Date,a),a.category||n(2,a.category="items",a),a.country||n(2,a.country="it",a),a.country){case"it":case"eu":n(3,i="€");break;case"us":n(3,i="$")}}else n(2,a=null);(null==s?void 0:s.length)&&n(6,l=s.map(((t,e)=>{var n,r;return{_id:e.toString(),price:t.unitaryPrice.toString()+i+" / "+(t.unit?t.unit:"unità"),desc:t.desc,quantity:(null===(r=null===(n=t.quantity)||void 0===n?void 0:n.toString)||void 0===r?void 0:r.call(n))||"1",subtotal:(t.unitaryPrice*(t.quantity||1)).toString()+i,vat:`${(Math.round(.01*t.taxPercentage*t.unitaryPrice*(t.quantity||1)*100)/100).toString()} (${t.taxPercentage}%)`,total:(t.unitaryPrice*(t.quantity||1)+Math.round(.01*t.taxPercentage*t.unitaryPrice*(t.quantity||1)*100)/100).toString()+i}}))),n(4,d=null==s?void 0:s.map((t=>t.unitaryPrice*(t.quantity||1))).reduce(((t,e)=>t+e),0)),n(5,c=Math.round(100*s.map((t=>t.unitaryPrice*(t.quantity||1)*t.taxPercentage*.01)).reduce(((t,e)=>t+e),0))/100),n(7,u=d+c)}},[o,s,a,i,d,c,l,u,[{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}],r,()=>function(t){const e=window.open("","PRINT","height=400,width=600");e.document.write("<html><head><title>"+document.title+"</title>"),e.document.write("</head><body >"),e.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice printer="yes" items='${JSON.stringify(t.items)}' headers='${JSON.stringify(t.headers)}'></hb-page-invoice>`),e.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${t.version}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),e.document.head.appendChild(n),setTimeout((()=>{e.print(),e.close()}),2e3)}({headers:a,items:s,version:A}),()=>function(t){const e=window.open("","PRINT","height=400,width=600");e.document.write("<html><head><title>"+document.title+"</title>"),e.document.write("</head><body >"),e.document.write(`<style>@page { size: auto; margin: 0mm; }</style><hb-page-invoice items='${JSON.stringify(t.items)}' headers='${JSON.stringify(t.headers)}'></hb-page-invoice>`),e.document.write("</body></html>");const n=document.createElement("script");n.id="hb-page-invoice-script",n.src=`https://cdn.jsdelivr.net/npm/@htmlbricks/hb-page-invoice@${t.version}/release/release.js`,location.href.includes("localhost")&&(n.src="http://localhost:6006/page-invoice/dist/release.js"),e.document.head.appendChild(n)}({headers:a,items:s,version:A})]}q((function(t,e){t.exports=function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t),i={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(t){return t+"º"}};return n.default.locale(i,null,!0),i}(J)}));class V extends z{constructor(t){super(),this.shadowRoot.innerHTML='<style>@charset "UTF-8";@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");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#07689f;--bs-secondary:#c9d6df;--bs-success:#11d3bc;--bs-info:#a2d5f2;--bs-warning:#ff7e67;--bs-danger:#f67280;--bs-light:#fafafa;--bs-dark:#4e4e4e;--bs-primary-rgb:7, 104, 159;--bs-secondary-rgb:201, 214, 223;--bs-success-rgb:17, 211, 188;--bs-info-rgb:162, 213, 242;--bs-warning-rgb:255, 126, 103;--bs-danger-rgb:246, 114, 128;--bs-light-rgb:250, 250, 250;--bs-dark-rgb:78, 78, 78;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}img{vertical-align:middle}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button{text-transform:none}button{-webkit-appearance:button}button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}.container{width:100%;padding-right:var(--bs-gutter-x, 0.75rem);padding-left:var(--bs-gutter-x, 0.75rem);margin-right:auto;margin-left:auto}@media(min-width: 576px){.container{max-width:540px}}@media(min-width: 768px){.container{max-width:720px}}@media(min-width: 992px){.container{max-width:960px}}@media(min-width: 1200px){.container{max-width:1140px}}@media(min-width: 1400px){.container{max-width:1320px}}.row{--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>*{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{flex:1 0 0%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.btn{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}@media(prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:#212529}.btn:focus{outline:0;box-shadow:0 0 0 0.25rem rgba(7, 104, 159, 0.25)}.btn:disabled{pointer-events:none;opacity:0.65}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}:host{font-family:"Roboto", sans-serif;display:block;margin:40px 0px 40px 0px}</style>',P(this,{target:this.shadowRoot,props:v(this.attributes),customElement:!0},B,Z,o,{id:9,printer:0,items:1,headers:2},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),E()))}static get observedAttributes(){return["id","printer","items","headers"]}get id(){return this.$$.ctx[9]}set id(t){this.$$set({id:t}),E()}get printer(){return this.$$.ctx[0]}set printer(t){this.$$set({printer:t}),E()}get items(){return this.$$.ctx[1]}set items(t){this.$$set({items:t}),E()}get headers(){return this.$$.ctx[2]}set headers(t){this.$$set({headers:t}),E()}}return customElements.define("hb-page-invoice",V),V}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|