@rededor/cura 0.1.9 → 0.2.0

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.
Files changed (45) hide show
  1. package/dist/cjs/{app-globals-7ae6e3ee.js → app-globals-af978331.js} +0 -5
  2. package/dist/cjs/cura-icon_2.cjs.entry.js +31 -5
  3. package/dist/cjs/cura.cjs.js +3 -3
  4. package/dist/cjs/dummy-component.cjs.entry.js +1 -1
  5. package/dist/cjs/{index-322d0c88.js → index-9092c64d.js} +34 -0
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/collection/api/modules/cura-theme-module.js +0 -5
  8. package/dist/collection/components/cura-icon/cura-icon.css +7 -53
  9. package/dist/collection/components/cura-icon/cura-icon.js +31 -3
  10. package/dist/collection/components/cura-icons-view/cura-icons-view.js +2 -1
  11. package/dist/components/cura-icon2.js +29 -4
  12. package/dist/components/cura-icons-view.js +2 -1
  13. package/dist/components/index.js +0 -5
  14. package/dist/cura/cura.esm.js +1 -1
  15. package/dist/cura/cura.js +1 -1
  16. package/dist/cura/p-3132f4b7.system.js +2 -0
  17. package/dist/cura/p-70abb532.system.js +1 -0
  18. package/dist/cura/p-81ae13d7.entry.js +1 -0
  19. package/dist/cura/{p-26939de0.system.js → p-a0cd4b75.system.js} +0 -0
  20. package/dist/cura/p-abcda1d1.js +2 -0
  21. package/dist/cura/{p-d4559ca3.entry.js → p-ac79f9d1.entry.js} +1 -1
  22. package/dist/cura/{p-cfe07efc.system.entry.js → p-b4c69836.system.entry.js} +1 -1
  23. package/dist/cura/{p-0e08324a.js → p-d2dcd470.js} +0 -0
  24. package/dist/cura/p-e1e4b2ea.system.entry.js +1 -0
  25. package/dist/esm/{app-globals-5c6eb474.js → app-globals-962e5cc3.js} +0 -5
  26. package/dist/esm/cura-icon_2.entry.js +31 -5
  27. package/dist/esm/cura.js +3 -3
  28. package/dist/esm/dummy-component.entry.js +1 -1
  29. package/dist/esm/{index-70d7a4f9.js → index-cec9b650.js} +34 -1
  30. package/dist/esm/loader.js +3 -3
  31. package/dist/esm-es5/{app-globals-5c6eb474.js → app-globals-962e5cc3.js} +0 -0
  32. package/dist/esm-es5/cura-icon_2.entry.js +1 -1
  33. package/dist/esm-es5/cura.js +1 -1
  34. package/dist/esm-es5/dummy-component.entry.js +1 -1
  35. package/dist/esm-es5/index-cec9b650.js +2 -0
  36. package/dist/esm-es5/loader.js +1 -1
  37. package/dist/types/components/cura-icon/cura-icon.d.ts +45 -0
  38. package/dist/types/components/cura-icons-view/cura-icons-view.d.ts +1 -0
  39. package/package.json +4 -3
  40. package/dist/cura/p-25adccc6.system.js +0 -2
  41. package/dist/cura/p-29a8ae0b.system.entry.js +0 -1
  42. package/dist/cura/p-54be87f7.js +0 -2
  43. package/dist/cura/p-c0121c44.entry.js +0 -1
  44. package/dist/cura/p-cf0d42ef.system.js +0 -1
  45. package/dist/esm-es5/index-70d7a4f9.js +0 -2
@@ -0,0 +1 @@
1
+ import{r as i,h as s,H as e,g as o}from"./p-abcda1d1.js";const r=class{constructor(s){i(this,s),this.name="",this.color="neutral",this.iconset="default",this.disabled=!1,this.sizes={128:{size:128,stroke:5.25},72:{size:72,stroke:3.5},64:{size:64,stroke:3.25},48:{size:48,stroke:2.75},40:{size:40,stroke:2.5},32:{size:32,stroke:2.25},24:{size:24,stroke:2},20:{size:20,stroke:1.75},16:{size:16,stroke:1.5},default:{size:24,stroke:2}}}sizeHandler(i){this.setHostProperty("--size",this.sizes[`${i}`]?`${this.sizes[i].size}px`:`${this.sizes.default.size}px`),this.setHostProperty("--stroke",(i=>this.sizes[i].stroke*(this.sizes.default.size/this.sizes[i].size)+"px")(this.sizes[`${i}`]?i:"default"))}connectedCallback(){this.assetsPath=window.CuraAPI.localAssetsPath,this.sizeHandler(this.size)}getClasses(){const i={};return i[`icon-${this.color}`]=!0,this.disabled&&(i["icon-disabled"]=!0),i}setHostProperty(i,s){this.host.style.setProperty(i,s)}render(){return s(e,null,s("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},s("use",{xlinkHref:`${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}`})))}get host(){return o(this)}static get watchers(){return{size:["sizeHandler"]}}};r.style=":host{--stroke-color:#B7B7B7}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";const t=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"],a=class{constructor(s){i(this,s),this.sizes=[16,20,24,32,40,48,64,72,128],this.colors=["primary","secondary","accent","info","warning","error","success","neutral"],this.selected="360",this.setSelected=i=>{this.selected=i}}render(){return s(e,null,s("div",{class:"iconDetail"},s("h4",null,this.selected),s("div",{class:"iconSizes"},this.sizes.map((i=>s("div",{class:"size"},s("cura-icon",{name:this.selected,size:i}),s("span",null,i))))),s("div",{class:"iconSizes invert"},this.sizes.map((i=>s("div",{class:"size"},s("cura-icon",{name:this.selected,size:i,color:"white"}),s("span",null,i))))),s("div",{class:"iconSizes"},this.colors.map((i=>s("div",{class:"size"},s("cura-icon",{name:this.selected,color:i}),s("span",null,i)))),s("div",{class:"size"},s("cura-icon",{name:this.selected,disabled:!0}),s("span",null,"Disabled")))),s("div",{class:"icons"},t.map((i=>s("div",{class:"icon",onClick:()=>this.setSelected(i)},s("cura-icon",{name:i}),s("span",null,i))))))}};a.style=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";export{r as cura_icon,a as cura_icons_view}
@@ -0,0 +1,2 @@
1
+ let t,e,n=!1,l=!1;const s="http://www.w3.org/1999/xlink",o={},r=t=>"object"==(t=typeof t)||"function"===t,c=(t,e,...n)=>{let l=null,s=!1,o=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!r(l))&&(l+=""),s&&o?c[c.length-1].t+=l:c.push(s?i(null,l):l),o=s)};if(u(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const a=i(t,null);return a.l=e,c.length>0&&(a.o=c),a},i=(t,e)=>({i:0,u:t,t:e,h:null,o:null,l:null}),u={},a=t=>L(t).$,f=new WeakMap,h=t=>"sc-"+t.p,$=(t,e,n,l,o,c)=>{if(n!==l){let i=W(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,s=y(n),o=y(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if(i||"o"!==e[0]||"n"!==e[1]){const a=r(l);if((i||a&&null!==l)&&!o)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?i=!1:null!=n&&t[e]==s||(t[e]=s)}}catch(t){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(e=u,f=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(s,e):t.removeAttribute(e)):(!i||4&c||o)&&!a&&(l=!0===l?"":l,f?t.setAttributeNS(s,e,l):t.setAttribute(e,l))}else e="-"===e[2]?e.slice(3):W(z,u)?u.slice(2):u[2]+e.slice(3),n&&D.rel(t,e,n,!1),l&&D.ael(t,e,l,!1)}},w=/\s/,y=t=>t?t.split(w):[],p=(t,e,n,l)=>{const s=11===e.h.nodeType&&e.h.host?e.h.host:e.h,r=t&&t.l||o,c=e.l||o;for(l in r)l in c||$(s,l,r[l],void 0,n,e.i);for(l in c)$(s,l,r[l],c[l],n,e.i)},d=(e,l,s)=>{const o=l.o[s];let r,c,i=0;if(null!==o.t)r=o.h=B.createTextNode(o.t);else{if(n||(n="svg"===o.u),r=o.h=B.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),n&&"foreignObject"===o.u&&(n=!1),p(null,o,n),null!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),o.o)for(i=0;i<o.o.length;++i)c=d(e,o,i),c&&r.appendChild(c);"svg"===o.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},m=(t,n,l,s,o,r)=>{let c,i=t;for(i.shadowRoot&&i.tagName===e&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=d(null,l,o),c&&(s[o].h=c,i.insertBefore(c,n)))},b=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.h.remove()},g=(t,e)=>t.u===e.u,v=(t,e)=>{const l=e.h=t.h,s=t.o,o=e.o,r=e.u,c=e.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,"slot"===r||p(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,c=e.length-1,i=e[0],u=e[c],a=l.length-1,f=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=e[++o]:null==u?u=e[--c]:null==f?f=l[++r]:null==h?h=l[--a]:g(i,f)?(v(i,f),i=e[++o],f=l[++r]):g(u,h)?(v(u,h),u=e[--c],h=l[--a]):g(i,h)?(v(i,h),t.insertBefore(i.h,u.h.nextSibling),i=e[++o],h=l[--a]):g(u,f)?(v(u,f),t.insertBefore(u.h,i.h),u=e[--c],f=l[++r]):(s=d(e&&e[r],n,r),f=l[++r],s&&i.h.parentNode.insertBefore(s,i.h));o>c?m(t,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&b(e,o,c)})(l,s,e,o):null!==o?(null!==t.t&&(l.textContent=""),m(l,null,e,o,0,o.length-1)):null!==s&&b(s,0,s.length-1),n&&"svg"===r&&(n=!1)):t.t!==c&&(l.data=c)},S=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},j=(t,e)=>{if(t.i|=16,!(4&t.i))return S(t,t.g),tt((()=>k(t,e)));t.i|=512},k=(t,e)=>{const n=t.v;return P(void 0,(()=>O(t,n,e)))},O=async(t,e,n)=>{const l=t.$,s=l["s-rc"];n&&(t=>{const e=t.S,n=t.$,l=e.i,s=((t,e)=>{let n=h(e);const l=_.get(n);if(t=11===t.nodeType?t:B,l)if("string"==typeof l){let e,s=f.get(t=t.head||t);s||f.set(t,s=new Set),s.has(n)||(e=B.createElement("style"),e.innerHTML=l,t.insertBefore(e,t.querySelector("link")),s&&s.add(n))}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(t);M(t,e),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=l["s-p"],n=()=>C(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},M=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const s=n.$,o=n.S,r=n.j||i(null,null),a=(t=>t&&t.u===u)(l)?l:c(null,null,l);e=s.tagName,o.k&&(a.l=a.l||{},o.k.map((([t,e])=>a.l[e]=s[t]))),a.u=null,a.i|=4,n.j=a,a.h=r.h=s.shadowRoot||s,t=s["s-sc"],v(r,a)})(n,l)}catch(t){q(t,n.$)}return null},C=t=>{const e=t.$,n=t.g;64&t.i||(t.i|=64,E(e),t.O(e),n||x()),t.m&&(t.m(),t.m=void 0),512&t.i&&Z((()=>j(t,!1))),t.i&=-517},x=()=>{E(B.documentElement),Z((()=>(t=>{const e=D.ce("appload",{detail:{namespace:"cura"}});return t.dispatchEvent(e),e})(z)))},P=(t,e)=>t&&t.then?t.then(e):e(),E=t=>t.classList.add("hydrated"),N=(t,e,n)=>{if(e.M){t.watchers&&(e.C=t.watchers);const l=Object.entries(e.M),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>L(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=L(t),o=s.$,c=s.P.get(e),i=s.i,u=s.v;if(n=((t,e)=>null==t||r(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t)(n,l.M[e][0]),(!(8&i)||void 0===c)&&n!==c&&(!Number.isNaN(c)||!Number.isNaN(n))&&(s.P.set(e,n),u)){if(l.C&&128&i){const t=l.C[e];t&&t.map((t=>{try{u[t](n,c,e)}catch(t){q(t,o)}}))}2==(18&i)&&j(s,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){D.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))l=this[e],delete this[e];else if(s.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==l)return;this[e]=(null!==l||"boolean"!=typeof this[e])&&l}))},t.observedAttributes=l.filter((([t,e])=>15&e[0])).map((([t,l])=>{const s=l[1]||t;return n.set(s,t),512&l[0]&&e.k.push([t,s]),s}))}}return t},T=t=>{((t,e)=>{if(t&&t[e])try{t[e](void 0)}catch(t){q(t)}})(t,"connectedCallback")},A=(t,e={})=>{const n=[],l=e.exclude||[],s=z.customElements,o=B.head,r=o.querySelector("meta[charset]"),c=B.createElement("style"),i=[];let u,a=!0;Object.assign(D,e),D.N=new URL(e.resourcesUrl||"./",B.baseURI).href,t.map((t=>{t[1].map((e=>{const o={i:e[0],p:e[1],M:e[2],T:e[3]};o.M=e[2],o.k=[],o.C={};const r=o.p,c=class extends HTMLElement{constructor(t){super(t),U(t=this,o),1&o.i&&t.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?i.push(this):D.jmp((()=>(t=>{if(0==(1&D.i)){const e=L(t),n=e.S,l=()=>{};if(1&e.i)T(e.v);else{e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(e,e.g=n);break}}n.M&&Object.entries(n.M).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,l,s)=>{if(0==(32&e.i)){{if(e.i|=32,(s=V(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(n.C=s.watchers,N(s,n,2),s.isProxied=!0);const t=()=>{};e.i|=8;try{new s(e)}catch(t){q(t)}e.i&=-9,e.i|=128,t(),T(e.v)}if(s.style){let t=s.style;const e=h(n);if(!_.has(e)){const l=()=>{};((t,e,n)=>{let l=_.get(t);I&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,_.set(t,l)})(e,t,!!(1&n.i)),l()}}}const o=e.g,r=()=>j(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){D.jmp((()=>{}))}componentOnReady(){return L(this).A}};o.H=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,N(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),a=!1,i.length?i.map((t=>t.connectedCallback())):D.jmp((()=>u=setTimeout(x,30)))},H=new WeakMap,L=t=>H.get(t),R=(t,e)=>H.set(e.v=t,e),U=(t,e)=>{const n={i:0,$:t,S:e,P:new Map};return n.A=new Promise((t=>n.O=t)),t["s-p"]=[],t["s-rc"]=[],H.set(t,n)},W=(t,e)=>e in t,q=(t,e)=>(0,console.error)(t,e),F=new Map,V=t=>{const e=t.p.replace(/-/g,"_"),n=t.H,l=F.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(F.set(n,t),t[e])),q)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},_=new Map,z="undefined"!=typeof window?window:{},B=z.document||{head:{}},D={i:0,N:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},G=t=>Promise.resolve(t),I=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),J=[],K=[],Q=(t,e)=>n=>{t.push(n),l||(l=!0,e&&4&D.i?Z(Y):D.raf(Y))},X=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){q(t)}t.length=0},Y=()=>{X(J),X(K),(l=J.length>0)&&D.raf(Y)},Z=t=>G().then(t),tt=Q(K,!0);export{u as H,A as b,a as g,c as h,G as p,R as r}
@@ -1 +1 @@
1
- import{r as s,h as o,H as l}from"./p-54be87f7.js";const r=class{constructor(o){s(this,o)}render(){return o(l,null,o("h1",null,o("slot",null)))}};r.style=":host{display:block}";export{r as dummy_component}
1
+ import{r as s,h as o,H as l}from"./p-abcda1d1.js";const r=class{constructor(o){s(this,o)}render(){return o(l,null,o("h1",null,o("slot",null)))}};r.style=":host{display:block}";export{r as dummy_component}
@@ -1 +1 @@
1
- System.register(["./p-25adccc6.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h;r=t.H}],execute:function(){var u=":host{display:block}";var s=t("dummy_component",function(){function t(t){n(this,t)}t.prototype.render=function(){return e(r,null,e("h1",null,e("slot",null)))};return t}());s.style=u}}}));
1
+ System.register(["./p-3132f4b7.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h;r=t.H}],execute:function(){var u=":host{display:block}";var s=t("dummy_component",function(){function t(t){n(this,t)}t.prototype.render=function(){return e(r,null,e("h1",null,e("slot",null)))};return t}());s.style=u}}}));
File without changes
@@ -0,0 +1 @@
1
+ System.register(["./p-3132f4b7.system.js"],(function(e){"use strict";var s,i,t,o;return{setters:[function(e){s=e.r;i=e.h;t=e.H;o=e.g}],execute:function(){var r=":host{--stroke-color:#B7B7B7}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";var n=e("cura_icon",function(){function e(e){s(this,e);this.name="";this.color="neutral";this.iconset="default";this.disabled=false;this.sizes={128:{size:128,stroke:5.25},72:{size:72,stroke:3.5},64:{size:64,stroke:3.25},48:{size:48,stroke:2.75},40:{size:40,stroke:2.5},32:{size:32,stroke:2.25},24:{size:24,stroke:2},20:{size:20,stroke:1.75},16:{size:16,stroke:1.5},default:{size:24,stroke:2}}}e.prototype.sizeHandler=function(e){var s=this;var i=function(e){return"".concat(s.sizes[e].stroke*(s.sizes.default.size/s.sizes[e].size),"px")};this.setHostProperty("--size",this.sizes["".concat(e)]?"".concat(this.sizes[e].size,"px"):"".concat(this.sizes.default.size,"px"));this.setHostProperty("--stroke",this.sizes["".concat(e)]?i(e):i("default"))};e.prototype.connectedCallback=function(){this.assetsPath=window.CuraAPI.localAssetsPath;this.sizeHandler(this.size)};e.prototype.getClasses=function(){var e={};e["icon-".concat(this.color)]=true;if(this.disabled)e["icon-disabled"]=true;return e};e.prototype.setHostProperty=function(e,s){this.host.style.setProperty(e,s)};e.prototype.render=function(){return i(t,null,i("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},i("use",{xlinkHref:"".concat(this.assetsPath,"/icons/iconset-").concat(this.iconset,".svg#").concat(this.name)})))};Object.defineProperty(e.prototype,"host",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{size:["sizeHandler"]}},enumerable:false,configurable:true});return e}());n.style=r;var a=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"];var c=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";var l=e("cura_icons_view",function(){function e(e){var i=this;s(this,e);this.sizes=[16,20,24,32,40,48,64,72,128];this.colors=["primary","secondary","accent","info","warning","error","success","neutral"];this.selected="360";this.setSelected=function(e){i.selected=e}}e.prototype.render=function(){var e=this;return i(t,null,i("div",{class:"iconDetail"},i("h4",null,this.selected),i("div",{class:"iconSizes"},this.sizes.map((function(s){return i("div",{class:"size"},i("cura-icon",{name:e.selected,size:s}),i("span",null,s))}))),i("div",{class:"iconSizes invert"},this.sizes.map((function(s){return i("div",{class:"size"},i("cura-icon",{name:e.selected,size:s,color:"white"}),i("span",null,s))}))),i("div",{class:"iconSizes"},this.colors.map((function(s){return i("div",{class:"size"},i("cura-icon",{name:e.selected,color:s}),i("span",null,s))})),i("div",{class:"size"},i("cura-icon",{name:this.selected,disabled:true}),i("span",null,"Disabled")))),i("div",{class:"icons"},a.map((function(s){return i("div",{class:"icon",onClick:function(){return e.setSelected(s)}},i("cura-icon",{name:s}),i("span",null,s))}))))};return e}());l.style=c}}}));
@@ -79,7 +79,6 @@ class CuraThemeModule {
79
79
  /** Set css var based on object structure */
80
80
  this.setCssVar = (prop, path) => {
81
81
  const varName = this.groupPath(path, prop[0]);
82
- // console.log('Setting %s: %s', varName, prop[1]);
83
82
  this.body.style.setProperty(varName, prop[1]);
84
83
  };
85
84
  this.groupPath = (a, b) => `${a}-${b}`;
@@ -101,7 +100,6 @@ class CuraThemeModule {
101
100
  /** Set css vars from preset object */
102
101
  this.buildCssVars = (path, obj) => {
103
102
  const entries = Object.entries(obj);
104
- // console.log('Reading %s', path);
105
103
  for (let e of entries) {
106
104
  if (this.isObject(e[1])) {
107
105
  this.buildCssVars(this.groupPath(path, e[0]), e[1]);
@@ -119,7 +117,6 @@ class CuraThemeModule {
119
117
  */
120
118
  load(theme = 'default') {
121
119
  const preset = ThemePresets[theme] ? ThemePresets[theme] : ThemePresets.default;
122
- // console.log('Loading Theme: %s', theme, preset);
123
120
  this.buildCssVars(this.prefix, preset);
124
121
  }
125
122
  /**
@@ -138,9 +135,7 @@ class CuraThemeModule {
138
135
  : ThemePresets.default;
139
136
  const newTheme = Object.assign({}, JSON.parse(JSON.stringify(preset)));
140
137
  this.mergeObject(customTheme.definitions, newTheme);
141
- // console.log('Custom Theme: %s', newTheme);
142
138
  ThemePresets[customTag] = newTheme;
143
- // console.log('Presets:', ThemePresets);
144
139
  this.load(customTag);
145
140
  }
146
141
  }
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, H as Host } from './index-70d7a4f9.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-cec9b650.js';
2
2
 
3
- const curaIconCss = ":host{--stroke-color:#B7B7B7;--stroke-width:2px;--width:24px;--height:24px}:host svg.icon-128{--width:128px;--height:128px;--stroke-width:0.984375px}:host svg.icon-72{--width:72px;--height:72px;--stroke-width:1.1666666667px}:host svg.icon-64{--width:64px;--height:64px;--stroke-width:1.21875px}:host svg.icon-48{--width:48px;--height:48px;--stroke-width:1.375px}:host svg.icon-40{--width:40px;--height:40px;--stroke-width:1.5px}:host svg.icon-32{--width:32px;--height:32px;--stroke-width:1.6875px}:host svg.icon-24{--width:24px;--height:24px;--stroke-width:2px}:host svg.icon-20{--width:20px;--height:20px;--stroke-width:2.1px}:host svg.icon-16{--width:16px;--height:16px;--stroke-width:2.25px}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--width);height:var(--height);stroke-width:var(--stroke-width);fill:none}";
3
+ const curaIconCss = ":host{--stroke-color:#B7B7B7}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";
4
4
 
5
5
  const CuraIcon = class {
6
6
  constructor(hostRef) {
@@ -9,22 +9,47 @@ const CuraIcon = class {
9
9
  this.color = 'neutral';
10
10
  this.iconset = 'default';
11
11
  this.disabled = false;
12
+ this.sizes = {
13
+ "128": { size: 128, stroke: 5.25 },
14
+ "72": { size: 72, stroke: 3.5 },
15
+ "64": { size: 64, stroke: 3.25 },
16
+ "48": { size: 48, stroke: 2.75 },
17
+ "40": { size: 40, stroke: 2.5 },
18
+ "32": { size: 32, stroke: 2.25 },
19
+ "24": { size: 24, stroke: 2 },
20
+ "20": { size: 20, stroke: 1.75 },
21
+ "16": { size: 16, stroke: 1.5 },
22
+ "default": { size: 24, stroke: 2 }
23
+ };
24
+ }
25
+ sizeHandler(size) {
26
+ const scaledStroke = (iconSize) => {
27
+ return `${this.sizes[iconSize].stroke * (this.sizes.default.size / this.sizes[iconSize].size)}px`;
28
+ };
29
+ this.setHostProperty('--size', this.sizes[`${size}`] ? `${this.sizes[size].size}px` : `${this.sizes.default.size}px`);
30
+ this.setHostProperty('--stroke', this.sizes[`${size}`] ? scaledStroke(size) : scaledStroke("default"));
12
31
  }
13
32
  connectedCallback() {
14
33
  this.assetsPath = window.CuraAPI.localAssetsPath;
34
+ this.sizeHandler(this.size);
15
35
  }
16
36
  getClasses() {
17
37
  const classes = {};
18
38
  classes[`icon-${this.color}`] = true;
19
- if (this.size)
20
- classes[`icon-${this.size}`] = true;
21
39
  if (this.disabled)
22
40
  classes[`icon-disabled`] = true;
23
41
  return classes;
24
42
  }
43
+ setHostProperty(prop, value) {
44
+ this.host.style.setProperty(prop, value);
45
+ }
25
46
  render() {
26
47
  return (h(Host, null, h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", class: this.getClasses() }, h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
27
48
  }
49
+ get host() { return getElement(this); }
50
+ static get watchers() { return {
51
+ "size": ["sizeHandler"]
52
+ }; }
28
53
  };
29
54
  CuraIcon.style = curaIconCss;
30
55
 
@@ -36,13 +61,14 @@ const CuraIconsView = class {
36
61
  constructor(hostRef) {
37
62
  registerInstance(this, hostRef);
38
63
  this.sizes = [16, 20, 24, 32, 40, 48, 64, 72, 128];
64
+ this.colors = ['primary', 'secondary', 'accent', 'info', 'warning', 'error', 'success', 'neutral'];
39
65
  this.selected = '360';
40
66
  this.setSelected = (icon) => {
41
67
  this.selected = icon;
42
68
  };
43
69
  }
44
70
  render() {
45
- return (h(Host, null, h("div", { class: "iconDetail" }, h("h4", null, this.selected), h("div", { class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "white" }), h("span", null, size)))), h("div", { class: "iconSizes" }, h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "primary" }), h("span", null, "Primary")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "secondary" }), h("span", null, "Secondary")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "accent" }), h("span", null, "Accent")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "info" }), h("span", null, "Info")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "warning" }), h("span", null, "Warning")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "error" }), h("span", null, "Error")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "success" }), h("span", null, "Success")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "neutral" }), h("span", null, "Neutral")), h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: "primary", disabled: true }), h("span", null, "Disabled")))), h("div", { class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: "icon", onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon }), h("span", null, icon))))));
71
+ return (h(Host, null, h("div", { class: "iconDetail" }, h("h4", null, this.selected), h("div", { class: "iconSizes" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size }), h("span", null, size)))), h("div", { class: "iconSizes invert" }, this.sizes.map(size => h("div", { class: "size" }, h("cura-icon", { name: this.selected, size: size, color: "white" }), h("span", null, size)))), h("div", { class: "iconSizes" }, this.colors.map(color => h("div", { class: "size" }, h("cura-icon", { name: this.selected, color: color }), h("span", null, color))), h("div", { class: "size" }, h("cura-icon", { name: this.selected, disabled: true }), h("span", null, "Disabled")))), h("div", { class: "icons" }, iconsetdefaulticons.map(icon => h("div", { class: "icon", onClick: () => this.setSelected(icon) }, h("cura-icon", { name: icon }), h("span", null, icon))))));
46
72
  }
47
73
  };
48
74
  CuraIconsView.style = curaIconsViewCss;
package/dist/esm/cura.js CHANGED
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-70d7a4f9.js';
2
- import { g as globalScripts } from './app-globals-5c6eb474.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-cec9b650.js';
2
+ import { g as globalScripts } from './app-globals-962e5cc3.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
 
16
16
  patchBrowser().then(options => {
17
17
  globalScripts();
18
- return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{"selected":[32]}],[1,"cura-icon",{"name":[513],"color":[513],"size":[520],"iconset":[513],"disabled":[516]}]]]], options);
18
+ return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{"selected":[32]}],[1,"cura-icon",{"name":[513],"color":[513],"size":[8],"iconset":[513],"disabled":[516]}]]]], options);
19
19
  });
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-70d7a4f9.js';
1
+ import { r as registerInstance, h, H as Host } from './index-cec9b650.js';
2
2
 
3
3
  const dummyComponentCss = ":host{display:block}";
4
4
 
@@ -164,6 +164,7 @@ const parsePropertyValue = (propValue, propType) => {
164
164
  // so no need to change to a different type
165
165
  return propValue;
166
166
  };
167
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
167
168
  /**
168
169
  * Helper function to create & dispatch a custom Event on a provided target
169
170
  * @param elm the target of the Event
@@ -900,6 +901,7 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
900
901
  const setValue = (ref, propName, newVal, cmpMeta) => {
901
902
  // check our new property value against our internal value
902
903
  const hostRef = getHostRef(ref);
904
+ const elm = hostRef.$hostElement$ ;
903
905
  const oldVal = hostRef.$instanceValues$.get(propName);
904
906
  const flags = hostRef.$flags$;
905
907
  const instance = hostRef.$lazyInstance$ ;
@@ -912,6 +914,22 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
912
914
  // set our new value!
913
915
  hostRef.$instanceValues$.set(propName, newVal);
914
916
  if (instance) {
917
+ // get an array of method names of watch functions to call
918
+ if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
919
+ const watchMethods = cmpMeta.$watchers$[propName];
920
+ if (watchMethods) {
921
+ // this instance is watching for when this property changed
922
+ watchMethods.map((watchMethodName) => {
923
+ try {
924
+ // fire off each of the watch methods that are watching this property
925
+ instance[watchMethodName](newVal, oldVal, propName);
926
+ }
927
+ catch (e) {
928
+ consoleError(e, elm);
929
+ }
930
+ });
931
+ }
932
+ }
915
933
  if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
916
934
  // looks like this value actually changed, so we've got work to do!
917
935
  // but only if we've already rendered, otherwise just chill out
@@ -934,6 +952,9 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
934
952
  */
935
953
  const proxyComponent = (Cstr, cmpMeta, flags) => {
936
954
  if (cmpMeta.$members$) {
955
+ if (Cstr.watchers) {
956
+ cmpMeta.$watchers$ = Cstr.watchers;
957
+ }
937
958
  // It's better to have a const than two Object.entries()
938
959
  const members = Object.entries(cmpMeta.$members$);
939
960
  const prototype = Cstr.prototype;
@@ -1041,6 +1062,12 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1041
1062
  endLoad();
1042
1063
  }
1043
1064
  if (!Cstr.isProxied) {
1065
+ // we've never proxied this Constructor before
1066
+ // let's add the getters/setters to its prototype before
1067
+ // the first time we create an instance of the implementation
1068
+ {
1069
+ cmpMeta.$watchers$ = Cstr.watchers;
1070
+ }
1044
1071
  proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1045
1072
  Cstr.isProxied = true;
1046
1073
  }
@@ -1064,6 +1091,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1064
1091
  {
1065
1092
  hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1066
1093
  }
1094
+ {
1095
+ hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1096
+ }
1067
1097
  endNewInstance();
1068
1098
  fireConnectedCallback(hostRef.$lazyInstance$);
1069
1099
  }
@@ -1176,6 +1206,9 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1176
1206
  {
1177
1207
  cmpMeta.$attrsToReflect$ = [];
1178
1208
  }
1209
+ {
1210
+ cmpMeta.$watchers$ = {};
1211
+ }
1179
1212
  const tagName = cmpMeta.$tagName$;
1180
1213
  const HostElement = class extends HTMLElement {
1181
1214
  // StencilLazyHost
@@ -1347,4 +1380,4 @@ const flush = () => {
1347
1380
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1348
1381
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1349
1382
 
1350
- export { Host as H, bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };
1383
+ export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r };
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-70d7a4f9.js';
2
- import { g as globalScripts } from './app-globals-5c6eb474.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-cec9b650.js';
2
+ import { g as globalScripts } from './app-globals-962e5cc3.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -12,7 +12,7 @@ const defineCustomElements = (win, options) => {
12
12
  if (typeof window === 'undefined') return Promise.resolve();
13
13
  return patchEsm().then(() => {
14
14
  globalScripts();
15
- return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{"selected":[32]}],[1,"cura-icon",{"name":[513],"color":[513],"size":[520],"iconset":[513],"disabled":[516]}]]]], options);
15
+ return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{"selected":[32]}],[1,"cura-icon",{"name":[513],"color":[513],"size":[8],"iconset":[513],"disabled":[516]}]]]], options);
16
16
  });
17
17
  };
18
18
 
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-70d7a4f9.js";var curaIconCss=":host{--stroke-color:#B7B7B7;--stroke-width:2px;--width:24px;--height:24px}:host svg.icon-128{--width:128px;--height:128px;--stroke-width:0.984375px}:host svg.icon-72{--width:72px;--height:72px;--stroke-width:1.1666666667px}:host svg.icon-64{--width:64px;--height:64px;--stroke-width:1.21875px}:host svg.icon-48{--width:48px;--height:48px;--stroke-width:1.375px}:host svg.icon-40{--width:40px;--height:40px;--stroke-width:1.5px}:host svg.icon-32{--width:32px;--height:32px;--stroke-width:1.6875px}:host svg.icon-24{--width:24px;--height:24px;--stroke-width:2px}:host svg.icon-20{--width:20px;--height:20px;--stroke-width:2.1px}:host svg.icon-16{--width:16px;--height:16px;--stroke-width:2.25px}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--width);height:var(--height);stroke-width:var(--stroke-width);fill:none}";var CuraIcon=function(){function e(e){registerInstance(this,e);this.name="";this.color="neutral";this.iconset="default";this.disabled=false}e.prototype.connectedCallback=function(){this.assetsPath=window.CuraAPI.localAssetsPath};e.prototype.getClasses=function(){var e={};e["icon-".concat(this.color)]=true;if(this.size)e["icon-".concat(this.size)]=true;if(this.disabled)e["icon-disabled"]=true;return e};e.prototype.render=function(){return h(Host,null,h("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},h("use",{xlinkHref:"".concat(this.assetsPath,"/icons/iconset-").concat(this.iconset,".svg#").concat(this.name)})))};return e}();CuraIcon.style=curaIconCss;var iconsetdefaulticons=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"];var curaIconsViewCss=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";var CuraIconsView=function(){function e(e){var i=this;registerInstance(this,e);this.sizes=[16,20,24,32,40,48,64,72,128];this.selected="360";this.setSelected=function(e){i.selected=e}}e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"iconDetail"},h("h4",null,this.selected),h("div",{class:"iconSizes"},this.sizes.map((function(i){return h("div",{class:"size"},h("cura-icon",{name:e.selected,size:i}),h("span",null,i))}))),h("div",{class:"iconSizes invert"},this.sizes.map((function(i){return h("div",{class:"size"},h("cura-icon",{name:e.selected,size:i,color:"white"}),h("span",null,i))}))),h("div",{class:"iconSizes"},h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"primary"}),h("span",null,"Primary")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"secondary"}),h("span",null,"Secondary")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"accent"}),h("span",null,"Accent")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"info"}),h("span",null,"Info")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"warning"}),h("span",null,"Warning")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"error"}),h("span",null,"Error")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"success"}),h("span",null,"Success")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"neutral"}),h("span",null,"Neutral")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"primary",disabled:true}),h("span",null,"Disabled")))),h("div",{class:"icons"},iconsetdefaulticons.map((function(i){return h("div",{class:"icon",onClick:function(){return e.setSelected(i)}},h("cura-icon",{name:i}),h("span",null,i))}))))};return e}();CuraIconsView.style=curaIconsViewCss;export{CuraIcon as cura_icon,CuraIconsView as cura_icons_view};
1
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-cec9b650.js";var curaIconCss=":host{--stroke-color:#B7B7B7}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host{width:var(--size);height:var(--size)}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--size);height:var(--size);stroke-width:var(--stroke);fill:none}";var CuraIcon=function(){function e(e){registerInstance(this,e);this.name="";this.color="neutral";this.iconset="default";this.disabled=false;this.sizes={128:{size:128,stroke:5.25},72:{size:72,stroke:3.5},64:{size:64,stroke:3.25},48:{size:48,stroke:2.75},40:{size:40,stroke:2.5},32:{size:32,stroke:2.25},24:{size:24,stroke:2},20:{size:20,stroke:1.75},16:{size:16,stroke:1.5},default:{size:24,stroke:2}}}e.prototype.sizeHandler=function(e){var s=this;var i=function(e){return"".concat(s.sizes[e].stroke*(s.sizes.default.size/s.sizes[e].size),"px")};this.setHostProperty("--size",this.sizes["".concat(e)]?"".concat(this.sizes[e].size,"px"):"".concat(this.sizes.default.size,"px"));this.setHostProperty("--stroke",this.sizes["".concat(e)]?i(e):i("default"))};e.prototype.connectedCallback=function(){this.assetsPath=window.CuraAPI.localAssetsPath;this.sizeHandler(this.size)};e.prototype.getClasses=function(){var e={};e["icon-".concat(this.color)]=true;if(this.disabled)e["icon-disabled"]=true;return e};e.prototype.setHostProperty=function(e,s){this.host.style.setProperty(e,s)};e.prototype.render=function(){return h(Host,null,h("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},h("use",{xlinkHref:"".concat(this.assetsPath,"/icons/iconset-").concat(this.iconset,".svg#").concat(this.name)})))};Object.defineProperty(e.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{size:["sizeHandler"]}},enumerable:false,configurable:true});return e}();CuraIcon.style=curaIconCss;var iconsetdefaulticons=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"];var curaIconsViewCss=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";var CuraIconsView=function(){function e(e){var s=this;registerInstance(this,e);this.sizes=[16,20,24,32,40,48,64,72,128];this.colors=["primary","secondary","accent","info","warning","error","success","neutral"];this.selected="360";this.setSelected=function(e){s.selected=e}}e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"iconDetail"},h("h4",null,this.selected),h("div",{class:"iconSizes"},this.sizes.map((function(s){return h("div",{class:"size"},h("cura-icon",{name:e.selected,size:s}),h("span",null,s))}))),h("div",{class:"iconSizes invert"},this.sizes.map((function(s){return h("div",{class:"size"},h("cura-icon",{name:e.selected,size:s,color:"white"}),h("span",null,s))}))),h("div",{class:"iconSizes"},this.colors.map((function(s){return h("div",{class:"size"},h("cura-icon",{name:e.selected,color:s}),h("span",null,s))})),h("div",{class:"size"},h("cura-icon",{name:this.selected,disabled:true}),h("span",null,"Disabled")))),h("div",{class:"icons"},iconsetdefaulticons.map((function(s){return h("div",{class:"icon",onClick:function(){return e.setSelected(s)}},h("cura-icon",{name:s}),h("span",null,s))}))))};return e}();CuraIconsView.style=curaIconsViewCss;export{CuraIcon as cura_icon,CuraIconsView as cura_icons_view};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-70d7a4f9.js";import{g as globalScripts}from"./app-globals-5c6eb474.js";var patchBrowser=function(){var o=import.meta.url;var r={};if(o!==""){r.resourcesUrl=new URL(".",o).href}return promiseResolve(r)};patchBrowser().then((function(o){globalScripts();return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],o)}));
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-cec9b650.js";import{g as globalScripts}from"./app-globals-962e5cc3.js";var patchBrowser=function(){var o=import.meta.url;var r={};if(o!==""){r.resourcesUrl=new URL(".",o).href}return promiseResolve(r)};patchBrowser().then((function(o){globalScripts();return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[8],iconset:[513],disabled:[516]}]]]],o)}));
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-70d7a4f9.js";var dummyComponentCss=":host{display:block}";var DummyComponent=function(){function n(n){registerInstance(this,n)}n.prototype.render=function(){return h(Host,null,h("h1",null,h("slot",null)))};return n}();DummyComponent.style=dummyComponentCss;export{DummyComponent as dummy_component};
1
+ import{r as registerInstance,h,H as Host}from"./index-cec9b650.js";var dummyComponentCss=":host{display:block}";var DummyComponent=function(){function n(n){registerInstance(this,n)}n.prototype.render=function(){return h(Host,null,h("h1",null,h("slot",null)))};return n}();DummyComponent.style=dummyComponentCss;export{DummyComponent as dummy_component};
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function i(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?r(e.value):a(e.value).then(s,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="cura";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var XLINK_NS="http://www.w3.org/1999/xlink";var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var o=false;var s=false;var i=[];var l=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&s){i[i.length-1].$text$+=a}else{i.push(o?newVNode(null,a):a)}s=o}}};l(r);if(t){{var c=t.className||t.class;if(c){t.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}var u=newVNode(e,null);u.$attrs$=t;if(i.length>0){u.$children$=i}return u};var newVNode=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}return r};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var getElement=function(e){return getHostRef(e).$hostElement$};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructableStylesheets&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r,n){var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var s=rootAppliedStyles.get(e);var i=void 0;if(!s){rootAppliedStyles.set(e,s=new Set)}if(!s.has(a)){{{i=doc.createElement("style");i.innerHTML=o}e.insertBefore(i,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=o;r.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var setAccessor=function(e,t,r,n,a,o){if(r!==n){var s=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var c=parseClassList(r);var u=parseClassList(n);l.remove.apply(l,c.filter((function(e){return e&&!u.includes(e)})));l.add.apply(l,u.filter((function(e){return e&&!c.includes(e)})))}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(r){plt.rel(e,t,r,false)}if(n){plt.ael(e,t,n,false)}}else{var f=isComplexType(n);if((s||f&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var $=n==null?"":n;if(t==="list"){s=false}else if(r==null||e[t]!=$){e[t]=$}}else{e[t]=n}}catch(e){}}var d=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){t=i;d=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(d){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!s||o&4||a)&&!f){n=n===true?"":n;if(d){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var o=e&&e.$attrs$||EMPTY_OBJ;var s=t.$attrs$||EMPTY_OBJ;{for(n in o){if(!(n in s)){setAccessor(a,n,o[n],undefined,r,t.$flags$)}}}for(n in s){setAccessor(a,n,o[n],s[n],r,t.$flags$)}};var createElm=function(e,t,r,n){var a=t.$children$[r];var o=0;var s;var i;if(a.$text$!==null){s=a.$elm$=doc.createTextNode(a.$text$)}else{if(!isSvgMode){isSvgMode=a.$tag$==="svg"}s=a.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,a.$tag$);if(isSvgMode&&a.$tag$==="foreignObject"){isSvgMode=false}{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){i=createElm(e,a,o);if(i){s.appendChild(i)}}}{if(a.$tag$==="svg"){isSvgMode=false}else if(s.tagName==="foreignObject"){isSvgMode=true}}}return s};var addVnodes=function(e,t,r,n,a,o){var s=e;var i;if(s.shadowRoot&&s.tagName===hostTagName){s=s.shadowRoot}for(;a<=o;++a){if(n[a]){i=createElm(null,r,a);if(i){n[a].$elm$=i;s.insertBefore(i,t)}}}};var removeVnodes=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;a.remove()}}};var updateChildren=function(e,t,r,n){var a=0;var o=0;var s=t.length-1;var i=t[0];var l=t[s];var c=n.length-1;var u=n[0];var f=n[c];var $;while(a<=s&&o<=c){if(i==null){i=t[++a]}else if(l==null){l=t[--s]}else if(u==null){u=n[++o]}else if(f==null){f=n[--c]}else if(isSameVnode(i,u)){patch(i,u);i=t[++a];u=n[++o]}else if(isSameVnode(l,f)){patch(l,f);l=t[--s];f=n[--c]}else if(isSameVnode(i,f)){patch(i,f);e.insertBefore(i.$elm$,l.$elm$.nextSibling);i=t[++a];f=n[--c]}else if(isSameVnode(l,u)){patch(l,u);e.insertBefore(l.$elm$,i.$elm$);l=t[--s];u=n[++o]}else{{$=createElm(t&&t[o],r,o);u=n[++o]}if($){{i.$elm$.parentNode.insertBefore($,i.$elm$)}}}}if(a>s){addVnodes(e,n[c+1]==null?null:n[c+1].$elm$,r,n,o,c)}else if(o>c){removeVnodes(t,a,s)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var patch=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var o=t.$tag$;var s=t.$text$;if(s===null){{isSvgMode=o==="svg"?true:o==="foreignObject"?false:isSvgMode}{if(o==="slot");else{updateElement(e,t,isSvgMode)}}if(n!==null&&a!==null){updateChildren(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}addVnodes(r,null,t,a,0,a.length-1)}else if(n!==null){removeVnodes(n,0,n.length-1)}if(isSvgMode&&o==="svg"){isSvgMode=false}}else if(e.$text$!==s){r.data=s}};var renderVdom=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var a=e.$vnode$||newVNode(null,null);var o=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(n.$attrsToReflect$){o.$attrs$=o.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return o.$attrs$[n]=r[t]}))}o.$tag$=null;o.$flags$|=4;e.$vnode$=o;o.$elm$=a.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(a,o)};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;r();return then(a,(function(){return updateComponent(e,n,t)}))};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,o,s,i,l;return __generator(this,(function(c){n=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);o=n["s-rc"];if(r){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(o){o.map((function(e){return e()}));n["s-rc"]=undefined}s();a();{i=n["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(r)}n();{e.$onReadyResolve$(r);if(!a){appDidLoad()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var o=a.$hostElement$;var s=a.$instanceValues$.get(t);var i=a.$flags$;var l=a.$lazyInstance$;r=parsePropertyValue(r,n.$members$[t][0]);var c=Number.isNaN(s)&&Number.isNaN(r);var u=r!==s&&!c;if((!(i&8)||s===undefined)&&u){a.$instanceValues$.set(t,r);if(l){if(n.$watchers$&&i&128){var f=n.$watchers$[t];if(f){f.map((function(e){try{l[e](r,s,t)}catch(e){consoleError(e,o)}}))}}if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],o=e[1][0];if(o&31||r&2&&o&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}}));if(r&1){var o=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;plt.jmp((function(){var t=o.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;o.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var initializeComponent=function(e,t,r,n,a){return __awaiter(void 0,void 0,void 0,(function(){var e,n,o,s,i,l,c;return __generator(this,(function(u){switch(u.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(r);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=u.sent();e();u.label=2;case 2:if(!a.isProxied){{r.$watchers$=a.watchers}proxyComponent(a,r,2);a.isProxied=true}n=createTime("createInstance",r.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}{t.$flags$|=128}n();fireConnectedCallback(t.$lazyInstance$);if(a.style){o=a.style;s=getScopeId(r);if(!styles.has(s)){i=createTime("registerStyles",r.$tagName$);registerStyle(s,o,!!(r.$flags$&1));i()}}u.label=3;case 3:l=t.$ancestorComponent$;c=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(c)}else{c()}return[2]}}))}))};var fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var r=t.$cmpMeta$;var n=createTime("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{fireConnectedCallback(t.$lazyInstance$)}n()}};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){getHostRef(e)}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r=createTime();var n=[];var a=t.exclude||[];var o=win.customElements;var s=doc.head;var i=s.querySelector("meta[charset]");var l=doc.createElement("style");var c=[];var u;var f=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$attrsToReflect$=[]}{r.$watchers$={}}var s=r.$tagName$;var i=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;registerHost(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if(u){clearTimeout(u);u=null}if(f){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(s)&&!o.get(s)){n.push(s);o.define(s,proxyComponent(i,r,1))}}))}));{l.innerHTML=n+HYDRATED_CSS;l.setAttribute("data-styles","");s.insertBefore(l,i?i.nextSibling:s.firstChild)}f=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return u=setTimeout(appDidLoad,30)}))}}r()};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[n]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(a,".entry.js").concat("")).then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-70d7a4f9.js";import{g as globalScripts}from"./app-globals-5c6eb474.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],o)}))};export{defineCustomElements};
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-cec9b650.js";import{g as globalScripts}from"./app-globals-962e5cc3.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[8],iconset:[513],disabled:[516]}]]]],o)}))};export{defineCustomElements};
@@ -4,8 +4,53 @@ export declare class CuraIcon {
4
4
  size: string | number;
5
5
  iconset: string;
6
6
  disabled: boolean;
7
+ host: HTMLElement;
8
+ sizes: {
9
+ "128": {
10
+ size: number;
11
+ stroke: number;
12
+ };
13
+ "72": {
14
+ size: number;
15
+ stroke: number;
16
+ };
17
+ "64": {
18
+ size: number;
19
+ stroke: number;
20
+ };
21
+ "48": {
22
+ size: number;
23
+ stroke: number;
24
+ };
25
+ "40": {
26
+ size: number;
27
+ stroke: number;
28
+ };
29
+ "32": {
30
+ size: number;
31
+ stroke: number;
32
+ };
33
+ "24": {
34
+ size: number;
35
+ stroke: number;
36
+ };
37
+ "20": {
38
+ size: number;
39
+ stroke: number;
40
+ };
41
+ "16": {
42
+ size: number;
43
+ stroke: number;
44
+ };
45
+ default: {
46
+ size: number;
47
+ stroke: number;
48
+ };
49
+ };
50
+ sizeHandler(size: string | number): void;
7
51
  assetsPath: string;
8
52
  connectedCallback(): void;
9
53
  getClasses(): {};
54
+ setHostProperty(prop: string, value: string): void;
10
55
  render(): any;
11
56
  }
@@ -1,5 +1,6 @@
1
1
  export declare class CuraIconsView {
2
2
  sizes: number[];
3
+ colors: string[];
3
4
  selected: string;
4
5
  setSelected: (icon: any) => void;
5
6
  render(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/cura",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "Cura Design System",
5
5
  "author": "Rede D`Or São Luiz",
6
6
  "license": "MIT",
@@ -35,7 +35,8 @@
35
35
  "@types/jest": "^27.0.3",
36
36
  "jest": "^27.4.5",
37
37
  "jest-cli": "^27.4.5",
38
- "puppeteer": "^10.0.0"
38
+ "puppeteer": "^10.0.0",
39
+ "svgo": "^3.0.1"
39
40
  },
40
- "gitHead": "88232f13b9e86159900bc059315a6dcc56029df7"
41
+ "gitHead": "56df4887a365cad4db959f6b91ec06b362640569"
41
42
  }
@@ -1,2 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function l(e){try{f(n.next(e))}catch(e){i(e)}}function o(e){try{f(n["throw"](e))}catch(e){i(e)}}function f(e){e.done?r(e.value):a(e.value).then(l,o)}f((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(e){return function(t){return f([e,t])}}function f(l){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register([],(function(e,t){"use strict";return{execute:function(){var r=this;var n="cura";var a;var i;var l=false;var o=false;var f=function(e,t){if(t===void 0){t=""}{return function(){return}}};var s=function(e,t){{return function(){return}}};var u="{visibility:hidden}.hydrated{visibility:inherit}";var c="http://www.w3.org/1999/xlink";var $={};var v="http://www.w3.org/2000/svg";var p="http://www.w3.org/1999/xhtml";var d=function(e){return e!=null};var h=function(e){e=typeof e;return e==="object"||e==="function"};var m=e("h",(function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=false;var l=false;var o=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!h(a)){a=String(a)}if(i&&l){o[o.length-1].$text$+=a}else{o.push(i?g(null,a):a)}l=i}}};f(r);if(t){{var s=t.className||t.class;if(s){t.class=typeof s!=="object"?s:Object.keys(s).filter((function(e){return s[e]})).join(" ")}}}var u=g(e,null);u.$attrs$=t;if(o.length>0){u.$children$=o}return u}));var g=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}return r};var y=e("H",{});var b=function(e){return e&&e.$tag$===y};var w=function(e,t){if(e!=null&&!h(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var _=function(e,t,r){var n=pe.ce(t,r);e.dispatchEvent(n);return n};var S=new WeakMap;var N=function(e,t,r){var n=ce.get(e);if(he&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}ce.set(e,n)};var R=function(e,t,r,n){var a=j(t);var i=ce.get(a);e=e.nodeType===11?e:ve;if(i){if(typeof i==="string"){e=e.head||e;var l=S.get(e);var o=void 0;if(!l){S.set(e,l=new Set)}if(!l.has(a)){{{o=ve.createElement("style");o.innerHTML=i}e.insertBefore(o,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var x=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=f("attachStyles",t.$tagName$);var i=R(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var j=function(e,t){return"sc-"+e.$tagName$};var C=function(e,t,r,n,a,i){if(r!==n){var l=oe(e,t);var o=t.toLowerCase();if(t==="class"){var f=e.classList;var s=k(r);var u=k(n);f.remove.apply(f,s.filter((function(e){return e&&!u.includes(e)})));f.add.apply(f,u.filter((function(e){return e&&!s.includes(e)})))}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(oe($e,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(r){pe.rel(e,t,r,false)}if(n){pe.ael(e,t,n,false)}}else{var $=h(n);if((l||$&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var v=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!=v){e[t]=v}}else{e[t]=n}}catch(e){}}var p=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;p=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(p){e.removeAttributeNS(c,t)}else{e.removeAttribute(t)}}}else if((!l||i&4||a)&&!$){n=n===true?"":n;if(p){e.setAttributeNS(c,t,n)}else{e.setAttribute(t,n)}}}}};var E=/\s/;var k=function(e){return!e?[]:e.split(E)};var A=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||$;var l=t.$attrs$||$;{for(n in i){if(!(n in l)){C(a,n,i[n],undefined,r,t.$flags$)}}}for(n in l){C(a,n,i[n],l[n],r,t.$flags$)}};var M=function(e,t,r,n){var i=t.$children$[r];var o=0;var f;var s;if(i.$text$!==null){f=i.$elm$=ve.createTextNode(i.$text$)}else{if(!l){l=i.$tag$==="svg"}f=i.$elm$=ve.createElementNS(l?v:p,i.$tag$);if(l&&i.$tag$==="foreignObject"){l=false}{A(null,i,l)}if(d(a)&&f["s-si"]!==a){f.classList.add(f["s-si"]=a)}if(i.$children$){for(o=0;o<i.$children$.length;++o){s=M(e,i,o);if(s){f.appendChild(s)}}}{if(i.$tag$==="svg"){l=false}else if(f.tagName==="foreignObject"){l=true}}}return f};var O=function(e,t,r,n,a,l){var o=e;var f;if(o.shadowRoot&&o.tagName===i){o=o.shadowRoot}for(;a<=l;++a){if(n[a]){f=M(null,r,a);if(f){n[a].$elm$=f;o.insertBefore(f,t)}}}};var P=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;a.remove()}}};var T=function(e,t,r,n){var a=0;var i=0;var l=t.length-1;var o=t[0];var f=t[l];var s=n.length-1;var u=n[0];var c=n[s];var $;while(a<=l&&i<=s){if(o==null){o=t[++a]}else if(f==null){f=t[--l]}else if(u==null){u=n[++i]}else if(c==null){c=n[--s]}else if(L(o,u)){I(o,u);o=t[++a];u=n[++i]}else if(L(f,c)){I(f,c);f=t[--l];c=n[--s]}else if(L(o,c)){I(o,c);e.insertBefore(o.$elm$,f.$elm$.nextSibling);o=t[++a];c=n[--s]}else if(L(f,u)){I(f,u);e.insertBefore(f.$elm$,o.$elm$);f=t[--l];u=n[++i]}else{{$=M(t&&t[i],r,i);u=n[++i]}if($){{o.$elm$.parentNode.insertBefore($,o.$elm$)}}}}if(a>l){O(e,n[s+1]==null?null:n[s+1].$elm$,r,n,i,s)}else if(i>s){P(t,a,l)}};var L=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var I=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var i=t.$tag$;var o=t.$text$;if(o===null){{l=i==="svg"?true:i==="foreignObject"?false:l}{if(i==="slot");else{A(e,t,l)}}if(n!==null&&a!==null){T(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}O(r,null,t,a,0,a.length-1)}else if(n!==null){P(n,0,n.length-1)}if(l&&i==="svg"){l=false}}else if(e.$text$!==o){r.data=o}};var B=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var l=e.$vnode$||g(null,null);var o=b(t)?t:m(null,null,t);i=r.tagName;if(n.$attrsToReflect$){o.$attrs$=o.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return o.$attrs$[n]=r[t]}))}o.$tag$=null;o.$flags$|=4;e.$vnode$=o;o.$elm$=l.$elm$=r.shadowRoot||r;{a=r["s-sc"]}I(l,o)};var z=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var U=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}z(e,e.$ancestorComponent$);var r=function(){return H(e,t)};return Se(r)};var H=function(e,t){var r=f("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;r();return D(a,(function(){return V(e,n,t)}))};var V=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,o,s;return __generator(this,(function(u){r=e.$hostElement$;a=f("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){x(e)}l=f("render",e.$cmpMeta$.$tagName$);{q(e,t)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{o=r["s-p"];s=function(){return W(e)};if(o.length===0){s()}else{Promise.all(o).then(s);e.$flags$|=4;o.length=0}}return[2]}))}))};var q=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{B(e,t)}}}}catch(t){fe(t,e.$hostElement$)}return null};var W=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=f("postUpdate",t);var a=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{J(r)}n();{e.$onReadyResolve$(r);if(!a){F()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){_e((function(){return U(e,false)}))}e.$flags$&=~(4|512)}};var F=function(e){{J(ve.documentElement)}_e((function(){return _($e,"appload",{detail:{namespace:n}})}))};var G=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){fe(e)}}return undefined};var D=function(e,t){return e&&e.then?e.then(t):t()};var J=function(e){return e.classList.add("hydrated")};var K=function(e,t){return ae(e).$instanceValues$.get(t)};var Q=function(e,t,r,n){var a=ae(e);var i=a.$instanceValues$.get(t);var l=a.$flags$;var o=a.$lazyInstance$;r=w(r,n.$members$[t][0]);var f=Number.isNaN(i)&&Number.isNaN(r);var s=r!==i&&!f;if((!(l&8)||i===undefined)&&s){a.$instanceValues$.set(t,r);if(o){if((l&(2|16))===2){U(a,false)}}}};var X=function(e,t,r){if(t.$members$){var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return K(this,n)},set:function(e){Q(this,n,e,t)},configurable:true,enumerable:true})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;pe.jmp((function(){var t=i.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;i.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var Y=function(e,t,n,a,i){return __awaiter(r,void 0,void 0,(function(){var e,r,a,l,o,u,c;return __generator(this,(function($){switch($.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;i=ue(n);if(!i.then)return[3,2];e=s();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){X(i,n,2);i.isProxied=true}r=f("createInstance",n.$tagName$);{t.$flags$|=8}try{new i(t)}catch(e){fe(e)}{t.$flags$&=~8}r();Z(t.$lazyInstance$);if(i.style){a=i.style;l=j(n);if(!ce.has(l)){o=f("registerStyles",n.$tagName$);N(l,a,!!(n.$flags$&1));o()}}$.label=3;case 3:u=t.$ancestorComponent$;c=function(){return U(t,true)};if(u&&u["s-rc"]){u["s-rc"].push(c)}else{c()}return[2]}}))}))};var Z=function(e){{G(e,"connectedCallback")}};var ee=function(e){if((pe.$flags$&1)===0){var t=ae(e);var r=t.$cmpMeta$;var n=f("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){z(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{Y(e,t,r)}}else{Z(t.$lazyInstance$)}n()}};var te=function(e){if((pe.$flags$&1)===0){ae(e)}};var re=e("b",(function(e,t){if(t===void 0){t={}}var r=f();var n=[];var a=t.exclude||[];var i=$e.customElements;var l=ve.head;var o=l.querySelector("meta[charset]");var s=ve.createElement("style");var c=[];var $;var v=true;Object.assign(pe,t);pe.$resourcesUrl$=new URL(t.resourcesUrl||"./",ve.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$attrsToReflect$=[]}var l=r.$tagName$;var o=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;le(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if($){clearTimeout($);$=null}if(v){c.push(this)}else{pe.jmp((function(){return ee(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;pe.jmp((function(){return te(e)}))};t.prototype.componentOnReady=function(){return ae(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){n.push(l);i.define(l,X(o,r,1))}}))}));{s.innerHTML=n+u;s.setAttribute("data-styles","");l.insertBefore(s,o?o.nextSibling:l.firstChild)}v=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{pe.jmp((function(){return $=setTimeout(F,30)}))}}r()}));var ne=new WeakMap;var ae=function(e){return ne.get(e)};var ie=e("r",(function(e,t){return ne.set(t.$lazyInstance$=e,t)}));var le=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}return ne.set(e,r)};var oe=function(e,t){return t in e};var fe=function(e,t){return(0,console.error)(e,t)};var se=new Map;var ue=function(e,r,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=se.get(i);if(l){return l[a]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{se.set(i,e)}return e[a]}),fe)};var ce=new Map;var $e=typeof window!=="undefined"?window:{};var ve=$e.document||{head:{}};var pe={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var de=e("p",(function(e){return Promise.resolve(e)}));var he=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var me=[];var ge=[];var ye=function(e,t){return function(r){e.push(r);if(!o){o=true;if(t&&pe.$flags$&4){_e(we)}else{pe.raf(we)}}}};var be=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){fe(e)}}e.length=0};var we=function(){be(me);{be(ge);if(o=me.length>0){pe.raf(we)}}};var _e=function(e){return de().then(e)};var Se=ye(ge,true)}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-25adccc6.system.js"],(function(e){"use strict";var i,s,o;return{setters:[function(e){i=e.r;s=e.h;o=e.H}],execute:function(){var t=":host{--stroke-color:#B7B7B7;--stroke-width:2px;--width:24px;--height:24px}:host svg.icon-128{--width:128px;--height:128px;--stroke-width:0.984375px}:host svg.icon-72{--width:72px;--height:72px;--stroke-width:1.1666666667px}:host svg.icon-64{--width:64px;--height:64px;--stroke-width:1.21875px}:host svg.icon-48{--width:48px;--height:48px;--stroke-width:1.375px}:host svg.icon-40{--width:40px;--height:40px;--stroke-width:1.5px}:host svg.icon-32{--width:32px;--height:32px;--stroke-width:1.6875px}:host svg.icon-24{--width:24px;--height:24px;--stroke-width:2px}:host svg.icon-20{--width:20px;--height:20px;--stroke-width:2.1px}:host svg.icon-16{--width:16px;--height:16px;--stroke-width:2.25px}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--width);height:var(--height);stroke-width:var(--stroke-width);fill:none}";var n=e("cura_icon",function(){function e(e){i(this,e);this.name="";this.color="neutral";this.iconset="default";this.disabled=false}e.prototype.connectedCallback=function(){this.assetsPath=window.CuraAPI.localAssetsPath};e.prototype.getClasses=function(){var e={};e["icon-".concat(this.color)]=true;if(this.size)e["icon-".concat(this.size)]=true;if(this.disabled)e["icon-disabled"]=true;return e};e.prototype.render=function(){return s(o,null,s("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},s("use",{xlinkHref:"".concat(this.assetsPath,"/icons/iconset-").concat(this.iconset,".svg#").concat(this.name)})))};return e}());n.style=t;var r=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"];var c=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";var a=e("cura_icons_view",function(){function e(e){var s=this;i(this,e);this.sizes=[16,20,24,32,40,48,64,72,128];this.selected="360";this.setSelected=function(e){s.selected=e}}e.prototype.render=function(){var e=this;return s(o,null,s("div",{class:"iconDetail"},s("h4",null,this.selected),s("div",{class:"iconSizes"},this.sizes.map((function(i){return s("div",{class:"size"},s("cura-icon",{name:e.selected,size:i}),s("span",null,i))}))),s("div",{class:"iconSizes invert"},this.sizes.map((function(i){return s("div",{class:"size"},s("cura-icon",{name:e.selected,size:i,color:"white"}),s("span",null,i))}))),s("div",{class:"iconSizes"},s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"primary"}),s("span",null,"Primary")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"secondary"}),s("span",null,"Secondary")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"accent"}),s("span",null,"Accent")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"info"}),s("span",null,"Info")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"warning"}),s("span",null,"Warning")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"error"}),s("span",null,"Error")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"success"}),s("span",null,"Success")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"neutral"}),s("span",null,"Neutral")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"primary",disabled:true}),s("span",null,"Disabled")))),s("div",{class:"icons"},r.map((function(i){return s("div",{class:"icon",onClick:function(){return e.setSelected(i)}},s("cura-icon",{name:i}),s("span",null,i))}))))};return e}());a.style=c}}}));
@@ -1,2 +0,0 @@
1
- let e,t,n=!1,l=!1;const s="http://www.w3.org/1999/xlink",o={},r=e=>"object"==(e=typeof e)||"function"===e,c=(e,t,...n)=>{let l=null,s=!1,o=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!r(l))&&(l+=""),s&&o?c[c.length-1].t+=l:c.push(s?i(null,l):l),o=s)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=i(e,null);return a.l=t,c.length>0&&(a.o=c),a},i=(e,t)=>({i:0,u:e,t,h:null,o:null,l:null}),u={},a=new WeakMap,f=e=>"sc-"+e.$,h=(e,t,n,l,o,c)=>{if(n!==l){let i=U(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=w(n),o=w(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if(i||"o"!==t[0]||"n"!==t[1]){const a=r(l);if((i||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(s,t):e.removeAttribute(t)):(!i||4&c||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(s,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):U(_,u)?u.slice(2):u[2]+t.slice(3),n&&B.rel(e,t,n,!1),l&&B.ael(e,t,l,!1)}},$=/\s/,w=e=>e?e.split($):[],p=(e,t,n,l)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,r=e&&e.l||o,c=t.l||o;for(l in r)l in c||h(s,l,r[l],void 0,n,t.i);for(l in c)h(s,l,r[l],c[l],n,t.i)},y=(t,l,s)=>{const o=l.o[s];let r,c,i=0;if(null!==o.t)r=o.h=z.createTextNode(o.t);else{if(n||(n="svg"===o.u),r=o.h=z.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),n&&"foreignObject"===o.u&&(n=!1),p(null,o,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.o)for(i=0;i<o.o.length;++i)c=y(t,o,i),c&&r.appendChild(c);"svg"===o.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},d=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=y(null,l,o),c&&(s[o].h=c,i.insertBefore(c,n)))},m=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.h.remove()},b=(e,t)=>e.u===t.u,g=(e,t)=>{const l=t.h=e.h,s=e.o,o=t.o,r=t.u,c=t.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,"slot"===r||p(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==h?h=l[--a]:b(i,f)?(g(i,f),i=t[++o],f=l[++r]):b(u,h)?(g(u,h),u=t[--c],h=l[--a]):b(i,h)?(g(i,h),e.insertBefore(i.h,u.h.nextSibling),i=t[++o],h=l[--a]):b(u,f)?(g(u,f),e.insertBefore(u.h,i.h),u=t[--c],f=l[++r]):(s=y(t&&t[r],n,r),f=l[++r],s&&i.h.parentNode.insertBefore(s,i.h));o>c?d(e,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&m(t,o,c)})(l,s,t,o):null!==o?(null!==e.t&&(l.textContent=""),d(l,null,t,o,0,o.length-1)):null!==s&&m(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.t!==c&&(l.data=c)},v=(e,t)=>{t&&!e.p&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.p=t)))},S=(e,t)=>{if(e.i|=16,!(4&e.i))return v(e,e.m),Z((()=>j(e,t)));e.i|=512},j=(e,t)=>{const n=e.g;return x(void 0,(()=>k(e,n,t)))},k=async(e,t,n)=>{const l=e.v,s=l["s-rc"];n&&(e=>{const t=e.S,n=e.v,l=t.i,s=((e,t)=>{let n=f(t);const l=V.get(n);if(e=11===e.nodeType?e:z,l)if("string"==typeof l){let t,s=a.get(e=e.head||e);s||a.set(e,s=new Set),s.has(n)||(t=z.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);O(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>M(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},O=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const s=n.v,o=n.S,r=n.j||i(null,null),a=(e=>e&&e.u===u)(l)?l:c(null,null,l);t=s.tagName,o.k&&(a.l=a.l||{},o.k.map((([e,t])=>a.l[t]=s[e]))),a.u=null,a.i|=4,n.j=a,a.h=r.h=s.shadowRoot||s,e=s["s-sc"],g(r,a)})(n,l)}catch(e){W(e,n.v)}return null},M=e=>{const t=e.v,n=e.m;64&e.i||(e.i|=64,P(t),e.O(t),n||C()),e.p&&(e.p(),e.p=void 0),512&e.i&&Y((()=>S(e,!1))),e.i&=-517},C=()=>{P(z.documentElement),Y((()=>(e=>{const t=B.ce("appload",{detail:{namespace:"cura"}});return e.dispatchEvent(t),t})(_)))},x=(e,t)=>e&&e.then?e.then(t):t(),P=e=>e.classList.add("hydrated"),E=(e,t,n)=>{if(t.M){const l=Object.entries(t.M),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>H(this).C.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=H(e),o=s.C.get(t),c=s.i,i=s.g;n=((e,t)=>null==e||r(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.M[t][0]),8&c&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.C.set(t,n),i&&2==(18&c)&&S(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){B.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.k.push([e,s]),s}))}}return e},N=e=>{((e,t)=>{if(e&&e[t])try{e[t](void 0)}catch(e){W(e)}})(e,"connectedCallback")},T=(e,t={})=>{const n=[],l=t.exclude||[],s=_.customElements,o=z.head,r=o.querySelector("meta[charset]"),c=z.createElement("style"),i=[];let u,a=!0;Object.assign(B,t),B.P=new URL(t.resourcesUrl||"./",z.baseURI).href,e.map((e=>{e[1].map((t=>{const o={i:t[0],$:t[1],M:t[2],N:t[3]};o.M=t[2],o.k=[];const r=o.$,c=class extends HTMLElement{constructor(e){super(e),R(e=this,o),1&o.i&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?i.push(this):B.jmp((()=>(e=>{if(0==(1&B.i)){const t=H(e),n=t.S,l=()=>{};if(1&t.i)N(t.g);else{t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){v(t,t.m=n);break}}n.M&&Object.entries(n.M).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.i)){{if(t.i|=32,(s=F(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(E(s,n,2),s.isProxied=!0);const e=()=>{};t.i|=8;try{new s(t)}catch(e){W(e)}t.i&=-9,e(),N(t.g)}if(s.style){let e=s.style;const t=f(n);if(!V.has(t)){const l=()=>{};((e,t,n)=>{let l=V.get(e);G&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.set(e,l)})(t,e,!!(1&n.i)),l()}}}const o=t.m,r=()=>S(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>{}))}componentOnReady(){return H(this).T}};o.A=e[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,E(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),a=!1,i.length?i.map((e=>e.connectedCallback())):B.jmp((()=>u=setTimeout(C,30)))},A=new WeakMap,H=e=>A.get(e),L=(e,t)=>A.set(t.g=e,t),R=(e,t)=>{const n={i:0,v:e,S:t,C:new Map};return n.T=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],A.set(e,n)},U=(e,t)=>t in e,W=(e,t)=>(0,console.error)(e,t),q=new Map,F=e=>{const t=e.$.replace(/-/g,"_"),n=e.A,l=q.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(q.set(n,e),e[t])),W)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={i:0,P:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},D=e=>Promise.resolve(e),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),I=[],J=[],K=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&B.i?Y(X):B.raf(X))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){W(e)}e.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&B.raf(X)},Y=e=>D().then(e),Z=K(J,!0);export{u as H,T as b,c as h,D as p,L as r}