@rededor/cura 0.1.1 → 0.1.3

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 (38) hide show
  1. package/dist/cjs/{app-globals-e5cfde65.js → app-globals-30f66112.js} +0 -3
  2. package/dist/cjs/cura-icon_2.cjs.entry.js +1 -1
  3. package/dist/cjs/cura.cjs.js +2 -2
  4. package/dist/cjs/dummy-component.cjs.entry.js +1 -1
  5. package/dist/cjs/{index-2f9830d5.js → index-bcb164aa.js} +0 -2
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/collection/rededor-cura-start.js +0 -2
  8. package/dist/components/index.js +0 -2
  9. package/dist/cura/cura.esm.js +1 -1
  10. package/dist/cura/cura.js +1 -1
  11. package/dist/cura/p-0185df4e.system.js +2 -0
  12. package/dist/cura/{p-dd552650.system.js → p-18aa0f50.system.js} +1 -1
  13. package/dist/cura/p-19ab5ec3.js +1 -0
  14. package/dist/cura/{p-f525ebb6.system.entry.js → p-75300417.system.entry.js} +1 -1
  15. package/dist/cura/{p-e66c2bf6.entry.js → p-858e14f5.entry.js} +1 -1
  16. package/dist/cura/p-a855f3cf.system.js +1 -0
  17. package/dist/cura/{p-ee9a7bb0.entry.js → p-cd968858.entry.js} +1 -1
  18. package/dist/cura/{p-62567192.system.entry.js → p-d8ac8798.system.entry.js} +1 -1
  19. package/dist/cura/p-e207350a.js +2 -0
  20. package/dist/esm/{app-globals-d6124a10.js → app-globals-892c3121.js} +0 -3
  21. package/dist/esm/cura-icon_2.entry.js +1 -1
  22. package/dist/esm/cura.js +2 -2
  23. package/dist/esm/dummy-component.entry.js +1 -1
  24. package/dist/esm/{index-9d6a33bc.js → index-d01d7976.js} +1 -2
  25. package/dist/esm/loader.js +2 -2
  26. package/dist/esm-es5/app-globals-892c3121.js +1 -0
  27. package/dist/esm-es5/cura-icon_2.entry.js +1 -1
  28. package/dist/esm-es5/cura.js +1 -1
  29. package/dist/esm-es5/dummy-component.entry.js +1 -1
  30. package/dist/esm-es5/index-d01d7976.js +2 -0
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/package.json +2 -2
  33. package/dist/cura/p-363e0aa1.system.js +0 -1
  34. package/dist/cura/p-55523400.js +0 -2
  35. package/dist/cura/p-5d11ae38.system.js +0 -2
  36. package/dist/cura/p-fb6827d8.js +0 -1
  37. package/dist/esm-es5/app-globals-d6124a10.js +0 -1
  38. package/dist/esm-es5/index-9d6a33bc.js +0 -2
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-2f9830d5.js');
4
-
5
3
  /**
6
4
  * Cura Default Theme
7
5
  */
@@ -167,7 +165,6 @@ class CuraAPI {
167
165
  }
168
166
  }
169
167
 
170
- index.setAssetPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('app-globals-e5cfde65.js', document.baseURI).href)));
171
168
  function appGlobalScript () {
172
169
  const config = window.CuraInit;
173
170
  window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2f9830d5.js');
5
+ const index = require('./index-bcb164aa.js');
6
6
 
7
7
  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}";
8
8
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-2f9830d5.js');
4
- const appGlobals = require('./app-globals-e5cfde65.js');
3
+ const index = require('./index-bcb164aa.js');
4
+ const appGlobals = require('./app-globals-30f66112.js');
5
5
 
6
6
  /*
7
7
  Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2f9830d5.js');
5
+ const index = require('./index-bcb164aa.js');
6
6
 
7
7
  const dummyComponentCss = ":host{display:block}";
8
8
 
@@ -38,7 +38,6 @@ const getAssetPath = (path) => {
38
38
  const assetUrl = new URL(path, plt.$resourcesUrl$);
39
39
  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
40
40
  };
41
- const setAssetPath = (path) => (plt.$resourcesUrl$ = path);
42
41
  const createTime = (fnName, tagName = '') => {
43
42
  {
44
43
  return () => {
@@ -1359,4 +1358,3 @@ exports.getAssetPath = getAssetPath;
1359
1358
  exports.h = h;
1360
1359
  exports.promiseResolve = promiseResolve;
1361
1360
  exports.registerInstance = registerInstance;
1362
- exports.setAssetPath = setAssetPath;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2f9830d5.js');
6
- const appGlobals = require('./app-globals-e5cfde65.js');
5
+ const index = require('./index-bcb164aa.js');
6
+ const appGlobals = require('./app-globals-30f66112.js');
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -1,6 +1,4 @@
1
1
  import CuraAPI from './api/cura-api';
2
- import { setAssetPath } from '@stencil/core';
3
- setAssetPath(import.meta.url);
4
2
  export default function () {
5
3
  const config = window.CuraInit;
6
4
  window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
@@ -1,4 +1,3 @@
1
- import { setAssetPath } from '@stencil/core/internal/client';
2
1
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
3
2
  export { CuraIcon, defineCustomElement as defineCustomElementCuraIcon } from './cura-icon.js';
4
3
  export { CuraIconsView, defineCustomElement as defineCustomElementCuraIconsView } from './cura-icons-view.js';
@@ -169,7 +168,6 @@ class CuraAPI {
169
168
  }
170
169
  }
171
170
 
172
- setAssetPath(import.meta.url);
173
171
  function appGlobalScript () {
174
172
  const config = window.CuraInit;
175
173
  window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-55523400.js";import{g as s}from"./p-fb6827d8.js";(()=>{const o=import.meta.url,s={};return""!==o&&(s.resourcesUrl=new URL(".",o).href),e(s)})().then((e=>(s(),o([["p-e66c2bf6",[[1,"dummy-component"]]],["p-ee9a7bb0",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],e))));
1
+ import{p as e,b as o}from"./p-e207350a.js";import{g as c}from"./p-19ab5ec3.js";(()=>{const o=import.meta.url,c={};return""!==o&&(c.resourcesUrl=new URL(".",o).href),e(c)})().then((e=>(c(),o([["p-858e14f5",[[1,"dummy-component"]]],["p-cd968858",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],e))));
package/dist/cura/cura.js CHANGED
@@ -115,7 +115,7 @@ DOMTokenList
115
115
  var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
116
116
  var start = function() {
117
117
  // if src is not present then origin is "null", and new URL() throws TypeError: Failed to construct 'URL': Invalid base URL
118
- var url = new URL('./p-dd552650.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-18aa0f50.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
119
  System.import(url.href);
120
120
  };
121
121
 
@@ -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,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=e("g",(function(e){var t=new URL(e,ve.$resourcesUrl$);return t.origin!==ce.location.origin?t.href:t.pathname}));var s=function(e,t){if(t===void 0){t=""}{return function(){return}}};var u=function(e,t){{return function(){return}}};var c="{visibility:hidden}.hydrated{visibility:inherit}";var $="http://www.w3.org/1999/xlink";var v={};var p="http://www.w3.org/2000/svg";var h="http://www.w3.org/1999/xhtml";var d=function(e){return e!=null};var m=function(e){e=typeof e;return e==="object"||e==="function"};var g=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"&&!m(a)){a=String(a)}if(i&&l){o[o.length-1].$text$+=a}else{o.push(i?y(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=y(e,null);u.$attrs$=t;if(o.length>0){u.$children$=o}return u}));var y=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}return r};var b=e("H",{});var w=function(e){return e&&e.$tag$===b};var _=function(e,t){if(e!=null&&!m(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var S=function(e,t,r){var n=ve.ce(t,r);e.dispatchEvent(n);return n};var N=new WeakMap;var R=function(e,t,r){var n=ue.get(e);if(he&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}ue.set(e,n)};var x=function(e,t,r,n){var a=C(t);var i=ue.get(a);e=e.nodeType===11?e:$e;if(i){if(typeof i==="string"){e=e.head||e;var l=N.get(e);var o=void 0;if(!l){N.set(e,l=new Set)}if(!l.has(a)){{{o=$e.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 j=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=s("attachStyles",t.$tagName$);var i=x(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var C=function(e,t){return"sc-"+e.$tagName$};var E=function(e,t,r,n,a,i){if(r!==n){var l=le(e,t);var o=t.toLowerCase();if(t==="class"){var f=e.classList;var s=M(r);var u=M(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(le(ce,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(r){ve.rel(e,t,r,false)}if(n){ve.ael(e,t,n,false)}}else{var c=m(n);if((l||c&&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($,t)}else{e.removeAttribute(t)}}}else if((!l||i&4||a)&&!c){n=n===true?"":n;if(p){e.setAttributeNS($,t,n)}else{e.setAttribute(t,n)}}}}};var A=/\s/;var M=function(e){return!e?[]:e.split(A)};var O=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||v;var l=t.$attrs$||v;{for(n in i){if(!(n in l)){E(a,n,i[n],undefined,r,t.$flags$)}}}for(n in l){E(a,n,i[n],l[n],r,t.$flags$)}};var k=function(e,t,r,n){var i=t.$children$[r];var o=0;var f;var s;if(i.$text$!==null){f=i.$elm$=$e.createTextNode(i.$text$)}else{if(!l){l=i.$tag$==="svg"}f=i.$elm$=$e.createElementNS(l?p:h,i.$tag$);if(l&&i.$tag$==="foreignObject"){l=false}{O(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=k(e,i,o);if(s){f.appendChild(s)}}}{if(i.$tag$==="svg"){l=false}else if(f.tagName==="foreignObject"){l=true}}}return f};var P=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=k(null,r,a);if(f){n[a].$elm$=f;o.insertBefore(f,t)}}}};var T=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;a.remove()}}};var L=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(U(o,u)){B(o,u);o=t[++a];u=n[++i]}else if(U(f,c)){B(f,c);f=t[--l];c=n[--s]}else if(U(o,c)){B(o,c);e.insertBefore(o.$elm$,f.$elm$.nextSibling);o=t[++a];c=n[--s]}else if(U(f,u)){B(f,u);e.insertBefore(f.$elm$,o.$elm$);f=t[--l];u=n[++i]}else{{$=k(t&&t[i],r,i);u=n[++i]}if($){{o.$elm$.parentNode.insertBefore($,o.$elm$)}}}}if(a>l){P(e,n[s+1]==null?null:n[s+1].$elm$,r,n,i,s)}else if(i>s){T(t,a,l)}};var U=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var B=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{O(e,t,l)}}if(n!==null&&a!==null){L(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}P(r,null,t,a,0,a.length-1)}else if(n!==null){T(n,0,n.length-1)}if(l&&i==="svg"){l=false}}else if(e.$text$!==o){r.data=o}};var I=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var l=e.$vnode$||y(null,null);var o=w(t)?t:g(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"]}B(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 H=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}z(e,e.$ancestorComponent$);var r=function(){return V(e,t)};return _e(r)};var V=function(e,t){var r=s("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;r();return D(a,(function(){return q(e,n,t)}))};var q=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,o,f;return __generator(this,(function(u){r=e.$hostElement$;a=s("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){j(e)}l=s("render",e.$cmpMeta$.$tagName$);{W(e,t)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{o=r["s-p"];f=function(){return F(e)};if(o.length===0){f()}else{Promise.all(o).then(f);e.$flags$|=4;o.length=0}}return[2]}))}))};var W=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{I(e,t)}}}}catch(t){oe(t,e.$hostElement$)}return null};var F=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=s("postUpdate",t);var a=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{J(r)}n();{e.$onReadyResolve$(r);if(!a){G()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){we((function(){return H(e,false)}))}e.$flags$&=~(4|512)}};var G=function(e){{J($e.documentElement)}we((function(){return S(ce,"appload",{detail:{namespace:n}})}))};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 ne(e).$instanceValues$.get(t)};var Q=function(e,t,r,n){var a=ne(e);var i=a.$instanceValues$.get(t);var l=a.$flags$;var o=a.$lazyInstance$;r=_(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){H(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;ve.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,f,c;return __generator(this,(function($){switch($.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;i=se(n);if(!i.then)return[3,2];e=u();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){X(i,n,2);i.isProxied=true}r=s("createInstance",n.$tagName$);{t.$flags$|=8}try{new i(t)}catch(e){oe(e)}{t.$flags$&=~8}r();if(i.style){a=i.style;l=C(n);if(!ue.has(l)){o=s("registerStyles",n.$tagName$);R(l,a,!!(n.$flags$&1));o()}}$.label=3;case 3:f=t.$ancestorComponent$;c=function(){return H(t,true)};if(f&&f["s-rc"]){f["s-rc"].push(c)}else{c()}return[2]}}))}))};var Z=function(e){if((ve.$flags$&1)===0){var t=ne(e);var r=t.$cmpMeta$;var n=s("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)}}n()}};var ee=function(e){if((ve.$flags$&1)===0){ne(e)}};var te=e("b",(function(e,t){if(t===void 0){t={}}var r=s();var n=[];var a=t.exclude||[];var i=ce.customElements;var l=$e.head;var o=l.querySelector("meta[charset]");var f=$e.createElement("style");var u=[];var $;var v=true;Object.assign(ve,t);ve.$resourcesUrl$=new URL(t.resourcesUrl||"./",$e.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;ie(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if($){clearTimeout($);$=null}if(v){u.push(this)}else{ve.jmp((function(){return Z(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;ve.jmp((function(){return ee(e)}))};t.prototype.componentOnReady=function(){return ne(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))}}))}));{f.innerHTML=n+c;f.setAttribute("data-styles","");l.insertBefore(f,o?o.nextSibling:l.firstChild)}v=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{ve.jmp((function(){return $=setTimeout(G,30)}))}}r()}));var re=new WeakMap;var ne=function(e){return re.get(e)};var ae=e("r",(function(e,t){return re.set(t.$lazyInstance$=e,t)}));var ie=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 re.set(e,r)};var le=function(e,t){return t in e};var oe=function(e,t){return(0,console.error)(e,t)};var fe=new Map;var se=function(e,r,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=fe.get(i);if(l){return l[a]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{fe.set(i,e)}return e[a]}),oe)};var ue=new Map;var ce=typeof window!=="undefined"?window:{};var $e=ce.document||{head:{}};var ve={$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 pe=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 de=[];var me=[];var ge=function(e,t){return function(r){e.push(r);if(!o){o=true;if(t&&ve.$flags$&4){we(be)}else{ve.raf(be)}}}};var ye=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){oe(e)}}e.length=0};var be=function(){ye(de);{ye(me);if(o=de.length>0){ve.raf(be)}}};var we=function(e){return pe().then(e)};var _e=ge(me,true)}}}));
@@ -1 +1 @@
1
- System.register(["./p-5d11ae38.system.js","./p-363e0aa1.system.js"],(function(e,t){"use strict";var n,s,r;return{setters:[function(e){n=e.p;s=e.b},function(e){r=e.g}],execute:function(){var e=function(){var e=t.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return n(s)};e().then((function(e){r();return s([["p-62567192.system",[[1,"dummy-component"]]],["p-f525ebb6.system",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],e)}))}}}));
1
+ System.register(["./p-0185df4e.system.js","./p-a855f3cf.system.js"],(function(e,t){"use strict";var n,s,r;return{setters:[function(e){n=e.p;s=e.b},function(e){r=e.g}],execute:function(){var e=function(){var e=t.meta.url;var s={};if(e!==""){s.resourcesUrl=new URL(".",e).href}return n(s)};e().then((function(e){r();return s([["p-d8ac8798.system",[[1,"dummy-component"]]],["p-75300417.system",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],e)}))}}}));
@@ -0,0 +1 @@
1
+ const t={color:{primary:{depth100:"#CCD9E7",depth300:"#5580AE",base:"#004186",depth700:"#002B59",depth900:"#00133B"},secondary:{depth100:"#EEE8CE",depth300:"#C6B45C",base:"#AA8E0B",depth700:"#715F07",depth900:"#221C02"},accent:{depth100:"#F9E8D5",depth300:"#E4A04F",base:"#DF8D2C",depth700:"#955E1D",depth900:"#2D1C09"}},spacing:{base:"8px"},font:{family:{title:"serif",body:'"Roboto", Helvetica, Arial, sans-serif'},size:{base:"16px"}}},e={default:t,maternidade:Object.assign(Object.assign({},t),{color:{primary:{base:"#CD4D9A",depth100:"#FCEFF6",depth300:"#FFBFE5",depth500:"#FF7FCB",depth700:"#99126C",depth900:"#00133B"},secondary:{base:"#189AB4",depth100:"#EDF3FF",depth300:"#BDD2FF",depth500:"#496BB6",depth700:"#001C58",depth900:"#430E31"}}})};class s{constructor(){this.prefix="--cura",this.setCssVar=(t,e)=>{const s=this.groupPath(e,t[0]);this.body.style.setProperty(s,t[1])},this.groupPath=(t,e)=>`${t}-${e}`,this.isObject=t=>t&&"object"==typeof t&&!Array.isArray(t),this.mergeObject=(t,e)=>{const s=Object.entries(t);for(let t of s)this.isObject(t[1])?this.mergeObject(t[1],e[t[0]]):e[t[0]]=t[1]},this.buildCssVars=(t,e)=>{const s=Object.entries(e);for(let e of s)this.isObject(e[1])?this.buildCssVars(this.groupPath(t,e[0]),e[1]):this.setCssVar(e,t)},this.body=window.document.documentElement.querySelector("body")}load(t="default"){this.buildCssVars(this.prefix,e[t]?e[t]:e.default)}setCustom(t){const s=t.name;if(s in e)console.log("Error building custom theme. Theme %s already exists. Loading default theme.",s),this.load("default");else{const o=Object.assign({},JSON.parse(JSON.stringify(t.fromPreset&&t.fromPreset in e?e[t.fromPreset]:e.default)));this.mergeObject(t.definitions,o),e[s]=o,this.load(s)}}}class o{constructor(t){const e=new s;this.theme={load:function(t){e.load(t)},setCustom:function(t){e.setCustom(t)}},t&&t.customTheme?this.theme.setCustom(t.customTheme):this.theme.load(t&&t.theme?t.theme:"default")}}const i=function(){const t=window.CuraInit;window.CuraAPI=t?new o(t):new o;const e=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:e}})),t&&"function"==typeof t.onReady&&t.onReady(e)};export{i as g}
@@ -1 +1 @@
1
- System.register(["./p-5d11ae38.system.js"],(function(e){"use strict";var i,s,o,t;return{setters:[function(e){i=e.r;s=e.h;o=e.g;t=e.H}],execute:function(){var r=":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.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(t,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(o("../assets/icons/iconset-".concat(this.iconset,".svg")),"#").concat(this.name)})))};return e}());n.style=r;var c=["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 a=":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 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(t,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"},c.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}());l.style=a}}}));
1
+ System.register(["./p-0185df4e.system.js"],(function(e){"use strict";var i,s,o,t;return{setters:[function(e){i=e.r;s=e.h;o=e.g;t=e.H}],execute:function(){var r=":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.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(t,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(o("../assets/icons/iconset-".concat(this.iconset,".svg")),"#").concat(this.name)})))};return e}());n.style=r;var c=["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 a=":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 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(t,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"},c.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}());l.style=a}}}));
@@ -1 +1 @@
1
- import{r as s,h as o,H as l}from"./p-55523400.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-e207350a.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}
@@ -0,0 +1 @@
1
+ System.register([],(function(e){"use strict";return{execute:function(){var t={color:{primary:{depth100:"#CCD9E7",depth300:"#5580AE",base:"#004186",depth700:"#002B59",depth900:"#00133B"},secondary:{depth100:"#EEE8CE",depth300:"#C6B45C",base:"#AA8E0B",depth700:"#715F07",depth900:"#221C02"},accent:{depth100:"#F9E8D5",depth300:"#E4A04F",base:"#DF8D2C",depth700:"#955E1D",depth900:"#2D1C09"}},spacing:{base:"8px"},font:{family:{title:"serif",body:'"Roboto", Helvetica, Arial, sans-serif'},size:{base:"16px"}}};var r=Object.assign(Object.assign({},t),{color:{primary:{base:"#CD4D9A",depth100:"#FCEFF6",depth300:"#FFBFE5",depth500:"#FF7FCB",depth700:"#99126C",depth900:"#00133B"},secondary:{base:"#189AB4",depth100:"#EDF3FF",depth300:"#BDD2FF",depth500:"#496BB6",depth700:"#001C58",depth900:"#430E31"}}});var s={default:t,maternidade:r};var i=function(){function e(){var e=this;this.prefix="--cura";this.setCssVar=function(t,r){var s=e.groupPath(r,t[0]);e.body.style.setProperty(s,t[1])};this.groupPath=function(e,t){return"".concat(e,"-").concat(t)};this.isObject=function(e){return e&&typeof e==="object"&&!Array.isArray(e)};this.mergeObject=function(t,r){var s=Object.entries(t);for(var i=0,a=s;i<a.length;i++){var n=a[i];if(e.isObject(n[1])){e.mergeObject(n[1],r[n[0]])}else{r[n[0]]=n[1]}}};this.buildCssVars=function(t,r){var s=Object.entries(r);for(var i=0,a=s;i<a.length;i++){var n=a[i];if(e.isObject(n[1])){e.buildCssVars(e.groupPath(t,n[0]),n[1])}else{e.setCssVar(n,t)}}};this.body=window.document.documentElement.querySelector("body")}e.prototype.load=function(e){if(e===void 0){e="default"}var t=s[e]?s[e]:s.default;this.buildCssVars(this.prefix,t)};e.prototype.setCustom=function(e){var t=e.name;if(t in s){console.log("Error building custom theme. Theme %s already exists. Loading default theme.",t);this.load("default")}else{var r=e.fromPreset&&e.fromPreset in s?s[e.fromPreset]:s.default;var i=Object.assign({},JSON.parse(JSON.stringify(r)));this.mergeObject(e.definitions,i);s[t]=i;this.load(t)}};return e}();var a=function(){function e(e){var t=new i;this.theme={load:function(e){t.load(e)},setCustom:function(e){t.setCustom(e)}};if(e&&e.customTheme){this.theme.setCustom(e.customTheme)}else{var r=e&&e.theme?e.theme:"default";this.theme.load(r)}}return e}();function n(){var e=window.CuraInit;window.CuraAPI=e?new a(e):new a;var t=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:t}}));if(e&&typeof e.onReady==="function")e.onReady(t)}var o=e("g",n)}}}));
@@ -1 +1 @@
1
- import{r as i,h as s,g as o,H as e}from"./p-55523400.js";const r=class{constructor(s){i(this,s),this.name="",this.color="neutral",this.iconset="default",this.disabled=!1}getClasses(){const i={};return i[`icon-${this.color}`]=!0,this.size&&(i[`icon-${this.size}`]=!0),this.disabled&&(i["icon-disabled"]=!0),i}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:`${o(`../assets/icons/iconset-${this.iconset}.svg`)}#${this.name}`})))}};r.style=":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}";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.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"},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:!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}
1
+ import{r as i,h as s,g as o,H as e}from"./p-e207350a.js";const r=class{constructor(s){i(this,s),this.name="",this.color="neutral",this.iconset="default",this.disabled=!1}getClasses(){const i={};return i[`icon-${this.color}`]=!0,this.size&&(i[`icon-${this.size}`]=!0),this.disabled&&(i["icon-disabled"]=!0),i}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:`${o(`../assets/icons/iconset-${this.iconset}.svg`)}#${this.name}`})))}};r.style=":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}";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.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"},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:!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}
@@ -1 +1 @@
1
- System.register(["./p-5d11ae38.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-0185df4e.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}}}));
@@ -0,0 +1,2 @@
1
+ let t,e,n=!1,l=!1;const s=t=>{const e=new URL(t,B.t);return e.origin!==_.location.origin?e.href:e.pathname},o="http://www.w3.org/1999/xlink",r={},i=t=>"object"==(t=typeof t)||"function"===t,c=(t,e,...n)=>{let l=null,s=!1,o=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!i(l))&&(l+=""),s&&o?r[r.length-1].l+=l:r.push(s?u(null,l):l),o=s)};if(c(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=u(t,null);return a.o=e,r.length>0&&(a.i=r),a},u=(t,e)=>({u:0,h:t,l:e,$:null,i:null,o:null}),a={},f=new WeakMap,h=t=>"sc-"+t.p,w=(t,e,n,l,s,r)=>{if(n!==l){let c=H(t,e),u=e.toLowerCase();if("class"===e){const e=t.classList,s=p(n),o=p(l);e.remove(...s.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!s.includes(t))))}else if(c||"o"!==e[0]||"n"!==e[1]){const a=i(l);if((c||a&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]=l;else{const s=null==l?"":l;"list"===e?c=!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(o,e):t.removeAttribute(e)):(!c||4&r||s)&&!a&&(l=!0===l?"":l,f?t.setAttributeNS(o,e,l):t.setAttribute(e,l))}else e="-"===e[2]?e.slice(3):H(_,u)?u.slice(2):u[2]+e.slice(3),n&&B.rel(t,e,n,!1),l&&B.ael(t,e,l,!1)}},$=/\s/,p=t=>t?t.split($):[],y=(t,e,n,l)=>{const s=11===e.$.nodeType&&e.$.host?e.$.host:e.$,o=t&&t.o||r,i=e.o||r;for(l in o)l in i||w(s,l,o[l],void 0,n,e.u);for(l in i)w(s,l,o[l],i[l],n,e.u)},d=(e,l,s)=>{const o=l.i[s];let r,i,c=0;if(null!==o.l)r=o.$=z.createTextNode(o.l);else{if(n||(n="svg"===o.h),r=o.$=z.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.h),n&&"foreignObject"===o.h&&(n=!1),y(null,o,n),null!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),o.i)for(c=0;c<o.i.length;++c)i=d(e,o,c),i&&r.appendChild(i);"svg"===o.h?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},m=(t,n,l,s,o,r)=>{let i,c=t;for(c.shadowRoot&&c.tagName===e&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=d(null,l,o),i&&(s[o].$=i,c.insertBefore(i,n)))},b=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.$.remove()},g=(t,e)=>t.h===e.h,v=(t,e)=>{const l=e.$=t.$,s=t.i,o=e.i,r=e.h,i=e.l;null===i?(n="svg"===r||"foreignObject"!==r&&n,"slot"===r||y(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,i=e.length-1,c=e[0],u=e[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=e[++o]:null==u?u=e[--i]:null==f?f=l[++r]:null==h?h=l[--a]:g(c,f)?(v(c,f),c=e[++o],f=l[++r]):g(u,h)?(v(u,h),u=e[--i],h=l[--a]):g(c,h)?(v(c,h),t.insertBefore(c.$,u.$.nextSibling),c=e[++o],h=l[--a]):g(u,f)?(v(u,f),t.insertBefore(u.$,c.$),u=e[--i],f=l[++r]):(s=d(e&&e[r],n,r),f=l[++r],s&&c.$.parentNode.insertBefore(s,c.$));o>i?m(t,null==l[a+1]?null:l[a+1].$,n,l,r,a):r>a&&b(e,o,i)})(l,s,e,o):null!==o?(null!==t.l&&(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.l!==i&&(l.data=i)},S=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},j=(t,e)=>{if(t.u|=16,!(4&t.u))return S(t,t.g),Z((()=>O(t,e)));t.u|=512},O=(t,e)=>{const n=t.v;return P(void 0,(()=>k(t,n,e)))},k=async(t,e,n)=>{const l=t.S,s=l["s-rc"];n&&(t=>{const e=t.j,n=t.S,l=e.u,s=((t,e)=>{let n=h(e);const l=V.get(n);if(t=11===t.nodeType?t:z,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=z.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=()=>x(t);0===e.length?n():(Promise.all(e).then(n),t.u|=4,e.length=0)}},M=(n,l)=>{try{l=l.render(),n.u&=-17,n.u|=2,((n,l)=>{const s=n.S,o=n.j,r=n.O||u(null,null),i=(t=>t&&t.h===a)(l)?l:c(null,null,l);e=s.tagName,o.k&&(i.o=i.o||{},o.k.map((([t,e])=>i.o[e]=s[t]))),i.h=null,i.u|=4,n.O=i,i.$=r.$=s.shadowRoot||s,t=s["s-sc"],v(r,i)})(n,l)}catch(t){W(t,n.S)}return null},x=t=>{const e=t.S,n=t.g;64&t.u||(t.u|=64,E(e),t.M(e),n||C()),t.m&&(t.m(),t.m=void 0),512&t.u&&Y((()=>j(t,!1))),t.u&=-517},C=()=>{E(z.documentElement),Y((()=>(t=>{const e=B.ce("appload",{detail:{namespace:"cura"}});return t.dispatchEvent(e),e})(_)))},P=(t,e)=>t&&t.then?t.then(e):e(),E=t=>t.classList.add("hydrated"),L=(t,e,n)=>{if(e.C){const l=Object.entries(e.C),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>T(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=T(t),o=s.P.get(e),r=s.u,c=s.v;n=((t,e)=>null==t||i(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t)(n,l.C[e][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.P.set(e,n),c&&2==(18&r)&&j(s,!1))})(this,t,n,e)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(t,e,l){B.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},N=(t,e={})=>{const n=[],l=e.exclude||[],s=_.customElements,o=z.head,r=o.querySelector("meta[charset]"),i=z.createElement("style"),c=[];let u,a=!0;Object.assign(B,e),B.t=new URL(e.resourcesUrl||"./",z.baseURI).href,t.map((t=>{t[1].map((e=>{const o={u:e[0],p:e[1],C:e[2],L:e[3]};o.C=e[2],o.k=[];const r=o.p,i=class extends HTMLElement{constructor(t){super(t),A(t=this,o),1&o.u&&t.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?c.push(this):B.jmp((()=>(t=>{if(0==(1&B.u)){const e=T(t),n=e.j,l=()=>{};if(!(1&e.u)){e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){S(e,e.g=n);break}}n.C&&Object.entries(n.C).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.u)){{if(e.u|=32,(s=F(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(L(s,n,2),s.isProxied=!0);const t=()=>{};e.u|=8;try{new s(e)}catch(t){W(t)}e.u&=-9,t()}if(s.style){let t=s.style;const e=h(n);if(!V.has(e)){const l=()=>{};((t,e,n)=>{let l=V.get(t);G&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,V.set(t,l)})(e,t,!!(1&n.u)),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(){B.jmp((()=>{}))}componentOnReady(){return T(this).N}};o.R=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,L(i,o,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),o.insertBefore(i,r?r.nextSibling:o.firstChild),a=!1,c.length?c.map((t=>t.connectedCallback())):B.jmp((()=>u=setTimeout(C,30)))},R=new WeakMap,T=t=>R.get(t),U=(t,e)=>R.set(e.v=t,e),A=(t,e)=>{const n={u:0,S:t,j:e,P:new Map};return n.N=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[],R.set(t,n)},H=(t,e)=>e in t,W=(t,e)=>(0,console.error)(t,e),q=new Map,F=t=>{const e=t.p.replace(/-/g,"_"),n=t.R,l=q.get(n);return l?l[e]:import(`./${n}.entry.js`).then((t=>(q.set(n,t),t[e])),W)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={u:0,t:"",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)},D=t=>Promise.resolve(t),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),I=[],J=[],K=(t,e)=>n=>{t.push(n),l||(l=!0,e&&4&B.u?Y(X):B.raf(X))},Q=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){W(t)}t.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&B.raf(X)},Y=t=>D().then(t),Z=K(J,!0);export{a as H,N as b,s as g,c as h,D as p,U as r}
@@ -1,5 +1,3 @@
1
- import { s as setAssetPath } from './index-9d6a33bc.js';
2
-
3
1
  /**
4
2
  * Cura Default Theme
5
3
  */
@@ -165,7 +163,6 @@ class CuraAPI {
165
163
  }
166
164
  }
167
165
 
168
- setAssetPath(import.meta.url);
169
166
  function appGlobalScript () {
170
167
  const config = window.CuraInit;
171
168
  window.CuraAPI = config ? new CuraAPI(config) : new CuraAPI();
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getAssetPath, H as Host } from './index-9d6a33bc.js';
1
+ import { r as registerInstance, h, g as getAssetPath, H as Host } from './index-d01d7976.js';
2
2
 
3
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}";
4
4
 
package/dist/esm/cura.js CHANGED
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-9d6a33bc.js';
2
- import { g as globalScripts } from './app-globals-d6124a10.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d01d7976.js';
2
+ import { g as globalScripts } from './app-globals-892c3121.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Browser v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-9d6a33bc.js';
1
+ import { r as registerInstance, h, H as Host } from './index-d01d7976.js';
2
2
 
3
3
  const dummyComponentCss = ":host{display:block}";
4
4
 
@@ -16,7 +16,6 @@ const getAssetPath = (path) => {
16
16
  const assetUrl = new URL(path, plt.$resourcesUrl$);
17
17
  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
18
18
  };
19
- const setAssetPath = (path) => (plt.$resourcesUrl$ = path);
20
19
  const createTime = (fnName, tagName = '') => {
21
20
  {
22
21
  return () => {
@@ -1331,4 +1330,4 @@ const flush = () => {
1331
1330
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1332
1331
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1333
1332
 
1334
- export { Host as H, bootstrapLazy as b, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setAssetPath as s };
1333
+ export { Host as H, bootstrapLazy as b, getAssetPath as g, h, promiseResolve as p, registerInstance as r };
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-9d6a33bc.js';
2
- import { g as globalScripts } from './app-globals-d6124a10.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-d01d7976.js';
2
+ import { g as globalScripts } from './app-globals-892c3121.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -0,0 +1 @@
1
+ var ThemeDefault={color:{primary:{depth100:"#CCD9E7",depth300:"#5580AE",base:"#004186",depth700:"#002B59",depth900:"#00133B"},secondary:{depth100:"#EEE8CE",depth300:"#C6B45C",base:"#AA8E0B",depth700:"#715F07",depth900:"#221C02"},accent:{depth100:"#F9E8D5",depth300:"#E4A04F",base:"#DF8D2C",depth700:"#955E1D",depth900:"#2D1C09"}},spacing:{base:"8px"},font:{family:{title:"serif",body:'"Roboto", Helvetica, Arial, sans-serif'},size:{base:"16px"}}};var ThemeMaternity=Object.assign(Object.assign({},ThemeDefault),{color:{primary:{base:"#CD4D9A",depth100:"#FCEFF6",depth300:"#FFBFE5",depth500:"#FF7FCB",depth700:"#99126C",depth900:"#00133B"},secondary:{base:"#189AB4",depth100:"#EDF3FF",depth300:"#BDD2FF",depth500:"#496BB6",depth700:"#001C58",depth900:"#430E31"}}});var ThemePresets={default:ThemeDefault,maternidade:ThemeMaternity};var CuraThemeModule=function(){function e(){var e=this;this.prefix="--cura";this.setCssVar=function(t,s){var r=e.groupPath(s,t[0]);e.body.style.setProperty(r,t[1])};this.groupPath=function(e,t){return"".concat(e,"-").concat(t)};this.isObject=function(e){return e&&typeof e==="object"&&!Array.isArray(e)};this.mergeObject=function(t,s){var r=Object.entries(t);for(var a=0,i=r;a<i.length;a++){var o=i[a];if(e.isObject(o[1])){e.mergeObject(o[1],s[o[0]])}else{s[o[0]]=o[1]}}};this.buildCssVars=function(t,s){var r=Object.entries(s);for(var a=0,i=r;a<i.length;a++){var o=i[a];if(e.isObject(o[1])){e.buildCssVars(e.groupPath(t,o[0]),o[1])}else{e.setCssVar(o,t)}}};this.body=window.document.documentElement.querySelector("body")}e.prototype.load=function(e){if(e===void 0){e="default"}var t=ThemePresets[e]?ThemePresets[e]:ThemePresets.default;this.buildCssVars(this.prefix,t)};e.prototype.setCustom=function(e){var t=e.name;if(t in ThemePresets){console.log("Error building custom theme. Theme %s already exists. Loading default theme.",t);this.load("default")}else{var s=e.fromPreset&&e.fromPreset in ThemePresets?ThemePresets[e.fromPreset]:ThemePresets.default;var r=Object.assign({},JSON.parse(JSON.stringify(s)));this.mergeObject(e.definitions,r);ThemePresets[t]=r;this.load(t)}};return e}();var CuraAPI=function(){function e(e){var t=new CuraThemeModule;this.theme={load:function(e){t.load(e)},setCustom:function(e){t.setCustom(e)}};if(e&&e.customTheme){this.theme.setCustom(e.customTheme)}else{var s=e&&e.theme?e.theme:"default";this.theme.load(s)}}return e}();function appGlobalScript(){var e=window.CuraInit;window.CuraAPI=e?new CuraAPI(e):new CuraAPI;var t=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:t}}));if(e&&typeof e.onReady==="function")e.onReady(t)}var globalScripts=appGlobalScript;export{globalScripts as g};
@@ -1 +1 @@
1
- import{r as registerInstance,h,g as getAssetPath,H as Host}from"./index-9d6a33bc.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.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(getAssetPath("../assets/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,g as getAssetPath,H as Host}from"./index-d01d7976.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.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(getAssetPath("../assets/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 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-9d6a33bc.js";import{g as globalScripts}from"./app-globals-d6124a10.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-d01d7976.js";import{g as globalScripts}from"./app-globals-892c3121.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 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9d6a33bc.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-d01d7976.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 getAssetPath=function(e){var t=new URL(e,plt.$resourcesUrl$);return t.origin!==win.location.origin?t.href:t.pathname};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 u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var c=newVNode(e,null);c.$attrs$=t;if(i.length>0){c.$children$=i}return c};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 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 u=parseClassList(r);var c=parseClassList(n);l.remove.apply(l,u.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!u.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 u=n.length-1;var c=n[0];var f=n[u];var $;while(a<=s&&o<=u){if(i==null){i=t[++a]}else if(l==null){l=t[--s]}else if(c==null){c=n[++o]}else if(f==null){f=n[--u]}else if(isSameVnode(i,c)){patch(i,c);i=t[++a];c=n[++o]}else if(isSameVnode(l,f)){patch(l,f);l=t[--s];f=n[--u]}else if(isSameVnode(i,f)){patch(i,f);e.insertBefore(i.$elm$,l.$elm$.nextSibling);i=t[++a];f=n[--u]}else if(isSameVnode(l,c)){patch(l,c);e.insertBefore(l.$elm$,i.$elm$);l=t[--s];c=n[++o]}else{{$=createElm(t&&t[o],r,o);c=n[++o]}if($){{i.$elm$.parentNode.insertBefore($,i.$elm$)}}}}if(a>s){addVnodes(e,n[u+1]==null?null:n[u+1].$elm$,r,n,o,u)}else if(o>u){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(u){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 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.$instanceValues$.get(t);var s=a.$flags$;var i=a.$lazyInstance$;r=parsePropertyValue(r,n.$members$[t][0]);var l=Number.isNaN(o)&&Number.isNaN(r);var u=r!==o&&!l;if((!(s&8)||o===undefined)&&u){a.$instanceValues$.set(t,r);if(i){if((s&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=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],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,u;return __generator(this,(function(c){switch(c.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=c.sent();e();c.label=2;case 2:if(!a.isProxied){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}n();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()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};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)}}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 u=[];var c;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$=[]}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(c){clearTimeout(c);c=null}if(f){u.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(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=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,getAssetPath as g,h,promiseResolve as p,registerInstance as r};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-9d6a33bc.js";import{g as globalScripts}from"./app-globals-d6124a10.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-d01d7976.js";import{g as globalScripts}from"./app-globals-892c3121.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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/cura",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Cura Design System",
5
5
  "author": "Rede D`Or São Luiz",
6
6
  "license": "MIT",
@@ -37,5 +37,5 @@
37
37
  "jest-cli": "^27.4.5",
38
38
  "puppeteer": "^10.0.0"
39
39
  },
40
- "gitHead": "7b7e81698400c037727bf91de0bfbc8fbc156a47"
40
+ "gitHead": "4e85c3f4c0a1269569591fc22d8603557ac0edf3"
41
41
  }
@@ -1 +0,0 @@
1
- System.register(["./p-5d11ae38.system.js"],(function(e,t){"use strict";var s;return{setters:[function(e){s=e.s}],execute:function(){var r={color:{primary:{depth100:"#CCD9E7",depth300:"#5580AE",base:"#004186",depth700:"#002B59",depth900:"#00133B"},secondary:{depth100:"#EEE8CE",depth300:"#C6B45C",base:"#AA8E0B",depth700:"#715F07",depth900:"#221C02"},accent:{depth100:"#F9E8D5",depth300:"#E4A04F",base:"#DF8D2C",depth700:"#955E1D",depth900:"#2D1C09"}},spacing:{base:"8px"},font:{family:{title:"serif",body:'"Roboto", Helvetica, Arial, sans-serif'},size:{base:"16px"}}};var a=Object.assign(Object.assign({},r),{color:{primary:{base:"#CD4D9A",depth100:"#FCEFF6",depth300:"#FFBFE5",depth500:"#FF7FCB",depth700:"#99126C",depth900:"#00133B"},secondary:{base:"#189AB4",depth100:"#EDF3FF",depth300:"#BDD2FF",depth500:"#496BB6",depth700:"#001C58",depth900:"#430E31"}}});var i={default:r,maternidade:a};var n=function(){function e(){var e=this;this.prefix="--cura";this.setCssVar=function(t,s){var r=e.groupPath(s,t[0]);e.body.style.setProperty(r,t[1])};this.groupPath=function(e,t){return"".concat(e,"-").concat(t)};this.isObject=function(e){return e&&typeof e==="object"&&!Array.isArray(e)};this.mergeObject=function(t,s){var r=Object.entries(t);for(var a=0,i=r;a<i.length;a++){var n=i[a];if(e.isObject(n[1])){e.mergeObject(n[1],s[n[0]])}else{s[n[0]]=n[1]}}};this.buildCssVars=function(t,s){var r=Object.entries(s);for(var a=0,i=r;a<i.length;a++){var n=i[a];if(e.isObject(n[1])){e.buildCssVars(e.groupPath(t,n[0]),n[1])}else{e.setCssVar(n,t)}}};this.body=window.document.documentElement.querySelector("body")}e.prototype.load=function(e){if(e===void 0){e="default"}var t=i[e]?i[e]:i.default;this.buildCssVars(this.prefix,t)};e.prototype.setCustom=function(e){var t=e.name;if(t in i){console.log("Error building custom theme. Theme %s already exists. Loading default theme.",t);this.load("default")}else{var s=e.fromPreset&&e.fromPreset in i?i[e.fromPreset]:i.default;var r=Object.assign({},JSON.parse(JSON.stringify(s)));this.mergeObject(e.definitions,r);i[t]=r;this.load(t)}};return e}();var o=function(){function e(e){var t=new n;this.theme={load:function(e){t.load(e)},setCustom:function(e){t.setCustom(e)}};if(e&&e.customTheme){this.theme.setCustom(e.customTheme)}else{var s=e&&e.theme?e.theme:"default";this.theme.load(s)}}return e}();s(t.meta.url);function d(){var e=window.CuraInit;window.CuraAPI=e?new o(e):new o;var t=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:t}}));if(e&&typeof e.onReady==="function")e.onReady(t)}var u=e("g",d)}}}));
@@ -1,2 +0,0 @@
1
- let t,e,n=!1,l=!1;const s=t=>{const e=new URL(t,D.t);return e.origin!==z.location.origin?e.href:e.pathname},o=t=>D.t=t,r="http://www.w3.org/1999/xlink",i={},c=t=>"object"==(t=typeof t)||"function"===t,u=(t,e,...n)=>{let l=null,s=!1,o=!1;const r=[],i=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!c(l))&&(l+=""),s&&o?r[r.length-1].l+=l:r.push(s?a(null,l):l),o=s)};if(i(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const u=a(t,null);return u.o=e,r.length>0&&(u.i=r),u},a=(t,e)=>({u:0,h:t,l:e,$:null,i:null,o:null}),f={},h=new WeakMap,w=t=>"sc-"+t.p,$=(t,e,n,l,s,o)=>{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=c(l);if((i||a&&null!==l)&&!s)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(r,e):t.removeAttribute(e)):(!i||4&o||s)&&!a&&(l=!0===l?"":l,f?t.setAttributeNS(r,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)}},p=/\s/,y=t=>t?t.split(p):[],d=(t,e,n,l)=>{const s=11===e.$.nodeType&&e.$.host?e.$.host:e.$,o=t&&t.o||i,r=e.o||i;for(l in o)l in r||$(s,l,o[l],void 0,n,e.u);for(l in r)$(s,l,o[l],r[l],n,e.u)},m=(e,l,s)=>{const o=l.i[s];let r,i,c=0;if(null!==o.l)r=o.$=B.createTextNode(o.l);else{if(n||(n="svg"===o.h),r=o.$=B.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.h),n&&"foreignObject"===o.h&&(n=!1),d(null,o,n),null!=t&&r["s-si"]!==t&&r.classList.add(r["s-si"]=t),o.i)for(c=0;c<o.i.length;++c)i=m(e,o,c),i&&r.appendChild(i);"svg"===o.h?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},b=(t,n,l,s,o,r)=>{let i,c=t;for(c.shadowRoot&&c.tagName===e&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=m(null,l,o),i&&(s[o].$=i,c.insertBefore(i,n)))},g=(t,e,n,l)=>{for(;e<=n;++e)(l=t[e])&&l.$.remove()},v=(t,e)=>t.h===e.h,S=(t,e)=>{const l=e.$=t.$,s=t.i,o=e.i,r=e.h,i=e.l;null===i?(n="svg"===r||"foreignObject"!==r&&n,"slot"===r||d(t,e,n),null!==s&&null!==o?((t,e,n,l)=>{let s,o=0,r=0,i=e.length-1,c=e[0],u=e[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=e[++o]:null==u?u=e[--i]:null==f?f=l[++r]:null==h?h=l[--a]:v(c,f)?(S(c,f),c=e[++o],f=l[++r]):v(u,h)?(S(u,h),u=e[--i],h=l[--a]):v(c,h)?(S(c,h),t.insertBefore(c.$,u.$.nextSibling),c=e[++o],h=l[--a]):v(u,f)?(S(u,f),t.insertBefore(u.$,c.$),u=e[--i],f=l[++r]):(s=m(e&&e[r],n,r),f=l[++r],s&&c.$.parentNode.insertBefore(s,c.$));o>i?b(t,null==l[a+1]?null:l[a+1].$,n,l,r,a):r>a&&g(e,o,i)})(l,s,e,o):null!==o?(null!==t.l&&(l.textContent=""),b(l,null,e,o,0,o.length-1)):null!==s&&g(s,0,s.length-1),n&&"svg"===r&&(n=!1)):t.l!==i&&(l.data=i)},j=(t,e)=>{e&&!t.m&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.m=e)))},O=(t,e)=>{if(t.u|=16,!(4&t.u))return j(t,t.g),tt((()=>k(t,e)));t.u|=512},k=(t,e)=>{const n=t.v;return E(void 0,(()=>M(t,n,e)))},M=async(t,e,n)=>{const l=t.S,s=l["s-rc"];n&&(t=>{const e=t.j,n=t.S,l=e.u,s=((t,e)=>{let n=w(e);const l=_.get(n);if(t=11===t.nodeType?t:B,l)if("string"==typeof l){let e,s=h.get(t=t.head||t);s||h.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);x(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.u|=4,e.length=0)}},x=(n,l)=>{try{l=l.render(),n.u&=-17,n.u|=2,((n,l)=>{const s=n.S,o=n.j,r=n.O||a(null,null),i=(t=>t&&t.h===f)(l)?l:u(null,null,l);e=s.tagName,o.k&&(i.o=i.o||{},o.k.map((([t,e])=>i.o[e]=s[t]))),i.h=null,i.u|=4,n.O=i,i.$=r.$=s.shadowRoot||s,t=s["s-sc"],S(r,i)})(n,l)}catch(t){q(t,n.S)}return null},C=t=>{const e=t.S,n=t.g;64&t.u||(t.u|=64,L(e),t.M(e),n||P()),t.m&&(t.m(),t.m=void 0),512&t.u&&Z((()=>O(t,!1))),t.u&=-517},P=()=>{L(B.documentElement),Z((()=>(t=>{const e=D.ce("appload",{detail:{namespace:"cura"}});return t.dispatchEvent(e),e})(z)))},E=(t,e)=>t&&t.then?t.then(e):e(),L=t=>t.classList.add("hydrated"),N=(t,e,n)=>{if(e.C){const l=Object.entries(e.C),s=t.prototype;if(l.map((([t,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,t,{get(){return((t,e)=>U(this).P.get(e))(0,t)},set(n){((t,e,n,l)=>{const s=U(t),o=s.P.get(e),r=s.u,i=s.v;n=((t,e)=>null==t||c(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t)(n,l.C[e][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.P.set(e,n),i&&2==(18&r)&&O(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},R=(t,e={})=>{const n=[],l=e.exclude||[],s=z.customElements,o=B.head,r=o.querySelector("meta[charset]"),i=B.createElement("style"),c=[];let u,a=!0;Object.assign(D,e),D.t=new URL(e.resourcesUrl||"./",B.baseURI).href,t.map((t=>{t[1].map((e=>{const o={u:e[0],p:e[1],C:e[2],L:e[3]};o.C=e[2],o.k=[];const r=o.p,i=class extends HTMLElement{constructor(t){super(t),H(t=this,o),1&o.u&&t.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?c.push(this):D.jmp((()=>(t=>{if(0==(1&D.u)){const e=U(t),n=e.j,l=()=>{};if(!(1&e.u)){e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){j(e,e.g=n);break}}n.C&&Object.entries(n.C).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.u)){{if(e.u|=32,(s=V(n)).then){const t=()=>{};s=await s,t()}s.isProxied||(N(s,n,2),s.isProxied=!0);const t=()=>{};e.u|=8;try{new s(e)}catch(t){q(t)}e.u&=-9,t()}if(s.style){let t=s.style;const e=w(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.u)),l()}}}const o=e.g,r=()=>O(e,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,e,n)}l()}})(this)))}disconnectedCallback(){D.jmp((()=>{}))}componentOnReady(){return U(this).N}};o.R=t[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,N(i,o,1)))}))})),i.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",i.setAttribute("data-styles",""),o.insertBefore(i,r?r.nextSibling:o.firstChild),a=!1,c.length?c.map((t=>t.connectedCallback())):D.jmp((()=>u=setTimeout(P,30)))},T=new WeakMap,U=t=>T.get(t),A=(t,e)=>T.set(e.v=t,e),H=(t,e)=>{const n={u:0,S:t,j:e,P:new Map};return n.N=new Promise((t=>n.M=t)),t["s-p"]=[],t["s-rc"]=[],T.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.R,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={u:0,t:"",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.u?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{f as H,R as b,s as g,u as h,G as p,A as r,o as s}
@@ -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=e("g",(function(e){var t=new URL(e,pe.$resourcesUrl$);return t.origin!==$e.location.origin?t.href:t.pathname}));var s=e("s",(function(e){return pe.$resourcesUrl$=e}));var u=function(e,t){if(t===void 0){t=""}{return function(){return}}};var c=function(e,t){{return function(){return}}};var $="{visibility:hidden}.hydrated{visibility:inherit}";var v="http://www.w3.org/1999/xlink";var p={};var h="http://www.w3.org/2000/svg";var d="http://www.w3.org/1999/xhtml";var m=function(e){return e!=null};var g=function(e){e=typeof e;return e==="object"||e==="function"};var y=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"&&!g(a)){a=String(a)}if(i&&l){o[o.length-1].$text$+=a}else{o.push(i?b(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=b(e,null);u.$attrs$=t;if(o.length>0){u.$children$=o}return u}));var b=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}return r};var w=e("H",{});var _=function(e){return e&&e.$tag$===w};var S=function(e,t){if(e!=null&&!g(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var N=function(e,t,r){var n=pe.ce(t,r);e.dispatchEvent(n);return n};var R=new WeakMap;var x=function(e,t,r){var n=ce.get(e);if(de&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}ce.set(e,n)};var j=function(e,t,r,n){var a=E(t);var i=ce.get(a);e=e.nodeType===11?e:ve;if(i){if(typeof i==="string"){e=e.head||e;var l=R.get(e);var o=void 0;if(!l){R.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 C=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=u("attachStyles",t.$tagName$);var i=j(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var E=function(e,t){return"sc-"+e.$tagName$};var A=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=O(r);var u=O(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 c=g(n);if((l||c&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var $=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!=$){e[t]=$}}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(v,t)}else{e.removeAttribute(t)}}}else if((!l||i&4||a)&&!c){n=n===true?"":n;if(p){e.setAttributeNS(v,t,n)}else{e.setAttribute(t,n)}}}}};var M=/\s/;var O=function(e){return!e?[]:e.split(M)};var k=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||p;var l=t.$attrs$||p;{for(n in i){if(!(n in l)){A(a,n,i[n],undefined,r,t.$flags$)}}}for(n in l){A(a,n,i[n],l[n],r,t.$flags$)}};var P=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?h:d,i.$tag$);if(l&&i.$tag$==="foreignObject"){l=false}{k(null,i,l)}if(m(a)&&f["s-si"]!==a){f.classList.add(f["s-si"]=a)}if(i.$children$){for(o=0;o<i.$children$.length;++o){s=P(e,i,o);if(s){f.appendChild(s)}}}{if(i.$tag$==="svg"){l=false}else if(f.tagName==="foreignObject"){l=true}}}return f};var T=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=P(null,r,a);if(f){n[a].$elm$=f;o.insertBefore(f,t)}}}};var L=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;a.remove()}}};var U=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(B(o,u)){I(o,u);o=t[++a];u=n[++i]}else if(B(f,c)){I(f,c);f=t[--l];c=n[--s]}else if(B(o,c)){I(o,c);e.insertBefore(o.$elm$,f.$elm$.nextSibling);o=t[++a];c=n[--s]}else if(B(f,u)){I(f,u);e.insertBefore(f.$elm$,o.$elm$);f=t[--l];u=n[++i]}else{{$=P(t&&t[i],r,i);u=n[++i]}if($){{o.$elm$.parentNode.insertBefore($,o.$elm$)}}}}if(a>l){T(e,n[s+1]==null?null:n[s+1].$elm$,r,n,i,s)}else if(i>s){L(t,a,l)}};var B=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{k(e,t,l)}}if(n!==null&&a!==null){U(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}T(r,null,t,a,0,a.length-1)}else if(n!==null){L(n,0,n.length-1)}if(l&&i==="svg"){l=false}}else if(e.$text$!==o){r.data=o}};var z=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var l=e.$vnode$||b(null,null);var o=_(t)?t:y(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 H=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var V=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}H(e,e.$ancestorComponent$);var r=function(){return q(e,t)};return Se(r)};var q=function(e,t){var r=u("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;r();return J(a,(function(){return W(e,n,t)}))};var W=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,o,f;return __generator(this,(function(s){r=e.$hostElement$;a=u("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){C(e)}l=u("render",e.$cmpMeta$.$tagName$);{F(e,t)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{o=r["s-p"];f=function(){return G(e)};if(o.length===0){f()}else{Promise.all(o).then(f);e.$flags$|=4;o.length=0}}return[2]}))}))};var F=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{z(e,t)}}}}catch(t){fe(t,e.$hostElement$)}return null};var G=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=u("postUpdate",t);var a=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{K(r)}n();{e.$onReadyResolve$(r);if(!a){D()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){_e((function(){return V(e,false)}))}e.$flags$&=~(4|512)}};var D=function(e){{K(ve.documentElement)}_e((function(){return N($e,"appload",{detail:{namespace:n}})}))};var J=function(e,t){return e&&e.then?e.then(t):t()};var K=function(e){return e.classList.add("hydrated")};var Q=function(e,t){return ae(e).$instanceValues$.get(t)};var X=function(e,t,r,n){var a=ae(e);var i=a.$instanceValues$.get(t);var l=a.$flags$;var o=a.$lazyInstance$;r=S(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){V(a,false)}}}};var Y=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 Q(this,n)},set:function(e){X(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 Z=function(e,t,n,a,i){return __awaiter(r,void 0,void 0,(function(){var e,r,a,l,o,f,s;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=c();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){Y(i,n,2);i.isProxied=true}r=u("createInstance",n.$tagName$);{t.$flags$|=8}try{new i(t)}catch(e){fe(e)}{t.$flags$&=~8}r();if(i.style){a=i.style;l=E(n);if(!ce.has(l)){o=u("registerStyles",n.$tagName$);x(l,a,!!(n.$flags$&1));o()}}$.label=3;case 3:f=t.$ancestorComponent$;s=function(){return V(t,true)};if(f&&f["s-rc"]){f["s-rc"].push(s)}else{s()}return[2]}}))}))};var ee=function(e){if((pe.$flags$&1)===0){var t=ae(e);var r=t.$cmpMeta$;var n=u("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){H(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}}))}{Z(e,t,r)}}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=u();var n=[];var a=t.exclude||[];var i=$e.customElements;var l=ve.head;var o=l.querySelector("meta[charset]");var f=ve.createElement("style");var s=[];var c;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(c){clearTimeout(c);c=null}if(v){s.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,Y(o,r,1))}}))}));{f.innerHTML=n+$;f.setAttribute("data-styles","");l.insertBefore(f,o?o.nextSibling:l.firstChild)}v=false;if(s.length){s.map((function(e){return e.connectedCallback()}))}else{{pe.jmp((function(){return c=setTimeout(D,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 he=e("p",(function(e){return Promise.resolve(e)}));var de=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 he().then(e)};var Se=ye(ge,true)}}}));
@@ -1 +0,0 @@
1
- import{s as t}from"./p-55523400.js";const e={color:{primary:{depth100:"#CCD9E7",depth300:"#5580AE",base:"#004186",depth700:"#002B59",depth900:"#00133B"},secondary:{depth100:"#EEE8CE",depth300:"#C6B45C",base:"#AA8E0B",depth700:"#715F07",depth900:"#221C02"},accent:{depth100:"#F9E8D5",depth300:"#E4A04F",base:"#DF8D2C",depth700:"#955E1D",depth900:"#2D1C09"}},spacing:{base:"8px"},font:{family:{title:"serif",body:'"Roboto", Helvetica, Arial, sans-serif'},size:{base:"16px"}}},s={default:e,maternidade:Object.assign(Object.assign({},e),{color:{primary:{base:"#CD4D9A",depth100:"#FCEFF6",depth300:"#FFBFE5",depth500:"#FF7FCB",depth700:"#99126C",depth900:"#00133B"},secondary:{base:"#189AB4",depth100:"#EDF3FF",depth300:"#BDD2FF",depth500:"#496BB6",depth700:"#001C58",depth900:"#430E31"}}})};class o{constructor(){this.prefix="--cura",this.setCssVar=(t,e)=>{const s=this.groupPath(e,t[0]);this.body.style.setProperty(s,t[1])},this.groupPath=(t,e)=>`${t}-${e}`,this.isObject=t=>t&&"object"==typeof t&&!Array.isArray(t),this.mergeObject=(t,e)=>{const s=Object.entries(t);for(let t of s)this.isObject(t[1])?this.mergeObject(t[1],e[t[0]]):e[t[0]]=t[1]},this.buildCssVars=(t,e)=>{const s=Object.entries(e);for(let e of s)this.isObject(e[1])?this.buildCssVars(this.groupPath(t,e[0]),e[1]):this.setCssVar(e,t)},this.body=window.document.documentElement.querySelector("body")}load(t="default"){this.buildCssVars(this.prefix,s[t]?s[t]:s.default)}setCustom(t){const e=t.name;if(e in s)console.log("Error building custom theme. Theme %s already exists. Loading default theme.",e),this.load("default");else{const o=Object.assign({},JSON.parse(JSON.stringify(t.fromPreset&&t.fromPreset in s?s[t.fromPreset]:s.default)));this.mergeObject(t.definitions,o),s[e]=o,this.load(e)}}}class i{constructor(t){const e=new o;this.theme={load:function(t){e.load(t)},setCustom:function(t){e.setCustom(t)}},t&&t.customTheme?this.theme.setCustom(t.customTheme):this.theme.load(t&&t.theme?t.theme:"default")}}t(import.meta.url);const h=function(){const t=window.CuraInit;window.CuraAPI=t?new i(t):new i;const e=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:e}})),t&&"function"==typeof t.onReady&&t.onReady(e)};export{h as g}
@@ -1 +0,0 @@
1
- import{s as setAssetPath}from"./index-9d6a33bc.js";var ThemeDefault={color:{primary:{depth100:"#CCD9E7",depth300:"#5580AE",base:"#004186",depth700:"#002B59",depth900:"#00133B"},secondary:{depth100:"#EEE8CE",depth300:"#C6B45C",base:"#AA8E0B",depth700:"#715F07",depth900:"#221C02"},accent:{depth100:"#F9E8D5",depth300:"#E4A04F",base:"#DF8D2C",depth700:"#955E1D",depth900:"#2D1C09"}},spacing:{base:"8px"},font:{family:{title:"serif",body:'"Roboto", Helvetica, Arial, sans-serif'},size:{base:"16px"}}};var ThemeMaternity=Object.assign(Object.assign({},ThemeDefault),{color:{primary:{base:"#CD4D9A",depth100:"#FCEFF6",depth300:"#FFBFE5",depth500:"#FF7FCB",depth700:"#99126C",depth900:"#00133B"},secondary:{base:"#189AB4",depth100:"#EDF3FF",depth300:"#BDD2FF",depth500:"#496BB6",depth700:"#001C58",depth900:"#430E31"}}});var ThemePresets={default:ThemeDefault,maternidade:ThemeMaternity};var CuraThemeModule=function(){function e(){var e=this;this.prefix="--cura";this.setCssVar=function(t,s){var r=e.groupPath(s,t[0]);e.body.style.setProperty(r,t[1])};this.groupPath=function(e,t){return"".concat(e,"-").concat(t)};this.isObject=function(e){return e&&typeof e==="object"&&!Array.isArray(e)};this.mergeObject=function(t,s){var r=Object.entries(t);for(var a=0,i=r;a<i.length;a++){var o=i[a];if(e.isObject(o[1])){e.mergeObject(o[1],s[o[0]])}else{s[o[0]]=o[1]}}};this.buildCssVars=function(t,s){var r=Object.entries(s);for(var a=0,i=r;a<i.length;a++){var o=i[a];if(e.isObject(o[1])){e.buildCssVars(e.groupPath(t,o[0]),o[1])}else{e.setCssVar(o,t)}}};this.body=window.document.documentElement.querySelector("body")}e.prototype.load=function(e){if(e===void 0){e="default"}var t=ThemePresets[e]?ThemePresets[e]:ThemePresets.default;this.buildCssVars(this.prefix,t)};e.prototype.setCustom=function(e){var t=e.name;if(t in ThemePresets){console.log("Error building custom theme. Theme %s already exists. Loading default theme.",t);this.load("default")}else{var s=e.fromPreset&&e.fromPreset in ThemePresets?ThemePresets[e.fromPreset]:ThemePresets.default;var r=Object.assign({},JSON.parse(JSON.stringify(s)));this.mergeObject(e.definitions,r);ThemePresets[t]=r;this.load(t)}};return e}();var CuraAPI=function(){function e(e){var t=new CuraThemeModule;this.theme={load:function(e){t.load(e)},setCustom:function(e){t.setCustom(e)}};if(e&&e.customTheme){this.theme.setCustom(e.customTheme)}else{var s=e&&e.theme?e.theme:"default";this.theme.load(s)}}return e}();setAssetPath(import.meta.url);function appGlobalScript(){var e=window.CuraInit;window.CuraAPI=e?new CuraAPI(e):new CuraAPI;var t=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:t}}));if(e&&typeof e.onReady==="function")e.onReady(t)}var globalScripts=appGlobalScript;export{globalScripts as g};
@@ -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,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function i(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?r(e.value):a(e.value).then(o,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,o;return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;a=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){r.label=o[1];break}if(o[0]===6&&r.label<s[1]){r.label=s[1];s=o;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(o);break}if(s[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[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,s;n<a;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};var NAMESPACE="cura";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var getAssetPath=function(e){var t=new URL(e,plt.$resourcesUrl$);return t.origin!==win.location.origin?t.href:t.pathname};var setAssetPath=function(e){return plt.$resourcesUrl$=e};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 s=false;var o=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(s=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(s&&o){i[i.length-1].$text$+=a}else{i.push(s?newVNode(null,a):a)}o=s}}};l(r);if(t){{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var c=newVNode(e,null);c.$attrs$=t;if(i.length>0){c.$children$=i}return c};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 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 s=styles.get(a);e=e.nodeType===11?e:doc;if(s){if(typeof s==="string"){e=e.head||e;var o=rootAppliedStyles.get(e);var i=void 0;if(!o){rootAppliedStyles.set(e,o=new Set)}if(!o.has(a)){{{i=doc.createElement("style");i.innerHTML=s}e.insertBefore(i,e.querySelector("link"))}if(o){o.add(a)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[s],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 s=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=s;r.classList.add(s+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var setAccessor=function(e,t,r,n,a,s){if(r!==n){var o=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var u=parseClassList(r);var c=parseClassList(n);l.remove.apply(l,u.filter((function(e){return e&&!c.includes(e)})));l.add.apply(l,c.filter((function(e){return e&&!u.includes(e)})))}else if(!o&&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((o||f&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var $=n==null?"":n;if(t==="list"){o=false}else if(r==null||e[t]!=$){e[t]=$}}else{e[t]=n}}catch(e){}}var v=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){t=i;v=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(v){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!o||s&4||a)&&!f){n=n===true?"":n;if(v){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 s=e&&e.$attrs$||EMPTY_OBJ;var o=t.$attrs$||EMPTY_OBJ;{for(n in s){if(!(n in o)){setAccessor(a,n,s[n],undefined,r,t.$flags$)}}}for(n in o){setAccessor(a,n,s[n],o[n],r,t.$flags$)}};var createElm=function(e,t,r,n){var a=t.$children$[r];var s=0;var o;var i;if(a.$text$!==null){o=a.$elm$=doc.createTextNode(a.$text$)}else{if(!isSvgMode){isSvgMode=a.$tag$==="svg"}o=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)&&o["s-si"]!==scopeId){o.classList.add(o["s-si"]=scopeId)}if(a.$children$){for(s=0;s<a.$children$.length;++s){i=createElm(e,a,s);if(i){o.appendChild(i)}}}{if(a.$tag$==="svg"){isSvgMode=false}else if(o.tagName==="foreignObject"){isSvgMode=true}}}return o};var addVnodes=function(e,t,r,n,a,s){var o=e;var i;if(o.shadowRoot&&o.tagName===hostTagName){o=o.shadowRoot}for(;a<=s;++a){if(n[a]){i=createElm(null,r,a);if(i){n[a].$elm$=i;o.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 s=0;var o=t.length-1;var i=t[0];var l=t[o];var u=n.length-1;var c=n[0];var f=n[u];var $;while(a<=o&&s<=u){if(i==null){i=t[++a]}else if(l==null){l=t[--o]}else if(c==null){c=n[++s]}else if(f==null){f=n[--u]}else if(isSameVnode(i,c)){patch(i,c);i=t[++a];c=n[++s]}else if(isSameVnode(l,f)){patch(l,f);l=t[--o];f=n[--u]}else if(isSameVnode(i,f)){patch(i,f);e.insertBefore(i.$elm$,l.$elm$.nextSibling);i=t[++a];f=n[--u]}else if(isSameVnode(l,c)){patch(l,c);e.insertBefore(l.$elm$,i.$elm$);l=t[--o];c=n[++s]}else{{$=createElm(t&&t[s],r,s);c=n[++s]}if($){{i.$elm$.parentNode.insertBefore($,i.$elm$)}}}}if(a>o){addVnodes(e,n[u+1]==null?null:n[u+1].$elm$,r,n,s,u)}else if(s>u){removeVnodes(t,a,o)}};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 s=t.$tag$;var o=t.$text$;if(o===null){{isSvgMode=s==="svg"?true:s==="foreignObject"?false:isSvgMode}{if(s==="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&&s==="svg"){isSvgMode=false}}else if(e.$text$!==o){r.data=o}};var renderVdom=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var a=e.$vnode$||newVNode(null,null);var s=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;if(n.$attrsToReflect$){s.$attrs$=s.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return s.$attrs$[n]=r[t]}))}s.$tag$=null;s.$flags$|=4;e.$vnode$=s;s.$elm$=a.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}patch(a,s)};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,s,o,i,l;return __generator(this,(function(u){n=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);s=n["s-rc"];if(r){attachStyles(e)}o=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(s){s.map((function(e){return e()}));n["s-rc"]=undefined}o();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 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 s=a.$instanceValues$.get(t);var o=a.$flags$;var i=a.$lazyInstance$;r=parsePropertyValue(r,n.$members$[t][0]);var l=Number.isNaN(s)&&Number.isNaN(r);var u=r!==s&&!l;if((!(o&8)||s===undefined)&&u){a.$instanceValues$.set(t,r);if(i){if((o&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=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],s=e[1][0];if(s&31||r&2&&s&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 s=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;plt.jmp((function(){var t=s.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;s.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,s,o,i,l,u;return __generator(this,(function(c){switch(c.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=c.sent();e();c.label=2;case 2:if(!a.isProxied){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}n();if(a.style){s=a.style;o=getScopeId(r);if(!styles.has(o)){i=createTime("registerStyles",r.$tagName$);registerStyle(o,s,!!(r.$flags$&1));i()}}c.label=3;case 3:l=t.$ancestorComponent$;u=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(u)}else{u()}return[2]}}))}))};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)}}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 s=win.customElements;var o=doc.head;var i=o.querySelector("meta[charset]");var l=doc.createElement("style");var u=[];var c;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$=[]}var o=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(c){clearTimeout(c);c=null}if(f){u.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(o)&&!s.get(o)){n.push(o);s.define(o,proxyComponent(i,r,1))}}))}));{l.innerHTML=n+HYDRATED_CSS;l.setAttribute("data-styles","");o.insertBefore(l,i?i.nextSibling:o.firstChild)}f=false;if(u.length){u.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=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 s=cmpModules.get(a);if(s){return s[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,getAssetPath as g,h,promiseResolve as p,registerInstance as r,setAssetPath as s};