import { r as registerInstance, h, H as Host, a as getElement } from './index-Co4V4Zk-.js';

const spwFooterContentCss = () => `html{line-height:1.3;-webkit-text-size-adjust:100%;}h1,h2,h3,h4,h5,h6,p,ul,li{padding:0;margin:0}ul{list-style:none}:host{box-sizing:border-box;line-height:1.3;-webkit-text-size-adjust:100%;font-size:100%}:host *,:host *::before,:host *::after{box-sizing:inherit;font-family:var(--spw-ds-font-main)}body{margin:0}hr{box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0;}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px;}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--spw-ds-container-xl:1232px;--spw-ds-container-lg:1024px;--spw-ds-container-md:768px;--spw-ds-container-sm:640px}.spw-ds-container{width:100%;padding-left:16px;padding-right:16px;margin-left:auto;margin-right:auto}@media (min-width: 460px){.spw-ds-container{max-width:var(--spw-ds-container-sm)}}@media (min-width: 768px){.spw-ds-container{max-width:var(--spw-ds-container-md)}}@media (min-width: 1024px){.spw-ds-container{max-width:var(--spw-ds-container-lg)}}@media (min-width: 1350px){.spw-ds-container{max-width:var(--spw-ds-container-xl)}}:host{display:block;--spw-footer-col-width-mobile:100%;--spw-footer-col-width-tablet:100%;--spw-footer-col-width-desktop:100%}.spw-footer-content{background:#1d1d1d;color:var(--spw-ds-white);padding:32px 0}.spw-footer-content__container{display:flex;flex-wrap:wrap}::slotted(spw-footer-content-col){width:var(--spw-footer-col-width-mobile);margin-bottom:24px !important;padding-bottom:24px !important;position:relative}::slotted(spw-footer-content-col):after{content:"";position:absolute;bottom:0;right:0;width:100%;height:1px;background:var(--spw-color-themes-grey-grey-800)}@media (min-width: 768px){::slotted(spw-footer-content-col){width:var(--spw-footer-col-width-tablet);gap:48px}::slotted(spw-footer-content-col):after{display:none}}@media (min-width: 1024px){::slotted(spw-footer-content-col){width:var(--spw-footer-col-width-desktop);gap:0;padding-right:48px !important;padding-left:48px !important;margin-bottom:0 !important}::slotted(spw-footer-content-col):after{display:block;top:0;bottom:auto;height:100%;width:1px}}::slotted(spw-footer-content-col:first-child){padding-left:0 !important}::slotted(spw-footer-content-col:last-child){padding-right:0 !important;margin-bottom:0 !important;padding-bottom:0 !important}::slotted(spw-footer-content-col:last-child):after{display:none}`;

const SpwFooterContent = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
    }
    componentDidLoad() {
        this.el.closest('spw-footer').addEventListener('spwFooterCols', this.handleFooterCols.bind(this));
    }
    disconnectedCallback() {
        this.el.closest('spw-footer').removeEventListener('spwFooterCols', this.handleFooterCols.bind(this));
    }
    handleFooterCols(event) {
        const { colsMobile, colsTablet, colsDesktop } = event.detail;
        this.el.style.setProperty('--spw-footer-col-width-mobile', `calc(100% / ${colsMobile})`);
        this.el.style.setProperty('--spw-footer-col-width-tablet', `calc(100% / ${colsTablet})`);
        this.el.style.setProperty('--spw-footer-col-width-desktop', `calc(100% / ${colsDesktop})`);
    }
    render() {
        return (h(Host, { key: '75e1c33f9778b7cb46bd7f33ae2a83bc203fe5c5' }, h("div", { key: '69809ec22587a8e85ffa73e6641a53772990661f', class: "spw-footer-content" }, h("div", { key: '8d756c94d0eefcc2ef4f94ca7fdd62b7e9c8199e', class: "spw-footer-content__container spw-ds-container" }, h("slot", { key: 'def21bbee7b3f20a31cdb1b2ab22c5ec3e288633' })))));
    }
    get el() { return getElement(this); }
};
SpwFooterContent.style = spwFooterContentCss();

export { SpwFooterContent as spw_footer_content };
