@justeattakeaway/pie-cookie-banner 1.6.17 → 1.6.18
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/cdn_dist/index.js +15 -13
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/cdn_dist/index.js
CHANGED
|
@@ -169,7 +169,7 @@ const Ut=Symbol.for(""),qt=e=>{if((null==e?void 0:e.r)===Ut)return null==e?void
|
|
|
169
169
|
width: var(--icon-size-override);
|
|
170
170
|
height: var(--icon-size-override);
|
|
171
171
|
}
|
|
172
|
-
`;let oi=ii;ti([be({type:String,reflect:!0})],oi.prototype,"size"),ti([ue()],oi.prototype,"_svgWidth"),ti([ue()],oi.prototype,"_svgHeight");var ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ai=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?ri(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&ni(t,i,r),r};let si=class extends oi{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--close",this.class="c-pieIcon c-pieIcon--close",this.name="IconClose"}render(){return V`<svg width="${this._svgWidth}" height="${this._svgHeight}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--close"><path d="M11.868 3.205 8 7.073 4.133 3.205l-.928.928L7.073 8l-3.868 3.868.928.927L8 8.928l3.868 3.867.927-.927L8.928 8l3.867-3.867-.927-.928Z"></path></svg>`}};ai([be({type:String,reflect:!0})],si.prototype,"size",2),ai([be({type:String,reflect:!0})],si.prototype,"class",2),si=ai([Pe("icon-close")],si);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,di=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?ci(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&li(t,i,r),r};let hi=class extends oi{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--chevronLeft",this.class="c-pieIcon c-pieIcon--chevronLeft",this.name="IconChevronLeft"}render(){return V`<svg width="${this._svgWidth}" height="${this._svgHeight}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--chevronLeft"><path d="M10.96 2.82 5.605 8l5.399 5.197-.875.963-5.565-5.364a1.164 1.164 0 0 1 0-1.671l5.495-5.25.901.945Z"></path></svg>`}};di([be({type:String,reflect:!0})],hi.prototype,"size",2),di([be({type:String,reflect:!0})],hi.prototype,"class",2),hi=di([Pe("icon-chevron-left")],hi);const pi=class e extends le{willUpdate(){this.getAttribute("v")||this.setAttribute("v",e.v)}};pi.v="1.
|
|
172
|
+
`;let oi=ii;ti([be({type:String,reflect:!0})],oi.prototype,"size"),ti([ue()],oi.prototype,"_svgWidth"),ti([ue()],oi.prototype,"_svgHeight");var ni=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,ai=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?ri(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&ni(t,i,r),r};let si=class extends oi{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--close",this.class="c-pieIcon c-pieIcon--close",this.name="IconClose"}render(){return V`<svg width="${this._svgWidth}" height="${this._svgHeight}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--close"><path d="M11.868 3.205 8 7.073 4.133 3.205l-.928.928L7.073 8l-3.868 3.868.928.927L8 8.928l3.868 3.867.927-.927L8.928 8l3.867-3.867-.927-.928Z"></path></svg>`}};ai([be({type:String,reflect:!0})],si.prototype,"size",2),ai([be({type:String,reflect:!0})],si.prototype,"class",2),si=ai([Pe("icon-close")],si);var li=Object.defineProperty,ci=Object.getOwnPropertyDescriptor,di=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?ci(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&li(t,i,r),r};let hi=class extends oi{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--chevronLeft",this.class="c-pieIcon c-pieIcon--chevronLeft",this.name="IconChevronLeft"}render(){return V`<svg width="${this._svgWidth}" height="${this._svgHeight}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--chevronLeft"><path d="M10.96 2.82 5.605 8l5.399 5.197-.875.963-5.565-5.364a1.164 1.164 0 0 1 0-1.671l5.495-5.25.901.945Z"></path></svg>`}};di([be({type:String,reflect:!0})],hi.prototype,"size",2),di([be({type:String,reflect:!0})],hi.prototype,"class",2),hi=di([Pe("icon-chevron-left")],hi);const pi=class e extends le{willUpdate(){this.getAttribute("v")||this.setAttribute("v",e.v)}};pi.v="1.12.0";let vi=pi;var bi=!1;if(typeof window<"u"){var ui={get passive(){bi=!0}};window.addEventListener("testPassive",null,ui),window.removeEventListener("testPassive",null,ui)}var mi=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),gi=[],fi=!1,yi=-1,ki=void 0,wi=void 0,xi=function(e){return gi.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})},Ai=function(e){var t=e||window.event;return!!(xi(t.target)||t.touches.length>1)||(t.preventDefault&&t.preventDefault(),!1)},_i=function(e,t){if(e){if(!gi.some(function(t){return t.targetElement===e})){var i={targetElement:e,options:{}};gi=[].concat(function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}(gi),[i]),mi?(e.ontouchstart=function(e){1===e.targetTouches.length&&(yi=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var i=e.targetTouches[0].clientY-yi;!xi(e.target)&&(t&&0===t.scrollTop&&i>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&i<0?Ai(e):e.stopPropagation())}(t,e)},fi||(document.addEventListener("touchmove",Ai,bi?{passive:!1}:void 0),fi=!0)):function(){void 0===wi&&(window.innerWidth,document.documentElement.clientWidth);void 0===ki&&(ki=document.body.style.overflow,document.body.style.overflow="hidden")}()}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},zi=function(e){e?(gi=gi.filter(function(t){return t.targetElement!==e}),mi?(e.ontouchstart=null,e.ontouchmove=null,fi&&0===gi.length&&(document.removeEventListener("touchmove",Ai,bi?{passive:!1}:void 0),fi=!1)):gi.length||(void 0!==wi&&(document.body.style.paddingRight=wi,wi=void 0),void 0!==ki&&(document.body.style.overflow=ki,ki=void 0))):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")};const Si="pie-modal-close",Ei="pie-modal-open",$i="pie-modal-back",Ci=!1,Mi=!1,Oi="h2",Ti=!1,Bi=!1,Pi=!0,Li=!1,Ni=!1,ji="center",Ii="medium";var Di=Object.defineProperty,Fi=Object.getOwnPropertyDescriptor,Ri=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?Fi(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&Di(t,i,r),r};const Hi="pie-modal";let Vi=class extends vi{constructor(){super(...arguments),this.headingLevel=Oi,this.hasBackButton=Ci,this.hasStackedActions=Mi,this.isDismissible=Bi,this.isFooterPinned=Pi,this.isFullWidthBelowMid=Li,this.isLoading=Ni,this.isOpen=Ti,this.position=ji,this.size=Ii,this._scrollableContainer=null,this._backButtonClicked=!1,this._escKeyAbortController=null,this._preventModalKeyboardDismissal=e=>{"Escape"===e.key&&e.preventDefault()},this._handleDialogLightDismiss=e=>{if(!this.isDismissible||e.target!==e.currentTarget)return;const t=this._dialog.getBoundingClientRect(),{top:i=0,bottom:o=0,left:n=0,right:r=0}=t||{};0===i&&0===o&&0===n&&0===r||(e.clientY<i||e.clientY>o||e.clientX<n||e.clientX>r)&&(this.isOpen=!1)}}get _modalScrollContainer(){var e;return this._scrollableContainer||(this._scrollableContainer=null==(e=this._dialog)?void 0:e.querySelector(".c-modal-scrollContainer")),this._scrollableContainer}connectedCallback(){super.connectedCallback(),this._abortController=new AbortController;const{signal:e}=this._abortController;this.addEventListener("click",e=>this._handleDialogLightDismiss(e)),this._setupEscKeyListener(),document.addEventListener(Ei,e=>this._handleModalOpened(e),{signal:e}),document.addEventListener(Si,e=>this._handleModalClosed(e),{signal:e}),document.addEventListener($i,e=>this._handleModalClosed(e),{signal:e})}disconnectedCallback(){super.disconnectedCallback(),this._abortController.abort(),this._enableBodyScroll(),this._removeEscKeyEventListener()}async firstUpdated(e){(await Promise.resolve().then(()=>Ho).then(e=>e.default)).registerDialog(this._dialog);const{signal:t}=this._abortController;this._dialog.addEventListener("close",()=>{this.isOpen=!1},{signal:t}),this._handleModalOpenStateOnFirstRender(e)}updated(e){this._handleModalOpenStateChanged(e),this._handleIsDismissibleChanged(e)}_handleIsDismissibleChanged(e){const t=e.get("isDismissible"),i=this.isDismissible;!t&&i&&this._removeEscKeyEventListener(),t&&!i&&this._setupEscKeyListener()}_handleModalOpened(e){const{targetModal:t}=e.detail;if(t===this){if(this._dialog.hasAttribute("open")||!this._dialog.isConnected)return;this._dialog.showModal(),requestAnimationFrame(()=>{this._dialog.hasAttribute("open")&&(this._disableBodyScroll(),this._setupEscKeyListener())})}}_handleModalClosed(e){const{targetModal:t}=e.detail;t===this&&(this._enableBodyScroll(),this._dialog.close(),this._returnFocus(),this._removeEscKeyEventListener())}_setupEscKeyListener(){if(!this._escKeyAbortController&&!this.isDismissible){this._escKeyAbortController=new AbortController;const{signal:e}=this._escKeyAbortController;document.addEventListener("keydown",e=>this._preventModalKeyboardDismissal(e),{signal:e})}}_removeEscKeyEventListener(){var e;null==(e=this._escKeyAbortController)||e.abort(),this._escKeyAbortController=null}_handleModalOpenStateOnFirstRender(e){void 0===e.get("isOpen")&&this.isOpen&&Le(this,Ei,{targetModal:this})}_handleModalOpenStateChanged(e){const t=e.get("isOpen");void 0!==t&&(t?this._backButtonClicked?(this._backButtonClicked=!1,Le(this,$i,{targetModal:this})):Le(this,Si,{targetModal:this}):Le(this,Ei,{targetModal:this}))}_handleActionClick(e){"leading"===e?(this._dialog.close("leading"),Le(this,"pie-modal-leading-action-click",{targetModal:this})):"supporting"===e&&(this._dialog.close("supporting"),Le(this,"pie-modal-supporting-action-click",{targetModal:this}))}_returnFocus(){var e,t;const i=null==(e=this.returnFocusAfterCloseSelector)?void 0:e.trim();i&&(null==(t=document.querySelector(i))||t.focus())}_enableBodyScroll(){this._scrollableContainer&&zi(this._scrollableContainer)}_disableBodyScroll(){this._modalScrollContainer&&_i(this._modalScrollContainer)}renderCloseButton(){var e;return this.isDismissible?Gt`
|
|
173
173
|
<pie-icon-button
|
|
174
174
|
@click="${()=>{this.isOpen=!1}}"
|
|
175
175
|
variant="ghost-secondary"
|
|
@@ -240,44 +240,46 @@ const Ut=Symbol.for(""),qt=e=>{if((null==e?void 0:e.r)===Ut)return null==e?void
|
|
|
240
240
|
<div class="c-modal-scrollContainer">
|
|
241
241
|
${this.renderModalContentAndFooter()}
|
|
242
242
|
</div>`}
|
|
243
|
-
</dialog>`}};Vi.styles=s('*,*:after,*:before{box-sizing:inherit}dialog{position:absolute;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000001a}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.c-modal{--modal-size-s: 450px;--modal-size-m: 600px;--modal-size-l: 1080px;--modal-border-radius: var(--dt-radius-rounded-d);--modal-font: var(--dt-font-interactive-l-family);--modal-bg-color: var(--dt-color-container-default);--modal-elevation: var(--dt-elevation-below-20);position:fixed;top:0;border-radius:var(--modal-border-radius);border:none;box-shadow:var(--modal-elevation);font-family:var(--modal-font);color:var(--dt-color-content-default);background-color:var(--modal-bg-color);padding:0;--modal-margin-none: var(--dt-spacing-none);--modal-margin-small: var(--dt-spacing-g);--modal-margin-large: var(--dt-spacing-j);--modal-margin-block: var(--modal-margin-small);--modal-block-size: fit-content;--modal-inline-size: 75%;--modal-max-block-size: calc(100vh - calc(var(--modal-margin-block) * 2));--modal-max-inline-size: var(--modal-size-m);block-size:var(--modal-block-size);inline-size:var(--modal-inline-size);max-block-size:var(--modal-max-block-size);max-inline-size:var(--modal-max-inline-size)}.c-modal:focus-visible{outline:none}@media (max-width: 767px){.c-modal pie-icon-button{--btn-dimension: 40px}}.c-modal[open]{display:flex;flex-direction:column}@media (min-width: 769px){.c-modal{--modal-margin-block: var(--modal-margin-large)}}.c-modal.c-modal--small{--modal-max-inline-size: var(--modal-size-s)}@media (min-width: 769px){.c-modal.c-modal--small{--modal-margin-block: var(--modal-margin-large)}}.c-modal.c-modal--large{--modal-inline-size: 75%;--modal-max-inline-size: var(--modal-size-l);--modal-margin-block: var(--modal-margin-large)}@media (max-width: 767px){.c-modal.c-modal--large,.c-modal.c-modal--medium.c-modal--fullWidthBelowMid{--modal-margin-block: var(--modal-margin-none);--modal-border-radius: var(--dt-radius-rounded-none);--modal-block-size: 100%;--modal-inline-size: 100%;--modal-max-inline-size: 100%}.c-modal.c-modal--large>.c-modal-scrollContainer,.c-modal.c-modal--medium.c-modal--fullWidthBelowMid>.c-modal-scrollContainer{block-size:100%}}.c-modal.c-modal--top{margin-block-start:var(--dt-spacing-j);max-block-size:calc(100% - var(--dt-spacing-j) * 2)}@media (max-width: 767px){.c-modal.c-modal--top.c-modal--large,.c-modal.c-modal--top.c-modal--fullWidthBelowMid.c-modal--medium{margin-block-start:var(--dt-spacing-none);max-block-size:100%}}.c-modal::backdrop{background:var(--dt-color-overlay)}@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){.c-modal::backdrop{background:#0000008c}}.c-modal .c-modal-footer{--modal-button-spacing: var(--dt-spacing-d);--modal-footer-padding: var(--dt-spacing-d);display:flex;flex-flow:row-reverse;flex-wrap:wrap;gap:var(--modal-button-spacing);padding:var(--modal-footer-padding)}@media (min-width: 769px){.c-modal .c-modal-footer{--modal-footer-padding: var(--dt-spacing-e)}}@media (max-width: 767px){.c-modal .c-modal-footer.c-modal-footer--stackedActions{flex-direction:column}}.c-modal ::slotted([slot=footer]){display:flex;width:100%}.c-modal .c-modal-header{display:grid;grid-template-areas:"back heading close";grid-template-columns:minmax(0,max-content) minmax(0,1fr) minmax(0,max-content);align-items:start}.c-modal .c-modal-heading{--modal-header-font-size: calc(var(--dt-font-heading-m-size--narrow) * 1px);--modal-header-font-line-height: calc(var(--dt-font-heading-m-line-height--narrow) * 1px);--modal-header-font-weight: var(--dt-font-heading-m-weight);font-size:var(--modal-header-font-size);line-height:var(--modal-header-font-line-height);font-weight:var(--modal-header-font-weight);margin:0;grid-area:heading;margin-inline-start:var(--dt-spacing-d);margin-inline-end:var(--dt-spacing-d);margin-block:14px}@media (min-width: 769px){.c-modal .c-modal-heading{--modal-header-font-size: calc(var(--dt-font-heading-m-size--wide) * 1px);--modal-header-font-line-height: calc(var(--dt-font-heading-m-line-height--wide) * 1px);margin-inline-start:var(--dt-spacing-e);margin-inline-end:var(--dt-spacing-e);margin-block:20px}}.c-modal .c-modal-backBtn+.c-modal-heading{margin-inline-start:var(--dt-spacing-b)}@media (min-width: 769px){.c-modal .c-modal-backBtn+.c-modal-heading{margin-inline-start:var(--dt-spacing-c)}}.c-modal.c-modal--dismissible .c-modal-heading{margin-inline-end:var(--dt-spacing-d)}@media (min-width: 769px){.c-modal.c-modal--dismissible .c-modal-heading{margin-inline-end:var(--dt-spacing-e)}}.c-modal .c-modal-backBtn{grid-area:back;margin-block-start:var(--dt-spacing-b);margin-block-end:var(--dt-spacing-b);margin-inline-start:var(--dt-spacing-b);margin-inline-end:var(--dt-spacing-none)}@media (min-width: 769px){.c-modal .c-modal-backBtn{margin-block-start:var(--dt-spacing-c);margin-block-end:var(--dt-spacing-c);margin-inline-start:var(--dt-spacing-c);margin-inline-end:var(--dt-spacing-none)}}.c-modal .c-modal-closeBtn{grid-area:close;margin-block-start:var(--dt-spacing-b);margin-block-end:var(--dt-spacing-b);margin-inline-start:var(--dt-spacing-none);margin-inline-end:var(--dt-spacing-b)}@media (min-width: 769px){.c-modal .c-modal-closeBtn{margin-block-start:var(--dt-spacing-c);margin-block-end:var(--dt-spacing-c);margin-inline-start:var(--dt-spacing-none);margin-inline-end:var(--dt-spacing-c)}}.c-modal .c-modal-content{--modal-content-font-size: calc(var(--dt-font-size-16) * 1px);--modal-content-font-weight: var(--dt-font-weight-regular);--modal-content-line-height: calc(var(--dt-font-size-16-line-height) * 1px);--modal-content-padding-block: var(--dt-spacing-a);--modal-content-padding-inline: var(--dt-spacing-d);--modal-content-padding-block-end: var(--dt-spacing-e);--modal-content-min-block-size: var(--dt-spacing-j);position:relative;min-block-size:calc(var(--modal-content-min-block-size) + var(--modal-content-padding-block) + var(--modal-content-padding-block-end));font-size:var(--modal-content-font-size);line-height:var(--modal-content-line-height);font-weight:var(--modal-content-font-weight);padding-inline-start:var(--modal-content-padding-inline);padding-inline-end:var(--modal-content-padding-inline);padding-block-start:var(--modal-content-padding-block);padding-block-end:var(--modal-content-padding-block-end);flex-grow:1}@media (min-width: 769px){.c-modal .c-modal-content{--modal-content-padding-inline: var(--dt-spacing-e)}}.c-modal .c-modal-content:has(+slot>footer){padding-block-end:var(--modal-content-padding-block);min-block-size:var(--modal-content-min-block-size)}.c-modal .c-modal-content--scrollable{background:linear-gradient(to bottom,transparent,var(--dt-color-container-default) 75%) center bottom,linear-gradient(transparent,var(--dt-color-border-strong)) center bottom;background-repeat:no-repeat;background-size:100% 48px,100% 12px;background-attachment:local,scroll}.c-modal>.c-modal-scrollContainer{display:flex;flex-direction:column;overflow-y:auto;--bg-scroll-end: linear-gradient(rgba(255, 255, 255, 0), var(--dt-color-container-default) 70%) 0 100%;--bg-scroll-bottom: radial-gradient(farthest-corner at 50% 100%, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0)) 0 100%;--bg-size-scroll-end: 100% 40px;--bg-size-scroll-bottom: 100% 8px;background:var(--bg-scroll-end),var(--bg-scroll-bottom);background-repeat:no-repeat;background-size:var(--bg-size-scroll-end),var(--bg-size-scroll-bottom);background-attachment:local,scroll}.c-modal>.c-modal-scrollContainer .c-modal-content{flex-shrink:0}.c-modal.c-modal--pinnedFooter .c-modal-content{overflow-y:auto}.c-modal.c-modal--loading .c-modal-content pie-spinner{position:absolute;left:50%;top:calc(50% - (var(--modal-content-padding-block-end) - var(--modal-content-padding-block)) / 2);transform:translate(-50%,-50%)}.c-modal.c-modal--loading .c-modal-content .c-modal-contentInner{display:none}.c-modal.c-modal--loading .c-modal-content:not(:last-child) pie-spinner{top:50%}@supports not (aspect-ratio: 1/1){.c-modal .c-modal-scrollContainer{background:none}}.c-modal .c-modal-backBtn-icon:dir(rtl){transform:rotate(180deg)}'),Ri([be({type:Object})],Vi.prototype,"aria",2),Ri([be({type:String}),(e=>function(t,i){const o=`#${i}`;Object.defineProperty(t,i,{get(){return this[o]},set(t){(null==t||"string"==typeof t&&""===t.trim())&&console.error(`<${e}> Missing required attribute "${i}"`),this[o]=t},configurable:!0})})(Hi)],Vi.prototype,"heading",2),Ri([be({type:String}),Be(Hi,["h1","h2","h3","h4","h5","h6"],Oi)],Vi.prototype,"headingLevel",2),Ri([be({type:Boolean})],Vi.prototype,"hasBackButton",2),Ri([be({type:Boolean})],Vi.prototype,"hasStackedActions",2),Ri([be({type:Boolean,reflect:!0})],Vi.prototype,"isDismissible",2),Ri([be({type:Boolean})],Vi.prototype,"isFooterPinned",2),Ri([be({type:Boolean})],Vi.prototype,"isFullWidthBelowMid",2),Ri([be({type:Boolean,reflect:!0})],Vi.prototype,"isLoading",2),Ri([be({type:Boolean})],Vi.prototype,"isOpen",2),Ri([be({type:Object})],Vi.prototype,"leadingAction",2),Ri([be({type:String}),Be(Hi,["top","center"],ji)],Vi.prototype,"position",2),Ri([be({type:String})],Vi.prototype,"returnFocusAfterCloseSelector",2),Ri([be({type:String}),Be(Hi,["small","medium","large"],Ii)],Vi.prototype,"size",2),Ri([be({type:Object})],Vi.prototype,"supportingAction",2),Ri([ge("dialog")],Vi.prototype,"_dialog",2),Vi=Ri([Pe("pie-modal")],Vi);var Wi=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,qi=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?Ui(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&Wi(t,i,r),r};let Ki=class extends oi{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--check",this.class="c-pieIcon c-pieIcon--check",this.name="IconCheck"}render(){return V`<svg width="${this._svgWidth}" height="${this._svgHeight}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--check"><path d="M5.865 12.489a1.217 1.217 0 0 1-.875-.385L1.875 8.656l.98-.875 3.028 3.369 7.253-7.822.963.875-7.35 7.875c-.113.12-.248.215-.398.282-.15.066-.322.127-.486.129Z"></path></svg>`}};qi([be({type:String,reflect:!0})],Ki.prototype,"size",2),qi([be({type:String,reflect:!0})],Ki.prototype,"class",2),Ki=qi([Pe("icon-check")],Ki);const Gi=class e extends le{willUpdate(){this.getAttribute("v")||this.setAttribute("v",e.v)}};Gi.v="2.1.0";let Zi=Gi;!function(e){const t=new WeakMap,i=new WeakMap,o=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,v=new WeakMap,b=new WeakMap,u=new WeakMap,m={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function g(e){const t=n.get(e),{form:i}=t;T(e,i,t),E(e,t.labels)}const f=(e,t=!1)=>{const i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>n.has(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let o=i.nextNode();const r=!t||e.disabled;for(;o;)o.formDisabledCallback&&r&&_(o,e.disabled),o=i.nextNode()},y={attributes:!0,attributeFilter:["disabled","name"]},k=j()?new MutationObserver(e=>{for(const t of e){const e=t.target;if("disabled"===t.attributeName&&(e.constructor.formAssociated?_(e,e.hasAttribute("disabled")):"fieldset"===e.localName&&f(e)),"name"===t.attributeName&&e.constructor.formAssociated){const t=n.get(e),i=c.get(e);t.setFormValue(i)}}}):{};function w(e){e.forEach(e=>{const{addedNodes:t,removedNodes:i}=e,r=Array.from(t),a=Array.from(i);r.forEach(e=>{var t;if(n.has(e)&&e.constructor.formAssociated&&g(e),d.has(e)){const t=d.get(e);Object.keys(m).filter(e=>null!==t[e]).forEach(i=>{e.setAttribute(m[i],t[i])}),d.delete(e)}if(u.has(e)){const t=u.get(e);e.setAttribute("internals-valid",t.validity.valid.toString()),e.setAttribute("internals-invalid",(!t.validity.valid).toString()),e.setAttribute("aria-invalid",(!t.validity.valid).toString()),u.delete(e)}if("form"===e.localName){const t=l.get(e),i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>!n.has(e)||!e.constructor.formAssociated||t&&t.has(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});let o=i.nextNode();for(;o;)g(o),o=i.nextNode()}"fieldset"===e.localName&&(null===(t=k.observe)||void 0===t||t.call(k,e,y),f(e,!0))}),a.forEach(e=>{const t=n.get(e);t&&o.get(t)&&z(t),s.has(e)&&s.get(e).disconnect()})})}function x(e){e.forEach(e=>{const{removedNodes:t}=e;t.forEach(t=>{const i=v.get(e.target);n.has(t)&&N(t),i.disconnect()})})}j()&&new MutationObserver(w);const A={childList:!0,subtree:!0},_=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},z=e=>{o.get(e).forEach(e=>{e.remove()}),o.set(e,[])},S=(e,t)=>{const i=document.createElement("input");return i.type="hidden",i.name=e.getAttribute("name"),e.after(i),o.get(t).push(i),i},E=(e,t)=>{if(t.length){Array.from(t).forEach(t=>t.addEventListener("click",e.click.bind(e)));let i=t[0].id;t[0].id||(i=`${t[0].htmlFor}_Label`,t[0].id=i),e.setAttribute("aria-labelledby",i)}},$=e=>{const t=Array.from(e.elements).filter(e=>!e.tagName.includes("-")&&e.validity).map(e=>e.validity.valid),i=l.get(e)||[],o=[...t,...Array.from(i).filter(e=>e.isConnected).map(e=>n.get(e).validity.valid)].includes(!1);e.toggleAttribute("internals-invalid",o),e.toggleAttribute("internals-valid",!o)},C=e=>{$(B(e.target))},M=e=>{$(B(e.target))},O=e=>{const t=l.get(e.target);t&&t.size&&t.forEach(e=>{e.constructor.formAssociated&&e.formResetCallback&&e.formResetCallback.apply(e)})},T=(e,t,i)=>{if(t){const o=l.get(t);if(o)o.add(e);else{const i=new Set;i.add(e),l.set(t,i),(e=>{const t=["button[type=submit]","input[type=submit]","button:not([type])"].map(e=>`${e}:not([disabled])`).map(t=>`${t}:not([form])${e.id?`,${t}[form='${e.id}']`:""}`).join(",");e.addEventListener("click",i=>{if(i.target.closest(t)){const t=l.get(e);if(e.noValidate)return;t.size&&Array.from(t).reverse().map(e=>n.get(e).reportValidity()).includes(!1)&&i.preventDefault()}})})(t),t.addEventListener("reset",O),t.addEventListener("input",C),t.addEventListener("change",M)}a.set(t,{ref:e,internals:i}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout(()=>{e.formAssociatedCallback.apply(e,[t])},0),$(t)}},B=e=>{let t=e.parentNode;return t&&"FORM"!==t.tagName&&(t=B(t)),t},P=(e,t,i=DOMException)=>{if(!e.constructor.formAssociated)throw new i(t)},L=(e,t,i)=>{const o=l.get(e);return o&&o.size&&o.forEach(e=>{n.get(e)[i]()||(t=!1)}),t},N=e=>{if(e.constructor.formAssociated){const t=n.get(e),{labels:i,form:o}=t;E(e,i),T(e,o,t)}};function j(){return typeof MutationObserver<"u"}class I{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const D=e=>{let t=!0;for(let i in e)"valid"!==i&&!1!==e[i]&&(t=!1);return t},F=new WeakMap;function R(e,t){e.toggleAttribute(t,!0),e.part&&e.part.add(t)}class H extends Set{static get isPolyfilled(){return!0}constructor(e){if(super(),!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");F.set(this,e)}add(e){if(!/^--/.test(e)||"string"!=typeof e)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);const t=super.add(e),i=F.get(this),o=`state${e}`;return i.isConnected?R(i,o):setTimeout(()=>{R(i,o)}),t}clear(){for(let[e]of this.entries())this.delete(e);super.clear()}delete(e){const t=super.delete(e),i=F.get(this);return i.isConnected?(i.toggleAttribute(`state${e}`,!1),i.part&&i.part.remove(`state${e}`)):setTimeout(()=>{i.toggleAttribute(`state${e}`,!1),i.part&&i.part.remove(`state${e}`)}),t}}function V(e,t,i,o){if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(e):o?o.value:t.get(e)}var W;class U{constructor(e){W.set(this,void 0),function(e,t,i){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");t.set(e,i)}(this,W,e);for(let t=0;t<e.length;t++){let i=e[t];this[t]=i,i.hasAttribute("name")&&(this[i.getAttribute("name")]=i)}Object.freeze(this)}get length(){return V(this,W,"f").length}[(W=new WeakMap,Symbol.iterator)](){return V(this,W,"f")[Symbol.iterator]()}item(e){return null==this[e]?null:this[e]}namedItem(e){return null==this[e]?null:this[e]}}class q{static get isPolyfilled(){return!0}constructor(e){if(!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const r=e.getRootNode(),a=new I;this.states=new H(e),t.set(this,e),i.set(this,a),n.set(e,this),((e,t)=>{for(let i in m){t[i]=null;let o=null;const n=m[i];Object.defineProperty(t,i,{get:()=>o,set(i){o=i,e.isConnected?e.setAttribute(n,i):d.set(e,t)}})}})(e,this),((e,t)=>{var i;o.set(t,[]),null===(i=k.observe)||void 0===i||i.call(k,e,y)})(e,this),Object.seal(this),r instanceof DocumentFragment&&(e=>{var t,i;const o=new MutationObserver(x);!(null===(t=null==window?void 0:window.ShadyDOM)||void 0===t)&&t.inUse&&e.mode&&e.host&&(e=e.host),null===(i=o.observe)||void 0===i||i.call(o,e,{childList:!0}),v.set(e,o)})(r)}checkValidity(){const e=t.get(this);if(P(e,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const o=i.get(this);if(!o.valid){const t=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});e.dispatchEvent(t)}return o.valid}get form(){const e=t.get(this);let i;return P(e,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===e.constructor.formAssociated&&(i=B(e)),i}get labels(){const e=t.get(this);P(e,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const i=e.getAttribute("id"),o=e.getRootNode();return o&&i?o.querySelectorAll(`[for="${i}"]`):[]}reportValidity(){const e=t.get(this);if(P(e,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const i=this.checkValidity(),o=p.get(this);if(o&&!e.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!i&&o&&(e.focus(),o.focus()),i}setFormValue(e){const i=t.get(this);P(i,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),z(this),null==e||e instanceof FormData?null!=e&&e instanceof FormData&&Array.from(e).reverse().forEach(([e,t])=>{if("string"==typeof t){const o=S(i,this);o.name=e,o.value=t}}):i.getAttribute("name")&&(S(i,this).value=e),c.set(i,e)}setValidity(e,o,n){const a=t.get(this);if(P(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!e)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");p.set(this,n);const s=i.get(this),l={};for(const t in e)l[t]=e[t];var c;0===Object.keys(l).length&&((c=s).badInput=!1,c.customError=!1,c.patternMismatch=!1,c.rangeOverflow=!1,c.rangeUnderflow=!1,c.stepMismatch=!1,c.tooLong=!1,c.tooShort=!1,c.typeMismatch=!1,c.valid=!0,c.valueMissing=!1);const d=Object.assign(Object.assign({},s),l);delete d.valid;const{valid:h}=((e,t,i)=>(e.valid=D(t),Object.keys(t).forEach(i=>e[i]=t[i]),i&&$(i),e))(s,d,this.form);if(!h&&!o)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");r.set(this,h?"":o),a.isConnected?(a.toggleAttribute("internals-invalid",!h),a.toggleAttribute("internals-valid",h),a.setAttribute("aria-invalid",`${!h}`)):u.set(a,this)}get shadowRoot(){const e=t.get(this);return h.get(e)||null}get validationMessage(){const e=t.get(this);return P(e,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),r.get(this)}get validity(){const e=t.get(this);return P(e,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),i.get(this)}get willValidate(){const e=t.get(this);return P(e,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(e.disabled||e.hasAttribute("disabled")||e.hasAttribute("readonly"))}}let K=!1,G=!1;function Z(e){G||(G=!0,window.CustomStateSet=H,e&&(HTMLElement.prototype.attachInternals=function(...t){const i=e.call(this,t);return i.states=new H(this),i}))}function Y(e=!0){if(!K){if(K=!0,typeof window<"u"&&(window.ElementInternals=q),typeof CustomElementRegistry<"u"){const e=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(t,i,o){if(i.formAssociated){const e=i.prototype.connectedCallback;i.prototype.connectedCallback=function(){b.has(this)||(b.set(this,!0),this.hasAttribute("disabled")&&_(this,!0)),null!=e&&e.apply(this),N(this)}}e.call(this,t,i,o)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(n.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new q(this)}),typeof Element<"u"){let e=function(...e){const i=t.apply(this,e);if(h.set(this,i),j()){const e=new MutationObserver(w);window.ShadyDOM?e.observe(this,A):e.observe(i,A),s.set(this,e)}return i};const t=Element.prototype.attachShadow;Element.prototype.attachShadow=e}j()&&typeof document<"u"&&new MutationObserver(w).observe(document.documentElement,A),typeof HTMLFormElement<"u"&&function(){const e=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...t){let i=e.apply(this,t);return L(this,i,"checkValidity")};const t=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...e){let i=t.apply(this,e);return L(this,i,"reportValidity")};const{get:i}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...e){const t=i.call(this,...e),o=Array.from(l.get(this)||[]);if(0===o.length)return t;const n=Array.from(t).concat(o).sort((e,t)=>e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:0);return new U(n)}})}(),(e||typeof window<"u"&&!window.CustomStateSet)&&Z()}}!!customElements.polyfillWrapFlushCallback||(function(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);const i=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(e=>e in i.internals)}()?typeof window<"u"&&!window.CustomStateSet&&Z(HTMLElement.prototype.attachInternals):Y(!1)),e.forceCustomStateSetPolyfill=Z,e.forceElementInternalsPolyfill=Y,Object.defineProperty(e,"__esModule",{value:!0})}({});const Yi=!1,Xi=!1,Qi="leading",Ji=!1,eo="on";var to=Object.defineProperty,io=Object.getOwnPropertyDescriptor,oo=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?io(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&to(t,i,r),r};let no=class extends(Ne(Zi)){constructor(){super(...arguments),this.labelPlacement=Qi,this.checked=Yi,this.required=Ji,this.value=eo,this.disabled=Xi,this._isAnimationAllowed=!1}firstUpdated(){this.handleFormAssociation(),this.input.addEventListener("invalid",e=>{this.dispatchEvent(new Event("invalid",e))})}updated(){this.handleFormAssociation()}handleFormAssociation(){this._internals.form&&this.name&&this.value&&(this.disabled?(this._internals.setFormValue(null),this._internals.setValidity({})):this.checked?(this._internals.setFormValue(this.value),this._internals.setValidity({})):(this._internals.setFormValue(null),this._internals.setValidity(this.validity,this.validationMessage,this.input)))}handleChange(e){const{checked:t}=null==e?void 0:e.currentTarget;this.checked=t;const i=function(e){return new CustomEvent(e.type,{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable})}(e);this._isAnimationAllowed||(this._isAnimationAllowed=!0),this.dispatchEvent(i),this.handleFormAssociation()}checkValidity(){return this.input.checkValidity()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this._internals.setValidity(this.validity,this.validationMessage,this.input)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}renderSwitchLabel(e){const{label:t,labelPlacement:i}=this;return t&&i===e?V`
|
|
243
|
+
</dialog>`}};Vi.styles=s('*,*:after,*:before{box-sizing:inherit}dialog{position:absolute;left:0;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;margin:auto;border:solid;padding:1em;background:#fff;color:#000;display:block}dialog:not([open]){display:none}dialog+.backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000001a}._dialog_overlay{position:fixed;top:0;right:0;bottom:0;left:0}dialog.fixed{position:fixed;top:50%;transform:translateY(-50%)}.c-modal{--modal-size-s: 450px;--modal-size-m: 600px;--modal-size-l: 1080px;--modal-border-radius: var(--dt-radius-rounded-d);--modal-font: var(--dt-font-interactive-l-family);--modal-bg-color: var(--dt-color-container-default);--modal-elevation: var(--dt-elevation-below-20);position:fixed;top:0;border-radius:var(--modal-border-radius);border:none;box-shadow:var(--modal-elevation);font-family:var(--modal-font);color:var(--dt-color-content-default);background-color:var(--modal-bg-color);padding:0;--modal-margin-none: var(--dt-spacing-none);--modal-margin-small: var(--dt-spacing-g);--modal-margin-large: var(--dt-spacing-j);--modal-margin-block: var(--modal-margin-small);--modal-block-size: fit-content;--modal-inline-size: 75%;--modal-max-block-size: calc(100vh - calc(var(--modal-margin-block) * 2));--modal-max-inline-size: var(--modal-size-m);block-size:var(--modal-block-size);inline-size:var(--modal-inline-size);max-block-size:var(--modal-max-block-size);max-inline-size:var(--modal-max-inline-size)}.c-modal:focus-visible{outline:none}@media (max-width: 767px){.c-modal pie-icon-button{--btn-dimension: 40px}}.c-modal[open]{display:flex;flex-direction:column}@media (min-width: 769px){.c-modal{--modal-margin-block: var(--modal-margin-large)}}.c-modal.c-modal--small{--modal-max-inline-size: var(--modal-size-s)}@media (min-width: 769px){.c-modal.c-modal--small{--modal-margin-block: var(--modal-margin-large)}}.c-modal.c-modal--large{--modal-inline-size: 75%;--modal-max-inline-size: var(--modal-size-l);--modal-margin-block: var(--modal-margin-large)}@media (max-width: 767px){.c-modal.c-modal--large,.c-modal.c-modal--medium.c-modal--fullWidthBelowMid{--modal-margin-block: var(--modal-margin-none);--modal-border-radius: var(--dt-radius-rounded-none);--modal-block-size: 100%;--modal-inline-size: 100%;--modal-max-inline-size: 100%}.c-modal.c-modal--large>.c-modal-scrollContainer,.c-modal.c-modal--medium.c-modal--fullWidthBelowMid>.c-modal-scrollContainer{block-size:100%}}.c-modal.c-modal--top{margin-block-start:var(--dt-spacing-j);max-block-size:calc(100% - var(--dt-spacing-j) * 2)}@media (max-width: 767px){.c-modal.c-modal--top.c-modal--large,.c-modal.c-modal--top.c-modal--fullWidthBelowMid.c-modal--medium{margin-block-start:var(--dt-spacing-none);max-block-size:100%}}.c-modal::backdrop{background:var(--dt-color-overlay)}@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none){.c-modal::backdrop{background:#0000008c}}.c-modal .c-modal-footer{--modal-button-spacing: var(--dt-spacing-d);--modal-footer-padding: var(--dt-spacing-d);display:flex;flex-flow:row-reverse;flex-wrap:wrap;gap:var(--modal-button-spacing);padding:var(--modal-footer-padding)}@media (min-width: 769px){.c-modal .c-modal-footer{--modal-footer-padding: var(--dt-spacing-e)}}@media (max-width: 767px){.c-modal .c-modal-footer.c-modal-footer--stackedActions{flex-direction:column}}.c-modal ::slotted([slot=footer]){display:flex;width:100%}.c-modal .c-modal-header{display:grid;grid-template-areas:"back heading close";grid-template-columns:minmax(0,max-content) minmax(0,1fr) minmax(0,max-content);align-items:start}.c-modal .c-modal-heading{--modal-header-font-size: calc(var(--dt-font-heading-m-size--narrow) * 1px);--modal-header-font-line-height: calc(var(--dt-font-heading-m-line-height--narrow) * 1px);--modal-header-font-weight: var(--dt-font-heading-m-weight);font-size:var(--modal-header-font-size);line-height:var(--modal-header-font-line-height);font-weight:var(--modal-header-font-weight);margin:0;grid-area:heading;margin-inline-start:var(--dt-spacing-d);margin-inline-end:var(--dt-spacing-d);margin-block:14px}@media (min-width: 769px){.c-modal .c-modal-heading{--modal-header-font-size: calc(var(--dt-font-heading-m-size--wide) * 1px);--modal-header-font-line-height: calc(var(--dt-font-heading-m-line-height--wide) * 1px);margin-inline-start:var(--dt-spacing-e);margin-inline-end:var(--dt-spacing-e);margin-block:20px}}.c-modal .c-modal-backBtn+.c-modal-heading{margin-inline-start:var(--dt-spacing-b)}@media (min-width: 769px){.c-modal .c-modal-backBtn+.c-modal-heading{margin-inline-start:var(--dt-spacing-c)}}.c-modal.c-modal--dismissible .c-modal-heading{margin-inline-end:var(--dt-spacing-d)}@media (min-width: 769px){.c-modal.c-modal--dismissible .c-modal-heading{margin-inline-end:var(--dt-spacing-e)}}.c-modal .c-modal-backBtn{grid-area:back;margin-block-start:var(--dt-spacing-b);margin-block-end:var(--dt-spacing-b);margin-inline-start:var(--dt-spacing-b);margin-inline-end:var(--dt-spacing-none)}@media (min-width: 769px){.c-modal .c-modal-backBtn{margin-block-start:var(--dt-spacing-c);margin-block-end:var(--dt-spacing-c);margin-inline-start:var(--dt-spacing-c);margin-inline-end:var(--dt-spacing-none)}}.c-modal .c-modal-closeBtn{grid-area:close;margin-block-start:var(--dt-spacing-b);margin-block-end:var(--dt-spacing-b);margin-inline-start:var(--dt-spacing-none);margin-inline-end:var(--dt-spacing-b)}@media (min-width: 769px){.c-modal .c-modal-closeBtn{margin-block-start:var(--dt-spacing-c);margin-block-end:var(--dt-spacing-c);margin-inline-start:var(--dt-spacing-none);margin-inline-end:var(--dt-spacing-c)}}.c-modal .c-modal-content{--modal-content-font-size: calc(var(--dt-font-size-16) * 1px);--modal-content-font-weight: var(--dt-font-weight-regular);--modal-content-line-height: calc(var(--dt-font-size-16-line-height) * 1px);--modal-content-padding-block: var(--dt-spacing-a);--modal-content-padding-inline: var(--dt-spacing-d);--modal-content-padding-block-end: var(--dt-spacing-e);--modal-content-min-block-size: var(--dt-spacing-j);position:relative;min-block-size:calc(var(--modal-content-min-block-size) + var(--modal-content-padding-block) + var(--modal-content-padding-block-end));font-size:var(--modal-content-font-size);line-height:var(--modal-content-line-height);font-weight:var(--modal-content-font-weight);padding-inline-start:var(--modal-content-padding-inline);padding-inline-end:var(--modal-content-padding-inline);padding-block-start:var(--modal-content-padding-block);padding-block-end:var(--modal-content-padding-block-end);flex-grow:1}@media (min-width: 769px){.c-modal .c-modal-content{--modal-content-padding-inline: var(--dt-spacing-e)}}.c-modal .c-modal-content:has(+slot>footer){padding-block-end:var(--modal-content-padding-block);min-block-size:var(--modal-content-min-block-size)}.c-modal .c-modal-content--scrollable{background:linear-gradient(to bottom,transparent,var(--dt-color-container-default) 75%) center bottom,linear-gradient(transparent,var(--dt-color-border-strong)) center bottom;background-repeat:no-repeat;background-size:100% 48px,100% 12px;background-attachment:local,scroll}.c-modal>.c-modal-scrollContainer{display:flex;flex-direction:column;overflow-y:auto;--bg-scroll-end: linear-gradient(rgba(255, 255, 255, 0), var(--dt-color-container-default) 70%) 0 100%;--bg-scroll-bottom: radial-gradient(farthest-corner at 50% 100%, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0)) 0 100%;--bg-size-scroll-end: 100% 40px;--bg-size-scroll-bottom: 100% 8px;background:var(--bg-scroll-end),var(--bg-scroll-bottom);background-repeat:no-repeat;background-size:var(--bg-size-scroll-end),var(--bg-size-scroll-bottom);background-attachment:local,scroll}.c-modal>.c-modal-scrollContainer .c-modal-content{flex-shrink:0}.c-modal.c-modal--pinnedFooter .c-modal-content{overflow-y:auto}.c-modal.c-modal--loading .c-modal-content pie-spinner{position:absolute;left:50%;top:calc(50% - (var(--modal-content-padding-block-end) - var(--modal-content-padding-block)) / 2);transform:translate(-50%,-50%)}.c-modal.c-modal--loading .c-modal-content .c-modal-contentInner{display:none}.c-modal.c-modal--loading .c-modal-content:not(:last-child) pie-spinner{top:50%}@supports not (aspect-ratio: 1/1){.c-modal .c-modal-scrollContainer{background:none}}.c-modal .c-modal-backBtn-icon:dir(rtl){transform:rotate(180deg)}'),Ri([be({type:Object})],Vi.prototype,"aria",2),Ri([be({type:String}),(e=>function(t,i){const o=`#${i}`;Object.defineProperty(t,i,{get(){return this[o]},set(t){(null==t||"string"==typeof t&&""===t.trim())&&console.error(`<${e}> Missing required attribute "${i}"`),this[o]=t},configurable:!0})})(Hi)],Vi.prototype,"heading",2),Ri([be({type:String}),Be(Hi,["h1","h2","h3","h4","h5","h6"],Oi)],Vi.prototype,"headingLevel",2),Ri([be({type:Boolean})],Vi.prototype,"hasBackButton",2),Ri([be({type:Boolean})],Vi.prototype,"hasStackedActions",2),Ri([be({type:Boolean,reflect:!0})],Vi.prototype,"isDismissible",2),Ri([be({type:Boolean})],Vi.prototype,"isFooterPinned",2),Ri([be({type:Boolean})],Vi.prototype,"isFullWidthBelowMid",2),Ri([be({type:Boolean,reflect:!0})],Vi.prototype,"isLoading",2),Ri([be({type:Boolean})],Vi.prototype,"isOpen",2),Ri([be({type:Object})],Vi.prototype,"leadingAction",2),Ri([be({type:String}),Be(Hi,["top","center"],ji)],Vi.prototype,"position",2),Ri([be({type:String})],Vi.prototype,"returnFocusAfterCloseSelector",2),Ri([be({type:String}),Be(Hi,["small","medium","large"],Ii)],Vi.prototype,"size",2),Ri([be({type:Object})],Vi.prototype,"supportingAction",2),Ri([ge("dialog")],Vi.prototype,"_dialog",2),Vi=Ri([Pe("pie-modal")],Vi);var Wi=Object.defineProperty,Ui=Object.getOwnPropertyDescriptor,qi=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?Ui(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&Wi(t,i,r),r};let Ki=class extends oi{constructor(){super(...arguments),this.size="xs",this.defaultClasses="c-pieIcon c-pieIcon--check",this.class="c-pieIcon c-pieIcon--check",this.name="IconCheck"}render(){return V`<svg width="${this._svgWidth}" height="${this._svgHeight}" xmlns="http://www.w3.org/2000/svg" role="presentation" focusable="false" fill="currentColor" viewBox="0 0 16 16" class="c-pieIcon c-pieIcon--check"><path d="M5.865 12.489a1.217 1.217 0 0 1-.875-.385L1.875 8.656l.98-.875 3.028 3.369 7.253-7.822.963.875-7.35 7.875c-.113.12-.248.215-.398.282-.15.066-.322.127-.486.129Z"></path></svg>`}};qi([be({type:String,reflect:!0})],Ki.prototype,"size",2),qi([be({type:String,reflect:!0})],Ki.prototype,"class",2),Ki=qi([Pe("icon-check")],Ki);const Gi=class e extends le{willUpdate(){this.getAttribute("v")||this.setAttribute("v",e.v)}};Gi.v="2.2.0";let Zi=Gi;!function(e){const t=new WeakMap,i=new WeakMap,o=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakMap,v=new WeakMap,b=new WeakMap,u=new WeakMap,m={ariaAtomic:"aria-atomic",ariaAutoComplete:"aria-autocomplete",ariaBusy:"aria-busy",ariaChecked:"aria-checked",ariaColCount:"aria-colcount",ariaColIndex:"aria-colindex",ariaColIndexText:"aria-colindextext",ariaColSpan:"aria-colspan",ariaCurrent:"aria-current",ariaDescription:"aria-description",ariaDisabled:"aria-disabled",ariaExpanded:"aria-expanded",ariaHasPopup:"aria-haspopup",ariaHidden:"aria-hidden",ariaInvalid:"aria-invalid",ariaKeyShortcuts:"aria-keyshortcuts",ariaLabel:"aria-label",ariaLevel:"aria-level",ariaLive:"aria-live",ariaModal:"aria-modal",ariaMultiLine:"aria-multiline",ariaMultiSelectable:"aria-multiselectable",ariaOrientation:"aria-orientation",ariaPlaceholder:"aria-placeholder",ariaPosInSet:"aria-posinset",ariaPressed:"aria-pressed",ariaReadOnly:"aria-readonly",ariaRelevant:"aria-relevant",ariaRequired:"aria-required",ariaRoleDescription:"aria-roledescription",ariaRowCount:"aria-rowcount",ariaRowIndex:"aria-rowindex",ariaRowIndexText:"aria-rowindextext",ariaRowSpan:"aria-rowspan",ariaSelected:"aria-selected",ariaSetSize:"aria-setsize",ariaSort:"aria-sort",ariaValueMax:"aria-valuemax",ariaValueMin:"aria-valuemin",ariaValueNow:"aria-valuenow",ariaValueText:"aria-valuetext",role:"role"};function g(e){const t=n.get(e),{form:i}=t;T(e,i,t),E(e,t.labels)}const f=(e,t=!1)=>{const i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>n.has(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});let o=i.nextNode();const r=!t||e.disabled;for(;o;)o.formDisabledCallback&&r&&_(o,e.disabled),o=i.nextNode()},y={attributes:!0,attributeFilter:["disabled","name"]},k=j()?new MutationObserver(e=>{for(const t of e){const e=t.target;if("disabled"===t.attributeName&&(e.constructor.formAssociated?_(e,e.hasAttribute("disabled")):"fieldset"===e.localName&&f(e)),"name"===t.attributeName&&e.constructor.formAssociated){const t=n.get(e),i=c.get(e);t.setFormValue(i)}}}):{};function w(e){e.forEach(e=>{const{addedNodes:t,removedNodes:i}=e,r=Array.from(t),a=Array.from(i);r.forEach(e=>{var t;if(n.has(e)&&e.constructor.formAssociated&&g(e),d.has(e)){const t=d.get(e);Object.keys(m).filter(e=>null!==t[e]).forEach(i=>{e.setAttribute(m[i],t[i])}),d.delete(e)}if(u.has(e)){const t=u.get(e);e.setAttribute("internals-valid",t.validity.valid.toString()),e.setAttribute("internals-invalid",(!t.validity.valid).toString()),e.setAttribute("aria-invalid",(!t.validity.valid).toString()),u.delete(e)}if("form"===e.localName){const t=l.get(e),i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>!n.has(e)||!e.constructor.formAssociated||t&&t.has(e)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT});let o=i.nextNode();for(;o;)g(o),o=i.nextNode()}"fieldset"===e.localName&&(null===(t=k.observe)||void 0===t||t.call(k,e,y),f(e,!0))}),a.forEach(e=>{const t=n.get(e);t&&o.get(t)&&z(t),s.has(e)&&s.get(e).disconnect()})})}function x(e){e.forEach(e=>{const{removedNodes:t}=e;t.forEach(t=>{const i=v.get(e.target);n.has(t)&&N(t),i.disconnect()})})}j()&&new MutationObserver(w);const A={childList:!0,subtree:!0},_=(e,t)=>{e.toggleAttribute("internals-disabled",t),t?e.setAttribute("aria-disabled","true"):e.removeAttribute("aria-disabled"),e.formDisabledCallback&&e.formDisabledCallback.apply(e,[t])},z=e=>{o.get(e).forEach(e=>{e.remove()}),o.set(e,[])},S=(e,t)=>{const i=document.createElement("input");return i.type="hidden",i.name=e.getAttribute("name"),e.after(i),o.get(t).push(i),i},E=(e,t)=>{if(t.length){Array.from(t).forEach(t=>t.addEventListener("click",e.click.bind(e)));let i=t[0].id;t[0].id||(i=`${t[0].htmlFor}_Label`,t[0].id=i),e.setAttribute("aria-labelledby",i)}},$=e=>{const t=Array.from(e.elements).filter(e=>!e.tagName.includes("-")&&e.validity).map(e=>e.validity.valid),i=l.get(e)||[],o=[...t,...Array.from(i).filter(e=>e.isConnected).map(e=>n.get(e).validity.valid)].includes(!1);e.toggleAttribute("internals-invalid",o),e.toggleAttribute("internals-valid",!o)},C=e=>{$(B(e.target))},M=e=>{$(B(e.target))},O=e=>{const t=l.get(e.target);t&&t.size&&t.forEach(e=>{e.constructor.formAssociated&&e.formResetCallback&&e.formResetCallback.apply(e)})},T=(e,t,i)=>{if(t){const o=l.get(t);if(o)o.add(e);else{const i=new Set;i.add(e),l.set(t,i),(e=>{const t=["button[type=submit]","input[type=submit]","button:not([type])"].map(e=>`${e}:not([disabled])`).map(t=>`${t}:not([form])${e.id?`,${t}[form='${e.id}']`:""}`).join(",");e.addEventListener("click",i=>{if(i.target.closest(t)){const t=l.get(e);if(e.noValidate)return;t.size&&Array.from(t).reverse().map(e=>n.get(e).reportValidity()).includes(!1)&&i.preventDefault()}})})(t),t.addEventListener("reset",O),t.addEventListener("input",C),t.addEventListener("change",M)}a.set(t,{ref:e,internals:i}),e.constructor.formAssociated&&e.formAssociatedCallback&&setTimeout(()=>{e.formAssociatedCallback.apply(e,[t])},0),$(t)}},B=e=>{let t=e.parentNode;return t&&"FORM"!==t.tagName&&(t=B(t)),t},P=(e,t,i=DOMException)=>{if(!e.constructor.formAssociated)throw new i(t)},L=(e,t,i)=>{const o=l.get(e);return o&&o.size&&o.forEach(e=>{n.get(e)[i]()||(t=!1)}),t},N=e=>{if(e.constructor.formAssociated){const t=n.get(e),{labels:i,form:o}=t;E(e,i),T(e,o,t)}};function j(){return typeof MutationObserver<"u"}class I{constructor(){this.badInput=!1,this.customError=!1,this.patternMismatch=!1,this.rangeOverflow=!1,this.rangeUnderflow=!1,this.stepMismatch=!1,this.tooLong=!1,this.tooShort=!1,this.typeMismatch=!1,this.valid=!0,this.valueMissing=!1,Object.seal(this)}}const D=e=>{let t=!0;for(let i in e)"valid"!==i&&!1!==e[i]&&(t=!1);return t},F=new WeakMap;function R(e,t){e.toggleAttribute(t,!0),e.part&&e.part.add(t)}class H extends Set{static get isPolyfilled(){return!0}constructor(e){if(super(),!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");F.set(this,e)}add(e){if(!/^--/.test(e)||"string"!=typeof e)throw new DOMException(`Failed to execute 'add' on 'CustomStateSet': The specified value ${e} must start with '--'.`);const t=super.add(e),i=F.get(this),o=`state${e}`;return i.isConnected?R(i,o):setTimeout(()=>{R(i,o)}),t}clear(){for(let[e]of this.entries())this.delete(e);super.clear()}delete(e){const t=super.delete(e),i=F.get(this);return i.isConnected?(i.toggleAttribute(`state${e}`,!1),i.part&&i.part.remove(`state${e}`)):setTimeout(()=>{i.toggleAttribute(`state${e}`,!1),i.part&&i.part.remove(`state${e}`)}),t}}function V(e,t,i,o){if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(e):o?o.value:t.get(e)}var W;class U{constructor(e){W.set(this,void 0),function(e,t,i){if("function"==typeof t||!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");t.set(e,i)}(this,W,e);for(let t=0;t<e.length;t++){let i=e[t];this[t]=i,i.hasAttribute("name")&&(this[i.getAttribute("name")]=i)}Object.freeze(this)}get length(){return V(this,W,"f").length}[(W=new WeakMap,Symbol.iterator)](){return V(this,W,"f")[Symbol.iterator]()}item(e){return null==this[e]?null:this[e]}namedItem(e){return null==this[e]?null:this[e]}}class q{static get isPolyfilled(){return!0}constructor(e){if(!e||!e.tagName||-1===e.tagName.indexOf("-"))throw new TypeError("Illegal constructor");const r=e.getRootNode(),a=new I;this.states=new H(e),t.set(this,e),i.set(this,a),n.set(e,this),((e,t)=>{for(let i in m){t[i]=null;let o=null;const n=m[i];Object.defineProperty(t,i,{get:()=>o,set(i){o=i,e.isConnected?e.setAttribute(n,i):d.set(e,t)}})}})(e,this),((e,t)=>{var i;o.set(t,[]),null===(i=k.observe)||void 0===i||i.call(k,e,y)})(e,this),Object.seal(this),r instanceof DocumentFragment&&(e=>{var t,i;const o=new MutationObserver(x);!(null===(t=null==window?void 0:window.ShadyDOM)||void 0===t)&&t.inUse&&e.mode&&e.host&&(e=e.host),null===(i=o.observe)||void 0===i||i.call(o,e,{childList:!0}),v.set(e,o)})(r)}checkValidity(){const e=t.get(this);if(P(e,"Failed to execute 'checkValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const o=i.get(this);if(!o.valid){const t=new Event("invalid",{bubbles:!1,cancelable:!0,composed:!1});e.dispatchEvent(t)}return o.valid}get form(){const e=t.get(this);let i;return P(e,"Failed to read the 'form' property from 'ElementInternals': The target element is not a form-associated custom element."),!0===e.constructor.formAssociated&&(i=B(e)),i}get labels(){const e=t.get(this);P(e,"Failed to read the 'labels' property from 'ElementInternals': The target element is not a form-associated custom element.");const i=e.getAttribute("id"),o=e.getRootNode();return o&&i?o.querySelectorAll(`[for="${i}"]`):[]}reportValidity(){const e=t.get(this);if(P(e,"Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!this.willValidate)return!0;const i=this.checkValidity(),o=p.get(this);if(o&&!e.constructor.formAssociated)throw new DOMException("Failed to execute 'reportValidity' on 'ElementInternals': The target element is not a form-associated custom element.");return!i&&o&&(e.focus(),o.focus()),i}setFormValue(e){const i=t.get(this);P(i,"Failed to execute 'setFormValue' on 'ElementInternals': The target element is not a form-associated custom element."),z(this),null==e||e instanceof FormData?null!=e&&e instanceof FormData&&Array.from(e).reverse().forEach(([e,t])=>{if("string"==typeof t){const o=S(i,this);o.name=e,o.value=t}}):i.getAttribute("name")&&(S(i,this).value=e),c.set(i,e)}setValidity(e,o,n){const a=t.get(this);if(P(a,"Failed to execute 'setValidity' on 'ElementInternals': The target element is not a form-associated custom element."),!e)throw new TypeError("Failed to execute 'setValidity' on 'ElementInternals': 1 argument required, but only 0 present.");p.set(this,n);const s=i.get(this),l={};for(const t in e)l[t]=e[t];var c;0===Object.keys(l).length&&((c=s).badInput=!1,c.customError=!1,c.patternMismatch=!1,c.rangeOverflow=!1,c.rangeUnderflow=!1,c.stepMismatch=!1,c.tooLong=!1,c.tooShort=!1,c.typeMismatch=!1,c.valid=!0,c.valueMissing=!1);const d=Object.assign(Object.assign({},s),l);delete d.valid;const{valid:h}=((e,t,i)=>(e.valid=D(t),Object.keys(t).forEach(i=>e[i]=t[i]),i&&$(i),e))(s,d,this.form);if(!h&&!o)throw new DOMException("Failed to execute 'setValidity' on 'ElementInternals': The second argument should not be empty if one or more flags in the first argument are true.");r.set(this,h?"":o),a.isConnected?(a.toggleAttribute("internals-invalid",!h),a.toggleAttribute("internals-valid",h),a.setAttribute("aria-invalid",`${!h}`)):u.set(a,this)}get shadowRoot(){const e=t.get(this);return h.get(e)||null}get validationMessage(){const e=t.get(this);return P(e,"Failed to read the 'validationMessage' property from 'ElementInternals': The target element is not a form-associated custom element."),r.get(this)}get validity(){const e=t.get(this);return P(e,"Failed to read the 'validity' property from 'ElementInternals': The target element is not a form-associated custom element."),i.get(this)}get willValidate(){const e=t.get(this);return P(e,"Failed to read the 'willValidate' property from 'ElementInternals': The target element is not a form-associated custom element."),!(e.disabled||e.hasAttribute("disabled")||e.hasAttribute("readonly"))}}let K=!1,G=!1;function Z(e){G||(G=!0,window.CustomStateSet=H,e&&(HTMLElement.prototype.attachInternals=function(...t){const i=e.call(this,t);return i.states=new H(this),i}))}function Y(e=!0){if(!K){if(K=!0,typeof window<"u"&&(window.ElementInternals=q),typeof CustomElementRegistry<"u"){const e=CustomElementRegistry.prototype.define;CustomElementRegistry.prototype.define=function(t,i,o){if(i.formAssociated){const e=i.prototype.connectedCallback;i.prototype.connectedCallback=function(){b.has(this)||(b.set(this,!0),this.hasAttribute("disabled")&&_(this,!0)),null!=e&&e.apply(this),N(this)}}e.call(this,t,i,o)}}if(typeof HTMLElement<"u"&&(HTMLElement.prototype.attachInternals=function(){if(!this.tagName)return{};if(-1===this.tagName.indexOf("-"))throw new Error("Failed to execute 'attachInternals' on 'HTMLElement': Unable to attach ElementInternals to non-custom elements.");if(n.has(this))throw new DOMException("DOMException: Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.");return new q(this)}),typeof Element<"u"){let e=function(...e){const i=t.apply(this,e);if(h.set(this,i),j()){const e=new MutationObserver(w);window.ShadyDOM?e.observe(this,A):e.observe(i,A),s.set(this,e)}return i};const t=Element.prototype.attachShadow;Element.prototype.attachShadow=e}j()&&typeof document<"u"&&new MutationObserver(w).observe(document.documentElement,A),typeof HTMLFormElement<"u"&&function(){const e=HTMLFormElement.prototype.checkValidity;HTMLFormElement.prototype.checkValidity=function(...t){let i=e.apply(this,t);return L(this,i,"checkValidity")};const t=HTMLFormElement.prototype.reportValidity;HTMLFormElement.prototype.reportValidity=function(...e){let i=t.apply(this,e);return L(this,i,"reportValidity")};const{get:i}=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get(...e){const t=i.call(this,...e),o=Array.from(l.get(this)||[]);if(0===o.length)return t;const n=Array.from(t).concat(o).sort((e,t)=>e.compareDocumentPosition?2&e.compareDocumentPosition(t)?1:-1:0);return new U(n)}})}(),(e||typeof window<"u"&&!window.CustomStateSet)&&Z()}}!!customElements.polyfillWrapFlushCallback||(function(){if(typeof window>"u"||!window.ElementInternals||!HTMLElement.prototype.attachInternals)return!1;class e extends HTMLElement{constructor(){super(),this.internals=this.attachInternals()}}const t=`element-internals-feature-detection-${Math.random().toString(36).replace(/[^a-z]+/g,"")}`;customElements.define(t,e);const i=new e;return["shadowRoot","form","willValidate","validity","validationMessage","labels","setFormValue","setValidity","checkValidity","reportValidity"].every(e=>e in i.internals)}()?typeof window<"u"&&!window.CustomStateSet&&Z(HTMLElement.prototype.attachInternals):Y(!1)),e.forceCustomStateSetPolyfill=Z,e.forceElementInternalsPolyfill=Y,Object.defineProperty(e,"__esModule",{value:!0})}({});const Yi=!1,Xi=!1,Qi="leading",Ji=!1,eo="on";var to=Object.defineProperty,io=Object.getOwnPropertyDescriptor,oo=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?io(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&to(t,i,r),r};let no=class extends(Ne(Zi)){constructor(){super(...arguments),this.labelPlacement=Qi,this.checked=Yi,this.required=Ji,this.value=eo,this.disabled=Xi,this._isAnimationAllowed=!1}firstUpdated(){this.handleFormAssociation(),this.input.addEventListener("invalid",e=>{this.dispatchEvent(new Event("invalid",e))})}updated(){this.handleFormAssociation()}handleFormAssociation(){this._internals.form&&this.name&&this.value&&(this.disabled?(this._internals.setFormValue(null),this._internals.setValidity({})):this.checked?(this._internals.setFormValue(this.value),this._internals.setValidity({})):(this._internals.setFormValue(null),this._internals.setValidity(this.validity,this.validationMessage,this.input)))}handleChange(e){const{checked:t}=null==e?void 0:e.currentTarget;this.checked=t;const i=function(e){return new CustomEvent(e.type,{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable})}(e);this._isAnimationAllowed||(this._isAnimationAllowed=!0),this.dispatchEvent(i),this.handleFormAssociation()}checkValidity(){return this.input.checkValidity()}reportValidity(){return this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this._internals.setValidity(this.validity,this.validationMessage,this.input)}get validity(){return this.input.validity}get validationMessage(){return this.input.validationMessage}renderSwitchLabel(e){const{label:t,labelPlacement:i}=this;return t&&i===e?V`
|
|
244
244
|
<span
|
|
245
|
+
aria-hidden="true"
|
|
245
246
|
data-test-id="switch-label-${i}"
|
|
246
247
|
class="c-switch-label">
|
|
247
248
|
${t}
|
|
248
249
|
</span>`:U}renderAriaDescription(){var e;return null!=(e=this.aria)&&e.describedBy?V`
|
|
249
250
|
<div
|
|
251
|
+
aria-hidden="true"
|
|
250
252
|
id="switch-description"
|
|
251
253
|
data-test-id="switch-description"
|
|
252
254
|
class="c-switch-description">
|
|
253
255
|
${this.aria.describedBy}
|
|
254
|
-
</div>`:U}render(){const{
|
|
256
|
+
</div>`:U}render(){const{label:e,aria:t,checked:i,disabled:o,required:n,_isAnimationAllowed:r}=this;return V`
|
|
255
257
|
<label
|
|
256
|
-
class="${Oe({"c-switch-wrapper":!0,"c-switch-wrapper--allow-animation":
|
|
257
|
-
?disabled=${
|
|
258
|
+
class="${Oe({"c-switch-wrapper":!0,"c-switch-wrapper--allow-animation":r})}"
|
|
259
|
+
?disabled=${o}>
|
|
258
260
|
${this.renderSwitchLabel("leading")}
|
|
259
261
|
<div
|
|
260
262
|
data-test-id="switch-component"
|
|
261
263
|
class="c-switch"
|
|
262
|
-
?checked=${
|
|
264
|
+
?checked=${i}>
|
|
263
265
|
<input
|
|
264
266
|
data-test-id="switch-input"
|
|
265
267
|
role="switch"
|
|
266
268
|
type="checkbox"
|
|
267
269
|
class="c-switch-input"
|
|
268
|
-
.required=${
|
|
269
|
-
.checked="${
|
|
270
|
-
.disabled="${
|
|
270
|
+
.required=${n}
|
|
271
|
+
.checked="${i}"
|
|
272
|
+
.disabled="${o}"
|
|
271
273
|
@change="${this.handleChange}"
|
|
272
|
-
aria-label="${Te(null==
|
|
273
|
-
aria-describedby="${null!=
|
|
274
|
+
aria-label="${Te((null==t?void 0:t.label)||e)}"
|
|
275
|
+
aria-describedby="${null!=t&&t.describedBy?"switch-description":U}">
|
|
274
276
|
<div class="c-switch-control">
|
|
275
|
-
${
|
|
277
|
+
${i?V`<icon-check></icon-check>`:U}
|
|
276
278
|
</div>
|
|
277
279
|
</div>
|
|
278
280
|
${this.renderSwitchLabel("trailing")}
|
|
279
281
|
${this.renderAriaDescription()}
|
|
280
|
-
</label>`}};no.styles=s("*,*:after,*:before{box-sizing:inherit}:host{display:block}*,*:before,*:after{cursor:inherit}.c-switch-wrapper{display:inline-flex;align-items:center;gap:var(--dt-spacing-b);vertical-align:top;font-family:var(--dt-font-body-l-family);cursor:pointer}.c-switch-wrapper[disabled]{cursor:not-allowed}.c-switch{--int-states-mixin-bg-color: var(--dt-color-interactive-form);--switch-bg-color--checked: var(--dt-color-interactive-brand);--switch-bg-color--disabled: var(--dt-color-disabled-01);--switch-width: 48px;--switch-height: 24px;--switch-control-size: 20px;--switch-padding: 2px;--switch-radius: var(--dt-radius-rounded-e);--switch-translation: calc(var(--switch-width) - var(--switch-control-size) - 2 * var(--switch-padding));position:relative;display:flex;width:var(--switch-width);height:var(--switch-height);flex-shrink:0;padding:var(--switch-padding);border-radius:var(--switch-radius);background-color:var(--int-states-mixin-bg-color)}.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--hover-modifier)))}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-form))}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-form))}}.c-switch[checked]{--int-states-mixin-bg-color: var(--dt-color-interactive-brand)}.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--hover-modifier)))}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-brand))}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-brand))}}[disabled] .c-switch{--int-states-mixin-bg-color: var(--switch-bg-color--disabled);pointer-events:none}.c-switch:has(.c-switch-input:focus-visible){box-shadow:0 0 0 2px var(--dt-color-focus-inner),0 0 0 4px var(--dt-color-focus-outer);outline:none}.c-switch-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;left:50%;transform:translate(-50%) translateY(-50%);bottom:0}.c-switch-input:disabled{background-color:transparent}.c-switch-control{position:absolute;left:2px;width:var(--switch-control-size);height:var(--switch-control-size);border-radius:var(--switch-radius);background-color:var(--dt-color-interactive-light);padding:var(--switch-padding)}.c-switch-wrapper:dir(rtl) .c-switch-control{position:absolute;left:initial;right:2px}.c-switch-control .c-pieIcon--check{vertical-align:top}.c-switch-input:checked+.c-switch-control{transform:translate(var(--switch-translation))}.c-switch-input:checked+.c-switch-control .c-pieIcon--check{color:var(--dt-color-interactive-brand)}.c-switch-input:disabled~.c-switch-control{color:var(--switch-bg-color--disabled)}.c-switch-input:disabled~.c-switch-control .c-pieIcon--check{color:var(--switch-bg-color--disabled)}.c-switch-label{color:var(--dt-color-content-default)}.c-switch-description{position:absolute;display:block;height:1px;width:1px;overflow:hidden;padding:1px;white-space:nowrap}@media (prefers-reduced-motion: no-preference){.c-switch-wrapper--allow-animation .c-switch{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-wrapper--allow-animation .c-switch[checked]{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-input:checked+.c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-input:checked+.c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-input:disabled~.c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}.c-switch-wrapper:dir(rtl) .c-switch-input:checked+.c-switch-control{transform:translate(calc(-1 * var(--switch-translation)))}"),oo([be({type:String})],no.prototype,"label",2),oo([be({type:String}),Be("pie-switch",["leading","trailing"],Qi)],no.prototype,"labelPlacement",2),oo([be({type:Object})],no.prototype,"aria",2),oo([be({type:Boolean,reflect:!0})],no.prototype,"checked",2),oo([be({type:Boolean,reflect:!0})],no.prototype,"required",2),oo([be({type:String})],no.prototype,"value",2),oo([be({type:String,reflect:!0})],no.prototype,"name",2),oo([be({type:Boolean,reflect:!0})],no.prototype,"disabled",2),oo([ge('input[type="checkbox"]')],no.prototype,"input",2),oo([ge("label")],no.prototype,"focusTarget",2),oo([ue()],no.prototype,"_isAnimationAllowed",2),no=oo([Pe("pie-switch")],no);const ro={banner:{title:"Cookies",description:"We use our own and third party cookies and other tech to enhance and personalise your user experience, optimize analytics, and show ads with third parties (read our <linkStatement>Statement</linkStatement>). Necessary cookies are always set. Click <linkNecessaryOnly>Necessary only</linkNecessaryOnly> to continue without accepting more. Click <linkManagePreferences>Manage preferences</linkManagePreferences> to share your preferences or <linkAcceptAll>Accept all</linkAcceptAll>.",cta:{managePreferences:"Manage preferences",necessaryOnly:"Necessary only",acceptAll:"Accept all"}},preferencesManagement:{title:"Manage your preferences",description:"You can find all the information in the <linkCookieStatement>Cookie Statement</linkCookieStatement> and <linkCookieTechList>Cookie technology list</linkCookieTechList>.",all:{title:"Turn all on"},necessary:{title:"Necessary",description:"These cookies are necessary to ensure that the website and its features function properly. Services you have asked for cannot be provided without these cookies."},functional:{title:"Functional",description:"These cookies allow the website to remember the choices you make to give you better functionality and personal features."},analytical:{title:"Analytical",description:"These analytical cookies, including statistics, are used to understand how visitors interact with the website and we can measure and improve the performance of our website."},personalized:{title:"Personalised (targeting and advertising)",description:"These marketing cookies are used to tailor the delivery of information to you based upon your interest and to measure the effectiveness of such advertisements, both on our website and our advertising partners' websites."},cta:{save:{label:"Save",ariaLabel:""}}}},ao=Object.freeze(Object.defineProperty({__proto__:null,default:ro},Symbol.toStringTag,{value:"Module"})),so={BULGARIAN:"bg",CATALAN:"ca",DANISH:"da",DUTCH:"nl",ENGLISH:"en",FRENCH:"fr",GERMAN:"de",HEBREW:"he",ITALIAN:"it",POLISH:"pl",SLOVAK:"sk",SPANISH:"es"},lo={AUSTRALIA:"au",AUSTRIA:"at",BELGIUM:"be",BULGARIA:"bg",CANADA:"ca",DENMARK:"dk",FRANCE:"fr",GERMANY:"de",GREAT_BRITAIN:"gb",IRELAND:"ie",ISRAEL:"il",ITALY:"it",LUXEMBOURG:"lu",NETHERLANDS:"nl",POLAND:"pl",SLOVAKIA:"sk",SPAIN:"es",SWITZERLAND:"ch"},co="pie-cookie-banner-accept-all",ho="pie-cookie-banner-necessary-only",po="pie-cookie-banner-manage-prefs",vo="pie-cookie-banner-prefs-saved",bo=[{id:"all",hasDivider:!0,hasDescription:!1},{id:"necessary",checked:!0,disabled:!0,hasDescription:!0},{id:"functional",hasDescription:!0},{id:"analytical",hasDescription:!0},{id:"personalized",hasDescription:!0}],uo={hasPrimaryActionsOnly:!1,defaultPreferences:{},country:lo.GREAT_BRITAIN,language:so.ENGLISH,cookieStatementLink:"",cookieTechnologiesLink:""},mo=new Set([`${so.BULGARIAN}`,`${so.DANISH}`,`${so.ENGLISH}-${lo.FRANCE}`,`${so.FRENCH}-${lo.FRANCE}`,`${so.FRENCH}`,`${so.GERMAN}`,`${so.ENGLISH}`,`${so.HEBREW}`,`${so.ITALIAN}`,`${so.DUTCH}`,`${so.POLISH}`,`${so.SLOVAK}`,`${so.CATALAN}`,`${so.SPANISH}`]),go=new Map([[lo.AUSTRALIA,`${so.ENGLISH}`],[lo.AUSTRIA,`${so.GERMAN}`],[lo.BELGIUM,`${so.DUTCH}`],[lo.BULGARIA,`${so.BULGARIAN}`],[lo.CANADA,`${so.ENGLISH}`],[lo.DENMARK,`${so.DANISH}`],[lo.FRANCE,`${so.FRENCH}-${lo.FRANCE}`],[lo.GERMANY,`${so.GERMAN}`],[lo.GREAT_BRITAIN,`${so.ENGLISH}`],[lo.IRELAND,`${so.ENGLISH}`],[lo.ISRAEL,`${so.HEBREW}`],[lo.ITALY,`${so.ITALIAN}`],[lo.LUXEMBOURG,`${so.FRENCH}`],[lo.NETHERLANDS,`${so.DUTCH}`],[lo.POLAND,`${so.POLISH}`],[lo.SLOVAKIA,`${so.SLOVAK}`],[lo.SPAIN,`${so.SPANISH}`],[lo.SWITZERLAND,`${so.GERMAN}`]]);function fo(e){console.error(`[localisation-utils]: ${e}`)}function yo(e,t){if(!e)throw new Error('"locale" parameter cannot be empty');if(!t)throw new Error('"key" parameter cannot be empty');const i=function(e,t){const i=i=>String.prototype.split.call(t,i).filter(Boolean).reduce((e,t)=>null!=e&&"object"==typeof e?e[t]:e,e),o=i(/[,[\]]+?/)||i(/[,[\].]+?/);return"string"!=typeof o?"":o}(e,t);return i||(fo(`Couldn't find a value for the key "${t}", it will be used as fallback.`),t)}function ko(e,t){const i=Object.keys(t);if(0===i.length)return[e];const o=function(e){const t=e.map(e=>`(<${e}.*>.*</${e}>)`).join("|");return new RegExp(t,"igm")}(i);return e.split(o).filter(e=>Boolean(e)).map(e=>{if(!e.match(o))return e;const t=e.match(/<(.*)>(.*)<\/.*>/);if(!t)return e;const[,i,n]=t;return[i,n]}).map(e=>{if(!Array.isArray(e))return e;const[i,o]=e,n=t[i];return n||"function"==typeof n?n(o):(fo(`Custom tag "${i}" does not have a matching enhancer function`),o)})}var wo,xo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,_o=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?Ao(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&xo(t,i,r),r};e.PieCookieBanner=class extends he{constructor(){super(...arguments),this._isCookieBannerHidden=!1,this._isModalOpen=!1,this._locale=ro,this.hasPrimaryActionsOnly=uo.hasPrimaryActionsOnly,this.defaultPreferences=uo.defaultPreferences,this.cookieStatementLink=uo.cookieStatementLink,this.cookieTechnologiesLink=uo.cookieTechnologiesLink,this.country=uo.country,this.language=uo.language,this._getLocaleString=(e,t)=>{let i=`${e}-${t}`.toLowerCase();if(mo.has(i))return i;if(i=`${e}`.toLowerCase(),mo.has(i))return i;const o=go.get(t.toLowerCase());return o&&mo.has(o)?o:`${uo.language}`},this._customTagEnhancers={linkStatement:e=>V`<pie-link href="${this.cookieStatementLink}" variant="inverse" target="_blank" data-test-id="cookie-statement-link">${e}</pie-link>`,linkNecessaryOnly:e=>V`<pie-link data-test-id="body-necessary-only" tag="button" variant="inverse" @click="${this._onNecessaryOnly}">${e}</pie-link>`,linkManagePreferences:e=>V`<pie-link data-test-id="body-manage-prefs" tag="button" variant="inverse" @click="${this._openManagePreferencesModal}">${e}</pie-link>`,linkAcceptAll:e=>V`<pie-link data-test-id="body-accept-all" tag="button" variant="inverse" @click="${this._onAcceptAll}">${e}</pie-link>`,linkCookieStatement:e=>V`<pie-link href="${this.cookieStatementLink}" size="small" target="_blank" data-test-id="cookie-statement-link">${e}</pie-link>`,linkCookieTechList:e=>V`<pie-link href="${this.cookieTechnologiesLink}" size="small" target="_blank" data-test-id="cookie-technology-link">${e}</pie-link>`},this._onNecessaryOnly=()=>{Le(this,ho),this._isCookieBannerHidden=!0},this._onAcceptAll=()=>{Le(this,co),this._isCookieBannerHidden=!0},this._openManagePreferencesModal=()=>{this._isCookieBannerHidden=!0,Le(this,po),this._isModalOpen=!0},this._handleSwitchStates=e=>{const{id:t}=null==e?void 0:e.currentTarget,i=[...this._preferencesNodes].find(({id:e})=>"all"===e);if(t===i.id){const{checked:t}=e.target;this._preferencesNodes.forEach(e=>{e.checked=e.disabled?e.checked:t})}else i.checked=[...this._preferencesNodes].filter(({id:e})=>"all"!==e).every(({checked:e})=>e)}}async updated(e){(e.has("language")||e.has("country"))&&await this._setLocaleBasedOnCountryAndLanguage(this.language,this.country)}async _setLocaleBasedOnCountryAndLanguage(e,t){try{const i=this._getLocaleString(e,t);this._locale=(await((e,t,i)=>{const o=e[t];return o?"function"==typeof o?o():Promise.resolve(o):new Promise((e,o)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==i?". Note that variables only represent file names one level deep.":""))))})})(Object.assign({"../locales/bg.js":()=>Promise.resolve().then(()=>Vo),"../locales/ca.js":()=>Promise.resolve().then(()=>Wo),"../locales/da.js":()=>Promise.resolve().then(()=>Uo),"../locales/de.js":()=>Promise.resolve().then(()=>qo),"../locales/en-fr.js":()=>Promise.resolve().then(()=>Ko),"../locales/en.js":()=>Promise.resolve().then(()=>ao),"../locales/es.js":()=>Promise.resolve().then(()=>Go),"../locales/fr-fr.js":()=>Promise.resolve().then(()=>Zo),"../locales/fr.js":()=>Promise.resolve().then(()=>Yo),"../locales/he.js":()=>Promise.resolve().then(()=>Xo),"../locales/it.js":()=>Promise.resolve().then(()=>Qo),"../locales/nl.js":()=>Promise.resolve().then(()=>Jo),"../locales/pl.js":()=>Promise.resolve().then(()=>en),"../locales/sk.js":()=>Promise.resolve().then(()=>tn)}),`../locales/${i}.js`,3)).default}catch{this._locale=ro}}_localiseText(e){return yo(this._locale,e)}_localiseRichText(e){return function(e,t,i){if(!e)throw new Error('"locale" parameter cannot be empty');if(!t)throw new Error('"key" parameter cannot be empty');if(!i)throw new Error('"customTagEnhancers" parameter cannot be empty');return ko(yo(e,t),i)}(this._locale,e,this._customTagEnhancers)}_displayCookieBanner(){this._isModalOpen=!1,this._isCookieBannerHidden=!1}_handlePreferencesSaved(){let e={};[...this._preferencesNodes].filter(({id:e})=>"all"!==e).forEach(({id:t,checked:i})=>{e={...e,[t]:i}}),Le(this,vo,e),this._isModalOpen=!1,this._isCookieBannerHidden=!0}renderPreference({id:e,checked:t,disabled:i,hasDivider:o,hasDescription:n}){var r;const a=this._localiseText(`preferencesManagement.${e}.title`),s=`preferencesManagement.${e}.description`,l=n&&this._localiseText(s),c=["functional","personalized","analytical"].every(e=>{var t;return!0===(null==(t=this.defaultPreferences)?void 0:t[e])});return V`
|
|
282
|
+
</label>`}};no.shadowRootOptions={...le.shadowRootOptions,delegatesFocus:!0},no.styles=s("*,*:after,*:before{box-sizing:inherit}:host{display:block}*,*:before,*:after{cursor:inherit}.c-switch-wrapper{display:inline-flex;align-items:center;gap:var(--dt-spacing-b);vertical-align:top;font-family:var(--dt-font-body-l-family);cursor:pointer}.c-switch-wrapper[disabled]{cursor:not-allowed}.c-switch{--int-states-mixin-bg-color: var(--dt-color-interactive-form);--switch-bg-color--checked: var(--dt-color-interactive-brand);--switch-bg-color--disabled: var(--dt-color-disabled-01);--switch-width: 48px;--switch-height: 24px;--switch-control-size: 20px;--switch-padding: 2px;--switch-radius: var(--dt-radius-rounded-e);--switch-translation: calc(var(--switch-width) - var(--switch-control-size) - 2 * var(--switch-padding));position:relative;display:flex;width:var(--switch-width);height:var(--switch-height);flex-shrink:0;padding:var(--switch-padding);border-radius:var(--switch-radius);background-color:var(--int-states-mixin-bg-color)}.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--hover-modifier)))}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-form-h), var(--dt-color-interactive-form-s), calc(var(--dt-color-interactive-form-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){.c-switch:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-form))}.c-switch:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch.is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-form))}}.c-switch[checked]{--int-states-mixin-bg-color: var(--dt-color-interactive-brand)}.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--hover-modifier: calc(-1 * var(--dt-color-hover-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--hover-modifier)))}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--active-modifier: calc(-1 * var(--dt-color-active-01));--int-states-mixin-bg-color: hsl(var(--dt-color-interactive-brand-h), var(--dt-color-interactive-brand-s), calc(var(--dt-color-interactive-brand-l) + var(--active-modifier)))}@supports (background-color: color-mix(in srgb,black,white)){.c-switch[checked]:hover:not(:disabled,.is-disabled,.is-dismissible){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-hover-01-bg) var(--dt-color-hover-01), var(--dt-color-interactive-brand))}.c-switch[checked]:active:not(:disabled,.is-disabled,.is-dismissible),.c-switch[checked].is-loading:not(:disabled,.is-disabled){--int-states-mixin-bg-color: color-mix(in srgb, var(--dt-color-active-01-bg) var(--dt-color-active-01), var(--dt-color-interactive-brand))}}[disabled] .c-switch{--int-states-mixin-bg-color: var(--switch-bg-color--disabled);pointer-events:none}.c-switch:has(.c-switch-input:focus-visible){box-shadow:0 0 0 2px var(--dt-color-focus-inner),0 0 0 4px var(--dt-color-focus-outer);outline:none}.c-switch-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;left:50%;transform:translate(-50%) translateY(-50%);bottom:0}.c-switch-input:disabled{background-color:transparent}.c-switch-control{position:absolute;left:2px;width:var(--switch-control-size);height:var(--switch-control-size);border-radius:var(--switch-radius);background-color:var(--dt-color-interactive-light);padding:var(--switch-padding)}.c-switch-wrapper:dir(rtl) .c-switch-control{position:absolute;left:initial;right:2px}.c-switch-control .c-pieIcon--check{vertical-align:top}.c-switch-input:checked+.c-switch-control{transform:translate(var(--switch-translation))}.c-switch-input:checked+.c-switch-control .c-pieIcon--check{color:var(--dt-color-interactive-brand)}.c-switch-input:disabled~.c-switch-control{color:var(--switch-bg-color--disabled)}.c-switch-input:disabled~.c-switch-control .c-pieIcon--check{color:var(--switch-bg-color--disabled)}.c-switch-label{color:var(--dt-color-content-default)}.c-switch-description{position:absolute;display:block;height:1px;width:1px;overflow:hidden;padding:1px;white-space:nowrap}@media (prefers-reduced-motion: no-preference){.c-switch-wrapper--allow-animation .c-switch{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-wrapper--allow-animation .c-switch[checked]{transition:background-color .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-input:checked+.c-switch-wrapper--allow-animation .c-switch-control{transition:transform .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-input:checked+.c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}@media (prefers-reduced-motion: no-preference){.c-switch-input:disabled~.c-switch-wrapper--allow-animation .c-switch-control .c-pieIcon--check{transition:color .15s cubic-bezier(.4,0,.9,1) 0s}}.c-switch-wrapper:dir(rtl) .c-switch-input:checked+.c-switch-control{transform:translate(calc(-1 * var(--switch-translation)))}"),oo([be({type:String})],no.prototype,"label",2),oo([be({type:String}),Be("pie-switch",["leading","trailing"],Qi)],no.prototype,"labelPlacement",2),oo([be({type:Object})],no.prototype,"aria",2),oo([be({type:Boolean,reflect:!0})],no.prototype,"checked",2),oo([be({type:Boolean,reflect:!0})],no.prototype,"required",2),oo([be({type:String})],no.prototype,"value",2),oo([be({type:String,reflect:!0})],no.prototype,"name",2),oo([be({type:Boolean,reflect:!0})],no.prototype,"disabled",2),oo([ge('input[type="checkbox"]')],no.prototype,"input",2),oo([ge("label")],no.prototype,"focusTarget",2),oo([ue()],no.prototype,"_isAnimationAllowed",2),no=oo([Pe("pie-switch")],no);const ro={banner:{title:"Cookies",description:"We use our own and third party cookies and other tech to enhance and personalise your user experience, optimize analytics, and show ads with third parties (read our <linkStatement>Statement</linkStatement>). Necessary cookies are always set. Click <linkNecessaryOnly>Necessary only</linkNecessaryOnly> to continue without accepting more. Click <linkManagePreferences>Manage preferences</linkManagePreferences> to share your preferences or <linkAcceptAll>Accept all</linkAcceptAll>.",cta:{managePreferences:"Manage preferences",necessaryOnly:"Necessary only",acceptAll:"Accept all"}},preferencesManagement:{title:"Manage your preferences",description:"You can find all the information in the <linkCookieStatement>Cookie Statement</linkCookieStatement> and <linkCookieTechList>Cookie technology list</linkCookieTechList>.",all:{title:"Turn all on"},necessary:{title:"Necessary",description:"These cookies are necessary to ensure that the website and its features function properly. Services you have asked for cannot be provided without these cookies."},functional:{title:"Functional",description:"These cookies allow the website to remember the choices you make to give you better functionality and personal features."},analytical:{title:"Analytical",description:"These analytical cookies, including statistics, are used to understand how visitors interact with the website and we can measure and improve the performance of our website."},personalized:{title:"Personalised (targeting and advertising)",description:"These marketing cookies are used to tailor the delivery of information to you based upon your interest and to measure the effectiveness of such advertisements, both on our website and our advertising partners' websites."},cta:{save:{label:"Save",ariaLabel:""}}}},ao=Object.freeze(Object.defineProperty({__proto__:null,default:ro},Symbol.toStringTag,{value:"Module"})),so={BULGARIAN:"bg",CATALAN:"ca",DANISH:"da",DUTCH:"nl",ENGLISH:"en",FRENCH:"fr",GERMAN:"de",HEBREW:"he",ITALIAN:"it",POLISH:"pl",SLOVAK:"sk",SPANISH:"es"},lo={AUSTRALIA:"au",AUSTRIA:"at",BELGIUM:"be",BULGARIA:"bg",CANADA:"ca",DENMARK:"dk",FRANCE:"fr",GERMANY:"de",GREAT_BRITAIN:"gb",IRELAND:"ie",ISRAEL:"il",ITALY:"it",LUXEMBOURG:"lu",NETHERLANDS:"nl",POLAND:"pl",SLOVAKIA:"sk",SPAIN:"es",SWITZERLAND:"ch"},co="pie-cookie-banner-accept-all",ho="pie-cookie-banner-necessary-only",po="pie-cookie-banner-manage-prefs",vo="pie-cookie-banner-prefs-saved",bo=[{id:"all",hasDivider:!0,hasDescription:!1},{id:"necessary",checked:!0,disabled:!0,hasDescription:!0},{id:"functional",hasDescription:!0},{id:"analytical",hasDescription:!0},{id:"personalized",hasDescription:!0}],uo={hasPrimaryActionsOnly:!1,defaultPreferences:{},country:lo.GREAT_BRITAIN,language:so.ENGLISH,cookieStatementLink:"",cookieTechnologiesLink:""},mo=new Set([`${so.BULGARIAN}`,`${so.DANISH}`,`${so.ENGLISH}-${lo.FRANCE}`,`${so.FRENCH}-${lo.FRANCE}`,`${so.FRENCH}`,`${so.GERMAN}`,`${so.ENGLISH}`,`${so.HEBREW}`,`${so.ITALIAN}`,`${so.DUTCH}`,`${so.POLISH}`,`${so.SLOVAK}`,`${so.CATALAN}`,`${so.SPANISH}`]),go=new Map([[lo.AUSTRALIA,`${so.ENGLISH}`],[lo.AUSTRIA,`${so.GERMAN}`],[lo.BELGIUM,`${so.DUTCH}`],[lo.BULGARIA,`${so.BULGARIAN}`],[lo.CANADA,`${so.ENGLISH}`],[lo.DENMARK,`${so.DANISH}`],[lo.FRANCE,`${so.FRENCH}-${lo.FRANCE}`],[lo.GERMANY,`${so.GERMAN}`],[lo.GREAT_BRITAIN,`${so.ENGLISH}`],[lo.IRELAND,`${so.ENGLISH}`],[lo.ISRAEL,`${so.HEBREW}`],[lo.ITALY,`${so.ITALIAN}`],[lo.LUXEMBOURG,`${so.FRENCH}`],[lo.NETHERLANDS,`${so.DUTCH}`],[lo.POLAND,`${so.POLISH}`],[lo.SLOVAKIA,`${so.SLOVAK}`],[lo.SPAIN,`${so.SPANISH}`],[lo.SWITZERLAND,`${so.GERMAN}`]]);function fo(e){console.error(`[localisation-utils]: ${e}`)}function yo(e,t){if(!e)throw new Error('"locale" parameter cannot be empty');if(!t)throw new Error('"key" parameter cannot be empty');const i=function(e,t){const i=i=>String.prototype.split.call(t,i).filter(Boolean).reduce((e,t)=>null!=e&&"object"==typeof e?e[t]:e,e),o=i(/[,[\]]+?/)||i(/[,[\].]+?/);return"string"!=typeof o?"":o}(e,t);return i||(fo(`Couldn't find a value for the key "${t}", it will be used as fallback.`),t)}function ko(e,t){const i=Object.keys(t);if(0===i.length)return[e];const o=function(e){const t=e.map(e=>`(<${e}.*>.*</${e}>)`).join("|");return new RegExp(t,"igm")}(i);return e.split(o).filter(e=>Boolean(e)).map(e=>{if(!e.match(o))return e;const t=e.match(/<(.*)>(.*)<\/.*>/);if(!t)return e;const[,i,n]=t;return[i,n]}).map(e=>{if(!Array.isArray(e))return e;const[i,o]=e,n=t[i];return n||"function"==typeof n?n(o):(fo(`Custom tag "${i}" does not have a matching enhancer function`),o)})}var wo,xo=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor,_o=(e,t,i,o)=>{for(var n,r=o>1?void 0:o?Ao(t,i):t,a=e.length-1;a>=0;a--)(n=e[a])&&(r=(o?n(t,i,r):n(r))||r);return o&&r&&xo(t,i,r),r};e.PieCookieBanner=class extends he{constructor(){super(...arguments),this._isCookieBannerHidden=!1,this._isModalOpen=!1,this._locale=ro,this.hasPrimaryActionsOnly=uo.hasPrimaryActionsOnly,this.defaultPreferences=uo.defaultPreferences,this.cookieStatementLink=uo.cookieStatementLink,this.cookieTechnologiesLink=uo.cookieTechnologiesLink,this.country=uo.country,this.language=uo.language,this._getLocaleString=(e,t)=>{let i=`${e}-${t}`.toLowerCase();if(mo.has(i))return i;if(i=`${e}`.toLowerCase(),mo.has(i))return i;const o=go.get(t.toLowerCase());return o&&mo.has(o)?o:`${uo.language}`},this._customTagEnhancers={linkStatement:e=>V`<pie-link href="${this.cookieStatementLink}" variant="inverse" target="_blank" data-test-id="cookie-statement-link">${e}</pie-link>`,linkNecessaryOnly:e=>V`<pie-link data-test-id="body-necessary-only" tag="button" variant="inverse" @click="${this._onNecessaryOnly}">${e}</pie-link>`,linkManagePreferences:e=>V`<pie-link data-test-id="body-manage-prefs" tag="button" variant="inverse" @click="${this._openManagePreferencesModal}">${e}</pie-link>`,linkAcceptAll:e=>V`<pie-link data-test-id="body-accept-all" tag="button" variant="inverse" @click="${this._onAcceptAll}">${e}</pie-link>`,linkCookieStatement:e=>V`<pie-link href="${this.cookieStatementLink}" size="small" target="_blank" data-test-id="cookie-statement-link">${e}</pie-link>`,linkCookieTechList:e=>V`<pie-link href="${this.cookieTechnologiesLink}" size="small" target="_blank" data-test-id="cookie-technology-link">${e}</pie-link>`},this._onNecessaryOnly=()=>{Le(this,ho),this._isCookieBannerHidden=!0},this._onAcceptAll=()=>{Le(this,co),this._isCookieBannerHidden=!0},this._openManagePreferencesModal=()=>{this._isCookieBannerHidden=!0,Le(this,po),this._isModalOpen=!0},this._handleSwitchStates=e=>{const{id:t}=null==e?void 0:e.currentTarget,i=[...this._preferencesNodes].find(({id:e})=>"all"===e);if(t===i.id){const{checked:t}=e.target;this._preferencesNodes.forEach(e=>{e.checked=e.disabled?e.checked:t})}else i.checked=[...this._preferencesNodes].filter(({id:e})=>"all"!==e).every(({checked:e})=>e)}}async updated(e){(e.has("language")||e.has("country"))&&await this._setLocaleBasedOnCountryAndLanguage(this.language,this.country)}async _setLocaleBasedOnCountryAndLanguage(e,t){try{const i=this._getLocaleString(e,t);this._locale=(await((e,t,i)=>{const o=e[t];return o?"function"==typeof o?o():Promise.resolve(o):new Promise((e,o)=>{("function"==typeof queueMicrotask?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==i?". Note that variables only represent file names one level deep.":""))))})})(Object.assign({"../locales/bg.js":()=>Promise.resolve().then(()=>Vo),"../locales/ca.js":()=>Promise.resolve().then(()=>Wo),"../locales/da.js":()=>Promise.resolve().then(()=>Uo),"../locales/de.js":()=>Promise.resolve().then(()=>qo),"../locales/en-fr.js":()=>Promise.resolve().then(()=>Ko),"../locales/en.js":()=>Promise.resolve().then(()=>ao),"../locales/es.js":()=>Promise.resolve().then(()=>Go),"../locales/fr-fr.js":()=>Promise.resolve().then(()=>Zo),"../locales/fr.js":()=>Promise.resolve().then(()=>Yo),"../locales/he.js":()=>Promise.resolve().then(()=>Xo),"../locales/it.js":()=>Promise.resolve().then(()=>Qo),"../locales/nl.js":()=>Promise.resolve().then(()=>Jo),"../locales/pl.js":()=>Promise.resolve().then(()=>en),"../locales/sk.js":()=>Promise.resolve().then(()=>tn)}),`../locales/${i}.js`,3)).default}catch{this._locale=ro}}_localiseText(e){return yo(this._locale,e)}_localiseRichText(e){return function(e,t,i){if(!e)throw new Error('"locale" parameter cannot be empty');if(!t)throw new Error('"key" parameter cannot be empty');if(!i)throw new Error('"customTagEnhancers" parameter cannot be empty');return ko(yo(e,t),i)}(this._locale,e,this._customTagEnhancers)}_displayCookieBanner(){this._isModalOpen=!1,this._isCookieBannerHidden=!1}_handlePreferencesSaved(){let e={};[...this._preferencesNodes].filter(({id:e})=>"all"!==e).forEach(({id:t,checked:i})=>{e={...e,[t]:i}}),Le(this,vo,e),this._isModalOpen=!1,this._isCookieBannerHidden=!0}renderPreference({id:e,checked:t,disabled:i,hasDivider:o,hasDescription:n}){var r;const a=this._localiseText(`preferencesManagement.${e}.title`),s=`preferencesManagement.${e}.description`,l=n&&this._localiseText(s),c=["functional","personalized","analytical"].every(e=>{var t;return!0===(null==(t=this.defaultPreferences)?void 0:t[e])});return V`
|
|
281
283
|
<div class="c-cookieBanner-preference">
|
|
282
284
|
<div>
|
|
283
285
|
<h3 class="c-cookieBanner-subheading">${a}</h3>
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ const I = (e, t, n) => {
|
|
|
26
26
|
this.getAttribute("v") || this.setAttribute("v", k.v);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
k.v = "1.6.
|
|
29
|
+
k.v = "1.6.18";
|
|
30
30
|
let A = k;
|
|
31
31
|
const O = "*,*:after,*:before{box-sizing:inherit}*{margin:0}.c-cookieBanner{--cb-font-family: var(--dt-font-interactive-l-family);--cb-font-size: calc(var(--dt-font-body-l-size) * 1px);--cb-line-height: calc(var(--dt-font-body-l-line-height) * 1px);--cb-font-weight: var(--dt-font-body-l-weight);--cb-padding-inline: var(--dt-spacing-d);--cb-padding-block: var(--dt-spacing-d);--cb-offset: 0;color-scheme:only dark;background-color:var(--dt-color-background-dark);color:var(--dt-color-content-inverse);font-family:var(--cb-font-family);font-size:var(--cb-font-size);line-height:var(--cb-line-height);font-weight:var(--cb-font-weight);padding-block-start:var(--cb-padding-block);padding-block-end:var(--cb-padding-block);max-height:432px;position:fixed;bottom:var(--cb-offset);left:var(--cb-offset);right:var(--cb-offset);border-top-left-radius:var(--dt-radius-rounded-c);border-top-right-radius:var(--dt-radius-rounded-c);z-index:var(--dt-z-index-cookie-banner)}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner{--cb-padding-inline: var(--dt-spacing-f);--cb-offset: var(--dt-spacing-d);max-height:90%;border-bottom-left-radius:var(--dt-radius-rounded-c);border-bottom-right-radius:var(--dt-radius-rounded-c)}}.c-cookieBanner[isCookieBannerHidden]{display:none}@media (prefers-reduced-motion: no-preference){.c-cookieBanner{animation:.5s animate-enter ease-out}@keyframes animate-enter{0%{transform:translate3d(0,75%,0)}to{transform:translateZ(0)}}}.c-cookieBanner-title,.c-cookieBanner-body,.c-cookieBanner-actions{padding-inline-start:var(--cb-padding-inline);padding-inline-end:var(--cb-padding-inline)}.c-cookieBanner-title{--cb-title-font-size: var(--dt-font-heading-s-size--narrow);--cb-title-line-height: var(--dt-font-heading-s-line-height--narrow);font-size:calc(var(--cb-title-font-size) * 1px);font-weight:var(--dt-font-heading-s-weight);line-height:calc(var(--cb-title-line-height) * 1px)}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-title{--cb-title-font-size: var(--dt-font-heading-s-size--wide);--cb-title-line-height: var(--dt-font-heading-s-line-height--wide)}}.c-cookieBanner-body{--cb-scroll-shadow-color: var(--dt-color-black);margin-block-start:var(--dt-spacing-a);max-height:200px;overflow-y:auto;background:linear-gradient(to bottom,transparent,var(--dt-color-background-dark) 75%) center bottom,linear-gradient(transparent,var(--cb-scroll-shadow-color)) center bottom;background-repeat:no-repeat;background-size:100% 48px,100% 8px;background-attachment:local,scroll}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-body{max-height:150px}}.c-cookieBanner-actions{--cb-actions-flex-dir: column;margin-block-start:var(--dt-spacing-d);display:flex;gap:var(--dt-spacing-d);flex-direction:var(--cb-actions-flex-dir)}.c-cookieBanner-actions>pie-link{text-align:center;align-self:center}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-actions{--cb-actions-flex-dir: row-reverse;justify-content:flex-start;align-items:center}}.c-cookieBanner-subheading{--cb-subheading-font-size: var(--dt-font-heading-s-size--narrow);--cb-subheading-line-height: var(--dt-font-heading-s-line-height--narrow);font-size:calc(var(--cb-subheading-font-size) * 1px);font-weight:var(--dt-font-heading-s-weight);line-height:calc(var(--cb-subheading-line-height) * 1px)}@media (min-width: 700px) and (orientation: landscape){.c-cookieBanner-subheading{--cb-subheading-font-size: var(--dt-font-heading-s-size--wide);--cb-subheading-line-height: var(--dt-font-heading-s-line-height--wide)}}.c-cookieBanner-description{font-size:calc(var(--dt-font-body-s-size) * 1px);line-height:calc(var(--dt-font-body-s-line-height) * 1px)}.c-cookieBanner-preference{display:flex;gap:var(--dt-spacing-d);justify-content:space-between;margin-block-start:var(--dt-spacing-e);margin-block-end:var(--dt-spacing-e)}.c-cookieBanner-preference p{margin-block-start:var(--dt-spacing-b)}.c-cookieBanner-preference:last-child{margin-block-end:0}", i = {
|
|
32
32
|
BULGARIAN: "bg",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-cookie-banner",
|
|
3
3
|
"description": "PIE Design System Cookie Banner built using Web Components",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.18",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/justeattakeaway/pie",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
50
50
|
"@justeattakeaway/pie-components-config": "0.21.0",
|
|
51
|
-
"@justeattakeaway/pie-css": "0.
|
|
51
|
+
"@justeattakeaway/pie-css": "0.20.0",
|
|
52
52
|
"@justeattakeaway/pie-monorepo-utils": "0.7.0",
|
|
53
53
|
"@justeattakeaway/pie-wrapper-react": "0.14.3",
|
|
54
54
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"@justeattakeaway/pie-divider": "1.4.6",
|
|
59
59
|
"@justeattakeaway/pie-icon-button": "2.0.6",
|
|
60
60
|
"@justeattakeaway/pie-link": "1.2.10",
|
|
61
|
-
"@justeattakeaway/pie-modal": "1.
|
|
62
|
-
"@justeattakeaway/pie-switch": "2.
|
|
61
|
+
"@justeattakeaway/pie-modal": "1.12.0",
|
|
62
|
+
"@justeattakeaway/pie-switch": "2.2.0",
|
|
63
63
|
"@justeattakeaway/pie-webc-core": "1.1.0"
|
|
64
64
|
},
|
|
65
65
|
"volta": {
|