@viur/shop-components 0.0.1-dev.44 → 0.0.1-dev.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.logo[data-v-46c45785]{position:absolute;display:flex;align-items:center;justify-content:center;height:var(--93747d92);width:var(--93747d92);overflow:hidden;border-radius:50%;background-color:var(--sl-color-neutral-0);box-shadow:var(--284424e5)}.logo[data-v-46c45785] sl-icon[data-v-46c45785]{height:var(--6485ca5e);width:var(--6485ca5e);aspect-ratio:1;color:var(--vi-background-color);animation:zoom-46c45785 3.3s ease-in-out 0s infinite alternate}@keyframes zoom-46c45785{0%{scale:.75}to{scale:1}}.loader[data-v-46c45785]{font-size:var(--5d833915);--indicator-color: var(--d5b3feca);--track-color: var(--sl-color-neutral-0);--track-width: var(--2050b700);z-index:1}.loading[data-v-46c45785]{position:absolute;width:100%;height:100%;display:inline-grid;justify-items:center;align-items:center}.v-enter-active[data-v-46c45785],.v-leave-active[data-v-46c45785]{transition:opacity .5s ease}.v-enter-from[data-v-46c45785],.v-leave-to[data-v-46c45785]{opacity:0}.viur-shop-cart-card-img[data-v-0e24135f]{aspect-ratio:1}.viur-shop-cart-card[data-v-0e24135f]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(image){flex-basis:25%;max-width:250px}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(body){display:flex;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-card-body-row[data-v-0e24135f]{display:grid;grid-template-columns:1fr auto auto;gap:var(--sl-spacing-large);flex:1}.viur-shop-cart-card-body-info[data-v-0e24135f]{display:flex;flex-direction:column;height:100%}.viur-shop-cart-card-descr[data-v-0e24135f]{margin-bottom:auto}.viur-shop-cart-card-body-footer[data-v-0e24135f]{display:flex;flex-direction:row;gap:var(--sl-spacing-2x-small);margin-top:var(--sl-spacing-large)}.amount-input[data-v-0e24135f]{width:5em}.viur-shop-cart-card-price-wrap[data-v-0e24135f]{display:flex;flex-direction:column}.viur-shop-cart-card-price-wrap[data-v-0e24135f] .viur-shop-cart-card-small-print[data-v-0e24135f]{font-size:.75em;margin-left:auto}.viur-shop-cart-card-price[data-v-0e24135f]{font-size:1.3em}.viur-shop-cart-card-price-label[data-v-0e24135f]{color:var(--ignt-color-primary);font-weight:600;margin-bottom:10px;font-size:1em;margin-left:auto}.viur-shop-cart-wrap[data-v-39d35665]{flex-direction:row;gap:var(--sl-spacing-x-large);align-items:flex-start}.viur-shop-cart-sidebar-btn-wrap[data-v-39d35665]{display:flex;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap[data-v-39d35665] sl-button[data-v-39d35665]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-39d35665]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}.viur-shop-cart-controlbar[data-v-39d35665]{width:100%;display:flex;justify-content:space-between;align-items:center}.viur-shop-cart-controlbar[data-v-39d35665] sl-input[data-v-39d35665]{flex:1}.viur-shop-cart-controlbar[data-v-39d35665] sl-input[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0}.viur-shop-cart-button-list[data-v-39d35665]{display:flex;flex-direction:row;gap:10px}.viur-shop-cart-button-list[data-v-39d35665].left[data-v-39d35665]{flex:1;margin-right:10px}.search[data-v-39d35665]{flex:1 1 100%;margin-left:10px}.article-combobox[data-v-39d35665]{float:left;width:75ch}.viur-shop-cart-card-img[data-v-39d35665]{aspect-ratio:1}.viur-shop-cart-selection[data-v-39d35665]{flex:1}.cart-wrap[data-v-39d35665]{display:flex;flex-direction:column;width:100%}.soma-input[data-v-39d35665]{display:grid;grid-template-columns:120px 1fr;align-items:center}.soma-label[data-v-39d35665]{display:flex;flex-direction:row;align-items:center}.soma-label[data-v-39d35665] sl-icon[data-v-39d35665]{margin-left:5px;background-color:@highlightColor;color:#fff;aspect-ratio:1;border-radius:50%;padding:.3em;font-size:.6em;cursor:pointer}sl-tooltip[data-v-39d35665][data-v-39d35665]::part(body){line-height:1.2;font-weight:400;padding:10px}.cart-tab[data-v-39d35665] sl-tab[data-v-39d35665]{width:25%}.cart-tab[data-v-39d35665] sl-tab[data-v-39d35665][data-v-39d35665]::part(base){width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;color:var(--sl-color-neutral-400)}.cart-tab[data-v-39d35665] sl-tab[data-v-39d35665][aria-selected=true][data-v-39d35665]::part(base){color:var(--ignt-color-primary)!important}.cart-status-text[data-v-39d35665]{font-size:.8em;color:inherit;text-align:center;margin-top:.6em;white-space:initial}.search-box[data-v-39d35665]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;margin-bottom:30px}.search-box[data-v-39d35665] sl-button[data-v-39d35665][data-v-39d35665]::part(base){height:100%}@media (--ignt-mq-max-break-medium){.search-box[data-v-39d35665]{flex-wrap:wrap}}.article-combobox[data-v-39d35665]{flex:1 1 100%;margin-bottom:10px}.article-combobox[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0}@media (--ignt-mq-max-break-medium){.article-combobox[data-v-39d35665]{margin-bottom:0}}.comission-box[data-v-39d35665]{margin-right:10px}.comission-box[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0}@media (--ignt-mq-max-break-medium){.comission-box[data-v-39d35665]{flex:1}}.search-amt[data-v-39d35665]{margin-right:10px}.search-amt[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0;width:80px}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]::part(base){background-color:transparent;transition:all ease .3s;border-bottom:1px solid transparent;height:auto}.viur-shop-cart-headline[data-v-39d35665] [data-v-39d35665] .input--focused{border-bottom:1px solid var(--sl-color-primary-500)!important}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]::part(input){color:var(--sl-color-primary-500);font-weight:300;text-transform:uppercase;font-size:1.85em;padding:.1em 0;height:auto}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]:hover[data-v-39d35665]::part(base){border-bottom:1px solid var(--sl-color-primary-500)}.viur-shop-cart-descr[data-v-39d35665]{margin-top:10px}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]::part(base){background-color:transparent;transition:all ease .3s;border-bottom:1px solid transparent;margin-bottom:0}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]::part(input){padding:.1em 0;height:auto;color:var(--ignt-color-text)}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]:hover[data-v-39d35665]::part(base){border-bottom:1px solid var(--ignt-color-text)}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(checked-icon){display:none}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(prefix){margin-right:10px}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(suffix){margin-right:-1.5em}.primary-icon[data-v-39d35665]{color:var(--ignt-color-primary)}.delete-icon[data-v-39d35665]{color:@warnColor}.dots[data-v-39d35665]{color:var(--ignt-color-primary);width:1.5em;height:100%;font-size:1em;padding:.4em}.viur-shop-cart-sidebar-info-line[data-v-39d35665]{display:flex;flex-direction:row;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line[data-v-39d35665].total[data-v-39d35665]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-sidebar-info-line[data-v-39d35665] span[data-v-39d35665]{margin-right:auto}.viur-shop-cart-card[data-v-39d35665]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(image){flex-basis:25%;max-width:250px}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(body){display:flex;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-card-body-row[data-v-39d35665]{display:grid;grid-template-columns:1fr auto auto;gap:var(--sl-spacing-large);flex:1}.viur-shop-cart-card-body-info[data-v-39d35665]{display:flex;flex-direction:column;height:100%}.viur-shop-cart-card-descr[data-v-39d35665]{margin-bottom:auto}.viur-shop-cart-card-body-footer[data-v-39d35665]{display:flex;flex-direction:row;gap:var(--sl-spacing-2x-small);margin-top:var(--sl-spacing-large)}.amount-input[data-v-39d35665]{width:5em}.viur-shop-cart-card-price-wrap[data-v-39d35665]{display:flex;flex-direction:column}.viur-shop-cart-card-price-wrap[data-v-39d35665] .viur-shop-cart-card-small-print[data-v-39d35665]{font-size:.75em;margin-left:auto}.viur-shop-cart-card-price[data-v-39d35665]{font-size:1.3em}.viur-shop-cart-card-price-label[data-v-39d35665]{color:var(--ignt-color-primary);font-weight:600;margin-bottom:10px;font-size:1em;margin-left:auto}.viur-shop-cart-sidebar-btn-wrap[data-v-b7b745be]{display:flex;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap[data-v-b7b745be] sl-button[data-v-b7b745be]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-b7b745be]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}sl-tooltip[data-v-b7b745be][data-v-b7b745be]::part(body){line-height:1.2;font-weight:400;padding:10px}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(checked-icon){display:none}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(prefix){margin-right:10px}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(suffix){margin-right:-1.5em}.viur-shop-cart-sidebar-info-line[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line[data-v-b7b745be] span[data-v-b7b745be]{margin-right:auto}.viur-shop-cart-sidebar-info-line[data-v-b7b745be].total[data-v-b7b745be]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card[data-v-b7b745be]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(image){flex-basis:25%;max-width:90px}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(body){display:flex;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card-body-row[data-v-b7b745be]{display:grid;grid-template-columns:1fr auto auto;gap:var(--sl-spacing-large);flex:1}.viur-shop-cart-mini-card-body-info[data-v-b7b745be]{display:flex;flex-direction:column;height:100%}.viur-shop-cart-mini-card-info-wrap[data-v-b7b745be]{display:flex;flex-wrap:nowrap;gap:var(--sl-spacing-medium)}.viur-shop-cart-mini-card-info[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap}.viur-shop-cart-mini-card-info[data-v-b7b745be] span[data-v-b7b745be]{margin-right:var(--sl-spacing-x-small);font-weight:600}.viur-shop-cart-address-wrap[data-v-b7b745be]{display:grid;grid-template-columns:1fr 1fr;gap:var(--sl-spacing-x-large);margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-address-headline[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;font-weight:600}.viur-shop-cart-payment[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-payment[data-v-b7b745be] span[data-v-b7b745be]{font-weight:600}.viur-shop-wrap[data-v-61488015]{flex-direction:row;gap:var(--sl-spacing-x-large);align-items:flex-start}.viur-shop-sidebar[data-v-61488015]{display:flex;flex-direction:column;background-color:var(--sl-color-neutral-100);min-width:300px;padding:var(--sl-spacing-medium);position:sticky;top:0}.viur-shop-order-tab[data-v-61488015] sl-tab[data-v-61488015]{width:25%}.viur-shop-order-tab[data-v-61488015] sl-tab[data-v-61488015][data-v-61488015]::part(base){width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;color:var(--sl-color-neutral-400)}.viur-shop-order-tab[data-v-61488015] sl-tab[data-v-61488015][aria-selected=true][data-v-61488015]::part(base){color:var(--ignt-color-primary)!important}.viur-shop-order-step[data-v-61488015]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}@media (--ignt-mq-max-break-small){.viur-shop-order-step[data-v-61488015]{justify-content:center}}.viur-shop-order-step[data-v-61488015] sl-icon[data-v-61488015]{font-size:2.5em;margin-bottom:10px}@media (--ignt-mq-max-break-small){.viur-shop-order-step[data-v-61488015] sl-icon[data-v-61488015]{display:none}}.viur-shop-order-tab-check[data-v-61488015]{position:absolute;right:-.5em}@media (--ignt-mq-max-break-small){.viur-shop-order-tab-check[data-v-61488015]{font-size:.7em;right:-.35em;top:calc(50% - .35em)}}.viur-shop-order-status-text[data-v-61488015]{font-size:.8em;color:inherit;text-align:center;margin-top:.6em;white-space:initial}.viur-shop-form-footer[data-v-61488015]{display:flex;justify-content:space-between;margin-top:var(--sl-spacing-large)}.flex-end[data-v-61488015]{justify-content:flex-end}.viur-shop-item-card-card[data-v-dc32dd0b]{width:100%}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]::part(header){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]::part(body){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]::part(footer){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]:hover .viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{opacity:1}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]:hover .viur-shop-item-card-headline[data-v-dc32dd0b]{color:var(--sl-color-primary-500)}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]:hover .viur-shop-item-card-image[data-v-dc32dd0b]{transform:scale(1.02)}.viur-shop-item-card-footer[data-v-dc32dd0b]{display:flex;flex-direction:row;align-items:center;width:100%}.viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{transition:all ease .3s;margin-right:var(--sl-spacing-medium);opacity:0}.viur-shop-item-card-add-to-favourites-btn[data-v-dc32dd0b]{margin-left:auto}.viur-shop-item-card-image[data-v-dc32dd0b]{aspect-ratio:1;object-fit:cover;transition:all ease .3s}.viur-shop-item-card-headline[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small);transition:all ease .3s}.viur-shop-item-card-subline[data-v-dc32dd0b]{color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small)}.viur-shop-item-card-price[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-left:auto}.viur-shop-category-view-list[data-v-532e5cf3]{display:grid;width:100%;grid-gap:var(--sl-spacing-medium);grid-template-columns:repeat(4,1fr)}.viur-shop-loading-wrap[data-v-532e5cf3]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center}.viur-shop-loading-wrap[data-v-532e5cf3] sl-spinner[data-v-532e5cf3]{font-size:3.5em;--track-width: 4px}.btn-wrap[data-v-36ccc280]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-x-large)}sl-input[data-v-0ebe5f0b]{width:100%}sl-input[data-v-0ebe5f0b][data-v-0ebe5f0b]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-0ebe5f0b][data-v-0ebe5f0b]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-b45a1311]{width:100%}sl-input[data-v-1ccbacc0]{width:100%}sl-input[data-v-1ccbacc0][data-v-1ccbacc0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-1ccbacc0][data-v-1ccbacc0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-4328e024]{width:100%}sl-input[data-v-4328e024][data-v-4328e024]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-4328e024][data-v-4328e024]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-f1b8af8c]{width:100%}sl-input[data-v-f1b8af8c][data-v-f1b8af8c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-f1b8af8c][data-v-f1b8af8c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-select[data-v-5a38b97f]{width:100%}sl-select[data-v-5a38b97f][data-v-5a38b97f]::part(combobox){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-select[data-v-5a38b97f][data-v-5a38b97f]::part(combobox){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-option[data-v-5a38b97f][data-v-5a38b97f]::part(base){transition:background-color ease .3s}sl-option[data-v-5a38b97f][data-v-5a38b97f]:hover[data-v-5a38b97f]::part(base){background-color:var(--sl-color-gray-200)}sl-switch[data-v-363598c8]{border:1px solid var(--sl-color-neutral-300);padding:.4em .1em .4em .4em;border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-right-radius:var(--sl-input-border-radius-medium);--height: calc(var(--sl-input-height-medium) - 1em);--width: calc(1.7 * (var(--sl-input-height-medium) - .8em));--thumb-size: calc(var(--sl-input-height-medium) - 1em)}@media (max-width: 900px){sl-switch[data-v-363598c8]{border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-0ccf18c0]{width:100%}sl-input[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-top-right-radius:0}}.has-check[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-bottom-right-radius:0}.password-check[data-v-0ccf18c0]{margin-top:var(--sl-spacing-x-small)}.password-check[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}.pw-legend[data-v-0ccf18c0]{display:flex;justify-content:space-between;align-content:flex-start;align-items:flex-start;gap:0rem;font-size:.75rem;padding:.25em}span[data-v-0ccf18c0]{margin:0;padding:0;font-style:italic}.errors[data-v-0ccf18c0]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}.requiredInfo[data-v-0ccf18c0]{color:var(--sl-color-danger-500)}.form[data-v-e6fcfbca]{width:100%}sl-input[data-v-84a761ce]{width:100%}sl-color-picker[data-v-534b9149][data-v-534b9149]::part(trigger){border-radius:0}sl-input[data-v-03d5b399]{width:100%}sl-input[data-v-03d5b399][data-v-03d5b399]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-03d5b399][data-v-03d5b399]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}.info[data-v-03d5b399]{display:flex;gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}.single-entry[data-v-61dd72e0]{display:flex;gap:var(--sl-spacing-x-small)}.single-entry[data-v-61dd72e0] [data-v-61dd72e0] sl-combobox[data-v-61dd72e0]::part(input__base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0]{width:100%}sl-input[data-v-61dd72e0][data-v-61dd72e0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0][data-v-61dd72e0]::part(base){background-color:var(--sl-color-neutral-0)}sl-combobox[data-v-61dd72e0]{width:100%}sl-combobox[data-v-61dd72e0][data-v-61dd72e0]::part(input){border-top-left-radius:0;border-bottom-left-radius:0}:is()[data-v-61dd72e0] :is()::part(base){border:1px solid red}.box[data-v-343aca69]{width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;min-height:40px}.box[data-v-91086308]{display:flex;align-items:center;padding:0 var(--sl-spacing-small) 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;height:var(--sl-input-height-medium);background-color:transparent}.preview[data-v-91086308]{display:flex;justify-content:center;align-items:center;height:var(--sl-input-height-medium);width:var(--sl-input-height-medium);aspect-ratio:1;border-right:1px solid var(--sl-color-gray-500);margin-right:var(--sl-spacing-small);background-image:linear-gradient(to right,#ffffffde,#ffffffde),linear-gradient(to right,#000 50%,#fff 50%),linear-gradient(to bottom,#000 50%,#fff 50%);background-blend-mode:normal,difference,normal;background-size:.65em .65em}.preview[data-v-91086308].has-preview[data-v-91086308]{cursor:pointer}.preview[data-v-91086308] sl-icon[data-v-91086308]{font-size:1.1em;color:var(--sl-color-gray-400)}.preview[data-v-91086308] .preview-img[data-v-91086308]{width:100%;height:100%;object-fit:contain}.file-wrapper[data-v-91086308]{width:100%;display:flex;gap:var(--sl-spacing-x-small);position:relative}.droparea[data-v-91086308]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:flex;align-items:center;justify-content:center}.delete-btn[data-v-91086308][data-v-91086308]::part(base){aspect-ratio:1}.upload-btn[data-v-91086308][data-v-91086308]::part(base){aspect-ratio:1}.loader[data-v-91086308]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#ffffffb3}.preview-overlay[data-v-91086308][data-v-91086308]::part(panel){width:auto;max-width:1200px}.preview-overlay[data-v-91086308][data-v-91086308]::part(body){display:flex;justify-content:center;align-items:center;background-image:linear-gradient(to right,#ffffffde,#ffffffde),linear-gradient(to right,#000 50%,#fff 50%),linear-gradient(to bottom,#000 50%,#fff 50%);background-blend-mode:normal,difference,normal;background-size:1.2em 1.2em;padding:0}.preview-overlay[data-v-91086308] img[data-v-91086308]{width:auto;height:auto}.bone-inner-wrap .ck-editor{--ck-border-radius: 0px;--ck-font-size-base: 14px;--ck-custom-background: var(--sl-color-neutral-200);--ck-custom-foreground: var(--sl-color-neutral-900);--ck-custom-border: var(--sl-color-neutral-100);--ck-custom-white: var(--sl-color-neutral-50);--ck-color-base-foreground: var(--ck-custom-background);--ck-color-base-background: var(--ck-custom-background);--ck-color-base-border: var(--sl-color-neutral-300);--ck-color-focus-border: var(--sl-color-neutral-700);--ck-color-text: var(--sl-color-neutral-900);--ck-color-shadow-drop: hsla(0, 0%, 0%, .2);--ck-color-shadow-inner: hsla(0, 0%, 0%, .1);--ck-color-button-default-background: var(--ck-custom-background);--ck-color-button-default-hover-background: var(--sl-color-neutral-50);--ck-color-button-default-active-background: var(--sl-color-neutral-50);--ck-color-button-default-active-shadow: hsl(270, 2%, 23%);--ck-color-button-default-disabled-background: var(--ck-custom-background);--ck-color-button-on-hover-background: var(--sl-color-neutral-50);--ck-color-button-on-active-background: hsl(255, 4%, 14%);--ck-color-button-on-active-shadow: hsl(240, 3%, 19%);--ck-color-button-on-disabled-background: var(--ck-custom-foreground);--ck-color-button-on-color: var(--sl-color-primary-500);--ck-color-button-on-background: var(--sl-color-neutral-100);--ck-focus-ring: 1px solid var(--sl-color-primary-500);--ck-focus-outer-shadow: none;--ck-powered-by-text-color: var(--ck-custom-foreground);--ck-powered-by-background: var(--ck-custom-background);--ck-color-button-action-background: var(--sl-color-primary-600);--ck-color-button-action-hover-background: var(--sl-color-primary-500);--ck-color-button-action-active-background: var(--sl-color-primary-500);--ck-color-button-action-active-shadow: var(--sl-color-primary-500);--ck-color-button-action-disabled-background: var(--sl-color-primary-600);--ck-color-button-action-text: var(--ck-custom-white);--ck-color-dropdown-panel-background: var(--ck-custom-background);--ck-color-dropdown-panel-border: var(--sl-color-neutral-400);--ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);--ck-color-split-button-hover-border: var(--ck-custom-foreground);--ck-color-labeled-field-label-background: var(--ck-custom-background);--ck-color-list-background: var(--ck-custom-background);--ck-color-list-button-hover-background: var(--sl-color-neutral-50);--ck-color-list-button-on-background: var(--sl-color-primary-500);--ck-color-list-button-on-background-focus: var(--sl-color-primary-500);--ck-color-list-button-on-text: var(--ck-color-base-background);--ck-color-panel-background: var(--ck-custom-background);--ck-color-panel-border: var(--ck-custom-border);--ck-color-toolbar-background: var(--ck-custom-background);--ck-color-toolbar-border: var(--ck-custom-border);--ck-color-tooltip-background: hsl(252, 7%, 14%);--ck-color-tooltip-text: hsl(0, 0%, 93%);--ck-color-image-caption-background: var(--ck-custom-background);--ck-color-image-caption-text: var(--ck-custom-foreground);--ck-color-link-default: var(--sl-color-primary-500);width:100%!important}.bone-inner-wrap .ck-editor .ck-content{background:transparent!important;border:1px solid var(--vi-border-color)!important;width:100%;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-editor .ck-content.ck-focused,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area textarea,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area td{border:1px solid var(--sl-color-neutral-600)!important}.bone-inner-wrap .ck-editor .ck-toolbar{height:var(--sl-input-height-medium);border-color:var(--vi-border-color);background-color:var(--vi-background-color)}.bone-inner-wrap .ck-editor .ck-button{border-color:none;background-color:var(--vi-background-color);cursor:pointer}.bone-inner-wrap .ck-editor .ck-button:hover{background-color:var(--sl-color-neutral-200)!important}.bone-inner-wrap .ck-editor .ck-button.ck-on{background-color:var(--vi-background-color)!important;border:1px solid var(--sl-color-primary-500)!important;color:var(--sl-color-primary-500)!important}.bone-inner-wrap .ck-editor .ck-source-editing-area{width:100%}.bone-inner-wrap .ck-editor .ck-source-editing-area textarea{background-color:transparent;color:var(--ck-custom-foreground);border:1px solid var(--vi-border-color)!important;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-content .table{margin:.9em 0}.ck-body-wrapper .ck-link-form{width:500px!important;max-width:37vw!important;min-width:180px!important}.ck-body-wrapper .ck-link-form .ck-labeled-field-view,.ck-body-wrapper .ck-link-form .ck-input{width:100%}sl-textarea::part(base){box-shadow:none!important;background-color:transparent}sl-textarea::part(textarea){background-color:transparent;border:1px solid var(--vi-border-color);border-radius:var(--sl-border-radius-medium);border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-7bc31020]{width:100%}sl-input[data-v-7bc31020][data-v-7bc31020]:first-child{margin-bottom:10px}sl-input[data-v-7bc31020][data-v-7bc31020]:first-child[data-v-7bc31020]::part(base){border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-right-radius:var(--sl-border-radius-medium)}@media (max-width: 900px){sl-input[data-v-7bc31020][data-v-7bc31020]:first-child[data-v-7bc31020]::part(base){border-top-right-radius:0}}sl-input[data-v-7bc31020][data-v-7bc31020]::part(base){border-top-left-radius:0;border-top-right-radius:0}.actionbar[data-v-63e75dee]{display:flex;flex-direction:row;flex-wrap:nowrap}.add-btn[data-v-63e75dee]{margin-left:auto}.actionbar[data-v-eeea51c6]{display:flex;flex-direction:row;flex-wrap:nowrap}sl-combobox[data-v-eeea51c6]{width:100%}.delete-btn[data-v-eeea51c6]{margin-right:var(--sl-spacing-x-small)}.add-btn[data-v-eeea51c6]{margin-left:var(--sl-spacing-x-small)}.actionbar[data-v-9bac9f8a]{display:flex;position:relative;flex-wrap:nowrap}sl-combobox[data-v-9bac9f8a]{width:100%}.droparea[data-v-9bac9f8a]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:flex;align-items:center;justify-content:center}.add-btn[data-v-9bac9f8a]{margin-left:var(--sl-spacing-x-small)}.upload-btn[data-v-9bac9f8a]{margin-left:auto}.viur-shop-form-adress-wrapper[data-v-00cf0e53]{display:flex;flex-direction:column;gap:1rem;width:100%;justify-content:space-around;align-items:flex-start}.viur-shop-form-adress-column[data-v-00cf0e53]{align-self:flex-start;flex-grow:1}.viur-shop-form-wrap[data-v-00cf0e53]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 var(--sl-spacing-medium);margin:var(--sl-spacing-large) 0}.viur-shop-form-grid-w-2[data-v-00cf0e53]{grid-column:span 2}.viur-shop-form-grid-w-3[data-v-00cf0e53]{grid-column:span 3}.viur-shop-form-grid-w-4[data-v-00cf0e53]{grid-column:span 4}.is-dragging[data-v-141aaf9b]{opacity:.4}.dragging-line-bottom[data-v-141aaf9b]{margin-bottom:calc(-1 * var(--sl-spacing-x-small));border-bottom:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.dragging-line-top[data-v-141aaf9b]{margin-top:calc(-1 * var(--sl-spacing-x-small));border-top:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.value-line[data-v-141aaf9b]{display:flex;gap:var(--sl-spacing-x-small)}.value[data-v-141aaf9b]{width:100%}.value[data-v-141aaf9b][data-v-141aaf9b] sl-input[data-v-141aaf9b]::part(base){border-bottom-left-radius:var(--sl-border-radius-medium);border-top-left-radius:var(--sl-border-radius-medium)}.value[data-v-141aaf9b][data-v-141aaf9b] .bone-wrapper sl-input[data-v-141aaf9b]::part(base){border-bottom-left-radius:0;border-top-left-radius:0}.delete-btn[data-v-141aaf9b][data-v-141aaf9b]::part(base){aspect-ratio:1}.drag-button[data-v-141aaf9b][data-v-141aaf9b]::part(base){aspect-ratio:1}.bone-name[data-v-b7149172]{display:flex;flex-direction:row;align-items:center;align-self:flex-start;font-size:var(--sl-input-font-size-medium);min-height:var(--sl-input-height-medium);padding:.4em .7em;color:var(--sl-color-neutral-900);background-color:var(--sl-color-neutral-200);border:none;border-top-left-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:var(--sl-input-border-radius-medium);word-break:break-word}@media (max-width: 900px){.bone-name[data-v-b7149172]{border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:0}}.debug[data-v-b7149172]{display:flex;align-items:center;justify-content:center;margin-left:auto;padding-left:.4em}.debug[data-v-b7149172] sl-icon[data-v-b7149172]{background-color:var(--sl-color-danger-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}.dragging-top[data-v-dee63f3c]{border-top:2px solid var(--sl-color-neutral-400)}.dragging-bottom[data-v-dee63f3c]{border-bottom:2px solid var(--sl-color-neutral-400)}.bone-wrapper[data-v-dee63f3c]{display:grid;grid-template-columns:235px 1fr;grid-gap:var(--sl-spacing-small);margin-bottom:20px}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c],.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c]{display:flex;flex-direction:column;grid-gap:0}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c][data-v-dee63f3c]>.bone-name,.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c][data-v-dee63f3c]>.bone-name{border-bottom-left-radius:0;border-top-right-radius:var(--sl-border-radius-medium);min-width:235px}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c]>.bone-inner-wrap[data-v-dee63f3c],.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c]>.bone-inner-wrap[data-v-dee63f3c]{padding-top:var(--sl-spacing-small);border-top:2px solid var(--sl-color-neutral-200);margin-bottom:5px}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c] .multiple-bone[data-v-dee63f3c],.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c] .multiple-bone[data-v-dee63f3c]{border-bottom:1px solid var(--sl-color-neutral-200);padding-bottom:var(--sl-spacing-2x-small);margin-bottom:var(--sl-spacing-small)}@media (max-width: 900px){.bone-wrapper[data-v-dee63f3c]{grid-template-columns:1fr}}sl-tab-panel[data-v-dee63f3c]::part(base){padding:0}.lang-tab[data-v-dee63f3c]{--track-width: 0;--indicator-color: var(--vi-background-color);--track-color: var(--vi-border-color)}.lang-tab[data-v-dee63f3c][data-v-dee63f3c]::part(body){padding-bottom:var(--sl-spacing-x-small);overflow-x:hidden}.lang-tab[data-v-dee63f3c][data-v-dee63f3c]::part(tabs){border-top:1px solid var(--vi-border-color)}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c]{margin-top:-1px}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][aria-selected=true][data-v-dee63f3c]{z-index:1}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][aria-selected=true][data-v-dee63f3c][data-v-dee63f3c]::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color);border-top:1px solid var(--vi-background-color)!important;border-bottom:2px solid var(--sl-color-primary-500)!important}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]::part(base){background-color:var(--sl-color-neutral-200);border:1px solid var(--sl-color-neutral-400);border-top:1px solid var(--vi-border-color);border-radius:0;padding:var(--sl-spacing-x-small);transition:all ease .3s}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:hover[data-v-dee63f3c]::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color)}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:first-child[data-v-dee63f3c]::part(base){border-bottom-left-radius:5px}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:nth-last-child(2)[data-v-dee63f3c]::part(base){border-bottom-right-radius:5px}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:not(:first-child)[data-v-dee63f3c]::part(base){margin-left:-1px}.multiple-placeholder[data-v-dee63f3c][data-v-dee63f3c]:not(.readonly){margin-bottom:var(--sl-spacing-x-small)}.multiple-placeholder[data-v-dee63f3c] sl-input[data-v-dee63f3c][data-v-dee63f3c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0;opacity:.7}@media (max-width: 900px){.multiple-placeholder[data-v-dee63f3c] sl-input[data-v-dee63f3c][data-v-dee63f3c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}.multiple-bone[data-v-dee63f3c],.multiple-bone[data-v-dee63f3c] .bone-wrapper[data-v-dee63f3c]{margin-bottom:var(--sl-spacing-x-small)}.multiple-bone[data-v-dee63f3c][data-v-dee63f3c]:first-child[data-v-dee63f3c] .value-line.dragging-line-top[data-v-dee63f3c]{margin-top:0}.bone-inner-wrap[data-v-dee63f3c]{min-width:1px}.bone-inner-wrap[data-v-dee63f3c] sl-alert[data-v-dee63f3c]{margin-top:var(--sl-spacing-x-small);background-color:transparent}.bone-inner-wrap[data-v-dee63f3c] sl-alert[data-v-dee63f3c][data-v-dee63f3c]::part(message){padding:var(--sl-spacing-x-small) var(--sl-spacing-small)}.bone-inner-wrap[data-v-dee63f3c] sl-alert[data-v-dee63f3c][data-v-dee63f3c]::part(icon){padding-left:var(--sl-spacing-small)}.label-info[data-v-dee63f3c][data-v-dee63f3c]::part(base){align-items:center;margin-left:.5em;background-color:var(--sl-color-info-50);border:none}.label-info[data-v-dee63f3c][data-v-dee63f3c]::part(message){padding:var(--sl-spacing-small)}.label-info[data-v-dee63f3c][data-v-dee63f3c]::part(icon){display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:var(--sl-color-neutral-0);width:1em;height:1em;margin-left:-.5em;padding-left:0}.tooltip[data-v-dee63f3c]{display:flex;align-items:center;justify-content:center;margin-left:auto;padding-left:.4em}.tooltip[data-v-dee63f3c] sl-icon[data-v-dee63f3c]{background-color:var(--sl-color-info-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}sl-tooltip[data-v-dee63f3c][data-v-dee63f3c]::part(body){background-color:var(--sl-color-info-500)}sl-tooltip[data-v-dee63f3c][data-v-dee63f3c]::part(base__arrow){background-color:var(--sl-color-info-500)}.required[data-v-dee63f3c]{color:var(--sl-color-primary-500);font-weight:700}[data-v-dee63f3c] sl-combobox[data-v-dee63f3c]::part(input__base){border:1px solid var(--vi-border-color);box-shadow:none!important}[data-v-dee63f3c] sl-combobox[data-v-dee63f3c]::part(input__prefix){display:none!important}[data-v-dee63f3c] sl-combobox[data-v-dee63f3c]::part(input__suffix){display:none!important}.viur-shop-form-footer[data-v-71a3c8c9]{display:flex;justify-content:space-between;margin-top:var(--sl-spacing-large)}.viur-shop-form-adress-wrapper[data-v-71a3c8c9]{display:flex;flex-direction:column;gap:1rem;width:100%;justify-content:space-around;align-items:flex-start}.viur-shop-form-adress-column[data-v-71a3c8c9]{align-self:flex-start;flex-grow:1}.viur-shop-form-wrap[data-v-71a3c8c9]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 var(--sl-spacing-medium);margin:var(--sl-spacing-large) 0}.viur-shop-form-grid-w-2[data-v-71a3c8c9]{grid-column:span 2}.viur-shop-form-grid-w-3[data-v-71a3c8c9]{grid-column:span 3}.viur-shop-form-grid-w-4[data-v-71a3c8c9]{grid-column:span 4}.viur-shop-form-btn-wrap[data-v-71a3c8c9]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-x-large)}
|
|
1
|
+
.logo[data-v-46c45785]{position:absolute;display:flex;align-items:center;justify-content:center;height:var(--93747d92);width:var(--93747d92);overflow:hidden;border-radius:50%;background-color:var(--sl-color-neutral-0);box-shadow:var(--284424e5)}.logo[data-v-46c45785] sl-icon[data-v-46c45785]{height:var(--6485ca5e);width:var(--6485ca5e);aspect-ratio:1;color:var(--vi-background-color);animation:zoom-46c45785 3.3s ease-in-out 0s infinite alternate}@keyframes zoom-46c45785{0%{scale:.75}to{scale:1}}.loader[data-v-46c45785]{font-size:var(--5d833915);--indicator-color: var(--d5b3feca);--track-color: var(--sl-color-neutral-0);--track-width: var(--2050b700);z-index:1}.loading[data-v-46c45785]{position:absolute;width:100%;height:100%;display:inline-grid;justify-items:center;align-items:center}.v-enter-active[data-v-46c45785],.v-leave-active[data-v-46c45785]{transition:opacity .5s ease}.v-enter-from[data-v-46c45785],.v-leave-to[data-v-46c45785]{opacity:0}.viur-shop-cart-card-img[data-v-0e24135f]{aspect-ratio:1}.viur-shop-cart-card[data-v-0e24135f]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(image){flex-basis:25%;max-width:250px}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(body){display:flex;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-card[data-v-0e24135f][data-v-0e24135f]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-card-body-row[data-v-0e24135f]{display:grid;grid-template-columns:1fr auto auto;gap:var(--sl-spacing-large);flex:1}.viur-shop-cart-card-body-info[data-v-0e24135f]{display:flex;flex-direction:column;height:100%}.viur-shop-cart-card-descr[data-v-0e24135f]{margin-bottom:auto}.viur-shop-cart-card-body-footer[data-v-0e24135f]{display:flex;flex-direction:row;gap:var(--sl-spacing-2x-small);margin-top:var(--sl-spacing-large)}.amount-input[data-v-0e24135f]{width:5em}.viur-shop-cart-card-price-wrap[data-v-0e24135f]{display:flex;flex-direction:column}.viur-shop-cart-card-price-wrap[data-v-0e24135f] .viur-shop-cart-card-small-print[data-v-0e24135f]{font-size:.75em;margin-left:auto}.viur-shop-cart-card-price[data-v-0e24135f]{font-size:1.3em}.viur-shop-cart-card-price-label[data-v-0e24135f]{color:var(--ignt-color-primary);font-weight:600;margin-bottom:10px;font-size:1em;margin-left:auto}.viur-shop-cart-wrap[data-v-39d35665]{flex-direction:row;gap:var(--sl-spacing-x-large);align-items:flex-start}.viur-shop-cart-sidebar-btn-wrap[data-v-39d35665]{display:flex;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap[data-v-39d35665] sl-button[data-v-39d35665]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-39d35665]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}.viur-shop-cart-controlbar[data-v-39d35665]{width:100%;display:flex;justify-content:space-between;align-items:center}.viur-shop-cart-controlbar[data-v-39d35665] sl-input[data-v-39d35665]{flex:1}.viur-shop-cart-controlbar[data-v-39d35665] sl-input[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0}.viur-shop-cart-button-list[data-v-39d35665]{display:flex;flex-direction:row;gap:10px}.viur-shop-cart-button-list[data-v-39d35665].left[data-v-39d35665]{flex:1;margin-right:10px}.search[data-v-39d35665]{flex:1 1 100%;margin-left:10px}.article-combobox[data-v-39d35665]{float:left;width:75ch}.viur-shop-cart-card-img[data-v-39d35665]{aspect-ratio:1}.viur-shop-cart-selection[data-v-39d35665]{flex:1}.cart-wrap[data-v-39d35665]{display:flex;flex-direction:column;width:100%}.soma-input[data-v-39d35665]{display:grid;grid-template-columns:120px 1fr;align-items:center}.soma-label[data-v-39d35665]{display:flex;flex-direction:row;align-items:center}.soma-label[data-v-39d35665] sl-icon[data-v-39d35665]{margin-left:5px;background-color:@highlightColor;color:#fff;aspect-ratio:1;border-radius:50%;padding:.3em;font-size:.6em;cursor:pointer}sl-tooltip[data-v-39d35665][data-v-39d35665]::part(body){line-height:1.2;font-weight:400;padding:10px}.cart-tab[data-v-39d35665] sl-tab[data-v-39d35665]{width:25%}.cart-tab[data-v-39d35665] sl-tab[data-v-39d35665][data-v-39d35665]::part(base){width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;color:var(--sl-color-neutral-400)}.cart-tab[data-v-39d35665] sl-tab[data-v-39d35665][aria-selected=true][data-v-39d35665]::part(base){color:var(--ignt-color-primary)!important}.cart-status-text[data-v-39d35665]{font-size:.8em;color:inherit;text-align:center;margin-top:.6em;white-space:initial}.search-box[data-v-39d35665]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch;margin-bottom:30px}.search-box[data-v-39d35665] sl-button[data-v-39d35665][data-v-39d35665]::part(base){height:100%}@media (--ignt-mq-max-break-medium){.search-box[data-v-39d35665]{flex-wrap:wrap}}.article-combobox[data-v-39d35665]{flex:1 1 100%;margin-bottom:10px}.article-combobox[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0}@media (--ignt-mq-max-break-medium){.article-combobox[data-v-39d35665]{margin-bottom:0}}.comission-box[data-v-39d35665]{margin-right:10px}.comission-box[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0}@media (--ignt-mq-max-break-medium){.comission-box[data-v-39d35665]{flex:1}}.search-amt[data-v-39d35665]{margin-right:10px}.search-amt[data-v-39d35665][data-v-39d35665]::part(base){margin-bottom:0;width:80px}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]::part(base){background-color:transparent;transition:all ease .3s;border-bottom:1px solid transparent;height:auto}.viur-shop-cart-headline[data-v-39d35665] [data-v-39d35665] .input--focused{border-bottom:1px solid var(--sl-color-primary-500)!important}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]::part(input){color:var(--sl-color-primary-500);font-weight:300;text-transform:uppercase;font-size:1.85em;padding:.1em 0;height:auto}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-headline[data-v-39d35665][data-v-39d35665]:hover[data-v-39d35665]::part(base){border-bottom:1px solid var(--sl-color-primary-500)}.viur-shop-cart-descr[data-v-39d35665]{margin-top:10px}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]::part(base){background-color:transparent;transition:all ease .3s;border-bottom:1px solid transparent;margin-bottom:0}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]::part(input){padding:.1em 0;height:auto;color:var(--ignt-color-text)}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]::part(suffix){pointer-events:none;width:1.5em;margin-left:-1em;font-size:1.5em}.viur-shop-cart-descr[data-v-39d35665][data-v-39d35665]:hover[data-v-39d35665]::part(base){border-bottom:1px solid var(--ignt-color-text)}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(checked-icon){display:none}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(prefix){margin-right:10px}sl-menu-item[data-v-39d35665][data-v-39d35665]::part(suffix){margin-right:-1.5em}.primary-icon[data-v-39d35665]{color:var(--ignt-color-primary)}.delete-icon[data-v-39d35665]{color:@warnColor}.dots[data-v-39d35665]{color:var(--ignt-color-primary);width:1.5em;height:100%;font-size:1em;padding:.4em}.viur-shop-cart-sidebar-info-line[data-v-39d35665]{display:flex;flex-direction:row;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line[data-v-39d35665].total[data-v-39d35665]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-sidebar-info-line[data-v-39d35665] span[data-v-39d35665]{margin-right:auto}.viur-shop-cart-card[data-v-39d35665]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(image){flex-basis:25%;max-width:250px}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(body){display:flex;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-card[data-v-39d35665][data-v-39d35665]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-card-body-row[data-v-39d35665]{display:grid;grid-template-columns:1fr auto auto;gap:var(--sl-spacing-large);flex:1}.viur-shop-cart-card-body-info[data-v-39d35665]{display:flex;flex-direction:column;height:100%}.viur-shop-cart-card-descr[data-v-39d35665]{margin-bottom:auto}.viur-shop-cart-card-body-footer[data-v-39d35665]{display:flex;flex-direction:row;gap:var(--sl-spacing-2x-small);margin-top:var(--sl-spacing-large)}.amount-input[data-v-39d35665]{width:5em}.viur-shop-cart-card-price-wrap[data-v-39d35665]{display:flex;flex-direction:column}.viur-shop-cart-card-price-wrap[data-v-39d35665] .viur-shop-cart-card-small-print[data-v-39d35665]{font-size:.75em;margin-left:auto}.viur-shop-cart-card-price[data-v-39d35665]{font-size:1.3em}.viur-shop-cart-card-price-label[data-v-39d35665]{color:var(--ignt-color-primary);font-weight:600;margin-bottom:10px;font-size:1em;margin-left:auto}.viur-shop-cart-sidebar-btn-wrap[data-v-b7b745be]{display:flex;flex-direction:column;margin-top:var(--sl-spacing-large)}.viur-shop-cart-sidebar-btn-wrap[data-v-b7b745be] sl-button[data-v-b7b745be]{margin-bottom:var(--sl-spacing-x-small)}sl-alert[data-v-b7b745be]{margin-top:var(--sl-spacing-medium);margin-bottom:var(--sl-spacing-medium)}sl-tooltip[data-v-b7b745be][data-v-b7b745be]::part(body){line-height:1.2;font-weight:400;padding:10px}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(base){padding:.2em .9em .2em .8em}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(checked-icon){display:none}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(prefix){margin-right:10px}sl-menu-item[data-v-b7b745be][data-v-b7b745be]::part(suffix){margin-right:-1.5em}.viur-shop-cart-sidebar-info-line[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap;margin:var(--sl-spacing-2x-small) 0}.viur-shop-cart-sidebar-info-line[data-v-b7b745be] span[data-v-b7b745be]{margin-right:auto}.viur-shop-cart-sidebar-info-line[data-v-b7b745be].total[data-v-b7b745be]{font-weight:600;border-top:1px solid var(--sl-color-neutral-300);border-bottom:1px solid var(--sl-color-neutral-300);padding:var(--sl-spacing-x-small) 0;margin:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card[data-v-b7b745be]{margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(header){border-bottom:none;padding-top:0;padding-right:0}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(image){flex-basis:25%;max-width:90px}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(body){display:flex;flex:1;padding-top:0;padding-bottom:0;padding-right:0}.viur-shop-cart-mini-card[data-v-b7b745be][data-v-b7b745be]::part(group){padding:var(--sl-spacing-small) 0}.viur-shop-cart-mini-card-body-row[data-v-b7b745be]{display:grid;grid-template-columns:1fr auto auto;gap:var(--sl-spacing-large);flex:1}.viur-shop-cart-mini-card-body-info[data-v-b7b745be]{display:flex;flex-direction:column;height:100%}.viur-shop-cart-mini-card-info-wrap[data-v-b7b745be]{display:flex;flex-wrap:nowrap;gap:var(--sl-spacing-medium)}.viur-shop-cart-mini-card-info[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap}.viur-shop-cart-mini-card-info[data-v-b7b745be] span[data-v-b7b745be]{margin-right:var(--sl-spacing-x-small);font-weight:600}.viur-shop-cart-address-wrap[data-v-b7b745be]{display:grid;grid-template-columns:1fr 1fr;gap:var(--sl-spacing-x-large);margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-address-headline[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;font-weight:600}.viur-shop-cart-payment[data-v-b7b745be]{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;margin-bottom:var(--sl-spacing-x-large)}.viur-shop-cart-payment[data-v-b7b745be] span[data-v-b7b745be]{font-weight:600}.viur-shop-wrap[data-v-61488015]{flex-direction:row;gap:var(--sl-spacing-x-large);align-items:flex-start}.viur-shop-sidebar[data-v-61488015]{display:flex;flex-direction:column;background-color:var(--sl-color-neutral-100);min-width:300px;padding:var(--sl-spacing-medium);position:sticky;top:0}.viur-shop-order-tab[data-v-61488015] sl-tab[data-v-61488015]{width:25%}.viur-shop-order-tab[data-v-61488015] sl-tab[data-v-61488015][data-v-61488015]::part(base){width:100%;height:100%;display:flex;justify-content:center;align-items:center;position:relative;color:var(--sl-color-neutral-400)}.viur-shop-order-tab[data-v-61488015] sl-tab[data-v-61488015][aria-selected=true][data-v-61488015]::part(base){color:var(--ignt-color-primary)!important}.viur-shop-order-step[data-v-61488015]{width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}@media (--ignt-mq-max-break-small){.viur-shop-order-step[data-v-61488015]{justify-content:center}}.viur-shop-order-step[data-v-61488015] sl-icon[data-v-61488015]{font-size:2.5em;margin-bottom:10px}@media (--ignt-mq-max-break-small){.viur-shop-order-step[data-v-61488015] sl-icon[data-v-61488015]{display:none}}.viur-shop-order-tab-check[data-v-61488015]{position:absolute;right:-.5em}@media (--ignt-mq-max-break-small){.viur-shop-order-tab-check[data-v-61488015]{font-size:.7em;right:-.35em;top:calc(50% - .35em)}}.viur-shop-order-status-text[data-v-61488015]{font-size:.8em;color:inherit;text-align:center;margin-top:.6em;white-space:initial}.viur-shop-form-footer[data-v-61488015]{display:flex;justify-content:space-between;margin-top:var(--sl-spacing-large)}.flex-end[data-v-61488015]{justify-content:flex-end}.viur-shop-item-card-card[data-v-dc32dd0b]{width:100%}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]::part(header){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]::part(body){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]::part(footer){padding:var(--sl-spacing-medium) 0}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]:hover .viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{opacity:1}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]:hover .viur-shop-item-card-headline[data-v-dc32dd0b]{color:var(--sl-color-primary-500)}.viur-shop-item-card-card[data-v-dc32dd0b][data-v-dc32dd0b]:hover .viur-shop-item-card-image[data-v-dc32dd0b]{transform:scale(1.02)}.viur-shop-item-card-footer[data-v-dc32dd0b]{display:flex;flex-direction:row;align-items:center;width:100%}.viur-shop-item-card-add-to-cart-btn[data-v-dc32dd0b]{transition:all ease .3s;margin-right:var(--sl-spacing-medium);opacity:0}.viur-shop-item-card-add-to-favourites-btn[data-v-dc32dd0b]{margin-left:auto}.viur-shop-item-card-image[data-v-dc32dd0b]{aspect-ratio:1;object-fit:cover;transition:all ease .3s}.viur-shop-item-card-headline[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small);transition:all ease .3s}.viur-shop-item-card-subline[data-v-dc32dd0b]{color:var(--ignt-basic-color-text);margin-bottom:var(--sl-spacing-2x-small)}.viur-shop-item-card-price[data-v-dc32dd0b]{font-size:1.1em;font-weight:700;color:var(--ignt-basic-color-text);margin-left:auto}.viur-shop-category-view-list[data-v-532e5cf3]{display:grid;width:100%;grid-gap:var(--sl-spacing-medium);grid-template-columns:repeat(4,1fr)}.viur-shop-loading-wrap[data-v-532e5cf3]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center}.viur-shop-loading-wrap[data-v-532e5cf3] sl-spinner[data-v-532e5cf3]{font-size:3.5em;--track-width: 4px}.btn-wrap[data-v-36ccc280]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-x-large)}sl-input[data-v-0ebe5f0b]{width:100%}sl-input[data-v-0ebe5f0b][data-v-0ebe5f0b]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-0ebe5f0b][data-v-0ebe5f0b]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-b45a1311]{width:100%}sl-input[data-v-1ccbacc0]{width:100%}sl-input[data-v-1ccbacc0][data-v-1ccbacc0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-1ccbacc0][data-v-1ccbacc0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-4328e024]{width:100%}sl-input[data-v-4328e024][data-v-4328e024]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-4328e024][data-v-4328e024]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-f1b8af8c]{width:100%}sl-input[data-v-f1b8af8c][data-v-f1b8af8c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-f1b8af8c][data-v-f1b8af8c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-select[data-v-5a38b97f]{width:100%}sl-select[data-v-5a38b97f][data-v-5a38b97f]::part(combobox){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-select[data-v-5a38b97f][data-v-5a38b97f]::part(combobox){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-option[data-v-5a38b97f][data-v-5a38b97f]::part(base){transition:background-color ease .3s}sl-option[data-v-5a38b97f][data-v-5a38b97f]:hover[data-v-5a38b97f]::part(base){background-color:var(--sl-color-gray-200)}sl-switch[data-v-363598c8]{border:1px solid var(--sl-color-neutral-300);padding:.4em .1em .4em .4em;border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-right-radius:var(--sl-input-border-radius-medium);--height: calc(var(--sl-input-height-medium) - 1em);--width: calc(1.7 * (var(--sl-input-height-medium) - .8em));--thumb-size: calc(var(--sl-input-height-medium) - 1em)}@media (max-width: 900px){sl-switch[data-v-363598c8]{border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}sl-input[data-v-0ccf18c0]{width:100%}sl-input[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-top-right-radius:0}}.has-check[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-bottom-right-radius:0}.password-check[data-v-0ccf18c0]{margin-top:var(--sl-spacing-x-small)}.password-check[data-v-0ccf18c0][data-v-0ccf18c0]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}.pw-legend[data-v-0ccf18c0]{display:flex;justify-content:space-between;align-content:flex-start;align-items:flex-start;gap:0rem;font-size:.75rem;padding:.25em}span[data-v-0ccf18c0]{margin:0;padding:0;font-style:italic}.errors[data-v-0ccf18c0]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}.requiredInfo[data-v-0ccf18c0]{color:var(--sl-color-danger-500)}.form[data-v-e6fcfbca]{width:100%}sl-input[data-v-84a761ce]{width:100%}sl-color-picker[data-v-534b9149][data-v-534b9149]::part(trigger){border-radius:0}sl-input[data-v-03d5b399]{width:100%}sl-input[data-v-03d5b399][data-v-03d5b399]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}@media (max-width: 900px){sl-input[data-v-03d5b399][data-v-03d5b399]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}.info[data-v-03d5b399]{display:flex;gap:2px 7px;margin-top:var(--sl-spacing-x-small);font-size:.7em;font-weight:700}.single-entry[data-v-61dd72e0]{display:flex;gap:var(--sl-spacing-x-small)}.single-entry[data-v-61dd72e0] [data-v-61dd72e0] sl-combobox[data-v-61dd72e0]::part(input__base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0]{width:100%}sl-input[data-v-61dd72e0][data-v-61dd72e0]::part(base){border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-61dd72e0][data-v-61dd72e0]::part(base){background-color:var(--sl-color-neutral-0)}sl-combobox[data-v-61dd72e0]{width:100%}sl-combobox[data-v-61dd72e0][data-v-61dd72e0]::part(input){border-top-left-radius:0;border-bottom-left-radius:0}:is()[data-v-61dd72e0] :is()::part(base){border:1px solid red}.box[data-v-343aca69]{width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;min-height:40px}.box[data-v-91086308]{display:flex;align-items:center;padding:0 var(--sl-spacing-small) 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;border:1px solid var(--sl-color-gray-500);border-radius:5px;height:var(--sl-input-height-medium);background-color:transparent}.preview[data-v-91086308]{display:flex;justify-content:center;align-items:center;height:var(--sl-input-height-medium);width:var(--sl-input-height-medium);aspect-ratio:1;border-right:1px solid var(--sl-color-gray-500);margin-right:var(--sl-spacing-small);background-image:linear-gradient(to right,#ffffffde,#ffffffde),linear-gradient(to right,#000 50%,#fff 50%),linear-gradient(to bottom,#000 50%,#fff 50%);background-blend-mode:normal,difference,normal;background-size:.65em .65em}.preview[data-v-91086308].has-preview[data-v-91086308]{cursor:pointer}.preview[data-v-91086308] sl-icon[data-v-91086308]{font-size:1.1em;color:var(--sl-color-gray-400)}.preview[data-v-91086308] .preview-img[data-v-91086308]{width:100%;height:100%;object-fit:contain}.file-wrapper[data-v-91086308]{width:100%;display:flex;gap:var(--sl-spacing-x-small);position:relative}.droparea[data-v-91086308]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:flex;align-items:center;justify-content:center}.delete-btn[data-v-91086308][data-v-91086308]::part(base){aspect-ratio:1}.upload-btn[data-v-91086308][data-v-91086308]::part(base){aspect-ratio:1}.loader[data-v-91086308]{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#ffffffb3}.preview-overlay[data-v-91086308][data-v-91086308]::part(panel){width:auto;max-width:1200px}.preview-overlay[data-v-91086308][data-v-91086308]::part(body){display:flex;justify-content:center;align-items:center;background-image:linear-gradient(to right,#ffffffde,#ffffffde),linear-gradient(to right,#000 50%,#fff 50%),linear-gradient(to bottom,#000 50%,#fff 50%);background-blend-mode:normal,difference,normal;background-size:1.2em 1.2em;padding:0}.preview-overlay[data-v-91086308] img[data-v-91086308]{width:auto;height:auto}.bone-inner-wrap .ck-editor{--ck-border-radius: 0px;--ck-font-size-base: 14px;--ck-custom-background: var(--sl-color-neutral-200);--ck-custom-foreground: var(--sl-color-neutral-900);--ck-custom-border: var(--sl-color-neutral-100);--ck-custom-white: var(--sl-color-neutral-50);--ck-color-base-foreground: var(--ck-custom-background);--ck-color-base-background: var(--ck-custom-background);--ck-color-base-border: var(--sl-color-neutral-300);--ck-color-focus-border: var(--sl-color-neutral-700);--ck-color-text: var(--sl-color-neutral-900);--ck-color-shadow-drop: hsla(0, 0%, 0%, .2);--ck-color-shadow-inner: hsla(0, 0%, 0%, .1);--ck-color-button-default-background: var(--ck-custom-background);--ck-color-button-default-hover-background: var(--sl-color-neutral-50);--ck-color-button-default-active-background: var(--sl-color-neutral-50);--ck-color-button-default-active-shadow: hsl(270, 2%, 23%);--ck-color-button-default-disabled-background: var(--ck-custom-background);--ck-color-button-on-hover-background: var(--sl-color-neutral-50);--ck-color-button-on-active-background: hsl(255, 4%, 14%);--ck-color-button-on-active-shadow: hsl(240, 3%, 19%);--ck-color-button-on-disabled-background: var(--ck-custom-foreground);--ck-color-button-on-color: var(--sl-color-primary-500);--ck-color-button-on-background: var(--sl-color-neutral-100);--ck-focus-ring: 1px solid var(--sl-color-primary-500);--ck-focus-outer-shadow: none;--ck-powered-by-text-color: var(--ck-custom-foreground);--ck-powered-by-background: var(--ck-custom-background);--ck-color-button-action-background: var(--sl-color-primary-600);--ck-color-button-action-hover-background: var(--sl-color-primary-500);--ck-color-button-action-active-background: var(--sl-color-primary-500);--ck-color-button-action-active-shadow: var(--sl-color-primary-500);--ck-color-button-action-disabled-background: var(--sl-color-primary-600);--ck-color-button-action-text: var(--ck-custom-white);--ck-color-dropdown-panel-background: var(--ck-custom-background);--ck-color-dropdown-panel-border: var(--sl-color-neutral-400);--ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);--ck-color-split-button-hover-border: var(--ck-custom-foreground);--ck-color-labeled-field-label-background: var(--ck-custom-background);--ck-color-list-background: var(--ck-custom-background);--ck-color-list-button-hover-background: var(--sl-color-neutral-50);--ck-color-list-button-on-background: var(--sl-color-primary-500);--ck-color-list-button-on-background-focus: var(--sl-color-primary-500);--ck-color-list-button-on-text: var(--ck-color-base-background);--ck-color-panel-background: var(--ck-custom-background);--ck-color-panel-border: var(--ck-custom-border);--ck-color-toolbar-background: var(--ck-custom-background);--ck-color-toolbar-border: var(--ck-custom-border);--ck-color-tooltip-background: hsl(252, 7%, 14%);--ck-color-tooltip-text: hsl(0, 0%, 93%);--ck-color-image-caption-background: var(--ck-custom-background);--ck-color-image-caption-text: var(--ck-custom-foreground);--ck-color-link-default: var(--sl-color-primary-500);width:100%!important}.bone-inner-wrap .ck-editor .ck-content{background:transparent!important;border:1px solid var(--vi-border-color)!important;width:100%;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-editor .ck-content.ck-focused,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area textarea,.bone-inner-wrap .ck-editor .ck-content.ck-focused .ck-source-editing-area td{border:1px solid var(--sl-color-neutral-600)!important}.bone-inner-wrap .ck-editor .ck-toolbar{height:var(--sl-input-height-medium);border-color:var(--vi-border-color);background-color:var(--vi-background-color)}.bone-inner-wrap .ck-editor .ck-button{border-color:none;background-color:var(--vi-background-color);cursor:pointer}.bone-inner-wrap .ck-editor .ck-button:hover{background-color:var(--sl-color-neutral-200)!important}.bone-inner-wrap .ck-editor .ck-button.ck-on{background-color:var(--vi-background-color)!important;border:1px solid var(--sl-color-primary-500)!important;color:var(--sl-color-primary-500)!important}.bone-inner-wrap .ck-editor .ck-source-editing-area{width:100%}.bone-inner-wrap .ck-editor .ck-source-editing-area textarea{background-color:transparent;color:var(--ck-custom-foreground);border:1px solid var(--vi-border-color)!important;border-bottom-left-radius:var(--sl-border-radius-medium)!important;border-bottom-right-radius:var(--sl-border-radius-medium)!important}.bone-inner-wrap .ck-content .table{margin:.9em 0}.ck-body-wrapper .ck-link-form{width:500px!important;max-width:37vw!important;min-width:180px!important}.ck-body-wrapper .ck-link-form .ck-labeled-field-view,.ck-body-wrapper .ck-link-form .ck-input{width:100%}sl-textarea::part(base){box-shadow:none!important;background-color:transparent}sl-textarea::part(textarea){background-color:transparent;border:1px solid var(--vi-border-color);border-radius:var(--sl-border-radius-medium);border-top-left-radius:0;border-bottom-left-radius:0}sl-input[data-v-7bc31020]{width:100%}sl-input[data-v-7bc31020][data-v-7bc31020]:first-child{margin-bottom:10px}sl-input[data-v-7bc31020][data-v-7bc31020]:first-child[data-v-7bc31020]::part(base){border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-right-radius:var(--sl-border-radius-medium)}@media (max-width: 900px){sl-input[data-v-7bc31020][data-v-7bc31020]:first-child[data-v-7bc31020]::part(base){border-top-right-radius:0}}sl-input[data-v-7bc31020][data-v-7bc31020]::part(base){border-top-left-radius:0;border-top-right-radius:0}.actionbar[data-v-63e75dee]{display:flex;flex-direction:row;flex-wrap:nowrap}.add-btn[data-v-63e75dee]{margin-left:auto}.actionbar[data-v-eeea51c6]{display:flex;flex-direction:row;flex-wrap:nowrap}sl-combobox[data-v-eeea51c6]{width:100%}.delete-btn[data-v-eeea51c6]{margin-right:var(--sl-spacing-x-small)}.add-btn[data-v-eeea51c6]{margin-left:var(--sl-spacing-x-small)}.actionbar[data-v-9bac9f8a]{display:flex;position:relative;flex-wrap:nowrap}sl-combobox[data-v-9bac9f8a]{width:100%}.droparea[data-v-9bac9f8a]{width:100%;height:100%;position:absolute;z-index:10;pointer-events:none;opacity:.9;border:1px solid var(--sl-color-info-500);background-color:var(--sl-color-info-300);color:var(--sl-color-info-900);display:flex;align-items:center;justify-content:center}.add-btn[data-v-9bac9f8a]{margin-left:var(--sl-spacing-x-small)}.upload-btn[data-v-9bac9f8a]{margin-left:auto}.viur-shop-form-adress-wrapper[data-v-82f9bd25]{display:flex;flex-direction:column;gap:1rem;width:100%;justify-content:space-around;align-items:flex-start}.viur-shop-form-adress-column[data-v-82f9bd25]{align-self:flex-start;flex-grow:1}.viur-shop-form-wrap[data-v-82f9bd25]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 var(--sl-spacing-medium);margin:var(--sl-spacing-large) 0}.viur-shop-form-grid-w-2[data-v-82f9bd25]{grid-column:span 2}.viur-shop-form-grid-w-3[data-v-82f9bd25]{grid-column:span 3}.viur-shop-form-grid-w-4[data-v-82f9bd25]{grid-column:span 4}.is-dragging[data-v-141aaf9b]{opacity:.4}.dragging-line-bottom[data-v-141aaf9b]{margin-bottom:calc(-1 * var(--sl-spacing-x-small));border-bottom:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.dragging-line-top[data-v-141aaf9b]{margin-top:calc(-1 * var(--sl-spacing-x-small));border-top:var(--sl-spacing-x-small) solid var(--sl-color-neutral-300)}.value-line[data-v-141aaf9b]{display:flex;gap:var(--sl-spacing-x-small)}.value[data-v-141aaf9b]{width:100%}.value[data-v-141aaf9b][data-v-141aaf9b] sl-input[data-v-141aaf9b]::part(base){border-bottom-left-radius:var(--sl-border-radius-medium);border-top-left-radius:var(--sl-border-radius-medium)}.value[data-v-141aaf9b][data-v-141aaf9b] .bone-wrapper sl-input[data-v-141aaf9b]::part(base){border-bottom-left-radius:0;border-top-left-radius:0}.delete-btn[data-v-141aaf9b][data-v-141aaf9b]::part(base){aspect-ratio:1}.drag-button[data-v-141aaf9b][data-v-141aaf9b]::part(base){aspect-ratio:1}.bone-name[data-v-b7149172]{display:flex;flex-direction:row;align-items:center;align-self:flex-start;font-size:var(--sl-input-font-size-medium);min-height:var(--sl-input-height-medium);padding:.4em .7em;color:var(--sl-color-neutral-900);background-color:var(--sl-color-neutral-200);border:none;border-top-left-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:var(--sl-input-border-radius-medium);word-break:break-word}@media (max-width: 900px){.bone-name[data-v-b7149172]{border-top-right-radius:var(--sl-input-border-radius-medium);border-bottom-left-radius:0}}.debug[data-v-b7149172]{display:flex;align-items:center;justify-content:center;margin-left:auto;padding-left:.4em}.debug[data-v-b7149172] sl-icon[data-v-b7149172]{background-color:var(--sl-color-danger-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}.dragging-top[data-v-dee63f3c]{border-top:2px solid var(--sl-color-neutral-400)}.dragging-bottom[data-v-dee63f3c]{border-bottom:2px solid var(--sl-color-neutral-400)}.bone-wrapper[data-v-dee63f3c]{display:grid;grid-template-columns:235px 1fr;grid-gap:var(--sl-spacing-small);margin-bottom:20px}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c],.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c]{display:flex;flex-direction:column;grid-gap:0}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c][data-v-dee63f3c]>.bone-name,.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c][data-v-dee63f3c]>.bone-name{border-bottom-left-radius:0;border-top-right-radius:var(--sl-border-radius-medium);min-width:235px}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c]>.bone-inner-wrap[data-v-dee63f3c],.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c]>.bone-inner-wrap[data-v-dee63f3c]{padding-top:var(--sl-spacing-small);border-top:2px solid var(--sl-color-neutral-200);margin-bottom:5px}.bone-wrapper[data-v-dee63f3c].bone-wrapper-record[data-v-dee63f3c] .multiple-bone[data-v-dee63f3c],.bone-wrapper[data-v-dee63f3c].has-subbones[data-v-dee63f3c] .multiple-bone[data-v-dee63f3c]{border-bottom:1px solid var(--sl-color-neutral-200);padding-bottom:var(--sl-spacing-2x-small);margin-bottom:var(--sl-spacing-small)}@media (max-width: 900px){.bone-wrapper[data-v-dee63f3c]{grid-template-columns:1fr}}sl-tab-panel[data-v-dee63f3c]::part(base){padding:0}.lang-tab[data-v-dee63f3c]{--track-width: 0;--indicator-color: var(--vi-background-color);--track-color: var(--vi-border-color)}.lang-tab[data-v-dee63f3c][data-v-dee63f3c]::part(body){padding-bottom:var(--sl-spacing-x-small);overflow-x:hidden}.lang-tab[data-v-dee63f3c][data-v-dee63f3c]::part(tabs){border-top:1px solid var(--vi-border-color)}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c]{margin-top:-1px}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][aria-selected=true][data-v-dee63f3c]{z-index:1}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][aria-selected=true][data-v-dee63f3c][data-v-dee63f3c]::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color);border-top:1px solid var(--vi-background-color)!important;border-bottom:2px solid var(--sl-color-primary-500)!important}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]::part(base){background-color:var(--sl-color-neutral-200);border:1px solid var(--sl-color-neutral-400);border-top:1px solid var(--vi-border-color);border-radius:0;padding:var(--sl-spacing-x-small);transition:all ease .3s}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:hover[data-v-dee63f3c]::part(base){background-color:var(--vi-background-color);border:1px solid var(--vi-border-color)}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:first-child[data-v-dee63f3c]::part(base){border-bottom-left-radius:5px}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:nth-last-child(2)[data-v-dee63f3c]::part(base){border-bottom-right-radius:5px}.lang-tab[data-v-dee63f3c] sl-tab[data-v-dee63f3c][data-v-dee63f3c]:not(:first-child)[data-v-dee63f3c]::part(base){margin-left:-1px}.multiple-placeholder[data-v-dee63f3c][data-v-dee63f3c]:not(.readonly){margin-bottom:var(--sl-spacing-x-small)}.multiple-placeholder[data-v-dee63f3c] sl-input[data-v-dee63f3c][data-v-dee63f3c]::part(base){border-top-left-radius:0;border-bottom-left-radius:0;opacity:.7}@media (max-width: 900px){.multiple-placeholder[data-v-dee63f3c] sl-input[data-v-dee63f3c][data-v-dee63f3c]::part(base){border-top-right-radius:0;border-bottom-left-radius:var(--sl-border-radius-medium)}}.multiple-bone[data-v-dee63f3c],.multiple-bone[data-v-dee63f3c] .bone-wrapper[data-v-dee63f3c]{margin-bottom:var(--sl-spacing-x-small)}.multiple-bone[data-v-dee63f3c][data-v-dee63f3c]:first-child[data-v-dee63f3c] .value-line.dragging-line-top[data-v-dee63f3c]{margin-top:0}.bone-inner-wrap[data-v-dee63f3c]{min-width:1px}.bone-inner-wrap[data-v-dee63f3c] sl-alert[data-v-dee63f3c]{margin-top:var(--sl-spacing-x-small);background-color:transparent}.bone-inner-wrap[data-v-dee63f3c] sl-alert[data-v-dee63f3c][data-v-dee63f3c]::part(message){padding:var(--sl-spacing-x-small) var(--sl-spacing-small)}.bone-inner-wrap[data-v-dee63f3c] sl-alert[data-v-dee63f3c][data-v-dee63f3c]::part(icon){padding-left:var(--sl-spacing-small)}.label-info[data-v-dee63f3c][data-v-dee63f3c]::part(base){align-items:center;margin-left:.5em;background-color:var(--sl-color-info-50);border:none}.label-info[data-v-dee63f3c][data-v-dee63f3c]::part(message){padding:var(--sl-spacing-small)}.label-info[data-v-dee63f3c][data-v-dee63f3c]::part(icon){display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:var(--sl-color-neutral-0);width:1em;height:1em;margin-left:-.5em;padding-left:0}.tooltip[data-v-dee63f3c]{display:flex;align-items:center;justify-content:center;margin-left:auto;padding-left:.4em}.tooltip[data-v-dee63f3c] sl-icon[data-v-dee63f3c]{background-color:var(--sl-color-info-500);color:#fff;padding:.4em;border-radius:50%;font-size:.55em}sl-tooltip[data-v-dee63f3c][data-v-dee63f3c]::part(body){background-color:var(--sl-color-info-500)}sl-tooltip[data-v-dee63f3c][data-v-dee63f3c]::part(base__arrow){background-color:var(--sl-color-info-500)}.required[data-v-dee63f3c]{color:var(--sl-color-primary-500);font-weight:700}[data-v-dee63f3c] sl-combobox[data-v-dee63f3c]::part(input__base){border:1px solid var(--vi-border-color);box-shadow:none!important}[data-v-dee63f3c] sl-combobox[data-v-dee63f3c]::part(input__prefix){display:none!important}[data-v-dee63f3c] sl-combobox[data-v-dee63f3c]::part(input__suffix){display:none!important}.viur-shop-form-footer[data-v-71a3c8c9]{display:flex;justify-content:space-between;margin-top:var(--sl-spacing-large)}.viur-shop-form-adress-wrapper[data-v-71a3c8c9]{display:flex;flex-direction:column;gap:1rem;width:100%;justify-content:space-around;align-items:flex-start}.viur-shop-form-adress-column[data-v-71a3c8c9]{align-self:flex-start;flex-grow:1}.viur-shop-form-wrap[data-v-71a3c8c9]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 var(--sl-spacing-medium);margin:var(--sl-spacing-large) 0}.viur-shop-form-grid-w-2[data-v-71a3c8c9]{grid-column:span 2}.viur-shop-form-grid-w-3[data-v-71a3c8c9]{grid-column:span 3}.viur-shop-form-grid-w-4[data-v-71a3c8c9]{grid-column:span 4}.viur-shop-form-btn-wrap[data-v-71a3c8c9]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;margin-top:var(--sl-spacing-x-large)}
|
|
@@ -29543,7 +29543,7 @@ function JD(h) {
|
|
|
29543
29543
|
}
|
|
29544
29544
|
return !1;
|
|
29545
29545
|
}
|
|
29546
|
-
const fl = (h) => (rt("data-v-
|
|
29546
|
+
const fl = (h) => (rt("data-v-82f9bd25"), h = h(), st(), h), YD = /* @__PURE__ */ fl(() => /* @__PURE__ */ F("h2", { class: "viur-shop-form-headline headline" }, "Nutzterdaten", -1)), QD = /* @__PURE__ */ fl(() => /* @__PURE__ */ F("h2", { class: "viur-shop-form-headline headline" }, "Lieferadresse", -1)), XD = { key: 0 }, eB = /* @__PURE__ */ fl(() => /* @__PURE__ */ F("h2", { class: "viur-shop-form-headline headline" }, "Rechnungsadresse", -1)), tB = {
|
|
29547
29547
|
__name: "UserInformation",
|
|
29548
29548
|
props: {
|
|
29549
29549
|
mode: { type: String, default: "form" },
|
|
@@ -29581,13 +29581,13 @@ const fl = (h) => (rt("data-v-00cf0e53"), h = h(), st(), h), YD = /* @__PURE__ *
|
|
|
29581
29581
|
m === "" && delete _.formValues[S];
|
|
29582
29582
|
});
|
|
29583
29583
|
}), jn(async () => {
|
|
29584
|
-
await C.getAdressStructure(), _.addSkel = C.state.structure.address;
|
|
29584
|
+
await C.getAdressStructure(), _.addSkel = M(C.state.structure.address);
|
|
29585
29585
|
}), (k, S) => {
|
|
29586
29586
|
const m = Ln("bone");
|
|
29587
29587
|
return L(), $(re, null, [
|
|
29588
29588
|
F("div", null, [
|
|
29589
29589
|
YD,
|
|
29590
|
-
(L(!0), $(re, null, Je(
|
|
29590
|
+
(L(!0), $(re, null, Je(_.addSkel, (E, x) => (L(), $(re, { key: x }, [
|
|
29591
29591
|
E.visible && E.params.group === "Customer Info" ? (L(), Ue(m, {
|
|
29592
29592
|
key: 0,
|
|
29593
29593
|
is: wt(Vn)(E.type),
|
|
@@ -29602,7 +29602,7 @@ const fl = (h) => (rt("data-v-00cf0e53"), h = h(), st(), h), YD = /* @__PURE__ *
|
|
|
29602
29602
|
]),
|
|
29603
29603
|
F("div", null, [
|
|
29604
29604
|
QD,
|
|
29605
|
-
(L(!0), $(re, null, Je(
|
|
29605
|
+
(L(!0), $(re, null, Je(_.addSkel, (E, x) => (L(), $(re, { key: x }, [
|
|
29606
29606
|
E.visible && E.params.group === "Customer Address" ? (L(), Ue(m, {
|
|
29607
29607
|
key: 0,
|
|
29608
29608
|
is: wt(Vn)(E.type),
|
|
@@ -29616,7 +29616,7 @@ const fl = (h) => (rt("data-v-00cf0e53"), h = h(), st(), h), YD = /* @__PURE__ *
|
|
|
29616
29616
|
]),
|
|
29617
29617
|
_.isCustomAdress ? (L(), $("div", XD, [
|
|
29618
29618
|
eB,
|
|
29619
|
-
(L(!0), $(re, null, Je(
|
|
29619
|
+
(L(!0), $(re, null, Je(_.addSkel, (E, x) => (L(), $(re, { key: x }, [
|
|
29620
29620
|
E.visible && E.params.group === "Customer Address" ? (L(), Ue(m, {
|
|
29621
29621
|
key: 0,
|
|
29622
29622
|
is: wt(Vn)(E.type),
|
|
@@ -29635,7 +29635,7 @@ const fl = (h) => (rt("data-v-00cf0e53"), h = h(), st(), h), YD = /* @__PURE__ *
|
|
|
29635
29635
|
], 64);
|
|
29636
29636
|
};
|
|
29637
29637
|
}
|
|
29638
|
-
}, nB = /* @__PURE__ */ ke(tB, [["__scopeId", "data-v-
|
|
29638
|
+
}, nB = /* @__PURE__ */ ke(tB, [["__scopeId", "data-v-82f9bd25"]]), oB = Ve({
|
|
29639
29639
|
props: {
|
|
29640
29640
|
isDragging: Boolean,
|
|
29641
29641
|
draggingLineBottom: Boolean,
|
|
@@ -6526,5 +6526,5 @@ Read more: ${ee}#error-${o}`}function Se(o,e){const t=_e(o);return e?[o,e,t]:[o,
|
|
|
6526
6526
|
$&
|
|
6527
6527
|
`).split(`
|
|
6528
6528
|
`);let i=0;return n.filter(r=>r.length).map(r=>function(s,a){return a.some(l=>!l.isVoid&&!!new RegExp(`<${l.name}( .*?)?>`).test(s))}(r,e)?Ma(r,i++):function(s,a){return a.some(l=>new RegExp(`</${l.name}>`).test(s))}(r,e)?Ma(r,--i):Ma(r,i)).join(`
|
|
6529
|
-
`)}function Ma(o,e,t=" "){return`${t.repeat(Math.max(0,e))}${o}`}var Rf=B(2896),nD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};G()(Rf.Z,nD),Rf.Z.locals;const Of="SourceEditingMode";function oD(o){return function(e){return e.startsWith("<")}(o)?tD(o):o}const Fa="removeFormat";class iD extends q{static get pluginName(){return"RemoveFormatUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add(Fa,n=>{const i=e.commands.get(Fa),r=new Ae(n);return r.set({label:t("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute(Fa),e.editing.view.focus()}),r})}}class rD extends ne{refresh(){const e=this.editor.model;this.isEnabled=!!ze(this._getFormattingItems(e.document.selection,e.schema))}execute(){const e=this.editor.model,t=e.schema;e.change(n=>{for(const i of this._getFormattingItems(e.document.selection,t))if(i.is("selection"))for(const r of this._getFormattingAttributes(i,t))n.removeSelectionAttribute(r);else{const r=n.createRangeOn(i);for(const s of this._getFormattingAttributes(i,t))n.removeAttribute(s,r)}})}*_getFormattingItems(e,t){const n=i=>!!ze(this._getFormattingAttributes(i,t));for(const i of e.getRanges())for(const r of i.getItems())!t.isBlock(r)&&n(r)&&(yield r);for(const i of e.getSelectedBlocks())n(i)&&(yield i);n(e)&&(yield e)}*_getFormattingAttributes(e,t){for(const[n]of e.getAttributes()){const i=t.getAttributeProperties(n);i&&i.isFormatting&&(yield n)}}}class sD extends q{static get pluginName(){return"RemoveFormatEditing"}init(){const e=this.editor;e.commands.add("removeFormat",new rD(e))}}var aD=Object.defineProperty,Nf=Object.getOwnPropertySymbols,lD=Object.prototype.hasOwnProperty,cD=Object.prototype.propertyIsEnumerable,zf=(o,e,t)=>e in o?aD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Mf=(o,e)=>{for(var t in e||(e={}))lD.call(e,t)&&zf(o,t,e[t]);if(Nf)for(var t of Nf(e))cD.call(e,t)&&zf(o,t,e[t]);return o};function wn(o,e,t,n){e&&function(i,r,s){if(r.attributes)for(const[a]of Object.entries(r.attributes))i.removeAttribute(a,s);if(r.styles)for(const a of Object.keys(r.styles))i.removeStyle(a,s);r.classes&&i.removeClass(r.classes,s)}(o,e,n),t&&Kt(o,t,n)}function Kt(o,e,t){if(e.attributes)for(const[n,i]of Object.entries(e.attributes))o.setAttribute(n,i,t);e.styles&&o.setStyle(e.styles,t),e.classes&&o.addClass(e.classes,t)}function dD(o,e){const t=qt(o);let n="attributes";for(n in e)t[n]=n=="classes"?Array.from(new Set([...o[n]||[],...e[n]])):Mf(Mf({},o[n]),e[n]);return t}function An(o,e,t,n,i){const r=e.getAttribute(t),s={};for(const a of["attributes","styles","classes"]){if(a!=n){r&&r[a]&&(s[a]=r[a]);continue}if(n=="classes"){const c=new Set(r&&r.classes||[]);i(c),c.size&&(s[a]=Array.from(c));continue}const l=new Map(Object.entries(r&&r[a]||{}));i(l),l.size&&(s[a]=Object.fromEntries(l))}Object.keys(s).length?e.is("documentSelection")?o.setSelectionAttribute(t,s):o.setAttribute(t,s,e):r&&(e.is("documentSelection")?o.removeSelectionAttribute(t):o.removeAttribute(t,e))}function Va({model:o}){return(e,t)=>t.writer.createElement(o,{htmlContent:e.getCustomProperty("$rawContent")})}function hD(o,{view:e,isInline:t}){const n=o.t;return(i,{writer:r})=>{const s=n("HTML object"),a=Qi(e,i,r),l=i.getAttribute("htmlAttributes");return r.addClass("html-object-embed__content",a),l&&Kt(r,l,a),ia(r.createContainerElement(t?"span":"div",{class:"html-object-embed","data-html-object-embed-label":s},a),r,{label:s})}}function Qi(o,e,t){return t.createRawElement(o,null,(n,i)=>{i.setContentOf(n,e.getAttribute("htmlContent"))})}function uD({priority:o,view:e}){return(t,n)=>{if(!t)return;const{writer:i}=n,r=i.createAttributeElement(e,null,{priority:o});return Kt(i,t,r),r}}function Vo({view:o},e){return t=>{t.on(`element:${o}`,(n,i,r)=>{if(!i.modelRange||i.modelRange.isCollapsed)return;const s=e.processViewAttributes(i.viewItem,r);s&&r.writer.setAttribute("htmlAttributes",s,i.modelRange)},{priority:"low"})}}function Lo({model:o}){return e=>{e.on(`attribute:htmlAttributes:${o}`,(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;const{attributeOldValue:r,attributeNewValue:s}=n;wn(i.writer,r,s,i.mapper.toViewElement(n.item))})}}const mD=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],gD=[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0},{model:"htmlListAttributes",view:"ol",appliesToBlock:!0},{model:"htmlListAttributes",view:"ul",appliesToBlock:!0},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref",attributeProperties:{copyOnEnter:!0}},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],isInline:!0}}],pD=as(function(o,e,t,n){wd(o,e,t,n)});var fD=Object.defineProperty,kD=Object.defineProperties,bD=Object.getOwnPropertyDescriptors,Ff=Object.getOwnPropertySymbols,wD=Object.prototype.hasOwnProperty,AD=Object.prototype.propertyIsEnumerable,Vf=(o,e,t)=>e in o?fD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Xi=(o,e)=>{for(var t in e||(e={}))wD.call(e,t)&&Vf(o,t,e[t]);if(Ff)for(var t of Ff(e))AD.call(e,t)&&Vf(o,t,e[t]);return o},er=(o,e)=>kD(o,bD(e));class Xn extends q{constructor(){super(...arguments),this._definitions=[]}static get pluginName(){return"DataSchema"}init(){for(const e of mD)this.registerBlockElement(e);for(const e of gD)this.registerInlineElement(e)}registerBlockElement(e){this._definitions.push(er(Xi({},e),{isBlock:!0}))}registerInlineElement(e){this._definitions.push(er(Xi({},e),{isInline:!0}))}extendBlockElement(e){this._extendDefinition(er(Xi({},e),{isBlock:!0}))}extendInlineElement(e){this._extendDefinition(er(Xi({},e),{isInline:!0}))}getDefinitionsForView(e,t=!1){const n=new Set;for(const i of this._getMatchingViewDefinitions(e)){if(t)for(const r of this._getReferences(i.model))n.add(r);n.add(i)}return n}getDefinitionsForModel(e){return this._definitions.filter(t=>t.model==e)}_getMatchingViewDefinitions(e){return this._definitions.filter(t=>t.view&&function(n,i){return typeof n=="string"?n===i:n instanceof RegExp?n.test(i):!1}(e,t.view))}*_getReferences(e){const t=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],n=this._definitions.filter(i=>i.model==e);for(const{modelSchema:i}of n)if(i)for(const r of t)for(const s of Pe(i[r]||[])){const a=this._definitions.filter(l=>l.model==s);for(const l of a)s!==e&&(yield*this._getReferences(l.model),yield l)}}_extendDefinition(e){const t=Array.from(this._definitions.entries()).filter(([,n])=>n.model==e.model);if(t.length!=0)for(const[n,i]of t)this._definitions[n]=pD({},i,e,(r,s)=>Array.isArray(r)?r.concat(s):void 0);else this._definitions.push(e)}}const _D=function(o,e,t,n){for(var i=o.length,r=t+-1;++r<i;)if(e(o[r],r,o))return r;return-1},CD=function(o){return o!=o},vD=function(o,e,t){for(var n=t-1,i=o.length;++n<i;)if(o[n]===e)return n;return-1},yD=function(o,e,t){return e==e?vD(o,e,t):_D(o,CD,t)};var Lf=Array.prototype.splice;const ED=function(o,e,t,n){var i=yD,r=-1,s=e.length,a=o;for(o===e&&(e=Tr(e)),t;++r<s;)for(var l=0,c=e[r],d=c;(l=i(a,d,l))>-1;)a!==o&&Lf.call(a,l,1),Lf.call(o,l,1);return o},xD=_d(function(o,e){return o&&o.length&&e&&e.length?ED(o,e):o});var jf=B(5049),SD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};G()(jf.Z,SD),jf.Z.locals;class Fe extends q{constructor(e){super(e),this._dataSchema=e.plugins.get("DataSchema"),this._allowedAttributes=new Mn,this._disallowedAttributes=new Mn,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerModelPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[Xn,Mo]}loadAllowedConfig(e){for(const t of e){const n=t.name||/[\s\S]+/,i=qf(t);this.allowElement(n),i.forEach(r=>this.allowAttributes(r))}}loadDisallowedConfig(e){for(const t of e){const n=t.name||/[\s\S]+/,i=qf(t);i.length==0?this.disallowElement(n):i.forEach(r=>this.disallowAttributes(r))}}allowElement(e){for(const t of this._dataSchema.getDefinitionsForView(e,!0))this._addAllowedElement(t),this._coupledAttributes=null}disallowElement(e){for(const t of this._dataSchema.getDefinitionsForView(e,!1))this._disallowedElements.add(t.view)}allowAttributes(e){this._allowedAttributes.add(e)}disallowAttributes(e){this._disallowedAttributes.add(e)}processViewAttributes(e,t){return $f(e,t,this._disallowedAttributes),$f(e,t,this._allowedAttributes)}_addAllowedElement(e){if(!this._allowedElements.has(e)){if(this._allowedElements.add(e),"appliesToBlock"in e&&typeof e.appliesToBlock=="string")for(const t of this._dataSchema.getDefinitionsForModel(e.appliesToBlock))t.isBlock&&this._addAllowedElement(t);this._dataInitialized&&this.editor.data.once("set",()=>{this._fireRegisterEvent(e)},{priority:te.get("highest")+1})}}_registerElementsAfterInit(){this.editor.data.on("init",()=>{this._dataInitialized=!0;for(const e of this._allowedElements)this._fireRegisterEvent(e)},{priority:te.get("highest")+1})}_registerElementHandlers(){this.on("register",(e,t)=>{const n=this.editor.model.schema;if(t.isObject&&!n.isRegistered(t.model))this._registerObjectElement(t);else if(t.isBlock)this._registerBlockElement(t);else{if(!t.isInline)throw new I("data-filter-invalid-definition",null,t);this._registerInlineElement(t)}e.stop()},{priority:"lowest"})}_registerModelPostFixer(){const e=this.editor.model;e.document.registerPostFixer(t=>{const n=e.document.differ.getChanges();let i=!1;const r=this._getCoupledAttributesMap();for(const s of n){if(s.type!="attribute"||s.attributeNewValue!==null)continue;const a=r.get(s.attributeKey);if(a)for(const{item:l}of s.range.getWalker({shallow:!0}))for(const c of a)l.hasAttribute(c)&&(t.removeAttribute(c,l),i=!0)}return i})}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const e of this._allowedElements)if(e.coupledAttribute&&e.model){const t=this._coupledAttributes.get(e.coupledAttribute);t?t.push(e.model):this._coupledAttributes.set(e.coupledAttribute,[e.model])}return this._coupledAttributes}_fireRegisterEvent(e){e.view&&this._disallowedElements.has(e.view)||this.fire(e.view?`register:${e.view}`:"register",e)}_registerObjectElement(e){const t=this.editor,n=t.model.schema,i=t.conversion,{view:r,model:s}=e;n.register(s,e.modelSchema),r&&(n.extend(e.model,{allowAttributes:["htmlAttributes","htmlContent"]}),t.data.registerRawContentMatcher({name:r}),i.for("upcast").elementToElement({view:r,model:Va(e),converterPriority:te.get("low")+1}),i.for("upcast").add(Vo(e,this)),i.for("editingDowncast").elementToStructure({model:{name:s,attributes:["htmlAttributes"]},view:hD(t,e)}),i.for("dataDowncast").elementToElement({model:s,view:(a,{writer:l})=>Qi(r,a,l)}),i.for("dataDowncast").add(Lo(e)))}_registerBlockElement(e){const t=this.editor,n=t.model.schema,i=t.conversion,{view:r,model:s}=e;if(!n.isRegistered(e.model)){if(n.register(e.model,e.modelSchema),!r)return;i.for("upcast").elementToElement({model:s,view:r,converterPriority:te.get("low")+1}),i.for("downcast").elementToElement({model:s,view:r})}r&&(n.extend(e.model,{allowAttributes:"htmlAttributes"}),i.for("upcast").add(Vo(e,this)),i.for("downcast").add(Lo(e)))}_registerInlineElement(e){const t=this.editor,n=t.model.schema,i=t.conversion,r=e.model;e.appliesToBlock||(n.extend("$text",{allowAttributes:r}),e.attributeProperties&&n.setAttributeProperties(r,e.attributeProperties),i.for("upcast").add(function({view:s,model:a},l){return c=>{c.on(`element:${s}`,(d,u,g)=>{let f=l.processViewAttributes(u.viewItem,g);if(f||g.consumable.test(u.viewItem,{name:!0})){f=f||{},g.consumable.consume(u.viewItem,{name:!0}),u.modelRange||(u=Object.assign(u,g.convertChildren(u.viewItem,u.modelCursor)));for(const b of u.modelRange.getItems())if(g.schema.checkAttribute(b,a)){const A=dD(f,b.getAttribute(a)||{});g.writer.setAttribute(a,A,b)}}},{priority:"low"})}}(e,this)),i.for("downcast").attributeToElement({model:r,view:uD(e)}))}}function $f(o,e,t){const n=function(l,{consumable:c},d){const u=d.matchAll(l)||[],g=[];for(const f of u)DD(c,l,f),delete f.match.name,c.consume(l,f.match),g.push(f);return g}(o,e,t),{attributes:i,styles:r,classes:s}=function(l){const c={attributes:new Set,classes:new Set,styles:new Set};for(const d of l)for(const u in c)(d.match[u]||[]).forEach(g=>c[u].add(g));return c}(n),a={};if(i.size)for(const l of i)_c(l)||i.delete(l);return i.size&&(a.attributes=Hf(i,l=>o.getAttribute(l))),r.size&&(a.styles=Hf(r,l=>o.getStyle(l))),s.size&&(a.classes=Array.from(s)),Object.keys(a).length?a:null}function DD(o,e,t){for(const n of["attributes","classes","styles"]){const i=t.match[n];if(i)for(const r of Array.from(i))o.test(e,{[n]:[r]})||xD(i,r)}}function Hf(o,e){const t={};for(const n of o)e(n)!==void 0&&(t[n]=e(n));return t}function La(o,e){const{name:t}=o,n=o[e];return Ke(n)?Object.entries(n).map(([i,r])=>({name:t,[e]:{[i]:r}})):Array.isArray(n)?n.map(i=>({name:t,[e]:[i]})):[o]}function qf(o){const{name:e,attributes:t,classes:n,styles:i}=o,r=[];return t&&r.push(...La({name:e,attributes:t},"attributes")),n&&r.push(...La({name:e,classes:n},"classes")),i&&r.push(...La({name:e,styles:i},"styles")),r}class BD extends q{static get requires(){return[Fe]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const e=this.editor.plugins.get(Fe);e.on("register:pre",(t,n)=>{if(n.model!=="codeBlock")return;const i=this.editor,r=i.model.schema,s=i.conversion;r.extend("codeBlock",{allowAttributes:["htmlAttributes","htmlContentAttributes"]}),s.for("upcast").add(function(a){return l=>{l.on("element:code",(c,d,u)=>{const g=d.viewItem,f=g.parent;function b(A,y){const P=a.processViewAttributes(A,u);P&&u.writer.setAttribute(y,P,d.modelRange)}f&&f.is("element","pre")&&(b(f,"htmlAttributes"),b(g,"htmlContentAttributes"))},{priority:"low"})}}(e)),s.for("downcast").add(a=>{a.on("attribute:htmlAttributes:codeBlock",(l,c,d)=>{if(!d.consumable.consume(c.item,l.name))return;const{attributeOldValue:u,attributeNewValue:g}=c,f=d.mapper.toViewElement(c.item).parent;wn(d.writer,u,g,f)}),a.on("attribute:htmlContentAttributes:codeBlock",(l,c,d)=>{if(!d.consumable.consume(c.item,l.name))return;const{attributeOldValue:u,attributeNewValue:g}=c,f=d.mapper.toViewElement(c.item);wn(d.writer,u,g,f)})}),t.stop()})}}class TD extends q{static get requires(){return[Fe]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(Fe).on("register",(e,t)=>{const n=t,i=this.editor,r=i.model.schema,s=i.conversion;if(!n.paragraphLikeModel||r.isRegistered(n.model)||r.isRegistered(n.paragraphLikeModel))return;const a={model:n.paragraphLikeModel,view:n.view};r.register(n.model,n.modelSchema),r.register(a.model,{inheritAllFrom:"$block"}),s.for("upcast").elementToElement({view:n.view,model:(l,{writer:c})=>this._hasBlockContent(l)?c.createElement(n.model):c.createElement(a.model),converterPriority:te.get("low")+.5}),s.for("downcast").elementToElement({view:n.view,model:n.model}),this._addAttributeConversion(n),s.for("downcast").elementToElement({view:a.view,model:a.model}),this._addAttributeConversion(a),e.stop()})}_hasBlockContent(e){const t=this.editor.editing.view,n=t.domConverter.blockElements;for(const i of t.createRangeIn(e).getItems())if(i.is("element")&&n.includes(i.name))return!0;return!1}_addAttributeConversion(e){const t=this.editor,n=t.conversion,i=t.plugins.get(Fe);t.model.schema.extend(e.model,{allowAttributes:"htmlAttributes"}),n.for("upcast").add(Vo(e,i)),n.for("downcast").add(Lo(e))}}class ID extends q{static get requires(){return[Xn,zo]}static get pluginName(){return"HeadingElementSupport"}init(){const e=this.editor;if(!e.plugins.has("HeadingEditing"))return;const t=e.config.get("heading.options");this.registerHeadingElements(e,t),this.removeClassesOnEnter(e,t)}registerHeadingElements(e,t){const n=e.plugins.get(Xn),i=[];for(const r of t)"model"in r&&"view"in r&&(n.registerBlockElement({view:r.view,model:r.model}),i.push(r.model));n.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:i}})}removeClassesOnEnter(e,t){const n=e.commands.get("enter");this.listenTo(n,"afterExecute",(i,r)=>{const s=e.model.document.selection.getFirstPosition().parent;t.some(a=>s.is("element",a.model))&&s.childCount===0&&An(r.writer,s,"htmlAttributes","classes",a=>a.clear())})}}function tr(o,e,t){const n=o.createRangeOn(e);for(const{item:i}of n.getWalker())if(i.is("element",t))return i}class PD extends q{static get requires(){return[Fe]}static get pluginName(){return"ImageElementSupport"}init(){const e=this.editor;if(!e.plugins.has("ImageInlineEditing")&&!e.plugins.has("ImageBlockEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(Fe);i.on("register:figure",()=>{n.for("upcast").add(function(r){return s=>{s.on("element:figure",(a,l,c)=>{const d=l.viewItem;if(!l.modelRange||!d.hasClass("image"))return;const u=r.processViewAttributes(d,c);u&&c.writer.setAttribute("htmlFigureAttributes",u,l.modelRange)},{priority:"low"})}}(i))}),i.on("register:img",(r,s)=>{s.model!=="imageBlock"&&s.model!=="imageInline"||(t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["htmlA","htmlAttributes"]}),n.for("upcast").add(function(a){return l=>{l.on("element:img",(c,d,u)=>{if(!d.modelRange)return;const g=d.viewItem,f=g.parent;function b(y,P){const z=a.processViewAttributes(y,u);z&&u.writer.setAttribute(P,z,d.modelRange)}function A(y){d.modelRange&&d.modelRange.getContainedElement().is("element","imageBlock")&&b(y,"htmlLinkAttributes")}b(g,"htmlAttributes"),f.is("element","a")&&A(f)},{priority:"low"})}}(i)),n.for("downcast").add(a=>{function l(d){a.on(`attribute:${d}:imageInline`,(u,g,f)=>{if(!f.consumable.consume(g.item,u.name))return;const{attributeOldValue:b,attributeNewValue:A}=g,y=f.mapper.toViewElement(g.item);wn(f.writer,b,A,y)},{priority:"low"})}function c(d,u){a.on(`attribute:${u}:imageBlock`,(g,f,b)=>{if(!b.consumable.test(f.item,g.name))return;const{attributeOldValue:A,attributeNewValue:y}=f,P=b.mapper.toViewElement(f.item),z=tr(b.writer,P,d);z&&(wn(b.writer,A,y,z),b.consumable.consume(f.item,g.name))},{priority:"low"}),d==="a"&&a.on("attribute:linkHref:imageBlock",(g,f,b)=>{if(!b.consumable.consume(f.item,"attribute:htmlLinkAttributes:imageBlock"))return;const A=b.mapper.toViewElement(f.item),y=tr(b.writer,A,"a");Kt(b.writer,f.item.getAttribute("htmlLinkAttributes"),y)},{priority:"low"})}l("htmlAttributes"),c("img","htmlAttributes"),c("figure","htmlFigureAttributes"),c("a","htmlLinkAttributes")}),r.stop())})}}class RD extends q{static get requires(){return[Fe]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const e=this.editor;if(!e.plugins.has("MediaEmbed")||e.config.get("mediaEmbed.previewsInData"))return;const t=e.model.schema,n=e.conversion,i=this.editor.plugins.get(Fe),r=this.editor.plugins.get(Xn),s=e.config.get("mediaEmbed.elementName");r.registerBlockElement({model:"media",view:s}),i.on("register:figure",()=>{n.for("upcast").add(function(a){return l=>{l.on("element:figure",(c,d,u)=>{const g=d.viewItem;if(!d.modelRange||!g.hasClass("media"))return;const f=a.processViewAttributes(g,u);f&&u.writer.setAttribute("htmlFigureAttributes",f,d.modelRange)},{priority:"low"})}}(i))}),i.on(`register:${s}`,(a,l)=>{l.model==="media"&&(t.extend("media",{allowAttributes:["htmlAttributes","htmlFigureAttributes"]}),n.for("upcast").add(function(c,d){const u=(g,f,b)=>{function A(y,P){const z=c.processViewAttributes(y,b);z&&b.writer.setAttribute(P,z,f.modelRange)}A(f.viewItem,"htmlAttributes")};return g=>{g.on(`element:${d}`,u,{priority:"low"})}}(i,s)),n.for("dataDowncast").add(function(c){return d=>{function u(g,f){d.on(`attribute:${f}:media`,(b,A,y)=>{if(!y.consumable.consume(A.item,b.name))return;const{attributeOldValue:P,attributeNewValue:z}=A,j=y.mapper.toViewElement(A.item),Y=tr(y.writer,j,g);wn(y.writer,P,z,Y)})}u(c,"htmlAttributes"),u("figure","htmlFigureAttributes")}}(s)),a.stop())})}}class OD extends q{static get requires(){return[Fe]}static get pluginName(){return"ScriptElementSupport"}init(){const e=this.editor.plugins.get(Fe);e.on("register:script",(t,n)=>{const i=this.editor,r=i.model.schema,s=i.conversion;r.register("htmlScript",n.modelSchema),r.extend("htmlScript",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"script"}),s.for("upcast").elementToElement({view:"script",model:Va(n)}),s.for("upcast").add(Vo(n,e)),s.for("downcast").elementToElement({model:"htmlScript",view:(a,{writer:l})=>Qi("script",a,l)}),s.for("downcast").add(Lo(n)),t.stop()})}}class ND extends q{static get requires(){return[Fe]}static get pluginName(){return"TableElementSupport"}init(){const e=this.editor;if(!e.plugins.has("TableEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(Fe),r=e.plugins.get("TableUtils");i.on("register:figure",()=>{n.for("upcast").add(function(s){return a=>{a.on("element:figure",(l,c,d)=>{const u=c.viewItem;if(!c.modelRange||!u.hasClass("table"))return;const g=s.processViewAttributes(u,d);g&&d.writer.setAttribute("htmlFigureAttributes",g,c.modelRange)},{priority:"low"})}}(i))}),i.on("register:table",(s,a)=>{a.model==="table"&&(t.extend("table",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),n.for("upcast").add(function(l){return c=>{c.on("element:table",(d,u,g)=>{if(!u.modelRange)return;const f=u.viewItem;b(f,"htmlAttributes");for(const A of f.getChildren())A.is("element","thead")&&b(A,"htmlTheadAttributes"),A.is("element","tbody")&&b(A,"htmlTbodyAttributes");function b(A,y){const P=l.processViewAttributes(A,g);P&&g.writer.setAttribute(y,P,u.modelRange)}},{priority:"low"})}}(i)),n.for("downcast").add(l=>{function c(d,u){l.on(`attribute:${u}:table`,(g,f,b)=>{if(!b.consumable.test(f.item,g.name))return;const A=b.mapper.toViewElement(f.item),y=tr(b.writer,A,d);y&&(b.consumable.consume(f.item,g.name),wn(b.writer,f.attributeOldValue,f.attributeNewValue,y))})}c("table","htmlAttributes"),c("figure","htmlFigureAttributes"),c("thead","htmlTheadAttributes"),c("tbody","htmlTbodyAttributes")}),e.model.document.registerPostFixer(function(l,c){return d=>{const u=l.document.differ.getChanges();let g=!1;for(const f of u){if(f.type!="attribute"||f.attributeKey!="headingRows")continue;const b=f.range.start.nodeAfter,A=b.getAttribute("htmlTheadAttributes"),y=b.getAttribute("htmlTbodyAttributes");A&&!f.attributeNewValue?(d.removeAttribute("htmlTheadAttributes",b),g=!0):y&&f.attributeNewValue==c.getRows(b)&&(d.removeAttribute("htmlTbodyAttributes",b),g=!0)}return g}}(e.model,r)),s.stop())})}}class zD extends q{static get requires(){return[Fe]}static get pluginName(){return"StyleElementSupport"}init(){const e=this.editor.plugins.get(Fe);e.on("register:style",(t,n)=>{const i=this.editor,r=i.model.schema,s=i.conversion;r.register("htmlStyle",n.modelSchema),r.extend("htmlStyle",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"style"}),s.for("upcast").elementToElement({view:"style",model:Va(n)}),s.for("upcast").add(Vo(n,e)),s.for("downcast").elementToElement({model:"htmlStyle",view:(a,{writer:l})=>Qi("style",a,l)}),s.for("downcast").add(Lo(n)),t.stop()})}}class MD extends q{static get requires(){return[Fe]}static get pluginName(){return"DocumentListElementSupport"}init(){const e=this.editor;if(!e.plugins.has("DocumentListEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(Fe),r=e.plugins.get("DocumentListEditing");r.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast(s,a,l){Kt(s,a,l)}}),r.registerDowncastStrategy({scope:"list",attributeName:"htmlListAttributes",setAttributeOnDowncast(s,a,l){Kt(s,a,l)}}),i.on("register",(s,a)=>{["ul","ol","li"].includes(a.view)&&(s.stop(),t.checkAttribute("$block","htmlListAttributes")||(t.extend("$block",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),t.extend("$blockObject",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),t.extend("$container",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),n.for("upcast").add(l=>{l.on("element:ul",ja("htmlListAttributes",i),{priority:"low"}),l.on("element:ol",ja("htmlListAttributes",i),{priority:"low"}),l.on("element:li",ja("htmlLiAttributes",i),{priority:"low"})})))}),r.on("postFixer",(s,{listNodes:a,writer:l})=>{const c=[];for(const{node:d,previous:u}of a){if(!u)continue;const g=d.getAttribute("listIndent"),f=u.getAttribute("listIndent");let b=null;if(g>f?c[f]=u:g<f?(b=c[g],c.length=g):b=u,b){if(b.getAttribute("listType")==d.getAttribute("listType")){const A=b.getAttribute("htmlListAttributes");Si(d.getAttribute("htmlListAttributes"),A)||(l.setAttribute("htmlListAttributes",A,d),s.return=!0)}if(b.getAttribute("listItemId")==d.getAttribute("listItemId")){const A=b.getAttribute("htmlLiAttributes");Si(d.getAttribute("htmlLiAttributes"),A)||(l.setAttribute("htmlLiAttributes",A,d),s.return=!0)}}}})}afterInit(){const e=this.editor;if(!e.commands.get("indentList"))return;const t=e.commands.get("indentList");this.listenTo(t,"afterExecute",(n,i)=>{e.model.change(r=>{for(const s of i)r.setAttribute("htmlListAttributes",{},s)})})}}function ja(o,e){return(t,n,i)=>{const r=n.viewItem;n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor));const s=e.processViewAttributes(r,i);for(const a of n.modelRange.getItems({shallow:!0}))a.hasAttribute("listItemId")&&(a.hasAttribute(o)||i.writer.setAttribute(o,s||{},a))}}class FD extends q{static get requires(){return[Fe,Xn]}static get pluginName(){return"CustomElementSupport"}init(){const e=this.editor.plugins.get(Fe),t=this.editor.plugins.get(Xn);e.on("register:$customElement",(n,i)=>{n.stop();const r=this.editor,s=r.model.schema,a=r.conversion,l=r.editing.view.domConverter.unsafeElements,c=r.data.htmlProcessor.domConverter.preElements;s.register(i.model,i.modelSchema),s.extend(i.model,{allowAttributes:["htmlElementName","htmlAttributes","htmlContent"],isContent:!0}),a.for("upcast").elementToElement({view:/.*/,model:(d,u)=>{if(d.name=="$comment"||!function(y){try{document.createElement(y)}catch{return!1}return!0}(d.name)||t.getDefinitionsForView(d.name).size)return null;l.includes(d.name)||l.push(d.name),c.includes(d.name)||c.push(d.name);const g=u.writer.createElement(i.model,{htmlElementName:d.name}),f=e.processViewAttributes(d,u);f&&u.writer.setAttribute("htmlAttributes",f,g);const b=new Bi(d.document).createDocumentFragment(d),A=r.data.processor.toData(b);u.writer.setAttribute("htmlContent",A,g);for(const{item:y}of r.editing.view.createRangeIn(d))u.consumable.consume(y,{name:!0});return g},converterPriority:"low"}),a.for("editingDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:(d,{writer:u})=>{const g=d.getAttribute("htmlElementName"),f=u.createRawElement(g);return d.hasAttribute("htmlAttributes")&&Kt(u,d.getAttribute("htmlAttributes"),f),f}}),a.for("dataDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:(d,{writer:u})=>{const g=d.getAttribute("htmlElementName"),f=d.getAttribute("htmlContent"),b=u.createRawElement(g,null,(A,y)=>{y.setContentOf(A,f);const P=A.firstChild;for(P.remove();P.firstChild;)A.appendChild(P.firstChild)});return d.hasAttribute("htmlAttributes")&&Kt(u,d.getAttribute("htmlAttributes"),b),b}})})}}function*eo(o,e,t){if(e)if(!(Symbol.iterator in e)&&e.is("documentSelection")&&e.isCollapsed)o.schema.checkAttributeInSelection(e,t)&&(yield e);else for(const n of function(i,r,s){return!(Symbol.iterator in r)&&(r.is("node")||r.is("$text")||r.is("$textProxy"))?i.schema.checkAttribute(r,s)?[i.createRangeOn(r)]:[]:i.schema.getValidRanges(i.createSelection(r).getRanges(),s)}(o,e,t))yield*n.getItems({shallow:!0})}var to=(o,e,t)=>new Promise((n,i)=>{var r=l=>{try{a(t.next(l))}catch(c){i(c)}},s=l=>{try{a(t.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(o,e)).next())});function Uf(o,e){let t=new URL(o);if(e&&Object.keys(e).length>0){const n=new URLSearchParams;for(const[i,r]of Object.entries(e))if(Array.isArray(r))for(const s of r)n.append(i,s);else n.append(i,r);t.search=n.toString()}return t.toString()}class VD{constructor(e,t){this.loader=e,this.api_url=t}_getUploadUrl(e,t){return to(this,null,function*(){const n=yield fetch(this.api_url+"/vi/skey",{credentials:"include"}).catch(a=>{t(a)}),i=yield n.json(),r={fileName:e.name,mimeType:e.type||"application/octet-stream",size:e.size.toString(),skey:i},s=yield fetch(Uf(this.api_url+"/vi/file/getUploadURL",r),{method:"POST",credentials:"include"}).catch(a=>{t(a)});return this.loader.uploaded=10,s})}fileUpload(e,t,n){return to(this,null,function*(){yield fetch(t.values.uploadUrl,{mode:"no-cors",method:"POST",body:e}).catch(l=>{n(l)}),this.loader.uploaded=50;const i=yield fetch(this.api_url+"/vi/skey",{credentials:"include"}).catch(l=>{n(l)}),r=yield i.json(),s={key:t.values.uploadKey,node:void 0,skelType:"leaf",skey:r},a=yield fetch(Uf(this.api_url+"/vi/file/add",s),{method:"POST",credentials:"include"}).catch(l=>{n(l)});return this.loader.uploaded=75,a})}upload(){return to(this,null,function*(){return this.loader.uploadTotal=100,this.loader.uploaded=0,this.loader.file.then(e=>to(this,null,function*(){return new Promise((t,n)=>{this._getUploadUrl(e,n).then(i=>to(this,null,function*(){const r=yield i.json();this.fileUpload(e,r,n).then(s=>to(this,null,function*(){const a=yield s.json();this.loader.uploaded=100,t({default:this.api_url+a.values.downloadUrl})}))}))})}))})}abort(){this.xhr&&this.xhr.abort()}}var Wf=B(2245),LD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};G()(Wf.Z,LD),Wf.Z.locals;class $a extends Vi{}$a.builtinPlugins=[class extends q{static get requires(){return[A2,zo,E2,t2,UE,N2]}static get pluginName(){return"Essentials"}},class extends q{static get requires(){return[Ot]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const o=this.editor.config.get("ckfinder.uploadUrl");o&&(this.editor.plugins.get(Ot).createUploadAdapter=e=>new L2(e,o,this.editor.t))}},class extends ui{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[YS]}init(){return Bf(this,null,function*(){const o=this.context.config.get("cloudServices")||{};for(const[t,n]of Object.entries(o))this[t]=n;if(!this.tokenUrl)return void(this.token=null);const e=this.context.plugins.get("CloudServicesCore");this.token=yield e.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(o){return Bf(this,null,function*(){if(this._tokens.has(o))return this.getTokenFor(o);const e=this.context.plugins.get("CloudServicesCore"),t=yield e.createToken(o).init();return this._tokens.set(o,t),t})}getTokenFor(o){const e=this._tokens.get(o);if(!e)throw new I("cloudservices-token-not-registered",this);return e}destroy(){super.destroy();for(const o of this._tokens.values())o.destroy()}},class extends q{static get requires(){return[j2,$2]}static get pluginName(){return"Bold"}},class extends q{static get requires(){return[q2,U2]}static get pluginName(){return"Italic"}},class extends q{static get requires(){return[Z2,Y2]}static get pluginName(){return"BlockQuote"}},class extends q{static get pluginName(){return"EasyImage"}static get requires(){return[Q2,"ImageUpload"]}init(){const o=this.editor;o.plugins.has("ImageBlockEditing")||o.plugins.has("ImageInlineEditing")||Q("easy-image-image-feature-missing",o)}},class extends q{static get requires(){return[ox,rx]}static get pluginName(){return"Heading"}},class extends q{static get requires(){return[vx,Ex]}static get pluginName(){return"Image"}},class extends q{static get requires(){return[Wg,Qx]}static get pluginName(){return"ImageStyle"}},class extends q{static get requires(){return[qi,Nt]}static get pluginName(){return"ImageToolbar"}afterInit(){const o=this.editor,e=o.t,t=o.plugins.get(qi),n=o.plugins.get("ImageUtils");var i;t.register("image",{ariaLabel:e("Image toolbar"),items:(i=o.config.get("image.toolbar")||[],i.map(r=>xe(r)?r.name:r)),getRelatedElement:r=>n.getClosestSelectedImageWidget(r)})}},class extends q{static get pluginName(){return"ImageUpload"}static get requires(){return[Vx,Dx,Px]}},class extends q{constructor(o){super(o),this._resizeUnit=o.config.get("image.resizeUnit")}static get requires(){return[qx]}static get pluginName(){return"ImageResizeButtons"}init(){const o=this.editor,e=o.config.get("image.resizeOptions"),t=o.commands.get("resizeImage");this.bind("isEnabled").to(t);for(const n of e)this._registerImageResizeButton(n);this._registerImageResizeDropdown(e)}_registerImageResizeButton(o){const e=this.editor,{name:t,value:n,icon:i}=o,r=n?n+this._resizeUnit:null;e.ui.componentFactory.add(t,s=>{const a=new Ae(s),l=e.commands.get("resizeImage"),c=this._getOptionLabelValue(o,!0);if(!ha[i])throw new I("imageresizebuttons-missing-icon",e,o);return a.set({label:c,icon:ha[i],tooltip:c,isToggleable:!0}),a.bind("isEnabled").to(this),a.bind("isOn").to(l,"value",Rg(r)),this.listenTo(a,"execute",()=>{e.execute("resizeImage",{width:r})}),a})}_registerImageResizeDropdown(o){const e=this.editor,t=e.t,n=o.find(r=>!r.value),i=r=>{const s=e.commands.get("resizeImage"),a=It(r,od),l=a.buttonView,c=t("Resize image");return l.set({tooltip:c,commandValue:n.value,icon:ha.medium,isToggleable:!0,label:this._getOptionLabelValue(n),withText:!0,class:"ck-resize-image-button",ariaLabel:c,ariaLabelledBy:void 0}),l.bind("label").to(s,"value",d=>d&&d.width?d.width:this._getOptionLabelValue(n)),a.bind("isEnabled").to(this),Vs(a,()=>this._getResizeDropdownListItemDefinitions(o,s),{ariaLabel:t("Image resize list"),role:"menu"}),this.listenTo(a,"execute",d=>{e.execute(d.source.commandName,{width:d.source.commandValue}),e.editing.view.focus()}),a};e.ui.componentFactory.add("resizeImage",i),e.ui.componentFactory.add("imageResize",i)}_getOptionLabelValue(o,e=!1){const t=this.editor.t;return o.label?o.label:e?o.value?t("Resize image to %0",o.value+this._resizeUnit):t("Resize image to the original size"):o.value?o.value+this._resizeUnit:t("Original")}_getResizeDropdownListItemDefinitions(o,e){const t=new st;return o.map(n=>{const i=n.value?n.value+this._resizeUnit:null,r={type:"button",model:new Ys({commandName:"resizeImage",commandValue:i,label:this._getOptionLabelValue(n),role:"menuitemradio",withText:!0,icon:null})};r.model.bind("isOn").to(e,"value",Rg(i)),t.add(r)}),t}},class extends q{static get pluginName(){return"Indent"}static get requires(){return[Xx,e5]}},class extends q{constructor(o){super(o),o.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const o=this.editor,e=o.config.get("indentBlock");e.classes&&e.classes.length?(this._setupConversionUsingClasses(e.classes),o.commands.add("indentBlock",new Zi(o,new ep({direction:"forward",classes:e.classes}))),o.commands.add("outdentBlock",new Zi(o,new ep({direction:"backward",classes:e.classes})))):(o.data.addStyleProcessorRules(F1),this._setupConversionUsingOffset(),o.commands.add("indentBlock",new Zi(o,new Xg({direction:"forward",offset:e.offset,unit:e.unit}))),o.commands.add("outdentBlock",new Zi(o,new Xg({direction:"backward",offset:e.offset,unit:e.unit}))))}afterInit(){const o=this.editor,e=o.model.schema,t=o.commands.get("indent"),n=o.commands.get("outdent"),i=o.config.get("heading.options");(i&&i.map(r=>r.model)||t5).forEach(r=>{e.isRegistered(r)&&e.extend(r,{allowAttributes:"blockIndent"})}),e.setAttributeProperties("blockIndent",{isFormatting:!0}),t.registerChildCommand(o.commands.get("indentBlock")),n.registerChildCommand(o.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const o=this.editor.conversion,e=this.editor.locale.contentLanguageDirection==="rtl"?"margin-right":"margin-left";o.for("upcast").attributeToAttribute({view:{styles:{[e]:/[\s\S]+/}},model:{key:"blockIndent",value:t=>t.getStyle(e)}}),o.for("downcast").attributeToAttribute({model:"blockIndent",view:t=>({key:"style",value:{[e]:t}})})}_setupConversionUsingClasses(o){const e={model:{key:"blockIndent",values:[]},view:{}};for(const t of o)e.model.values.push(t),e.view[t]={key:"class",value:[t]};this.editor.conversion.attributeToAttribute(e)}},class extends q{static get requires(){return[x5,I5,R5]}static get pluginName(){return"Link"}},class extends q{static get requires(){return[eS,j5]}static get pluginName(){return"List"}},ca,class extends q{static get requires(){return[yS,SS,kn,RS,IS,TS,Mo]}static get pluginName(){return"Table"}},class extends q{static get requires(){return[qi]}static get pluginName(){return"TableToolbar"}afterInit(){const o=this.editor,e=o.t,t=o.plugins.get(qi),n=o.config.get("table.contentToolbar"),i=o.config.get("table.tableToolbar");n&&t.register("tableContent",{ariaLabel:e("Table toolbar"),items:n,getRelatedElement:zS}),i&&t.register("table",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:NS})}},class extends q{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(o){super(o),o.config.define("typing",{transformations:{include:GE}})}init(){const o=this.editor.model.document.selection;o.on("change:range",()=>{this.isEnabled=!o.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const o=this.editor,e=o.model,t=o.plugins.get("Delete"),n=function(r){const s=r.extra||[],a=r.remove||[],l=c=>!a.includes(c);return function(c){const d=new Set;for(const u of c)if(typeof u=="string"&&km[u])for(const g of km[u])d.add(g);else d.add(u);return Array.from(d)}(r.include.concat(s).filter(l)).filter(l).map(c=>typeof c=="string"&&fm[c]?fm[c]:c).filter(c=>typeof c=="object").map(c=>({from:ZE(c.from),to:JE(c.to)}))}(o.config.get("typing.transformations")),i=new mm(o.model,r=>{for(const s of n)if(s.from.test(r))return{normalizedTransformation:s}});i.on("matched:data",(r,s)=>{if(!s.batch.isTyping)return;const{from:a,to:l}=s.normalizedTransformation,c=a.exec(s.text),d=l(c.slice(1)),u=s.range;let g=c.index;e.enqueueChange(f=>{for(let b=1;b<c.length;b++){const A=c[b],y=d[b-1];if(y==null){g+=A.length;continue}const P=u.start.getShiftedBy(g),z=e.createRange(P,P.getShiftedBy(A.length)),j=YE(P);e.insertContent(f.createText(y,j),z),g+=y.length}e.enqueueChange(()=>{t.requestUndoOnBackspace()})})}),i.bind("isEnabled").to(this)}},class extends q{static get requires(){return[W2,K2]}static get pluginName(){return"Underline"}},class extends q{static get requires(){return[XS,eD]}static get pluginName(){return"Alignment"}},class extends q{constructor(o){super(o),this.set("isSourceEditingMode",!1),this._elementReplacer=new Cl,this._replacedRoots=new Map,this._dataFromRoots=new Map}static get pluginName(){return"SourceEditing"}static get requires(){return[Ii]}init(){const o=this.editor;o.t,o.ui.componentFactory.add("sourceEditing",e=>{const t=new Ae(e);return t.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',tooltip:!0,withText:!0,class:"ck-source-editing-button"}),t.bind("isOn").to(this,"isSourceEditingMode"),t.bind("isEnabled").to(this,"isEnabled",o,"isReadOnly",o.plugins.get(Ii),"hasAny",(n,i,r)=>!!n&&!i&&!r),this.listenTo(t,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),t}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(e,t,n)=>{n?(this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(e,t,n)=>this._handleReadOnlyMode(!n)),this.listenTo(o,"change:isReadOnly",(e,t,n)=>this._handleReadOnlyMode(n))),o.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}afterInit(){const o=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some(e=>o.plugins.has(e))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),o.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}updateEditorData(){const o=this.editor,e={};for(const[t,n]of this._replacedRoots){const i=this._dataFromRoots.get(t),r=n.dataset.value;i!==r&&(e[t]=r)}Object.keys(e).length&&o.data.set(e,{batchType:{isUndoable:!0}})}_showSourceEditing(){const o=this.editor,e=o.editing.view,t=o.model;t.change(n=>{n.setSelection(null),n.removeSelectionAttribute(t.document.selection.getAttributeKeys())});for(const[n,i]of e.domRoots){const r=oD(o.data.get({rootName:n})),s=br(i.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),a=br(i.ownerDocument,"div",{class:"ck-source-editing-area","data-value":r},[s]);s.value=r,s.setSelectionRange(0,0),s.addEventListener("input",()=>{a.dataset.value=s.value,o.ui.update()}),e.change(l=>{const c=e.document.getRoot(n);l.addClass("ck-hidden",c)}),o.ui.setEditableElement("sourceEditing:"+n,s),this._replacedRoots.set(n,a),this._elementReplacer.replace(i,a),this._dataFromRoots.set(n,r)}this._focusSourceEditing()}_hideSourceEditing(){const o=this.editor.editing.view;this.updateEditorData(),o.change(e=>{for(const[t]of this._replacedRoots)e.removeClass("ck-hidden",o.document.getRoot(t))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),o.focus()}_focusSourceEditing(){const o=this.editor,[e]=this._replacedRoots.values(),t=e.querySelector("textarea");o.editing.view.document.isFocused=!1,t.focus()}_disableCommands(){const o=this.editor;for(const e of o.commands.commands())e.forceDisabled(Of)}_enableCommands(){const o=this.editor;for(const e of o.commands.commands())e.clearForceDisabled(Of)}_handleReadOnlyMode(o){if(this.isSourceEditingMode)for(const[,e]of this._replacedRoots)e.querySelector("textarea").readOnly=o}_isAllowedToHandleSourceEditingMode(){const o=this.editor.ui.view.editable;return o&&!o.hasExternalElement}},class extends q{static get requires(){return[sD,iD]}static get pluginName(){return"RemoveFormat"}},class extends q{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[Fe,BD,TD,ID,PD,RD,OD,ND,zD,MD,FD]}init(){const o=this.editor,e=o.plugins.get(Fe);e.loadAllowedConfig(o.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(o.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(o){const e=this.editor.plugins.get("DataSchema"),t=Array.from(e.getDefinitionsForView(o,!1)),n=t.find(i=>i.isInline&&!t[0].isObject);return n?n.model:"htmlAttributes"}addModelHtmlClass(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"classes",a=>{for(const l of Pe(e))a.add(l)})})}removeModelHtmlClass(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"classes",a=>{for(const l of Pe(e))a.delete(l)})})}setModelHtmlAttributes(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"attributes",a=>{for(const[l,c]of Object.entries(e))a.set(l,c)})})}removeModelHtmlAttributes(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"attributes",a=>{for(const l of Pe(e))a.delete(l)})})}setModelHtmlStyles(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"styles",a=>{for(const[l,c]of Object.entries(e))a.set(l,c)})})}removeModelHtmlStyles(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"styles",a=>{for(const l of Pe(e))a.delete(l)})})}}],$a.defaultConfig={extraPlugins:[function(o){o.plugins.get("FileRepository").createUploadAdapter=e=>new VD(e,o.config.get("viur_api_url"))},function(o){o.conversion.attributeToElement({model:"bold",view:"b",upcastAlso:[e=>{const t=e.getStyle("font-weight");return t&&(t=="bold"||Number(t)>=600)?{name:!0,styles:["font-weight"]}:null}]})}],toolbar:{items:["heading","|","bold","italic","underline","|","alignment","numberedList","bulletedList","blockQuote","|","indent","outdent","|","link","insertTable","imageUpload","|","undo","redo","RemoveFormat","sourceEditing"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","resizeImage:50","resizeImage:75","resizeImage:original","imageTextAlternative"],resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},alignment:{options:[{name:"left",className:"viur-txt-align--left"},{name:"right",className:"viur-txt-align--right"},{name:"center",className:"viur-txt-align--center"},{name:"justify",className:"viur-txt-align--justify"}]},indentBlock:{classes:["viur-txt-indent--1","viur-txt-indent--2","viur-txt-indent--3","viur-txt-indent--4","viur-txt-indent--5","viur-txt-indent--6","viur-txt-indent--7","viur-txt-indent--8","viur-txt-indent--9","viur-txt-indent--10"]},htmlSupport:{allow:[{name:"a",attributes:{target:!0,rel:!0}}]},language:"de",viur_api_url:"http://localhost:8080"}})(),M=M.default})())}(Wo,Wo.exports);var jw=Wo.exports;const rl=Lw(jw),$w=h.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.reactive({value:"",editorConfig:{},editor:h.computed(()=>rl)});function B(D){x.emit("change",m.name,N.value,m.lang,m.index)}function M(D){N.value=D.target.value,x.emit("change",m.name,N.value,m.lang,m.index)}h.onMounted(()=>{m.value!==null&&(N.value=m.value),x.emit("change",m.name,m.value,m.lang,m.index)});function w(D){D.editing.view.change(p=>{p.setStyle("min-height","250px",D.editing.view.document.getRoot())})}return h.watch(()=>m.value,(D,p)=>{N.value=D}),{state:N,ClassicEditor:rl,boneState:C,changeEvent:B,onReady:w,changeEventTextarea:M}}}),Hw=["disabled","value"];function qw(m,x,C,N,B,M){var D,p,E,S;const w=h.resolveComponent("ckeditor");return m.state.editor?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[(D=m.boneState.bonestructure)!=null&&D.valid_html||(p=m.boneState.bonestructure)!=null&&p.validHtml?(h.openBlock(),h.createBlock(w,{key:0,modelValue:m.state.value,"onUpdate:modelValue":x[0]||(x[0]=v=>m.state.value=v),editor:m.state.editor,config:m.state.editorConfig,disabled:(E=m.boneState)==null?void 0:E.readonly,onReady:m.onReady,onInput:m.changeEvent},null,8,["modelValue","editor","config","disabled","onReady","onInput"])):(h.openBlock(),h.createElementBlock("sl-textarea",{key:1,disabled:(S=m.boneState)==null?void 0:S.readonly,value:m.value,onInput:x[1]||(x[1]=(...v)=>m.changeEventTextarea&&m.changeEventTextarea(...v))},null,40,Hw))],64)):h.createCommentVNode("",!0)}const sl=de($w,[["render",qw]]),Uw=h.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.reactive({valueLat:null,valueLng:null});function B(){x.emit("change",m.name,[N.valueLat,N.valueLng],m.lang,m.index)}return h.onMounted(()=>{try{N.valueLat=m.value[0],N.valueLng=m.value[1]}catch{}x.emit("change",m.name,[N.valueLat,N.valueLng],m.lang,m.index)}),{state:N,boneState:C,changeEvent:B}}}),Ww=["name","min","max","disabled"],Kw=["name","min","max","disabled"];function Gw(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.withDirectives(h.createElementVNode("sl-input",{"onUpdate:modelValue":x[0]||(x[0]=w=>m.state.valueLat=w),index:"lat",type:"number",name:m.name,min:m.boneState.bonestructure.boundslat[0],max:m.boneState.bonestructure.boundslat[1],disabled:m.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:x[1]||(x[1]=(...w)=>m.changeEvent&&m.changeEvent(...w)),placeholder:"Lat"},null,40,Ww),[[h.vModelText,m.state.valueLat]]),h.withDirectives(h.createElementVNode("sl-input",{"onUpdate:modelValue":x[2]||(x[2]=w=>m.state.valueLng=w),index:"lng",type:"number",name:m.name,min:m.boneState.bonestructure.boundslat[0],max:m.boneState.bonestructure.boundslat[1],disabled:m.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:x[3]||(x[3]=(...w)=>m.changeEvent&&m.changeEvent(...w)),placeholder:"Long"},null,40,Kw),[[h.vModelText,m.state.valueLng]])],64)}const al=de(Uw,[["render",Gw],["__scopeId","data-v-7bc31020"]]),Zw=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.reactive({counter:0,debounce:null}),B=h.inject("addMultipleEntry"),M=h.inject("removeMultipleEntries");function w(){N.counter+=1;let p=200;N.counter>1&&(p=500),N.debounce&&clearTimeout(N.debounce),N.debounce=setTimeout(()=>{for(let E=N.counter;E--;)B(m.lang);N.counter=0},p)}function D(){let p=200;N.debounce&&clearTimeout(N.debounce),N.debounce=setTimeout(()=>{M(m.lang)},p)}return h.onMounted(()=>{(!m.value||m.value.length===0)&&x.emit("change",m.name,[],m.lang)}),{state:N,boneState:C,handleAdd:w,handleRemove:D,removeMultipleEntries:M}}}),ll=m=>(h.pushScopeId("data-v-63e75dee"),m=m(),h.popScopeId(),m),Jw={class:"actionbar"},Yw=["title"],Qw=[ll(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],Xw=["title"],eA=ll(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function tA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",Jw,[m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:0,variant:"danger",title:m.$t("bone.del"),outline:"",class:"delete-btn",onClick:x[0]||(x[0]=w=>m.handleRemove(m.lang))},Qw,8,Yw)):h.createCommentVNode("",!0),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:1,variant:"success",title:m.$t("bone.add"),outline:"",class:"add-btn",onClick:x[1]||(x[1]=w=>m.handleAdd(m.lang))},[eA,h.createTextVNode(" "+h.toDisplayString(m.$t("bone.add"))+" ",1),m.state.counter>1?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode("("+h.toDisplayString(m.state.counter)+")",1)],64)):h.createCommentVNode("",!0)],8,Xw)):h.createCommentVNode("",!0)])}const nA=de(Zw,[["render",tA],["__scopeId","data-v-63e75dee"]]);var oA={VITE_API_URL:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const iA=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.inject("addMultipleEntry"),B=h.inject("formatString"),M=null,w=h.reactive({skels:{},hasUsing:h.computed(()=>C==null?void 0:C.bonestructure.using)});function D(p){let E="";return C.bonestructure.type==="relational.tree.leaf.file"?E="skelType=leaf&":C.bonestructure.type==="relational.tree.node.file"&&(E="skelType=node&"),we.get(`/${oA.VITE_DEFAULT_RENDERER||"vi"}/${C.bonestructure.module}/list?${E}limit=99`).then(async S=>{var k;const v=await S.json();return w.skels=v.skellist.reduce((_,R)=>(_[R.key]=R,_),{}),(k=v.skellist)==null?void 0:k.map(_=>({text:B(C.bonestructure.format,{dest:_}),value:_.key,data:_}))})}return h.onMounted(()=>{(!m.value||m.value.length===0)&&x.emit("change",m.name,[],m.lang)}),{state:w,boneState:C,addMultipleEntry:N,removeMultipleEntries:M,getList:D}}}),cl=m=>(h.pushScopeId("data-v-eeea51c6"),m=m(),h.popScopeId(),m),rA={class:"actionbar"},sA=["title"],aA=[cl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],lA=["source"],cA=["title"],dA=cl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function hA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",rA,[m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:0,variant:"danger",title:m.$t("bone.del"),outline:"",class:"delete-btn",onClick:x[0]||(x[0]=w=>m.openSelector())},aA,8,sA)):h.createCommentVNode("",!0),h.createElementVNode("sl-combobox",{source:m.getList,hoist:"",onSlItemSelect:x[1]||(x[1]=w=>{var D;return m.addMultipleEntry(m.lang,{dest:(D=m.state.skels)==null?void 0:D[w.detail.item.value],rel:m.state.hasUsing?void 0:null})})},null,40,lA),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:1,variant:"success",title:m.$t("bone.add"),outline:"",class:"add-btn",onClick:x[2]||(x[2]=w=>m.addMultipleEntry(m.lang))},[dA,h.createTextVNode(" "+h.toDisplayString(m.$t("bone.list")),1)],8,cA)):h.createCommentVNode("",!0)])}const uA=de(iA,[["render",hA],["__scopeId","data-v-eeea51c6"]]);var dl={VITE_API_URL:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const mA=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.inject("addMultipleEntry");h.inject("formatString");const B=null,M=h.ref(),w=h.reactive({skels:{},uploadinput:null,loading:!1,droparea:!1,hasUsing:h.computed(()=>C==null?void 0:C.bonestructure.using)});function D(S){const v={fileName:S.name,mimeType:S.type||"application/octet-stream",size:S.size.toString()};return new Promise((k,_)=>{we.securePost(`/${dl.VITE_DEFAULT_RENDERER||"vi"}/file/getUploadURL`,{dataObj:v}).then(async R=>{let T=await R.json();fetch(T.values.uploadUrl,{body:S,method:"POST",mode:"no-cors"}).then(async O=>{const F={key:T.values.uploadKey,node:void 0,skelType:"leaf"};we.securePost(`/${dl.VITE_DEFAULT_RENDERER||"vi"}/file/add`,{dataObj:F}).then(async L=>{let $=await L.json();$.action==="addSuccess"?k($.values):_($)}).catch(L=>{_(L)})}).catch(O=>{_(O)})}).catch(R=>{_(R)})})}async function p(S){w.loading=!0;for(let v of S.target.files){let k=await D(v);M.value.value=null;let _=null;w.hasUsing&&(_=void 0),N(m.lang,{dest:k,rel:_})}w.loading=!1}async function E(S){w.loading=!0,w.droparea=!1;for(let v of S.dataTransfer.files){let k=await D(v);M.value.value=null;let _=null;w.hasUsing&&(_=void 0),N(m.lang,{dest:k,rel:_})}w.loading=!1}return h.onMounted(()=>{(!m.value||m.value.length===0)&&x.emit("change",m.name,[],m.lang)}),{state:w,boneState:C,addMultipleEntry:N,removeMultipleEntries:B,uploadFile:D,uploadinput:M,handleUpload:p,handleDrop:E}}}),cr=m=>(h.pushScopeId("data-v-9bac9f8a"),m=m(),h.popScopeId(),m),gA=["title"],pA=[cr(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],fA={key:1,class:"droparea"},kA=["multiple"],bA=["title"],wA=[cr(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1))],AA=["title"],_A=cr(()=>h.createElementVNode("sl-icon",{name:"upload"},null,-1)),CA={key:0,slot:"suffix"};function vA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",{class:"actionbar",onDragover:x[4]||(x[4]=h.withModifiers(w=>m.state.droparea=!0,["prevent"])),onDragleave:x[5]||(x[5]=w=>m.state.droparea=!1),onDrop:x[6]||(x[6]=h.withModifiers((...w)=>m.handleDrop&&m.handleDrop(...w),["prevent"]))},[m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:0,variant:"danger",title:m.$t("bone.del"),outline:"",class:"delete-btn",onClick:x[0]||(x[0]=w=>m.openSelector())},pA,8,gA)):h.createCommentVNode("",!0),m.state.droparea?(h.openBlock(),h.createElementBlock("div",fA," Dateien hier hinziehen ")):h.createCommentVNode("",!0),h.createElementVNode("input",{ref:"uploadinput",hidden:"",type:"file",multiple:m.boneState.multiple,onChange:x[1]||(x[1]=(...w)=>m.handleUpload&&m.handleUpload(...w))},null,40,kA),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:2,outline:"",title:m.$t("bone.list"),class:"add-btn",onClick:x[2]||(x[2]=w=>m.addMultipleEntry(m.lang))},wA,8,bA)):h.createCommentVNode("",!0),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:3,variant:"success",outline:"",title:m.$t("bone.upload"),class:"upload-btn",onClick:x[3]||(x[3]=w=>m.uploadinput.click())},[_A,h.createTextVNode(" "+h.toDisplayString(m.$t("bone.upload"))+" ",1),m.state.loading?(h.openBlock(),h.createElementBlock("sl-spinner",CA)):h.createCommentVNode("",!0)],8,AA)):h.createCommentVNode("",!0)],32)}const yA=de(mA,[["render",vA],["__scopeId","data-v-9bac9f8a"]]),dr=or.defineStore("boneStore",()=>{const m=h.reactive({additionalBones:h.shallowRef({}),defaultBones:h.shallowRef({rawBone:ar,keyBone:Ua,stringBone:Wa,emailBone:Ka,dateBone:Ga,booleanBone:Ja,selectBone:Za,passwordBone:Ya,recordBone:Xa,numericBone:tl,colorBone:el,relationalBone:nl,jsonBone:Aw,fileBone:il,textBone:sl,spatialBone:al}),actionbars:h.shallowRef({"relational.tree.leaf.file.file":yA,"relational.":uA}),multibones:h.shallowRef(["select","select."])});function x(w,D){m.additionalBones[w]=D}function C(){let w=m.defaultBones;for(const[D,p]of Object.entries(m.additionalBones))w.add(p);return w}function N(w){if(Object.keys(m.additionalBones).includes(w))return m.additionalBones[w];{let D=w.split("."),p=Object.entries(m.additionalBones).filter(E=>E[0].startsWith(D[0]+"."));if(p.length>0){p.sort((E,S)=>S.length-E.length);for(let E of p)if(w.startsWith(E[0]))return m.additionalBones[E[0]]}}return w==="date"?Ga:w==="key"?Ua:w==="str.email"?Ka:w==="str"||w.startsWith("str.")?Wa:w==="select"||w.startsWith("select.")?Za:w==="bool"?Ja:w==="password"?Ya:w==="record"?Xa:w==="numeric"||w.startsWith("numeric.")?tl:w==="relational.tree.leaf.file.file"?il:w==="relational"||w.startsWith("relational.")?nl:w==="color"?el:w==="text"?sl:w==="spatial"?al:ar}function B(w,D){m.actionbars[w]=D}function M(w){if(Object.keys(m.actionbars).includes(w))return m.actionbars[w];{let D=w.split("."),p=Object.entries(m.actionbars).filter(E=>E[0].startsWith(D[0]+"."));if(p.length>0){p.sort((E,S)=>S.length-E.length);for(let E of p)if(w.startsWith(E[0]))return m.actionbars[E[0]]}}return nA}return{state:m,addBoneWidget:x,getBoneWidget:N,importWidgets:C,addBoneActionbar:B,getBoneActionbar:M}});function EA(m){return dr().getBoneActionbar(m)}function Jt(m){return dr().getBoneWidget(m)}function xA(m){const x=dr();if(x.state.multibones.includes(m))return!0;{let C=m.split("."),N=Object.entries(x.state.multibones).filter(B=>B[1].startsWith(C[0]+"."));if(N.length>0){N.sort((B,M)=>M.length-B.length);for(let B of N)if(m.startsWith(B[1]))return!0}}return!1}const hr=m=>(h.pushScopeId("data-v-00cf0e53"),m=m(),h.popScopeId(),m),SA=hr(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Nutzterdaten",-1)),DA=hr(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Lieferadresse",-1)),BA={key:0},TA=hr(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Rechnungsadresse",-1)),IA=de({__name:"UserInformation",props:{mode:{type:String,default:"form"},conditions:{type:Function}},setup(m){const x=vn(),C=h.reactive({formValues:{},requiredFieldsFilled:h.computed(()=>{if(C.isCustomAdress)return Object.keys(C.formValues).includes("city")&&Object.keys(C.formValues).includes("street")&&Object.keys(C.formValues).includes("billing.city")&&Object.keys(C.formValues).includes("billing.street")&&Object.keys(C.formValues).includes("email")&&Object.keys(C.formValues).includes("firstname")&&Object.keys(C.formValues).includes("lastname");if(!C.isCustomAdress)return Object.keys(C.formValues).includes("city")&&Object.keys(C.formValues).includes("street")&&Object.keys(C.formValues).includes("email")&&Object.keys(C.formValues).includes("firstname")&&Object.keys(C.formValues).includes("lastname")}),isCustomAdress:!1,addSkel:null,errors:{}});function N(w){w.target.checked&&(C.isCustomAdress=!1),w.target.checked||(C.isCustomAdress=!0)}function B(w,D){for(const[p,E]of Object.entries(D.value[0]))C.formValues[p]=E}function M(w){let D={};return w instanceof Object?w:(w.forEach(p=>{let E=p[0],S=p[1];D[E]=S}),D)}return h.watch(C.formValues,w=>{Object.entries(w).forEach(([D,p])=>{p===""&&delete C.formValues[D]})}),h.onBeforeMount(async()=>{await x.getAdressStructure(),C.addSkel=x.state.structure.address}),(w,D)=>{const p=h.resolveComponent("bone");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",null,[SA,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(M(C.addSkel),(E,S)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:S},[E.visible&&E.params.group==="Customer Info"?(h.openBlock(),h.createBlock(p,{key:0,is:h.unref(Jt)(E.type),name:S,structure:M(C.addSkel),errors:C.errors[S]?C.errors[S]:[],skel:C.formValues,onChange:v=>B(S,v),class:"viur-shop-form-grid-w-2"},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))]),h.createElementVNode("div",null,[DA,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(M(C.addSkel),(E,S)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:S},[E.visible&&E.params.group==="Customer Address"?(h.openBlock(),h.createBlock(p,{key:0,is:h.unref(Jt)(E.type),name:S,structure:M(C.addSkel),errors:C.errors[S]?C.errors[S]:[],skel:C.formValues,onChange:v=>B(S,v)},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))]),C.isCustomAdress?(h.openBlock(),h.createElementBlock("div",BA,[TA,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(M(C.addSkel),(E,S)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:S},[E.visible&&E.params.group==="Customer Address"?(h.openBlock(),h.createBlock(p,{key:0,is:h.unref(Jt)(E.type),name:S,structure:M(C.addSkel),errors:C.errors[S]?C.errors[S]:[],skel:C.formValues,onChange:v=>B(S,v)},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))])):h.createCommentVNode("",!0),h.createElementVNode("sl-checkbox",{onSlChange:N,checked:""}," Rechnungsadresse wie Lieferadresse ",32)],64)}}},[["__scopeId","data-v-00cf0e53"]]),PA=h.defineComponent({props:{isDragging:Boolean,draggingLineBottom:Boolean,draggingLineTop:Boolean},components:{},emits:["change","delete","handleDragStart","handleDragEnd","handleDragOver","handleDrop"],setup(m,x){const C=h.inject("boneState");return{state:h.reactive({isDraggable:!1}),boneState:C}}}),hl=m=>(h.pushScopeId("data-v-141aaf9b"),m=m(),h.popScopeId(),m),RA=["draggable"],OA=["disabled"],NA=[hl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"grip-vertical"},null,-1))],zA={class:"value"},MA=["disabled","title"],FA=[hl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))];function VA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["value-line",{"is-dragging":m.isDragging,"dragging-line-bottom":m.draggingLineBottom,"dragging-line-top":m.draggingLineTop}]),draggable:m.state.isDraggable,onDragover:x[2]||(x[2]=w=>m.$emit("handleDragOver",w)),onDrop:x[3]||(x[3]=w=>m.$emit("handleDrop",w)),onDragstart:x[4]||(x[4]=w=>m.$emit("handleDragStart",w)),onDragend:x[5]||(x[5]=w=>m.$emit("handleDragEnd"))},[h.createElementVNode("sl-button",{disabled:m.boneState.readonly,class:"drag-button",onMousedown:x[0]||(x[0]=w=>m.state.isDraggable=!0)},NA,40,OA),h.createElementVNode("div",zA,[h.renderSlot(m.$slots,"default",{},void 0,!0)]),h.createElementVNode("sl-button",{variant:"danger",disabled:m.boneState.readonly,outline:"",title:m.$t("bone.del"),class:"delete-btn",onClick:x[1]||(x[1]=w=>m.$emit("delete"))},FA,8,MA)],42,RA)}const LA=de(PA,[["render",VA],["__scopeId","data-v-141aaf9b"]]),jA=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change","handleClick"],setup(m,x){const C=h.inject("boneState");return{state:h.reactive({debug:!1}),boneState:C}}}),$A={class:"bone-name"},HA={key:0},qA={class:"bone"};function UA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("label",$A,[h.renderSlot(m.$slots,"default",{},void 0,!0),h.createCommentVNode("",!0)]),m.state.debug?(h.openBlock(),h.createElementBlock("div",HA,[h.createElementVNode("div",qA,h.toDisplayString(m.name),1),h.createElementVNode("pre",null," "+h.toDisplayString(m.boneState)+`
|
|
6529
|
+
`)}function Ma(o,e,t=" "){return`${t.repeat(Math.max(0,e))}${o}`}var Rf=B(2896),nD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};G()(Rf.Z,nD),Rf.Z.locals;const Of="SourceEditingMode";function oD(o){return function(e){return e.startsWith("<")}(o)?tD(o):o}const Fa="removeFormat";class iD extends q{static get pluginName(){return"RemoveFormatUI"}init(){const e=this.editor,t=e.t;e.ui.componentFactory.add(Fa,n=>{const i=e.commands.get(Fa),r=new Ae(n);return r.set({label:t("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),this.listenTo(r,"execute",()=>{e.execute(Fa),e.editing.view.focus()}),r})}}class rD extends ne{refresh(){const e=this.editor.model;this.isEnabled=!!ze(this._getFormattingItems(e.document.selection,e.schema))}execute(){const e=this.editor.model,t=e.schema;e.change(n=>{for(const i of this._getFormattingItems(e.document.selection,t))if(i.is("selection"))for(const r of this._getFormattingAttributes(i,t))n.removeSelectionAttribute(r);else{const r=n.createRangeOn(i);for(const s of this._getFormattingAttributes(i,t))n.removeAttribute(s,r)}})}*_getFormattingItems(e,t){const n=i=>!!ze(this._getFormattingAttributes(i,t));for(const i of e.getRanges())for(const r of i.getItems())!t.isBlock(r)&&n(r)&&(yield r);for(const i of e.getSelectedBlocks())n(i)&&(yield i);n(e)&&(yield e)}*_getFormattingAttributes(e,t){for(const[n]of e.getAttributes()){const i=t.getAttributeProperties(n);i&&i.isFormatting&&(yield n)}}}class sD extends q{static get pluginName(){return"RemoveFormatEditing"}init(){const e=this.editor;e.commands.add("removeFormat",new rD(e))}}var aD=Object.defineProperty,Nf=Object.getOwnPropertySymbols,lD=Object.prototype.hasOwnProperty,cD=Object.prototype.propertyIsEnumerable,zf=(o,e,t)=>e in o?aD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Mf=(o,e)=>{for(var t in e||(e={}))lD.call(e,t)&&zf(o,t,e[t]);if(Nf)for(var t of Nf(e))cD.call(e,t)&&zf(o,t,e[t]);return o};function wn(o,e,t,n){e&&function(i,r,s){if(r.attributes)for(const[a]of Object.entries(r.attributes))i.removeAttribute(a,s);if(r.styles)for(const a of Object.keys(r.styles))i.removeStyle(a,s);r.classes&&i.removeClass(r.classes,s)}(o,e,n),t&&Kt(o,t,n)}function Kt(o,e,t){if(e.attributes)for(const[n,i]of Object.entries(e.attributes))o.setAttribute(n,i,t);e.styles&&o.setStyle(e.styles,t),e.classes&&o.addClass(e.classes,t)}function dD(o,e){const t=qt(o);let n="attributes";for(n in e)t[n]=n=="classes"?Array.from(new Set([...o[n]||[],...e[n]])):Mf(Mf({},o[n]),e[n]);return t}function An(o,e,t,n,i){const r=e.getAttribute(t),s={};for(const a of["attributes","styles","classes"]){if(a!=n){r&&r[a]&&(s[a]=r[a]);continue}if(n=="classes"){const c=new Set(r&&r.classes||[]);i(c),c.size&&(s[a]=Array.from(c));continue}const l=new Map(Object.entries(r&&r[a]||{}));i(l),l.size&&(s[a]=Object.fromEntries(l))}Object.keys(s).length?e.is("documentSelection")?o.setSelectionAttribute(t,s):o.setAttribute(t,s,e):r&&(e.is("documentSelection")?o.removeSelectionAttribute(t):o.removeAttribute(t,e))}function Va({model:o}){return(e,t)=>t.writer.createElement(o,{htmlContent:e.getCustomProperty("$rawContent")})}function hD(o,{view:e,isInline:t}){const n=o.t;return(i,{writer:r})=>{const s=n("HTML object"),a=Qi(e,i,r),l=i.getAttribute("htmlAttributes");return r.addClass("html-object-embed__content",a),l&&Kt(r,l,a),ia(r.createContainerElement(t?"span":"div",{class:"html-object-embed","data-html-object-embed-label":s},a),r,{label:s})}}function Qi(o,e,t){return t.createRawElement(o,null,(n,i)=>{i.setContentOf(n,e.getAttribute("htmlContent"))})}function uD({priority:o,view:e}){return(t,n)=>{if(!t)return;const{writer:i}=n,r=i.createAttributeElement(e,null,{priority:o});return Kt(i,t,r),r}}function Vo({view:o},e){return t=>{t.on(`element:${o}`,(n,i,r)=>{if(!i.modelRange||i.modelRange.isCollapsed)return;const s=e.processViewAttributes(i.viewItem,r);s&&r.writer.setAttribute("htmlAttributes",s,i.modelRange)},{priority:"low"})}}function Lo({model:o}){return e=>{e.on(`attribute:htmlAttributes:${o}`,(t,n,i)=>{if(!i.consumable.consume(n.item,t.name))return;const{attributeOldValue:r,attributeNewValue:s}=n;wn(i.writer,r,s,i.mapper.toViewElement(n.item))})}}const mD=[{model:"codeBlock",view:"pre"},{model:"paragraph",view:"p"},{model:"blockQuote",view:"blockquote"},{model:"listItem",view:"li"},{model:"pageBreak",view:"div"},{model:"rawHtml",view:"div"},{model:"table",view:"table"},{model:"tableRow",view:"tr"},{model:"tableCell",view:"td"},{model:"tableCell",view:"th"},{model:"tableColumnGroup",view:"colgroup"},{model:"tableColumn",view:"col"},{model:"caption",view:"caption"},{model:"caption",view:"figcaption"},{model:"imageBlock",view:"img"},{model:"imageInline",view:"img"},{model:"htmlP",view:"p",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlBlockquote",view:"blockquote",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlTable",view:"table",modelSchema:{allowWhere:"$block",isBlock:!0}},{model:"htmlTbody",view:"tbody",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlThead",view:"thead",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlTfoot",view:"tfoot",modelSchema:{allowIn:"htmlTable",isBlock:!1}},{model:"htmlCaption",view:"caption",modelSchema:{allowIn:"htmlTable",allowChildren:"$text",isBlock:!1}},{model:"htmlColgroup",view:"colgroup",modelSchema:{allowIn:"htmlTable",allowChildren:"col",isBlock:!1}},{model:"htmlCol",view:"col",modelSchema:{allowIn:"htmlColgroup",isBlock:!1}},{model:"htmlTr",view:"tr",modelSchema:{allowIn:["htmlTable","htmlThead","htmlTbody"],isLimit:!0}},{model:"htmlTd",view:"td",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlTh",view:"th",modelSchema:{allowIn:"htmlTr",allowContentOf:"$container",isLimit:!0,isBlock:!1}},{model:"htmlFigure",view:"figure",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFigcaption",view:"figcaption",modelSchema:{allowIn:"htmlFigure",allowChildren:"$text",isBlock:!1}},{model:"htmlAddress",view:"address",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlAside",view:"aside",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlMain",view:"main",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDetails",view:"details",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSummary",view:"summary",modelSchema:{allowChildren:"$text",allowIn:"htmlDetails",isBlock:!1}},{model:"htmlDiv",view:"div",paragraphLikeModel:"htmlDivParagraph",modelSchema:{inheritAllFrom:"$container"}},{model:"htmlFieldset",view:"fieldset",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlLegend",view:"legend",modelSchema:{allowIn:"htmlFieldset",allowChildren:"$text"}},{model:"htmlHeader",view:"header",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlFooter",view:"footer",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlForm",view:"form",modelSchema:{inheritAllFrom:"$container",isBlock:!0}},{model:"htmlHgroup",view:"hgroup",modelSchema:{allowChildren:["htmlH1","htmlH2","htmlH3","htmlH4","htmlH5","htmlH6"],isBlock:!1}},{model:"htmlH1",view:"h1",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH2",view:"h2",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH3",view:"h3",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH4",view:"h4",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH5",view:"h5",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlH6",view:"h6",modelSchema:{inheritAllFrom:"$block"}},{model:"$htmlList",modelSchema:{allowWhere:"$container",allowChildren:["$htmlList","htmlLi"],isBlock:!1}},{model:"htmlDir",view:"dir",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlMenu",view:"menu",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlUl",view:"ul",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlOl",view:"ol",modelSchema:{inheritAllFrom:"$htmlList"}},{model:"htmlLi",view:"li",modelSchema:{allowIn:"$htmlList",allowChildren:"$text",isBlock:!1}},{model:"htmlPre",view:"pre",modelSchema:{inheritAllFrom:"$block"}},{model:"htmlArticle",view:"article",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlSection",view:"section",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlNav",view:"nav",modelSchema:{inheritAllFrom:"$container",isBlock:!1}},{model:"htmlDivDl",view:"div",modelSchema:{allowChildren:["htmlDt","htmlDd"],allowIn:"htmlDl"}},{model:"htmlDl",view:"dl",modelSchema:{allowWhere:"$container",allowChildren:["htmlDt","htmlDd","htmlDivDl"],isBlock:!1}},{model:"htmlDt",view:"dt",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlDd",view:"dd",modelSchema:{allowChildren:"$block",isBlock:!1}},{model:"htmlCenter",view:"center",modelSchema:{inheritAllFrom:"$container",isBlock:!1}}],gD=[{model:"htmlLiAttributes",view:"li",appliesToBlock:!0},{model:"htmlListAttributes",view:"ol",appliesToBlock:!0},{model:"htmlListAttributes",view:"ul",appliesToBlock:!0},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"table"},{model:"htmlTheadAttributes",view:"thead",appliesToBlock:"table"},{model:"htmlTbodyAttributes",view:"tbody",appliesToBlock:"table"},{model:"htmlFigureAttributes",view:"figure",appliesToBlock:"imageBlock"},{model:"htmlAcronym",view:"acronym",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTt",view:"tt",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlFont",view:"font",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlTime",view:"time",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlVar",view:"var",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBig",view:"big",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSmall",view:"small",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSamp",view:"samp",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlQ",view:"q",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlOutput",view:"output",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlKbd",view:"kbd",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdi",view:"bdi",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlBdo",view:"bdo",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlAbbr",view:"abbr",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlA",view:"a",priority:5,coupledAttribute:"linkHref",attributeProperties:{copyOnEnter:!0}},{model:"htmlStrong",view:"strong",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlB",view:"b",coupledAttribute:"bold",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlI",view:"i",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlEm",view:"em",coupledAttribute:"italic",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlS",view:"s",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDel",view:"del",coupledAttribute:"strikethrough",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlIns",view:"ins",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlU",view:"u",coupledAttribute:"underline",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSub",view:"sub",coupledAttribute:"subscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSup",view:"sup",coupledAttribute:"superscript",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCode",view:"code",coupledAttribute:"code",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlMark",view:"mark",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlSpan",view:"span",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlCite",view:"cite",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlLabel",view:"label",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlDfn",view:"dfn",attributeProperties:{copyOnEnter:!0,isFormatting:!0}},{model:"htmlObject",view:"object",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlIframe",view:"iframe",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlInput",view:"input",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlButton",view:"button",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlTextarea",view:"textarea",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlSelect",view:"select",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlVideo",view:"video",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlEmbed",view:"embed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlOembed",view:"oembed",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlAudio",view:"audio",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlImg",view:"img",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlCanvas",view:"canvas",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlMeter",view:"meter",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlProgress",view:"progress",isObject:!0,modelSchema:{inheritAllFrom:"$inlineObject"}},{model:"htmlScript",view:"script",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlStyle",view:"style",modelSchema:{allowWhere:["$text","$block"],isInline:!0}},{model:"htmlCustomElement",view:"$customElement",modelSchema:{allowWhere:["$text","$block"],isInline:!0}}],pD=as(function(o,e,t,n){wd(o,e,t,n)});var fD=Object.defineProperty,kD=Object.defineProperties,bD=Object.getOwnPropertyDescriptors,Ff=Object.getOwnPropertySymbols,wD=Object.prototype.hasOwnProperty,AD=Object.prototype.propertyIsEnumerable,Vf=(o,e,t)=>e in o?fD(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,Xi=(o,e)=>{for(var t in e||(e={}))wD.call(e,t)&&Vf(o,t,e[t]);if(Ff)for(var t of Ff(e))AD.call(e,t)&&Vf(o,t,e[t]);return o},er=(o,e)=>kD(o,bD(e));class Xn extends q{constructor(){super(...arguments),this._definitions=[]}static get pluginName(){return"DataSchema"}init(){for(const e of mD)this.registerBlockElement(e);for(const e of gD)this.registerInlineElement(e)}registerBlockElement(e){this._definitions.push(er(Xi({},e),{isBlock:!0}))}registerInlineElement(e){this._definitions.push(er(Xi({},e),{isInline:!0}))}extendBlockElement(e){this._extendDefinition(er(Xi({},e),{isBlock:!0}))}extendInlineElement(e){this._extendDefinition(er(Xi({},e),{isInline:!0}))}getDefinitionsForView(e,t=!1){const n=new Set;for(const i of this._getMatchingViewDefinitions(e)){if(t)for(const r of this._getReferences(i.model))n.add(r);n.add(i)}return n}getDefinitionsForModel(e){return this._definitions.filter(t=>t.model==e)}_getMatchingViewDefinitions(e){return this._definitions.filter(t=>t.view&&function(n,i){return typeof n=="string"?n===i:n instanceof RegExp?n.test(i):!1}(e,t.view))}*_getReferences(e){const t=["inheritAllFrom","inheritTypesFrom","allowWhere","allowContentOf","allowAttributesOf"],n=this._definitions.filter(i=>i.model==e);for(const{modelSchema:i}of n)if(i)for(const r of t)for(const s of Pe(i[r]||[])){const a=this._definitions.filter(l=>l.model==s);for(const l of a)s!==e&&(yield*this._getReferences(l.model),yield l)}}_extendDefinition(e){const t=Array.from(this._definitions.entries()).filter(([,n])=>n.model==e.model);if(t.length!=0)for(const[n,i]of t)this._definitions[n]=pD({},i,e,(r,s)=>Array.isArray(r)?r.concat(s):void 0);else this._definitions.push(e)}}const _D=function(o,e,t,n){for(var i=o.length,r=t+-1;++r<i;)if(e(o[r],r,o))return r;return-1},CD=function(o){return o!=o},vD=function(o,e,t){for(var n=t-1,i=o.length;++n<i;)if(o[n]===e)return n;return-1},yD=function(o,e,t){return e==e?vD(o,e,t):_D(o,CD,t)};var Lf=Array.prototype.splice;const ED=function(o,e,t,n){var i=yD,r=-1,s=e.length,a=o;for(o===e&&(e=Tr(e)),t;++r<s;)for(var l=0,c=e[r],d=c;(l=i(a,d,l))>-1;)a!==o&&Lf.call(a,l,1),Lf.call(o,l,1);return o},xD=_d(function(o,e){return o&&o.length&&e&&e.length?ED(o,e):o});var jf=B(5049),SD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};G()(jf.Z,SD),jf.Z.locals;class Fe extends q{constructor(e){super(e),this._dataSchema=e.plugins.get("DataSchema"),this._allowedAttributes=new Mn,this._disallowedAttributes=new Mn,this._allowedElements=new Set,this._disallowedElements=new Set,this._dataInitialized=!1,this._coupledAttributes=null,this._registerElementsAfterInit(),this._registerElementHandlers(),this._registerModelPostFixer()}static get pluginName(){return"DataFilter"}static get requires(){return[Xn,Mo]}loadAllowedConfig(e){for(const t of e){const n=t.name||/[\s\S]+/,i=qf(t);this.allowElement(n),i.forEach(r=>this.allowAttributes(r))}}loadDisallowedConfig(e){for(const t of e){const n=t.name||/[\s\S]+/,i=qf(t);i.length==0?this.disallowElement(n):i.forEach(r=>this.disallowAttributes(r))}}allowElement(e){for(const t of this._dataSchema.getDefinitionsForView(e,!0))this._addAllowedElement(t),this._coupledAttributes=null}disallowElement(e){for(const t of this._dataSchema.getDefinitionsForView(e,!1))this._disallowedElements.add(t.view)}allowAttributes(e){this._allowedAttributes.add(e)}disallowAttributes(e){this._disallowedAttributes.add(e)}processViewAttributes(e,t){return $f(e,t,this._disallowedAttributes),$f(e,t,this._allowedAttributes)}_addAllowedElement(e){if(!this._allowedElements.has(e)){if(this._allowedElements.add(e),"appliesToBlock"in e&&typeof e.appliesToBlock=="string")for(const t of this._dataSchema.getDefinitionsForModel(e.appliesToBlock))t.isBlock&&this._addAllowedElement(t);this._dataInitialized&&this.editor.data.once("set",()=>{this._fireRegisterEvent(e)},{priority:te.get("highest")+1})}}_registerElementsAfterInit(){this.editor.data.on("init",()=>{this._dataInitialized=!0;for(const e of this._allowedElements)this._fireRegisterEvent(e)},{priority:te.get("highest")+1})}_registerElementHandlers(){this.on("register",(e,t)=>{const n=this.editor.model.schema;if(t.isObject&&!n.isRegistered(t.model))this._registerObjectElement(t);else if(t.isBlock)this._registerBlockElement(t);else{if(!t.isInline)throw new I("data-filter-invalid-definition",null,t);this._registerInlineElement(t)}e.stop()},{priority:"lowest"})}_registerModelPostFixer(){const e=this.editor.model;e.document.registerPostFixer(t=>{const n=e.document.differ.getChanges();let i=!1;const r=this._getCoupledAttributesMap();for(const s of n){if(s.type!="attribute"||s.attributeNewValue!==null)continue;const a=r.get(s.attributeKey);if(a)for(const{item:l}of s.range.getWalker({shallow:!0}))for(const c of a)l.hasAttribute(c)&&(t.removeAttribute(c,l),i=!0)}return i})}_getCoupledAttributesMap(){if(this._coupledAttributes)return this._coupledAttributes;this._coupledAttributes=new Map;for(const e of this._allowedElements)if(e.coupledAttribute&&e.model){const t=this._coupledAttributes.get(e.coupledAttribute);t?t.push(e.model):this._coupledAttributes.set(e.coupledAttribute,[e.model])}return this._coupledAttributes}_fireRegisterEvent(e){e.view&&this._disallowedElements.has(e.view)||this.fire(e.view?`register:${e.view}`:"register",e)}_registerObjectElement(e){const t=this.editor,n=t.model.schema,i=t.conversion,{view:r,model:s}=e;n.register(s,e.modelSchema),r&&(n.extend(e.model,{allowAttributes:["htmlAttributes","htmlContent"]}),t.data.registerRawContentMatcher({name:r}),i.for("upcast").elementToElement({view:r,model:Va(e),converterPriority:te.get("low")+1}),i.for("upcast").add(Vo(e,this)),i.for("editingDowncast").elementToStructure({model:{name:s,attributes:["htmlAttributes"]},view:hD(t,e)}),i.for("dataDowncast").elementToElement({model:s,view:(a,{writer:l})=>Qi(r,a,l)}),i.for("dataDowncast").add(Lo(e)))}_registerBlockElement(e){const t=this.editor,n=t.model.schema,i=t.conversion,{view:r,model:s}=e;if(!n.isRegistered(e.model)){if(n.register(e.model,e.modelSchema),!r)return;i.for("upcast").elementToElement({model:s,view:r,converterPriority:te.get("low")+1}),i.for("downcast").elementToElement({model:s,view:r})}r&&(n.extend(e.model,{allowAttributes:"htmlAttributes"}),i.for("upcast").add(Vo(e,this)),i.for("downcast").add(Lo(e)))}_registerInlineElement(e){const t=this.editor,n=t.model.schema,i=t.conversion,r=e.model;e.appliesToBlock||(n.extend("$text",{allowAttributes:r}),e.attributeProperties&&n.setAttributeProperties(r,e.attributeProperties),i.for("upcast").add(function({view:s,model:a},l){return c=>{c.on(`element:${s}`,(d,u,g)=>{let f=l.processViewAttributes(u.viewItem,g);if(f||g.consumable.test(u.viewItem,{name:!0})){f=f||{},g.consumable.consume(u.viewItem,{name:!0}),u.modelRange||(u=Object.assign(u,g.convertChildren(u.viewItem,u.modelCursor)));for(const b of u.modelRange.getItems())if(g.schema.checkAttribute(b,a)){const A=dD(f,b.getAttribute(a)||{});g.writer.setAttribute(a,A,b)}}},{priority:"low"})}}(e,this)),i.for("downcast").attributeToElement({model:r,view:uD(e)}))}}function $f(o,e,t){const n=function(l,{consumable:c},d){const u=d.matchAll(l)||[],g=[];for(const f of u)DD(c,l,f),delete f.match.name,c.consume(l,f.match),g.push(f);return g}(o,e,t),{attributes:i,styles:r,classes:s}=function(l){const c={attributes:new Set,classes:new Set,styles:new Set};for(const d of l)for(const u in c)(d.match[u]||[]).forEach(g=>c[u].add(g));return c}(n),a={};if(i.size)for(const l of i)_c(l)||i.delete(l);return i.size&&(a.attributes=Hf(i,l=>o.getAttribute(l))),r.size&&(a.styles=Hf(r,l=>o.getStyle(l))),s.size&&(a.classes=Array.from(s)),Object.keys(a).length?a:null}function DD(o,e,t){for(const n of["attributes","classes","styles"]){const i=t.match[n];if(i)for(const r of Array.from(i))o.test(e,{[n]:[r]})||xD(i,r)}}function Hf(o,e){const t={};for(const n of o)e(n)!==void 0&&(t[n]=e(n));return t}function La(o,e){const{name:t}=o,n=o[e];return Ke(n)?Object.entries(n).map(([i,r])=>({name:t,[e]:{[i]:r}})):Array.isArray(n)?n.map(i=>({name:t,[e]:[i]})):[o]}function qf(o){const{name:e,attributes:t,classes:n,styles:i}=o,r=[];return t&&r.push(...La({name:e,attributes:t},"attributes")),n&&r.push(...La({name:e,classes:n},"classes")),i&&r.push(...La({name:e,styles:i},"styles")),r}class BD extends q{static get requires(){return[Fe]}static get pluginName(){return"CodeBlockElementSupport"}init(){if(!this.editor.plugins.has("CodeBlockEditing"))return;const e=this.editor.plugins.get(Fe);e.on("register:pre",(t,n)=>{if(n.model!=="codeBlock")return;const i=this.editor,r=i.model.schema,s=i.conversion;r.extend("codeBlock",{allowAttributes:["htmlAttributes","htmlContentAttributes"]}),s.for("upcast").add(function(a){return l=>{l.on("element:code",(c,d,u)=>{const g=d.viewItem,f=g.parent;function b(A,y){const P=a.processViewAttributes(A,u);P&&u.writer.setAttribute(y,P,d.modelRange)}f&&f.is("element","pre")&&(b(f,"htmlAttributes"),b(g,"htmlContentAttributes"))},{priority:"low"})}}(e)),s.for("downcast").add(a=>{a.on("attribute:htmlAttributes:codeBlock",(l,c,d)=>{if(!d.consumable.consume(c.item,l.name))return;const{attributeOldValue:u,attributeNewValue:g}=c,f=d.mapper.toViewElement(c.item).parent;wn(d.writer,u,g,f)}),a.on("attribute:htmlContentAttributes:codeBlock",(l,c,d)=>{if(!d.consumable.consume(c.item,l.name))return;const{attributeOldValue:u,attributeNewValue:g}=c,f=d.mapper.toViewElement(c.item);wn(d.writer,u,g,f)})}),t.stop()})}}class TD extends q{static get requires(){return[Fe]}static get pluginName(){return"DualContentModelElementSupport"}init(){this.editor.plugins.get(Fe).on("register",(e,t)=>{const n=t,i=this.editor,r=i.model.schema,s=i.conversion;if(!n.paragraphLikeModel||r.isRegistered(n.model)||r.isRegistered(n.paragraphLikeModel))return;const a={model:n.paragraphLikeModel,view:n.view};r.register(n.model,n.modelSchema),r.register(a.model,{inheritAllFrom:"$block"}),s.for("upcast").elementToElement({view:n.view,model:(l,{writer:c})=>this._hasBlockContent(l)?c.createElement(n.model):c.createElement(a.model),converterPriority:te.get("low")+.5}),s.for("downcast").elementToElement({view:n.view,model:n.model}),this._addAttributeConversion(n),s.for("downcast").elementToElement({view:a.view,model:a.model}),this._addAttributeConversion(a),e.stop()})}_hasBlockContent(e){const t=this.editor.editing.view,n=t.domConverter.blockElements;for(const i of t.createRangeIn(e).getItems())if(i.is("element")&&n.includes(i.name))return!0;return!1}_addAttributeConversion(e){const t=this.editor,n=t.conversion,i=t.plugins.get(Fe);t.model.schema.extend(e.model,{allowAttributes:"htmlAttributes"}),n.for("upcast").add(Vo(e,i)),n.for("downcast").add(Lo(e))}}class ID extends q{static get requires(){return[Xn,zo]}static get pluginName(){return"HeadingElementSupport"}init(){const e=this.editor;if(!e.plugins.has("HeadingEditing"))return;const t=e.config.get("heading.options");this.registerHeadingElements(e,t),this.removeClassesOnEnter(e,t)}registerHeadingElements(e,t){const n=e.plugins.get(Xn),i=[];for(const r of t)"model"in r&&"view"in r&&(n.registerBlockElement({view:r.view,model:r.model}),i.push(r.model));n.extendBlockElement({model:"htmlHgroup",modelSchema:{allowChildren:i}})}removeClassesOnEnter(e,t){const n=e.commands.get("enter");this.listenTo(n,"afterExecute",(i,r)=>{const s=e.model.document.selection.getFirstPosition().parent;t.some(a=>s.is("element",a.model))&&s.childCount===0&&An(r.writer,s,"htmlAttributes","classes",a=>a.clear())})}}function tr(o,e,t){const n=o.createRangeOn(e);for(const{item:i}of n.getWalker())if(i.is("element",t))return i}class PD extends q{static get requires(){return[Fe]}static get pluginName(){return"ImageElementSupport"}init(){const e=this.editor;if(!e.plugins.has("ImageInlineEditing")&&!e.plugins.has("ImageBlockEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(Fe);i.on("register:figure",()=>{n.for("upcast").add(function(r){return s=>{s.on("element:figure",(a,l,c)=>{const d=l.viewItem;if(!l.modelRange||!d.hasClass("image"))return;const u=r.processViewAttributes(d,c);u&&c.writer.setAttribute("htmlFigureAttributes",u,l.modelRange)},{priority:"low"})}}(i))}),i.on("register:img",(r,s)=>{s.model!=="imageBlock"&&s.model!=="imageInline"||(t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlLinkAttributes"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["htmlA","htmlAttributes"]}),n.for("upcast").add(function(a){return l=>{l.on("element:img",(c,d,u)=>{if(!d.modelRange)return;const g=d.viewItem,f=g.parent;function b(y,P){const z=a.processViewAttributes(y,u);z&&u.writer.setAttribute(P,z,d.modelRange)}function A(y){d.modelRange&&d.modelRange.getContainedElement().is("element","imageBlock")&&b(y,"htmlLinkAttributes")}b(g,"htmlAttributes"),f.is("element","a")&&A(f)},{priority:"low"})}}(i)),n.for("downcast").add(a=>{function l(d){a.on(`attribute:${d}:imageInline`,(u,g,f)=>{if(!f.consumable.consume(g.item,u.name))return;const{attributeOldValue:b,attributeNewValue:A}=g,y=f.mapper.toViewElement(g.item);wn(f.writer,b,A,y)},{priority:"low"})}function c(d,u){a.on(`attribute:${u}:imageBlock`,(g,f,b)=>{if(!b.consumable.test(f.item,g.name))return;const{attributeOldValue:A,attributeNewValue:y}=f,P=b.mapper.toViewElement(f.item),z=tr(b.writer,P,d);z&&(wn(b.writer,A,y,z),b.consumable.consume(f.item,g.name))},{priority:"low"}),d==="a"&&a.on("attribute:linkHref:imageBlock",(g,f,b)=>{if(!b.consumable.consume(f.item,"attribute:htmlLinkAttributes:imageBlock"))return;const A=b.mapper.toViewElement(f.item),y=tr(b.writer,A,"a");Kt(b.writer,f.item.getAttribute("htmlLinkAttributes"),y)},{priority:"low"})}l("htmlAttributes"),c("img","htmlAttributes"),c("figure","htmlFigureAttributes"),c("a","htmlLinkAttributes")}),r.stop())})}}class RD extends q{static get requires(){return[Fe]}static get pluginName(){return"MediaEmbedElementSupport"}init(){const e=this.editor;if(!e.plugins.has("MediaEmbed")||e.config.get("mediaEmbed.previewsInData"))return;const t=e.model.schema,n=e.conversion,i=this.editor.plugins.get(Fe),r=this.editor.plugins.get(Xn),s=e.config.get("mediaEmbed.elementName");r.registerBlockElement({model:"media",view:s}),i.on("register:figure",()=>{n.for("upcast").add(function(a){return l=>{l.on("element:figure",(c,d,u)=>{const g=d.viewItem;if(!d.modelRange||!g.hasClass("media"))return;const f=a.processViewAttributes(g,u);f&&u.writer.setAttribute("htmlFigureAttributes",f,d.modelRange)},{priority:"low"})}}(i))}),i.on(`register:${s}`,(a,l)=>{l.model==="media"&&(t.extend("media",{allowAttributes:["htmlAttributes","htmlFigureAttributes"]}),n.for("upcast").add(function(c,d){const u=(g,f,b)=>{function A(y,P){const z=c.processViewAttributes(y,b);z&&b.writer.setAttribute(P,z,f.modelRange)}A(f.viewItem,"htmlAttributes")};return g=>{g.on(`element:${d}`,u,{priority:"low"})}}(i,s)),n.for("dataDowncast").add(function(c){return d=>{function u(g,f){d.on(`attribute:${f}:media`,(b,A,y)=>{if(!y.consumable.consume(A.item,b.name))return;const{attributeOldValue:P,attributeNewValue:z}=A,j=y.mapper.toViewElement(A.item),Y=tr(y.writer,j,g);wn(y.writer,P,z,Y)})}u(c,"htmlAttributes"),u("figure","htmlFigureAttributes")}}(s)),a.stop())})}}class OD extends q{static get requires(){return[Fe]}static get pluginName(){return"ScriptElementSupport"}init(){const e=this.editor.plugins.get(Fe);e.on("register:script",(t,n)=>{const i=this.editor,r=i.model.schema,s=i.conversion;r.register("htmlScript",n.modelSchema),r.extend("htmlScript",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"script"}),s.for("upcast").elementToElement({view:"script",model:Va(n)}),s.for("upcast").add(Vo(n,e)),s.for("downcast").elementToElement({model:"htmlScript",view:(a,{writer:l})=>Qi("script",a,l)}),s.for("downcast").add(Lo(n)),t.stop()})}}class ND extends q{static get requires(){return[Fe]}static get pluginName(){return"TableElementSupport"}init(){const e=this.editor;if(!e.plugins.has("TableEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(Fe),r=e.plugins.get("TableUtils");i.on("register:figure",()=>{n.for("upcast").add(function(s){return a=>{a.on("element:figure",(l,c,d)=>{const u=c.viewItem;if(!c.modelRange||!u.hasClass("table"))return;const g=s.processViewAttributes(u,d);g&&d.writer.setAttribute("htmlFigureAttributes",g,c.modelRange)},{priority:"low"})}}(i))}),i.on("register:table",(s,a)=>{a.model==="table"&&(t.extend("table",{allowAttributes:["htmlAttributes","htmlFigureAttributes","htmlTheadAttributes","htmlTbodyAttributes"]}),n.for("upcast").add(function(l){return c=>{c.on("element:table",(d,u,g)=>{if(!u.modelRange)return;const f=u.viewItem;b(f,"htmlAttributes");for(const A of f.getChildren())A.is("element","thead")&&b(A,"htmlTheadAttributes"),A.is("element","tbody")&&b(A,"htmlTbodyAttributes");function b(A,y){const P=l.processViewAttributes(A,g);P&&g.writer.setAttribute(y,P,u.modelRange)}},{priority:"low"})}}(i)),n.for("downcast").add(l=>{function c(d,u){l.on(`attribute:${u}:table`,(g,f,b)=>{if(!b.consumable.test(f.item,g.name))return;const A=b.mapper.toViewElement(f.item),y=tr(b.writer,A,d);y&&(b.consumable.consume(f.item,g.name),wn(b.writer,f.attributeOldValue,f.attributeNewValue,y))})}c("table","htmlAttributes"),c("figure","htmlFigureAttributes"),c("thead","htmlTheadAttributes"),c("tbody","htmlTbodyAttributes")}),e.model.document.registerPostFixer(function(l,c){return d=>{const u=l.document.differ.getChanges();let g=!1;for(const f of u){if(f.type!="attribute"||f.attributeKey!="headingRows")continue;const b=f.range.start.nodeAfter,A=b.getAttribute("htmlTheadAttributes"),y=b.getAttribute("htmlTbodyAttributes");A&&!f.attributeNewValue?(d.removeAttribute("htmlTheadAttributes",b),g=!0):y&&f.attributeNewValue==c.getRows(b)&&(d.removeAttribute("htmlTbodyAttributes",b),g=!0)}return g}}(e.model,r)),s.stop())})}}class zD extends q{static get requires(){return[Fe]}static get pluginName(){return"StyleElementSupport"}init(){const e=this.editor.plugins.get(Fe);e.on("register:style",(t,n)=>{const i=this.editor,r=i.model.schema,s=i.conversion;r.register("htmlStyle",n.modelSchema),r.extend("htmlStyle",{allowAttributes:["htmlAttributes","htmlContent"],isContent:!0}),i.data.registerRawContentMatcher({name:"style"}),s.for("upcast").elementToElement({view:"style",model:Va(n)}),s.for("upcast").add(Vo(n,e)),s.for("downcast").elementToElement({model:"htmlStyle",view:(a,{writer:l})=>Qi("style",a,l)}),s.for("downcast").add(Lo(n)),t.stop()})}}class MD extends q{static get requires(){return[Fe]}static get pluginName(){return"DocumentListElementSupport"}init(){const e=this.editor;if(!e.plugins.has("DocumentListEditing"))return;const t=e.model.schema,n=e.conversion,i=e.plugins.get(Fe),r=e.plugins.get("DocumentListEditing");r.registerDowncastStrategy({scope:"item",attributeName:"htmlLiAttributes",setAttributeOnDowncast(s,a,l){Kt(s,a,l)}}),r.registerDowncastStrategy({scope:"list",attributeName:"htmlListAttributes",setAttributeOnDowncast(s,a,l){Kt(s,a,l)}}),i.on("register",(s,a)=>{["ul","ol","li"].includes(a.view)&&(s.stop(),t.checkAttribute("$block","htmlListAttributes")||(t.extend("$block",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),t.extend("$blockObject",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),t.extend("$container",{allowAttributes:["htmlListAttributes","htmlLiAttributes"]}),n.for("upcast").add(l=>{l.on("element:ul",ja("htmlListAttributes",i),{priority:"low"}),l.on("element:ol",ja("htmlListAttributes",i),{priority:"low"}),l.on("element:li",ja("htmlLiAttributes",i),{priority:"low"})})))}),r.on("postFixer",(s,{listNodes:a,writer:l})=>{const c=[];for(const{node:d,previous:u}of a){if(!u)continue;const g=d.getAttribute("listIndent"),f=u.getAttribute("listIndent");let b=null;if(g>f?c[f]=u:g<f?(b=c[g],c.length=g):b=u,b){if(b.getAttribute("listType")==d.getAttribute("listType")){const A=b.getAttribute("htmlListAttributes");Si(d.getAttribute("htmlListAttributes"),A)||(l.setAttribute("htmlListAttributes",A,d),s.return=!0)}if(b.getAttribute("listItemId")==d.getAttribute("listItemId")){const A=b.getAttribute("htmlLiAttributes");Si(d.getAttribute("htmlLiAttributes"),A)||(l.setAttribute("htmlLiAttributes",A,d),s.return=!0)}}}})}afterInit(){const e=this.editor;if(!e.commands.get("indentList"))return;const t=e.commands.get("indentList");this.listenTo(t,"afterExecute",(n,i)=>{e.model.change(r=>{for(const s of i)r.setAttribute("htmlListAttributes",{},s)})})}}function ja(o,e){return(t,n,i)=>{const r=n.viewItem;n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor));const s=e.processViewAttributes(r,i);for(const a of n.modelRange.getItems({shallow:!0}))a.hasAttribute("listItemId")&&(a.hasAttribute(o)||i.writer.setAttribute(o,s||{},a))}}class FD extends q{static get requires(){return[Fe,Xn]}static get pluginName(){return"CustomElementSupport"}init(){const e=this.editor.plugins.get(Fe),t=this.editor.plugins.get(Xn);e.on("register:$customElement",(n,i)=>{n.stop();const r=this.editor,s=r.model.schema,a=r.conversion,l=r.editing.view.domConverter.unsafeElements,c=r.data.htmlProcessor.domConverter.preElements;s.register(i.model,i.modelSchema),s.extend(i.model,{allowAttributes:["htmlElementName","htmlAttributes","htmlContent"],isContent:!0}),a.for("upcast").elementToElement({view:/.*/,model:(d,u)=>{if(d.name=="$comment"||!function(y){try{document.createElement(y)}catch{return!1}return!0}(d.name)||t.getDefinitionsForView(d.name).size)return null;l.includes(d.name)||l.push(d.name),c.includes(d.name)||c.push(d.name);const g=u.writer.createElement(i.model,{htmlElementName:d.name}),f=e.processViewAttributes(d,u);f&&u.writer.setAttribute("htmlAttributes",f,g);const b=new Bi(d.document).createDocumentFragment(d),A=r.data.processor.toData(b);u.writer.setAttribute("htmlContent",A,g);for(const{item:y}of r.editing.view.createRangeIn(d))u.consumable.consume(y,{name:!0});return g},converterPriority:"low"}),a.for("editingDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:(d,{writer:u})=>{const g=d.getAttribute("htmlElementName"),f=u.createRawElement(g);return d.hasAttribute("htmlAttributes")&&Kt(u,d.getAttribute("htmlAttributes"),f),f}}),a.for("dataDowncast").elementToElement({model:{name:i.model,attributes:["htmlElementName","htmlAttributes","htmlContent"]},view:(d,{writer:u})=>{const g=d.getAttribute("htmlElementName"),f=d.getAttribute("htmlContent"),b=u.createRawElement(g,null,(A,y)=>{y.setContentOf(A,f);const P=A.firstChild;for(P.remove();P.firstChild;)A.appendChild(P.firstChild)});return d.hasAttribute("htmlAttributes")&&Kt(u,d.getAttribute("htmlAttributes"),b),b}})})}}function*eo(o,e,t){if(e)if(!(Symbol.iterator in e)&&e.is("documentSelection")&&e.isCollapsed)o.schema.checkAttributeInSelection(e,t)&&(yield e);else for(const n of function(i,r,s){return!(Symbol.iterator in r)&&(r.is("node")||r.is("$text")||r.is("$textProxy"))?i.schema.checkAttribute(r,s)?[i.createRangeOn(r)]:[]:i.schema.getValidRanges(i.createSelection(r).getRanges(),s)}(o,e,t))yield*n.getItems({shallow:!0})}var to=(o,e,t)=>new Promise((n,i)=>{var r=l=>{try{a(t.next(l))}catch(c){i(c)}},s=l=>{try{a(t.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,s);a((t=t.apply(o,e)).next())});function Uf(o,e){let t=new URL(o);if(e&&Object.keys(e).length>0){const n=new URLSearchParams;for(const[i,r]of Object.entries(e))if(Array.isArray(r))for(const s of r)n.append(i,s);else n.append(i,r);t.search=n.toString()}return t.toString()}class VD{constructor(e,t){this.loader=e,this.api_url=t}_getUploadUrl(e,t){return to(this,null,function*(){const n=yield fetch(this.api_url+"/vi/skey",{credentials:"include"}).catch(a=>{t(a)}),i=yield n.json(),r={fileName:e.name,mimeType:e.type||"application/octet-stream",size:e.size.toString(),skey:i},s=yield fetch(Uf(this.api_url+"/vi/file/getUploadURL",r),{method:"POST",credentials:"include"}).catch(a=>{t(a)});return this.loader.uploaded=10,s})}fileUpload(e,t,n){return to(this,null,function*(){yield fetch(t.values.uploadUrl,{mode:"no-cors",method:"POST",body:e}).catch(l=>{n(l)}),this.loader.uploaded=50;const i=yield fetch(this.api_url+"/vi/skey",{credentials:"include"}).catch(l=>{n(l)}),r=yield i.json(),s={key:t.values.uploadKey,node:void 0,skelType:"leaf",skey:r},a=yield fetch(Uf(this.api_url+"/vi/file/add",s),{method:"POST",credentials:"include"}).catch(l=>{n(l)});return this.loader.uploaded=75,a})}upload(){return to(this,null,function*(){return this.loader.uploadTotal=100,this.loader.uploaded=0,this.loader.file.then(e=>to(this,null,function*(){return new Promise((t,n)=>{this._getUploadUrl(e,n).then(i=>to(this,null,function*(){const r=yield i.json();this.fileUpload(e,r,n).then(s=>to(this,null,function*(){const a=yield s.json();this.loader.uploaded=100,t({default:this.api_url+a.values.downloadUrl})}))}))})}))})}abort(){this.xhr&&this.xhr.abort()}}var Wf=B(2245),LD={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};G()(Wf.Z,LD),Wf.Z.locals;class $a extends Vi{}$a.builtinPlugins=[class extends q{static get requires(){return[A2,zo,E2,t2,UE,N2]}static get pluginName(){return"Essentials"}},class extends q{static get requires(){return[Ot]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const o=this.editor.config.get("ckfinder.uploadUrl");o&&(this.editor.plugins.get(Ot).createUploadAdapter=e=>new L2(e,o,this.editor.t))}},class extends ui{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[YS]}init(){return Bf(this,null,function*(){const o=this.context.config.get("cloudServices")||{};for(const[t,n]of Object.entries(o))this[t]=n;if(!this.tokenUrl)return void(this.token=null);const e=this.context.plugins.get("CloudServicesCore");this.token=yield e.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(o){return Bf(this,null,function*(){if(this._tokens.has(o))return this.getTokenFor(o);const e=this.context.plugins.get("CloudServicesCore"),t=yield e.createToken(o).init();return this._tokens.set(o,t),t})}getTokenFor(o){const e=this._tokens.get(o);if(!e)throw new I("cloudservices-token-not-registered",this);return e}destroy(){super.destroy();for(const o of this._tokens.values())o.destroy()}},class extends q{static get requires(){return[j2,$2]}static get pluginName(){return"Bold"}},class extends q{static get requires(){return[q2,U2]}static get pluginName(){return"Italic"}},class extends q{static get requires(){return[Z2,Y2]}static get pluginName(){return"BlockQuote"}},class extends q{static get pluginName(){return"EasyImage"}static get requires(){return[Q2,"ImageUpload"]}init(){const o=this.editor;o.plugins.has("ImageBlockEditing")||o.plugins.has("ImageInlineEditing")||Q("easy-image-image-feature-missing",o)}},class extends q{static get requires(){return[ox,rx]}static get pluginName(){return"Heading"}},class extends q{static get requires(){return[vx,Ex]}static get pluginName(){return"Image"}},class extends q{static get requires(){return[Wg,Qx]}static get pluginName(){return"ImageStyle"}},class extends q{static get requires(){return[qi,Nt]}static get pluginName(){return"ImageToolbar"}afterInit(){const o=this.editor,e=o.t,t=o.plugins.get(qi),n=o.plugins.get("ImageUtils");var i;t.register("image",{ariaLabel:e("Image toolbar"),items:(i=o.config.get("image.toolbar")||[],i.map(r=>xe(r)?r.name:r)),getRelatedElement:r=>n.getClosestSelectedImageWidget(r)})}},class extends q{static get pluginName(){return"ImageUpload"}static get requires(){return[Vx,Dx,Px]}},class extends q{constructor(o){super(o),this._resizeUnit=o.config.get("image.resizeUnit")}static get requires(){return[qx]}static get pluginName(){return"ImageResizeButtons"}init(){const o=this.editor,e=o.config.get("image.resizeOptions"),t=o.commands.get("resizeImage");this.bind("isEnabled").to(t);for(const n of e)this._registerImageResizeButton(n);this._registerImageResizeDropdown(e)}_registerImageResizeButton(o){const e=this.editor,{name:t,value:n,icon:i}=o,r=n?n+this._resizeUnit:null;e.ui.componentFactory.add(t,s=>{const a=new Ae(s),l=e.commands.get("resizeImage"),c=this._getOptionLabelValue(o,!0);if(!ha[i])throw new I("imageresizebuttons-missing-icon",e,o);return a.set({label:c,icon:ha[i],tooltip:c,isToggleable:!0}),a.bind("isEnabled").to(this),a.bind("isOn").to(l,"value",Rg(r)),this.listenTo(a,"execute",()=>{e.execute("resizeImage",{width:r})}),a})}_registerImageResizeDropdown(o){const e=this.editor,t=e.t,n=o.find(r=>!r.value),i=r=>{const s=e.commands.get("resizeImage"),a=It(r,od),l=a.buttonView,c=t("Resize image");return l.set({tooltip:c,commandValue:n.value,icon:ha.medium,isToggleable:!0,label:this._getOptionLabelValue(n),withText:!0,class:"ck-resize-image-button",ariaLabel:c,ariaLabelledBy:void 0}),l.bind("label").to(s,"value",d=>d&&d.width?d.width:this._getOptionLabelValue(n)),a.bind("isEnabled").to(this),Vs(a,()=>this._getResizeDropdownListItemDefinitions(o,s),{ariaLabel:t("Image resize list"),role:"menu"}),this.listenTo(a,"execute",d=>{e.execute(d.source.commandName,{width:d.source.commandValue}),e.editing.view.focus()}),a};e.ui.componentFactory.add("resizeImage",i),e.ui.componentFactory.add("imageResize",i)}_getOptionLabelValue(o,e=!1){const t=this.editor.t;return o.label?o.label:e?o.value?t("Resize image to %0",o.value+this._resizeUnit):t("Resize image to the original size"):o.value?o.value+this._resizeUnit:t("Original")}_getResizeDropdownListItemDefinitions(o,e){const t=new st;return o.map(n=>{const i=n.value?n.value+this._resizeUnit:null,r={type:"button",model:new Ys({commandName:"resizeImage",commandValue:i,label:this._getOptionLabelValue(n),role:"menuitemradio",withText:!0,icon:null})};r.model.bind("isOn").to(e,"value",Rg(i)),t.add(r)}),t}},class extends q{static get pluginName(){return"Indent"}static get requires(){return[Xx,e5]}},class extends q{constructor(o){super(o),o.config.define("indentBlock",{offset:40,unit:"px"})}static get pluginName(){return"IndentBlock"}init(){const o=this.editor,e=o.config.get("indentBlock");e.classes&&e.classes.length?(this._setupConversionUsingClasses(e.classes),o.commands.add("indentBlock",new Zi(o,new ep({direction:"forward",classes:e.classes}))),o.commands.add("outdentBlock",new Zi(o,new ep({direction:"backward",classes:e.classes})))):(o.data.addStyleProcessorRules(F1),this._setupConversionUsingOffset(),o.commands.add("indentBlock",new Zi(o,new Xg({direction:"forward",offset:e.offset,unit:e.unit}))),o.commands.add("outdentBlock",new Zi(o,new Xg({direction:"backward",offset:e.offset,unit:e.unit}))))}afterInit(){const o=this.editor,e=o.model.schema,t=o.commands.get("indent"),n=o.commands.get("outdent"),i=o.config.get("heading.options");(i&&i.map(r=>r.model)||t5).forEach(r=>{e.isRegistered(r)&&e.extend(r,{allowAttributes:"blockIndent"})}),e.setAttributeProperties("blockIndent",{isFormatting:!0}),t.registerChildCommand(o.commands.get("indentBlock")),n.registerChildCommand(o.commands.get("outdentBlock"))}_setupConversionUsingOffset(){const o=this.editor.conversion,e=this.editor.locale.contentLanguageDirection==="rtl"?"margin-right":"margin-left";o.for("upcast").attributeToAttribute({view:{styles:{[e]:/[\s\S]+/}},model:{key:"blockIndent",value:t=>t.getStyle(e)}}),o.for("downcast").attributeToAttribute({model:"blockIndent",view:t=>({key:"style",value:{[e]:t}})})}_setupConversionUsingClasses(o){const e={model:{key:"blockIndent",values:[]},view:{}};for(const t of o)e.model.values.push(t),e.view[t]={key:"class",value:[t]};this.editor.conversion.attributeToAttribute(e)}},class extends q{static get requires(){return[x5,I5,R5]}static get pluginName(){return"Link"}},class extends q{static get requires(){return[eS,j5]}static get pluginName(){return"List"}},ca,class extends q{static get requires(){return[yS,SS,kn,RS,IS,TS,Mo]}static get pluginName(){return"Table"}},class extends q{static get requires(){return[qi]}static get pluginName(){return"TableToolbar"}afterInit(){const o=this.editor,e=o.t,t=o.plugins.get(qi),n=o.config.get("table.contentToolbar"),i=o.config.get("table.tableToolbar");n&&t.register("tableContent",{ariaLabel:e("Table toolbar"),items:n,getRelatedElement:zS}),i&&t.register("table",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:NS})}},class extends q{static get requires(){return["Delete","Input"]}static get pluginName(){return"TextTransformation"}constructor(o){super(o),o.config.define("typing",{transformations:{include:GE}})}init(){const o=this.editor.model.document.selection;o.on("change:range",()=>{this.isEnabled=!o.anchor.parent.is("element","codeBlock")}),this._enableTransformationWatchers()}_enableTransformationWatchers(){const o=this.editor,e=o.model,t=o.plugins.get("Delete"),n=function(r){const s=r.extra||[],a=r.remove||[],l=c=>!a.includes(c);return function(c){const d=new Set;for(const u of c)if(typeof u=="string"&&km[u])for(const g of km[u])d.add(g);else d.add(u);return Array.from(d)}(r.include.concat(s).filter(l)).filter(l).map(c=>typeof c=="string"&&fm[c]?fm[c]:c).filter(c=>typeof c=="object").map(c=>({from:ZE(c.from),to:JE(c.to)}))}(o.config.get("typing.transformations")),i=new mm(o.model,r=>{for(const s of n)if(s.from.test(r))return{normalizedTransformation:s}});i.on("matched:data",(r,s)=>{if(!s.batch.isTyping)return;const{from:a,to:l}=s.normalizedTransformation,c=a.exec(s.text),d=l(c.slice(1)),u=s.range;let g=c.index;e.enqueueChange(f=>{for(let b=1;b<c.length;b++){const A=c[b],y=d[b-1];if(y==null){g+=A.length;continue}const P=u.start.getShiftedBy(g),z=e.createRange(P,P.getShiftedBy(A.length)),j=YE(P);e.insertContent(f.createText(y,j),z),g+=y.length}e.enqueueChange(()=>{t.requestUndoOnBackspace()})})}),i.bind("isEnabled").to(this)}},class extends q{static get requires(){return[W2,K2]}static get pluginName(){return"Underline"}},class extends q{static get requires(){return[XS,eD]}static get pluginName(){return"Alignment"}},class extends q{constructor(o){super(o),this.set("isSourceEditingMode",!1),this._elementReplacer=new Cl,this._replacedRoots=new Map,this._dataFromRoots=new Map}static get pluginName(){return"SourceEditing"}static get requires(){return[Ii]}init(){const o=this.editor;o.t,o.ui.componentFactory.add("sourceEditing",e=>{const t=new Ae(e);return t.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>',tooltip:!0,withText:!0,class:"ck-source-editing-button"}),t.bind("isOn").to(this,"isSourceEditingMode"),t.bind("isEnabled").to(this,"isEnabled",o,"isReadOnly",o.plugins.get(Ii),"hasAny",(n,i,r)=>!!n&&!i&&!r),this.listenTo(t,"execute",()=>{this.isSourceEditingMode=!this.isSourceEditingMode}),t}),this._isAllowedToHandleSourceEditingMode()&&(this.on("change:isSourceEditingMode",(e,t,n)=>{n?(this._showSourceEditing(),this._disableCommands()):(this._hideSourceEditing(),this._enableCommands())}),this.on("change:isEnabled",(e,t,n)=>this._handleReadOnlyMode(!n)),this.listenTo(o,"change:isReadOnly",(e,t,n)=>this._handleReadOnlyMode(n))),o.data.on("get",()=>{this.isSourceEditingMode&&this.updateEditorData()},{priority:"high"})}afterInit(){const o=this.editor;["RealTimeCollaborativeEditing","CommentsEditing","TrackChangesEditing","RevisionHistory"].some(e=>o.plugins.has(e))&&console.warn("You initialized the editor with the source editing feature and at least one of the collaboration features. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the collaboration features."),o.plugins.has("RestrictedEditingModeEditing")&&console.warn("You initialized the editor with the source editing feature and restricted editing feature. Please be advised that the source editing feature may not work, and be careful when editing document source that contains markers created by the restricted editing feature.")}updateEditorData(){const o=this.editor,e={};for(const[t,n]of this._replacedRoots){const i=this._dataFromRoots.get(t),r=n.dataset.value;i!==r&&(e[t]=r)}Object.keys(e).length&&o.data.set(e,{batchType:{isUndoable:!0}})}_showSourceEditing(){const o=this.editor,e=o.editing.view,t=o.model;t.change(n=>{n.setSelection(null),n.removeSelectionAttribute(t.document.selection.getAttributeKeys())});for(const[n,i]of e.domRoots){const r=oD(o.data.get({rootName:n})),s=br(i.ownerDocument,"textarea",{rows:"1","aria-label":"Source code editing area"}),a=br(i.ownerDocument,"div",{class:"ck-source-editing-area","data-value":r},[s]);s.value=r,s.setSelectionRange(0,0),s.addEventListener("input",()=>{a.dataset.value=s.value,o.ui.update()}),e.change(l=>{const c=e.document.getRoot(n);l.addClass("ck-hidden",c)}),o.ui.setEditableElement("sourceEditing:"+n,s),this._replacedRoots.set(n,a),this._elementReplacer.replace(i,a),this._dataFromRoots.set(n,r)}this._focusSourceEditing()}_hideSourceEditing(){const o=this.editor.editing.view;this.updateEditorData(),o.change(e=>{for(const[t]of this._replacedRoots)e.removeClass("ck-hidden",o.document.getRoot(t))}),this._elementReplacer.restore(),this._replacedRoots.clear(),this._dataFromRoots.clear(),o.focus()}_focusSourceEditing(){const o=this.editor,[e]=this._replacedRoots.values(),t=e.querySelector("textarea");o.editing.view.document.isFocused=!1,t.focus()}_disableCommands(){const o=this.editor;for(const e of o.commands.commands())e.forceDisabled(Of)}_enableCommands(){const o=this.editor;for(const e of o.commands.commands())e.clearForceDisabled(Of)}_handleReadOnlyMode(o){if(this.isSourceEditingMode)for(const[,e]of this._replacedRoots)e.querySelector("textarea").readOnly=o}_isAllowedToHandleSourceEditingMode(){const o=this.editor.ui.view.editable;return o&&!o.hasExternalElement}},class extends q{static get requires(){return[sD,iD]}static get pluginName(){return"RemoveFormat"}},class extends q{static get pluginName(){return"GeneralHtmlSupport"}static get requires(){return[Fe,BD,TD,ID,PD,RD,OD,ND,zD,MD,FD]}init(){const o=this.editor,e=o.plugins.get(Fe);e.loadAllowedConfig(o.config.get("htmlSupport.allow")||[]),e.loadDisallowedConfig(o.config.get("htmlSupport.disallow")||[])}getGhsAttributeNameForElement(o){const e=this.editor.plugins.get("DataSchema"),t=Array.from(e.getDefinitionsForView(o,!1)),n=t.find(i=>i.isInline&&!t[0].isObject);return n?n.model:"htmlAttributes"}addModelHtmlClass(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"classes",a=>{for(const l of Pe(e))a.add(l)})})}removeModelHtmlClass(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"classes",a=>{for(const l of Pe(e))a.delete(l)})})}setModelHtmlAttributes(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"attributes",a=>{for(const[l,c]of Object.entries(e))a.set(l,c)})})}removeModelHtmlAttributes(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"attributes",a=>{for(const l of Pe(e))a.delete(l)})})}setModelHtmlStyles(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"styles",a=>{for(const[l,c]of Object.entries(e))a.set(l,c)})})}removeModelHtmlStyles(o,e,t){const n=this.editor.model,i=this.getGhsAttributeNameForElement(o);n.change(r=>{for(const s of eo(n,t,i))An(r,s,i,"styles",a=>{for(const l of Pe(e))a.delete(l)})})}}],$a.defaultConfig={extraPlugins:[function(o){o.plugins.get("FileRepository").createUploadAdapter=e=>new VD(e,o.config.get("viur_api_url"))},function(o){o.conversion.attributeToElement({model:"bold",view:"b",upcastAlso:[e=>{const t=e.getStyle("font-weight");return t&&(t=="bold"||Number(t)>=600)?{name:!0,styles:["font-weight"]}:null}]})}],toolbar:{items:["heading","|","bold","italic","underline","|","alignment","numberedList","bulletedList","blockQuote","|","indent","outdent","|","link","insertTable","imageUpload","|","undo","redo","RemoveFormat","sourceEditing"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","resizeImage:50","resizeImage:75","resizeImage:original","imageTextAlternative"],resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h1",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h2",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h3",title:"Heading 3",class:"ck-heading_heading3"},{model:"heading4",view:"h4",title:"Heading 4",class:"ck-heading_heading4"},{model:"heading5",view:"h5",title:"Heading 5",class:"ck-heading_heading5"},{model:"heading6",view:"h6",title:"Heading 6",class:"ck-heading_heading6"}]},alignment:{options:[{name:"left",className:"viur-txt-align--left"},{name:"right",className:"viur-txt-align--right"},{name:"center",className:"viur-txt-align--center"},{name:"justify",className:"viur-txt-align--justify"}]},indentBlock:{classes:["viur-txt-indent--1","viur-txt-indent--2","viur-txt-indent--3","viur-txt-indent--4","viur-txt-indent--5","viur-txt-indent--6","viur-txt-indent--7","viur-txt-indent--8","viur-txt-indent--9","viur-txt-indent--10"]},htmlSupport:{allow:[{name:"a",attributes:{target:!0,rel:!0}}]},language:"de",viur_api_url:"http://localhost:8080"}})(),M=M.default})())}(Wo,Wo.exports);var jw=Wo.exports;const rl=Lw(jw),$w=h.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.reactive({value:"",editorConfig:{},editor:h.computed(()=>rl)});function B(D){x.emit("change",m.name,N.value,m.lang,m.index)}function M(D){N.value=D.target.value,x.emit("change",m.name,N.value,m.lang,m.index)}h.onMounted(()=>{m.value!==null&&(N.value=m.value),x.emit("change",m.name,m.value,m.lang,m.index)});function w(D){D.editing.view.change(p=>{p.setStyle("min-height","250px",D.editing.view.document.getRoot())})}return h.watch(()=>m.value,(D,p)=>{N.value=D}),{state:N,ClassicEditor:rl,boneState:C,changeEvent:B,onReady:w,changeEventTextarea:M}}}),Hw=["disabled","value"];function qw(m,x,C,N,B,M){var D,p,E,S;const w=h.resolveComponent("ckeditor");return m.state.editor?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[(D=m.boneState.bonestructure)!=null&&D.valid_html||(p=m.boneState.bonestructure)!=null&&p.validHtml?(h.openBlock(),h.createBlock(w,{key:0,modelValue:m.state.value,"onUpdate:modelValue":x[0]||(x[0]=v=>m.state.value=v),editor:m.state.editor,config:m.state.editorConfig,disabled:(E=m.boneState)==null?void 0:E.readonly,onReady:m.onReady,onInput:m.changeEvent},null,8,["modelValue","editor","config","disabled","onReady","onInput"])):(h.openBlock(),h.createElementBlock("sl-textarea",{key:1,disabled:(S=m.boneState)==null?void 0:S.readonly,value:m.value,onInput:x[1]||(x[1]=(...v)=>m.changeEventTextarea&&m.changeEventTextarea(...v))},null,40,Hw))],64)):h.createCommentVNode("",!0)}const sl=de($w,[["render",qw]]),Uw=h.defineComponent({inheritAttrs:!1,props:{name:String,value:[Object,String,Number,Boolean,Array],index:Number,lang:String},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.reactive({valueLat:null,valueLng:null});function B(){x.emit("change",m.name,[N.valueLat,N.valueLng],m.lang,m.index)}return h.onMounted(()=>{try{N.valueLat=m.value[0],N.valueLng=m.value[1]}catch{}x.emit("change",m.name,[N.valueLat,N.valueLng],m.lang,m.index)}),{state:N,boneState:C,changeEvent:B}}}),Ww=["name","min","max","disabled"],Kw=["name","min","max","disabled"];function Gw(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.withDirectives(h.createElementVNode("sl-input",{"onUpdate:modelValue":x[0]||(x[0]=w=>m.state.valueLat=w),index:"lat",type:"number",name:m.name,min:m.boneState.bonestructure.boundslat[0],max:m.boneState.bonestructure.boundslat[1],disabled:m.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:x[1]||(x[1]=(...w)=>m.changeEvent&&m.changeEvent(...w)),placeholder:"Lat"},null,40,Ww),[[h.vModelText,m.state.valueLat]]),h.withDirectives(h.createElementVNode("sl-input",{"onUpdate:modelValue":x[2]||(x[2]=w=>m.state.valueLng=w),index:"lng",type:"number",name:m.name,min:m.boneState.bonestructure.boundslat[0],max:m.boneState.bonestructure.boundslat[1],disabled:m.boneState.readonly,"value-as-number":"",step:"0.000001",onSlChange:x[3]||(x[3]=(...w)=>m.changeEvent&&m.changeEvent(...w)),placeholder:"Long"},null,40,Kw),[[h.vModelText,m.state.valueLng]])],64)}const al=de(Uw,[["render",Gw],["__scopeId","data-v-7bc31020"]]),Zw=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.reactive({counter:0,debounce:null}),B=h.inject("addMultipleEntry"),M=h.inject("removeMultipleEntries");function w(){N.counter+=1;let p=200;N.counter>1&&(p=500),N.debounce&&clearTimeout(N.debounce),N.debounce=setTimeout(()=>{for(let E=N.counter;E--;)B(m.lang);N.counter=0},p)}function D(){let p=200;N.debounce&&clearTimeout(N.debounce),N.debounce=setTimeout(()=>{M(m.lang)},p)}return h.onMounted(()=>{(!m.value||m.value.length===0)&&x.emit("change",m.name,[],m.lang)}),{state:N,boneState:C,handleAdd:w,handleRemove:D,removeMultipleEntries:M}}}),ll=m=>(h.pushScopeId("data-v-63e75dee"),m=m(),h.popScopeId(),m),Jw={class:"actionbar"},Yw=["title"],Qw=[ll(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],Xw=["title"],eA=ll(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function tA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",Jw,[m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:0,variant:"danger",title:m.$t("bone.del"),outline:"",class:"delete-btn",onClick:x[0]||(x[0]=w=>m.handleRemove(m.lang))},Qw,8,Yw)):h.createCommentVNode("",!0),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:1,variant:"success",title:m.$t("bone.add"),outline:"",class:"add-btn",onClick:x[1]||(x[1]=w=>m.handleAdd(m.lang))},[eA,h.createTextVNode(" "+h.toDisplayString(m.$t("bone.add"))+" ",1),m.state.counter>1?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode("("+h.toDisplayString(m.state.counter)+")",1)],64)):h.createCommentVNode("",!0)],8,Xw)):h.createCommentVNode("",!0)])}const nA=de(Zw,[["render",tA],["__scopeId","data-v-63e75dee"]]);var oA={VITE_API_URL:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const iA=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.inject("addMultipleEntry"),B=h.inject("formatString"),M=null,w=h.reactive({skels:{},hasUsing:h.computed(()=>C==null?void 0:C.bonestructure.using)});function D(p){let E="";return C.bonestructure.type==="relational.tree.leaf.file"?E="skelType=leaf&":C.bonestructure.type==="relational.tree.node.file"&&(E="skelType=node&"),we.get(`/${oA.VITE_DEFAULT_RENDERER||"vi"}/${C.bonestructure.module}/list?${E}limit=99`).then(async S=>{var k;const v=await S.json();return w.skels=v.skellist.reduce((_,R)=>(_[R.key]=R,_),{}),(k=v.skellist)==null?void 0:k.map(_=>({text:B(C.bonestructure.format,{dest:_}),value:_.key,data:_}))})}return h.onMounted(()=>{(!m.value||m.value.length===0)&&x.emit("change",m.name,[],m.lang)}),{state:w,boneState:C,addMultipleEntry:N,removeMultipleEntries:M,getList:D}}}),cl=m=>(h.pushScopeId("data-v-eeea51c6"),m=m(),h.popScopeId(),m),rA={class:"actionbar"},sA=["title"],aA=[cl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],lA=["source"],cA=["title"],dA=cl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1));function hA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",rA,[m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:0,variant:"danger",title:m.$t("bone.del"),outline:"",class:"delete-btn",onClick:x[0]||(x[0]=w=>m.openSelector())},aA,8,sA)):h.createCommentVNode("",!0),h.createElementVNode("sl-combobox",{source:m.getList,hoist:"",onSlItemSelect:x[1]||(x[1]=w=>{var D;return m.addMultipleEntry(m.lang,{dest:(D=m.state.skels)==null?void 0:D[w.detail.item.value],rel:m.state.hasUsing?void 0:null})})},null,40,lA),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:1,variant:"success",title:m.$t("bone.add"),outline:"",class:"add-btn",onClick:x[2]||(x[2]=w=>m.addMultipleEntry(m.lang))},[dA,h.createTextVNode(" "+h.toDisplayString(m.$t("bone.list")),1)],8,cA)):h.createCommentVNode("",!0)])}const uA=de(iA,[["render",hA],["__scopeId","data-v-eeea51c6"]]);var dl={VITE_API_URL:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const mA=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change"],setup(m,x){const C=h.inject("boneState"),N=h.inject("addMultipleEntry");h.inject("formatString");const B=null,M=h.ref(),w=h.reactive({skels:{},uploadinput:null,loading:!1,droparea:!1,hasUsing:h.computed(()=>C==null?void 0:C.bonestructure.using)});function D(S){const v={fileName:S.name,mimeType:S.type||"application/octet-stream",size:S.size.toString()};return new Promise((k,_)=>{we.securePost(`/${dl.VITE_DEFAULT_RENDERER||"vi"}/file/getUploadURL`,{dataObj:v}).then(async R=>{let T=await R.json();fetch(T.values.uploadUrl,{body:S,method:"POST",mode:"no-cors"}).then(async O=>{const F={key:T.values.uploadKey,node:void 0,skelType:"leaf"};we.securePost(`/${dl.VITE_DEFAULT_RENDERER||"vi"}/file/add`,{dataObj:F}).then(async L=>{let $=await L.json();$.action==="addSuccess"?k($.values):_($)}).catch(L=>{_(L)})}).catch(O=>{_(O)})}).catch(R=>{_(R)})})}async function p(S){w.loading=!0;for(let v of S.target.files){let k=await D(v);M.value.value=null;let _=null;w.hasUsing&&(_=void 0),N(m.lang,{dest:k,rel:_})}w.loading=!1}async function E(S){w.loading=!0,w.droparea=!1;for(let v of S.dataTransfer.files){let k=await D(v);M.value.value=null;let _=null;w.hasUsing&&(_=void 0),N(m.lang,{dest:k,rel:_})}w.loading=!1}return h.onMounted(()=>{(!m.value||m.value.length===0)&&x.emit("change",m.name,[],m.lang)}),{state:w,boneState:C,addMultipleEntry:N,removeMultipleEntries:B,uploadFile:D,uploadinput:M,handleUpload:p,handleDrop:E}}}),cr=m=>(h.pushScopeId("data-v-9bac9f8a"),m=m(),h.popScopeId(),m),gA=["title"],pA=[cr(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))],fA={key:1,class:"droparea"},kA=["multiple"],bA=["title"],wA=[cr(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"plus-lg"},null,-1))],AA=["title"],_A=cr(()=>h.createElementVNode("sl-icon",{name:"upload"},null,-1)),CA={key:0,slot:"suffix"};function vA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",{class:"actionbar",onDragover:x[4]||(x[4]=h.withModifiers(w=>m.state.droparea=!0,["prevent"])),onDragleave:x[5]||(x[5]=w=>m.state.droparea=!1),onDrop:x[6]||(x[6]=h.withModifiers((...w)=>m.handleDrop&&m.handleDrop(...w),["prevent"]))},[m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:0,variant:"danger",title:m.$t("bone.del"),outline:"",class:"delete-btn",onClick:x[0]||(x[0]=w=>m.openSelector())},pA,8,gA)):h.createCommentVNode("",!0),m.state.droparea?(h.openBlock(),h.createElementBlock("div",fA," Dateien hier hinziehen ")):h.createCommentVNode("",!0),h.createElementVNode("input",{ref:"uploadinput",hidden:"",type:"file",multiple:m.boneState.multiple,onChange:x[1]||(x[1]=(...w)=>m.handleUpload&&m.handleUpload(...w))},null,40,kA),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:2,outline:"",title:m.$t("bone.list"),class:"add-btn",onClick:x[2]||(x[2]=w=>m.addMultipleEntry(m.lang))},wA,8,bA)):h.createCommentVNode("",!0),m.boneState.multiple&&!m.readonly?(h.openBlock(),h.createElementBlock("sl-button",{key:3,variant:"success",outline:"",title:m.$t("bone.upload"),class:"upload-btn",onClick:x[3]||(x[3]=w=>m.uploadinput.click())},[_A,h.createTextVNode(" "+h.toDisplayString(m.$t("bone.upload"))+" ",1),m.state.loading?(h.openBlock(),h.createElementBlock("sl-spinner",CA)):h.createCommentVNode("",!0)],8,AA)):h.createCommentVNode("",!0)],32)}const yA=de(mA,[["render",vA],["__scopeId","data-v-9bac9f8a"]]),dr=or.defineStore("boneStore",()=>{const m=h.reactive({additionalBones:h.shallowRef({}),defaultBones:h.shallowRef({rawBone:ar,keyBone:Ua,stringBone:Wa,emailBone:Ka,dateBone:Ga,booleanBone:Ja,selectBone:Za,passwordBone:Ya,recordBone:Xa,numericBone:tl,colorBone:el,relationalBone:nl,jsonBone:Aw,fileBone:il,textBone:sl,spatialBone:al}),actionbars:h.shallowRef({"relational.tree.leaf.file.file":yA,"relational.":uA}),multibones:h.shallowRef(["select","select."])});function x(w,D){m.additionalBones[w]=D}function C(){let w=m.defaultBones;for(const[D,p]of Object.entries(m.additionalBones))w.add(p);return w}function N(w){if(Object.keys(m.additionalBones).includes(w))return m.additionalBones[w];{let D=w.split("."),p=Object.entries(m.additionalBones).filter(E=>E[0].startsWith(D[0]+"."));if(p.length>0){p.sort((E,S)=>S.length-E.length);for(let E of p)if(w.startsWith(E[0]))return m.additionalBones[E[0]]}}return w==="date"?Ga:w==="key"?Ua:w==="str.email"?Ka:w==="str"||w.startsWith("str.")?Wa:w==="select"||w.startsWith("select.")?Za:w==="bool"?Ja:w==="password"?Ya:w==="record"?Xa:w==="numeric"||w.startsWith("numeric.")?tl:w==="relational.tree.leaf.file.file"?il:w==="relational"||w.startsWith("relational.")?nl:w==="color"?el:w==="text"?sl:w==="spatial"?al:ar}function B(w,D){m.actionbars[w]=D}function M(w){if(Object.keys(m.actionbars).includes(w))return m.actionbars[w];{let D=w.split("."),p=Object.entries(m.actionbars).filter(E=>E[0].startsWith(D[0]+"."));if(p.length>0){p.sort((E,S)=>S.length-E.length);for(let E of p)if(w.startsWith(E[0]))return m.actionbars[E[0]]}}return nA}return{state:m,addBoneWidget:x,getBoneWidget:N,importWidgets:C,addBoneActionbar:B,getBoneActionbar:M}});function EA(m){return dr().getBoneActionbar(m)}function Jt(m){return dr().getBoneWidget(m)}function xA(m){const x=dr();if(x.state.multibones.includes(m))return!0;{let C=m.split("."),N=Object.entries(x.state.multibones).filter(B=>B[1].startsWith(C[0]+"."));if(N.length>0){N.sort((B,M)=>M.length-B.length);for(let B of N)if(m.startsWith(B[1]))return!0}}return!1}const hr=m=>(h.pushScopeId("data-v-82f9bd25"),m=m(),h.popScopeId(),m),SA=hr(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Nutzterdaten",-1)),DA=hr(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Lieferadresse",-1)),BA={key:0},TA=hr(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Rechnungsadresse",-1)),IA=de({__name:"UserInformation",props:{mode:{type:String,default:"form"},conditions:{type:Function}},setup(m){const x=vn(),C=h.reactive({formValues:{},requiredFieldsFilled:h.computed(()=>{if(C.isCustomAdress)return Object.keys(C.formValues).includes("city")&&Object.keys(C.formValues).includes("street")&&Object.keys(C.formValues).includes("billing.city")&&Object.keys(C.formValues).includes("billing.street")&&Object.keys(C.formValues).includes("email")&&Object.keys(C.formValues).includes("firstname")&&Object.keys(C.formValues).includes("lastname");if(!C.isCustomAdress)return Object.keys(C.formValues).includes("city")&&Object.keys(C.formValues).includes("street")&&Object.keys(C.formValues).includes("email")&&Object.keys(C.formValues).includes("firstname")&&Object.keys(C.formValues).includes("lastname")}),isCustomAdress:!1,addSkel:null,errors:{}});function N(w){w.target.checked&&(C.isCustomAdress=!1),w.target.checked||(C.isCustomAdress=!0)}function B(w,D){for(const[p,E]of Object.entries(D.value[0]))C.formValues[p]=E}function M(w){let D={};return w instanceof Object?w:(w.forEach(p=>{let E=p[0],S=p[1];D[E]=S}),D)}return h.watch(C.formValues,w=>{Object.entries(w).forEach(([D,p])=>{p===""&&delete C.formValues[D]})}),h.onBeforeMount(async()=>{await x.getAdressStructure(),C.addSkel=M(x.state.structure.address)}),(w,D)=>{const p=h.resolveComponent("bone");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",null,[SA,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(C.addSkel,(E,S)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:S},[E.visible&&E.params.group==="Customer Info"?(h.openBlock(),h.createBlock(p,{key:0,is:h.unref(Jt)(E.type),name:S,structure:M(C.addSkel),errors:C.errors[S]?C.errors[S]:[],skel:C.formValues,onChange:v=>B(S,v),class:"viur-shop-form-grid-w-2"},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))]),h.createElementVNode("div",null,[DA,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(C.addSkel,(E,S)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:S},[E.visible&&E.params.group==="Customer Address"?(h.openBlock(),h.createBlock(p,{key:0,is:h.unref(Jt)(E.type),name:S,structure:M(C.addSkel),errors:C.errors[S]?C.errors[S]:[],skel:C.formValues,onChange:v=>B(S,v)},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))]),C.isCustomAdress?(h.openBlock(),h.createElementBlock("div",BA,[TA,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(C.addSkel,(E,S)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:S},[E.visible&&E.params.group==="Customer Address"?(h.openBlock(),h.createBlock(p,{key:0,is:h.unref(Jt)(E.type),name:S,structure:M(C.addSkel),errors:C.errors[S]?C.errors[S]:[],skel:C.formValues,onChange:v=>B(S,v)},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))])):h.createCommentVNode("",!0),h.createElementVNode("sl-checkbox",{onSlChange:N,checked:""}," Rechnungsadresse wie Lieferadresse ",32)],64)}}},[["__scopeId","data-v-82f9bd25"]]),PA=h.defineComponent({props:{isDragging:Boolean,draggingLineBottom:Boolean,draggingLineTop:Boolean},components:{},emits:["change","delete","handleDragStart","handleDragEnd","handleDragOver","handleDrop"],setup(m,x){const C=h.inject("boneState");return{state:h.reactive({isDraggable:!1}),boneState:C}}}),hl=m=>(h.pushScopeId("data-v-141aaf9b"),m=m(),h.popScopeId(),m),RA=["draggable"],OA=["disabled"],NA=[hl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"grip-vertical"},null,-1))],zA={class:"value"},MA=["disabled","title"],FA=[hl(()=>h.createElementVNode("sl-icon",{slot:"prefix",name:"x-lg"},null,-1))];function VA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["value-line",{"is-dragging":m.isDragging,"dragging-line-bottom":m.draggingLineBottom,"dragging-line-top":m.draggingLineTop}]),draggable:m.state.isDraggable,onDragover:x[2]||(x[2]=w=>m.$emit("handleDragOver",w)),onDrop:x[3]||(x[3]=w=>m.$emit("handleDrop",w)),onDragstart:x[4]||(x[4]=w=>m.$emit("handleDragStart",w)),onDragend:x[5]||(x[5]=w=>m.$emit("handleDragEnd"))},[h.createElementVNode("sl-button",{disabled:m.boneState.readonly,class:"drag-button",onMousedown:x[0]||(x[0]=w=>m.state.isDraggable=!0)},NA,40,OA),h.createElementVNode("div",zA,[h.renderSlot(m.$slots,"default",{},void 0,!0)]),h.createElementVNode("sl-button",{variant:"danger",disabled:m.boneState.readonly,outline:"",title:m.$t("bone.del"),class:"delete-btn",onClick:x[1]||(x[1]=w=>m.$emit("delete"))},FA,8,MA)],42,RA)}const LA=de(PA,[["render",VA],["__scopeId","data-v-141aaf9b"]]),jA=h.defineComponent({props:{name:String,value:Object,index:Number,lang:String,readonly:Boolean,params:Object},components:{},emits:["change","handleClick"],setup(m,x){const C=h.inject("boneState");return{state:h.reactive({debug:!1}),boneState:C}}}),$A={class:"bone-name"},HA={key:0},qA={class:"bone"};function UA(m,x,C,N,B,M){return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("label",$A,[h.renderSlot(m.$slots,"default",{},void 0,!0),h.createCommentVNode("",!0)]),m.state.debug?(h.openBlock(),h.createElementBlock("div",HA,[h.createElementVNode("div",qA,h.toDisplayString(m.name),1),h.createElementVNode("pre",null," "+h.toDisplayString(m.boneState)+`
|
|
6530
6530
|
`,1)])):h.createCommentVNode("",!0)],64)}const WA=de(jA,[["render",UA],["__scopeId","data-v-b7149172"]]),KA=h.defineComponent({inheritAttrs:!1,emits:["change","change-internal","handleClick"],components:{wrapperMultiple:LA,BoneLabel:WA},props:{is:{type:Object,default:ar},name:{type:String,required:!0},languages:Array,multiple:Boolean,readonly:Boolean,required:Boolean,params:Object,value:[Object,String,Number,Boolean,Array],structure:{type:Object,required:!0},skel:{type:null,required:!0},errors:Object,showLabelInfo:{type:Boolean,required:!1,default:!1},autofocus:{type:Boolean,required:!1,default:!1}},setup(m,x){const C=h.reactive({bonestructure:h.computed(()=>{var T;return(T=m.structure)==null?void 0:T[m.name]}),bonevalue:null,dragStartIndex:{lang:null,index:Number},dropIndex:{lang:null,index:Number},draggingLineBottom:{lang:String,index:Number},draggingLineTop:{lang:String,index:Number},isDragging:{lang:String,index:Number},multilanguage:h.computed(()=>{var T;return((T=C.languages)==null?void 0:T.length)&&C.languages.length>0}),languages:h.computed(()=>m.languages?m.languages:C.bonestructure&&Object.keys(C.bonestructure).includes("languages")?C.bonestructure.languages:[]),readonly:h.computed(()=>m.readonly?m.readonly:C.bonestructure&&Object.keys(C.bonestructure).includes("readonly")?C.bonestructure.readonly:!1),required:h.computed(()=>m.required?m.required:C.bonestructure&&Object.keys(C.bonestructure).includes("required")?C.bonestructure.required:!1),hasTooltip:h.computed(()=>!!(C.bonestructure&&Object.keys(C.bonestructure.params).includes("tooltip"))),multiple:h.computed(()=>m.multiple?m.multiple:C.bonestructure&&Object.keys(C.bonestructure).includes("multiple")?C.bonestructure.multiple:!1),params:h.computed(()=>m.params?m.params:C.bonestructure&&Object.keys(C.bonestructure).includes("params")?C.bonestructure.params:{}),actionbar:h.computed(()=>{var T;return EA((T=C.bonestructure)==null?void 0:T.type)}),isEmpty:h.computed(()=>{function T(O){for(const[F,L]of Object.entries(O))if(L!==null){if(Array.isArray(L)&&L.length>0)return!1;if(!Array.isArray(L))return!1}return!0}return C.readonly?!1:!C.bonevalue||Array.isArray(C.bonevalue)&&C.bonevalue.length===0?!0:C.bonevalue===Object(C.bonevalue)&&!Array.isArray(C.bonevalue)?T(C.bonevalue):!1}),errors:[],errorMessages:h.computed(()=>{let T=[];for(let O of m.errors)O.fieldPath[0]===m.name&&(O.severity>2||C.required&&(O.severity===2||O.severity===0))&&T.push(O.errorMessage);return T})});h.provide("boneState",C);function N(T,O,F){w(O,T,"isDragging"),w(O,T,"dragStartIndex")}function B(T,O,F){F.preventDefault();const L=F.clientY-F.target.getBoundingClientRect().top,$=F.target.closest(".value-line");L<$.offsetHeight/2?(w(O,T,"draggingLineTop"),D("draggingLineBottom"),C.dropIndex.index=T):(w(O,T,"draggingLineBottom"),D("draggingLineTop"),C.dropIndex.index=T+1);let K=O?C.bonevalue[O]:C.bonevalue;C.dropIndex.index>K.length-1&&(C.dropIndex.index-=1)}function M(T,O,F){let L=null;C.dragStartIndex.index!==C.dropIndex.index&&(O?(L=C.bonevalue[O].splice(C.dragStartIndex.index,1)[0],C.bonevalue[O].splice(C.dropIndex.index,0,L)):(L=C.bonevalue.splice(C.dragStartIndex.index,1)[0],C.bonevalue.splice(C.dropIndex.index,0,L)),console.dir(C.bonevalue[0]),x.emit("change",{name:m.name,value:E(),lang:O,index:T})),D("draggingLineBottom","draggingLineTop","isDragging","dragStartIndex","dropIndex")}function w(T,O,F){C[F].lang=T||null,C[F].index=O}function D(...T){T.forEach(O=>{C[O]={lang:null,index:Number}})}function p(T,O,F=null,L=null,$){if(O===void 0||(F?(C.bonevalue||(C.bonevalue={}),Object.keys(C.bonevalue).includes(F)&&L!==null?C.bonevalue[F][L]=O:C.bonevalue[F]=O):L!==null?C.bonevalue[L]=O:$===!1||(C.bonevalue=O),C.readonly))return!1;let K={name:T,value:E(),lang:F,index:L},J={name:T,value:O,lang:F,index:L};$!=null&&(K.pwMatch=$,J.pwMatch=$),x.emit("change",K),x.emit("change-internal",J)}function E(){function T(F,L=null){let $=[];if(Array.isArray(F))if(C.bonestructure.type=="spatial"&&F.length===2&&!Array.isArray(F[0]))$.push({[L+".lat"]:F[0]}),$.push({[L+".lng"]:F[1]});else if(Object.values(F).filter(K=>K===Object(K)).length>0)for(const[K,J]of F.entries())J.rel!==null?$.push(T(J,L+"."+K)):$.push(T(J,L));else for(const[K,J]of F.entries())$.push(T(J,L));else if(F===Object(F))for(const[K,J]of Object.entries(F))L?L.endsWith(".dest")||L.endsWith(".rel")?L.endsWith(".dest")&&K==="key"?(/\.[0-9]*\.dest$/.test(L)?$.push(T(J,L.replace(/\.[0-9]*\.dest/,""))):$.push(T(J,L.replace(/\.dest/,""))),$.push(T(J,L.replace(/\.dest/,"")+"."+K))):L.endsWith(".rel")&&$.push(T(J,L.replace(/\.rel/,"")+"."+K)):$.push(T(J,L+"."+K)):$.push(T(J,K));else F==null&&(F=""),L!==null&&$.push({[L]:F});return $}let O=T(C.bonevalue,m.name);return O=O.flat(10),O}function S(T=null,O=""){T?Object.keys(C.bonevalue).includes(T)?C.bonevalue[T].push(O):C.bonevalue[T]=[O]:C.bonevalue?C.bonevalue.push(O):C.bonevalue=[O]}h.provide("addMultipleEntry",S);function v(T,O=null){var F;O?(F=C.bonevalue)==null||F[O].splice(T,1):C.bonevalue.splice(T,1),x.emit("change",{name:m.name,value:E(),lang:O,index:T}),x.emit("change-internal",{name:m.name,value:E(),lang:O,index:T})}function k(T=null){var O;T?(O=C.bonevalue)==null||O[T].splice(0):C.bonevalue.splice(0),x.emit("change",{name:m.name,value:E(),lang:T}),x.emit("change-internal",{name:m.name,value:E(),lang:T})}h.provide("removeMultipleEntries",k);function _(T=null,O=""){S(T,O)}function R(T,O){function F(J){let te=[],Z=[],ee=/\$\((.*?)\)/g;for(;Z;){if(Z=ee.exec(J),!Z){Z=!1;continue}te.push(Z[1])}return te}function L(J,te){let Z=J.split("."),ee=J.split("."),I=te;for(let Q of Z)if(ee.shift(),I&&I!=="-"&&Object.keys(I).includes(Q)&&I[Q])if(Array.isArray(I[Q])){let _e=[];for(let Se of I[Q])_e.push(L(ee.join("."),Se));I=_e.join(", ")}else I=I[Q];else(!I||typeof I[Q]=="object"&&!I[Q])&&(I="-");return I}let $=F(T),K=[];Array.isArray(O)||(O=[O]);for(let J of O){let te=T;for(let Z of $){let ee=L(Z,J);te=te.replace("$("+Z+")",ee)}K.push(te)}return K.join(", ")}return h.provide("formatString",R),h.onBeforeMount(()=>{var T;m.value?C.bonevalue=m.value:C.bonevalue=(T=m.skel)==null?void 0:T[m.name]}),h.watch(()=>m.skel,(T,O)=>{var F;C.bonevalue=(F=m.skel)==null?void 0:F[m.name]}),h.watch(()=>{var T;return(T=m.errors)==null?void 0:T[m.name]},(T,O)=>{C.errors=m.errors}),{state:C,updateValue:p,addMultipleEntry:S,removeMultipleEntry:v,removeMultipleEntries:k,BoneHasMultipleHandling:xA,multipleBonePressEnter:_,handleDragStart:N,handleDragOver:B,handleDrop:M,setStateProperties:w,resetStateProperties:D}}}),so=m=>(h.pushScopeId("data-v-dee63f3c"),m=m(),h.popScopeId(),m),GA={key:0,class:"required"},ZA=["content"],JA=[so(()=>h.createElementVNode("div",{class:"tooltip"},[h.createElementVNode("sl-icon",{name:"question"})],-1))],YA={key:0,variant:"info",open:"",class:"label-info"},QA=so(()=>h.createElementVNode("sl-icon",{slot:"icon",library:"bootstrap",name:"info-circle-fill"},null,-1)),XA={class:"bone-inner-wrap"},e0={key:0,class:"lang-tab",placement:"bottom"},t0=["panel"],n0=["name"],o0=[so(()=>h.createElementVNode("sl-input",{readonly:"",size:"medium",placeholder:"Keine Einträge"},null,-1))],i0={key:1,class:"multiple-placeholder"},r0=[so(()=>h.createElementVNode("sl-input",{readonly:"",size:"medium",placeholder:"Keine Einträge"},null,-1))],s0={open:"",summary:"Errors",variant:"info"},a0=so(()=>h.createElementVNode("sl-icon",{slot:"icon",name:"exclamation-triangle"},null,-1)),l0={class:"error-msg"};function c0(m,x,C,N,B,M){var p;const w=h.resolveComponent("bone-label"),D=h.resolveComponent("wrapper-multiple");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["bone-wrapper",(""+m.state.bonestructure.type.split(".")[0],{"has-subbones":m.state.bonestructure.using})])},[h.createVNode(w,{name:m.name},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass({required:m.state.required})},h.toDisplayString(m.state.bonestructure.descr),3),m.state.required?(h.openBlock(),h.createElementBlock("span",GA," *")):h.createCommentVNode("",!0),m.state.hasTooltip&&!m.showLabelInfo?(h.openBlock(),h.createElementBlock("sl-tooltip",{key:1,content:m.state.bonestructure.params.tooltip,placement:"top-center"},JA,8,ZA)):h.createCommentVNode("",!0)]),_:1},8,["name"]),m.showLabelInfo&&m.state.hasTooltip?(h.openBlock(),h.createElementBlock("sl-alert",YA,[QA,h.createTextVNode(" "+h.toDisplayString(m.state.bonestructure.params.tooltip),1)])):h.createCommentVNode("",!0),h.createElementVNode("div",XA,[m.state.multilanguage?(h.openBlock(),h.createElementBlock("sl-tab-group",e0,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(m.state.languages,E=>{var S,v,k,_;return h.openBlock(),h.createElementBlock(h.Fragment,{key:E+"_tab"},[h.createElementVNode("sl-tab",{slot:"nav",panel:"lang_"+E},h.toDisplayString(m.$t(E)),9,t0),h.createElementVNode("sl-tab-panel",{name:"lang_"+E},[m.state.multiple&&!m.BoneHasMultipleHandling(m.state.bonestructure.type)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[(S=m.state.bonevalue)!=null&&S[E].length?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList((v=m.state.bonevalue)==null?void 0:v[E],(R,T)=>(h.openBlock(),h.createElementBlock("div",{key:T,class:"multiple-bone"},[h.createVNode(D,{readonly:!m.state.readonly,"is-dragging":m.state.isDragging.lang===E&&m.state.isDragging.index===T,"dragging-line-bottom":m.state.draggingLineBottom.lang===E&&m.state.draggingLineBottom.index===T,"dragging-line-top":m.state.draggingLineTop.lang===E&&m.state.draggingLineTop.index===T,onDelete:O=>m.removeMultipleEntry(T,E),onHandleDragStart:O=>m.handleDragStart(T,E,O),onHandleDragOver:O=>m.handleDragOver(T,E,O),onHandleDrop:O=>m.handleDrop(T,E,O)},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.is),{value:R,index:T,lang:E,name:m.name,onChange:m.updateValue,onKeydown:h.withKeys(O=>m.multipleBonePressEnter(E),["enter"])},null,40,["value","index","lang","name","onChange","onKeydown"]))]),_:2},1032,["readonly","is-dragging","dragging-line-bottom","dragging-line-top","onDelete","onHandleDragStart","onHandleDragOver","onHandleDrop"])]))),128)):(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(["multiple-placeholder",{readonly:m.state.readonly}])},o0,2)),m.state.readonly?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.state.actionbar),{key:2,value:(k=m.state.bonevalue)==null?void 0:k[E],name:m.name,lang:E,onChange:m.updateValue},null,40,["value","name","lang","onChange"]))],64)):(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.is),{key:1,value:(_=m.state.bonevalue)==null?void 0:_[E],index:null,lang:E,name:m.name,onChange:m.updateValue},null,40,["value","lang","name","onChange"]))],8,n0)],64)}),128))])):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[m.state.multiple&&!m.BoneHasMultipleHandling(m.state.bonestructure.type)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[(p=m.state.bonevalue)!=null&&p.length?(h.openBlock(!0),h.createElementBlock(h.Fragment,{key:0},h.renderList(m.state.bonevalue,(E,S)=>(h.openBlock(),h.createElementBlock("div",{key:S,class:"multiple-bone"},[h.createVNode(D,{readonly:!m.state.readonly,"is-dragging":m.state.isDragging.index===S,"dragging-line-bottom":m.state.draggingLineBottom.index===S,"dragging-line-top":m.state.draggingLineTop.index===S,onDelete:v=>m.removeMultipleEntry(S),onHandleDragStart:v=>m.handleDragStart(S,m.lang=null,v),onHandleDragOver:v=>m.handleDragOver(S,m.lang=null,v),onHandleDrop:v=>m.handleDrop(S,m.lang=null,v)},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.is),{value:E,index:S,name:m.name,onChange:m.updateValue,onKeydown:x[0]||(x[0]=h.withKeys(v=>m.multipleBonePressEnter(),["enter"]))},null,40,["value","index","name","onChange"]))]),_:2},1032,["readonly","is-dragging","dragging-line-bottom","dragging-line-top","onDelete","onHandleDragStart","onHandleDragOver","onHandleDrop"])]))),128)):(h.openBlock(),h.createElementBlock("div",i0,r0)),m.state.readonly?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.state.actionbar),{key:2,value:m.state.bonevalue,name:m.name,onChange:m.updateValue},null,40,["value","name","onChange"]))],64)):(h.openBlock(),h.createBlock(h.resolveDynamicComponent(m.is),{key:1,value:m.state.bonevalue,name:m.name,index:null,autofocus:m.autofocus,onChange:m.updateValue,onKeypress:h.withKeys(m.updateValue,["enter"])},null,40,["value","name","autofocus","onChange","onKeypress"]))],64)),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(m.state.errorMessages,E=>(h.openBlock(),h.createElementBlock("sl-alert",s0,[a0,h.createElementVNode("div",l0,h.toDisplayString(E),1)]))),256))])],2)}const ur=de(KA,[["render",c0],["__scopeId","data-v-dee63f3c"]]),Yt=m=>(h.pushScopeId("data-v-71a3c8c9"),m=m(),h.popScopeId(),m),d0=Yt(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Nutzterdaten",-1)),h0=Yt(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Lieferadresse",-1)),u0=["onSlChange","onSlClear","label"],m0=["value"],g0={key:0},p0=Yt(()=>h.createElementVNode("h2",{class:"viur-shop-form-headline headline"},"Rechnungsadresse",-1)),f0=[Yt(()=>h.createElementVNode("sl-icon",{name:"x-lg",slot:"prefix"},null,-1))],k0=Yt(()=>h.createElementVNode("sl-icon",{name:"plus-lg",slot:"prefix"},null,-1)),b0=Yt(()=>h.createElementVNode("sl-icon",{slot:"icon",name:"exclamation-triangle"},null,-1)),w0=Yt(()=>h.createElementVNode("br",null,null,-1)),A0=de({__name:"UserInfoMulti",props:{mode:{type:String,default:"form"}},setup(m){const x=vn(),C=h.reactive({formValues:{},requiredFieldsFilled:h.computed(()=>{if(C.isCustomAdress)return Object.keys(C.formValues).includes("city")&&Object.keys(C.formValues).includes("street")&&Object.keys(C.formValues).includes("billing.city")&&Object.keys(C.formValues).includes("billing.street")&&Object.keys(C.formValues).includes("email")&&Object.keys(C.formValues).includes("firstname")&&Object.keys(C.formValues).includes("lastname");if(!C.isCustomAdress)return Object.keys(C.formValues).includes("city")&&Object.keys(C.formValues).includes("street")&&Object.keys(C.formValues).includes("email")&&Object.keys(C.formValues).includes("firstname")&&Object.keys(C.formValues).includes("lastname")}),isCustomAdress:!1,shippingAdressAmount:1,maxShippingAdress:h.computed(()=>Object.keys(x.state.carts).length+2),amountAlert:{title:"",msg:""},items:null,addSkel:null,errors:{},selectedItem:{},isInit:h.computed(()=>!!x.state.carts[x.state.basket])}),N=h.ref(null),B=h.ref(null);function M(k){k.target.checked&&(C.isCustomAdress=!1),k.target.checked||(C.isCustomAdress=!0)}function w(){if(C.shippingAdressAmount===C.maxShippingAdress){C.amountAlert.title="Zu viele Lieferadressen",C.amountAlert.msg=`Sie können nur maximal: "${C.maxShippingAdress}" Lieferadressen verwenden.`,B.value.show();return}C.shippingAdressAmount+=1}function D(k,_){for(const[R,T]of Object.entries(_.value[0]))C.formValues[R]=T}function p(){if(C.shippingAdressAmount===1){C.amountAlert.title="Zu wenig Lieferadressen",C.amountAlert.msg="Mindestens eine Lieferadresse muss angegeben werden.",B.value.show();return}C.shippingAdressAmount-=1}function E(k,_){if(console.log(k.target.value),!k.target.value.length){S();return}C.selectedItem[_]=k.target.value,C.isItemSelected=!0}function S(k,_){console.log("clearing..."),delete C.selectedItem[_],C.isItemSelected=!1}function v(k){let _={};return k.forEach(R=>{let T=R[0],O=R[1];_[T]=O}),_}return h.watch(C.formValues,k=>{Object.entries(k).forEach(([_,R])=>{R===""&&delete C.formValues[_]})}),h.onBeforeMount(async()=>{await x.getAdressStructure(),C.addSkel=x.state.structure.address}),(k,_)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createElementVNode("div",null,[d0,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(C.addSkel,R=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:R[0]},[R[1].visible&&R[1].params.group==="Customer Info"?(h.openBlock(),h.createBlock(ur,{key:0,is:h.unref(Jt)(R[1].type),name:R[0],structure:v(C.addSkel),errors:C.errors[R[0]]?C.errors[R[0]]:[],skel:C.formValues,onChange:T=>D(R[0],T),class:"viur-shop-form-grid-w-2"},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))]),h0,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(C.shippingAdressAmount,R=>(h.openBlock(),h.createElementBlock("div",{key:R},[h.createElementVNode("sl-select",{clearable:"",ref_for:!0,ref_key:"itemSelection",ref:N,onSlChange:T=>E(T,R),onSlClear:T=>S(T,R),label:C.selectedItem[R]?h.unref(x).state.carts[C.selectedItem[R]].info.name:"Warenkorb für Adresse wählen.",class:"grid-w-4"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(x).state.carts,(T,O)=>(h.openBlock(),h.createElementBlock("sl-option",{value:O},h.toDisplayString(T.info.name),9,m0))),256))],40,u0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(C.addSkel,T=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:T[0]},[T[1].visible&&T[1].params.group==="Customer Address"?(h.openBlock(),h.createBlock(ur,{key:0,is:h.unref(Jt)(T[1].type),name:T[0],structure:v(C.addSkel),errors:C.errors[T[0]]?C.errors[T[0]]:[],skel:C.formValues,onChange:O=>D(T[0],O)},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))]))),128)),C.isCustomAdress?(h.openBlock(),h.createElementBlock("div",g0,[p0,(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(C.addSkel,R=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:R[0]},[R[1].visible&&R[1].params.group==="Customer Address"?(h.openBlock(),h.createBlock(ur,{key:0,is:h.unref(Jt)(R[1].type),name:R[0],structure:v(C.addSkel),errors:C.errors[R[0]]?C.errors[R[0]]:[],skel:C.formValues,onChange:T=>D(R[0],T)},null,8,["is","name","structure","errors","skel","onChange"])):h.createCommentVNode("",!0)],64))),128))])):h.createCommentVNode("",!0),h.createElementVNode("div",{class:"viur-shop-form-btn-wrap"},[h.createElementVNode("sl-button",{size:"medium",onClick:p,title:"Lieferadresse entfernen"},f0),h.createElementVNode("sl-button",{size:"medium",variant:"primary",onClick:w},[k0,h.createTextVNode(" Lieferadresse hinzufügen ")])]),h.createElementVNode("sl-alert",{variant:"warning",duration:"2000",ref_key:"shippingWarning",ref:B,closable:""},[b0,h.createElementVNode("strong",null,h.toDisplayString(C.amountAlert.title),1),w0,h.createTextVNode(" "+h.toDisplayString(C.amountAlert.msg),1)],512),h.createElementVNode("sl-checkbox",{onSlChange:M,checked:""}," Rechnungsadresse wie Lieferadresse ",32)],64))}},[["__scopeId","data-v-71a3c8c9"]]),ul={__name:"ExampleUsage",setup(m){const x=vn(),C=h.computed(()=>x.state.basketRootNode.key?x.state.basketRootNode.key:""),N=h.reactive({rootNode:{},tabs:{cart:{component:h.shallowRef(rr),props:{sidebar:!0,mode:"basket",cartKey:C},displayName:"Warenkorb",icon:{name:"cart",library:"hsk"},position:2,disabled:!1,atShow:null,atHide:null},confirm:{component:h.shallowRef(sr),props:{},displayName:"Bestellung prüfen",icon:{name:"order-check",library:"hsk"},position:5,disabled:!1,atShow:null,atHide:null},orderComplete:{component:h.shallowRef(db),props:{},displayName:"Bestellung Abgeschlossen",icon:{name:"order-confirmed",library:"hsk"},position:6,disabled:!0,atShow:null,atHide:null},userInfo:{component:h.shallowRef(IA),props:{},displayName:"Daten Eingeben",icon:{name:"user",library:"hsk"},position:3,disabled:!1,atShow:null,atHide:null},userInfoMulti:{component:h.shallowRef(A0),props:{},displayName:"Daten Eingeben (Multi)",icon:{name:"user",library:"hsk"},position:4,disabled:!1,atShow:null,atHide:null}}});function B(M){(M==null?void 0:M.detail.name)==="confirm"&&(N.tabs.orderComplete.disabled=!1)}return h.onBeforeMount(async()=>{await x.init(),await x.getAdressStructure(),console.log("debug init exampleusage :",x.state.basketRootNode)}),(M,w)=>(h.openBlock(),h.createBlock(rb,{tabs:N.tabs,onTabChange:B},null,8,["tabs"]))}},_0={install(m){m.component("CartView",rr),m.component("ExampleUsage",ul),m.component("ConfirmView",sr)}};Ve.CartView=rr,Ve.ConfirmView=sr,Ve.ExampleUsage=ul,Ve.default=_0,Ve.useCartStore=vn,Object.defineProperties(Ve,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|