@rededor/cura 0.1.5 → 0.1.8

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 (50) hide show
  1. package/dist/cjs/{app-globals-30f66112.js → app-globals-7ae6e3ee.js} +1 -0
  2. package/dist/cjs/cura-icon_2.cjs.entry.js +5 -2
  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-bcb164aa.js → index-322d0c88.js} +21 -5
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/collection/api/cura-api.js +1 -0
  8. package/dist/collection/components/cura-icon/cura-icon.js +5 -2
  9. package/dist/components/cura-icon2.js +5 -2
  10. package/dist/components/index.js +1 -0
  11. package/dist/cura/cura.esm.js +1 -1
  12. package/dist/cura/cura.js +1 -1
  13. package/dist/cura/{p-19ab5ec3.js → p-0e08324a.js} +1 -1
  14. package/dist/cura/p-25adccc6.system.js +2 -0
  15. package/dist/cura/p-26939de0.system.js +1 -0
  16. package/dist/cura/p-29a8ae0b.system.entry.js +1 -0
  17. package/dist/cura/p-54be87f7.js +2 -0
  18. package/dist/cura/p-c0121c44.entry.js +1 -0
  19. package/dist/cura/p-cf0d42ef.system.js +1 -0
  20. package/dist/cura/{p-d8ac8798.system.entry.js → p-cfe07efc.system.entry.js} +1 -1
  21. package/dist/cura/{p-858e14f5.entry.js → p-d4559ca3.entry.js} +1 -1
  22. package/dist/dist/loader/cdn.js +3 -0
  23. package/dist/dist/loader/index.cjs.js +3 -0
  24. package/dist/dist/loader/index.d.ts +12 -0
  25. package/dist/dist/loader/index.es2017.js +3 -0
  26. package/dist/dist/loader/index.js +4 -0
  27. package/dist/dist/loader/package.json +11 -0
  28. package/dist/esm/{app-globals-892c3121.js → app-globals-5c6eb474.js} +1 -0
  29. package/dist/esm/cura-icon_2.entry.js +5 -2
  30. package/dist/esm/cura.js +2 -2
  31. package/dist/esm/dummy-component.entry.js +1 -1
  32. package/dist/esm/{index-d01d7976.js → index-70d7a4f9.js} +22 -5
  33. package/dist/esm/loader.js +2 -2
  34. package/dist/esm-es5/{app-globals-892c3121.js → app-globals-5c6eb474.js} +1 -1
  35. package/dist/esm-es5/cura-icon_2.entry.js +1 -1
  36. package/dist/esm-es5/cura.js +1 -1
  37. package/dist/esm-es5/dummy-component.entry.js +1 -1
  38. package/dist/esm-es5/index-70d7a4f9.js +2 -0
  39. package/dist/esm-es5/loader.js +1 -1
  40. package/dist/types/api/cura-api.d.ts +1 -0
  41. package/dist/types/api/cura-api.type.d.ts +1 -1
  42. package/dist/types/components/cura-icon/cura-icon.d.ts +2 -0
  43. package/package.json +2 -2
  44. package/dist/cura/p-0185df4e.system.js +0 -2
  45. package/dist/cura/p-18aa0f50.system.js +0 -1
  46. package/dist/cura/p-75300417.system.entry.js +0 -1
  47. package/dist/cura/p-a855f3cf.system.js +0 -1
  48. package/dist/cura/p-cd968858.entry.js +0 -1
  49. package/dist/cura/p-e207350a.js +0 -2
  50. package/dist/esm-es5/index-d01d7976.js +0 -2
@@ -150,6 +150,7 @@ class CuraThemeModule {
150
150
 
151
151
  class CuraAPI {
152
152
  constructor(config) {
153
+ this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
153
154
  const themeModule = new CuraThemeModule();
154
155
  this.theme = {
155
156
  load: function (themeTag) { themeModule.load(themeTag); },
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bcb164aa.js');
5
+ const index = require('./index-322d0c88.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
 
@@ -14,6 +14,9 @@ const CuraIcon = class {
14
14
  this.iconset = 'default';
15
15
  this.disabled = false;
16
16
  }
17
+ connectedCallback() {
18
+ this.assetsPath = window.CuraAPI.localAssetsPath;
19
+ }
17
20
  getClasses() {
18
21
  const classes = {};
19
22
  classes[`icon-${this.color}`] = true;
@@ -24,7 +27,7 @@ const CuraIcon = class {
24
27
  return classes;
25
28
  }
26
29
  render() {
27
- return (index.h(index.Host, null, index.h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", class: this.getClasses() }, index.h("use", { xlinkHref: `${index.getAssetPath(`../assets/icons/iconset-${this.iconset}.svg`)}#${this.name}` }))));
30
+ return (index.h(index.Host, null, index.h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", class: this.getClasses() }, index.h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
28
31
  }
29
32
  };
30
33
  CuraIcon.style = curaIconCss;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-bcb164aa.js');
4
- const appGlobals = require('./app-globals-30f66112.js');
3
+ const index = require('./index-322d0c88.js');
4
+ const appGlobals = require('./app-globals-7ae6e3ee.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-bcb164aa.js');
5
+ const index = require('./index-322d0c88.js');
6
6
 
7
7
  const dummyComponentCss = ":host{display:block}";
8
8
 
@@ -34,10 +34,6 @@ let scopeId;
34
34
  let hostTagName;
35
35
  let isSvgMode = false;
36
36
  let queuePending = false;
37
- const getAssetPath = (path) => {
38
- const assetUrl = new URL(path, plt.$resourcesUrl$);
39
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
40
- };
41
37
  const createTime = (fnName, tagName = '') => {
42
38
  {
43
39
  return () => {
@@ -906,6 +902,17 @@ const appDidLoad = (who) => {
906
902
  }
907
903
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
908
904
  };
905
+ const safeCall = (instance, method, arg) => {
906
+ if (instance && instance[method]) {
907
+ try {
908
+ return instance[method](arg);
909
+ }
910
+ catch (e) {
911
+ consoleError(e);
912
+ }
913
+ }
914
+ return undefined;
915
+ };
909
916
  const then = (promise, thenFn) => {
910
917
  return promise && promise.then ? promise.then(thenFn) : thenFn();
911
918
  };
@@ -1080,6 +1087,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1080
1087
  hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1081
1088
  }
1082
1089
  endNewInstance();
1090
+ fireConnectedCallback(hostRef.$lazyInstance$);
1083
1091
  }
1084
1092
  if (Cstr.style) {
1085
1093
  // this component has styles but we haven't registered them yet
@@ -1108,6 +1116,11 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1108
1116
  schedule();
1109
1117
  }
1110
1118
  };
1119
+ const fireConnectedCallback = (instance) => {
1120
+ {
1121
+ safeCall(instance, 'connectedCallback');
1122
+ }
1123
+ };
1111
1124
  const connectedCallback = (elm) => {
1112
1125
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1113
1126
  const hostRef = getHostRef(elm);
@@ -1146,6 +1159,10 @@ const connectedCallback = (elm) => {
1146
1159
  initializeComponent(elm, hostRef, cmpMeta);
1147
1160
  }
1148
1161
  }
1162
+ else {
1163
+ // fire off connectedCallback() on component instance
1164
+ fireConnectedCallback(hostRef.$lazyInstance$);
1165
+ }
1149
1166
  endConnected();
1150
1167
  }
1151
1168
  };
@@ -1354,7 +1371,6 @@ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1354
1371
 
1355
1372
  exports.Host = Host;
1356
1373
  exports.bootstrapLazy = bootstrapLazy;
1357
- exports.getAssetPath = getAssetPath;
1358
1374
  exports.h = h;
1359
1375
  exports.promiseResolve = promiseResolve;
1360
1376
  exports.registerInstance = registerInstance;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-bcb164aa.js');
6
- const appGlobals = require('./app-globals-30f66112.js');
5
+ const index = require('./index-322d0c88.js');
6
+ const appGlobals = require('./app-globals-7ae6e3ee.js');
7
7
 
8
8
  /*
9
9
  Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -1,6 +1,7 @@
1
1
  import CuraThemeModule from './modules/cura-theme-module';
2
2
  export default class CuraAPI {
3
3
  constructor(config) {
4
+ this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
4
5
  const themeModule = new CuraThemeModule();
5
6
  this.theme = {
6
7
  load: function (themeTag) { themeModule.load(themeTag); },
@@ -1,4 +1,4 @@
1
- import { Host, h, getAssetPath } from '@stencil/core';
1
+ import { Host, h } from '@stencil/core';
2
2
  export class CuraIcon {
3
3
  constructor() {
4
4
  this.name = '';
@@ -6,6 +6,9 @@ export class CuraIcon {
6
6
  this.iconset = 'default';
7
7
  this.disabled = false;
8
8
  }
9
+ connectedCallback() {
10
+ this.assetsPath = window.CuraAPI.localAssetsPath;
11
+ }
9
12
  getClasses() {
10
13
  const classes = {};
11
14
  classes[`icon-${this.color}`] = true;
@@ -16,7 +19,7 @@ export class CuraIcon {
16
19
  return classes;
17
20
  }
18
21
  render() {
19
- 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: `${getAssetPath(`../assets/icons/iconset-${this.iconset}.svg`)}#${this.name}` }))));
22
+ return (h(Host, null, h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", class: this.getClasses() }, h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
20
23
  }
21
24
  static get is() { return "cura-icon"; }
22
25
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,4 @@
1
- import { proxyCustomElement, HTMLElement, h, Host, getAssetPath } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
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
 
@@ -12,6 +12,9 @@ const CuraIcon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
12
12
  this.iconset = 'default';
13
13
  this.disabled = false;
14
14
  }
15
+ connectedCallback() {
16
+ this.assetsPath = window.CuraAPI.localAssetsPath;
17
+ }
15
18
  getClasses() {
16
19
  const classes = {};
17
20
  classes[`icon-${this.color}`] = true;
@@ -22,7 +25,7 @@ const CuraIcon = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
22
25
  return classes;
23
26
  }
24
27
  render() {
25
- 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: `${getAssetPath(`../assets/icons/iconset-${this.iconset}.svg`)}#${this.name}` }))));
28
+ return (h(Host, null, h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", class: this.getClasses() }, h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
26
29
  }
27
30
  static get style() { return curaIconCss; }
28
31
  }, [1, "cura-icon", {
@@ -153,6 +153,7 @@ class CuraThemeModule {
153
153
 
154
154
  class CuraAPI {
155
155
  constructor(config) {
156
+ this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
156
157
  const themeModule = new CuraThemeModule();
157
158
  this.theme = {
158
159
  load: function (themeTag) { themeModule.load(themeTag); },
@@ -1 +1 @@
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))));
1
+ import{p as e,b as o}from"./p-54be87f7.js";import{g as c}from"./p-0e08324a.js";(()=>{const o=import.meta.url,c={};return""!==o&&(c.resourcesUrl=new URL(".",o).href),e(c)})().then((e=>(c(),o([["p-d4559ca3",[[1,"dummy-component"]]],["p-c0121c44",[[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-18aa0f50.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
118
+ var url = new URL('./p-cf0d42ef.system.js', new URL(resourcesUrl, window.location.origin !== 'null' ? window.location.origin : undefined));
119
119
  System.import(url.href);
120
120
  };
121
121
 
@@ -1 +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
+ 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 i=Object.assign({},JSON.parse(JSON.stringify(t.fromPreset&&t.fromPreset in e?e[t.fromPreset]:e.default)));this.mergeObject(t.definitions,i),e[s]=i,this.load(s)}}}class i{constructor(t){this.localAssetsPath=t&&t.localAssetsPath?t.localAssetsPath:"/assets";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 o=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{o as g}
@@ -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=function(e,t){if(t===void 0){t=""}{return function(){return}}};var s=function(e,t){{return function(){return}}};var u="{visibility:hidden}.hydrated{visibility:inherit}";var c="http://www.w3.org/1999/xlink";var $={};var v="http://www.w3.org/2000/svg";var p="http://www.w3.org/1999/xhtml";var d=function(e){return e!=null};var h=function(e){e=typeof e;return e==="object"||e==="function"};var m=e("h",(function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var i=false;var l=false;var o=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!h(a)){a=String(a)}if(i&&l){o[o.length-1].$text$+=a}else{o.push(i?g(null,a):a)}l=i}}};f(r);if(t){{var s=t.className||t.class;if(s){t.class=typeof s!=="object"?s:Object.keys(s).filter((function(e){return s[e]})).join(" ")}}}var u=g(e,null);u.$attrs$=t;if(o.length>0){u.$children$=o}return u}));var g=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}return r};var y=e("H",{});var b=function(e){return e&&e.$tag$===y};var w=function(e,t){if(e!=null&&!h(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var _=function(e,t,r){var n=pe.ce(t,r);e.dispatchEvent(n);return n};var S=new WeakMap;var N=function(e,t,r){var n=ce.get(e);if(he&&r){n=n||new CSSStyleSheet;if(typeof n==="string"){n=t}else{n.replaceSync(t)}}else{n=t}ce.set(e,n)};var R=function(e,t,r,n){var a=j(t);var i=ce.get(a);e=e.nodeType===11?e:ve;if(i){if(typeof i==="string"){e=e.head||e;var l=S.get(e);var o=void 0;if(!l){S.set(e,l=new Set)}if(!l.has(a)){{{o=ve.createElement("style");o.innerHTML=i}e.insertBefore(o,e.querySelector("link"))}if(l){l.add(a)}}}else if(!e.adoptedStyleSheets.includes(i)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[i],false)}}return a};var x=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=f("attachStyles",t.$tagName$);var i=R(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=i;r.classList.add(i+"-h")}a()};var j=function(e,t){return"sc-"+e.$tagName$};var C=function(e,t,r,n,a,i){if(r!==n){var l=oe(e,t);var o=t.toLowerCase();if(t==="class"){var f=e.classList;var s=k(r);var u=k(n);f.remove.apply(f,s.filter((function(e){return e&&!u.includes(e)})));f.add.apply(f,u.filter((function(e){return e&&!s.includes(e)})))}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(oe($e,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(r){pe.rel(e,t,r,false)}if(n){pe.ael(e,t,n,false)}}else{var $=h(n);if((l||$&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var v=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!=v){e[t]=v}}else{e[t]=n}}catch(e){}}var p=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;p=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(p){e.removeAttributeNS(c,t)}else{e.removeAttribute(t)}}}else if((!l||i&4||a)&&!$){n=n===true?"":n;if(p){e.setAttributeNS(c,t,n)}else{e.setAttribute(t,n)}}}}};var E=/\s/;var k=function(e){return!e?[]:e.split(E)};var A=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||$;var l=t.$attrs$||$;{for(n in i){if(!(n in l)){C(a,n,i[n],undefined,r,t.$flags$)}}}for(n in l){C(a,n,i[n],l[n],r,t.$flags$)}};var M=function(e,t,r,n){var i=t.$children$[r];var o=0;var f;var s;if(i.$text$!==null){f=i.$elm$=ve.createTextNode(i.$text$)}else{if(!l){l=i.$tag$==="svg"}f=i.$elm$=ve.createElementNS(l?v:p,i.$tag$);if(l&&i.$tag$==="foreignObject"){l=false}{A(null,i,l)}if(d(a)&&f["s-si"]!==a){f.classList.add(f["s-si"]=a)}if(i.$children$){for(o=0;o<i.$children$.length;++o){s=M(e,i,o);if(s){f.appendChild(s)}}}{if(i.$tag$==="svg"){l=false}else if(f.tagName==="foreignObject"){l=true}}}return f};var O=function(e,t,r,n,a,l){var o=e;var f;if(o.shadowRoot&&o.tagName===i){o=o.shadowRoot}for(;a<=l;++a){if(n[a]){f=M(null,r,a);if(f){n[a].$elm$=f;o.insertBefore(f,t)}}}};var P=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;a.remove()}}};var T=function(e,t,r,n){var a=0;var i=0;var l=t.length-1;var o=t[0];var f=t[l];var s=n.length-1;var u=n[0];var c=n[s];var $;while(a<=l&&i<=s){if(o==null){o=t[++a]}else if(f==null){f=t[--l]}else if(u==null){u=n[++i]}else if(c==null){c=n[--s]}else if(L(o,u)){I(o,u);o=t[++a];u=n[++i]}else if(L(f,c)){I(f,c);f=t[--l];c=n[--s]}else if(L(o,c)){I(o,c);e.insertBefore(o.$elm$,f.$elm$.nextSibling);o=t[++a];c=n[--s]}else if(L(f,u)){I(f,u);e.insertBefore(f.$elm$,o.$elm$);f=t[--l];u=n[++i]}else{{$=M(t&&t[i],r,i);u=n[++i]}if($){{o.$elm$.parentNode.insertBefore($,o.$elm$)}}}}if(a>l){O(e,n[s+1]==null?null:n[s+1].$elm$,r,n,i,s)}else if(i>s){P(t,a,l)}};var L=function(e,t){if(e.$tag$===t.$tag$){return true}return false};var I=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var i=t.$tag$;var o=t.$text$;if(o===null){{l=i==="svg"?true:i==="foreignObject"?false:l}{if(i==="slot");else{A(e,t,l)}}if(n!==null&&a!==null){T(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}O(r,null,t,a,0,a.length-1)}else if(n!==null){P(n,0,n.length-1)}if(l&&i==="svg"){l=false}}else if(e.$text$!==o){r.data=o}};var B=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var l=e.$vnode$||g(null,null);var o=b(t)?t:m(null,null,t);i=r.tagName;if(n.$attrsToReflect$){o.$attrs$=o.$attrs$||{};n.$attrsToReflect$.map((function(e){var t=e[0],n=e[1];return o.$attrs$[n]=r[t]}))}o.$tag$=null;o.$flags$|=4;e.$vnode$=o;o.$elm$=l.$elm$=r.shadowRoot||r;{a=r["s-sc"]}I(l,o)};var z=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var U=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}z(e,e.$ancestorComponent$);var r=function(){return H(e,t)};return Se(r)};var H=function(e,t){var r=f("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;r();return D(a,(function(){return V(e,n,t)}))};var V=function(e,t,n){return __awaiter(r,void 0,void 0,(function(){var r,a,i,l,o,s;return __generator(this,(function(u){r=e.$hostElement$;a=f("update",e.$cmpMeta$.$tagName$);i=r["s-rc"];if(n){x(e)}l=f("render",e.$cmpMeta$.$tagName$);{q(e,t)}if(i){i.map((function(e){return e()}));r["s-rc"]=undefined}l();a();{o=r["s-p"];s=function(){return W(e)};if(o.length===0){s()}else{Promise.all(o).then(s);e.$flags$|=4;o.length=0}}return[2]}))}))};var q=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{B(e,t)}}}}catch(t){fe(t,e.$hostElement$)}return null};var W=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=f("postUpdate",t);var a=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{J(r)}n();{e.$onReadyResolve$(r);if(!a){F()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){_e((function(){return U(e,false)}))}e.$flags$&=~(4|512)}};var F=function(e){{J(ve.documentElement)}_e((function(){return _($e,"appload",{detail:{namespace:n}})}))};var G=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){fe(e)}}return undefined};var D=function(e,t){return e&&e.then?e.then(t):t()};var J=function(e){return e.classList.add("hydrated")};var K=function(e,t){return ae(e).$instanceValues$.get(t)};var Q=function(e,t,r,n){var a=ae(e);var i=a.$instanceValues$.get(t);var l=a.$flags$;var o=a.$lazyInstance$;r=w(r,n.$members$[t][0]);var f=Number.isNaN(i)&&Number.isNaN(r);var s=r!==i&&!f;if((!(l&8)||i===undefined)&&s){a.$instanceValues$.set(t,r);if(o){if((l&(2|16))===2){U(a,false)}}}};var X=function(e,t,r){if(t.$members$){var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){Object.defineProperty(a,n,{get:function(){return K(this,n)},set:function(e){Q(this,n,e,t)},configurable:true,enumerable:true})}}));if(r&1){var i=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;pe.jmp((function(){var t=i.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}else if(a.hasOwnProperty(t)&&typeof n[t]==="number"&&n[t]==r){return}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var r=e[0],n=e[1];var a=n[1]||r;i.set(a,r);if(n[0]&512){t.$attrsToReflect$.push([r,a])}return a}))}}return e};var Y=function(e,t,n,a,i){return __awaiter(r,void 0,void 0,(function(){var e,r,a,l,o,u,c;return __generator(this,(function($){switch($.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;i=ue(n);if(!i.then)return[3,2];e=s();return[4,i];case 1:i=$.sent();e();$.label=2;case 2:if(!i.isProxied){X(i,n,2);i.isProxied=true}r=f("createInstance",n.$tagName$);{t.$flags$|=8}try{new i(t)}catch(e){fe(e)}{t.$flags$&=~8}r();Z(t.$lazyInstance$);if(i.style){a=i.style;l=j(n);if(!ce.has(l)){o=f("registerStyles",n.$tagName$);N(l,a,!!(n.$flags$&1));o()}}$.label=3;case 3:u=t.$ancestorComponent$;c=function(){return U(t,true)};if(u&&u["s-rc"]){u["s-rc"].push(c)}else{c()}return[2]}}))}))};var Z=function(e){{G(e,"connectedCallback")}};var ee=function(e){if((pe.$flags$&1)===0){var t=ae(e);var r=t.$cmpMeta$;var n=f("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){z(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{Y(e,t,r)}}else{Z(t.$lazyInstance$)}n()}};var te=function(e){if((pe.$flags$&1)===0){ae(e)}};var re=e("b",(function(e,t){if(t===void 0){t={}}var r=f();var n=[];var a=t.exclude||[];var i=$e.customElements;var l=ve.head;var o=l.querySelector("meta[charset]");var s=ve.createElement("style");var c=[];var $;var v=true;Object.assign(pe,t);pe.$resourcesUrl$=new URL(t.resourcesUrl||"./",ve.baseURI).href;e.map((function(e){e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$attrsToReflect$=[]}var l=r.$tagName$;var o=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;le(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if($){clearTimeout($);$=null}if(v){c.push(this)}else{pe.jmp((function(){return ee(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;pe.jmp((function(){return te(e)}))};t.prototype.componentOnReady=function(){return ae(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(l)&&!i.get(l)){n.push(l);i.define(l,X(o,r,1))}}))}));{s.innerHTML=n+u;s.setAttribute("data-styles","");l.insertBefore(s,o?o.nextSibling:l.firstChild)}v=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{pe.jmp((function(){return $=setTimeout(F,30)}))}}r()}));var ne=new WeakMap;var ae=function(e){return ne.get(e)};var ie=e("r",(function(e,t){return ne.set(t.$lazyInstance$=e,t)}));var le=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}return ne.set(e,r)};var oe=function(e,t){return t in e};var fe=function(e,t){return(0,console.error)(e,t)};var se=new Map;var ue=function(e,r,n){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var l=se.get(i);if(l){return l[a]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{se.set(i,e)}return e[a]}),fe)};var ce=new Map;var $e=typeof window!=="undefined"?window:{};var ve=$e.document||{head:{}};var pe={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var de=e("p",(function(e){return Promise.resolve(e)}));var he=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var me=[];var ge=[];var ye=function(e,t){return function(r){e.push(r);if(!o){o=true;if(t&&pe.$flags$&4){_e(we)}else{pe.raf(we)}}}};var be=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){fe(e)}}e.length=0};var we=function(){be(me);{be(ge);if(o=me.length>0){pe.raf(we)}}};var _e=function(e){return de().then(e)};var Se=ye(ge,true)}}}));
@@ -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 s=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 a={default:t,maternidade:s};var r=function(){function e(){var e=this;this.prefix="--cura";this.setCssVar=function(t,s){var a=e.groupPath(s,t[0]);e.body.style.setProperty(a,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 a=Object.entries(t);for(var r=0,i=a;r<i.length;r++){var o=i[r];if(e.isObject(o[1])){e.mergeObject(o[1],s[o[0]])}else{s[o[0]]=o[1]}}};this.buildCssVars=function(t,s){var a=Object.entries(s);for(var r=0,i=a;r<i.length;r++){var o=i[r];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=a[e]?a[e]:a.default;this.buildCssVars(this.prefix,t)};e.prototype.setCustom=function(e){var t=e.name;if(t in a){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 a?a[e.fromPreset]:a.default;var r=Object.assign({},JSON.parse(JSON.stringify(s)));this.mergeObject(e.definitions,r);a[t]=r;this.load(t)}};return e}();var i=function(){function e(e){this.localAssetsPath=e&&e.localAssetsPath?e.localAssetsPath:"/assets";var t=new r;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 o(){var e=window.CuraInit;window.CuraAPI=e?new i(e):new i;var t=window.CuraAPI;window.dispatchEvent(new CustomEvent("CuraAPIReady",{detail:{api:t}}));if(e&&typeof e.onReady==="function")e.onReady(t)}var n=e("g",o)}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-25adccc6.system.js"],(function(e){"use strict";var i,s,o;return{setters:[function(e){i=e.r;s=e.h;o=e.H}],execute:function(){var t=":host{--stroke-color:#B7B7B7;--stroke-width:2px;--width:24px;--height:24px}:host svg.icon-128{--width:128px;--height:128px;--stroke-width:0.984375px}:host svg.icon-72{--width:72px;--height:72px;--stroke-width:1.1666666667px}:host svg.icon-64{--width:64px;--height:64px;--stroke-width:1.21875px}:host svg.icon-48{--width:48px;--height:48px;--stroke-width:1.375px}:host svg.icon-40{--width:40px;--height:40px;--stroke-width:1.5px}:host svg.icon-32{--width:32px;--height:32px;--stroke-width:1.6875px}:host svg.icon-24{--width:24px;--height:24px;--stroke-width:2px}:host svg.icon-20{--width:20px;--height:20px;--stroke-width:2.1px}:host svg.icon-16{--width:16px;--height:16px;--stroke-width:2.25px}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--width);height:var(--height);stroke-width:var(--stroke-width);fill:none}";var n=e("cura_icon",function(){function e(e){i(this,e);this.name="";this.color="neutral";this.iconset="default";this.disabled=false}e.prototype.connectedCallback=function(){this.assetsPath=window.CuraAPI.localAssetsPath};e.prototype.getClasses=function(){var e={};e["icon-".concat(this.color)]=true;if(this.size)e["icon-".concat(this.size)]=true;if(this.disabled)e["icon-disabled"]=true;return e};e.prototype.render=function(){return s(o,null,s("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},s("use",{xlinkHref:"".concat(this.assetsPath,"/icons/iconset-").concat(this.iconset,".svg#").concat(this.name)})))};return e}());n.style=t;var r=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"];var c=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";var a=e("cura_icons_view",function(){function e(e){var s=this;i(this,e);this.sizes=[16,20,24,32,40,48,64,72,128];this.selected="360";this.setSelected=function(e){s.selected=e}}e.prototype.render=function(){var e=this;return s(o,null,s("div",{class:"iconDetail"},s("h4",null,this.selected),s("div",{class:"iconSizes"},this.sizes.map((function(i){return s("div",{class:"size"},s("cura-icon",{name:e.selected,size:i}),s("span",null,i))}))),s("div",{class:"iconSizes invert"},this.sizes.map((function(i){return s("div",{class:"size"},s("cura-icon",{name:e.selected,size:i,color:"white"}),s("span",null,i))}))),s("div",{class:"iconSizes"},s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"primary"}),s("span",null,"Primary")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"secondary"}),s("span",null,"Secondary")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"accent"}),s("span",null,"Accent")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"info"}),s("span",null,"Info")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"warning"}),s("span",null,"Warning")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"error"}),s("span",null,"Error")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"success"}),s("span",null,"Success")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"neutral"}),s("span",null,"Neutral")),s("div",{class:"size"},s("cura-icon",{name:this.selected,color:"primary",disabled:true}),s("span",null,"Disabled")))),s("div",{class:"icons"},r.map((function(i){return s("div",{class:"icon",onClick:function(){return e.setSelected(i)}},s("cura-icon",{name:i}),s("span",null,i))}))))};return e}());a.style=c}}}));
@@ -0,0 +1,2 @@
1
+ let e,t,n=!1,l=!1;const s="http://www.w3.org/1999/xlink",o={},r=e=>"object"==(e=typeof e)||"function"===e,c=(e,t,...n)=>{let l=null,s=!1,o=!1;const c=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!r(l))&&(l+=""),s&&o?c[c.length-1].t+=l:c.push(s?i(null,l):l),o=s)};if(u(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const a=i(e,null);return a.l=t,c.length>0&&(a.o=c),a},i=(e,t)=>({i:0,u:e,t,h:null,o:null,l:null}),u={},a=new WeakMap,f=e=>"sc-"+e.$,h=(e,t,n,l,o,c)=>{if(n!==l){let i=U(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=w(n),o=w(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if(i||"o"!==t[0]||"n"!==t[1]){const a=r(l);if((i||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const s=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(s,t):e.removeAttribute(t)):(!i||4&c||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(s,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):U(_,u)?u.slice(2):u[2]+t.slice(3),n&&B.rel(e,t,n,!1),l&&B.ael(e,t,l,!1)}},$=/\s/,w=e=>e?e.split($):[],p=(e,t,n,l)=>{const s=11===t.h.nodeType&&t.h.host?t.h.host:t.h,r=e&&e.l||o,c=t.l||o;for(l in r)l in c||h(s,l,r[l],void 0,n,t.i);for(l in c)h(s,l,r[l],c[l],n,t.i)},y=(t,l,s)=>{const o=l.o[s];let r,c,i=0;if(null!==o.t)r=o.h=z.createTextNode(o.t);else{if(n||(n="svg"===o.u),r=o.h=z.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.u),n&&"foreignObject"===o.u&&(n=!1),p(null,o,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),o.o)for(i=0;i<o.o.length;++i)c=y(t,o,i),c&&r.appendChild(c);"svg"===o.u?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},d=(e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=y(null,l,o),c&&(s[o].h=c,i.insertBefore(c,n)))},m=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.h.remove()},b=(e,t)=>e.u===t.u,g=(e,t)=>{const l=t.h=e.h,s=e.o,o=t.o,r=t.u,c=t.t;null===c?(n="svg"===r||"foreignObject"!==r&&n,"slot"===r||p(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,c=t.length-1,i=t[0],u=t[c],a=l.length-1,f=l[0],h=l[a];for(;o<=c&&r<=a;)null==i?i=t[++o]:null==u?u=t[--c]:null==f?f=l[++r]:null==h?h=l[--a]:b(i,f)?(g(i,f),i=t[++o],f=l[++r]):b(u,h)?(g(u,h),u=t[--c],h=l[--a]):b(i,h)?(g(i,h),e.insertBefore(i.h,u.h.nextSibling),i=t[++o],h=l[--a]):b(u,f)?(g(u,f),e.insertBefore(u.h,i.h),u=t[--c],f=l[++r]):(s=y(t&&t[r],n,r),f=l[++r],s&&i.h.parentNode.insertBefore(s,i.h));o>c?d(e,null==l[a+1]?null:l[a+1].h,n,l,r,a):r>a&&m(t,o,c)})(l,s,t,o):null!==o?(null!==e.t&&(l.textContent=""),d(l,null,t,o,0,o.length-1)):null!==s&&m(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.t!==c&&(l.data=c)},v=(e,t)=>{t&&!e.p&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.p=t)))},S=(e,t)=>{if(e.i|=16,!(4&e.i))return v(e,e.m),Z((()=>j(e,t)));e.i|=512},j=(e,t)=>{const n=e.g;return x(void 0,(()=>k(e,n,t)))},k=async(e,t,n)=>{const l=e.v,s=l["s-rc"];n&&(e=>{const t=e.S,n=e.v,l=t.i,s=((e,t)=>{let n=f(t);const l=V.get(n);if(e=11===e.nodeType?e:z,l)if("string"==typeof l){let t,s=a.get(e=e.head||e);s||a.set(e,s=new Set),s.has(n)||(t=z.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);O(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>M(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},O=(n,l)=>{try{l=l.render(),n.i&=-17,n.i|=2,((n,l)=>{const s=n.v,o=n.S,r=n.j||i(null,null),a=(e=>e&&e.u===u)(l)?l:c(null,null,l);t=s.tagName,o.k&&(a.l=a.l||{},o.k.map((([e,t])=>a.l[t]=s[e]))),a.u=null,a.i|=4,n.j=a,a.h=r.h=s.shadowRoot||s,e=s["s-sc"],g(r,a)})(n,l)}catch(e){W(e,n.v)}return null},M=e=>{const t=e.v,n=e.m;64&e.i||(e.i|=64,P(t),e.O(t),n||C()),e.p&&(e.p(),e.p=void 0),512&e.i&&Y((()=>S(e,!1))),e.i&=-517},C=()=>{P(z.documentElement),Y((()=>(e=>{const t=B.ce("appload",{detail:{namespace:"cura"}});return e.dispatchEvent(t),t})(_)))},x=(e,t)=>e&&e.then?e.then(t):t(),P=e=>e.classList.add("hydrated"),E=(e,t,n)=>{if(t.M){const l=Object.entries(t.M),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>H(this).C.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=H(e),o=s.C.get(t),c=s.i,i=s.g;n=((e,t)=>null==e||r(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.M[t][0]),8&c&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.C.set(t,n),i&&2==(18&c)&&S(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){B.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.k.push([e,s]),s}))}}return e},N=e=>{((e,t)=>{if(e&&e[t])try{e[t](void 0)}catch(e){W(e)}})(e,"connectedCallback")},T=(e,t={})=>{const n=[],l=t.exclude||[],s=_.customElements,o=z.head,r=o.querySelector("meta[charset]"),c=z.createElement("style"),i=[];let u,a=!0;Object.assign(B,t),B.P=new URL(t.resourcesUrl||"./",z.baseURI).href,e.map((e=>{e[1].map((t=>{const o={i:t[0],$:t[1],M:t[2],N:t[3]};o.M=t[2],o.k=[];const r=o.$,c=class extends HTMLElement{constructor(e){super(e),R(e=this,o),1&o.i&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),a?i.push(this):B.jmp((()=>(e=>{if(0==(1&B.i)){const t=H(e),n=t.S,l=()=>{};if(1&t.i)N(t.g);else{t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){v(t,t.m=n);break}}n.M&&Object.entries(n.M).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.i)){{if(t.i|=32,(s=F(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(E(s,n,2),s.isProxied=!0);const e=()=>{};t.i|=8;try{new s(t)}catch(e){W(e)}t.i&=-9,e(),N(t.g)}if(s.style){let e=s.style;const t=f(n);if(!V.has(t)){const l=()=>{};((e,t,n)=>{let l=V.get(e);G&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,V.set(e,l)})(t,e,!!(1&n.i)),l()}}}const o=t.m,r=()=>S(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){B.jmp((()=>{}))}componentOnReady(){return H(this).T}};o.A=e[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,E(c,o,1)))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),a=!1,i.length?i.map((e=>e.connectedCallback())):B.jmp((()=>u=setTimeout(C,30)))},A=new WeakMap,H=e=>A.get(e),L=(e,t)=>A.set(t.g=e,t),R=(e,t)=>{const n={i:0,v:e,S:t,C:new Map};return n.T=new Promise((e=>n.O=e)),e["s-p"]=[],e["s-rc"]=[],A.set(e,n)},U=(e,t)=>t in e,W=(e,t)=>(0,console.error)(e,t),q=new Map,F=e=>{const t=e.$.replace(/-/g,"_"),n=e.A,l=q.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(q.set(n,e),e[t])),W)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},V=new Map,_="undefined"!=typeof window?window:{},z=_.document||{head:{}},B={i:0,P:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},D=e=>Promise.resolve(e),G=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),I=[],J=[],K=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&B.i?Y(X):B.raf(X))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){W(e)}e.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&B.raf(X)},Y=e=>D().then(e),Z=K(J,!0);export{u as H,T as b,c as h,D as p,L as r}
@@ -0,0 +1 @@
1
+ import{r as i,h as s,H as o}from"./p-54be87f7.js";const e=class{constructor(s){i(this,s),this.name="",this.color="neutral",this.iconset="default",this.disabled=!1}connectedCallback(){this.assetsPath=window.CuraAPI.localAssetsPath}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(o,null,s("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},s("use",{xlinkHref:`${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}`})))}};e.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 r=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"],t=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(o,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"},r.map((i=>s("div",{class:"icon",onClick:()=>this.setSelected(i)},s("cura-icon",{name:i}),s("span",null,i))))))}};t.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{e as cura_icon,t as cura_icons_view}
@@ -0,0 +1 @@
1
+ System.register(["./p-25adccc6.system.js","./p-26939de0.system.js"],(function(e,t){"use strict";var n,s,c;return{setters:[function(e){n=e.p;s=e.b},function(e){c=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){c();return s([["p-cfe07efc.system",[[1,"dummy-component"]]],["p-29a8ae0b.system",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],e)}))}}}));
@@ -1 +1 @@
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}}}));
1
+ System.register(["./p-25adccc6.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h;r=t.H}],execute:function(){var u=":host{display:block}";var s=t("dummy_component",function(){function t(t){n(this,t)}t.prototype.render=function(){return e(r,null,e("h1",null,e("slot",null)))};return t}());s.style=u}}}));
@@ -1 +1 @@
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}
1
+ import{r as s,h as o,H as l}from"./p-54be87f7.js";const r=class{constructor(o){s(this,o)}render(){return o(l,null,o("h1",null,o("slot",null)))}};r.style=":host{display:block}";export{r as dummy_component}
@@ -0,0 +1,3 @@
1
+
2
+ module.exports = require('../../cjs/loader.cjs.js');
3
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -0,0 +1,3 @@
1
+
2
+ module.exports = require('../../cjs/loader.cjs.js');
3
+ module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -0,0 +1,12 @@
1
+ export * from '../../types/components';
2
+ export interface CustomElementsDefineOptions {
3
+ exclude?: string[];
4
+ resourcesUrl?: string;
5
+ syncQueue?: boolean;
6
+ jmp?: (c: Function) => any;
7
+ raf?: (c: FrameRequestCallback) => number;
8
+ ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
9
+ rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
10
+ }
11
+ export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
12
+ export declare function applyPolyfills(): Promise<void>;
@@ -0,0 +1,3 @@
1
+
2
+ export * from '../../esm/polyfills/index.js';
3
+ export * from '../../esm/loader.js';
@@ -0,0 +1,4 @@
1
+
2
+ (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
3
+ export * from '../../esm/polyfills/index.js';
4
+ export * from '../../esm-es5/loader.js';
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "cura-loader",
3
+ "private": true,
4
+ "typings": "./index.d.ts",
5
+ "module": "./index.js",
6
+ "main": "./index.cjs.js",
7
+ "jsnext:main": "./index.es2017.js",
8
+ "es2015": "./index.es2017.js",
9
+ "es2017": "./index.es2017.js",
10
+ "unpkg": "./cdn.js"
11
+ }
@@ -148,6 +148,7 @@ class CuraThemeModule {
148
148
 
149
149
  class CuraAPI {
150
150
  constructor(config) {
151
+ this.localAssetsPath = config && config.localAssetsPath ? config.localAssetsPath : `/assets`;
151
152
  const themeModule = new CuraThemeModule();
152
153
  this.theme = {
153
154
  load: function (themeTag) { themeModule.load(themeTag); },
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getAssetPath, H as Host } from './index-d01d7976.js';
1
+ import { r as registerInstance, h, H as Host } from './index-70d7a4f9.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
 
@@ -10,6 +10,9 @@ const CuraIcon = class {
10
10
  this.iconset = 'default';
11
11
  this.disabled = false;
12
12
  }
13
+ connectedCallback() {
14
+ this.assetsPath = window.CuraAPI.localAssetsPath;
15
+ }
13
16
  getClasses() {
14
17
  const classes = {};
15
18
  classes[`icon-${this.color}`] = true;
@@ -20,7 +23,7 @@ const CuraIcon = class {
20
23
  return classes;
21
24
  }
22
25
  render() {
23
- 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: `${getAssetPath(`../assets/icons/iconset-${this.iconset}.svg`)}#${this.name}` }))));
26
+ return (h(Host, null, h("svg", { version: "1.1", viewBox: "0 0 24 24", preserveAspectRatio: "xMidYMid meet", xmlns: "http://www.w3.org/2000/svg", class: this.getClasses() }, h("use", { xlinkHref: `${this.assetsPath}/icons/iconset-${this.iconset}.svg#${this.name}` }))));
24
27
  }
25
28
  };
26
29
  CuraIcon.style = curaIconCss;
package/dist/esm/cura.js CHANGED
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-d01d7976.js';
2
- import { g as globalScripts } from './app-globals-892c3121.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-70d7a4f9.js';
2
+ import { g as globalScripts } from './app-globals-5c6eb474.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-d01d7976.js';
1
+ import { r as registerInstance, h, H as Host } from './index-70d7a4f9.js';
2
2
 
3
3
  const dummyComponentCss = ":host{display:block}";
4
4
 
@@ -12,10 +12,6 @@ let scopeId;
12
12
  let hostTagName;
13
13
  let isSvgMode = false;
14
14
  let queuePending = false;
15
- const getAssetPath = (path) => {
16
- const assetUrl = new URL(path, plt.$resourcesUrl$);
17
- return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
18
- };
19
15
  const createTime = (fnName, tagName = '') => {
20
16
  {
21
17
  return () => {
@@ -884,6 +880,17 @@ const appDidLoad = (who) => {
884
880
  }
885
881
  nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
886
882
  };
883
+ const safeCall = (instance, method, arg) => {
884
+ if (instance && instance[method]) {
885
+ try {
886
+ return instance[method](arg);
887
+ }
888
+ catch (e) {
889
+ consoleError(e);
890
+ }
891
+ }
892
+ return undefined;
893
+ };
887
894
  const then = (promise, thenFn) => {
888
895
  return promise && promise.then ? promise.then(thenFn) : thenFn();
889
896
  };
@@ -1058,6 +1065,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1058
1065
  hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1059
1066
  }
1060
1067
  endNewInstance();
1068
+ fireConnectedCallback(hostRef.$lazyInstance$);
1061
1069
  }
1062
1070
  if (Cstr.style) {
1063
1071
  // this component has styles but we haven't registered them yet
@@ -1086,6 +1094,11 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
1086
1094
  schedule();
1087
1095
  }
1088
1096
  };
1097
+ const fireConnectedCallback = (instance) => {
1098
+ {
1099
+ safeCall(instance, 'connectedCallback');
1100
+ }
1101
+ };
1089
1102
  const connectedCallback = (elm) => {
1090
1103
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1091
1104
  const hostRef = getHostRef(elm);
@@ -1124,6 +1137,10 @@ const connectedCallback = (elm) => {
1124
1137
  initializeComponent(elm, hostRef, cmpMeta);
1125
1138
  }
1126
1139
  }
1140
+ else {
1141
+ // fire off connectedCallback() on component instance
1142
+ fireConnectedCallback(hostRef.$lazyInstance$);
1143
+ }
1127
1144
  endConnected();
1128
1145
  }
1129
1146
  };
@@ -1330,4 +1347,4 @@ const flush = () => {
1330
1347
  const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1331
1348
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1332
1349
 
1333
- export { Host as H, bootstrapLazy as b, getAssetPath as g, h, promiseResolve as p, registerInstance as r };
1350
+ export { Host as H, bootstrapLazy as b, h, promiseResolve as p, registerInstance as r };
@@ -1,5 +1,5 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-d01d7976.js';
2
- import { g as globalScripts } from './app-globals-892c3121.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-70d7a4f9.js';
2
+ import { g as globalScripts } from './app-globals-5c6eb474.js';
3
3
 
4
4
  /*
5
5
  Stencil Client Patch Esm v2.18.1 | MIT Licensed | https://stenciljs.com
@@ -1 +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
+ 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 a=e.groupPath(s,t[0]);e.body.style.setProperty(a,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 a=Object.entries(t);for(var r=0,i=a;r<i.length;r++){var o=i[r];if(e.isObject(o[1])){e.mergeObject(o[1],s[o[0]])}else{s[o[0]]=o[1]}}};this.buildCssVars=function(t,s){var a=Object.entries(s);for(var r=0,i=a;r<i.length;r++){var o=i[r];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 a=Object.assign({},JSON.parse(JSON.stringify(s)));this.mergeObject(e.definitions,a);ThemePresets[t]=a;this.load(t)}};return e}();var CuraAPI=function(){function e(e){this.localAssetsPath=e&&e.localAssetsPath?e.localAssetsPath:"/assets";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-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
+ import{r as registerInstance,h,H as Host}from"./index-70d7a4f9.js";var curaIconCss=":host{--stroke-color:#B7B7B7;--stroke-width:2px;--width:24px;--height:24px}:host svg.icon-128{--width:128px;--height:128px;--stroke-width:0.984375px}:host svg.icon-72{--width:72px;--height:72px;--stroke-width:1.1666666667px}:host svg.icon-64{--width:64px;--height:64px;--stroke-width:1.21875px}:host svg.icon-48{--width:48px;--height:48px;--stroke-width:1.375px}:host svg.icon-40{--width:40px;--height:40px;--stroke-width:1.5px}:host svg.icon-32{--width:32px;--height:32px;--stroke-width:1.6875px}:host svg.icon-24{--width:24px;--height:24px;--stroke-width:2px}:host svg.icon-20{--width:20px;--height:20px;--stroke-width:2.1px}:host svg.icon-16{--width:16px;--height:16px;--stroke-width:2.25px}:host svg.icon-neutral{--stroke-color:#B7B7B7}:host svg.icon-primary{--stroke-color:var(--cura-color-primary-base, #004186)}:host svg.icon-secondary{--stroke-color:var(--cura-color-secondary-base, #AA8E0B)}:host svg.icon-accent{--stroke-color:var(--cura-color-accent-base, #DF8D2C)}:host svg.icon-success{--stroke-color:#5FD290}:host svg.icon-info{--stroke-color:#6EA8FF}:host svg.icon-error{--stroke-color:#EB5757}:host svg.icon-warning{--stroke-color:#FFCF3C}:host svg.icon-white{--stroke-color:#F6F6F6}:host svg.icon-black{--stroke-color:#262626}:host svg.icon-disabled{--stroke-color:#D4D4D4}:host svg{display:inline-block;stroke:var(--stroke-color);width:var(--width);height:var(--height);stroke-width:var(--stroke-width);fill:none}";var CuraIcon=function(){function e(e){registerInstance(this,e);this.name="";this.color="neutral";this.iconset="default";this.disabled=false}e.prototype.connectedCallback=function(){this.assetsPath=window.CuraAPI.localAssetsPath};e.prototype.getClasses=function(){var e={};e["icon-".concat(this.color)]=true;if(this.size)e["icon-".concat(this.size)]=true;if(this.disabled)e["icon-disabled"]=true;return e};e.prototype.render=function(){return h(Host,null,h("svg",{version:"1.1",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",class:this.getClasses()},h("use",{xlinkHref:"".concat(this.assetsPath,"/icons/iconset-").concat(this.iconset,".svg#").concat(this.name)})))};return e}();CuraIcon.style=curaIconCss;var iconsetdefaulticons=["360","accessibility","alertCircle","alertTriangle","arrowDown","arrowDownCircle","arrowLeft","arrowLeftCircle","arrowRight","arrowRightCircle","arrowUp","arrowUpCircle","attach","avatarF","avatarM","biometry","bloodGroup","calendar","cam","camOff","central","chatCircle","check","checkBadge","checkCircle","checkDouble","clock","close","closeCircle","collapse","config","delete","desktop","deslike","download","duplicate","edit","exam","expand","fileBmp","fileJpg","filePdf","filePng","fileUpload","fileXls","filter","fullscreen","gallery","geotag","hate","healthPlan","height","height2","home","horizontalList","imageUp","info2","infoCircle","key","language","language2","languageEN","languagePT","like","link","linkExternal","list","login","logout","love","mail","mail2","medical","menuHamburguer","menuKebab","menuMeatballs","mic","micOff","minus","minusCircle","minusSquare","mobile","neutral","news","notification","order","partner","phone","play","plus","plusCircle","plusSquare","print","profile","profile2","pulldownG","pulldownP","pullupG","pullupP","questionCircle","questionSquare","range","reload","schedule","search","secure","share","share2","sound","soundOff","subItem","target","team","unLink","unSecure","upload","verticalList","viewFalse","viewTrue","weight","wifi","zoomIn","zoomOut"];var curaIconsViewCss=":host{display:block;padding:24px;font-family:var(--cura-font-family-body)}.iconDetail{display:block}.iconSizes{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.iconSizes .size{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;margin-right:9px;padding:8px}.iconSizes .size:last-child{margin-right:0}.iconSizes .size span{font-size:10px}.iconSizes.invert{margin-top:12px}.iconSizes.invert .size{background-color:#262626;color:#F6F6F6;border-radius:3px}.icons{margin-top:28px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;position:relative}.icons .icon{position:relative;padding:4px;cursor:pointer;opacity:0.6;-webkit-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.icons .icon span{font-size:12px;padding:6px;-webkit-box-sizing:border-box;box-sizing:border-box;background:#000;color:#FFF;border-radius:2px;position:absolute;top:-2px;left:50%;-webkit-transform:translateX(-50%) translateY(-100%);transform:translateX(-50%) translateY(-100%);display:none}.icons .icon:hover{opacity:1}.icons .icon:hover span{display:block}";var CuraIconsView=function(){function e(e){var i=this;registerInstance(this,e);this.sizes=[16,20,24,32,40,48,64,72,128];this.selected="360";this.setSelected=function(e){i.selected=e}}e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"iconDetail"},h("h4",null,this.selected),h("div",{class:"iconSizes"},this.sizes.map((function(i){return h("div",{class:"size"},h("cura-icon",{name:e.selected,size:i}),h("span",null,i))}))),h("div",{class:"iconSizes invert"},this.sizes.map((function(i){return h("div",{class:"size"},h("cura-icon",{name:e.selected,size:i,color:"white"}),h("span",null,i))}))),h("div",{class:"iconSizes"},h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"primary"}),h("span",null,"Primary")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"secondary"}),h("span",null,"Secondary")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"accent"}),h("span",null,"Accent")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"info"}),h("span",null,"Info")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"warning"}),h("span",null,"Warning")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"error"}),h("span",null,"Error")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"success"}),h("span",null,"Success")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"neutral"}),h("span",null,"Neutral")),h("div",{class:"size"},h("cura-icon",{name:this.selected,color:"primary",disabled:true}),h("span",null,"Disabled")))),h("div",{class:"icons"},iconsetdefaulticons.map((function(i){return h("div",{class:"icon",onClick:function(){return e.setSelected(i)}},h("cura-icon",{name:i}),h("span",null,i))}))))};return e}();CuraIconsView.style=curaIconsViewCss;export{CuraIcon as cura_icon,CuraIconsView as cura_icons_view};
@@ -1 +1 @@
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
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-70d7a4f9.js";import{g as globalScripts}from"./app-globals-5c6eb474.js";var patchBrowser=function(){var o=import.meta.url;var r={};if(o!==""){r.resourcesUrl=new URL(".",o).href}return promiseResolve(r)};patchBrowser().then((function(o){globalScripts();return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],o)}));
@@ -1 +1 @@
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};
1
+ import{r as registerInstance,h,H as Host}from"./index-70d7a4f9.js";var dummyComponentCss=":host{display:block}";var DummyComponent=function(){function n(n){registerInstance(this,n)}n.prototype.render=function(){return h(Host,null,h("h1",null,h("slot",null)))};return n}();DummyComponent.style=dummyComponentCss;export{DummyComponent as dummy_component};
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function i(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?r(e.value):a(e.value).then(s,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var NAMESPACE="cura";var scopeId;var hostTagName;var isSvgMode=false;var queuePending=false;var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var XLINK_NS="http://www.w3.org/1999/xlink";var EMPTY_OBJ={};var SVG_NS="http://www.w3.org/2000/svg";var HTML_NS="http://www.w3.org/1999/xhtml";var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var o=false;var s=false;var i=[];var l=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){l(a)}else if(a!=null&&typeof a!=="boolean"){if(o=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(o&&s){i[i.length-1].$text$+=a}else{i.push(o?newVNode(null,a):a)}s=o}}};l(r);if(t){{var 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 safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var o=a.$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();fireConnectedCallback(t.$lazyInstance$);if(a.style){o=a.style;s=getScopeId(r);if(!styles.has(s)){i=createTime("registerStyles",r.$tagName$);registerStyle(s,o,!!(r.$flags$&1));i()}}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 fireConnectedCallback=function(e){{safeCall(e,"connectedCallback")}};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var r=t.$cmpMeta$;var n=createTime("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{fireConnectedCallback(t.$lazyInstance$)}n()}};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){getHostRef(e)}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r=createTime();var n=[];var a=t.exclude||[];var o=win.customElements;var s=doc.head;var i=s.querySelector("meta[charset]");var l=doc.createElement("style");var 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,h,promiseResolve as p,registerInstance as r};
@@ -1 +1 @@
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};
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-70d7a4f9.js";import{g as globalScripts}from"./app-globals-5c6eb474.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,o){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){globalScripts();return bootstrapLazy([["dummy-component",[[1,"dummy-component"]]],["cura-icon_2",[[1,"cura-icons-view",{selected:[32]}],[1,"cura-icon",{name:[513],color:[513],size:[520],iconset:[513],disabled:[516]}]]]],o)}))};export{defineCustomElements};
@@ -1,5 +1,6 @@
1
1
  import { CuraConfig, APIThemeFunctions } from './cura-api.type';
2
2
  export default class CuraAPI {
3
3
  theme: APIThemeFunctions;
4
+ localAssetsPath: string;
4
5
  constructor(config?: CuraConfig);
5
6
  }
@@ -35,7 +35,7 @@ export interface CuraCustomTheme {
35
35
  fromPreset?: string;
36
36
  }
37
37
  export interface CuraConfig {
38
- iconsPath?: string;
38
+ localAssetsPath?: string;
39
39
  theme?: string;
40
40
  customTheme?: CuraCustomTheme;
41
41
  onReady(api?: any): undefined;
@@ -4,6 +4,8 @@ export declare class CuraIcon {
4
4
  size: string | number;
5
5
  iconset: string;
6
6
  disabled: boolean;
7
+ assetsPath: string;
8
+ connectedCallback(): void;
7
9
  getClasses(): {};
8
10
  render(): any;
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rededor/cura",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
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": "cfd4536798f98beef0f1eba49b32acd24ae31ca2"
40
+ "gitHead": "54fecfe04012ce9cbe4b8363df1a502a9b6e7029"
41
41
  }
@@ -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,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 +0,0 @@
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)}))}}}));
@@ -1 +0,0 @@
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 +0,0 @@
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 +0,0 @@
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,2 +0,0 @@
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,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,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};