xv-webcomponents 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/index-ff2499dc.js +1165 -0
- package/dist/cjs/index-ff2499dc.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/xv-button-v2_2.cjs.entry.js +73 -0
- package/dist/cjs/xv-button-v2_2.cjs.entry.js.map +1 -0
- package/dist/cjs/xv-webcomponents.cjs.js +27 -0
- package/dist/cjs/xv-webcomponents.cjs.js.map +1 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/xv-button/xv-button.js +148 -0
- package/dist/collection/components/xv-button/xv-button.js.map +1 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js +30 -0
- package/dist/collection/components/xv-checkbox/xv-checkbox.js.map +1 -0
- package/dist/collection/index.js +11 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/utils.js +4 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.js +9 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-892a2cc1.js +958 -0
- package/dist/components/p-892a2cc1.js.map +1 -0
- package/dist/components/xv-button-v2.js +70 -0
- package/dist/components/xv-button-v2.js.map +1 -0
- package/dist/components/xv-checkbox-v2.js +49 -0
- package/dist/components/xv-checkbox-v2.js.map +1 -0
- package/dist/esm/index-48e3f7fe.js +1137 -0
- package/dist/esm/index-48e3f7fe.js.map +1 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/xv-button-v2_2.entry.js +68 -0
- package/dist/esm/xv-button-v2_2.entry.js.map +1 -0
- package/dist/esm/xv-webcomponents.js +22 -0
- package/dist/esm/xv-webcomponents.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/xv-webcomponents/index.esm.js +1 -16
- package/dist/xv-webcomponents/index.esm.js.map +1 -1
- package/dist/xv-webcomponents/p-690a0beb.js +3 -0
- package/dist/xv-webcomponents/p-690a0beb.js.map +1 -0
- package/dist/xv-webcomponents/p-757d39ae.entry.js +2 -0
- package/dist/xv-webcomponents/p-757d39ae.entry.js.map +1 -0
- package/dist/xv-webcomponents/p-e1255160.js +2 -0
- package/dist/xv-webcomponents/p-e1255160.js.map +1 -0
- package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -48
- package/dist/xv-webcomponents/xv-webcomponents.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/xv-webcomponents/index-00c283a0.js +0 -3922
- package/dist/xv-webcomponents/index-00c283a0.js.map +0 -1
- package/dist/xv-webcomponents/index-13275c1e.js +0 -3922
- package/dist/xv-webcomponents/index-13275c1e.js.map +0 -1
- package/dist/xv-webcomponents/index-5f0a9e2d.js +0 -3922
- package/dist/xv-webcomponents/index-5f0a9e2d.js.map +0 -1
- package/dist/xv-webcomponents/xv-button-v2.entry.js +0 -45
- package/dist/xv-webcomponents/xv-button-v2.entry.js.map +0 -1
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js +0 -28
- package/dist/xv-webcomponents/xv-checkbox-v2.entry.js.map +0 -1
- /package/dist/{xv-webcomponents → esm}/app-globals-0f993ce5.js +0 -0
- /package/dist/{xv-webcomponents → esm}/app-globals-0f993ce5.js.map +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xv-button-v2.xv-checkbox-v2.entry.js","mappings":";;MAOa,QAAQ;IAJrB;;;;QAQU,UAAK,GAAW,EAAE,CAAC;;QAGnB,YAAO,GAA8D,SAAS,CAAC;;QAG/E,SAAI,GAAiC,QAAQ,CAAC;;QAG9C,aAAQ,GAAY,KAAK,CAAC;;QAGzB,kBAAa,GAAW,eAAe,CAAC;;QAgBzC,gBAAW,GAAG;YACpB,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,OAAO;aACR;YACD,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;SACzB,CAAC;KAiBH;IAhCS,iBAAiB;;QACrB,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAoB,CAAC;QAC9E,IAAI,WAAW,EAAE;YACf,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YACnD,UAAU,CAAC,SAAS,GAAG,gBAAgB,WAAW,CAAC,IAAI,KAAK,CAAC;YAC7D,MAAA,IAAI,CAAC,EAAE,CAAC,UAAU,0CAAE,WAAW,CAAC,UAAU,CAAC,CAAC;SAC/C;KACF;IAUD,iBAAiB;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;KAC1B;IAED,MAAM;QACJ,QACE,+DACE,KAAK,EAAE,aAAa,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,IAAI,EAAE,EAC/C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,OAAO,EAAE,IAAI,CAAC,WAAW,IAExB,IAAI,CAAC,KAAK,CACJ,EACT;KACH;;;;MCtDU,UAAU;IAJvB;;QAMW,kBAAa,GAAW,eAAe,CAAC;KAwBlD;IAtBS,iBAAiB;;QACvB,MAAM,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,aAAa,CAAoB,CAAC;QAC9E,IAAI,WAAW,EAAE;YACf,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YACnD,UAAU,CAAC,SAAS,GAAG,gBAAgB,WAAW,CAAC,IAAI,KAAK,CAAC;YAC7D,MAAA,IAAI,CAAC,EAAE,CAAC,UAAU,0CAAE,WAAW,CAAC,UAAU,CAAC,CAAC;SAC7C;KACF;IAED,iBAAiB;QACf,IAAI,CAAC,iBAAiB,EAAE,CAAC;KAC1B;IAED,MAAM;QACJ,QACE,8DAAO,KAAK,EAAC,oBAAoB,IAC/B,8DAAO,IAAI,EAAC,UAAU,GAAG,EACzB,6DAAM,KAAK,EAAC,WAAW,GAAQ,EAC/B,8DAAa,CACP,EACR;KACH;;;;;;","names":[],"sources":["src/components/xv-button/xv-button.tsx","src/components/xv-checkbox/xv-checkbox.tsx"],"sourcesContent":["import { Component, Prop, State, Event, EventEmitter, h, Element } from '@stencil/core';\r\n\r\n\r\n@Component({\r\n tag: 'xv-button-v2',\r\n shadow: true,\r\n})\r\nexport class XvButton {\r\n @Element() el!: HTMLElement;\r\n\r\n /** Button label */\r\n @Prop() label: string = '';\r\n\r\n /** Variant */\r\n @Prop() variant: 'accent' | 'primary' | 'secondary' | 'tertiary' | 'ghost' = 'primary';\r\n\r\n /** Size */\r\n @Prop() size: 'small' | 'medium' | 'large' = 'medium';\r\n\r\n /** Disabled state */\r\n @Prop() disabled: boolean = false;\r\n\r\n /** Automatically detected brand */\r\n @State() detectedBrand: string = 'default-brand';\r\n\r\n /** Emits when the button is clicked */\r\n @Event() buttonClick!: EventEmitter<void>;\r\n\r\n\r\n private applyGlobalStyles() {\r\n const globalStyle = document.getElementById(\"brand-style\") as HTMLLinkElement;\r\n if (globalStyle) {\r\n const styleClone = document.createElement(\"style\");\r\n styleClone.innerHTML = `@import url('${globalStyle.href}');`;\r\n this.el.shadowRoot?.appendChild(styleClone);\r\n }\r\n }\r\n\r\n /** Handle click only if not disabled */\r\n private handleClick = () => {\r\n if (this.disabled) {\r\n return;\r\n }\r\n this.buttonClick.emit();\r\n };\r\n\r\n componentWillLoad() {\r\n this.applyGlobalStyles();\r\n }\r\n\r\n render() {\r\n return (\r\n <button\r\n class={`xv-button ${this.variant} ${this.size}`}\r\n disabled={this.disabled}\r\n onClick={this.handleClick}\r\n >\r\n {this.label}\r\n </button>\r\n );\r\n }\r\n}\r\n","import { Component, h, Element, State } from '@stencil/core';\n\n@Component({\n tag: 'xv-checkbox-v2',\n shadow: true, // ✅ Shadow DOM aktiviert\n})\nexport class XvCheckbox {\n @Element() el!: HTMLElement;\n @State() detectedBrand: string = 'default-brand';\n\n private applyGlobalStyles() {\n const globalStyle = document.getElementById(\"brand-style\") as HTMLLinkElement;\n if (globalStyle) {\n const styleClone = document.createElement(\"style\");\n styleClone.innerHTML = `@import url('${globalStyle.href}');`;\n this.el.shadowRoot?.appendChild(styleClone);\n }\n }\n\n componentWillLoad() {\n this.applyGlobalStyles();\n }\n\n render() {\n return (\n <label class=\"checkbox-container\">\n <input type=\"checkbox\" />\n <span class=\"checkmark\"></span>\n <slot></slot>\n </label>\n );\n }\n}\n"],"version":3}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-48e3f7fe.js';
|
|
2
|
+
export { s as setNonce } from './index-48e3f7fe.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
19
|
+
return bootstrapLazy([["xv-button-v2_2",[[1,"xv-button-v2",{"label":[1],"variant":[1],"size":[1],"disabled":[4],"detectedBrand":[32]}],[1,"xv-checkbox-v2",{"detectedBrand":[32]}]]]], options);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=xv-webcomponents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"xv-webcomponents.js","mappings":";;;;AAAA;AACA;AACA;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACrC,EAAE,MAAM,IAAI,GAAiE,EAAE,CAAC;AAChF,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AACtD,GAAG;AACH,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE,CAAC;AACxB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
function
|
|
2
|
-
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @fileoverview entry point for your component library
|
|
7
|
-
*
|
|
8
|
-
* This is the entry point for your component library. Use this file to export utilities,
|
|
9
|
-
* constants or data structure that accompany your components.
|
|
10
|
-
*
|
|
11
|
-
* DO NOT use this file to export your components. Instead, use the recommended approaches
|
|
12
|
-
* to consume components of this package as outlined in the `README.md`.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
export { format };
|
|
16
|
-
|
|
1
|
+
function n(n,r,t){return(n||"")+(r?` ${r}`:"")+(t?` ${t}`:"")}export{n as format};
|
|
17
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"
|
|
1
|
+
{"version":3,"names":["format","first","middle","last"],"sources":["src/utils/utils.ts"],"sourcesContent":["export function format(first?: string, middle?: string, last?: string): string {\r\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\r\n}\r\n"],"mappings":"SAAgBA,EAAOC,EAAgBC,EAAiBC,GACtD,OAAQF,GAAS,KAAOC,EAAS,IAAIA,IAAW,KAAOC,EAAO,IAAIA,IAAS,GAC7E,Q","ignoreList":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e="xv-webcomponents";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:false,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:false,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:false,propNumber:false,propString:true,reflect:false,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:false,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:false,vdomRender:true,vdomStyle:false,vdomText:true,vdomXlink:false,watchCallback:false};var s=Object.defineProperty;var n=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:true})};var r=new WeakMap;var l=e=>r.get(e);var o=(e,t)=>{r.set(t.t=e,t)};var i=(e,t)=>{const s={l:0,$hostElement$:e,o:t,i:new Map};{s.u=new Promise((e=>s.v=e));e["s-p"]=[];e["s-rc"]=[]}const n=r.set(e,s);return n};var a=(e,t)=>t in e;var f=(e,t)=>(0,console.error)(e,t);var c=new Map;var u=(e,t,s)=>{const n=e.h.replace(/-/g,"_");const r=e.p;if(!r){return void 0}const l=c.get(r);if(l){return l[n]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{c.set(r,e)}return e[n]}),(e=>{f(e,t.$hostElement$)}))};var d="{visibility:hidden}.hydrated{visibility:inherit}";var v="slot-fb{display:contents}slot-fb[hidden]{display:none}";var h=typeof window!=="undefined"?window:{};var p=h.document||{head:{}};var m={l:0,m:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)};var b=e=>Promise.resolve(e);var y=false;var w=[];var $=[];var g=(e,t)=>s=>{e.push(s);if(!y){y=true;if(t&&m.l&4){k(j)}else{m.raf(j)}}};var S=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){f(e)}}e.length=0};var j=()=>{S(w);{S($);if(y=w.length>0){m.raf(j)}}};var k=e=>b().then(e);var C=g($,true);var O=e=>{e=typeof e;return e==="object"||e==="function"};function x(e){var t,s,n;return(n=(s=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:s.getAttribute("content"))!=null?n:void 0}var T={};n(T,{err:()=>D,map:()=>E,ok:()=>L,unwrap:()=>M,unwrapErr:()=>R});var L=e=>({isOk:true,isErr:false,value:e});var D=e=>({isOk:false,isErr:true,value:e});function E(e,t){if(e.isOk){const s=t(e.value);if(s instanceof Promise){return s.then((e=>L(e)))}else{return L(s)}}if(e.isErr){const t=e.value;return D(t)}throw"should never get here"}var M=e=>{if(e.isOk){return e.value}else{throw e.value}};var R=e=>{if(e.isErr){return e.value}else{throw e.value}};var F=(e,t="")=>{{return()=>{}}};var P=(e,t)=>{{return()=>{}}};var N=(e,t,...s)=>{let n=null;let r=null;let l=false;let o=false;const i=[];const a=t=>{for(let s=0;s<t.length;s++){n=t[s];if(Array.isArray(n)){a(n)}else if(n!=null&&typeof n!=="boolean"){if(l=typeof e!=="function"&&!O(n)){n=String(n)}if(l&&o){i[i.length-1].$+=n}else{i.push(l?A(null,n):n)}o=l}}};a(s);if(t){if(t.key){r=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const f=A(e,null);f.S=t;if(i.length>0){f.j=i}{f.k=r}return f};var A=(e,t)=>{const s={l:0,C:e,$:t,O:null,j:null};{s.S=null}{s.k=null}return s};var U={};var W=e=>e&&e.C===U;var z=(e,t)=>{if(e!=null&&!O(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&1){return String(e)}return e}return e};var B=e=>l(e).$hostElement$;var H=(e,t,s)=>{const n=B(e);return{emit:e=>Q(n,t,{bubbles:!!(s&4),composed:!!(s&2),cancelable:!!(s&1),detail:e})}};var Q=(e,t,s)=>{const n=m.ce(t,s);e.dispatchEvent(n);return n};var V=new WeakMap;var q=(e,t,s,n,r,l,o)=>{if(s!==n){let o=a(e,t);let i=t.toLowerCase();if(t==="class"){const t=e.classList;const r=I(s);let l=I(n);{t.remove(...r.filter((e=>e&&!l.includes(e))));t.add(...l.filter((e=>e&&!r.includes(e))))}}else if(t==="key");else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(a(h,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(s||n){const r=t.endsWith(K);t=t.replace(X,"");if(s){m.rel(e,t,s,r)}if(n){m.ael(e,t,n,r)}}}else{const i=O(n);if((o||i&&n!==null)&&!r){try{if(!e.tagName.includes("-")){const r=n==null?"":n;if(t==="list"){o=false}else if(s==null||e[t]!=r){if(typeof e.__lookupSetter__(t)==="function"){e[t]=r}else{e.setAttribute(t,r)}}}else if(e[t]!==n){e[t]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!o||l&4||r)&&!i){n=n===true?"":n;{e.setAttribute(t,n)}}}}};var G=/\s/;var I=e=>{if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(G)};var K="Capture";var X=new RegExp(K+"$");var _=(e,t,s,n)=>{const r=t.O.nodeType===11&&t.O.host?t.O.host:t.O;const l=e&&e.S||{};const o=t.S||{};{for(const e of J(Object.keys(l))){if(!(e in o)){q(r,e,l[e],void 0,s,t.l)}}}for(const e of J(Object.keys(o))){q(r,e,l[e],o[e],s,t.l)}};function J(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var Y;var Z=false;var ee=false;var te=(e,s,n)=>{const r=s.j[n];let l=0;let o;let i;if(r.$!==null){o=r.O=p.createTextNode(r.$)}else{o=r.O=p.createElement(!Z&&t.slotRelocation&&r.l&2?"slot-fb":r.C);{_(null,r,ee)}if(r.j){for(l=0;l<r.j.length;++l){i=te(e,r,l);if(i){o.appendChild(i)}}}}o["s-hn"]=Y;return o};var se=(e,t,s,n,r,l)=>{let o=e;let i;if(o.shadowRoot&&o.tagName===Y){o=o.shadowRoot}for(;r<=l;++r){if(n[r]){i=te(null,s,r);if(i){n[r].O=i;ie(o,i,t)}}}};var ne=(e,t,s)=>{for(let n=t;n<=s;++n){const t=e[n];if(t){const e=t.O;if(e){e.remove()}}}};var re=(e,t,s,n,r=false)=>{let l=0;let o=0;let i=0;let a=0;let f=t.length-1;let c=t[0];let u=t[f];let d=n.length-1;let v=n[0];let h=n[d];let p;let m;while(l<=f&&o<=d){if(c==null){c=t[++l]}else if(u==null){u=t[--f]}else if(v==null){v=n[++o]}else if(h==null){h=n[--d]}else if(le(c,v,r)){oe(c,v,r);c=t[++l];v=n[++o]}else if(le(u,h,r)){oe(u,h,r);u=t[--f];h=n[--d]}else if(le(c,h,r)){oe(c,h,r);ie(e,c.O,u.O.nextSibling);c=t[++l];h=n[--d]}else if(le(u,v,r)){oe(u,v,r);ie(e,u.O,c.O);u=t[--f];v=n[++o]}else{i=-1;{for(a=l;a<=f;++a){if(t[a]&&t[a].k!==null&&t[a].k===v.k){i=a;break}}}if(i>=0){m=t[i];if(m.C!==v.C){p=te(t&&t[o],s,i)}else{oe(m,v,r);t[i]=void 0;p=m.O}v=n[++o]}else{p=te(t&&t[o],s,o);v=n[++o]}if(p){{ie(c.O.parentNode,p,c.O)}}}}if(l>f){se(e,n[d+1]==null?null:n[d+1].O,s,n,o,d)}else if(o>d){ne(t,l,f)}};var le=(e,t,s=false)=>{if(e.C===t.C){if(!s){return e.k===t.k}if(s&&!e.k&&t.k){e.k=t.k}return true}return false};var oe=(e,s,n=false)=>{const r=s.O=e.O;const l=e.j;const o=s.j;const i=s.C;const a=s.$;if(a===null){{if(i==="slot"&&!Z);else{_(e,s,ee)}}if(l!==null&&o!==null){re(r,l,s,o,n)}else if(o!==null){if(e.$!==null){r.textContent=""}se(r,null,s,o,0,o.length-1)}else if(!n&&t.updatable&&l!==null){ne(l,0,l.length-1)}}else if(e.$!==a){r.data=a}};var ie=(e,t,s)=>{{return e==null?void 0:e.insertBefore(t,s)}};var ae=(e,t,s=false)=>{const n=e.$hostElement$;const r=e.o;const l=e.T||A(null,null);const o=W(t)?t:N(null,null,t);Y=n.tagName;if(s&&o.S){for(const e of Object.keys(o.S)){if(n.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){o.S[e]=n[e]}}}o.C=null;o.l|=4;e.T=o;o.O=l.O=n.shadowRoot||n;Z=!!(r.l&1)&&!(r.l&128);oe(l,o,s)};var fe=(e,t)=>{if(t&&!e.L&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.L=()=>{t["s-p"].splice(s-1,1);n()})))}};var ce=(e,t)=>{{e.l|=16}if(e.l&4){e.l|=512;return}fe(e,e.D);const s=()=>ue(e,t);return C(s)};var ue=(e,t)=>{const s=e.$hostElement$;const n=F("scheduleUpdate",e.o.h);const r=e.t;if(!r){throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let l;if(t){{l=ye(r,"componentWillLoad",void 0,s)}}n();return de(l,(()=>he(e,r,t)))};var de=(e,t)=>ve(e)?e.then(t).catch((e=>{console.error(e);t()})):t();var ve=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var he=async(e,t,s)=>{var n;const r=e.$hostElement$;const l=F("update",e.o.h);const o=r["s-rc"];const i=F("render",e.o.h);{pe(e,t,r,s)}if(o){o.map((e=>e()));r["s-rc"]=void 0}i();l();{const t=(n=r["s-p"])!=null?n:[];const s=()=>me(e);if(t.length===0){s()}else{Promise.all(t).then(s);e.l|=4;t.length=0}}};var pe=(e,t,s,n)=>{try{t=t.render();{e.l&=~16}{e.l|=2}{{{ae(e,t,n)}}}}catch(t){f(t,e.$hostElement$)}return null};var me=e=>{const t=e.o.h;const s=e.$hostElement$;const n=F("postUpdate",t);const r=e.D;if(!(e.l&64)){e.l|=64;{we(s)}n();{e.v(s);if(!r){be()}}}else{n()}{if(e.L){e.L();e.L=void 0}if(e.l&512){k((()=>ce(e,false)))}e.l&=~(4|512)}};var be=t=>{k((()=>Q(h,"appload",{detail:{namespace:e}})))};var ye=(e,t,s,n)=>{if(e&&e[t]){try{return e[t](s)}catch(e){f(e,n)}}return void 0};var we=e=>{var s;return e.classList.add((s=t.hydratedSelectorName)!=null?s:"hydrated")};var $e=(e,t)=>l(e).i.get(t);var ge=(e,t,s,n)=>{const r=l(e);if(!r){throw new Error(`Couldn't find host element for "${n.h}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const o=r.i.get(t);const i=r.l;const a=r.t;s=z(s,n.M[t][0]);const f=Number.isNaN(o)&&Number.isNaN(s);const c=s!==o&&!f;if((!(i&8)||o===void 0)&&c){r.i.set(t,s);if(a){if((i&(2|16))===2){ce(r,false)}}}};var Se=(e,s,n)=>{var r,o;const i=e.prototype;if(s.M||t.watchCallback){const a=Object.entries((r=s.M)!=null?r:{});a.map((([e,[t]])=>{if(t&31||n&2&&t&32){const{get:r,set:o}=Object.getOwnPropertyDescriptor(i,e)||{};if(r)s.M[e][0]|=2048;if(o)s.M[e][0]|=4096;if(n&1||!r){Object.defineProperty(i,e,{get(){{if((s.M[e][0]&2048)===0){return $e(this,e)}const t=l(this);const n=t?t.t:i;if(!n)return;return n[e]}},configurable:true,enumerable:true})}Object.defineProperty(i,e,{set(r){const i=l(this);if(o){const n=t&32?this[e]:i.$hostElement$[e];if(typeof n==="undefined"&&i.i.get(e)){r=i.i.get(e)}else if(!i.i.get(e)&&n){i.i.set(e,n)}o.apply(this,[z(r,t)]);r=t&32?this[e]:i.$hostElement$[e];ge(this,e,r,s);return}{if((n&1)===0||(s.M[e][0]&4096)===0){ge(this,e,r,s);if(n&1&&!i.t){i.u.then((()=>{if(s.M[e][0]&4096&&i.t[e]!==i.i.get(e)){i.t[e]=r}}))}return}const l=()=>{const n=i.t[e];if(!i.i.get(e)&&n){i.i.set(e,n)}i.t[e]=z(r,t);ge(this,e,i.t[e],s)};if(i.t){l()}else{i.u.then((()=>l()))}}}})}}));if(n&1){const n=new Map;i.attributeChangedCallback=function(e,r,o){m.jmp((()=>{var a;const f=n.get(e);if(this.hasOwnProperty(f)&&t.lazyLoad){o=this[f];delete this[f]}else if(i.hasOwnProperty(f)&&typeof this[f]==="number"&&this[f]==o){return}else if(f==null){const t=l(this);const n=t==null?void 0:t.l;if(n&&!(n&8)&&n&128&&o!==r){const n=t.t;const l=(a=s.R)==null?void 0:a[e];l==null?void 0:l.forEach((t=>{if(n[t]!=null){n[t].call(n,o,r,e)}}))}return}const c=Object.getOwnPropertyDescriptor(i,f);o=o===null&&typeof this[f]==="boolean"?false:o;if(o!==this[f]&&(!c.get||!!c.set)){this[f]=o}}))};e.observedAttributes=Array.from(new Set([...Object.keys((o=s.R)!=null?o:{}),...a.filter((([e,t])=>t[0]&15)).map((([e,t])=>{const s=t[1]||e;n.set(s,e);return s}))]))}}return e};var je=async(e,t,s,n)=>{let r;if((t.l&32)===0){t.l|=32;const n=s.p;if(n){const n=u(s,t);if(n&&"then"in n){const e=P();r=await n;e()}else{r=n}if(!r){throw new Error(`Constructor for "${s.h}#${t.F}" was not found`)}if(!r.isProxied){Se(r,s,2);r.isProxied=true}const l=F("createInstance",s.h);{t.l|=8}try{new r(t)}catch(t){f(t,e)}{t.l&=~8}l()}else{r=e.constructor;const s=e.localName;customElements.whenDefined(s).then((()=>t.l|=128))}}const l=t.D;const o=()=>ce(t,true);if(l&&l["s-rc"]){l["s-rc"].push(o)}else{o()}};var ke=(e,t)=>{};var Ce=e=>{if((m.l&1)===0){const t=l(e);const s=t.o;const n=F("connectedCallback",s.h);if(!(t.l&1)){t.l|=1;{let s=e;while(s=s.parentNode||s.host){if(s["s-p"]){fe(t,t.D=s);break}}}if(s.M){Object.entries(s.M).map((([t,[s]])=>{if(s&31&&e.hasOwnProperty(t)){const s=e[t];delete e[t];e[t]=s}}))}{je(e,t,s)}}else{if(t==null?void 0:t.t);else if(t==null?void 0:t.u){t.u.then((()=>ke()))}}n()}};var Oe=(e,t)=>{};var xe=async e=>{if((m.l&1)===0){const t=l(e);if(t==null?void 0:t.t);else if(t==null?void 0:t.u){t.u.then((()=>Oe()))}}if(V.has(e)){V.delete(e)}if(e.shadowRoot&&V.has(e.shadowRoot)){V.delete(e.shadowRoot)}};var Te=(e,t={})=>{var s;const n=F();const r=[];const o=t.exclude||[];const a=h.customElements;const f=p.head;const c=f.querySelector("meta[charset]");const u=p.createElement("style");const b=[];let y;let w=true;Object.assign(m,t);m.m=new URL(t.resourcesUrl||"./",p.baseURI).href;let $=false;e.map((e=>{e[1].map((t=>{const s={l:t[0],h:t[1],M:t[2],P:t[3]};if(s.l&4){$=true}{s.M=t[2]}const n=s.h;const f=class extends HTMLElement{constructor(e){super(e);this.hasRegisteredEventListeners=false;e=this;i(e,s);if(s.l&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open"})}}else{if(e.shadowRoot.mode!=="open"){throw new Error(`Unable to re-use existing shadow root for ${s.h}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}}}}}connectedCallback(){l(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(y){clearTimeout(y);y=null}if(w){b.push(this)}else{m.jmp((()=>Ce(this)))}}disconnectedCallback(){m.jmp((()=>xe(this)));m.raf((()=>{var e;const t=l(this);const s=b.findIndex((e=>e===this));if(s>-1){b.splice(s,1)}if(((e=t==null?void 0:t.T)==null?void 0:e.O)instanceof Node&&!t.T.O.isConnected){delete t.T.O}}))}componentOnReady(){return l(this).u}};s.p=e[0];if(!o.includes(n)&&!a.get(n)){r.push(n);a.define(n,Se(f,s,1))}}))}));if(r.length>0){if($){u.textContent+=v}{u.textContent+=r.sort()+d}if(u.innerHTML.length){u.setAttribute("data-styles","");const e=(s=m.N)!=null?s:x(p);if(e!=null){u.setAttribute("nonce",e)}f.insertBefore(u,c?c.nextSibling:f.firstChild)}}w=false;if(b.length){b.map((e=>e.connectedCallback()))}else{{m.jmp((()=>y=setTimeout(be,30)))}}n()};var Le=e=>m.N=e;export{Te as b,H as c,B as g,N as h,b as p,o as r,Le as s};
|
|
3
|
+
//# sourceMappingURL=p-690a0beb.js.map
|