@swisspost/design-system-components 7.4.1 → 8.1.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/dist/cjs/{index-f32e5185.js → index-a1440961.js} +15 -2
- package/dist/cjs/{index-1cc8e4e1.js → index-baad16da.js} +8 -17
- package/dist/cjs/index.cjs.js +18 -20
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-71dcbbc9.js → package-fd539ea9.js} +1 -1
- package/dist/cjs/{post-accordion-2e943f0a.js → post-accordion-bebb0498.js} +2 -2
- package/dist/cjs/{post-accordion-item-d1fcd3f9.js → post-accordion-item-b15bcbb9.js} +4 -4
- package/dist/cjs/post-accordion-item.cjs.entry.js +4 -5
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-alert-966b3652.js → post-alert-4a1ab7e3.js} +9 -10
- package/dist/cjs/post-alert.cjs.entry.js +4 -5
- package/dist/cjs/{post-card-control-e2cf1596.js → post-card-control-c363c793.js} +4 -4
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/post-collapsible-trigger-b82b368e.js +206 -0
- package/dist/cjs/{post-collapsible-trigger.cjs.entry.js → post-collapsible_2.cjs.entry.js} +7 -5
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/{post-icon-6985373c.js → post-icon-36f7a65e.js} +5 -6
- package/dist/cjs/post-icon.cjs.entry.js +4 -5
- package/dist/cjs/{post-popover-1282c9b2.js → post-popover-eb936464.js} +3 -3
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-popovercontainer-776f4985.js → post-popovercontainer-ba97a4b4.js} +8 -9
- package/dist/cjs/post-popovercontainer.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-98917b60.js → post-rating-1df2edf5.js} +3 -3
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-63ea6bb6.js → post-tab-header-52ce1af4.js} +3 -3
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-01d55249.js → post-tab-panel-e94c9c58.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-7ec0c376.js → post-tabs-af38f271.js} +3 -3
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-92eaefd1.js → post-tag-1dcddcae.js} +3 -3
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-tooltip-69ba6116.js → post-tooltip-1e8d5f4e.js} +4 -4
- package/dist/cjs/post-tooltip.cjs.entry.js +4 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +1 -1
- package/dist/collection/components/post-alert/post-alert.css +1 -1
- package/dist/collection/components/post-alert/post-alert.js +3 -3
- package/dist/collection/components/post-card-control/post-card-control.js +2 -2
- package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +14 -19
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-popover/post-popover.js +2 -2
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +3 -3
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +1 -1
- package/dist/collection/components/post-tag/post-tag.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
- package/dist/collection/utils/get-root.js +7 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +9 -3
- package/dist/components/post-alert2.js +4 -4
- package/dist/components/post-card-control2.js +2 -2
- package/dist/components/post-collapsible-trigger2.js +22 -10
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-popover2.js +1 -1
- package/dist/components/post-popovercontainer2.js +6 -7
- package/dist/components/post-rating2.js +1 -1
- package/dist/components/post-tab-header2.js +1 -1
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +1 -1
- package/dist/components/post-tag2.js +1 -1
- package/dist/components/post-tooltip2.js +1 -1
- package/dist/docs.json +18 -17
- package/dist/esm/{index-9ace3232.js → index-189d3985.js} +8 -17
- package/dist/esm/{index-29d17d6d.js → index-d1eba94c.js} +14 -2
- package/dist/esm/index.js +17 -19
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-130b6199.js → package-8c58ace7.js} +1 -1
- package/dist/esm/{post-accordion-01612666.js → post-accordion-6b2f2b73.js} +2 -2
- package/dist/esm/{post-accordion-item-e2e83306.js → post-accordion-item-c8614cda.js} +4 -4
- package/dist/esm/post-accordion-item.entry.js +4 -5
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-alert-e7b70927.js → post-alert-de5e60d3.js} +7 -8
- package/dist/esm/post-alert.entry.js +4 -5
- package/dist/esm/{post-card-control-262467c4.js → post-card-control-38a302fe.js} +4 -4
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/post-collapsible-trigger-221d58c1.js +203 -0
- package/dist/esm/post-collapsible_2.entry.js +7 -0
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/{post-icon-46602aa6.js → post-icon-0f2f4f9b.js} +4 -5
- package/dist/esm/post-icon.entry.js +4 -5
- package/dist/esm/{post-popover-927903a2.js → post-popover-2e6ada87.js} +3 -3
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-popovercontainer-348970cd.js → post-popovercontainer-0c396235.js} +8 -9
- package/dist/esm/post-popovercontainer.entry.js +3 -3
- package/dist/esm/{post-rating-a1832399.js → post-rating-fcf19507.js} +3 -3
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-9d6e4d52.js → post-tab-header-75337bbc.js} +3 -3
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-0870e77c.js → post-tab-panel-1ca4f5c9.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-3b8719a9.js → post-tabs-77ac9eee.js} +3 -3
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-695a9337.js → post-tag-9741c642.js} +3 -3
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-tooltip-8486e928.js → post-tooltip-c69b7162.js} +4 -4
- package/dist/esm/post-tooltip.entry.js +4 -5
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-02d1f275.js +1 -0
- package/dist/post-components/{p-c6e4522d.js → p-1e374a42.js} +1 -1
- package/dist/post-components/p-28e17fd1.entry.js +1 -0
- package/dist/post-components/{p-feb6ff21.js → p-2c424cd4.js} +1 -1
- package/dist/post-components/p-32713474.js +1 -0
- package/dist/post-components/{p-458d8198.js → p-38abadc5.js} +2 -2
- package/dist/post-components/p-6dd5d5ba.entry.js +1 -0
- package/dist/post-components/{p-a747b0b7.js → p-726fec57.js} +1 -1
- package/dist/post-components/p-7301b124.entry.js +1 -0
- package/dist/post-components/{p-33dd9887.js → p-7bdec425.js} +1 -1
- package/dist/post-components/p-7fc15b07.entry.js +1 -0
- package/dist/post-components/{p-acec5895.js → p-80f33a98.js} +1 -1
- package/dist/post-components/p-8126cca3.entry.js +1 -0
- package/dist/post-components/{p-48fcde73.js → p-88fc0fa3.js} +1 -1
- package/dist/post-components/{p-b91ff66f.js → p-8a781b6e.js} +1 -1
- package/dist/post-components/p-8b86cde6.entry.js +1 -0
- package/dist/post-components/p-95b7403d.entry.js +1 -0
- package/dist/post-components/p-a0187d40.entry.js +1 -0
- package/dist/post-components/p-a5c8a3de.js +1 -0
- package/dist/post-components/p-a931e3c6.entry.js +1 -0
- package/dist/post-components/p-b5f7d9e5.entry.js +1 -0
- package/dist/post-components/p-b9176139.entry.js +1 -0
- package/dist/post-components/{p-8c7f0075.js → p-c0f265c8.js} +2 -2
- package/dist/post-components/p-c88f169d.entry.js +1 -0
- package/dist/post-components/p-d2753c4a.js +1 -0
- package/dist/post-components/p-d36a5db5.js +1 -0
- package/dist/post-components/p-e4acf838.js +1 -0
- package/dist/post-components/p-e6bc1a0c.entry.js +1 -0
- package/dist/post-components/p-ea2954f3.entry.js +1 -0
- package/dist/post-components/p-ed2b2d33.js +1 -0
- package/dist/post-components/p-f91c0e1b.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +6 -5
- package/dist/types/utils/get-root.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +13 -13
- package/dist/cjs/check-type-64af82a9.js +0 -16
- package/dist/cjs/post-collapsible-cff3bb05.js +0 -85
- package/dist/cjs/post-collapsible-trigger-e5616d29.js +0 -115
- package/dist/cjs/post-collapsible.cjs.entry.js +0 -15
- package/dist/esm/check-type-8828dbe4.js +0 -14
- package/dist/esm/post-collapsible-301ba5ad.js +0 -83
- package/dist/esm/post-collapsible-trigger-964d5490.js +0 -113
- package/dist/esm/post-collapsible-trigger.entry.js +0 -6
- package/dist/esm/post-collapsible.entry.js +0 -7
- package/dist/post-components/p-0026e697.js +0 -1
- package/dist/post-components/p-3d1fd819.js +0 -1
- package/dist/post-components/p-4806190f.entry.js +0 -1
- package/dist/post-components/p-49100c44.js +0 -1
- package/dist/post-components/p-4a3f67ab.js +0 -1
- package/dist/post-components/p-50fdd908.js +0 -1
- package/dist/post-components/p-51bb8d8c.entry.js +0 -1
- package/dist/post-components/p-5bfe2065.entry.js +0 -1
- package/dist/post-components/p-5cdfdfed.entry.js +0 -1
- package/dist/post-components/p-627e0231.js +0 -1
- package/dist/post-components/p-6cac6cc0.entry.js +0 -1
- package/dist/post-components/p-6f325f35.entry.js +0 -1
- package/dist/post-components/p-7755c753.entry.js +0 -1
- package/dist/post-components/p-811910a2.js +0 -1
- package/dist/post-components/p-8386ab9c.js +0 -1
- package/dist/post-components/p-8dc5e169.entry.js +0 -1
- package/dist/post-components/p-9828b437.js +0 -1
- package/dist/post-components/p-ac500761.js +0 -1
- package/dist/post-components/p-b1b2f9ee.entry.js +0 -1
- package/dist/post-components/p-bb764dd3.entry.js +0 -1
- package/dist/post-components/p-bdc9668f.entry.js +0 -1
- package/dist/post-components/p-c860a676.entry.js +0 -1
- package/dist/post-components/p-e1456b01.entry.js +0 -1
- package/dist/post-components/p-f31d7fcb.entry.js +0 -1
- package/dist/post-components/p-f52a3908.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion}from"./p-2c424cd4.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";import"./p-247a1668.js";import"./p-611b3c41.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as r,g as a}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as r,g as a}from"./p-c0f265c8.js";import{v as e}from"./p-a5c8a3de.js";const o=class{constructor(i){t(this,i),this.postInput=s(this,"postInput",7),this.postChange=s(this,"postChange",7),this.hasChanged=!1,this.hoveredIndex=void 0,this.label="Rating",this.stars=5,this.currentRating=0,this.readonly=!1,this.keydownHandler=this.keydownHandler.bind(this),this.blurHandler=this.blurHandler.bind(this),this.hoverHandler=this.hoverHandler.bind(this)}update(t){this.readonly||t<0||t>this.stars||(this.currentRating=this.currentRating!==t?t:0,this.postInput.emit({value:this.currentRating}),this.hasChanged=!0)}keydownHandler(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault(),this.update(this.currentRating+1);break;case"Home":t.preventDefault(),this.update(0);break;case"End":t.preventDefault(),this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}}blurHandler(){this.hasChanged&&(this.postChange.emit({value:this.currentRating}),this.hasChanged=!1)}hoverHandler(t,s){this.readonly||("mouseenter"===s.type?this.hoveredIndex=t:"mouseleave"===s.type&&(this.hoveredIndex=void 0))}render(){return i(r,{key:"ae0484c022555a4a5ed0343cc060b7076a1c581e","data-version":e},i("div",{key:"3765eaaccec1dd709b28d8a63b54fc0ed69b4c15",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":`${this.currentRating} out of ${this.stars}`,"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map(((t,s)=>i("div",{key:`star-${t}`,"aria-hidden":"true",class:{star:!0,"before-hover":s<this.hoveredIndex,active:s<Math.round(this.currentRating),hover:s===this.hoveredIndex,"after-active":s>this.hoveredIndex&&s<this.currentRating},onClick:()=>this.update(s+1),onMouseEnter:t=>this.hoverHandler(s,t),onMouseLeave:t=>this.hoverHandler(s,t)},i("post-icon",{name:"2062",class:"stroke"}),i("post-icon",{name:"2574",class:"fill"}))))))}get host(){return a(this)}};o.style='/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}';export{o as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as o,H as t,g as i}from"./p-
|
|
1
|
+
import{r as e,h as o,H as t,g as i}from"./p-c0f265c8.js";import{v as s}from"./p-a5c8a3de.js";import{g as r}from"./p-6adeaa6c.js";let n=0;const a="data-popover-target",c=e=>{const o=e.target;if(!o||!("getAttribute"in o))return;const t=o.getAttribute(a);if(!t||"key"in e&&"Enter"!==e.key)return;const i=document.getElementById(t);null==i||i.toggle(o)},l=r(a,(e=>{const o=e.hasAttribute(a);e.setAttribute("aria-expanded",o?"false":null)})),d=class{constructor(o){e(this,o),this.placement="top",this.closeButtonCaption=void 0,this.arrow=!0,this.localBeforeToggleHandler=this.beforeToggleHandler.bind(this)}connectedCallback(){0===n&&(window.addEventListener("pointerup",c),window.addEventListener("keydown",c),l.observe(document.body,{subtree:!0,childList:!0,attributeFilter:[a]})),n++,this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}componentDidLoad(){this.popoverRef.addEventListener("beforetoggle",this.localBeforeToggleHandler)}disconnectedCallback(){n--,0===n&&(window.removeEventListener("click",c),window.removeEventListener("keydown",c),l.disconnect()),this.popoverRef.removeEventListener("beforetoggle",this.localBeforeToggleHandler),this.triggers.forEach((e=>e.removeAttribute("aria-expanded")))}async show(e){this.popoverRef.show(e),e.setAttribute("aria-expanded","true")}async hide(){this.popoverRef.hide(),this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}async toggle(e,o){const t=await this.popoverRef.toggle(e,o);this.triggers.forEach((e=>e.setAttribute("aria-expanded","false"))),e.setAttribute("aria-expanded",`${t}`)}get triggers(){return document.querySelectorAll(`[${a}="${this.host.id}"]`)}beforeToggleHandler(){this.triggers.forEach((e=>e.setAttribute("aria-expanded","false")))}render(){return o(t,{key:"97db4a92db81f3a84ca272af8f79981cf181024d","data-version":s},o("post-popovercontainer",{key:"291247845dc11572a5722aa949c1dfa74e521edd",arrow:this.arrow,placement:this.placement,ref:e=>this.popoverRef=e},o("div",{key:"92137bf8c92633c8578c89c7b0c8252b0b59e2fa",class:"popover-container"},o("div",{key:"06f79f59e90ca439b552380af0e151084adadf03",class:"popover-content"},o("slot",{key:"c37c742ac7cf24f9440ac3b862761fcd937f7658"})),o("button",{key:"0e6f316574720e0f901af56e0dbb99f86e36c5b4",class:"btn-close",onClick:()=>this.hide()},o("span",{key:"77c41e8e8df74649ce9ca21740c77e78336905e6",class:"visually-hidden"},this.closeButtonCaption)))))}get host(){return i(this)}};d.style="/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}*{box-sizing:border-box}:host{--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51;display:block}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.popover-container{display:flex;align-items:self-start;padding:.5em;min-width:160px;max-width:280px}@media (max-width: 599.98px){.popover-container{max-width:100%}}.popover-content{padding:.5em;flex-grow:1}.btn-close{color:inherit}";export{d as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_collapsible,a as post_collapsible_trigger}from"./p-d36a5db5.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";import"./p-f91c0e1b.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-b095519d.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_popover}from"./p-8a781b6e.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";import"./p-6adeaa6c.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_rating}from"./p-88fc0fa3.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o="8.1.0";export{o as v}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tag}from"./p-7bdec425.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tabs}from"./p-726fec57.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";import"./p-2737eaf5.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_panel}from"./p-02d1f275.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],f="undefined"!=typeof window?window:{},u=f.document||{head:{}},d={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],b=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.o?k(w):d.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{$(v),$(y),(m=v.length>0)&&d.raf(w)},k=e=>h().then(e),g=b(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function C(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>R,ok:()=>O,unwrap:()=>T,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function R(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},D=(e,t,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?L(null,o):o),r=i)};if(a(n),t){t.key&&(l=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,W);const f=L(e,null);return f.u=t,c.length>0&&(f.h=c),f.p=l,f.m=s,f},L=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},W={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(H)},F=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),D(e.vtag,t,...e.vchildren||[])}const t=L(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},U=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=U(e);return{emit:e=>G(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const o=d.ce(t,n);return e.dispatchEvent(o),o},V=new WeakMap,_=e=>"sc-"+e.k,z=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=I(n),s=I(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(f,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&d.rel(e,t,n,l),o&&d.ael(e,t,o,l)}}},B=/\s/,I=e=>e?e.split(B):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||S,s=t.u||S;for(const e of X(Object.keys(l)))e in s||z(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))z(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let i,r,c,a=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=u.createTextNode(s.i);else if(1&s.o)i=s.$=u.createTextNode("");else if(i=s.$=u.createElement(!Y&&2&s.o?"slot-fb":s.v),Q(null,s,te),null!=M&&i["s-si"]!==M&&i.classList.add(i["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)r=ne(e,s,a,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=x,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),i},oe=(e,t)=>{d.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==P&&o["s-ol"]&&(me(ce(o),o,re(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}d.o&=-2},le=(e,t,n,o,l,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=ne(null,n,l,e),i&&(o[l].$=i,me(r,i,re(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},ie=(e,t,n=!1)=>e.v===t.v&&("slot"===e.v?e.m===t.m:!!n||e.p===t.p),re=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ae=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.v||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,a=0,f=0,u=t.length-1,d=t[0],h=t[u],p=o.length-1,m=o[0],v=o[p];for(;r<=u&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ie(d,m,l))ae(d,m,l),d=t[++r],m=o[++c];else if(ie(h,v,l))ae(h,v,l),h=t[--u],v=o[--p];else if(ie(d,v,l))"slot"!==d.v&&"slot"!==v.v||oe(d.$.parentNode,!1),ae(d,v,l),me(e,d.$,h.$.nextSibling),d=t[++r],v=o[--p];else if(ie(h,m,l))"slot"!==d.v&&"slot"!==v.v||oe(h.$.parentNode,!1),ae(h,m,l),me(e,h.$,d.$),h=t[--u],m=o[++c];else{for(a=-1,f=r;f<=u;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){a=f;break}a>=0?(i=t[a],i.v!==m.v?s=ne(t&&t[c],n,a,e):(ae(i,m,l),t[a]=void 0,s=i.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(d.$),s,re(d.$))}r>u?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,r,u)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):null!==l&&se(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(o.data=i)},fe=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}fe(e)}},ue=[],de=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(he(t,e)){let n=ue.find((e=>e.S===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(t["s-sh"]=l["s-hn"],ue.push({j:l,S:t})),t["s-sr"]&&ue.map((e=>{he(e.S,t["s-sn"])&&(n=ue.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ue.some((e=>e.S===t))||ue.push({S:t})}1===l.nodeType&&de(l)}},he=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ve=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ye=(e,t)=>{if(e.o|=16,!(4&e.o))return ve(e,e.O),g((()=>be(e,t)));e.o|=512},be=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.o|=256,e.R&&(e.R.map((([e,t])=>Ce(n,e,t))),e.R=void 0),o=Ce(n,"componentWillLoad")),o=$e(o,(()=>Ce(n,"componentWillRender"))),$e(o,(()=>ke(e,n,t)))},$e=(e,t)=>we(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),we=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ke=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=e,l=_(t),s=r.get(l);if(e=11===e.nodeType?e:u,s)if("string"==typeof s){let i,r=V.get(e=o.head||e);if(r||V.set(e,r=new Set),!r.has(l)){{i=u.createElement("style"),i.innerHTML=s;const t=null!=(n=d.P)?n:C(u);null!=t&&i.setAttribute("nonce",t),e.insertBefore(i,e.querySelector("link"))}4&t.o&&(i.innerHTML+=c),r&&r.add(l)}}else o.adoptedStyleSheets.includes(s)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,s]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ge(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>Se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ge=(e,t,n,o)=>{try{t=t.render&&t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,i;const r=e.$hostElement$,c=e.M,a=e.T||L(null,null),f=(e=>e&&e.v===N)(t)?t:D(null,null,t);if(P=r.tagName,n&&f.u)for(const e of Object.keys(f.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.u[e]=r[e]);if(f.v=null,f.o|=4,e.T=f,f.$=a.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),x=r["s-cr"],Z=!1,ae(a,f,n),d.o|=1,ee){de(f.$);for(const e of ue){const t=e.S;if(!t["s-ol"]){const e=u.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ue){const t=e.S,r=e.j;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Z&&fe(f.$),d.o&=-2,ue.length=0,x=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},Se=e=>{const t=e.$hostElement$,n=e.t,o=e.O;Ce(n,"componentDidRender"),64&e.o||(e.o|=64,Oe(t),Ce(n,"componentDidLoad"),e.A(t),o||je()),e.D(t),e.C&&(e.C(),e.C=void 0),512&e.o&&k((()=>ye(e,!1))),e.o&=-517},je=()=>{Oe(u.documentElement),k((()=>G(f,"appload",{detail:{namespace:"post-components"}})))},Ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Oe=e=>e.classList.add("hydrated"),Ee=(e,t,o)=>{var l,i;const r=e.prototype;if(64&t.o&&1&o&&a.forEach((e=>Object.defineProperty(r,e,{value(...t){const o=n(this),l=o.t;if(l){const n=l[e];"function"==typeof n&&n.call(l,...t)}else o.L.then((n=>{const o=n[e];"function"==typeof o&&o.call(n,...t)}))}}))),t.N||t.W||e.watchers){e.watchers&&!t.W&&(t.W=e.watchers);const c=Object.entries(null!=(l=t.N)?l:{});if(c.map((([e,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(o){((e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(t),a=i.o,f=i.t;if(o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(o,l.N[t][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.F.set(t,o),f)){if(l.W&&128&a){const e=l.W[t];e&&e.map((e=>{try{f[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&a)&&ye(i,!1)}})(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){d.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.W)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.W)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},Re=e=>{Ce(e,"connectedCallback")},Me=e=>{Ce(e,"disconnectedCallback")},xe=(e,o={})=>{var l;const a=[],h=o.exclude||[],m=f.customElements,v=u.head,y=v.querySelector("meta[charset]"),b=u.createElement("style"),$=[];let w,k=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],k:o[1],N:o[2],U:o[3]};4&c.o&&(g=!0),c.N=o[2],c.U=o[3],c.W=null!=(l=o[4])?l:{};const f=c.k,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,M:n,F:new Map};o.H=new Promise((e=>o.D=e)),o.L=new Promise((e=>o.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Pe(this,e,c.U)),w&&(clearTimeout(w),w=null),k?$.push(this):d.jmp((()=>(e=>{if(!(1&d.o)){const t=n(e),o=t.M,l=()=>{};if(1&t.o)Pe(e,t,o.U),(null==t?void 0:t.t)?Re(t.t):(null==t?void 0:t.L)&&t.L.then((()=>Re(t.t)));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.O=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.q){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.q;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.k}#${t.G}" was not found`);o.isProxied||(n.W=o.watchers,Ee(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,t.o|=128,l(),Re(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=_(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.O,c=()=>ye(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const e=n(this);e.V&&(e.V.map((e=>e())),e.V=void 0),(null==e?void 0:e.t)?Me(e.t):(null==e?void 0:e.L)&&e.L.then((()=>Me(e.t)))}})()))}componentOnReady(){return n(this).L}};64&c.o&&(v.formAssociated=!0),c.q=e[0],h.includes(f)||m.get(f)||(a.push(f),m.define(f,Ee(v,c,1)))}))})),a.length>0&&(g&&(b.textContent+=c),b.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(l=d.P)?l:C(u);null!=e&&b.setAttribute("nonce",e),v.insertBefore(b,y?y.nextSibling:v.firstChild)}k=!1,$.length?$.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(je,30)))},Pe=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),o=(e,n)=>t.set(n.t=e,n),l=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],f="undefined"!=typeof window?window:{},u=f.document||{head:{}},d={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,v=[],y=[],b=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&d.o?k(w):d.raf(w))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{$(v),$(y),(m=v.length>0)&&d.raf(w)},k=e=>h().then(e),g=b(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function C(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>R,ok:()=>O,unwrap:()=>T,unwrapErr:()=>A});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function R(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P,T=e=>{if(e.isOk)return e.value;throw e.value},A=e=>{if(e.isErr)return e.value;throw e.value},D=(e,t,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],a=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?a(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof e&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?L(null,o):o),r=i)};if(a(n),t){t.key&&(l=t.key),t.name&&(s=t.name);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,c,W);const f=L(e,null);return f.u=t,c.length>0&&(f.h=c),f.p=l,f.m=s,f},L=(e,t)=>({o:0,v:e,i:t,$:null,h:null,u:null,p:null,m:null}),N={},W={forEach:(e,t)=>e.map(F).forEach(t),map:(e,t)=>e.map(F).map(t).map(H)},F=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.m,vtag:e.v,vtext:e.i}),H=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),D(e.vtag,t,...e.vchildren||[])}const t=L(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.m=e.vname,t},U=e=>n(e).$hostElement$,q=(e,t,n)=>{const o=U(e);return{emit:e=>G(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},G=(e,t,n)=>{const o=d.ce(t,n);return e.dispatchEvent(o),o},V=new WeakMap,_=e=>"sc-"+e.k,z=(e,t,n,o,s,i)=>{if(n!==o){let r=l(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,l=I(n),s=I(o);t.remove(...l.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!l.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(r||"o"!==t[0]||"n"!==t[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(e.tagName.includes("-"))e[t]=o;else{const l=null==o?"":o;"list"===t?r=!1:null!=n&&e[t]==l||(e[t]=l)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!l&&e.setAttribute(t,o=!0===o?"":o)}else if(t="-"===t[2]?t.slice(3):l(f,c)?c.slice(2):c[2]+t.slice(3),n||o){const l=t.endsWith(J);t=t.replace(K,""),n&&d.rel(e,t,n,l),o&&d.ael(e,t,o,l)}}},B=/\s/,I=e=>e?e.split(B):[],J="Capture",K=RegExp(J+"$"),Q=(e,t,n)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,l=e&&e.u||S,s=t.u||S;for(const e of X(Object.keys(l)))e in s||z(o,e,l[e],void 0,n,t.o);for(const e of X(Object.keys(s)))z(o,e,l[e],s[e],n,t.o)};function X(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var Y=!1,Z=!1,ee=!1,te=!1,ne=(e,t,n,o)=>{var l;const s=t.h[n];let i,r,c,a=0;if(Y||(ee=!0,"slot"===s.v&&(M&&o.classList.add(M+"-s"),s.o|=s.h?2:1)),null!==s.i)i=s.$=u.createTextNode(s.i);else if(1&s.o)i=s.$=u.createTextNode("");else if(i=s.$=u.createElement(!Y&&2&s.o?"slot-fb":s.v),Q(null,s,te),null!=M&&i["s-si"]!==M&&i.classList.add(i["s-si"]=M),s.h)for(a=0;a<s.h.length;++a)r=ne(e,s,a,i),r&&i.appendChild(r);return i["s-hn"]=P,3&s.o&&(i["s-sr"]=!0,i["s-cr"]=x,i["s-sn"]=s.m||"",i["s-rf"]=null==(l=s.u)?void 0:l.ref,c=e&&e.h&&e.h[n],c&&c.v===s.v&&e.$&&oe(e.$,!1)),i},oe=(e,t)=>{d.o|=1;const n=Array.from(e.childNodes);for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==P&&o["s-ol"]&&(me(ce(o),o,re(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ee=!0),t&&oe(o,t)}d.o&=-2},le=(e,t,n,o,l,s)=>{let i,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===P&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=ne(null,n,l,e),i&&(o[l].$=i,me(r,i,re(t))))},se=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$;pe(t),e&&(Z=!0,e["s-ol"]?e["s-ol"].remove():oe(e,!0),e.remove())}}},ie=(e,t,n=!1)=>e.v===t.v&&("slot"===e.v?e.m===t.m:!!n||e.p===t.p),re=e=>e&&e["s-ol"]||e,ce=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,ae=(e,t,n=!1)=>{const o=t.$=e.$,l=e.h,s=t.h,i=t.i;let r;null===i?(("slot"!==t.v||Y)&&Q(e,t,te),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,a=0,f=0,u=t.length-1,d=t[0],h=t[u],p=o.length-1,m=o[0],v=o[p];for(;r<=u&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--u];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ie(d,m,l))ae(d,m,l),d=t[++r],m=o[++c];else if(ie(h,v,l))ae(h,v,l),h=t[--u],v=o[--p];else if(ie(d,v,l))"slot"!==d.v&&"slot"!==v.v||oe(d.$.parentNode,!1),ae(d,v,l),me(e,d.$,h.$.nextSibling),d=t[++r],v=o[--p];else if(ie(h,m,l))"slot"!==d.v&&"slot"!==v.v||oe(h.$.parentNode,!1),ae(h,m,l),me(e,h.$,d.$),h=t[--u],m=o[++c];else{for(a=-1,f=r;f<=u;++f)if(t[f]&&null!==t[f].p&&t[f].p===m.p){a=f;break}a>=0?(i=t[a],i.v!==m.v?s=ne(t&&t[c],n,a,e):(ae(i,m,l),t[a]=void 0,s=i.$),m=o[++c]):(s=ne(t&&t[c],n,c,e),m=o[++c]),s&&me(ce(d.$),s,re(d.$))}r>u?le(e,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&se(t,r,u)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),le(o,null,t,s,0,s.length-1)):null!==l&&se(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:e.i!==i&&(o.data=i)},fe=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}fe(e)}},ue=[],de=e=>{let t,n,o;for(const l of e.childNodes){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=l["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==l["s-hn"])if(he(t,e)){let n=ue.find((e=>e.S===t));Z=!0,t["s-sn"]=t["s-sn"]||e,n?(n.S["s-sh"]=l["s-hn"],n.j=l):(t["s-sh"]=l["s-hn"],ue.push({j:l,S:t})),t["s-sr"]&&ue.map((e=>{he(e.S,t["s-sn"])&&(n=ue.find((e=>e.S===t)),n&&!e.j&&(e.j=n.j))}))}else ue.some((e=>e.S===t))||ue.push({S:t})}1===l.nodeType&&de(l)}},he=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,pe=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(pe)},me=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ve=(e,t)=>{t&&!e.C&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.C=t)))},ye=(e,t)=>{if(e.o|=16,!(4&e.o))return ve(e,e.O),g((()=>be(e,t)));e.o|=512},be=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return t&&(e.o|=256,e.R&&(e.R.map((([e,t])=>Ce(n,e,t))),e.R=void 0),o=Ce(n,"componentWillLoad")),o=$e(o,(()=>Ce(n,"componentWillRender"))),$e(o,(()=>ke(e,n,t)))},$e=(e,t)=>we(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),we=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ke=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=_(t),l=r.get(o);if(e=11===e.nodeType?e:u,l)if("string"==typeof l){let s,i=V.get(e=e.head||e);if(i||V.set(e,i=new Set),!i.has(o)){{s=u.createElement("style"),s.innerHTML=l;const t=null!=(n=d.P)?n:C(u);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.o&&(s.innerHTML+=c),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);ge(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>Se(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ge=(e,t,n,o)=>{try{t=t.render&&t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{var o,l,s,i;const r=e.$hostElement$,c=e.M,a=e.T||L(null,null),f=(e=>e&&e.v===N)(t)?t:D(null,null,t);if(P=r.tagName,n&&f.u)for(const e of Object.keys(f.u))r.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(f.u[e]=r[e]);if(f.v=null,f.o|=4,e.T=f,f.$=a.$=r.shadowRoot||r,M=r["s-sc"],Y=!!(1&c.o),x=r["s-cr"],Z=!1,ae(a,f,n),d.o|=1,ee){de(f.$);for(const e of ue){const t=e.S;if(!t["s-ol"]){const e=u.createTextNode("");e["s-nr"]=t,me(t.parentNode,t["s-ol"]=e,t)}}for(const e of ue){const t=e.S,r=e.j;if(r){const e=r.parentNode;let n=r.nextSibling;{let s=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),me(e,t,n),1===t.nodeType&&(t.hidden=null!=(s=t["s-ih"])&&s)),t&&"function"==typeof r["s-rf"]&&r["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}Z&&fe(f.$),d.o&=-2,ue.length=0,x=void 0})(e,t,o)}catch(t){s(t,e.$hostElement$)}return null},Se=e=>{const t=e.$hostElement$,n=e.t,o=e.O;Ce(n,"componentDidRender"),64&e.o||(e.o|=64,Oe(t),Ce(n,"componentDidLoad"),e.A(t),o||je()),e.D(t),e.C&&(e.C(),e.C=void 0),512&e.o&&k((()=>ye(e,!1))),e.o&=-517},je=()=>{Oe(u.documentElement),k((()=>G(f,"appload",{detail:{namespace:"post-components"}})))},Ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},Oe=e=>e.classList.add("hydrated"),Ee=(e,t,o)=>{var l,i;const r=e.prototype;if(64&t.o&&1&o&&a.forEach((e=>Object.defineProperty(r,e,{value(...t){const o=n(this),l=o.t;if(l){const n=l[e];"function"==typeof n&&n.call(l,...t)}else o.L.then((n=>{const o=n[e];"function"==typeof o&&o.call(n,...t)}))}}))),t.N||t.W||e.watchers){e.watchers&&!t.W&&(t.W=e.watchers);const c=Object.entries(null!=(l=t.N)?l:{});if(c.map((([e,[l]])=>{31&l||2&o&&32&l?Object.defineProperty(r,e,{get(){return((e,t)=>n(this).F.get(t))(0,e)},set(o){((e,t,o,l)=>{const i=n(e);if(!i)throw Error(`Couldn't find host element for "${l.k}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(t),a=i.o,f=i.t;if(o=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(o,l.N[t][0]),(!(8&a)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.F.set(t,o),f)){if(l.W&&128&a){const e=l.W[t];e&&e.map((e=>{try{f[e](o,c,t)}catch(e){s(e,r)}}))}2==(18&a)&&ye(i,!1)}})(this,e,o,t)},configurable:!0,enumerable:!0}):1&o&&64&l&&Object.defineProperty(r,e,{value(...t){var o;const l=n(this);return null==(o=null==l?void 0:l.H)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[e](...t)}))}})})),1&o){const o=new Map;r.attributeChangedCallback=function(e,l,s){d.jmp((()=>{var i;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(r.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),r=null==o?void 0:o.o;if(r&&!(8&r)&&128&r&&s!==l){const n=o.t,r=null==(i=t.W)?void 0:i[e];null==r||r.forEach((t=>{null!=n[t]&&n[t].call(n,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(i=t.W)?i:{}),...c.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},Re=e=>{Ce(e,"connectedCallback")},Me=e=>{Ce(e,"disconnectedCallback")},xe=(e,o={})=>{var l;const a=[],h=o.exclude||[],m=f.customElements,v=u.head,y=v.querySelector("meta[charset]"),b=u.createElement("style"),$=[];let w,k=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",u.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((o=>{var l;const c={o:o[0],k:o[1],N:o[2],U:o[3]};4&c.o&&(g=!0),c.N=o[2],c.U=o[3],c.W=null!=(l=o[4])?l:{};const f=c.k,v=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const o={o:0,$hostElement$:e,M:n,F:new Map};o.H=new Promise((e=>o.D=e)),o.L=new Promise((e=>o.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,o)})(e=this,c),1&c.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.k}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Pe(this,e,c.U)),w&&(clearTimeout(w),w=null),k?$.push(this):d.jmp((()=>(e=>{if(!(1&d.o)){const t=n(e),o=t.M,l=()=>{};if(1&t.o)Pe(e,t,o.U),(null==t?void 0:t.t)?Re(t.t):(null==t?void 0:t.L)&&t.L.then((()=>Re(t.t)));else{t.o|=1,12&o.o&&(e=>{const t=e["s-cr"]=u.createComment("");t["s-cn"]=!0,me(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ve(t,t.O=n);break}}o.N&&Object.entries(o.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.q){const e=(e=>{const t=e.k.replace(/-/g,"_"),n=e.q;if(!n)return;const o=i.get(n);return o?o[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};o=await e,t()}else o=e;if(!o)throw Error(`Constructor for "${n.k}#${t.G}" was not found`);o.isProxied||(n.W=o.watchers,Ee(o,n,2),o.isProxied=!0);const l=()=>{};t.o|=8;try{new o(t)}catch(e){s(e)}t.o&=-9,t.o|=128,l(),Re(t.t)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=_(n);if(!r.has(t)){const o=()=>{};((e,t,n)=>{let o=r.get(e);p&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,r.set(e,o)})(t,e,!!(1&n.o)),o()}}}const l=t.O,c=()=>ye(t,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(e,t,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async()=>{if(!(1&d.o)){const e=n(this);e.V&&(e.V.map((e=>e())),e.V=void 0),(null==e?void 0:e.t)?Me(e.t):(null==e?void 0:e.L)&&e.L.then((()=>Me(e.t)))}})()))}componentOnReady(){return n(this).L}};64&c.o&&(v.formAssociated=!0),c.q=e[0],h.includes(f)||m.get(f)||(a.push(f),m.define(f,Ee(v,c,1)))}))})),a.length>0&&(g&&(b.textContent+=c),b.textContent+=a.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(l=d.P)?l:C(u);null!=e&&b.setAttribute("nonce",e),v.insertBefore(b,y?y.nextSibling:v.firstChild)}k=!1,$.length?$.map((e=>e.connectedCallback())):d.jmp((()=>w=setTimeout(je,30)))},Pe=(e,t,n)=>{n&&n.map((([n,o,l])=>{const s=e,i=Te(t,l),r=Ae(n);d.ael(s,o,i,r),(t.V=t.V||[]).push((()=>d.rel(s,o,i,r)))}))},Te=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.R=e.R||[]).push([t,n])}catch(e){s(e)}},Ae=e=>({passive:!!(1&e),capture:!!(2&e)}),De=e=>d.P=e;export{N as H,xe as b,q as c,U as g,D as h,h as p,o as r,De as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_header}from"./p-1e374a42.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";import"./p-b095519d.js";import"./p-440193f4.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,h as t,H as a,g as e}from"./p-c0f265c8.js";import{c as o,d as n,a as s}from"./p-f91c0e1b.js";import{v as r}from"./p-a5c8a3de.js";import{c as l}from"./p-b095519d.js";const m=["cylon","cylon-vertical","spin","spin-reverse","fade","throb"],c=class{constructor(t){i(this,t),this.svgStyles=void 0,this.svgOutput=void 0,this.animation=null,this.base=null,this.flipH=!1,this.flipV=!1,this.name=void 0,this.rotate=null,this.scale=null}validateAnimation(i=this.animation){void 0!==i&&o(i,m,`The post-icon "animation" prop requires one of the following values: ${m.join(", ")}.`)}validateBase(i=this.base){n(i,"string",'The post-icon "base" prop should be a string.')}validateFlipH(i=this.flipH){n(i,"boolean",'The post-icon "flipH" prop should be a boolean.')}validateFlipV(i=this.flipV){n(i,"boolean",'The post-icon "flipV" prop should be a boolean.')}validateName(i=this.name){l(i,'The post-icon "name" prop is required!.'),s(i,"string",'The post-icon "name" prop should be a string.')}validateRotate(i=this.rotate){n(i,"number",'The post-icon "rotate" prop should be a number.')}validateScale(i=this.scale){n(i,"number",'The post-icon "scale" prop should be a number.')}componentWillLoad(){this.validateBase(),this.validateName(),this.validateFlipH(),this.validateFlipV(),this.validateScale(),this.validateRotate(),this.validateAnimation()}componentWillRender(){this.setPath()}setPath(){var i,t,a,e;const o=null!==(t=null===(i=document.head.querySelector('meta[name="design-system-settings"][data-post-icon-base]'))||void 0===i?void 0:i.getAttribute("data-post-icon-base"))&&void 0!==t?t:null,n=`${null!==(e=null!==(a=this.base)&&void 0!==a?a:o)&&void 0!==e?e:"https://unpkg.com/@swisspost/design-system-icons/public/post-icons"}/`.replace(/\/\/$/,"/");this.path=new URL(`${n}${this.name}.svg`,window.location.origin).toString()}render(){const i=Object.entries({"-webkit-mask-image":`url('${this.path}')`,"mask-image":`url('${this.path}')`,transform:(this.scale&&!isNaN(Number(this.scale))?"scale("+this.scale+")":"")+(this.rotate&&!isNaN(Number(this.rotate))?" rotate("+this.rotate+"deg)":"")}).filter((([i,t])=>null!==t)).reduce(((i,[t,a])=>Object.assign(i,{[t]:a})),{});return t(a,{key:"95fa0f7a09d3430bb5d621e01b57188742920eb4","data-version":r},t("span",{key:"c824e3705dc83665bb6f7649381654e6d1e07dfb",style:i}))}get host(){return e(this)}static get watchers(){return{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}}};c.style=":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";export{c as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,H as i,g as o}from"./p-c0f265c8.js";import{v as r}from"./p-a5c8a3de.js";import{d as a,a as h}from"./p-f91c0e1b.js";import{c as n}from"./p-b095519d.js";const c={height:"0",overflow:"hidden"},l={duration:350,easing:"ease",fill:"forwards"},d=class{constructor(e){t(this,e),this.postToggle=s(this,"postToggle",7),this.isLoaded=!1,this.isOpen=!0,this.collapsed=!1}collapsedChange(){a(this.collapsed,"boolean","The `collapsed` property of the `post-collapsible` must be a boolean."),this.toggle(!this.collapsed)}componentDidLoad(){this.collapsedChange(),this.isLoaded=!0,this.updateTriggers()}async toggle(t=!this.isOpen){if(t===this.isOpen)return t;this.isOpen=t,this.collapsed=!t,this.isLoaded&&this.postToggle.emit(t);const s=t?(e=this.host).animate([c,{height:`${e.scrollHeight}px`,offset:1},{height:"auto"}],l):(t=>{const s={height:window.getComputedStyle(t).height};return t.animate([s,c],l)})(this.host);var e;return this.isLoaded&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches||s.finish(),await s.finished,s.commitStyles(),t}updateTriggers(){document.querySelectorAll(`post-collapsible-trigger[for=${this.host.id}]`).forEach((t=>t.update()))}render(){return e(i,{key:"47ab19bf719a505dce35955d6250462acea47eee","data-version":r},e("slot",{key:"d7fe5746afe1c343e9ec4c02878d8dead9360c26"}))}get host(){return o(this)}static get watchers(){return{collapsed:["collapsedChange"]}}};d.style=":host{display:block;overflow:hidden}";const p=class{constructor(s){t(this,s),this.observer=new MutationObserver((()=>this.setTrigger())),this.debouncedUpdate=function(t,s=200){let e;return(...i)=>{e&&clearTimeout(e),e=setTimeout(t,s,...i)}}((()=>{var t;if(!this.trigger)return;const s=this.trigger.getAttribute("aria-controls");(null==s?void 0:s.includes(this.for))||this.trigger.setAttribute("aria-controls",s?`${s} ${this.for}`:this.for);const e=null===(t=this.collapsible)||void 0===t?void 0:t.collapsed;this.trigger.setAttribute("aria-expanded",`${void 0!==e?!e:void 0}`)})),this.for=void 0}setAriaAttributes(){n(this.for,'The post-collapsible-trigger "for" prop is required.'),h(this.for,"string",'The post-collapsible-trigger "for" prop should be a id.'),this.update()}connectedCallback(){this.observer.observe(this.host,{childList:!0,subtree:!0})}componentWillLoad(){this.root=function(t){const s=t.getRootNode();if(s instanceof Document||s instanceof ShadowRoot)return s;throw new Error("Attempting to access root node before the element is attached to the document or shadow tree.")}(this.host),this.root.addEventListener("postToggle",(t=>{this.trigger&&t.target.isEqualNode(this.collapsible)&&this.trigger.setAttribute("aria-expanded",`${t.detail}`)}))}componentDidLoad(){this.host.setAttribute("data-version",r),this.setTrigger(),this.trigger||console.warn("The post-collapsible-trigger must contain a button.")}disconnectedCallback(){this.observer.disconnect()}async update(){this.debouncedUpdate()}async toggleCollapsible(){var t;await(null===(t=this.collapsible)||void 0===t?void 0:t.toggle())}get collapsible(){const t=this.root.getElementById(this.for);return t&&"post-collapsible"===t.localName?t:null}setTrigger(){const t=this.host.querySelector("button");!t||this.trigger&&t.isEqualNode(this.trigger)||(this.trigger=t,this.trigger.addEventListener("click",(()=>this.toggleCollapsible())),this.setAriaAttributes())}get host(){return o(this)}static get watchers(){return{for:["setAriaAttributes"]}}};export{d as P,p as a}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as t,H as r,g as i}from"./p-c0f265c8.js";import{v as c}from"./p-a5c8a3de.js";import{H as a}from"./p-247a1668.js";import{c as e}from"./p-f91c0e1b.js";const b=class{constructor(t){o(this,t),this.id=void 0,this.collapsed=!1,this.headingLevel=2}validateHeadingLevel(o=this.headingLevel){e(o,a,"The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.")}connectedCallback(){this.validateHeadingLevel()}componentWillLoad(){this.id=this.host.id||`a${crypto.randomUUID()}`}onCollapseToggle(o){"post-accordion-item"===o.target.localName&&(this.collapsed=!o.detail)}async toggle(o){return this.collapsible.toggle(o)}render(){var o;const i=`h${null!==(o=this.headingLevel)&&void 0!==o?o:2}`;return t(r,{key:"d021bf895019606800fa6cf3a85a2ea0a2fea7e4",id:this.id,"data-version":c},t("div",{key:"8a78f2511889eb90d2cbdccf00f76802e043a1e7",part:"accordion-item",class:"accordion-item"},t("post-collapsible-trigger",{key:"c4c09df6d5bb1b3883ad696a362b222cfcf1c9bb",for:`${this.id}--collapse`},t(i,{key:"fbc49fcc1e4096193e1fd945b728b8c0caf6001d",class:"accordion-header",id:`${this.id}--header`},t("button",{key:"2a55471aa04c5e676647a2e5c8cb2d587b74aed4",type:"button",class:"accordion-button"+(this.collapsed?" collapsed":"")},t("slot",{key:"83b5811e74fb31f2fafd66e5aedc2f260d75e3e0",name:"header"})))),t("post-collapsible",{key:"8d0695dd8944bb77df60c43116be01ec2608dbb4",id:`${this.id}--collapse`,collapsed:this.collapsed,ref:o=>this.collapsible=o},t("div",{key:"17c75ea9cf1e9adb95d176c65ab23322c994d388",class:"accordion-body"},t("slot",{key:"21dc6d44c6bb009058e0e1e5dbcd4bfc2a9463ee"})))))}get host(){return i(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};b.style="post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-bg-opacity:1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item),.bg-nightblue post-accordion-item::part(accordion-item),.bg-nightblue-bright post-accordion-item::part(accordion-item),.bg-petrol post-accordion-item::part(accordion-item),.bg-petrol-bright post-accordion-item::part(accordion-item),.bg-coral post-accordion-item::part(accordion-item),.bg-coral-bright post-accordion-item::part(accordion-item),.bg-olive post-accordion-item::part(accordion-item),.bg-olive-bright post-accordion-item::part(accordion-item),.bg-purple post-accordion-item::part(accordion-item),.bg-purple-bright post-accordion-item::part(accordion-item),.bg-aubergine post-accordion-item::part(accordion-item),.bg-aubergine-bright post-accordion-item::part(accordion-item),.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,.bg-nightblue .accordion-item,.bg-nightblue-bright .accordion-item,.bg-petrol .accordion-item,.bg-petrol-bright .accordion-item,.bg-coral .accordion-item,.bg-coral-bright .accordion-item,.bg-olive .accordion-item,.bg-olive-bright .accordion-item,.bg-purple .accordion-item,.bg-purple-bright .accordion-item,.bg-aubergine .accordion-item,.bg-aubergine-bright .accordion-item{--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-nightblue:#004976;--post-nightblue-bright:#0076a8;--post-petrol:#006d68;--post-petrol-bright:#00968f;--post-coral:#9e2a2f;--post-coral-bright:#e03c31;--post-olive:#716135;--post-olive-bright:#aa9d2e;--post-purple:#80276c;--post-purple-bright:#c5299b;--post-aubergine:#523178;--post-aubergine-bright:#7566a0;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222;--post-nightblue-rgb:0, 73, 118;--post-nightblue-bright-rgb:0, 118, 168;--post-petrol-rgb:0, 109, 104;--post-petrol-bright-rgb:0, 150, 143;--post-coral-rgb:158, 42, 47;--post-coral-bright-rgb:224, 60, 49;--post-olive-rgb:113, 97, 53;--post-olive-bright-rgb:170, 157, 46;--post-purple-rgb:128, 39, 108;--post-purple-bright-rgb:197, 41, 155;--post-aubergine-rgb:82, 49, 120;--post-aubergine-bright-rgb:117, 102, 160}.accordion-item{--post-bg-rgb:244, 243, 241;border-block:2px solid #666}.bg-yellow .accordion-item{--post-bg-rgb:255, 255, 255}.bg-white .accordion-item{--post-bg-rgb:244, 243, 241}.bg-light .accordion-item{--post-bg-rgb:255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb:255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb:255, 255, 255}.bg-black .accordion-item{--post-bg-rgb:255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-secondary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error .accordion-item{--post-bg-rgb:255, 255, 255}.bg-info .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue .accordion-item{--post-bg-rgb:255, 255, 255}.bg-nightblue-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol .accordion-item{--post-bg-rgb:255, 255, 255}.bg-petrol-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral .accordion-item{--post-bg-rgb:255, 255, 255}.bg-coral-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive .accordion-item{--post-bg-rgb:255, 255, 255}.bg-olive-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple .accordion-item{--post-bg-rgb:255, 255, 255}.bg-purple-bright .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine .accordion-item{--post-bg-rgb:255, 255, 255}.bg-aubergine-bright .accordion-item{--post-bg-rgb:255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;outline:none;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:400}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-secondary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-nightblue-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-petrol-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-coral-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-olive-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-purple-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-aubergine-bright post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}:host(:not(:first-of-type)) .accordion-item{border-block-start:0}";export{b as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_card_control}from"./p-80f33a98.js";import"./p-c0f265c8.js";import"./p-611b3c41.js";import"./p-b095519d.js";import"./p-440193f4.js";import"./p-a5c8a3de.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion_item}from"./p-e4acf838.js";import"./p-c0f265c8.js";import"./p-a5c8a3de.js";import"./p-247a1668.js";import"./p-f91c0e1b.js";import"./p-440193f4.js";import"./p-611b3c41.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as e,H as r,g as a}from"./p-c0f265c8.js";import{v as s}from"./p-a5c8a3de.js";import{f as i}from"./p-2737eaf5.js";import{a as n,b as l,c}from"./p-f91c0e1b.js";import{c as p}from"./p-b095519d.js";const g=["primary","success","warning","danger","info","gray"],h=class{constructor(e){t(this,e),this.postDismissed=o(this,"postDismissed",7),this.alertId=crypto.randomUUID(),this.classes=void 0,this.hasActions=void 0,this.hasHeading=void 0,this.onDismissButtonClick=()=>this.dismiss(),this.dismissible=!1,this.dismissLabel=void 0,this.fixed=!1,this.icon=void 0,this.type="primary"}validateDismissible(t=this.dismissible){n(t,"boolean",'The post-alert "dismissible" prop should be a boolean.'),setTimeout((()=>this.validateDismissLabel()))}validateDismissLabel(t=this.dismissLabel){this.dismissible&&p(t,'Dismissible post-alert\'s require a "dismiss-label" prop.')}validateFixed(t=this.fixed){n(t,"boolean",'The post-alert "fixed" prop should be a boolean.')}validateIcon(t=this.icon){l(t,/\d{4}|none/,'The post-alert "icon" prop should be a 4-digits string.')}validateType(t=this.type){c(t,g,`The post-alert requires a type form: ${g.join(", ")}`)}connectedCallback(){this.validateDismissible(),this.validateFixed(),this.validateIcon(),this.validateType()}componentWillRender(){var t;this.hasHeading=this.host.querySelectorAll("[slot=heading]").length>0,this.hasActions=this.host.querySelectorAll("[slot=actions]").length>0,this.classes=`alert alert-${null!==(t=this.type)&&void 0!==t?t:"primary"}`,this.dismissible&&(this.classes+=" alert-dismissible"),this.hasActions&&(this.classes+=" alert-action"),this.fixed&&(this.classes+=" alert-fixed-bottom"),"none"===this.icon&&(this.classes+=" no-icon")}async dismiss(){const t=i(this.host);await t.finished,this.host.remove(),this.postDismissed.emit()}render(){const t=[this.hasHeading&&e("div",{key:`${this.alertId}-heading`,class:"alert-heading"},e("slot",{key:"928eeaedc9a897394ef064a218b43a780dc10f0d",name:"heading"})),e("slot",{key:`${this.alertId}-message`})],o=[e("div",{key:`${this.alertId}-content`,class:"alert-content"},t),e("div",{key:`${this.alertId}-buttons`,class:"alert-buttons"},e("slot",{key:"67bcd576fb17374be6e0f9b3633a19aaff884b6a",name:"actions"}))];return e(r,{key:"df4452a660ba217ad57d5ad69ee224a686f5537e","data-version":s},e("div",{key:"f1d346826fee4629356c9e722ac619d9c7a34c17",role:"alert",class:this.classes,part:this.classes},this.dismissible&&e("button",{key:"0deb48cddffd2288dd4e2999f291179ca6cdc6b5",class:"btn-close",onClick:this.onDismissButtonClick},e("span",{key:"d252736e70ee4213d7c36e622181b640a8b3c4cb",class:"visually-hidden"},this.dismissLabel)),this.icon&&"none"!==this.icon&&e("post-icon",{key:`${this.alertId}-icon`,name:this.icon}),this.hasActions?o:t))}get host(){return a(this)}static get watchers(){return{dismissible:["validateDismissible"],dismissLabel:["validateDismissLabel"],fixed:["validateFixed"],icon:["validateIcon"],type:["validateType"]}}};h.style="/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */.alert-primary,.alert-success,.alert-warning,.alert-danger,.alert-info,.alert-gray,.alert-notification,.alert-error{background-color:rgb(var(--post-bg-rgb)) !important;color:var(--post-contrast-color) !important}.alert-warning,.alert-info,.alert-gray{--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-nightblue:#004976;--post-nightblue-bright:#0076a8;--post-petrol:#006d68;--post-petrol-bright:#00968f;--post-coral:#9e2a2f;--post-coral-bright:#e03c31;--post-olive:#716135;--post-olive-bright:#aa9d2e;--post-purple:#80276c;--post-purple-bright:#c5299b;--post-aubergine:#523178;--post-aubergine-bright:#7566a0;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222;--post-nightblue-rgb:0, 73, 118;--post-nightblue-bright-rgb:0, 118, 168;--post-petrol-rgb:0, 109, 104;--post-petrol-bright-rgb:0, 150, 143;--post-coral-rgb:158, 42, 47;--post-coral-bright-rgb:224, 60, 49;--post-olive-rgb:113, 97, 53;--post-olive-bright-rgb:170, 157, 46;--post-purple-rgb:128, 39, 108;--post-purple-bright-rgb:197, 41, 155;--post-aubergine-rgb:82, 49, 120;--post-aubergine-bright-rgb:117, 102, 160}.alert-primary,.alert-success,.alert-danger,.alert-notification,.alert-error{--post-contrast-color:#fff;--post-focus-color:#fff;--post-contrast-color-inverted:#000;--post-dark:#faf9f8;--post-light:hsl(0, 0%, 20%);--post-gray-80:hsl(0, 0%, 90%);--post-gray-60:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-20:hsl(0, 0%, 40%);--post-gray-10:hsl(0, 0%, 20%);--post-contrast-color-rgb:255, 255, 255;--post-contrast-color-inverted-rgb:0, 0, 0;--post-dark-rgb:250, 249, 248;--post-light-rgb:51, 51, 51;--post-gray-80-rgb:230, 230, 230;--post-gray-60-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-20-rgb:102, 102, 102;--post-gray-10-rgb:51, 51, 51}.alert{position:relative;box-sizing:border-box;min-height:5rem;box-shadow:0 2px 4px 0 rgba(0,0,0,.2);border-radius:4px;padding:1rem 1.25rem;padding-inline-start:5.5rem;margin-block-end:1rem;font-size:1rem;font-weight:400}.alert.no-icon{min-height:3.5rem;padding-inline-start:1.25rem}.alert[class^=pi-],.alert[class*=\" pi-\"]{background-size:3rem;background-position:1.25rem 1rem;background-repeat:no-repeat}.alert[class^=pi-].no-icon,.alert[class*=\" pi-\"].no-icon{background-image:none}.alert::before{content:\"\";display:block}.alert::before,.alert>post-icon{position:absolute;height:3rem;width:3rem;left:1.25rem;top:1rem}.alert.no-icon::before,.alert[class^=pi-]::before,.alert[class*=\" pi-\"]::before{content:unset}.alert.no-icon>post-icon,.alert[class^=pi-]>post-icon,.alert[class*=\" pi-\"]>post-icon{display:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.alert{filter:none !important;border:2px solid CanvasText}}.alert:not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert:not(.alert-action) a{font-weight:400}.alert:not(.alert-action) hr{margin-block:.5rem .75rem !important}.alert:not(.alert-action)>:only-child,.alert:not(.alert-action)>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert:not(.alert-action)>*{margin:0}.alert-heading{font-size:1.0625rem;font-weight:700}.alert-dismissible{pointer-events:auto;position:relative;padding-inline-end:4rem}.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:1.25rem}.alert-dismissible>.btn-close:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action{display:flex;flex-direction:row;align-items:center;gap:1.25rem}.alert-action>.alert-content{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:.25rem}.alert-action>.alert-content a{font-weight:400}.alert-action>.alert-content hr{margin-block:.5rem .75rem !important}.alert-action>.alert-content>:only-child,.alert-action>.alert-content>post-icon:first-child+:last-child{font-size:1.0625rem;font-weight:700}.alert-action>.alert-content>*{margin:0}.alert-action>.alert-buttons{flex:0 0 auto;display:flex;align-items:center;gap:.5rem}@media (min-width: 780px){.alert-action.alert-dismissible>.btn-close{inset-block-start:calc(50% - 0.75rem)}}@media (max-width: 779.98px){.alert-action{flex-direction:column;align-items:stretch;padding-inline:1.25rem}.alert-action>.alert-content{padding-inline-start:4.25rem;padding-inline-end:2.75rem}.alert-action.no-icon>.alert-content{padding-inline-start:0}.alert-action>.alert-buttons{display:flex}.alert-action>.alert-buttons>.btn,.alert-action>.alert-buttons>::slotted(.btn){flex:1 0 0;width:100%}.alert-action>.alert-buttons>.btn:first-child,.alert-action>.alert-buttons>::slotted(.btn:first-child){margin-inline-start:0}}.alert-fixed-bottom{position:fixed;inset-block-end:0;inset-inline-start:0;inset-inline-end:0;margin-bottom:0;border-radius:0;z-index:1030}@media (min-width: 1440px){.alert-fixed-bottom{padding-inline-end:calc((100% - 1439px) / 2 + 120px + 1.25rem);padding-inline-start:calc(\n (100% - 1439px) / 2 + 120px + 1.25rem + 3rem + 1.25rem\n );background-position-x:calc((100% - 1439px) / 2 + 120px + 1.25rem + 1.5rem)}.alert-fixed-bottom::before{left:calc((100% - 1439px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.no-icon{padding-inline-start:calc((100% - 1439px) / 2 + 120px + 1.25rem)}.alert-fixed-bottom.alert-dismissible{padding-inline-end:calc(\n (100% - 1439px) / 2 + 120px + 1.25rem + 1.25rem + 1.5rem\n )}.alert-fixed-bottom.alert-dismissible>.btn-close{inset-inline-end:calc((100% - 1439px) / 2 + 120px + 1.25rem)}}.alert-primary{--post-bg-rgb:51, 51, 51}.alert-primary:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-primary:has(>post-icon)::before{content:none}.alert-primary>post-icon{background-color:#333}.alert-success{--post-bg-rgb:44, 135, 29}.alert-success:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-success:has(>post-icon)::before{content:none}.alert-success>post-icon{background-color:#2c871d}.alert-warning{--post-bg-rgb:244, 158, 0}.alert-warning:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-warning:has(>post-icon)::before{content:none}.alert-warning>post-icon{background-color:#f49e00}.alert-danger{--post-bg-rgb:165, 23, 40}.alert-danger:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-danger:has(>post-icon)::before{content:none}.alert-danger>post-icon{background-color:#a51728}.alert-info{--post-bg-rgb:204, 228, 238}.alert-info:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-info:has(>post-icon)::before{content:none}.alert-info>post-icon{background-color:#cce4ee}.alert-gray{--post-bg-rgb:244, 243, 241}.alert-gray:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-gray:has(>post-icon)::before{content:none}.alert-gray>post-icon{background-color:#f4f3f1}.alert-notification{--post-bg-rgb:51, 51, 51}.alert-notification:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30.533 26.933c-3.333-4.8-5.867-12.667-5.867-18.267 0-4.8-3.867-8.667-8.667-8.667S7.332 3.866 7.332 8.666c0 5.6-2.533 13.467-5.867 18.267L1.998 28h11.333v4h5.333v-4h11.333l.533-1.067zm-13.2 3.734h-2.667V28h2.667zm-14.133-4c3.2-5.067 5.467-12.533 5.467-18 0-4 3.333-7.333 7.333-7.333s7.333 3.333 7.333 7.333c0 5.467 2.267 12.933 5.467 18z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-notification:has(>post-icon)::before{content:none}.alert-notification>post-icon{background-color:#333}.alert-error{--post-bg-rgb:165, 23, 40}.alert-error:not(.no-icon,[class^=pi-],[class*=\" pi-\"])::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color}.alert-error:has(>post-icon)::before{content:none}.alert-error>post-icon{background-color:#a51728}.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:4px;color:var(--post-gray-80);transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{outline-style:none !important;outline-offset:2px !important;outline-width:2px !important;outline-color:var(--post-focus-color) !important}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:solid !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem}:where(.bg-dark,.bg-black,.bg-primary,.bg-secondary,.bg-success,.bg-error,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.alert-primary,post-alert[type=primary],.alert-success,post-alert[type=success],.alert-danger,post-alert[type=danger],.alert-notification,post-alert[type=notification],.alert-error,post-alert[type=error]) .btn-close{color:var(--post-contrast-color)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:var(--post-contrast-color)}.btn-close:disabled{color:var(--post-gray-40)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}:host ::slotted(*){margin:0 !important}.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.visually-hidden:not(caption){position:absolute !important}.alert-heading>::slotted(h1){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h2){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h3){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h4){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h5){font-size:inherit !important;font-weight:inherit !important}.alert-heading>::slotted(h6){font-size:inherit !important;font-weight:inherit !important}";export{h as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{E as r}from"./p-440193f4.js";import{c as o}from"./p-611b3c41.js";function t(o){return(...t)=>{const n=t[0];r.some((r=>r===n))||o(...t)}}function n(r,o,t){const n="array"===o,s=Array.isArray(r);if(n||s){if(s!==n)throw new Error(t)}else if(typeof r!==o)throw new Error(t)}const s=t(o),f=t((function(r,o,t){if("string"!=typeof r||!o.test(r))throw new Error(t)})),a=t(n);export{n as a,f as b,s as c,a as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-
|
|
1
|
+
import{p as e,b as a}from"./p-c0f265c8.js";export{s as setNonce}from"./p-c0f265c8.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-ea2954f3",[[1,"post-accordion-item",{collapsed:[1028],headingLevel:[2,"heading-level"],id:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]],{headingLevel:["validateHeadingLevel"]}]]],["p-7301b124",[[1,"post-alert",{dismissible:[4],dismissLabel:[1,"dismiss-label"],fixed:[4],icon:[1],type:[1],alertId:[32],classes:[32],hasActions:[32],hasHeading:[32],onDismissButtonClick:[32],dismiss:[64]},null,{dismissible:["validateDismissible"],dismissLabel:["validateDismissLabel"],fixed:["validateFixed"],icon:["validateIcon"],type:["validateType"]}]]],["p-e6bc1a0c",[[65,"post-card-control",{label:[1],description:[1],type:[1],name:[1],value:[1],checked:[1028],disabled:[1028],validity:[1025],icon:[1],focused:[32],reset:[64],groupReset:[64]},null,{label:["validateControlLabel"],type:["validateControlType"],checked:["updateControlChecked"],disabled:["updateControlDisbled"]}]]],["p-28e17fd1",[[4,"post-popovercontainer",{placement:[1],arrow:[4],show:[64],hide:[64],toggle:[64]}]]],["p-95b7403d",[[1,"post-popover",{placement:[1],closeButtonCaption:[1,"close-button-caption"],arrow:[4],show:[64],hide:[64],toggle:[64]}]]],["p-7fc15b07",[[1,"post-icon",{animation:[1],base:[1],flipH:[4,"flip-h"],flipV:[4,"flip-v"],name:[1],rotate:[2],scale:[2],svgStyles:[32],svgOutput:[32]},null,{animation:["validateAnimation"],base:["validateBase"],flipH:["validateFlipH"],flipV:["validateFlipV"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}]]],["p-a0187d40",[[1,"post-rating",{label:[1],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]}]]],["p-a931e3c6",[[1,"post-tag",{variant:[1],size:[1],icon:[1],classes:[32]},null,{variant:["variantChanged"],size:["sizeChanged"]}]]],["p-6dd5d5ba",[[1,"post-tooltip",{placement:[1],arrow:[4],delayed:[4],show:[64],hide:[64],toggle:[64]},null,{delayed:["validateDelayed"]}]]],["p-8126cca3",[[1,"post-accordion",{headingLevel:[2,"heading-level"],multiple:[4],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:["validateHeadingLevel"]}]]],["p-c88f169d",[[1,"post-tab-header",{panel:[1],tabId:[32]},null,{panel:["validateFor"]}]]],["p-b9176139",[[1,"post-tab-panel",{name:[1],panelId:[32]}]]],["p-b5f7d9e5",[[1,"post-tabs",{activePanel:[1,"active-panel"],show:[64]}]]],["p-8b86cde6",[[1,"post-collapsible",{collapsed:[1028],toggle:[64]},null,{collapsed:["collapsedChange"]}],[0,"post-collapsible-trigger",{for:[1],update:[64]},null,{for:["setAriaAttributes"]}]]]],e))));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PostCollapsibleCustomEvent } from "../../components";
|
|
2
1
|
export declare class PostCollapsibleTrigger {
|
|
3
2
|
private trigger?;
|
|
4
3
|
private observer;
|
|
4
|
+
private root?;
|
|
5
5
|
host: HTMLPostCollapsibleTriggerElement;
|
|
6
6
|
/**
|
|
7
7
|
* Link the trigger to a post-collapsible with this id
|
|
@@ -15,6 +15,11 @@ export declare class PostCollapsibleTrigger {
|
|
|
15
15
|
* Initiate a mutation observer that updates the trigger whenever necessary
|
|
16
16
|
*/
|
|
17
17
|
connectedCallback(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Attach a "postToggle" event listener to the root node
|
|
20
|
+
* to update the trigger's "aria-expanded" attribute whenever the controlled post-collapsible is toggled
|
|
21
|
+
*/
|
|
22
|
+
componentWillLoad(): void;
|
|
18
23
|
/**
|
|
19
24
|
* Add the "data-version" to the host element and set the trigger
|
|
20
25
|
*/
|
|
@@ -23,10 +28,6 @@ export declare class PostCollapsibleTrigger {
|
|
|
23
28
|
* Disconnect the mutation observer
|
|
24
29
|
*/
|
|
25
30
|
disconnectedCallback(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Update the "aria-expanded" attribute on the trigger anytime the controlled post-collapsible is toggled
|
|
28
|
-
*/
|
|
29
|
-
setAriaExpanded(e: PostCollapsibleCustomEvent<boolean>): void;
|
|
30
31
|
/**
|
|
31
32
|
* Update the "aria-controls" and "aria-expanded" attributes on the trigger button
|
|
32
33
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getRoot(element: HTMLElement): Document | ShadowRoot;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/design-system-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "A collection of web components built with Stencil JS for the Swiss Post Design System.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -23,35 +23,35 @@
|
|
|
23
23
|
"linkDirectory": true
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@floating-ui/dom": "1.6.
|
|
26
|
+
"@floating-ui/dom": "1.6.8",
|
|
27
27
|
"@oddbird/popover-polyfill": "0.3.7",
|
|
28
|
-
"@swisspost/design-system-styles": "
|
|
28
|
+
"@swisspost/design-system-styles": "8.1.0",
|
|
29
29
|
"ally.js": "1.4.1",
|
|
30
30
|
"long-press-event": "2.5.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@percy/cli": "1.
|
|
33
|
+
"@percy/cli": "1.29.0",
|
|
34
34
|
"@percy/cypress": "3.1.2",
|
|
35
35
|
"@stencil-community/eslint-plugin": "0.7.2",
|
|
36
36
|
"@stencil/angular-output-target": "0.8.4",
|
|
37
|
-
"@stencil/core": "4.19.
|
|
37
|
+
"@stencil/core": "4.19.2",
|
|
38
38
|
"@stencil/react-output-target": "0.5.3",
|
|
39
39
|
"@stencil/sass": "3.0.12",
|
|
40
40
|
"@types/jest": "29.5.12",
|
|
41
|
-
"@types/node": "20.14.
|
|
42
|
-
"@typescript-eslint/eslint-plugin": "
|
|
43
|
-
"@typescript-eslint/parser": "
|
|
41
|
+
"@types/node": "20.14.12",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "7.17.0",
|
|
43
|
+
"@typescript-eslint/parser": "7.17.0",
|
|
44
44
|
"bootstrap": "5.3.3",
|
|
45
|
-
"cypress": "13.13.
|
|
45
|
+
"cypress": "13.13.1",
|
|
46
46
|
"cypress-axe": "1.5.0",
|
|
47
47
|
"cypress-storybook": "1.0.0",
|
|
48
48
|
"eslint": "8.57.0",
|
|
49
|
-
"eslint-plugin-react": "7.
|
|
49
|
+
"eslint-plugin-react": "7.35.0",
|
|
50
50
|
"rimraf": "6.0.1",
|
|
51
51
|
"rollup-plugin-postcss": "4.0.2",
|
|
52
|
-
"sass": "1.77.
|
|
53
|
-
"ts-jest": "29.
|
|
54
|
-
"typescript": "5.
|
|
52
|
+
"sass": "1.77.8",
|
|
53
|
+
"ts-jest": "29.2.3",
|
|
54
|
+
"typescript": "5.5.4"
|
|
55
55
|
},
|
|
56
56
|
"keywords": [
|
|
57
57
|
"components",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function checkType(value, type, error) {
|
|
4
|
-
const typeIsArray = type === 'array';
|
|
5
|
-
const valueIsArray = Array.isArray(value);
|
|
6
|
-
if (typeIsArray || valueIsArray) {
|
|
7
|
-
if (valueIsArray !== typeIsArray)
|
|
8
|
-
throw new Error(error);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
if (typeof value !== type)
|
|
12
|
-
throw new Error(error);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
exports.checkType = checkType;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const index = require('./index-1cc8e4e1.js');
|
|
4
|
-
const _package = require('./package-71dcbbc9.js');
|
|
5
|
-
const index$1 = require('./index-f32e5185.js');
|
|
6
|
-
|
|
7
|
-
function isMotionReduced() {
|
|
8
|
-
return window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const collapseDuration = 350;
|
|
12
|
-
const collapseEasing = 'ease';
|
|
13
|
-
const collapsedKeyframe = { height: '0', overflow: 'hidden' };
|
|
14
|
-
const animationOptions = {
|
|
15
|
-
duration: collapseDuration,
|
|
16
|
-
easing: collapseEasing,
|
|
17
|
-
fill: 'forwards',
|
|
18
|
-
};
|
|
19
|
-
const collapse = (el) => {
|
|
20
|
-
const expandedKeyframe = { height: window.getComputedStyle(el).height };
|
|
21
|
-
return el.animate([expandedKeyframe, collapsedKeyframe], animationOptions);
|
|
22
|
-
};
|
|
23
|
-
const expand = (el) => {
|
|
24
|
-
const expandedKeyframe = { height: `${el.scrollHeight}px`, offset: 1 };
|
|
25
|
-
const finalKeyframe = { height: 'auto' };
|
|
26
|
-
return el.animate([collapsedKeyframe, expandedKeyframe, finalKeyframe], animationOptions);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const postCollapsibleCss = ":host{display:block;overflow:hidden}";
|
|
30
|
-
const PostCollapsibleStyle0 = postCollapsibleCss;
|
|
31
|
-
|
|
32
|
-
const PostCollapsible = class {
|
|
33
|
-
constructor(hostRef) {
|
|
34
|
-
index.registerInstance(this, hostRef);
|
|
35
|
-
this.postToggle = index.createEvent(this, "postToggle", 7);
|
|
36
|
-
this.isLoaded = false;
|
|
37
|
-
this.isOpen = true;
|
|
38
|
-
this.collapsed = false;
|
|
39
|
-
}
|
|
40
|
-
collapsedChange() {
|
|
41
|
-
index$1.checkEmptyOrType(this.collapsed, 'boolean', 'The `collapsed` property of the `post-collapsible` must be a boolean.');
|
|
42
|
-
void this.toggle(!this.collapsed);
|
|
43
|
-
}
|
|
44
|
-
componentDidLoad() {
|
|
45
|
-
this.collapsedChange();
|
|
46
|
-
this.isLoaded = true;
|
|
47
|
-
this.updateTriggers();
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Triggers the collapse programmatically.
|
|
51
|
-
*
|
|
52
|
-
* If there is a collapsing transition running already, it will be reversed.
|
|
53
|
-
*/
|
|
54
|
-
async toggle(open = !this.isOpen) {
|
|
55
|
-
if (open === this.isOpen)
|
|
56
|
-
return open;
|
|
57
|
-
this.isOpen = open;
|
|
58
|
-
this.collapsed = !open;
|
|
59
|
-
if (this.isLoaded)
|
|
60
|
-
this.postToggle.emit(open);
|
|
61
|
-
const animation = open ? expand(this.host) : collapse(this.host);
|
|
62
|
-
if (!this.isLoaded || isMotionReduced())
|
|
63
|
-
animation.finish();
|
|
64
|
-
await animation.finished;
|
|
65
|
-
animation.commitStyles();
|
|
66
|
-
return open;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
70
|
-
*/
|
|
71
|
-
updateTriggers() {
|
|
72
|
-
const triggers = document.querySelectorAll(`post-collapsible-trigger[for=${this.host.id}]`);
|
|
73
|
-
triggers.forEach(trigger => trigger.update());
|
|
74
|
-
}
|
|
75
|
-
render() {
|
|
76
|
-
return (index.h(index.Host, { key: 'b86f11ba3139c76bb077ef9f634afaaf7ab62ef5', "data-version": _package.version }, index.h("slot", { key: '0f3a8275a8c6a41bfa97b59ee567c3c0da8e84d0' })));
|
|
77
|
-
}
|
|
78
|
-
get host() { return index.getElement(this); }
|
|
79
|
-
static get watchers() { return {
|
|
80
|
-
"collapsed": ["collapsedChange"]
|
|
81
|
-
}; }
|
|
82
|
-
};
|
|
83
|
-
PostCollapsible.style = PostCollapsibleStyle0;
|
|
84
|
-
|
|
85
|
-
exports.PostCollapsible = PostCollapsible;
|