@htmlbricks/hb-order-list 0.7.2 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -3
- package/release/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-order-list",
|
|
3
3
|
"displayName": "Svelte Order List WebComponent",
|
|
4
4
|
"description": "Svelte Order List WebComponent",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.7",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -27,11 +27,12 @@
|
|
|
27
27
|
"prepublish": "npm run build:release"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@htmlbricks/hb-jsutils": "^0.7.
|
|
30
|
+
"@htmlbricks/hb-jsutils": "^0.7.7",
|
|
31
31
|
"@rollup/plugin-alias": "^3.1.2",
|
|
32
32
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
33
33
|
"@rollup/plugin-json": "^4.1.0",
|
|
34
34
|
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
35
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
35
36
|
"@rollup/plugin-typescript": "^8.2.1",
|
|
36
37
|
"@tsconfig/svelte": "^1.0.10",
|
|
37
38
|
"@types/node": "^16.7.1",
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"html5-webcomponents"
|
|
76
77
|
],
|
|
77
78
|
"contributors": [],
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "0f8003368bdd14a10dfcf1c1e78913dcf61292a8"
|
|
79
80
|
}
|
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 f(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function m(){return h(" ")}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function g(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function b(t){const e={};for(const n of t)e[n.name]=n.value;return e}function $(t){a=t}function y(){if(!a)throw new Error("Function called outside component initialization");return a}function w(){const t=y();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 x=[],_=[],v=[],M=[],k=Promise.resolve();let S=!1;function D(t){v.push(t)}const Y=new Set;let C=0;function O(){const t=a;do{for(;C<x.length;){const t=x[C];C++,$(t),T(t.$$)}for($(null),x.length=0,C=0;_.length;)_.pop()();for(let t=0;t<v.length;t+=1){const e=v[t];Y.has(e)||(Y.add(e),e())}v.length=0}while(x.length);for(;M.length;)M.pop()();S=!1,Y.clear(),$(t)}function T(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(D)}}const L=new Set;function H(t,e){t&&t.i&&(L.delete(t),t.i(e))}function E(t,e){t.d(1),e.delete(t.key)}function N(t,e){-1===t.$$.dirty[0]&&(x.push(t),S||(S=!0,k.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(o,s,d,c,u,f,h,m=[-1]){const p=a;$(o);const g=o.$$={fragment:null,ctx:null,props:f,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};h&&h(g.root);let b=!1;if(g.ctx=d?d(o,s.props||{},((t,e,...n)=>{const i=n.length?n[0]:e;return g.ctx&&u(g.ctx[t],g.ctx[t]=i)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](i),b&&N(o,t)),e})):[],g.update(),b=!0,i(g.before_update),g.fragment=!!c&&c(g.ctx),s.target){if(s.hydrate){const t=function(t){return Array.from(t.childNodes)}(s.target);g.fragment&&g.fragment.l(t),t.forEach(l)}else g.fragment&&g.fragment.c();s.intro&&H(o.$$.fragment),function(t,n,o,s){const{fragment:a,on_mount:d,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,o),s||D((()=>{const n=d.map(e).filter(r);c?c.push(...n):i(n),t.$$.on_mount=[]})),u.forEach(D)}(o,s.target,s.anchor,s.customElement),O()}$(p)}let I;"function"==typeof HTMLElement&&(I=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)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function U(t){var e={exports:{}};return t(e,e.exports),e.exports}var j=U((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",f="date",h="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,g={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("_")},b=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},$={s:b,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+b(i,2,"0")+":"+b(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:f,h:s,m:o,s:r,ms:i,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",w={};w[y]=g;var x=function(t){return t instanceof k},_=function(t,e,n){var i;if(!t)return y;if("string"==typeof t)w[t]&&(i=t),e&&(w[t]=e,i=t);else{var r=t.name;w[r]=t,i=r}return!n&&i&&(y=i),i||!n&&y},v=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},M=$;M.l=_,M.i=x,M.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function g(t){this.$L=_(t.locale,null,!0),this.parse(t)}var b=g.prototype;return b.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()},b.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()},b.$utils=function(){return M},b.isValid=function(){return!(this.$d.toString()===h)},b.isSame=function(t,e){var n=v(t);return this.startOf(e)<=n&&n<=this.endOf(e)},b.isAfter=function(t,e){return v(t)<this.startOf(e)},b.isBefore=function(t,e){return this.endOf(e)<v(t)},b.$g=function(t,e,n){return M.u(t)?this[e]:this.set(n,t)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(t,e){var n=this,i=!!M.u(e)||e,u=M.p(t),h=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,g=this.$M,b=this.$D,$="set"+(this.$u?"UTC":"");switch(u){case l:return i?h(1,0):h(31,11);case c:return i?h(1,g):h(0,g+1);case d:var y=this.$locale().weekStart||0,w=(p<y?p+7:p)-y;return h(i?b-w:b+(6-w),g);case a:case f:return m($+"Hours",0);case s:return m($+"Minutes",1);case o:return m($+"Seconds",2);case r:return m($+"Milliseconds",3);default:return this.clone()}},b.endOf=function(t){return this.startOf(t,!1)},b.$set=function(t,e){var n,d=M.p(t),u="set"+(this.$u?"UTC":""),h=(n={},n[a]=u+"Date",n[f]=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(f,1);p.$d[h](m),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},b.set=function(t,e){return this.clone().$set(t,e)},b.get=function(t){return this[M.p(t)]()},b.add=function(i,u){var f,h=this;i=Number(i);var m=M.p(u),p=function(t){var e=v(h);return M.w(e.date(e.date()+Math.round(t*i)),h)};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 g=(f={},f[o]=e,f[s]=n,f[r]=t,f)[m]||1,b=this.$d.getTime()+i*g;return M.w(b,this)},b.subtract=function(t,e){return this.add(-1*t,e)},b.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;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")},f=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:f(o,s,!0),A:f(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(":","")}))},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(i,f,h){var m,p=M.p(f),g=v(i),b=(g.utcOffset()-this.utcOffset())*e,$=this-g,y=M.m(this,g);return y=(m={},m[l]=y/12,m[c]=y,m[u]=y/3,m[d]=($-b)/6048e5,m[a]=($-b)/864e5,m[s]=$/n,m[o]=$/e,m[r]=$/t,m)[p]||$,h?y:M.a(y)},b.daysInMonth=function(){return this.endOf(c).$D},b.$locale=function(){return w[this.$L]},b.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=_(t,e,!0);return i&&(n.$L=i),n},b.clone=function(){return M.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},g}(),S=k.prototype;return v.prototype=S,[["$ms",i],["$s",r],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",f]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),v.extend=function(t,e){return t.$i||(t(e,k,v),t.$i=!0),v},v.locale=_,v.isDayjs=x,v.unix=function(t){return v(1e3*t)},v.en=w[y],v.Ls=w,v.p={},v}()}));function z(t,e,n){const i=t.slice();return i[10]=e[n],i}function W(t,e){let n,i,r,o,s,a,b,$,y,w,x=e[10].name+"";return{key:t,first:null,c(){n=f("div"),i=f("div"),r=f("img"),s=m(),a=f("span"),b=h(x),$=m(),y=f("div"),y.textContent="quantity",w=m(),p(r,"part","item_image"),p(r,"class","o_item_image"),d(r.src,o=e[10].image)||p(r,"src",o),p(r,"alt",""),p(a,"class","o_item_desc"),p(i,"class","col-9"),p(y,"class","col-3 text-center"),p(n,"class","o_item row"),this.first=n},m(t,e){u(t,n,e),c(n,i),c(i,r),c(i,s),c(i,a),c(a,b),c(n,$),c(n,y),c(n,w)},p(t,n){e=t,1&n&&!d(r.src,o=e[10].image)&&p(r,"src",o),1&n&&x!==(x=e[10].name+"")&&g(b,x)},d(t){t&&l(n)}}}function F(e){let n,i,r,o,s,a,d,b,$,y,w,x,_,v,M,k,S,D,Y=e[0].orderNumber+"",C=[],O=new Map,T=`${e[1]}${e[0].currencySymbol}`,L=e[0].items;const N=t=>t[10].id;for(let t=0;t<L.length;t+=1){let n=z(e,L,t),i=N(n);O.set(i,C[t]=W(i,n))}return{c(){n=f("div"),i=f("div"),r=f("div"),o=f("span"),s=h("Order N. "),a=h(Y),d=m(),b=f("div"),b.textContent="tracking",$=m(),y=f("div");for(let t=0;t<C.length;t+=1)C[t].c();w=m(),x=f("div"),_=f("div"),_.textContent="cancel",v=m(),M=f("div"),M.textContent="bbb",k=m(),S=f("div"),D=h(T),this.c=t,p(o,"id","o_number"),p(r,"class","col-10"),p(b,"id","o_tracking"),p(b,"class","col-2"),p(i,"class","row"),p(i,"id","o_header"),p(y,"id","o_items"),p(_,"class","col-3 text-center"),p(M,"class","col-6"),p(S,"class","col-3 text-center"),p(x,"class","row"),p(x,"id","o_footer"),p(n,"class","container")},m(t,e){u(t,n,e),c(n,i),c(i,r),c(r,o),c(o,s),c(o,a),c(i,d),c(i,b),c(n,$),c(n,y);for(let t=0;t<C.length;t+=1)C[t].m(y,null);c(n,w),c(n,x),c(x,_),c(x,v),c(x,M),c(x,k),c(x,S),c(S,D)},p(t,[e]){1&e&&Y!==(Y=t[0].orderNumber+"")&&g(a,Y),1&e&&(L=t[0].items,C=function(t,e,n,i,r,o,s,a,d,c,u,l){let f=t.length,h=o.length,m=f;const p={};for(;m--;)p[t[m].key]=m;const g=[],b=new Map,$=new Map;for(m=h;m--;){const t=l(r,o,m),a=n(t);let d=s.get(a);d?i&&d.p(t,e):(d=c(a,t),d.c()),b.set(a,g[m]=d),a in p&&$.set(a,Math.abs(m-p[a]))}const y=new Set,w=new Set;function x(t){H(t,1),t.m(a,u),s.set(t.key,t),u=t.first,h--}for(;f&&h;){const e=g[h-1],n=t[f-1],i=e.key,r=n.key;e===n?(u=e.first,f--,h--):b.has(r)?!s.has(i)||y.has(i)?x(e):w.has(r)?f--:$.get(i)>$.get(r)?(w.add(i),x(e)):(y.add(r),f--):(d(n,s),f--)}for(;f--;){const e=t[f];b.has(e.key)||d(e,s)}for(;h;)x(g[h-1]);return g}(C,e,N,1,t,L,O,y,E,W,null,z)),3&e&&T!==(T=`${t[1]}${t[0].currencySymbol}`)&&g(D,T)},i:t,o:t,d(t){t&&l(n);for(let t=0;t<C.length;t+=1)C[t].d()}}}function q(t,e,n){var i;let r,o,s,{id:a}=e,{payment:d}=e;const c={countryCode:"IT",currencySymbol:"€",items:[],orderNumber:"0000"};return y(),w(),t.$$set=t=>{"id"in t&&n(2,a=t.id),"payment"in t&&n(0,d=t.payment)},t.$$.update=()=>{if(61&t.$$.dirty){if(a||n(2,a=null),d){if("string"==typeof d&&(n(0,d=JSON.parse(d)||{}),d.countryCode||n(0,d.countryCode="IT",d),!d.currencySymbol))switch(d.countryCode){case"IT":case"EU":n(0,d.currencySymbol="€",d);break;case"US":n(0,d.currencySymbol="$",d)}}else n(0,d=c);n(4,r=null===n(3,i=null==d?void 0:d.items)||void 0===i?void 0:i.map((t=>t.unitaryPrice*(t.quantity||1))).reduce(((t,e)=>t+e),0)),n(5,o=(null==d?void 0:d.items)?Math.round(100*(null==d?void 0:d.items.map((t=>t.unitaryPrice*(t.quantity||1)*t.taxPercentage*.01)).reduce(((t,e)=>t+e),0)))/100:0),n(1,s=r+o+(d.shipmentFee||0))}},[d,s,a,i,r,o]}U((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 J extends I{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");: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}::-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-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-6{flex:0 0 auto;width:50%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(prefers-reduced-motion: reduce){}.text-center{text-align:center !important}@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{}#o_header{margin:20px auto 0px auto;padding-bottom:20px}#o_tracking{text-align:center}.o_item{border-top:solid 1px black;padding:20px 20px 20px 20px}.o_item_image{width:120px;height:120px;background-size:cover;display:inline-block}.o_item_desc{display:inline-block;margin-left:10px}#o_footer{padding-top:20px;border-top:solid 1px black}</style>',A(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},q,F,o,{id:2,payment:0},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["id","payment"]}get id(){return this.$$.ctx[2]}set id(t){this.$$set({id:t}),O()}get payment(){return this.$$.ctx[0]}set payment(t){this.$$set({payment:t}),O()}}return customElements.define("hb-order-list",J),J}();
|
|
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 f(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function m(){return h(" ")}function p(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function g(t){const e={};for(const n of t)e[n.name]=n.value;return e}function y(t){a=t}function $(){if(!a)throw new Error("Function called outside component initialization");return a}function w(){const t=$();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 x=[],_=[],v=[],M=[],k=Promise.resolve();let S=!1;function D(t){v.push(t)}const Y=new Set;let C=0;function O(){const t=a;do{for(;C<x.length;){const t=x[C];C++,y(t),T(t.$$)}for(y(null),x.length=0,C=0;_.length;)_.pop()();for(let t=0;t<v.length;t+=1){const e=v[t];Y.has(e)||(Y.add(e),e())}v.length=0}while(x.length);for(;M.length;)M.pop()();S=!1,Y.clear(),y(t)}function T(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(D)}}const L=new Set;function H(t,e){t&&t.i&&(L.delete(t),t.i(e))}function E(t,e){t.d(1),e.delete(t.key)}function N(t,e){-1===t.$$.dirty[0]&&(x.push(t),S||(S=!0,k.then(O)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(o,s,d,c,u,f,h,m=[-1]){const p=a;y(o);const b=o.$$={fragment:null,ctx:null,props:f,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};h&&h(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&&N(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&&H(o.$$.fragment),function(t,n,o,s){const{fragment:a,on_mount:d,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,o),s||D((()=>{const n=d.map(e).filter(r);c?c.push(...n):i(n),t.$$.on_mount=[]})),u.forEach(D)}(o,s.target,s.anchor,s.customElement),O()}y(p)}let I;"function"==typeof HTMLElement&&(I=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)}});"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function U(t){var e={exports:{}};return t(e,e.exports),e.exports}var j=U((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",f="date",h="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:f,h:s,m:o,s:r,ms:i,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},$="en",w={};w[$]=b;var x=function(t){return t instanceof k},_=function(t,e,n){var i;if(!t)return $;if("string"==typeof t)w[t]&&(i=t),e&&(w[t]=e,i=t);else{var r=t.name;w[r]=t,i=r}return!n&&i&&($=i),i||!n&&$},v=function(t,e){if(x(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new k(n)},M=y;M.l=_,M.i=x,M.w=function(t,e){return v(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var k=function(){function b(t){this.$L=_(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()===h)},g.isSame=function(t,e){var n=v(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return v(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<v(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),h=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?h(1,0):h(31,11);case c:return i?h(1,b):h(0,b+1);case d:var $=this.$locale().weekStart||0,w=(p<$?p+7:p)-$;return h(i?g-w:g+(6-w),b);case a:case f: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":""),h=(n={},n[a]=u+"Date",n[f]=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(f,1);p.$d[h](m),p.init(),this.$d=p.set(f,Math.min(this.$D,p.daysInMonth())).$d}else h&&this.$d[h](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 f,h=this;i=Number(i);var m=M.p(u),p=function(t){var e=v(h);return M.w(e.date(e.date()+Math.round(t*i)),h)};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=(f={},f[o]=e,f[s]=n,f[r]=t,f)[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||h;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")},f=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:f(o,s,!0),A:f(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,f,h){var m,p=M.p(f),b=v(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,h?$:M.a($)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=_(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}(),S=k.prototype;return v.prototype=S,[["$ms",i],["$s",r],["$m",o],["$H",s],["$W",a],["$M",c],["$y",l],["$D",f]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),v.extend=function(t,e){return t.$i||(t(e,k,v),t.$i=!0),v},v.locale=_,v.isDayjs=x,v.unix=function(t){return v(1e3*t)},v.en=w[$],v.Ls=w,v.p={},v}()}));function z(t,e,n){const i=t.slice();return i[10]=e[n],i}function W(t,e){let n,i,r,o,s,a,g,y,$,w,x=e[10].name+"";return{key:t,first:null,c(){n=f("div"),i=f("div"),r=f("img"),s=m(),a=f("span"),g=h(x),y=m(),$=f("div"),$.textContent="quantity",w=m(),p(r,"part","item_image"),p(r,"class","o_item_image"),d(r.src,o=e[10].image)||p(r,"src",o),p(r,"alt",""),p(a,"class","o_item_desc"),p(i,"class","col-9"),p($,"class","col-3 text-center"),p(n,"class","o_item row"),this.first=n},m(t,e){u(t,n,e),c(n,i),c(i,r),c(i,s),c(i,a),c(a,g),c(n,y),c(n,$),c(n,w)},p(t,n){e=t,1&n&&!d(r.src,o=e[10].image)&&p(r,"src",o),1&n&&x!==(x=e[10].name+"")&&b(g,x)},d(t){t&&l(n)}}}function F(e){let n,i,r,o,s,a,d,g,y,$,w,x,_,v,M,k,S,D,Y=e[0].orderNumber+"",C=[],O=new Map,T=`${e[1]}${e[0].currencySymbol}`,L=e[0].items;const N=t=>t[10].id;for(let t=0;t<L.length;t+=1){let n=z(e,L,t),i=N(n);O.set(i,C[t]=W(i,n))}return{c(){n=f("div"),i=f("div"),r=f("div"),o=f("span"),s=h("Order N. "),a=h(Y),d=m(),g=f("div"),g.textContent="tracking",y=m(),$=f("div");for(let t=0;t<C.length;t+=1)C[t].c();w=m(),x=f("div"),_=f("div"),_.textContent="cancel",v=m(),M=f("div"),M.textContent="bbb",k=m(),S=f("div"),D=h(T),this.c=t,p(o,"id","o_number"),p(r,"class","col-10"),p(g,"id","o_tracking"),p(g,"class","col-2"),p(i,"class","row"),p(i,"id","o_header"),p($,"id","o_items"),p(_,"class","col-3 text-center"),p(M,"class","col-6"),p(S,"class","col-3 text-center"),p(x,"class","row"),p(x,"id","o_footer"),p(n,"class","container")},m(t,e){u(t,n,e),c(n,i),c(i,r),c(r,o),c(o,s),c(o,a),c(i,d),c(i,g),c(n,y),c(n,$);for(let t=0;t<C.length;t+=1)C[t].m($,null);c(n,w),c(n,x),c(x,_),c(x,v),c(x,M),c(x,k),c(x,S),c(S,D)},p(t,[e]){1&e&&Y!==(Y=t[0].orderNumber+"")&&b(a,Y),1&e&&(L=t[0].items,C=function(t,e,n,i,r,o,s,a,d,c,u,l){let f=t.length,h=o.length,m=f;const p={};for(;m--;)p[t[m].key]=m;const b=[],g=new Map,y=new Map;for(m=h;m--;){const t=l(r,o,m),a=n(t);let d=s.get(a);d?i&&d.p(t,e):(d=c(a,t),d.c()),g.set(a,b[m]=d),a in p&&y.set(a,Math.abs(m-p[a]))}const $=new Set,w=new Set;function x(t){H(t,1),t.m(a,u),s.set(t.key,t),u=t.first,h--}for(;f&&h;){const e=b[h-1],n=t[f-1],i=e.key,r=n.key;e===n?(u=e.first,f--,h--):g.has(r)?!s.has(i)||$.has(i)?x(e):w.has(r)?f--:y.get(i)>y.get(r)?(w.add(i),x(e)):($.add(r),f--):(d(n,s),f--)}for(;f--;){const e=t[f];g.has(e.key)||d(e,s)}for(;h;)x(b[h-1]);return b}(C,e,N,1,t,L,O,$,E,W,null,z)),3&e&&T!==(T=`${t[1]}${t[0].currencySymbol}`)&&b(D,T)},i:t,o:t,d(t){t&&l(n);for(let t=0;t<C.length;t+=1)C[t].d()}}}function q(t,e,n){var i;let r,o,s,{id:a}=e,{payment:d}=e;const c={countryCode:"IT",currencySymbol:"€",items:[],orderNumber:"0000"};return $(),w(),t.$$set=t=>{"id"in t&&n(2,a=t.id),"payment"in t&&n(0,d=t.payment)},t.$$.update=()=>{if(61&t.$$.dirty){if(a||n(2,a=null),d){if("string"==typeof d&&(n(0,d=JSON.parse(d)||{}),d.countryCode||n(0,d.countryCode="IT",d),!d.currencySymbol))switch(d.countryCode){case"IT":case"EU":n(0,d.currencySymbol="€",d);break;case"US":n(0,d.currencySymbol="$",d)}}else n(0,d=c);n(4,r=null===n(3,i=null==d?void 0:d.items)||void 0===i?void 0:i.map((t=>t.unitaryPrice*(t.quantity||1))).reduce(((t,e)=>t+e),0)),n(5,o=(null==d?void 0:d.items)?Math.round(100*(null==d?void 0:d.items.map((t=>t.unitaryPrice*(t.quantity||1)*t.taxPercentage*.01)).reduce(((t,e)=>t+e),0)))/100:0),n(1,s=r+o+(d.shipmentFee||0))}},[d,s,a,i,r,o]}U((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 J extends I{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");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}img{vertical-align:middle}::-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-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-6{flex:0 0 auto;width:50%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(prefers-reduced-motion: reduce){}.text-center{text-align:center !important}@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{}#o_header{margin:20px auto 0px auto;padding-bottom:20px}#o_tracking{text-align:center}.o_item{border-top:solid 1px black;padding:20px 20px 20px 20px}.o_item_image{width:120px;height:120px;background-size:cover;display:inline-block}.o_item_desc{display:inline-block;margin-left:10px}#o_footer{padding-top:20px;border-top:solid 1px black}</style>',A(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},q,F,o,{id:2,payment:0},null),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),O()))}static get observedAttributes(){return["id","payment"]}get id(){return this.$$.ctx[2]}set id(t){this.$$set({id:t}),O()}get payment(){return this.$$.ctx[0]}set payment(t){this.$$set({payment:t}),O()}}return customElements.define("hb-order-list",J),J}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|