@telesign/boreal-web-components 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/components-build/bds-banner.d.ts +11 -0
- package/components-build/bds-banner.js +1 -0
- package/components-build/bds-typography.d.ts +11 -0
- package/components-build/bds-typography.js +1 -0
- package/components-build/index.d.ts +35 -0
- package/components-build/index.js +1 -0
- package/components-build/my-component.d.ts +11 -0
- package/components-build/my-component.js +1 -0
- package/components-build/p-B9wshZ_4.js +1 -0
- package/components-build/p-noyWJ11s.js +1 -0
- package/custom-elements.json +764 -0
- package/dist/boreal-web-components/boreal-web-components.css +1 -0
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -0
- package/dist/boreal-web-components/boreal-web-components.js +127 -0
- package/dist/boreal-web-components/css/boreal.css +1594 -0
- package/dist/boreal-web-components/css/global.css +682 -0
- package/dist/boreal-web-components/css/theme-connect.css +227 -0
- package/dist/boreal-web-components/css/theme-engage.css +227 -0
- package/dist/boreal-web-components/css/theme-protect.css +227 -0
- package/dist/boreal-web-components/css/theme-proximus.css +227 -0
- package/dist/boreal-web-components/index.esm.js +0 -0
- package/dist/boreal-web-components/p-412d037b.system.entry.js +1 -0
- package/dist/boreal-web-components/p-527a761b.entry.js +1 -0
- package/dist/boreal-web-components/p-5666a22a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-B-PpI2Xv.system.js +1 -0
- package/dist/boreal-web-components/p-B9wshZ_4.js +1 -0
- package/dist/boreal-web-components/p-BQdH0ijK.system.js +2 -0
- package/dist/boreal-web-components/p-BbPAtVJG.system.js +1 -0
- package/dist/boreal-web-components/p-CMd-Mv-5.system.js +1 -0
- package/dist/boreal-web-components/p-CaVEtaG3.system.js +1 -0
- package/dist/boreal-web-components/p-DQuL1Twl.js +1 -0
- package/dist/boreal-web-components/p-DgFiTd6X.js +2 -0
- package/dist/boreal-web-components/p-YWpyar7R.system.js +1 -0
- package/dist/boreal-web-components/p-b818618b.entry.js +1 -0
- package/dist/boreal-web-components/p-d596406b.entry.js +1 -0
- package/dist/boreal-web-components/p-e37e7dba.system.entry.js +1 -0
- package/dist/boreal-web-components/p-noyWJ11s.js +1 -0
- package/dist/boreal-web-components/scss/global/_fonts.scss +1 -0
- package/dist/boreal-web-components/scss/global/_index.scss +3 -0
- package/dist/boreal-web-components/scss/global/_reset.scss +50 -0
- package/dist/boreal-web-components/scss/global/_typography.scss +156 -0
- package/dist/boreal-web-components/scss/maps/_primitives.scss +461 -0
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +227 -0
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +227 -0
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +227 -0
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +227 -0
- package/dist/boreal-web-components/scss/variables/_primitives.scss +459 -0
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +225 -0
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +225 -0
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +225 -0
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +225 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/attributes-RPVEtBdj.js +90 -0
- package/dist/cjs/bds-banner.cjs.entry.js +130 -0
- package/dist/cjs/bds-typography.cjs.entry.js +167 -0
- package/dist/cjs/boreal-web-components.cjs.js +46 -0
- package/dist/cjs/index-CD9v53WJ.js +133 -0
- package/dist/cjs/index-Cdb66Tqj.js +2342 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/my-component.cjs.entry.js +29 -0
- package/dist/collection/collection-manifest.json +14 -0
- package/dist/collection/components/feedback/bds-banner/bds-banner.css +101 -0
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +266 -0
- package/dist/collection/components/feedback/bds-banner/types/IBanner.js +1 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +95 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +183 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +577 -0
- package/dist/collection/components/titles-text/bds-typography/types/ITypography.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/types/enum.js +23 -0
- package/dist/collection/components/titles-text/bds-typography/types/types.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +41 -0
- package/dist/collection/css/boreal.css +1594 -0
- package/dist/collection/css/global.css +682 -0
- package/dist/collection/css/theme-connect.css +227 -0
- package/dist/collection/css/theme-engage.css +227 -0
- package/dist/collection/css/theme-protect.css +227 -0
- package/dist/collection/css/theme-proximus.css +227 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/mixins/anchored.mixin.js +272 -0
- package/dist/collection/mixins/floating.mixin.js +181 -0
- package/dist/collection/mixins/form-associated.mixin.js +95 -0
- package/dist/collection/mixins/index.js +3 -0
- package/dist/collection/scss/global/_fonts.scss +1 -0
- package/dist/collection/scss/global/_index.scss +3 -0
- package/dist/collection/scss/global/_reset.scss +50 -0
- package/dist/collection/scss/global/_typography.scss +156 -0
- package/dist/collection/scss/maps/_primitives.scss +461 -0
- package/dist/collection/scss/maps/_theme-connect.scss +227 -0
- package/dist/collection/scss/maps/_theme-engage.scss +227 -0
- package/dist/collection/scss/maps/_theme-protect.scss +227 -0
- package/dist/collection/scss/maps/_theme-proximus.scss +227 -0
- package/dist/collection/scss/variables/_primitives.scss +459 -0
- package/dist/collection/scss/variables/_theme-connect.scss +225 -0
- package/dist/collection/scss/variables/_theme-engage.scss +225 -0
- package/dist/collection/scss/variables/_theme-protect.scss +225 -0
- package/dist/collection/scss/variables/_theme-proximus.scss +225 -0
- package/dist/collection/services/floating/interfaces/Floating.js +1 -0
- package/dist/collection/services/floating/interfaces/Positioning.js +1 -0
- package/dist/collection/services/floating/interfaces/Props.js +1 -0
- package/dist/collection/services/floating/positioning.service.js +71 -0
- package/dist/collection/services/floating/types/Arrow.js +1 -0
- package/dist/collection/services/logger/Logger.js +47 -0
- package/dist/collection/types/alignment.js +6 -0
- package/dist/collection/types/form.js +1 -0
- package/dist/collection/types/index.js +5 -0
- package/dist/collection/types/position.js +11 -0
- package/dist/collection/types/size.js +7 -0
- package/dist/collection/types/states.js +22 -0
- package/dist/collection/types/stylesMap.js +1 -0
- package/dist/collection/utils/a11y/attributes.js +80 -0
- package/dist/collection/utils/a11y/index.js +1 -0
- package/dist/collection/utils/constants/common/Events.js +10 -0
- package/dist/collection/utils/constants/common/Keys.js +16 -0
- package/dist/collection/utils/dom/elements.js +22 -0
- package/dist/collection/utils/dom/index.js +1 -0
- package/dist/collection/utils/form/index.js +1 -0
- package/dist/collection/utils/form/internals.js +79 -0
- package/dist/collection/utils/helpers/common/BaseAttributes.js +17 -0
- package/dist/collection/utils/index.js +3 -0
- package/dist/css/boreal.css +1594 -0
- package/dist/css/global.css +682 -0
- package/dist/css/theme-connect.css +227 -0
- package/dist/css/theme-engage.css +227 -0
- package/dist/css/theme-protect.css +227 -0
- package/dist/css/theme-proximus.css +227 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/attributes-B9wshZ_4.js +86 -0
- package/dist/esm/bds-banner.entry.js +128 -0
- package/dist/esm/bds-typography.entry.js +165 -0
- package/dist/esm/boreal-web-components.js +42 -0
- package/dist/esm/index-DgFiTd6X.js +2332 -0
- package/dist/esm/index-noyWJ11s.js +131 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/my-component.entry.js +27 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/app-globals-DQuL1Twl.js +1 -0
- package/dist/esm-es5/attributes-B9wshZ_4.js +1 -0
- package/dist/esm-es5/bds-banner.entry.js +1 -0
- package/dist/esm-es5/bds-typography.entry.js +1 -0
- package/dist/esm-es5/boreal-web-components.js +1 -0
- package/dist/esm-es5/index-DgFiTd6X.js +2 -0
- package/dist/esm-es5/index-noyWJ11s.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/my-component.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/scss/global/_fonts.scss +1 -0
- package/dist/scss/global/_index.scss +3 -0
- package/dist/scss/global/_reset.scss +50 -0
- package/dist/scss/global/_typography.scss +156 -0
- package/dist/scss/maps/_primitives.scss +461 -0
- package/dist/scss/maps/_theme-connect.scss +227 -0
- package/dist/scss/maps/_theme-engage.scss +227 -0
- package/dist/scss/maps/_theme-protect.scss +227 -0
- package/dist/scss/maps/_theme-proximus.scss +227 -0
- package/dist/scss/variables/_primitives.scss +459 -0
- package/dist/scss/variables/_theme-connect.scss +225 -0
- package/dist/scss/variables/_theme-engage.scss +225 -0
- package/dist/scss/variables/_theme-protect.scss +225 -0
- package/dist/scss/variables/_theme-proximus.scss +225 -0
- package/dist/types/components/feedback/bds-banner/bds-banner.d.ts +71 -0
- package/dist/types/components/feedback/bds-banner/types/IBanner.d.ts +10 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +99 -0
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +22 -0
- package/dist/types/components/titles-text/bds-typography/types/enum.d.ts +24 -0
- package/dist/types/components/titles-text/bds-typography/types/types.d.ts +4 -0
- package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +15 -0
- package/dist/types/components.d.ts +565 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/mixins/anchored.mixin.d.ts +228 -0
- package/dist/types/mixins/floating.mixin.d.ts +158 -0
- package/dist/types/mixins/form-associated.mixin.d.ts +127 -0
- package/dist/types/mixins/index.d.ts +4 -0
- package/dist/types/services/floating/interfaces/Floating.d.ts +38 -0
- package/dist/types/services/floating/interfaces/Positioning.d.ts +22 -0
- package/dist/types/services/floating/interfaces/Props.d.ts +35 -0
- package/dist/types/services/floating/positioning.service.d.ts +45 -0
- package/dist/types/services/floating/types/Arrow.d.ts +7 -0
- package/dist/types/services/logger/Logger.d.ts +50 -0
- package/dist/types/stencil-public-runtime.d.ts +1858 -0
- package/dist/types/types/alignment.d.ts +8 -0
- package/dist/types/types/form.d.ts +7 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/position.d.ts +13 -0
- package/dist/types/types/size.d.ts +9 -0
- package/dist/types/types/states.d.ts +26 -0
- package/dist/types/types/stylesMap.d.ts +2 -0
- package/dist/types/utils/a11y/attributes.d.ts +13 -0
- package/dist/types/utils/a11y/index.d.ts +2 -0
- package/dist/types/utils/constants/common/Events.d.ts +14 -0
- package/dist/types/utils/constants/common/Keys.d.ts +18 -0
- package/dist/types/utils/dom/elements.d.ts +12 -0
- package/dist/types/utils/dom/index.d.ts +2 -0
- package/dist/types/utils/form/index.d.ts +2 -0
- package/dist/types/utils/form/internals.d.ts +66 -0
- package/dist/types/utils/helpers/common/BaseAttributes.d.ts +16 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/loader/cdn.js +2 -0
- package/loader/index.cjs.js +2 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +2 -0
- package/loader/index.js +3 -0
- package/package.json +96 -0
- package/readme.md +111 -0
- package/scripts/copy-styles.js +18 -0
- package/scripts/postbuild.js +21 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var n,e=1,a=arguments.length;e<a;e++){n=arguments[e];for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))r[t]=n[t]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,n,e,a){function t(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,s){function i(r){try{b(a.next(r))}catch(r){s(r)}}function o(r){try{b(a["throw"](r))}catch(r){s(r)}}function b(r){r.done?e(r.value):t(r.value).then(i,o)}b((a=a.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,t,s,i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=o(0),i["throw"]=o(1),i["return"]=o(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(r){return function(n){return b([r,n])}}function b(o){if(a)throw new TypeError("Generator is already executing.");while(i&&(i=0,o[0]&&(e=0)),e)try{if(a=1,t&&(s=o[0]&2?t["return"]:o[0]?t["throw"]||((s=t["return"])&&s.call(t),0):t.next)&&!(s=s.call(t,o[1])).done)return s;if(t=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;t=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=n.call(r,e)}catch(r){o=[6,r];t=0}finally{a=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-DgFiTd6X.js";import{S as STATUS_VARIANT,i as inheritAriaAttributes}from"./attributes-B9wshZ_4.js";function createId(r){if(!r.idComponent)r.idComponent="bds-".concat(Math.random().toString(36).substr(2,9))}function getBaseAttributes(r){createId(r);return{id:r.idComponent}}var bdsBannerCss=function(){return".bds-banner{position:relative;display:-ms-flexbox;display:flex;border:var(--boreal-spacing-4xs) solid var(--boreal-stroke-info-base);border-radius:var(--boreal-radius-xs);border-left:0;font-family:var(--boreal-typography-font-family-primary);height:100%;-webkit-transition:all 0.3s ease-out;transition:all 0.3s ease-out}.bds-banner__vertical-line{width:var(--boreal-spacing-2xs);border-top-left-radius:var(--boreal-radius-xs);border-bottom-left-radius:var(--boreal-radius-xs);background-color:var(--boreal-stroke-info-base)}.bds-banner__container{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;width:100%;gap:var(--boreal-spacing-xs);padding:var(--boreal-spacing-s)}.bds-banner__content{width:100%}.bds-banner__title{font-weight:var(--boreal-typography-font-weight-semibold);font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md)}.bds-banner__body{padding-top:var(--boreal-spacing-2xs);font-size:var(--boreal-typography-font-size-sm);line-height:var(--boreal-typography-line-height-sm)}.bds-banner__actions{padding-top:var(--boreal-spacing-s);min-height:0px}.bds-banner__actions:empty{display:none}.bds-banner__status-icon{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);margin-top:var(--boreal-spacing-3xs)}.bds-banner__close-icon{background:none;border:none;-ms-flex-item-align:start;align-self:start;font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-neutral-base);cursor:pointer}.bds-banner--info{border-color:var(--boreal-stroke-info-base);background-color:var(--boreal-ui-info-lighter)}.bds-banner--info .bds-banner__vertical-line{background-color:var(--boreal-stroke-info-base)}.bds-banner--info .bds-banner__status-icon{color:var(--boreal-stroke-info-base)}.bds-banner--success{border-color:var(--boreal-stroke-success-base);background-color:var(--boreal-ui-success-lighter)}.bds-banner--success .bds-banner__vertical-line{background-color:var(--boreal-stroke-success-base)}.bds-banner--success .bds-banner__status-icon{color:var(--boreal-stroke-success-base)}.bds-banner--warning{border-color:var(--boreal-stroke-warning);background-color:var(--boreal-ui-warning-lighter)}.bds-banner--warning .bds-banner__vertical-line{background-color:var(--boreal-stroke-warning)}.bds-banner--warning .bds-banner__status-icon{color:var(--boreal-stroke-warning)}.bds-banner--danger{border-color:var(--boreal-stroke-danger-base);background-color:var(--boreal-ui-danger-lighter)}.bds-banner--danger .bds-banner__vertical-line{background-color:var(--boreal-stroke-danger-base)}.bds-banner--danger .bds-banner__status-icon{color:var(--boreal-stroke-danger-base)}.bds-banner--closing{opacity:0;height:0}"};var BdsBanner=function(){function r(r){var n=this;registerInstance(this,r);this.close=createEvent(this,"close");this.inheritedAttributes={};this.isClosing=false;this.isOpen=true;this.idComponent="";this.variant=STATUS_VARIANT.INFO;this.enableClose=false;this.handleAnimationEnd=function(){if(n.isClosing)requestAnimationFrame((function(){n.isClosing=false;n.isOpen=false}))}}r.prototype.componentWillLoad=function(){this.inheritedAttributes=__assign(__assign({},inheritAriaAttributes(this.el)),getBaseAttributes(this))};r.prototype.closeBanner=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.handleCloseBanner();return[2]}))}))};r.prototype.handleCloseBanner=function(r){if(r!==undefined)r.preventDefault();this.isClosing=true;this.close.emit()};r.prototype.handleEscapeKeyClose=function(r){if(!this.enableClose)return;if(r.key==="Escape")this.handleCloseBanner()};r.prototype.getIconName=function(){var r={info:"bds-icon-info-circle-fill",success:"bds-icon-check-circle-fill",warning:"bds-icon-info-major-triangle-up-fill",danger:"bds-icon-alert-circle-fill"};if(r[this.variant]===undefined)return r["info"];return r[this.variant]};r.prototype.getAttributes=function(){return __assign(__assign({},this.inheritedAttributes),{role:"alert","aria-describedby":this.isOpen?"bds-banner__content":null,"aria-live":"polite","aria-hidden":"".concat(!this.isOpen),tabIndex:this.isOpen?0:-1})};r.prototype.getStyles=function(){var r;return r={"bds-banner":true},r["bds-banner--".concat(this.variant)]=true,r["bds-banner--closing"]=this.isClosing,r};r.prototype.renderCloseIcon=function(){var r=this;return h("button",{role:"close-button",class:"bds-banner__close-icon","aria-label":"Alert close button",onClick:function(n){return r.handleCloseBanner(n)}},h("em",{class:"bds-icon-close"}))};r.prototype.render=function(){var r=this;if(!this.isOpen)return;var n=this.renderCloseIcon();var e=this.getStyles();var a=this.getIconName();return h(Host,__assign(__assign({class:e},this.getAttributes()),{onTransitionEnd:this.handleAnimationEnd,onKeyDown:function(n){return r.handleEscapeKeyClose(n)}}),h("div",{class:"bds-banner__vertical-line"}),h("div",{class:"bds-banner__container"},h("div",{class:"bds-banner__status-icon",role:"status","aria-live":"polite","aria-label":"status ".concat(this.variant)},h("em",{"aria-hidden":"true",class:a})),h("div",{class:"bds-banner__content"},h("div",{class:"bds-banner__title"},h("slot",{name:"title"})),h("div",{class:"bds-banner__body"},h("slot",null)),h("div",{class:"bds-banner__actions"},h("slot",{name:"actions"}))),this.enableClose&&n))};Object.defineProperty(r.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return r}();BdsBanner.style=bdsBannerCss();export{BdsBanner as bds_banner};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++){e=arguments[r];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,e,r,a){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function n(t){try{s(a.next(t))}catch(t){o(t)}}function h(t){try{s(a["throw"](t))}catch(t){o(t)}}function s(t){t.done?r(t.value):i(t.value).then(n,h)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},a,i,o,n=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return n.next=h(0),n["throw"]=h(1),n["return"]=h(2),typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function h(t){return function(e){return s([t,e])}}function s(h){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,h[0]&&(r=0)),r)try{if(a=1,i&&(o=h[0]&2?i["return"]:h[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;if(i=0,o)h=[h[0]&2,o.value];switch(h[0]){case 0:case 1:o=h;break;case 4:r.label++;return{value:h[1],done:false};case 5:r.label++;i=h[1];h=[0];continue;case 7:h=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){r=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){r.label=h[1];break}if(h[0]===6&&r.label<o[1]){r.label=o[1];o=h;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(h);break}if(o[2])r.ops.pop();r.trys.pop();continue}h=e.call(t,r)}catch(t){h=[6,t];i=0}finally{a=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};import{r as registerInstance,h,a as Host,g as getElement}from"./index-DgFiTd6X.js";import{a as STATES,i as inheritAriaAttributes}from"./attributes-B9wshZ_4.js";var ALIGNMENT={START:"start"};var SIZES={XS:"xs",S:"sm",M:"md",L:"lg",XL:"xl"};var VARIANT_TYPOGRAPHY={DISPLAY:"display",LINK:"link"};var TAG_ELEMENT={P:"p",A:"a"};var FILENAME="download";var VARIANT_CONFIG={link:{states:[STATES.DISABLED],size:[SIZES.S,SIZES.M]},label:{states:[STATES.DISABLED],isRequired:true,canUseTooltip:true},heading:{canUseTooltip:true},subheading:{canUseTooltip:true},helper:{states:[STATES.ERROR]},display:{size:[SIZES.XS,SIZES.S,SIZES.M,SIZES.L,SIZES.XL]}};var getAttributesByTag=function(t,e){var r={a:{href:t.state!==STATES.DISABLED?t.sanitizedHref:null,target:t.target,download:t.isDownloadable?t.filename:null,rel:t.target==="_blank"?"noopener noreferrer":undefined},label:{htmlFor:t.htmlFor}};return r[e]||{}};var bdsTypographyCss=function(){return".bds-typography{-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--boreal-typography-font-family-primary);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__required-indicator{color:var(--boreal-icon-danger-base);font-weight:var(--boreal-typography-font-weight-regular)}.bds-typography__info-icon{color:var(--boreal-icon-default-light)}.bds-typography--heading,.bds-typography--subheading{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:var(--boreal-spacing-3xs)}.bds-typography--display{display:block}.bds-typography--caption,.bds-typography--helper,.bds-typography--link{display:inline-block}.bds-typography--caption{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-light)}.bds-typography--helper{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-sm);color:var(--boreal-text-default-light)}.bds-typography--link{font-size:var(--boreal-typography-font-size-sm);font-weight:var(--boreal-typography-font-weight-regular);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-primary-base);text-decoration:none}.bds-typography--link:hover{text-decoration:underline}.bds-typography--link:visited{color:var(--boreal-text-primary-base)}.bds-typography--link:active{color:var(--boreal-text-primary-dark)}.bds-typography--link.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xs)}.bds-typography--link.bds-typography--size-md{font-size:var(--boreal-typography-font-size-sm)}.bds-typography--code{font-family:var(--boreal-typography-font-family-secondary);font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default);line-height:var(--boreal-typography-line-height-md);overflow-wrap:break-word;background-color:var(--boreal-bg-neutral);padding:var(--boreal-spacing-3xs) var(--boreal-spacing-xs);border-radius:var(--boreal-radius-xs);display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone}.bds-typography--label{font-size:var(--boreal-typography-font-size-xs);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md);color:var(--boreal-text-default-darker)}.bds-typography--display{font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography--display.bds-typography--size-sm{font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography--display.bds-typography--size-md{font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography--display.bds-typography--size-lg{font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--display.bds-typography--size-xl{font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl);font-weight:var(--boreal-typography-font-weight-light)}.bds-typography--heading{font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg);font-weight:var(--boreal-typography-font-weight-regular);color:var(--boreal-text-default)}.bds-typography h1.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-4xl);line-height:var(--boreal-typography-line-height-4xl)}.bds-typography h2.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-3xl);line-height:var(--boreal-typography-line-height-3xl)}.bds-typography h3.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-2xl);line-height:var(--boreal-typography-line-height-2xl)}.bds-typography h4.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-xl);line-height:var(--boreal-typography-line-height-xl)}.bds-typography h5.bds-typography--heading{font-weight:var(--boreal-typography-font-weight-regular);font-size:var(--boreal-typography-font-size-lg);line-height:var(--boreal-typography-line-height-lg)}.bds-typography h6.bds-typography--heading{font-size:var(--boreal-typography-font-size-md);font-weight:var(--boreal-typography-font-weight-semibold);line-height:var(--boreal-typography-line-height-md)}.bds-typography--subheading{font-size:var(--boreal-typography-font-size-md);line-height:var(--boreal-typography-line-height-md);font-weight:var(--boreal-typography-font-weight-semibold)}.bds-typography--align-start{text-align:start}.bds-typography--align-center{text-align:center}.bds-typography--align-end{text-align:end}.bds-typography--align-inherit{text-align:inherit}.bds-typography--error{color:var(--boreal-text-danger-base)}.bds-typography--disabled{color:var(--boreal-text-disabled);pointer-events:none;cursor:not-allowed}.bds-typography--disabled .bds-typography__required-indicator{color:var(--boreal-text-danger-light)}.bds-typography--ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.bds-typography--ellipsis-multiline{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal;width:100%}"};var BdsTypography=function(){function t(t){registerInstance(this,t);this.inheritedAttributes={};this.variant=VARIANT_TYPOGRAPHY.DISPLAY;this.size=SIZES.M;this.state=STATES.DEFAULT;this.customClass="";this.element=TAG_ELEMENT.P;this.align=ALIGNMENT.START;this.ellipsis=false;this.maxLines=1;this.tooltipText="";this.isRequired=false;this.htmlFor=undefined;this.href=null;this.target=null;this.isDownloadable=false;this.filename=FILENAME;this.sanitizedHref=""}t.prototype.updateSanitizedHref=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!(this.getTagName==="a"&&this.href!==null))return[3,2];return[4,import("./index-noyWJ11s.js").then((function(t){return t.i}))];case 1:t=e.sent().sanitizeUrl;this.sanitizedHref=t(this.href);return[3,3];case 2:this.sanitizedHref="";e.label=3;case 3:return[2]}}))}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(this.getTagName===TAG_ELEMENT.A&&this.href!==null))return[3,2];return[4,this.updateSanitizedHref()];case 1:t.sent();t.label=2;case 2:this.inheritedAttributes=__assign({},inheritAriaAttributes(this.el));return[2]}}))}))};Object.defineProperty(t.prototype,"getTagName",{get:function(){if(this.variant===VARIANT_TYPOGRAPHY.LINK)return TAG_ELEMENT.A;return this.element.toLowerCase()},enumerable:false,configurable:true});t.prototype.getVariantConfig=function(){var t;return(t=VARIANT_CONFIG[this.variant])!==null&&t!==void 0?t:{}};t.prototype.getAccessibilityTags=function(){var t=this.getVariantConfig().isRequired,e=t===void 0?null:t;var r=["a","label"].includes(this.getTagName);return{"aria-required":this.isRequired&&e,"aria-disabled":this.state===STATES.DISABLED&&r}};t.prototype.getVariantStateStyles=function(){var t;var e=this.getVariantConfig();return t={},t["bds-typography--".concat(this.variant)]=true,t["bds-typography--align-".concat(this.align)]=true,t["bds-typography--".concat(this.state)]=!!((e===null||e===void 0?void 0:e.states)&&(e===null||e===void 0?void 0:e.states.includes(this.state))),t["bds-typography--size-".concat(this.size)]=!!((e===null||e===void 0?void 0:e.size)&&(e===null||e===void 0?void 0:e.size.includes(this.size))),t["bds-typography--required"]=!!((e===null||e===void 0?void 0:e.isRequired)&&this.isRequired),t["bds-typography--ellipsis"]=this.ellipsis&&this.maxLines<=1,t["bds-typography--ellipsis-multiline"]=this.ellipsis&&this.maxLines>1,t[this.customClass]=this.customClass!=="",t};t.prototype.render=function(){var t=this.getTagName;var e=__assign(__assign(__assign({},getAttributesByTag(this,t)),this.inheritedAttributes),this.getAccessibilityTags());var r=this.getVariantStateStyles();var a=this.getVariantConfig(),i=a.canUseTooltip,o=i===void 0?null:i,n=a.isRequired,s=n===void 0?null:n;return h(Host,{key:"6091692b1cb6bf1d3295f0834c8d25425633d65a",class:"bds-typography"},h(t,__assign({key:"0cc91c35fa1cc36c99101a79fae0c8b5cf44de43",class:r,style:{webkitLineClamp:this.maxLines}},e),h("slot",{key:"973848fba8211cb5ef869e0e48fb1806bd5efdec"}),this.isRequired&&s&&h("em",{key:"dd89574e9dedd55905ae4c7bcd57604f26fbd03b",class:"bds-typography__required-indicator","aria-hidden":"true"},"*"),this.tooltipText&&o&&h("em",{key:"473b0de17bd095b97d54d24d2f3aa75f8a8e4922",class:"bds-typography__info-icon bds-icon-info-circle"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{href:[{updateSanitizedHref:0}]}},enumerable:false,configurable:true});return t}();BdsTypography.style=bdsTypographyCss();export{BdsTypography as bds_typography};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{p as promiseResolve,H,b as bootstrapLazy}from"./index-DgFiTd6X.js";export{s as setNonce}from"./index-DgFiTd6X.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var patchBrowser=function(){{patchCloneNodeFix(H.prototype)}var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};var patchCloneNodeFix=function(e){var t=e.cloneNode;e.cloneNode=function(e){if(this.nodeName==="TEMPLATE"){return t.call(this,e)}var n=t.call(this,false);var r=this.childNodes;if(e){for(var i=0;i<r.length;i++){if(r[i].nodeType!==2){n.appendChild(r[i].cloneNode(true))}}}return n}};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,globalScripts()];case 1:t.sent();return[2,bootstrapLazy([["bds-banner",[[260,"bds-banner",{idComponent:[1,"id-component"],variant:[1],enableClose:[4,"enable-close"],isClosing:[32],isOpen:[32],closeBanner:[64]}]]],["bds-typography",[[260,"bds-typography",{variant:[513],size:[513],state:[513],customClass:[1,"custom-class"],element:[1],align:[1],ellipsis:[4],maxLines:[2,"max-lines"],tooltipText:[1,"tooltip-text"],isRequired:[516,"is-required"],htmlFor:[1,"html-for"],href:[1],target:[1],isDownloadable:[4,"is-downloadable"],filename:[1],sanitizedHref:[32]},null,{href:[{updateSanitizedHref:0}]}]]],["my-component",[[0,"my-component",{first:[1],middle:[1],last:[1]}]]]],e)]}}))}))}));
|
|
@@ -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 __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{f(n.next(e))}catch(e){a(e)}}function l(e){try{f(n["throw"](e))}catch(e){a(e)}}function f(e){e.done?r(e.value):i(e.value).then(o,l)}f((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=l(0),o["throw"]=l(1),o["return"]=l(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return f([e,t])}}function f(l){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(r=0)),r)try{if(n=1,i&&(a=l[0]&2?i["return"]:l[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;if(i=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;i=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){r.label=l[1];break}if(l[0]===6&&r.label<a[1]){r.label=a[1];a=l;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(l);break}if(a[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e];i=0}finally{n=a=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,i=t.length,a;n<i;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};var NAMESPACE="boreal-web-components";var BUILD={hotModuleReplacement:false,hydratedSelectorName:"hydrated",lazyLoad:true,propChangeCallback:true,shadowDom:false,slotRelocation:true,state:true,updatable:true};var reWireGetterSetter=function(e,t){var r;var n=t.t;var i=Object.entries((r=n.i)!=null?r:{});i.map((function(r){var n=r[0],i=r[1][0];if(i&31||i&32){var a=e[n];var o=getPropertyDescriptor(Object.getPrototypeOf(e),n)||Object.getOwnPropertyDescriptor(e,n);if(o){Object.defineProperty(e,n,{get:function(){return o.get.call(this)},set:function(e){o.set.call(this,e)},configurable:true,enumerable:true})}e[n]=t.o.has(n)?t.o.get(n):a}}))};function getPropertyDescriptor(e,t){while(e){var r=Object.getOwnPropertyDescriptor(e,t);if(r==null?void 0:r.get)return r;e=Object.getPrototypeOf(e)}return void 0}var getHostRef=function(e){if(e.__stencil__getHostRef){return e.__stencil__getHostRef()}return void 0};var registerInstance=function(e,t){if(!t)return;e.__stencil__getHostRef=function(){return t};t.l=e;if(t.t.u&512&&BUILD.state){reWireGetterSetter(e,t)}};var registerHost=function(e,t){var r={u:0,$hostElement$:e,t:t,o:new Map,v:new Map};{r.p=new Promise((function(e){return r.h=e}))}{r.m=new Promise((function(e){return r.S=e}));e["s-p"]=[];e["s-rc"]=[]}{r.C=[]}var n=r;e.__stencil__getHostRef=function(){return n};return n};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.N.replace(/-/g,"_");var i=e.T;if(!i){return void 0}var a=cmpModules.get(i);if(a){return a[n]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import("./".concat(i,".entry.js").concat("")).then((function(e){{cmpModules.set(i,e)}return e[n]}),(function(e){consoleError(e,t.$hostElement$)}))};var styles=new Map;var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var SLOT_FB_CSS="slot-fb{display:contents}slot-fb[hidden]{display:none}";var XLINK_NS="http://www.w3.org/1999/xlink";var win=typeof window!=="undefined"?window:{};var H=win.HTMLElement||function(){function e(){}return e}();var plt={u:0,_:"",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 supportsShadow=BUILD.shadowDom;var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructableStylesheets=function(){try{if(!win.document.adoptedStyleSheets){return false}new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var supportsMutableAdoptedStyleSheets=supportsConstructableStylesheets?function(){return!!win.document&&Object.getOwnPropertyDescriptor(win.document.adoptedStyleSheets,"length").writable}():false;var queuePending=false;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.u&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);var updateFallbackSlotVisibility=function(e){var t=internalCall(e,"childNodes");if(e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"){getHostSlotNodes(t,e.tagName).forEach((function(e){if(e.nodeType===1&&e.tagName==="SLOT-FB"){if(getSlotChildSiblings(e,getSlotName(e),false).length){e.hidden=true}else{e.hidden=false}}}))}var r=0;for(r=0;r<t.length;r++){var n=t[r];if(n.nodeType===1&&internalCall(n,"childNodes").length){updateFallbackSlotVisibility(n)}}};var getSlottedChildNodes=function(e){var t=[];for(var r=0;r<e.length;r++){var n=e[r]["s-nr"]||void 0;if(n&&n.isConnected){t.push(n)}}return t};function getHostSlotNodes(e,t,r){var n=0;var i=[];var a;for(;n<e.length;n++){a=e[n];if(a["s-sr"]&&(!t||a["s-hn"]===t)&&(r===void 0||getSlotName(a)===r)){i.push(a);if(typeof r!=="undefined")return i}i=__spreadArray(__spreadArray([],i,true),getHostSlotNodes(a.childNodes,t,r),true)}return i}var getSlotChildSiblings=function(e,t,r){if(r===void 0){r=true}var n=[];if(r&&e["s-sr"]||!e["s-sr"])n.push(e);var i=e;while(i=i.nextSibling){if(getSlotName(i)===t&&(r||!i["s-sr"]))n.push(i)}return n};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var addSlotRelocateNode=function(e,t,r,n){if(e["s-ol"]&&e["s-ol"].isConnected){return}var i=document.createTextNode("");i["s-nr"]=e;if(!t["s-cr"]||!t["s-cr"].parentNode)return;var a=t["s-cr"].parentNode;var o=r?internalCall(a,"prepend"):internalCall(a,"appendChild");{o.call(a,i)}e["s-ol"]=i;e["s-sh"]=t["s-hn"]};var getSlotName=function(e){return typeof e["s-sn"]==="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0};function patchSlotNode(e){if(e.assignedElements||e.assignedNodes||!e["s-sr"])return;var t=function(t){return function(e){var r=[];var n=this["s-sn"];if(e==null?void 0:e.flatten){console.error("\n Flattening is not supported for Stencil non-shadow slots.\n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ")}var i=this["s-cr"].parentElement;var a=i.__childNodes?i.childNodes:getSlottedChildNodes(i.childNodes);a.forEach((function(e){if(n===getSlotName(e)){r.push(e)}}));if(t){return r.filter((function(e){return e.nodeType===1}))}return r}.bind(e)};e.assignedElements=t(true);e.assignedNodes=t(false)}function dispatchSlotChangeEvent(e){e.dispatchEvent(new CustomEvent("slotchange",{bubbles:false,cancelable:false,composed:false}))}function findSlotFromSlottedNode(e,t){var r;t=t||((r=e["s-ol"])==null?void 0:r.parentElement);if(!t)return{slotNode:null,slotName:""};var n=e["s-sn"]=getSlotName(e)||"";var i=internalCall(t,"childNodes");var a=getHostSlotNodes(i,t.tagName,n)[0];return{slotNode:a,slotName:n}}var patchPseudoShadowDom=function(e){patchCloneNode(e);patchSlotAppendChild(e);patchSlotAppend(e);patchSlotPrepend(e);patchSlotInsertAdjacentElement(e);patchSlotInsertAdjacentHTML(e);patchSlotInsertAdjacentText(e);patchInsertBefore(e);patchTextContent(e);patchChildSlotNodes(e);patchSlotRemoveChild(e)};var patchCloneNode=function(e){if(e.__cloneNode)return;var t=e.__cloneNode=e.cloneNode;e.cloneNode=function(e){var r=this;var n=t.call(r,false);if(e){var i=0;var a=void 0,o=void 0;var l=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-scs"];var f=this.__childNodes||this.childNodes;for(;i<f.length;i++){a=f[i]["s-nr"];o=l.every((function(e){return!f[i][e]}));if(a){if(n.__appendChild){n.__appendChild(a.cloneNode(true))}else{n.appendChild(a.cloneNode(true))}}if(o){n.appendChild(f[i].cloneNode(true))}}}return n}};var patchSlotAppendChild=function(e){if(e.__appendChild)return;e.__appendChild=e.appendChild;e.appendChild=function(e){var t=findSlotFromSlottedNode(e,this),r=t.slotName,n=t.slotNode;if(n){addSlotRelocateNode(e,n);var i=getSlotChildSiblings(n,r);var a=i[i.length-1];var o=internalCall(a,"parentNode");var l=internalCall(o,"insertBefore")(e,a.nextSibling);dispatchSlotChangeEvent(n);updateFallbackSlotVisibility(this);return l}return this.__appendChild(e)}};var patchSlotRemoveChild=function(e){if(e.__removeChild)return;e.__removeChild=e.removeChild;e.removeChild=function(e){if(e&&typeof e["s-sn"]!=="undefined"){var t=this.__childNodes||this.childNodes;var r=getHostSlotNodes(t,this.tagName,e["s-sn"]);if(r&&e.isConnected){e.remove();updateFallbackSlotVisibility(this);return}}return this.__removeChild(e)}};var patchSlotPrepend=function(e){if(e.__prepend)return;e.__prepend=e.prepend;e.prepend=function(){var t=this;var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}r.forEach((function(r){if(typeof r==="string"){r=t.ownerDocument.createTextNode(r)}var n=(r["s-sn"]=getSlotName(r))||"";var i=internalCall(t,"childNodes");var a=getHostSlotNodes(i,t.tagName,n)[0];if(a){addSlotRelocateNode(r,a,true);var o=getSlotChildSiblings(a,n);var l=o[0];var f=internalCall(l,"parentNode");var u=internalCall(f,"insertBefore")(r,internalCall(l,"nextSibling"));dispatchSlotChangeEvent(a);return u}if(r.nodeType===1&&!!r.getAttribute("slot")){r.hidden=true}return e.__prepend(r)}))}};var patchSlotAppend=function(e){if(e.__append)return;e.__append=e.append;e.append=function(){var e=this;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}t.forEach((function(t){if(typeof t==="string"){t=e.ownerDocument.createTextNode(t)}e.appendChild(t)}))}};var patchSlotInsertAdjacentHTML=function(e){if(e.__insertAdjacentHTML)return;var t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(e,r){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,r)}var n=this.ownerDocument.createElement("_");var i;n.innerHTML=r;if(e==="afterbegin"){while(i=n.firstChild){this.prepend(i)}}else if(e==="beforeend"){while(i=n.firstChild){this.append(i)}}}};var patchSlotInsertAdjacentText=function(e){e.insertAdjacentText=function(e,t){this.insertAdjacentHTML(e,t)}};var patchInsertBefore=function(e){if(e.__insertBefore)return;var t=e;if(t.__insertBefore)return;t.__insertBefore=e.insertBefore;e.insertBefore=function(e,t){var r=this;var n=findSlotFromSlottedNode(e,this),i=n.slotName,a=n.slotNode;var o=this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes);if(a){var l=false;o.forEach((function(n){if(n===t||t===null){l=true;if(t===null||i!==t["s-sn"]){r.appendChild(e);return}if(i===t["s-sn"]){addSlotRelocateNode(e,a);var o=internalCall(t,"parentNode");internalCall(o,"insertBefore")(e,t);dispatchSlotChangeEvent(a)}return}}));if(l)return e}var f=t==null?void 0:t.__parentNode;if(f&&!this.isSameNode(f)){return this.appendChild(e)}return this.__insertBefore(e,t)}};var patchSlotInsertAdjacentElement=function(e){if(e.__insertAdjacentElement)return;var t=e.insertAdjacentElement;e.insertAdjacentElement=function(e,r){if(e!=="afterbegin"&&e!=="beforeend"){return t.call(this,e,r)}if(e==="afterbegin"){this.prepend(r);return r}else if(e==="beforeend"){this.append(r);return r}return r}};var patchTextContent=function(e){patchHostOriginalAccessor("textContent",e);Object.defineProperty(e,"textContent",{get:function(){var e="";var t=this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes);t.forEach((function(t){return e+=t.textContent||""}));return e},set:function(e){var t=this.__childNodes?this.childNodes:getSlottedChildNodes(this.childNodes);t.forEach((function(e){if(e["s-ol"])e["s-ol"].remove();e.remove()}));this.insertAdjacentHTML("beforeend",e)}})};var patchChildSlotNodes=function(e){var t=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);patchHostOriginalAccessor("children",e);Object.defineProperty(e,"children",{get:function(){return this.childNodes.filter((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return this.children.length}});patchHostOriginalAccessor("firstChild",e);Object.defineProperty(e,"firstChild",{get:function(){return this.childNodes[0]}});patchHostOriginalAccessor("lastChild",e);Object.defineProperty(e,"lastChild",{get:function(){return this.childNodes[this.childNodes.length-1]}});patchHostOriginalAccessor("childNodes",e);Object.defineProperty(e,"childNodes",{get:function(){var e=new t;e.push.apply(e,getSlottedChildNodes(this.__childNodes));return e}})};var patchParentNode=function(e){if(!e||e.__parentNode)return;patchHostOriginalAccessor("parentNode",e);Object.defineProperty(e,"parentNode",{get:function(){var e;return((e=this["s-ol"])==null?void 0:e.parentNode)||this.__parentNode},set:function(e){this.__parentNode=e}})};var validElementPatches=["children","nextElementSibling","previousElementSibling"];var validNodesPatches=["childNodes","firstChild","lastChild","nextSibling","previousSibling","textContent","parentNode"];function patchHostOriginalAccessor(e,t){if(!globalThis.Node||!globalThis.Element){return}var r;if(validElementPatches.includes(e)){r=Object.getOwnPropertyDescriptor(Element.prototype,e)}else if(validNodesPatches.includes(e)){r=Object.getOwnPropertyDescriptor(Node.prototype,e)}if(!r){r=Object.getOwnPropertyDescriptor(t,e)}if(r)Object.defineProperty(t,"__"+e,r)}function internalCall(e,t){if("__"+t in e){var r=e["__"+t];if(typeof r!=="function")return r;return r.bind(e)}else{if(typeof e[t]!=="function")return e[t];return e[t].bind(e)}}var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};function queryNonceMetaTagContent(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}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){var n,i,a;var o=getScopeId(t);var l=styles.get(o);if(!win.document){return o}e=e.nodeType===11?e:win.document;if(l){if(typeof l==="string"){e=e.head||e;var f=rootAppliedStyles.get(e);var u=void 0;if(!f){rootAppliedStyles.set(e,f=new Set)}if(!f.has(o)){u=win.document.createElement("style");u.textContent=l;var s=(n=plt.k)!=null?n:queryNonceMetaTagContent(win.document);if(s!=null){u.setAttribute("nonce",s)}if(!(t.u&1)){if(e.nodeName==="HEAD"){var c=e.querySelectorAll("link[rel=preconnect]");var v=c.length>0?c[c.length-1].nextSibling:e.querySelector("style");e.insertBefore(u,(v==null?void 0:v.parentNode)===e?v:null)}else if("host"in e){if(supportsConstructableStylesheets){var d=(i=e.defaultView)!=null?i:e.ownerDocument.defaultView;var p=new d.CSSStyleSheet;p.replaceSync(l);if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.unshift(p)}else{e.adoptedStyleSheets=__spreadArray([p],e.adoptedStyleSheets,true)}}else{var h=e.querySelector("style");if(h){h.textContent=l+h.textContent}else{e.prepend(u)}}}else{e.append(u)}}if(t.u&1){e.insertBefore(u,null)}if(t.u&4){u.textContent+=SLOT_FB_CSS}if(f){f.add(o)}}}else{var f=rootAppliedStyles.get(e);if(!f){rootAppliedStyles.set(e,f=new Set)}if(!f.has(o)){var d=(a=e.defaultView)!=null?a:e.ownerDocument.defaultView;var p=void 0;if(l.constructor===d.CSSStyleSheet){p=l}else{p=new d.CSSStyleSheet;for(var m=0;m<l.cssRules.length;m++){p.insertRule(l.cssRules[m].cssText,m)}}if(supportsMutableAdoptedStyleSheets){e.adoptedStyleSheets.push(p)}else{e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[p],false)}f.add(o)}}}return o};var attachStyles=function(e){var t=e.t;var r=e.$hostElement$;var n=createTime("attachStyles",t.N);addStyle(r.getRootNode(),t);n()};var getScopeId=function(e,t){return"sc-"+e.N};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]}if(typeof e==="string"){e=transformTag(e)}var i=null;var a=null;var o=null;var l=false;var f=false;var u=[];var s=function(t){for(var r=0;r<t.length;r++){i=t[r];if(Array.isArray(i)){s(i)}else if(i!=null&&typeof i!=="boolean"){if(l=typeof e!=="function"&&!isComplexType(i)){i=String(i)}if(l&&f){u[u.length-1].A+=i}else{u.push(l?newVNode(null,i):i)}f=l}}};s(r);if(t){if(t.key){a=t.key}if(t.name){o=t.name}{var c=t.className||t.class;if(c){t.class=typeof c!=="object"?c:Object.keys(c).filter((function(e){return c[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,u,vdomFnUtils)}var v=newVNode(e,null);v.R=t;if(u.length>0){v.O=u}{v.j=a}{v.H=o}return v};var newVNode=function(e,t){var r={u:0,V:e,A:t!=null?t:null,I:null,O:null};{r.R=null}{r.j=null}{r.H=null}return r};var Host={};var isHost=function(e){return e&&e.V===Host};var vdomFnUtils={forEach:function(e,t){return e.map(convertToPublic).forEach(t)},map:function(e,t){return e.map(convertToPublic).map(t).map(convertToPrivate)}};var convertToPublic=function(e){return{vattrs:e.R,vchildren:e.O,vkey:e.j,vname:e.H,vtag:e.V,vtext:e.A}};var convertToPrivate=function(e){if(typeof e.vtag==="function"){var t=__assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return h.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var r=newVNode(e.vtag,e.vtext);r.R=e.vattrs;r.O=e.vchildren;r.j=e.vkey;r.H=e.vname;return r};var parsePropertyValue=function(e,t,r){if(e!=null&&!isComplexType(e)){if(t&4){{return e==="false"?false:e===""||!!e}}if(t&2){return typeof e==="string"?parseFloat(e):typeof e==="number"?e:NaN}if(t&1){return String(e)}return e}return e};var getElement=function(e){var t;return(t=getHostRef(e))==null?void 0:t.$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:true,composed:true,cancelable:true,detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var setAccessor=function(e,t,r,n,i,a,o){if(r===n){return}var l=isMemberInElement(e,t);var f=t.toLowerCase();if(t==="class"){var u=e.classList;var s=parseClassList(r);var c=parseClassList(n);{u.remove.apply(u,s.filter((function(e){return e&&!c.includes(e)})));u.add.apply(u,c.filter((function(e){return e&&!s.includes(e)})))}}else if(t==="style"){{for(var v in r){if(!n||n[v]==null){if(v.includes("-")){e.style.removeProperty(v)}else{e.style[v]=""}}}}for(var v in n){if(!r||n[v]!==r[v]){if(v.includes("-")){e.style.setProperty(v,n[v])}else{e.style[v]=n[v]}}}}else if(t==="key");else if(t==="ref"){if(n){queueRefAttachment(n,e)}}else if(!l&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,f)){t=f.slice(2)}else{t=f[2]+t.slice(3)}if(r||n){var d=t.endsWith(CAPTURE_EVENT_SUFFIX);t=t.replace(CAPTURE_EVENT_REGEX,"");if(r){plt.rel(e,t,r,d)}if(n){plt.ael(e,t,n,d)}}}else if(t[0]==="a"&&t.startsWith("attr:")){var p=t.slice(5);var h=void 0;{var m=getHostRef(e);if(m&&m.t&&m.t.i){var S=m.t.i[p];if(S&&S[1]){h=S[1]}}}if(!h){h=p.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}if(n==null||n===false){if(n!==false||e.getAttribute(h)===""){e.removeAttribute(h)}}else{e.setAttribute(h,n===true?"":n)}return}else if(t[0]==="p"&&t.startsWith("prop:")){var p=t.slice(5);try{e[p]=n}catch(e){}return}else{var g=isComplexType(n);if((l||g&&n!==null)&&true){try{if(!e.tagName.includes("-")){var b=n==null?"":n;if(t==="list"){l=false}else if(r==null||e[t]!==b){if(typeof e.__lookupSetter__(t)==="function"){e[t]=b}else{e.setAttribute(t,b)}}}else if(e[t]!==n){e[t]=n}}catch(e){}}var y=false;{if(f!==(f=f.replace(/^xlink\:?/,""))){t=f;y=true}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){if(y){e.removeAttributeNS(XLINK_NS,t)}else{e.removeAttribute(t)}}}else if((!l||a&4||i)&&!g&&e.nodeType===1){n=n===true?"":n;if(y){e.setAttributeNS(XLINK_NS,t,n)}else{e.setAttribute(t,n)}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){if(typeof e==="object"&&e&&"baseVal"in e){e=e.baseVal}if(!e||typeof e!=="string"){return[]}return e.split(parseClassListRegex)};var CAPTURE_EVENT_SUFFIX="Capture";var CAPTURE_EVENT_REGEX=new RegExp(CAPTURE_EVENT_SUFFIX+"$");var updateElement=function(e,t,r,n){var i=t.I.nodeType===11&&t.I.host?t.I.host:t.I;var a=e&&e.R||{};var o=t.R||{};{for(var l=0,f=sortedAttrNames(Object.keys(a));l<f.length;l++){var u=f[l];if(!(u in o)){setAccessor(i,u,a[u],void 0,r,t.u)}}}for(var s=0,c=sortedAttrNames(Object.keys(o));s<c.length;s++){var u=c[s];setAccessor(i,u,a[u],o[u],r,t.u)}};function sortedAttrNames(e){return e.includes("ref")?__spreadArray(__spreadArray([],e.filter((function(e){return e!=="ref"})),true),["ref"],false):e}var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var refCallbacksToRemove=[];var refCallbacksToAttach=[];var createElm=function(e,t,r){var n;var i=t.O[r];var a=0;var o;var l;var f;if(!useNativeShadowDom){checkSlotRelocate=true;if(i.V==="slot"){i.u|=i.O?2:1}}if(i.A!=null){o=i.I=win.document.createTextNode(i.A)}else if(i.u&1){o=i.I=win.document.createTextNode("");{updateElement(null,i,isSvgMode)}}else{if(!win.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.")}o=i.I=win.document.createElement(!useNativeShadowDom&&BUILD.slotRelocation&&i.u&2?"slot-fb":i.V);{updateElement(null,i,isSvgMode)}if(i.O){var u=i.V==="template"?o.content:o;for(a=0;a<i.O.length;++a){l=createElm(e,i,a);if(l){u.appendChild(l)}}}}o["s-hn"]=hostTagName;{if(i.u&(2|1)){o["s-sr"]=true;o["s-cr"]=contentRef;o["s-sn"]=i.H||"";o["s-rf"]=(n=i.R)==null?void 0:n.ref;patchSlotNode(o);f=e&&e.O&&e.O[r];if(f&&f.V===i.V&&e.I){relocateToHostRoot(e.I)}}}return o};var relocateToHostRoot=function(e){plt.u|=1;var t=e.closest(hostTagName.toLowerCase());if(t!=null){var r=Array.from(t.__childNodes||t.childNodes).find((function(e){return e["s-cr"]}));var n=Array.from(e.__childNodes||e.childNodes);for(var i=0,a=r?n.reverse():n;i<a.length;i++){var o=a[i];if(o["s-sh"]!=null){insertBefore(t,o,r!=null?r:null);o["s-sh"]=void 0;checkSlotRelocate=true}}}plt.u&=-2};var putBackInOriginalLocation=function(e,t){plt.u|=1;var r=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){var n=e;while(n=n.nextSibling){if(n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===hostTagName){r.push(n)}}}for(var i=r.length-1;i>=0;i--){var a=r[i];if(a["s-hn"]!==hostTagName&&a["s-ol"]){insertBefore(referenceNode(a).parentNode,a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=void 0;a["s-sh"]=void 0;checkSlotRelocate=true}if(t){putBackInOriginalLocation(a,t)}}plt.u&=-2};var addVnodes=function(e,t,r,n,i,a){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var l;if(r.V==="template"){o=o.content}for(;i<=a;++i){if(n[i]){l=createElm(null,r,i);if(l){n[i].I=l;insertBefore(o,l,referenceNode(t))}}}};var removeVnodes=function(e,t,r){for(var n=t;n<=r;++n){var i=e[n];if(i){var a=i.I;nullifyVNodeRefs(i);if(a){{checkSlotFallbackVisibility=true;if(a["s-ol"]){a["s-ol"].remove()}else{putBackInOriginalLocation(a,true)}}a.remove()}}}};var updateChildren=function(e,t,r,n,i){if(i===void 0){i=false}var a=0;var o=0;var l=0;var f=0;var u=t.length-1;var s=t[0];var c=t[u];var v=n.length-1;var d=n[0];var p=n[v];var h;var m;var S=r.V==="template"?e.content:e;while(a<=u&&o<=v){if(s==null){s=t[++a]}else if(c==null){c=t[--u]}else if(d==null){d=n[++o]}else if(p==null){p=n[--v]}else if(isSameVnode(s,d,i)){patch(s,d,i);s=t[++a];d=n[++o]}else if(isSameVnode(c,p,i)){patch(c,p,i);c=t[--u];p=n[--v]}else if(isSameVnode(s,p,i)){if(s.V==="slot"||p.V==="slot"){putBackInOriginalLocation(s.I.parentNode,false)}patch(s,p,i);insertBefore(S,s.I,c.I.nextSibling);s=t[++a];p=n[--v]}else if(isSameVnode(c,d,i)){if(s.V==="slot"||p.V==="slot"){putBackInOriginalLocation(c.I.parentNode,false)}patch(c,d,i);insertBefore(S,c.I,s.I);c=t[--u];d=n[++o]}else{l=-1;{for(f=a;f<=u;++f){if(t[f]&&t[f].j!==null&&t[f].j===d.j){l=f;break}}}if(l>=0){m=t[l];if(m.V!==d.V){h=createElm(t&&t[o],r,l)}else{patch(m,d,i);t[l]=void 0;h=m.I}d=n[++o]}else{h=createElm(t&&t[o],r,o);d=n[++o]}if(h){{insertBefore(referenceNode(s.I).parentNode,h,referenceNode(s.I))}}}}if(a>u){addVnodes(e,n[v+1]==null?null:n[v+1].I,r,n,o,v)}else if(o>v){removeVnodes(t,a,u)}};var isSameVnode=function(e,t,r){if(r===void 0){r=false}if(e.V===t.V){if(e.V==="slot"){return e.H===t.H}if(!r){return e.j===t.j}if(r&&!e.j&&t.j){e.j=t.j}return true}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var patch=function(e,t,r){if(r===void 0){r=false}var n=t.I=e.I;var i=e.O;var a=t.O;var o=t.V;var l=t.A;var f;if(l==null){{if(o==="slot"&&!useNativeShadowDom){if(e.H!==t.H){t.I["s-sn"]=t.H||"";relocateToHostRoot(t.I.parentElement)}}updateElement(e,t,isSvgMode)}if(i!==null&&a!==null){updateChildren(n,i,t,a,r)}else if(a!==null){if(e.A!==null){n.textContent=""}addVnodes(n,null,t,a,0,a.length-1)}else if(!r&&BUILD.updatable&&i!==null){removeVnodes(i,0,i.length-1)}else;}else if(f=n["s-cr"]){f.parentNode.textContent=l}else if(e.A!==l){n.data=l}};var relocateNodes=[];var markSlotContentForRelocation=function(e){var t;var r;var n;var i=e.__childNodes||e.childNodes;for(var a=0,o=i;a<o.length;a++){var l=o[a];if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){r=t.parentNode.__childNodes||t.parentNode.childNodes;var f=l["s-sn"];var u=function(){t=r[n];if(!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"]&&(!t["s-sh"]||t["s-sh"]!==l["s-hn"])){if(isNodeLocatedInSlot(t,f)){var e=relocateNodes.find((function(e){return e.L===t}));checkSlotFallbackVisibility=true;t["s-sn"]=t["s-sn"]||f;if(e){e.L["s-sh"]=l["s-hn"];e.P=l}else{t["s-sh"]=l["s-hn"];relocateNodes.push({P:l,L:t})}if(t["s-sr"]){relocateNodes.map((function(r){if(isNodeLocatedInSlot(r.L,t["s-sn"])){e=relocateNodes.find((function(e){return e.L===t}));if(e&&!r.P){r.P=e.P}}}))}}else if(!relocateNodes.some((function(e){return e.L===t}))){relocateNodes.push({L:t})}}};for(n=r.length-1;n>=0;n--){u()}}if(l.nodeType===1){markSlotContentForRelocation(l)}}};var nullifyVNodeRefs=function(e){{if(e.R&&e.R.ref){refCallbacksToRemove.push((function(){return e.R.ref(null)}))}e.O&&e.O.map(nullifyVNodeRefs)}};var queueRefAttachment=function(e,t){{refCallbacksToAttach.push((function(){return e(t)}))}};var flushQueuedRefCallbacks=function(){{refCallbacksToRemove.forEach((function(e){return e()}));refCallbacksToRemove.length=0;refCallbacksToAttach.forEach((function(e){return e()}));refCallbacksToAttach.length=0}};var insertBefore=function(e,t,r,n){{if(typeof t["s-sn"]==="string"){if(e.getRootNode().nodeType!==11){patchParentNode(t)}e.insertBefore(t,r);var i=findSlotFromSlottedNode(t).slotNode;if(i&&!n)dispatchSlotChangeEvent(i);return t}}if(e.__insertBefore){return e.__insertBefore(t,r)}else{return e==null?void 0:e.insertBefore(t,r)}};var renderVdom=function(e,t,r){if(r===void 0){r=false}var n,i,a,o,l;var f=e.$hostElement$;var u=e.t;var s=e.$||newVNode(null,null);var c=isHost(t);var v=c?t:h(null,null,t);hostTagName=f.tagName;if(u.D){v.R=v.R||{};u.D.forEach((function(e){var t=e[0],r=e[1];{v.R[r]=f[t]}}))}if(r&&v.R){for(var d=0,p=Object.keys(v.R);d<p.length;d++){var m=p[d];if(f.hasAttribute(m)&&!["key","ref","style","class"].includes(m)){v.R[m]=f[m]}}}v.V=null;v.u|=4;e.$=v;v.I=s.I=f;useNativeShadowDom=supportsShadow;{contentRef=f["s-cr"];checkSlotFallbackVisibility=false}patch(s,v,r);{plt.u|=1;if(checkSlotRelocate){markSlotContentForRelocation(v.I);for(var S=0,g=relocateNodes;S<g.length;S++){var b=g[S];var y=b.L;if(!y["s-ol"]&&win.document){var C=win.document.createTextNode("");C["s-nr"]=y;insertBefore(y.parentNode,y["s-ol"]=C,y,r)}}for(var N=0,w=relocateNodes;N<w.length;N++){var b=w[N];var y=b.L;var T=b.P;if(y.nodeType===1&&r){y["s-ih"]=(n=y.hidden)!=null?n:false}if(T){var _=T.parentNode;var k=T.nextSibling;if(k&&k.nodeType===1){var C=(i=y["s-ol"])==null?void 0:i.previousSibling;while(C){var E=(a=C["s-nr"])!=null?a:null;if(E&&E["s-sn"]===y["s-sn"]&&_===(E.__parentNode||E.parentNode)){E=E.nextSibling;while(E===y||(E==null?void 0:E["s-sr"])){E=E==null?void 0:E.nextSibling}if(!E||!E["s-nr"]){k=E;break}}C=C.previousSibling}}var A=y.__parentNode||y.parentNode;var R=y.__nextSibling||y.nextSibling;if(!k&&_!==A||R!==k){if(y!==k){insertBefore(_,y,k,r);if(y.nodeType===8&&y.nodeValue.startsWith("s-nt-")){var O=win.document.createTextNode(y.nodeValue.replace(/^s-nt-/,""));O["s-hn"]=y["s-hn"];O["s-sn"]=y["s-sn"];O["s-sh"]=y["s-sh"];O["s-sr"]=y["s-sr"];O["s-ol"]=y["s-ol"];O["s-ol"]["s-nr"]=O;insertBefore(y.parentNode,O,y,r);y.parentNode.removeChild(y)}if(y.nodeType===1&&y.tagName!=="SLOT-FB"){y.hidden=(o=y["s-ih"])!=null?o:false}}}y&&typeof T["s-rf"]==="function"&&T["s-rf"](T)}else if(y.nodeType===1){y.hidden=true}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(v.I)}plt.u&=-2;relocateNodes.length=0}if(!useNativeShadowDom&&!(u.u&1)&&f["s-cr"]){var j=v.I.__childNodes||v.I.childNodes;for(var H=0,V=j;H<V.length;H++){var I=V[H];if(I["s-hn"]!==hostTagName&&!I["s-sh"]){if(r&&I["s-ih"]==null){I["s-ih"]=(l=I.hidden)!=null?l:false}if(I.nodeType===1){I.hidden=true}else if(I.nodeType===3&&!!I.nodeValue.trim()){var L=win.document.createComment("s-nt-"+I.nodeValue);L["s-sn"]=I["s-sn"];insertBefore(I.parentNode,L,I,r);I.parentNode.removeChild(I)}}}}contentRef=void 0;flushQueuedRefCallbacks()};var attachToAncestor=function(e,t){if(t&&!e.B&&t["s-p"]){var r=t["s-p"].push(new Promise((function(n){return e.B=function(){t["s-p"].splice(r-1,1);n()}})))}};var scheduleUpdate=function(e,t){{e.u|=16}if(e.u&4){e.u|=512;return}attachToAncestor(e,e.F);var r=function(){return dispatchHooks(e,t)};if(t){queueMicrotask((function(){r()}));return}return writeTask(r)};var dispatchHooks=function(e,t){var r=e.$hostElement$;var n=createTime("scheduleUpdate",e.t.N);var i=e.l;if(!i){throw new Error("Can't render component <".concat(r.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"))}var a;if(t){{if(e.M){e.M=false;safeCall(i,"connectedCallback",void 0,r)}if(e.C.length){e.C.forEach((function(e){return e(r)}))}}a=safeCall(i,"componentWillLoad",void 0,r)}else{a=safeCall(i,"componentWillUpdate",void 0,r)}a=enqueue(a,(function(){return safeCall(i,"componentWillRender",void 0,r)}));n();return enqueue(a,(function(){return updateComponent(e,i,t)}))};var enqueue=function(e,t){return isPromisey(e)?e.then(t).catch((function(e){console.error(e);t()})):t()};var isPromisey=function(e){return e instanceof Promise||e&&e.then&&typeof e.then==="function"};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,l,f,u;return __generator(this,(function(s){i=e.$hostElement$;a=createTime("update",e.t.N);o=i["s-rc"];if(r){attachStyles(e)}l=createTime("render",e.t.N);{callRender(e,t,i,r)}if(o){o.map((function(e){return e()}));i["s-rc"]=void 0}l();a();{f=(n=i["s-p"])!=null?n:[];u=function(){return postUpdateComponent(e)};if(f.length===0){u()}else{Promise.all(f).then(u).catch(u);e.u|=4;f.length=0}}return[2]}))}))};var callRender=function(e,t,r,n){try{t=t.render();{e.u&=-17}{e.u|=2}{{{renderVdom(e,t,n)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.t.N;var r=e.$hostElement$;var n=createTime("postUpdate",t);var i=e.l;var a=e.F;safeCall(i,"componentDidRender",void 0,r);if(!(e.u&64)){e.u|=64;{addHydratedFlag(r)}safeCall(i,"componentDidLoad",void 0,r);n();{e.S(r);if(!a){appDidLoad()}}}else{safeCall(i,"componentDidUpdate",void 0,r);n()}{e.h(r)}{if(e.B){e.B();e.B=void 0}if(e.u&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.u&=-517}};var appDidLoad=function(e){nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r,n){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e,n)}}return void 0};var addHydratedFlag=function(e){var t;return e.classList.add((t=BUILD.hydratedSelectorName)!=null?t:"hydrated")};var getValue=function(e,t){return getHostRef(e).o.get(t)};var setValue=function(e,t,r,n){var i=getHostRef(e);if(!i){return}if(!i){throw new Error("Couldn't find host element for \"".concat(n.N,'" 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/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var o=i.o.get(t);var l=i.u;var f=i.l;r=parsePropertyValue(r,n.i[t][0]);var u=Number.isNaN(o)&&Number.isNaN(r);var s=r!==o&&!u;if((!(l&8)||o===void 0)&&s){i.o.set(t,r);if(n.U){var c=n.U[t];if(c){c.map((function(e){try{var n=Object.entries(e)[0],u=n[0],s=n[1];if(l&128||s&1){if(!f){i.C.push((function(){i.l[u](r,o,t)}))}else{f[u](r,o,t)}}}catch(e){consoleError(e,a)}}))}}if(l&2){if(f.componentShouldUpdate){var v=f.componentShouldUpdate(r,o,t);if(v===false&&!(l&16)){return}}if(!(l&16)){scheduleUpdate(i,false)}}}};var proxyComponent=function(e,t,r){var n,i;var a=e.prototype;if(t.i||BUILD.propChangeCallback){{if(e.watchers&&!t.U){t.U=e.watchers}if(e.deserializers&&!t.q){t.q=e.deserializers}if(e.serializers&&!t.W){t.W=e.serializers}}var o=Object.entries((n=t.i)!=null?n:{});o.map((function(e){var n=e[0],i=e[1][0];if(i&31||r&2&&i&32){var o=Object.getOwnPropertyDescriptor(a,n)||{},l=o.get,f=o.set;if(l)t.i[n][0]|=2048;if(f)t.i[n][0]|=4096;if(r&1||!l){Object.defineProperty(a,n,{get:function(){{if((t.i[n][0]&2048)===0){return getValue(this,n)}var e=getHostRef(this);var r=e?e.l:a;if(!r)return;return r[n]}},configurable:true,enumerable:true})}Object.defineProperty(a,n,{set:function(e){var a=this;var o=getHostRef(this);if(!o){return}if(f){var l=i&32?this[n]:o.$hostElement$[n];if(typeof l==="undefined"&&o.o.get(n)){e=o.o.get(n)}f.apply(this,[parsePropertyValue(e,i)]);e=i&32?this[n]:o.$hostElement$[n];setValue(this,n,e,t);return}{if((r&1)===0||(t.i[n][0]&4096)===0){setValue(this,n,e,t);if(r&1&&!o.l){o.C.push((function(){if(t.i[n][0]&4096&&o.l[n]!==o.o.get(n)){o.l[n]=e}}))}return}var u=function(){var r=o.l[n];if(!o.o.get(n)&&r){o.o.set(n,r)}o.l[n]=parsePropertyValue(e,i);setValue(a,n,o.l[n],t)};if(o.l){u()}else{o.C.push((function(){u()}))}}}})}else if(r&1&&i&64){Object.defineProperty(a,n,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var r;var i=getHostRef(this);return(r=i==null?void 0:i.p)==null?void 0:r.then((function(){var t;return(t=i.l)==null?void 0:t[n].apply(t,e)}))}})}}));if(r&1){var l=new Map;a.attributeChangedCallback=function(e,r,n){var i=this;plt.jmp((function(){var f;var u=l.get(e);var s=getHostRef(i);if(i.hasOwnProperty(u)&&BUILD.lazyLoad){n=i[u];delete i[u]}if(a.hasOwnProperty(u)&&typeof i[u]==="number"&&i[u]==n){return}else if(u==null){var c=s==null?void 0:s.u;if(s&&c&&!(c&8)&&n!==r){var v=s.l;var d=(f=t.U)==null?void 0:f[e];d==null?void 0:d.forEach((function(t){var i=Object.entries(t)[0],a=i[0],o=i[1];if(v[a]!=null&&(c&128||o&1)){v[a].call(v,n,r,e)}}))}return}var p=o.find((function(e){var t=e[0];return t===u}));if(p&&p[1][0]&4){n=n===null||n==="false"?false:true}var h=Object.getOwnPropertyDescriptor(a,u);if(n!=i[u]&&(!h.get||!!h.set)){i[u]=n}}))};e.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=t.U)!=null?i:{}),true),o.filter((function(e){var t=e[0],r=e[1];return r[0]&31})).map((function(e){var r=e[0],n=e[1];var i;var a=n[1]||r;l.set(a,r);if(n[0]&512){(i=t.D)==null?void 0:i.push([r,a])}return a})),true)))}}return e};var initializeComponent=function(e,t,r,n){return __awaiter(void 0,void 0,void 0,(function(){var n,i,a,o,l,f,u,s,c,v,d,p,h;return __generator(this,(function(m){switch(m.label){case 0:m.trys.push([0,7,,8]);if(!((t.u&32)===0))return[3,6];t.u|=32;i=r.T;if(!i)return[3,4];a=loadModule(r,t);if(!(a&&"then"in a))return[3,2];o=uniqueTime();return[4,a];case 1:n=m.sent();o();return[3,3];case 2:n=a;m.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(r.N,"#").concat(t.X,'" was not found'))}if(!n.isProxied){{r.U=n.watchers;r.W=n.serializers;r.q=n.deserializers}proxyComponent(n,r,2);n.isProxied=true}l=createTime("createInstance",r.N);{t.u|=8}try{new n(t)}catch(t){consoleError(t,e)}{t.u&=-9}{t.u|=128}l();f=r.u&4;if(!f){fireConnectedCallback(t.l,e)}else{t.M=true}return[3,5];case 4:n=e.constructor;u=e.localName;customElements.whenDefined(u).then((function(){return t.u|=128}));m.label=5;case 5:if(n&&n.style){s=void 0;if(typeof n.style==="string"){s=n.style}c=getScopeId(r);if(!styles.has(c)||BUILD.hotModuleReplacement){v=createTime("registerStyles",r.N);registerStyle(c,s,!!(r.u&1));v()}}m.label=6;case 6:d=t.F;p=function(){return scheduleUpdate(t,true)};if(d&&d["s-rc"]){d["s-rc"].push(p)}else{p()}return[3,8];case 7:h=m.sent();consoleError(h,e);if(t.B){t.B();t.B=void 0}if(t.S){t.S(e)}return[3,8];case 8:return[2]}}))}))};var fireConnectedCallback=function(e,t){{safeCall(e,"connectedCallback",void 0,t)}};var connectedCallback=function(e){if((plt.u&1)===0){var t=getHostRef(e);if(!t){return}var r=t.t;var n=createTime("connectedCallback",r.N);if(!(t.u&1)){t.u|=1;{if(r.u&(4|8)){setContentReference(e)}}{var i=e;while(i=i.parentNode||i.host){if(i["s-p"]){attachToAncestor(t,t.F=i);break}}}if(r.i){Object.entries(r.i).map((function(t){var r=t[0],n=t[1][0];if(n&31&&r in e&&e[r]!==Object.prototype[r]){var i=e[r];delete e[r];e[r]=i}}))}{initializeComponent(e,t,r)}}else{if(t==null?void 0:t.l){fireConnectedCallback(t.l,e)}else if(t==null?void 0:t.m){t.m.then((function(){return fireConnectedCallback(t.l,e)}))}}n()}};var setContentReference=function(e){if(!win.document){return}var t=e["s-cr"]=win.document.createComment("");t["s-cn"]=true;insertBefore(e,t,e.firstChild)};var disconnectInstance=function(e,t){{safeCall(e,"disconnectedCallback",void 0,t||e)}};var disconnectedCallback=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t;return __generator(this,(function(r){if((plt.u&1)===0){t=getHostRef(e);if(t==null?void 0:t.l){disconnectInstance(t.l,e)}else if(t==null?void 0:t.m){t.m.then((function(){return disconnectInstance(t.l,e)}))}}if(rootAppliedStyles.has(e)){rootAppliedStyles.delete(e)}if(e.shadowRoot&&rootAppliedStyles.has(e.shadowRoot)){rootAppliedStyles.delete(e.shadowRoot)}return[2]}))}))};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r;if(!win.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var n=createTime();var i=[];var a=t.exclude||[];var o=win.customElements;var l=win.document.head;var f=l.querySelector("meta[charset]");var u=win.document.createElement("style");var s=[];var c;var v=true;Object.assign(plt,t);plt._=new URL(t.resourcesUrl||"./",win.document.baseURI).href;var d=false;e.map((function(e){e[1].map((function(t){var r,n,l;var f={u:t[0],N:t[1],i:t[2],G:t[3]};if(f.u&4){d=true}{f.i=t[2]}{f.D=[]}{f.U=(r=t[4])!=null?r:{};f.W=(n=t[5])!=null?n:{};f.q=(l=t[6])!=null?l:{}}var u=transformTag(f.N);var p=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;r.hasRegisteredEventListeners=false;t=r;registerHost(t,f);return r}t.prototype.connectedCallback=function(){var e=this;var t=getHostRef(this);if(!t){return}if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true}if(c){clearTimeout(c);c=null}if(v){s.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}));plt.raf((function(){var t;var r=getHostRef(e);if(!r){return}var n=s.findIndex((function(t){return t===e}));if(n>-1){s.splice(n,1)}if(((t=r==null?void 0:r.$)==null?void 0:t.I)instanceof Node&&!r.$.I.isConnected){delete r.$.I}}))};t.prototype.componentOnReady=function(){var e;return(e=getHostRef(this))==null?void 0:e.m};return t}(HTMLElement);if(!(f.u&1)&&f.u&256){{patchPseudoShadowDom(p.prototype)}}else{patchCloneNode(p.prototype)}f.T=e[0];if(!a.includes(u)&&!o.get(u)){i.push(u);o.define(u,proxyComponent(p,f,1))}}))}));if(i.length>0){if(d){u.textContent+=SLOT_FB_CSS}{u.textContent+=i.sort()+HYDRATED_CSS}if(u.innerHTML.length){u.setAttribute("data-styles","");var p=(r=plt.k)!=null?r:queryNonceMetaTagContent(win.document);if(p!=null){u.setAttribute("nonce",p)}l.insertBefore(u,f?f.nextSibling:l.firstChild)}}v=false;if(s.length){s.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return c=setTimeout(appDidLoad,30)}))}}n()};var setNonce=function(e){return plt.k=e};function transformTag(e){return e}export{H,Host as a,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _mergeNamespaces(t,n){n.forEach((function(n){n&&typeof n!=="string"&&!Array.isArray(n)&&Object.keys(n).forEach((function(r){if(r!=="default"&&!(r in t)){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,e.get?e:{enumerable:true,get:function(){return n[r]}})}}))}));return Object.freeze(t)}var dist={};var constants={};var hasRequiredConstants;function requireConstants(){if(hasRequiredConstants)return constants;hasRequiredConstants=1;Object.defineProperty(constants,"__esModule",{value:true});constants.BLANK_URL=constants.relativeFirstCharacters=constants.whitespaceEscapeCharsRegex=constants.urlSchemeRegex=constants.ctrlCharactersRegex=constants.htmlCtrlEntityRegex=constants.htmlEntitiesRegex=constants.invalidProtocolRegex=void 0;constants.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;constants.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;constants.htmlCtrlEntityRegex=/&(newline|tab);/gi;constants.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;constants.urlSchemeRegex=/^.+(:|:)/gim;constants.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;constants.relativeFirstCharacters=[".","/"];constants.BLANK_URL="about:blank";return constants}var hasRequiredDist;function requireDist(){if(hasRequiredDist)return dist;hasRequiredDist=1;Object.defineProperty(dist,"__esModule",{value:true});dist.sanitizeUrl=a;var t=requireConstants();function n(n){return t.relativeFirstCharacters.indexOf(n[0])>-1}function r(n){var r=n.replace(t.ctrlCharactersRegex,"");return r.replace(t.htmlEntitiesRegex,(function(t,n){return String.fromCharCode(n)}))}function e(t){return URL.canParse(t)}function s(t){try{return decodeURIComponent(t)}catch(n){return t}}function a(a){if(!a){return t.BLANK_URL}var i;var u=s(a.trim());do{u=r(u).replace(t.htmlCtrlEntityRegex,"").replace(t.ctrlCharactersRegex,"").replace(t.whitespaceEscapeCharsRegex,"").trim();u=s(u);i=u.match(t.ctrlCharactersRegex)||u.match(t.htmlEntitiesRegex)||u.match(t.htmlCtrlEntityRegex)||u.match(t.whitespaceEscapeCharsRegex)}while(i&&i.length>0);var o=u;if(!o){return t.BLANK_URL}if(n(o)){return o}var c=o.trimStart();var f=c.match(t.urlSchemeRegex);if(!f){return o}var d=f[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(d)){return t.BLANK_URL}var v=c.replace(/\\/g,"/");if(d==="mailto:"||d.includes("://")){return v}if(d==="http:"||d==="https:"){if(!e(v)){return t.BLANK_URL}var l=new URL(v);l.protocol=l.protocol.toLowerCase();l.hostname=l.hostname.toLowerCase();return l.toString()}return v}return dist}var distExports=requireDist();var index=_mergeNamespaces({__proto__:null},[distExports]);export{index as i};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function a(e){try{u(i.next(e))}catch(e){o(e)}}function s(e){try{u(i["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):r(e.value).then(a,s)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=s(0),a["throw"]=s(1),a["return"]=s(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(s){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(i=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{b as bootstrapLazy}from"./index-DgFiTd6X.js";export{s as setNonce}from"./index-DgFiTd6X.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var defineCustomElements=function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(typeof window==="undefined")return[2,undefined];return[4,globalScripts()];case 1:e.sent();return[2,bootstrapLazy([["bds-banner",[[260,"bds-banner",{idComponent:[1,"id-component"],variant:[1],enableClose:[4,"enable-close"],isClosing:[32],isOpen:[32],closeBanner:[64]}]]],["bds-typography",[[260,"bds-typography",{variant:[513],size:[513],state:[513],customClass:[1,"custom-class"],element:[1],align:[1],ellipsis:[4],maxLines:[2,"max-lines"],tooltipText:[1,"tooltip-text"],isRequired:[516,"is-required"],htmlFor:[1,"html-for"],href:[1],target:[1],isDownloadable:[4,"is-downloadable"],filename:[1],sanitizedHref:[32]},null,{href:[{updateSanitizedHref:0}]}]]],["my-component",[[0,"my-component",{first:[1],middle:[1],last:[1]}]]]],t)]}}))}))};export{defineCustomElements};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as registerInstance,h}from"./index-DgFiTd6X.js";var myComponentCss=function(){return":host{display:block}"};var MyComponent=function(){function n(n){registerInstance(this,n);this.first="";this.middle="";this.last=""}n.prototype.render=function(){return h("div",{key:"2f3775c7b3d8475826a01101110bd2876a57f2cb"}," Hello, World! I'm Stencil 'Don't call me a framework' JS")};return n}();MyComponent.style=myComponentCss();export{MyComponent as my_component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm-es5/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Boreal Design System - CSS Reset
|
|
3
|
+
* Minimal reset for consistent cross-browser rendering
|
|
4
|
+
*/
|
|
5
|
+
*,
|
|
6
|
+
*::before,
|
|
7
|
+
*::after {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
* {
|
|
12
|
+
margin: 0;
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
html {
|
|
17
|
+
-webkit-font-smoothing: antialiased;
|
|
18
|
+
-moz-osx-font-smoothing: grayscale;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
line-height: 1.5;
|
|
23
|
+
-webkit-text-size-adjust: 100%;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
img,
|
|
27
|
+
picture,
|
|
28
|
+
video,
|
|
29
|
+
canvas,
|
|
30
|
+
svg {
|
|
31
|
+
display: block;
|
|
32
|
+
max-width: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
input,
|
|
36
|
+
button,
|
|
37
|
+
textarea,
|
|
38
|
+
select {
|
|
39
|
+
font: inherit;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
p,
|
|
43
|
+
h1,
|
|
44
|
+
h2,
|
|
45
|
+
h3,
|
|
46
|
+
h4,
|
|
47
|
+
h5,
|
|
48
|
+
h6 {
|
|
49
|
+
overflow-wrap: break-word;
|
|
50
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
@use "../../../dist/stencil/index" as *;
|
|
2
|
+
|
|
3
|
+
.heading-4xl {
|
|
4
|
+
font-weight: $boreal-typography-font-weight-light;
|
|
5
|
+
font-size: $boreal-typography-font-size-4xl;
|
|
6
|
+
line-height: $boreal-typography-line-height-4xl;
|
|
7
|
+
}
|
|
8
|
+
.heading-3xl {
|
|
9
|
+
font-weight: $boreal-typography-font-weight-light;
|
|
10
|
+
font-size: $boreal-typography-font-size-3xl;
|
|
11
|
+
line-height: $boreal-typography-line-height-3xl;
|
|
12
|
+
}
|
|
13
|
+
.heading-2xl {
|
|
14
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
15
|
+
font-size: $boreal-typography-font-size-2xl;
|
|
16
|
+
line-height: $boreal-typography-line-height-2xl;
|
|
17
|
+
}
|
|
18
|
+
.heading-xl {
|
|
19
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
20
|
+
font-size: $boreal-typography-font-size-xl;
|
|
21
|
+
line-height: $boreal-typography-line-height-xl;
|
|
22
|
+
}
|
|
23
|
+
.heading-lg {
|
|
24
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
25
|
+
font-size: $boreal-typography-font-size-lg;
|
|
26
|
+
line-height: $boreal-typography-line-height-lg;
|
|
27
|
+
}
|
|
28
|
+
.heading-md {
|
|
29
|
+
font-weight: $boreal-typography-font-weight-semibold;
|
|
30
|
+
font-size: $boreal-typography-font-size-md;
|
|
31
|
+
line-height: $boreal-typography-line-height-md;
|
|
32
|
+
}
|
|
33
|
+
.heading-sm {
|
|
34
|
+
font-weight: $boreal-typography-font-weight-semibold;
|
|
35
|
+
font-size: $boreal-typography-font-size-sm;
|
|
36
|
+
line-height: $boreal-typography-line-height-sm;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.display-sm {
|
|
40
|
+
font-size: $boreal-typography-font-size-xl;
|
|
41
|
+
line-height: $boreal-typography-line-height-xl;
|
|
42
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
43
|
+
}
|
|
44
|
+
.display-md {
|
|
45
|
+
font-size: $boreal-typography-font-size-2xl;
|
|
46
|
+
line-height: $boreal-typography-line-height-2xl;
|
|
47
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
48
|
+
}
|
|
49
|
+
.display-lg {
|
|
50
|
+
font-size: $boreal-typography-font-size-3xl;
|
|
51
|
+
line-height: $boreal-typography-line-height-3xl;
|
|
52
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
53
|
+
}
|
|
54
|
+
.display-xl {
|
|
55
|
+
font-size: $boreal-typography-font-size-4xl;
|
|
56
|
+
line-height: $boreal-typography-line-height-4xl;
|
|
57
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
58
|
+
}
|
|
59
|
+
.display-xs {
|
|
60
|
+
font-size: $boreal-typography-font-size-xs;
|
|
61
|
+
line-height: $boreal-typography-line-height-xs;
|
|
62
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.label-lg {
|
|
66
|
+
font-size: $boreal-typography-font-size-lg;
|
|
67
|
+
font-weight: $boreal-typography-font-weight-semibold;
|
|
68
|
+
line-height: $boreal-typography-line-height-md;
|
|
69
|
+
color: $boreal-text-default-darker;
|
|
70
|
+
}
|
|
71
|
+
.label-md {
|
|
72
|
+
font-size: $boreal-typography-font-size-md;
|
|
73
|
+
font-weight: $boreal-typography-font-weight-semibold;
|
|
74
|
+
line-height: $boreal-typography-line-height-md;
|
|
75
|
+
color: $boreal-text-default-darker;
|
|
76
|
+
}
|
|
77
|
+
.label-sm {
|
|
78
|
+
font-size: $boreal-typography-font-size-sm;
|
|
79
|
+
font-weight: $boreal-typography-font-weight-semibold;
|
|
80
|
+
line-height: $boreal-typography-line-height-sm;
|
|
81
|
+
color: $boreal-text-default-darker;
|
|
82
|
+
}
|
|
83
|
+
.label-xs {
|
|
84
|
+
font-size: $boreal-typography-font-size-xs;
|
|
85
|
+
font-weight: $boreal-typography-font-weight-semibold;
|
|
86
|
+
line-height: $boreal-typography-line-height-xs;
|
|
87
|
+
color: $boreal-text-default-darker;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.support-text {
|
|
91
|
+
font-size: $boreal-typography-font-size-sm;
|
|
92
|
+
line-height: $boreal-typography-line-height-xs;
|
|
93
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
94
|
+
}
|
|
95
|
+
.code {
|
|
96
|
+
font-family: $boreal-typography-font-family-secondary;
|
|
97
|
+
font-size: $boreal-typography-font-size-xs;
|
|
98
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
99
|
+
color: $boreal-text-default;
|
|
100
|
+
line-height: $boreal-typography-line-height-md;
|
|
101
|
+
overflow-wrap: break-word;
|
|
102
|
+
|
|
103
|
+
background-color: $boreal-ui-base-light;
|
|
104
|
+
padding: $boreal-spacing-3xs $boreal-spacing-xs;
|
|
105
|
+
border-radius: $boreal-radius-xs;
|
|
106
|
+
|
|
107
|
+
display: inline;
|
|
108
|
+
box-decoration-break: clone;
|
|
109
|
+
-webkit-box-decoration-break: clone;
|
|
110
|
+
}
|
|
111
|
+
.caption {
|
|
112
|
+
font-size: $boreal-typography-font-size-xs;
|
|
113
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
114
|
+
line-height: $boreal-typography-line-height-md;
|
|
115
|
+
color: $boreal-text-default-light;
|
|
116
|
+
}
|
|
117
|
+
.helper-text {
|
|
118
|
+
font-size: $boreal-typography-font-size-xs;
|
|
119
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
120
|
+
line-height: $boreal-typography-line-height-sm;
|
|
121
|
+
color: $boreal-text-default-light;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.link {
|
|
125
|
+
font-size: $boreal-typography-font-size-sm;
|
|
126
|
+
font-weight: $boreal-typography-font-weight-regular;
|
|
127
|
+
line-height: $boreal-typography-line-height-md;
|
|
128
|
+
color: $boreal-text-primary-base;
|
|
129
|
+
text-decoration: none;
|
|
130
|
+
|
|
131
|
+
&:hover {
|
|
132
|
+
text-decoration: underline;
|
|
133
|
+
}
|
|
134
|
+
&:visited {
|
|
135
|
+
color: $boreal-text-primary-base;
|
|
136
|
+
}
|
|
137
|
+
&:active {
|
|
138
|
+
color: $boreal-text-primary-dark;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&-md {
|
|
142
|
+
@extend .link;
|
|
143
|
+
font-size: $boreal-typography-font-size-md;
|
|
144
|
+
line-height: $boreal-typography-line-height-md;
|
|
145
|
+
}
|
|
146
|
+
&-sm {
|
|
147
|
+
@extend .link;
|
|
148
|
+
font-size: $boreal-typography-font-size-sm;
|
|
149
|
+
line-height: $boreal-typography-line-height-sm;
|
|
150
|
+
}
|
|
151
|
+
&-xs {
|
|
152
|
+
@extend .link;
|
|
153
|
+
font-size: $boreal-typography-font-size-xs;
|
|
154
|
+
line-height: $boreal-typography-line-height-xs;
|
|
155
|
+
}
|
|
156
|
+
}
|