@htmlbricks/hb-downloader 0.6.10 → 0.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-downloader",
3
3
  "displayName": "Svelte-Bootstrap Downloader WebComponent",
4
4
  "description": "Svelte-Bootstrap Downloader WebComponent",
5
- "version": "0.6.10",
5
+ "version": "0.6.11",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -27,7 +27,7 @@
27
27
  "prepublish": "npm run build:release"
28
28
  },
29
29
  "devDependencies": {
30
- "@htmlbricks/hb-jsutils": "^0.6.10",
30
+ "@htmlbricks/hb-jsutils": "^0.6.11",
31
31
  "@rollup/plugin-alias": "^3.1.2",
32
32
  "@rollup/plugin-commonjs": "^18.0.0",
33
33
  "@rollup/plugin-json": "^4.1.0",
@@ -70,5 +70,5 @@
70
70
  "webcomponents"
71
71
  ],
72
72
  "contributors": [],
73
- "gitHead": "7ca1d2381e26c25a762e5f791fa3be5dc6a350b8"
73
+ "gitHead": "c6598fe63d16ad1771736051f71d1ccdedb4c7ae"
74
74
  }
@@ -1,2 +1,2 @@
1
- var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function l(t){return document.createElement(t)}function c(t){return document.createTextNode(t)}function u(){return c(" ")}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function p(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:f(t,e,n)}function h(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function m(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function g(t){const e={};for(const n of t)e[n.name]=n.value;return e}let $;function b(t){$=t}function w(){if(!$)throw new Error("Function called outside component initialization");return $}function y(){const t=w();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}const v=[],x=[],E=[],k=[],_=Promise.resolve();let C=!1;function M(t){E.push(t)}const L=new Set;let j=0;function R(){const t=$;do{for(;j<v.length;){const t=v[j];j++,b(t),T(t.$$)}for(b(null),v.length=0,j=0;x.length;)x.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];L.has(e)||(L.add(e),e())}E.length=0}while(v.length);for(;k.length;)k.pop()();C=!1,L.clear(),b(t)}function T(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(M)}}const H=new Set;function O(t,e){-1===t.$$.dirty[0]&&(v.push(t),C||(C=!0,_.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(s,i,a,l,c,u,f,p=[-1]){const h=$;b(s);const m=s.$$={fragment:null,ctx:null,props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:i.target||h.$$.root};f&&f(m.root);let g=!1;if(m.ctx=a?a(s,i.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return m.ctx&&c(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),g&&O(s,t)),e})):[],m.update(),g=!0,o(m.before_update),m.fragment=!!l&&l(m.ctx),i.target){if(i.hydrate){const t=function(t){return Array.from(t.childNodes)}(i.target);m.fragment&&m.fragment.l(t),t.forEach(d)}else m.fragment&&m.fragment.c();i.intro&&((w=s.$$.fragment)&&w.i&&(H.delete(w),w.i(y))),function(t,n,s,i){const{fragment:a,on_mount:d,on_destroy:l,after_update:c}=t.$$;a&&a.m(n,s),i||M((()=>{const n=d.map(e).filter(r);l?l.push(...n):o(n),t.$$.on_mount=[]})),c.forEach(M)}(s,i.target,i.anchor,i.customElement),R()}var w,y;b(h)}let S;"function"==typeof HTMLElement&&(S=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(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(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 q="0.6.10";function N(t){let e;return{c(){e=c(t[4])},m(t,n){a(t,e,n)},p(t,n){16&n&&h(e,t[4])},d(t){t&&d(e)}}}function z(t){let e,n,o,r,s,u=Math.round(t[3]/t[2]*100)+"";return{c(){e=l("div"),n=l("div"),o=c(u),r=c("%"),f(n,"class","progress-bar"),m(n,"width",Math.round(t[3]/t[2]*100)+"%"),f(n,"role","progressbar"),f(n,"aria-valuenow",s=Math.round(t[3]/t[2]*100)),f(n,"aria-valuemin","0"),f(n,"aria-valuemax","100"),f(e,"class","progress")},m(t,s){a(t,e,s),i(e,n),i(n,o),i(n,r)},p(t,e){12&e&&u!==(u=Math.round(t[3]/t[2]*100)+"")&&h(o,u),12&e&&m(n,"width",Math.round(t[3]/t[2]*100)+"%"),12&e&&s!==(s=Math.round(t[3]/t[2]*100))&&f(n,"aria-valuenow",s)},d(t){t&&d(e)}}}function P(e){let n;return{c(){n=l("div"),n.innerHTML='<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>',f(n,"class","progress")},m(t,e){a(t,n,e)},p:t,d(t){t&&d(n)}}}function U(e){let n,o,r,s,c,h,m,g,$;function b(t,e){return t[2]||t[4]?t[4]?t[4]?N:void 0:z:P}let w=b(e),y=w&&w(e);return{c(){n=l("hb-dialog"),o=l("span"),o.innerHTML='<slot name="title">Downloading</slot>',r=u(),s=l("div"),y&&y.c(),c=u(),h=l("span"),this.c=t,f(o,"slot","title"),f(s,"slot","body-content"),f(h,"slot","modal-footer"),p(n,"id",e[0]),p(n,"show",m=e[1]?"yes":"no")},m(t,d){var l,u,f,p;a(t,n,d),i(n,o),i(n,r),i(n,s),y&&y.m(s,null),i(n,c),i(n,h),g||(l=n,u="modalShow",f=e[9],l.addEventListener(u,f,p),$=()=>l.removeEventListener(u,f,p),g=!0)},p(t,[e]){w===(w=b(t))&&y?y.p(t,e):(y&&y.d(1),y=w&&w(t),y&&(y.c(),y.m(s,null))),1&e&&p(n,"id",t[0]),2&e&&m!==(m=t[1]?"yes":"no")&&p(n,"show",m)},i:t,o:t,d(t){t&&d(n),y&&y.d(),g=!1,$()}}}function B(t,e,n){const o=w(),r=y();function s(t,e){r(t,e),o.dispatchEvent&&o.dispatchEvent(new CustomEvent(t,{detail:e}))}!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}@${q}/release/release.js`,location.href.includes("localhost")&&(e.src=`http://localhost:6006/${t}/dist/release.js`),document.head.appendChild(e)}}("dialog");let i,a,d,l,{downloadid:c}=e,{uri:u}=e,{headers:f}=e,{targetfilename:p}=e,h=0;function m(t){t.show?(n(0,c=t.id),function(){function t(t){console.error(t),t&&n(4,l=t),a=null,s("downloadError",{downloaded:d,id:c,error:t})}n(3,h=0),a=new XMLHttpRequest;try{if(a.open("GET",u,!0),f)for(const t of Object.keys(f))a.setRequestHeader(t,f[t]);a.responseType="blob",a.onload=function(){if(a.status&&(a.status>299||a.status<200))return t("request error");const e=(window.URL||window.webkitURL).createObjectURL(this.response),o=document.createElement("a");return o.href=e,o.target="_blank",o.download=p,document.body.appendChild(o),o.click(),document.body.removeChild(o),console.log("loadEnd"),n(0,c=""),n(1,u=""),a=null,n(8,d=!0),n(4,l=null),s("downloadComplete",{downloaded:d,id:c})},a.onerror=e=>t(e),a.onprogress=function(t){n(2,i=(null==t?void 0:t.total)||0),n(3,h=(null==t?void 0:t.loaded)||0)},a.onloadend=function(t){},a.send()}catch(e){return console.error("download err ",e),t(e)}}()):(n(1,u=""),n(0,c=""),n(4,l=null),a&&a.abort(),a=null)}return t.$$set=t=>{"downloadid"in t&&n(0,c=t.downloadid),"uri"in t&&n(1,u=t.uri),"headers"in t&&n(6,f=t.headers),"targetfilename"in t&&n(7,p=t.targetfilename)},t.$$.update=()=>{if(451&t.$$.dirty){c||n(0,c=""),d||n(8,d=!1),u||n(1,u="");try{f&&"string"==typeof f&&n(6,f=JSON.parse(f))}catch(t){}!p&&u&&n(7,p=u.split("/")[u.split("/").length-1].split("?")[0])}},[c,u,i,h,l,m,f,p,d,t=>m(t.detail)]}class D extends S{constructor(t){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#07689f;transition:width 0.6s ease}@media(prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-size:1rem 1rem}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}:host{font-family:"Roboto", sans-serif}</style>',A(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},B,U,s,{downloadid:0,uri:1,headers:6,targetfilename:7},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["downloadid","uri","headers","targetfilename"]}get downloadid(){return this.$$.ctx[0]}set downloadid(t){this.$$set({downloadid:t}),R()}get uri(){return this.$$.ctx[1]}set uri(t){this.$$set({uri:t}),R()}get headers(){return this.$$.ctx[6]}set headers(t){this.$$set({headers:t}),R()}get targetfilename(){return this.$$.ctx[7]}set targetfilename(t){this.$$set({targetfilename:t}),R()}}return customElements.define("hb-downloader",D),D}();
1
+ var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function s(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,e){t.appendChild(e)}function a(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function l(t){return document.createElement(t)}function c(t){return document.createTextNode(t)}function u(){return c(" ")}function f(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function p(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:f(t,e,n)}function h(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function m(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function g(t){const e={};for(const n of t)e[n.name]=n.value;return e}let $;function b(t){$=t}function w(){if(!$)throw new Error("Function called outside component initialization");return $}function y(){const t=w();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const r=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,r)}))}}}const v=[],x=[],E=[],k=[],_=Promise.resolve();let C=!1;function M(t){E.push(t)}const L=new Set;let j=0;function R(){const t=$;do{for(;j<v.length;){const t=v[j];j++,b(t),T(t.$$)}for(b(null),v.length=0,j=0;x.length;)x.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];L.has(e)||(L.add(e),e())}E.length=0}while(v.length);for(;k.length;)k.pop()();C=!1,L.clear(),b(t)}function T(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(M)}}const H=new Set;function O(t,e){-1===t.$$.dirty[0]&&(v.push(t),C||(C=!0,_.then(R)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function A(s,i,a,l,c,u,f,p=[-1]){const h=$;b(s);const m=s.$$={fragment:null,ctx:null,props:u,update:t,not_equal:c,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(i.context||(h?h.$$.context:[])),callbacks:n(),dirty:p,skip_bound:!1,root:i.target||h.$$.root};f&&f(m.root);let g=!1;if(m.ctx=a?a(s,i.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return m.ctx&&c(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),g&&O(s,t)),e})):[],m.update(),g=!0,o(m.before_update),m.fragment=!!l&&l(m.ctx),i.target){if(i.hydrate){const t=function(t){return Array.from(t.childNodes)}(i.target);m.fragment&&m.fragment.l(t),t.forEach(d)}else m.fragment&&m.fragment.c();i.intro&&((w=s.$$.fragment)&&w.i&&(H.delete(w),w.i(y))),function(t,n,s,i){const{fragment:a,on_mount:d,on_destroy:l,after_update:c}=t.$$;a&&a.m(n,s),i||M((()=>{const n=d.map(e).filter(r);l?l.push(...n):o(n),t.$$.on_mount=[]})),c.forEach(M)}(s,i.target,i.anchor,i.customElement),R()}var w,y;b(h)}let S;"function"==typeof HTMLElement&&(S=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(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(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 q="0.6.11";function N(t){let e;return{c(){e=c(t[4])},m(t,n){a(t,e,n)},p(t,n){16&n&&h(e,t[4])},d(t){t&&d(e)}}}function z(t){let e,n,o,r,s,u=Math.round(t[3]/t[2]*100)+"";return{c(){e=l("div"),n=l("div"),o=c(u),r=c("%"),f(n,"class","progress-bar"),m(n,"width",Math.round(t[3]/t[2]*100)+"%"),f(n,"role","progressbar"),f(n,"aria-valuenow",s=Math.round(t[3]/t[2]*100)),f(n,"aria-valuemin","0"),f(n,"aria-valuemax","100"),f(e,"class","progress")},m(t,s){a(t,e,s),i(e,n),i(n,o),i(n,r)},p(t,e){12&e&&u!==(u=Math.round(t[3]/t[2]*100)+"")&&h(o,u),12&e&&m(n,"width",Math.round(t[3]/t[2]*100)+"%"),12&e&&s!==(s=Math.round(t[3]/t[2]*100))&&f(n,"aria-valuenow",s)},d(t){t&&d(e)}}}function P(e){let n;return{c(){n=l("div"),n.innerHTML='<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>',f(n,"class","progress")},m(t,e){a(t,n,e)},p:t,d(t){t&&d(n)}}}function U(e){let n,o,r,s,c,h,m,g,$;function b(t,e){return t[2]||t[4]?t[4]?t[4]?N:void 0:z:P}let w=b(e),y=w&&w(e);return{c(){n=l("hb-dialog"),o=l("span"),o.innerHTML='<slot name="title">Downloading</slot>',r=u(),s=l("div"),y&&y.c(),c=u(),h=l("span"),this.c=t,f(o,"slot","title"),f(s,"slot","body-content"),f(h,"slot","modal-footer"),p(n,"id",e[0]),p(n,"show",m=e[1]?"yes":"no")},m(t,d){var l,u,f,p;a(t,n,d),i(n,o),i(n,r),i(n,s),y&&y.m(s,null),i(n,c),i(n,h),g||(l=n,u="modalShow",f=e[9],l.addEventListener(u,f,p),$=()=>l.removeEventListener(u,f,p),g=!0)},p(t,[e]){w===(w=b(t))&&y?y.p(t,e):(y&&y.d(1),y=w&&w(t),y&&(y.c(),y.m(s,null))),1&e&&p(n,"id",t[0]),2&e&&m!==(m=t[1]?"yes":"no")&&p(n,"show",m)},i:t,o:t,d(t){t&&d(n),y&&y.d(),g=!1,$()}}}function B(t,e,n){const o=w(),r=y();function s(t,e){r(t,e),o.dispatchEvent&&o.dispatchEvent(new CustomEvent(t,{detail:e}))}!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}@${q}/release/release.js`,location.href.includes("localhost")&&(e.src=`http://localhost:6006/${t}/dist/release.js`),document.head.appendChild(e)}}("dialog");let i,a,d,l,{downloadid:c}=e,{uri:u}=e,{headers:f}=e,{targetfilename:p}=e,h=0;function m(t){t.show?(n(0,c=t.id),function(){function t(t){console.error(t),t&&n(4,l=t),a=null,s("downloadError",{downloaded:d,id:c,error:t})}n(3,h=0),a=new XMLHttpRequest;try{if(a.open("GET",u,!0),f)for(const t of Object.keys(f))a.setRequestHeader(t,f[t]);a.responseType="blob",a.onload=function(){if(a.status&&(a.status>299||a.status<200))return t("request error");const e=(window.URL||window.webkitURL).createObjectURL(this.response),o=document.createElement("a");return o.href=e,o.target="_blank",o.download=p,document.body.appendChild(o),o.click(),document.body.removeChild(o),console.log("loadEnd"),n(0,c=""),n(1,u=""),a=null,n(8,d=!0),n(4,l=null),s("downloadComplete",{downloaded:d,id:c})},a.onerror=e=>t(e),a.onprogress=function(t){n(2,i=(null==t?void 0:t.total)||0),n(3,h=(null==t?void 0:t.loaded)||0)},a.onloadend=function(t){},a.send()}catch(e){return console.error("download err ",e),t(e)}}()):(n(1,u=""),n(0,c=""),n(4,l=null),a&&a.abort(),a=null)}return t.$$set=t=>{"downloadid"in t&&n(0,c=t.downloadid),"uri"in t&&n(1,u=t.uri),"headers"in t&&n(6,f=t.headers),"targetfilename"in t&&n(7,p=t.targetfilename)},t.$$.update=()=>{if(451&t.$$.dirty){c||n(0,c=""),d||n(8,d=!1),u||n(1,u="");try{f&&"string"==typeof f&&n(6,f=JSON.parse(f))}catch(t){}!p&&u&&n(7,p=u.split("/")[u.split("/").length-1].split("?")[0])}},[c,u,i,h,l,m,f,p,d,t=>m(t.detail)]}class D extends S{constructor(t){super(),this.shadowRoot.innerHTML='<style>@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{display:flex;height:1rem;overflow:hidden;font-size:0.75rem;background-color:#e9ecef;border-radius:0.25rem}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#07689f;transition:width 0.6s ease}@media(prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);background-size:1rem 1rem}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media(prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}:host{font-family:"Roboto", sans-serif}</style>',A(this,{target:this.shadowRoot,props:g(this.attributes),customElement:!0},B,U,s,{downloadid:0,uri:1,headers:6,targetfilename:7},null),t&&(t.target&&a(t.target,this,t.anchor),t.props&&(this.$set(t.props),R()))}static get observedAttributes(){return["downloadid","uri","headers","targetfilename"]}get downloadid(){return this.$$.ctx[0]}set downloadid(t){this.$$set({downloadid:t}),R()}get uri(){return this.$$.ctx[1]}set uri(t){this.$$set({uri:t}),R()}get headers(){return this.$$.ctx[6]}set headers(t){this.$$set({headers:t}),R()}get targetfilename(){return this.$$.ctx[7]}set targetfilename(t){this.$$set({targetfilename:t}),R()}}return customElements.define("hb-downloader",D),D}();
2
2
  //# sourceMappingURL=release.js.map