dh_ackergaul
vor 4 Tagen bb80cdf5a6157ca1f3a276e12e9faae9a4739cb7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import { e } from './custom-element-30fc6381.js';
import { n, B as BaseElement } from './base.component-813fc7cf.js';
import { i, r, x } from './query-assigned-elements-fea1f631.js';
import { o } from './class-map-a0fb5d87.js';
import '@dh-software/furnview-icons';
 
var css_248z = i`.close-symbol{cursor:pointer;height:100%;position:relative;width:100%}.close-symbol.loading{z-index:999}.close-symbol.loading:after,.close-symbol.loading:before{background:#fff}.close-symbol:after,.close-symbol:before{background:var(--close-symbol-background,#888);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;content:" ";height:1px;margin:0;padding:0;position:absolute;top:50%;width:100%}.close-symbol:after:hover,.close-symbol:before:hover{background:var(--close-symbol-background-hover,#333)}.close-symbol:after{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);transform:rotate(-45deg)}.close-symbol:before{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);transform:rotate(45deg)}:host(.active) .circle-number-symbol{border:var(--circle-number-symbol-border-active,2px solid #000)}.circle-number-symbol{align-items:center;background:var(--circle-number-symbol-background,var(--primary-color,red));border:var(--circle-number-symbol-border,2px solid #fff);border-radius:50%;box-shadow:var(--circle-number-symbol-box-shadow,1px 2px 5px 0 #000);color:var(--circle-number-symbol-color,var(--primary-text-color,#000));display:flex;height:var(--circle-number-symbol-size,30px);justify-content:center;position:relative;width:var(--circle-number-symbol-size,30px)}.custom-symbol{cursor:pointer;display:flex;left:10px;position:relative}.custom-symbol.up:after{background-image:var(--custom-symbol-image-down,url("/webui/images/minus.svg"));content:"";height:18px}.custom-symbol.down:after{background-image:var(--custom-symbol-image-down,url("/webui/images/plus.svg"));content:"";height:18px}.custom-symbol:after{color:#1e1e1e;margin:auto 0;padding:0 0 2px;pointer-events:none;transform:translateX(-15px);width:18px}.accordion-symbol{cursor:pointer;display:flex;left:10px;position:relative}.accordion-symbol.up:after{content:"-";font-size:xx-large;transform:scaleX(2) translateX(-4px)}.accordion-symbol.down:after{content:"+";font-size:xx-large}.accordion-symbol:after{color:#1e1e1e;margin:auto 0;padding:0 0 2px;pointer-events:none;transform:translateX(-15px);width:18px}.chevron-symbol{cursor:pointer;left:10px;position:relative}.chevron-symbol.up:after{content:"<"}.chevron-symbol.down:after{content:">"}.chevron-symbol:after{color:inherit;font:17px Consolas,monospace;padding:0 0 2px;pointer-events:none;position:absolute;-webkit-transform:rotate(90deg) translateX(-100%);-moz-transform:rotate(90deg) translateX(-100%);-ms-transform:rotate(90deg) translateX(-100%);transform:rotate(90deg) translateX(-100%)}@media (width >= 980px){.only-mobile{display:none!important}}@media (width <= 980px){.only-desktop{display:none!important}}.bold{font-weight:var(--global-font-weight-bold,600)}*{font-family:var(--global-font,Roboto);font-weight:var(--global-font-weight,400);-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.container{display:flex;margin:10px 0}.container.column{flex-direction:column}.container.column.reverse{flex-direction:column-reverse}.container.row{flex-direction:row}.container.row.reverse{flex-direction:row-reverse}.fluid{flex:1}.fluid.space-after{margin-right:55px}.hidden{display:none!important}.mobile-mode-hide,:host(.mobile-mode-hide){display:none!important}.invisible{visibility:hidden!important}.invisible-scroll,:host(.invisible-scroll){margin-right:-22px;overflow:hidden}.invisible-scroll>:first-child,:host(.invisible-scroll)>:first-child{box-sizing:content-box;overflow-x:hidden;overflow-y:scroll;padding-right:22px}.invisible-scroll.bottom,:host(.invisible-scroll.bottom){margin-right:unset;overflow:hidden}.invisible-scroll.bottom>:first-child,:host(.invisible-scroll.bottom)>:first-child{box-sizing:content-box;margin-bottom:-22px;overflow-x:scroll;overflow-y:hidden;padding-bottom:22px;padding-right:unset}:host([disabled]){filter:contrast(.5) grayscale(1);pointer-events:none}*{scrollbar-color:#5c5c5c hsla(0,0%,100%,.004);scrollbar-width:thin}[disabled]{filter:contrast(.5) grayscale(1);pointer-events:none}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar,::-webkit-scrollbar-corner{background:hsla(0,0%,100%,0)}::-webkit-scrollbar-thumb{background:#5c5c5c;-webkit-border-radius:8px}::-webkit-scrollbar-button,::-webkit-scrollbar-button:horizontal:end:decrement,::-webkit-scrollbar-button:horizontal:end:increment,::-webkit-scrollbar-button:vertical:end:decrement,::-webkit-scrollbar-button:vertical:start:increment{background-color:transparent;border:none;color:transparent}:host([active]) .pp-group-title{color:var(--primary-color,red)!important}:host{display:flex;height:100px;width:calc(100% - 15px)}:host .pp-current-image{height:100px;margin-right:40px;width:100px}:host .pp-current-image .pp-image{background-position:50%;background-size:cover;height:100%;width:100%}:host .pp-current-image .pp-image.not-found{background-image:var(--default-image,url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAMcAQMAAACl5F6MAAAABlBMVEW8vsDn6OnyCdevAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEbUlEQVR4AezBMQEAAADCoPVP7WsIoAcAAAAAAAAAAAAAAAAAAAAAAIydO0iOk4eCAGyVXNEuukF0FB1NHE1H0RG0ZEHRf5A99WYMk1T+Kvolw+vVjBf+CkMLoRCFWQkuqCquB3QOOQKrCpwBKJ1i6Jxk/EzTubaArgAHQOeyjhu8aMEafUrYolLjLRMfLrpw5cMYadeBnTLcrwN7ZXi+DhyuCi8GG/xy8Gyw3SRe7n7cLzfnajah5z87keFJ//lYf0WAAq+vv+rDX+fir+zpr2Xqr95qrle/ywr9OxX+/nF19fGRmR/yrzCJCudRqNHiNDHhIlquTBgCF2aX3V2BwYT9nUYdNoNojnqjiKJ56q0xiRaok4EsWqQO2EW0RJ3wQbTMvDc6iFaYswEvkx5Hnf8E0Tx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AAAAAAAAAAAAAAAAAAAAAAAAAAAAEHVJjR5bJLd8AAAAASUVORK5CYII="))}:host .pp-current-image .pp-image.not-found.transparent{background-color:transparent;background-image:none}:host .pp-current-image .pp-image.bordered{border:1px solid #e5e5e5}:host .pp-info{border-bottom:2px solid #e5e5e5;display:flex;flex:1;flex-direction:column;overflow:hidden;word-break:break-word}:host .pp-info .pp-group-title{color:#727272;padding:6px}:host .pp-info .pp-group-title .pp-chevron{padding-left:23px}:host .pp-info .pp-current-name{padding:6px}:host .pp-items-counter{flex:none;text-align:center}`;
 
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getProtoOf = Object.getPrototypeOf;
var __reflectGet = Reflect.get;
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result)
    __defProp(target, key, result);
  return result;
};
var __superStaticGet = (obj, member) => __reflectGet(__getProtoOf(obj), member, obj);
let PPMenuComponent = class extends BaseElement {
  constructor(options) {
    super();
    this._showItemCount = true;
    this._onlyOneChild = false;
    this.currentImage = "";
    this.currentName = "";
    this.itemCount = 0;
    this.active = false;
    this.titleText = "";
    options = options || {};
    this.titleText = options.title || "";
    this._showItemCount = !options.hideItemCount;
  }
  render() {
    this._onlyOneChild = !!this.getAttribute("disabled");
    const chevronClass = {
      "chevron-symbol": !this._onlyOneChild,
      up: this.active && !this._onlyOneChild,
      down: !this.active && !this._onlyOneChild
    };
    const classMapCurrentImage = {
      "not-found": !this.currentImage,
      "pp-image": true
    };
    return x`<div class="pp-current-image">
            <div class=${o(classMapCurrentImage)} style="${this.currentImage ? `background-${this.currentImage.startsWith("#") ? `color: ${this.currentImage}` : this.currentImage.split(",").length >= 2 ? `color: rgba(${this.currentImage})` : `image: url(${this.currentImage})`}` : ""}"></div>
            </div>
            <div class="pp-info">
                <div class="pp-group-title">
                    <span>${this.titleText}</span>
                    <span class=${o(chevronClass)}></span>
                </div>
                <div class="pp-current-name">
                    <span>${this.currentName}</span>
                </div>
            </div>
        ${this._showItemCount ? x`
                        <div class="pp-items-counter">
                            <span>${this.itemCount}</span>
                        </div>` : ""}
        `;
  }
};
PPMenuComponent.styles = [
  __superStaticGet(PPMenuComponent, "styles") || [],
  i`${r(css_248z)}`
];
__decorateClass([
  n({ type: String, reflect: true })
], PPMenuComponent.prototype, "currentImage", 2);
__decorateClass([
  n({ type: String, reflect: true })
], PPMenuComponent.prototype, "currentName", 2);
__decorateClass([
  n({ type: Number, reflect: true })
], PPMenuComponent.prototype, "itemCount", 2);
__decorateClass([
  n({ type: Boolean, reflect: true })
], PPMenuComponent.prototype, "active", 2);
__decorateClass([
  n({ type: String, reflect: true })
], PPMenuComponent.prototype, "titleText", 2);
PPMenuComponent = __decorateClass([
  e("fv-pp-menu")
], PPMenuComponent);
 
export { PPMenuComponent };