@htmlbricks/hb-sidebar-desktop 0.19.3 → 0.19.4

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-sidebar-desktop",
3
3
  "displayName": "Svelte Boostrap Sidebar Desktop",
4
4
  "description": "Svelte Boostrap Sidebar Desktop",
5
- "version": "0.19.3",
5
+ "version": "0.19.4",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -76,9 +76,9 @@
76
76
  "html5-webcomponents"
77
77
  ],
78
78
  "contributors": [],
79
- "gitHead": "39639de313b95a015df9557f2a30fed80ca477f8",
79
+ "gitHead": "fe4a8986650b6dc9d77c4560ebb9e132c8d48efe",
80
80
  "dependencies": {
81
- "@htmlbricks/hb-sidenav-link": "^0.19.3",
81
+ "@htmlbricks/hb-sidenav-link": "^0.19.4",
82
82
  "style-to-object": "^0.3.0"
83
83
  }
84
84
  }
@@ -618,5 +618,5 @@
618
618
  "size": {},
619
619
  "iifePath": "release/release.js",
620
620
  "repoName": "@htmlbricks/hb-sidebar-desktop",
621
- "version": "0.19.3"
621
+ "version": "0.19.4"
622
622
  }
@@ -1,2 +1,2 @@
1
- var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a,l;function s(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}function c(t,e){t.appendChild(e)}function d(t,e,n){t.insertBefore(e,n||null)}function u(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function m(){return p(" ")}function g(){return p("")}function h(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function v(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:b(t,e,n)}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function w(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function x(t){const e={};for(const n of t)e[n.name]=n.value;return e}function $(t){l=t}function k(){if(!l)throw new Error("Function called outside component initialization");return l}function E(){const t=k();return(e,n,{cancelable:o=!1}={})=>{const r=t.$$.callbacks[e];if(r){const i=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,o,e),r}(e,n,{cancelable:o});return r.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}const C=[],N=[],_=[],S=[],M=Promise.resolve();let L=!1;function O(t){_.push(t)}const T=new Set;let j=0;function A(){const t=l;do{for(;j<C.length;){const t=C[j];j++,$(t),D(t.$$)}for($(null),C.length=0,j=0;N.length;)N.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];T.has(e)||(T.add(e),e())}_.length=0}while(C.length);for(;S.length;)S.pop()();L=!1,T.clear(),$(t)}function D(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const z=new Set;function P(t,e){t&&t.i&&(z.delete(t),t.i(e))}function J(t,e){t.d(1),e.delete(t.key)}function I(t,e,n,o,r,i,a,l,s,c,d,u){let f=t.length,p=i.length,m=f;const g={};for(;m--;)g[t[m].key]=m;const h=[],b=new Map,v=new Map;for(m=p;m--;){const t=u(r,i,m),l=n(t);let s=a.get(l);s?o&&s.p(t,e):(s=c(l,t),s.c()),b.set(l,h[m]=s),l in g&&v.set(l,Math.abs(m-g[l]))}const y=new Set,w=new Set;function x(t){P(t,1),t.m(l,d),a.set(t.key,t),d=t.first,p--}for(;f&&p;){const e=h[p-1],n=t[f-1],o=e.key,r=n.key;e===n?(d=e.first,f--,p--):b.has(r)?!a.has(o)||y.has(o)?x(e):w.has(r)?f--:v.get(o)>v.get(r)?(w.add(o),x(e)):(y.add(r),f--):(s(n,a),f--)}for(;f--;){const e=t[f];b.has(e.key)||s(e,a)}for(;p;)x(h[p-1]);return h}function R(t,e){-1===t.$$.dirty[0]&&(C.push(t),L||(L=!0,M.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function F(i,a,s,c,d,f,p,m=[-1]){const g=l;$(i);const h=i.$$={fragment:null,ctx:null,props:f,update:t,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:a.target||g.$$.root};p&&p(h.root);let b=!1;if(h.ctx=s?s(i,a.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return h.ctx&&d(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),b&&R(i,t)),e})):[],h.update(),b=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);h.fragment&&h.fragment.l(t),t.forEach(u)}else h.fragment&&h.fragment.c();a.intro&&P(i.$$.fragment),function(t,n,i,a){const{fragment:l,on_mount:s,on_destroy:c,after_update:d}=t.$$;l&&l.m(n,i),a||O((()=>{const n=s.map(e).filter(r);c?c.push(...n):o(n),t.$$.on_mount=[]})),d.forEach(O)}(i,a.target,a.anchor,a.customElement),A()}$(g)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var U="0.19.3";var W,B=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,o,r="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(o=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===o?void 0:o.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(r+="".concat(n,":").concat(t[n],";"))},a=0,l=Object.keys(t);a<l.length;a++)i(l[a]);return r},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var o=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var r=document.createElement("script");r.id=n+"-script",r.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(r.src="".concat(t.local)),document.head.appendChild(r)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,o){return t.formatDate(e,n,o||this.lang)},t.getDefaultLang=function(){var t,e,n,o,r,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(r=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===r?void 0:r.toLowerCase()),i},t.getDictionaryWord=function(e,n,o){var r;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(r=n[o])||void 0===r?void 0:r[e]))return n[o][e];var i="",a=t.getDefaultLang();if(!o||a!==o){var l=null==n?void 0:n[a];(null==l?void 0:l[e])&&(i=l[e])}return i},t.formatDate=function(e,n,o){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(W={exports:{}},W.exports),W.exports),V=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,q=/\n/g,K=/^\s*/,G=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Q=/^:\s*/,X=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Y=/^[;\s]*/,Z=/^\s+|\s+$/g,tt="";function et(t){return t?t.replace(Z,tt):tt}var nt=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var r,i,a=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,o=1;function r(t){var e=t.match(q);e&&(n+=e.length);var r=t.lastIndexOf("\n");o=~r?t.length-r:o+t.length}function i(){var t={line:n,column:o};return function(e){return e.position=new a(t),c(),e}}function a(t){this.start=t,this.end={line:n,column:o},this.source=e.source}function l(r){var i=new Error(e.source+":"+n+":"+o+": "+r);if(i.reason=r,i.filename=e.source,i.line=n,i.column=o,i.source=t,!e.silent)throw i}function s(e){var n=e.exec(t);if(n){var o=n[0];return r(o),t=t.slice(o.length),n}}function c(){s(K)}function d(t){var e;for(t=t||[];e=u();)!1!==e&&t.push(e);return t}function u(){var e=i();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;tt!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,tt===t.charAt(n-1))return l("End of comment missing");var a=t.slice(2,n-2);return o+=2,r(a),t=t.slice(n),o+=2,e({type:"comment",comment:a})}}function f(){var t=i(),e=s(G);if(e){if(u(),!s(Q))return l("property missing ':'");var n=s(X),o=t({type:"declaration",property:et(e[0].replace(V,tt)),value:n?et(n[0].replace(V,tt)):tt});return s(Y),o}}return a.prototype.content=t,c(),function(){var t,e=[];for(d(e);t=f();)!1!==t&&(e.push(t),d(e));return e}()}(t),l="function"==typeof e,s=0,c=a.length;s<c;s++)r=(n=a[s]).property,i=n.value,l?e(r,i,n):i&&(o||(o={}),o[r]=i);return o},ot={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function rt(t,e,n){const o=t.slice();return o[22]=e[n],o}function it(t,e,n){const o=t.slice();return o[25]=e[n],o}function at(t,e,n){const o=t.slice();return o[22]=e[n],o}function lt(t,e,n){const o=t.slice();return o[25]=e[n],o}function st(t,e,n){const o=t.slice();return o[25]=e[n],o}function ct(t){let e,n,o,r=t[3]&&dt(t);return{c(){e=f("div"),r&&r.c(),n=m(),o=p(t[4]),w(e,"margin-top","10px")},m(t,i){d(t,e,i),r&&r.m(e,null),c(e,n),c(e,o)},p(t,i){t[3]?r?r.p(t,i):(r=dt(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),16&i[0]&&y(o,t[4])},d(t){t&&u(e),r&&r.d()}}}function dt(t){let e,n;return{c(){e=f("img"),w(e,"height","40px"),w(e,"margin-right","10px"),s(e.src,n=t[3])||b(e,"src",n),b(e,"alt","")},m(t,n){d(t,e,n)},p(t,o){8&o[0]&&!s(e.src,n=t[3])&&b(e,"src",n)},d(t){t&&u(e)}}}function ut(t){let e,n=[],o=new Map,r=t[0].filter($t);const i=t=>t[25].key;for(let e=0;e<r.length;e+=1){let a=st(t,r,e),l=i(a);o.set(l,n[e]=ft(l,a))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=g()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);d(t,e,o)},p(t,a){195&a[0]&&(r=t[0].filter($t),n=I(n,a,i,1,t,r,o,e.parentNode,J,ft,e,st))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function ft(t,e){let n,o,r,i;return{key:t,first:null,c(){n=f("hb-sidenav-link"),v(n,"style",e[6]),v(n,"navlink",o=JSON.stringify(e[25])),v(n,"navpage",e[1]),this.first=n},m(t,o){d(t,n,o),r||(i=h(n,"pageChange",e[11]),r=!0)},p(t,r){e=t,64&r[0]&&v(n,"style",e[6]),1&r[0]&&o!==(o=JSON.stringify(e[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",e[1])},d(t){t&&u(n),r=!1,i()}}}function pt(t){let e,n=[],o=new Map,r=t[2];const i=t=>t[22].key;for(let e=0;e<r.length;e+=1){let a=at(t,r,e),l=i(a);o.set(l,n[e]=gt(l,a))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=g()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);d(t,e,o)},p(t,a){199&a[0]&&(r=t[2],n=I(n,a,i,1,t,r,o,e.parentNode,J,gt,e,at))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function mt(t,e){let n,o,r,i;return{key:t,first:null,c(){n=f("hb-sidenav-link"),v(n,"style",e[6]),v(n,"navlink",o=JSON.stringify(e[25])),v(n,"navpage",e[1]),this.first=n},m(t,o){d(t,n,o),r||(i=h(n,"pageChange",e[13]),r=!0)},p(t,r){e=t,64&r[0]&&v(n,"style",e[6]),5&r[0]&&o!==(o=JSON.stringify(e[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",e[1])},d(t){t&&u(n),r=!1,i()}}}function gt(t,e){let n,o,r,i,a,l,s=e[22].label+"",h=[],b=new Map;function v(...t){return e[12](e[22],...t)}let x=e[0].filter(v);const $=t=>t[25].key;for(let t=0;t<x.length;t+=1){let n=lt(e,x,t),o=$(n);b.set(o,h[t]=mt(o,n))}return{key:t,first:null,c(){n=f("h5"),o=p(s),r=m(),i=f("hr"),a=m();for(let t=0;t<h.length;t+=1)h[t].c();l=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(t,e){d(t,n,e),c(n,o),d(t,r,e),d(t,i,e),d(t,a,e);for(let n=0;n<h.length;n+=1)h[n].m(t,e);d(t,l,e)},p(t,n){e=t,4&n[0]&&s!==(s=e[22].label+"")&&y(o,s),199&n[0]&&(x=e[0].filter(v),h=I(h,n,$,1,e,x,b,l.parentNode,J,mt,l,lt))},d(t){t&&u(n),t&&u(r),t&&u(i),t&&u(a);for(let e=0;e<h.length;e+=1)h[e].d(t);t&&u(l)}}}function ht(t){let e,n=[],o=new Map,r=t[0].filter(t[14]).map(kt).filter(Et);const i=t=>t[22];for(let e=0;e<r.length;e+=1){let a=rt(t,r,e),l=i(a);o.set(l,n[e]=vt(l,a))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=g()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);d(t,e,o)},p(t,a){199&a[0]&&(r=t[0].filter(t[14]).map(kt).filter(Et),n=I(n,a,i,1,t,r,o,e.parentNode,J,vt,e,rt))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function bt(t,e){let n,o,r,i;return{key:t,first:null,c(){n=f("hb-sidenav-link"),v(n,"style",e[6]),v(n,"navlink",o=JSON.stringify(e[25])),v(n,"navpage",e[1]),this.first=n},m(t,o){d(t,n,o),r||(i=h(n,"pageChange",e[16]),r=!0)},p(t,r){e=t,64&r[0]&&v(n,"style",e[6]),5&r[0]&&o!==(o=JSON.stringify(e[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",e[1])},d(t){t&&u(n),r=!1,i()}}}function vt(t,e){let n,o,r,i,a,l,s=e[22]+"",h=[],b=new Map;function v(...t){return e[15](e[22],...t)}let x=e[0].filter(v);const $=t=>t[25].key;for(let t=0;t<x.length;t+=1){let n=it(e,x,t),o=$(n);b.set(o,h[t]=bt(o,n))}return{key:t,first:null,c(){n=f("h5"),o=p(s),r=m(),i=f("hr"),a=m();for(let t=0;t<h.length;t+=1)h[t].c();l=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(t,e){d(t,n,e),c(n,o),d(t,r,e),d(t,i,e),d(t,a,e);for(let n=0;n<h.length;n+=1)h[n].m(t,e);d(t,l,e)},p(t,n){e=t,5&n[0]&&s!==(s=e[22]+"")&&y(o,s),199&n[0]&&(x=e[0].filter(v),h=I(h,n,$,1,e,x,b,l.parentNode,J,bt,l,it))},d(t){t&&u(n),t&&u(r),t&&u(i),t&&u(a);for(let e=0;e<h.length;e+=1)h[e].d(t);t&&u(l)}}}function yt(t){let e,n,o;return{c(){e=f("hr"),n=m(),o=f("slot"),o.textContent="footer",b(o,"name","footer")},m(t,r){d(t,e,r),d(t,n,r),d(t,o,r)},d(t){t&&u(e),t&&u(n),t&&u(o)}}}function wt(e){let n,o,r,i,a,l,s,p,g,h,v,y,x,$,k=e[0]?.length&&e[0].filter(xt)?.length,E=e[4]&&ct(e),C=k&&ut(e),N=e[2]?.length&&pt(e),_=e[0]?.length&&ht(e),S=e[5]&&yt();return{c(){n=f("link"),o=m(),r=f("div"),i=f("slot"),a=m(),l=f("div"),s=f("h4"),p=f("slot"),g=m(),E&&E.c(),h=m(),v=f("ul"),C&&C.c(),y=m(),N&&N.c(),x=m(),_&&_.c(),$=m(),S&&S.c(),this.c=t,b(n,"rel","stylesheet"),b(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),b(i,"name","test"),b(p,"name","header"),b(p,"part","header"),b(s,"class","offcanvas-title"),b(v,"class","nav nav-pills flex-column mb-auto"),w(v,"margin-top","25px"),b(l,"class","d-flex flex-column p-3 bg-light"),w(l,"height","100%"),w(l,"padding-top","0px",1),w(l,"position","relative"),w(l,"max-height","100%"),w(l,"overflow-y","auto"),b(r,"id","webcomponent"),w(r,"position","relative"),w(r,"height","100%")},m(t,e){c(document.head,n),d(t,o,e),d(t,r,e),c(r,i),c(r,a),c(r,l),c(l,s),c(s,p),c(s,g),E&&E.m(s,null),c(l,h),c(l,v),C&&C.m(v,null),c(v,y),N&&N.m(v,null),c(v,x),_&&_.m(v,null),c(l,$),S&&S.m(l,null)},p(t,e){t[4]?E?E.p(t,e):(E=ct(t),E.c(),E.m(s,null)):E&&(E.d(1),E=null),1&e[0]&&(k=t[0]?.length&&t[0].filter(xt)?.length),k?C?C.p(t,e):(C=ut(t),C.c(),C.m(v,y)):C&&(C.d(1),C=null),t[2]?.length?N?N.p(t,e):(N=pt(t),N.c(),N.m(v,x)):N&&(N.d(1),N=null),t[0]?.length?_?_.p(t,e):(_=ht(t),_.c(),_.m(v,null)):_&&(_.d(1),_=null),t[5]?S||(S=yt(),S.c(),S.m(l,null)):S&&(S.d(1),S=null)},i:t,o:t,d(t){u(n),t&&u(o),t&&u(r),E&&E.d(),C&&C.d(),N&&N.d(),_&&_.d(),S&&S.d()}}}const xt=t=>!t.group,$t=t=>!t.group,kt=t=>t.group,Et=(t,e,n)=>n.indexOf(t)===e;function Ct(t,e,n){let o,{id:r}=e,{navlinks:i}=e,{navpage:a}=e,{groups:l}=e,{companylogouri:s}=e,{companytitle:c}=e,{enablefooter:d}=e,{style:u}=e,f="";const p=k(),m=E();function g(t){console.log(t),function(t,e){m(t,e),p.dispatchEvent&&p.dispatchEvent(new CustomEvent(t,{detail:e}))}("pageChange",{page:t})}B.addComponent({repoName:"@htmlbricks/hb-sidenav-link",version:U});return t.$$set=t=>{"id"in t&&n(8,r=t.id),"navlinks"in t&&n(0,i=t.navlinks),"navpage"in t&&n(1,a=t.navpage),"groups"in t&&n(2,l=t.groups),"companylogouri"in t&&n(3,s=t.companylogouri),"companytitle"in t&&n(4,c=t.companytitle),"enablefooter"in t&&n(5,d=t.enablefooter),"style"in t&&n(9,u=t.style)},t.$$.update=()=>{if(1855&t.$$.dirty[0]){r||n(8,r=null),u&&(n(10,o=nt(u)),n(6,f=B.getChildStyleToPass(o,null==ot?void 0:ot.vars))),s||n(3,s="https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"),c||n(4,c=""),d&&"no"!==d||n(5,d=!1),a||n(1,a="home");try{"string"==typeof l?n(2,l=JSON.parse(l)):l||n(2,l=[]),"string"==typeof i?n(0,i=JSON.parse(i)):i||(n(0,i=[]),n(0,i=null))}catch(t){}}},[i,a,l,s,c,d,f,g,r,u,o,t=>g(t.detail.page),(t,e)=>e.group&&e.group===t.key,t=>g(t.detail.page),t=>t.group&&(!l?.length||!l.map((t=>t.key)).includes(t.group)),(t,e)=>e.group&&e.group===t,t=>g(t.detail.page)]}class Nt extends H{constructor(t){super(),this.shadowRoot.innerHTML='<style>@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:0.25}hr:not([size]){height:1px}h5,h4{margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}h4{font-size:calc(1.275rem + 0.3vw)}@media(min-width: 1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}ul{padding-left:2rem}ul{margin-top:0;margin-bottom:1rem}img{vertical-align:middle}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(prefers-reduced-motion: reduce){}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(min-width: 576px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(max-width: 575.98px){}@media(max-width: 767.98px){}@media(max-width: 991.98px){}@media(max-width: 1199.98px){}@media(max-width: 1399.98px){}@media(prefers-reduced-motion: reduce){}.offcanvas-title{margin-bottom:0;line-height:1.5}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.d-flex{display:flex !important}.flex-column{flex-direction:column !important}.mb-auto{margin-bottom:auto !important}.p-3{padding:1rem !important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}#webcomponent{font-family:"Roboto", sans-serif}@media(min-width: 768px){}:host{display:block;width:240px}</style>',F(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},Ct,wt,i,{id:8,navlinks:0,navpage:1,groups:2,companylogouri:3,companytitle:4,enablefooter:5,style:9},null,[-1,-1]),t&&(t.target&&d(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["id","navlinks","navpage","groups","companylogouri","companytitle","enablefooter","style"]}get id(){return this.$$.ctx[8]}set id(t){this.$$set({id:t}),A()}get navlinks(){return this.$$.ctx[0]}set navlinks(t){this.$$set({navlinks:t}),A()}get navpage(){return this.$$.ctx[1]}set navpage(t){this.$$set({navpage:t}),A()}get groups(){return this.$$.ctx[2]}set groups(t){this.$$set({groups:t}),A()}get companylogouri(){return this.$$.ctx[3]}set companylogouri(t){this.$$set({companylogouri:t}),A()}get companytitle(){return this.$$.ctx[4]}set companytitle(t){this.$$set({companytitle:t}),A()}get enablefooter(){return this.$$.ctx[5]}set enablefooter(t){this.$$set({enablefooter:t}),A()}get style(){return this.$$.ctx[9]}set style(t){this.$$set({style:t}),A()}}return customElements.define("hb-sidebar-desktop",Nt),Nt}();
1
+ var release=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function o(t){t.forEach(e)}function r(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a,l;function s(t,e){return a||(a=document.createElement("a")),a.href=e,t===a.href}function c(t,e){t.appendChild(e)}function d(t,e,n){t.insertBefore(e,n||null)}function u(t){t.parentNode.removeChild(t)}function f(t){return document.createElement(t)}function p(t){return document.createTextNode(t)}function m(){return p(" ")}function g(){return p("")}function h(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function b(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function v(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:b(t,e,n)}function y(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function w(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function x(t){const e={};for(const n of t)e[n.name]=n.value;return e}function $(t){l=t}function k(){if(!l)throw new Error("Function called outside component initialization");return l}function E(){const t=k();return(e,n,{cancelable:o=!1}={})=>{const r=t.$$.callbacks[e];if(r){const i=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const r=document.createEvent("CustomEvent");return r.initCustomEvent(t,n,o,e),r}(e,n,{cancelable:o});return r.slice().forEach((e=>{e.call(t,i)})),!i.defaultPrevented}return!0}}const C=[],N=[],_=[],S=[],M=Promise.resolve();let L=!1;function O(t){_.push(t)}const T=new Set;let j=0;function A(){const t=l;do{for(;j<C.length;){const t=C[j];j++,$(t),D(t.$$)}for($(null),C.length=0,j=0;N.length;)N.pop()();for(let t=0;t<_.length;t+=1){const e=_[t];T.has(e)||(T.add(e),e())}_.length=0}while(C.length);for(;S.length;)S.pop()();L=!1,T.clear(),$(t)}function D(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(O)}}const z=new Set;function P(t,e){t&&t.i&&(z.delete(t),t.i(e))}function J(t,e){t.d(1),e.delete(t.key)}function I(t,e,n,o,r,i,a,l,s,c,d,u){let f=t.length,p=i.length,m=f;const g={};for(;m--;)g[t[m].key]=m;const h=[],b=new Map,v=new Map;for(m=p;m--;){const t=u(r,i,m),l=n(t);let s=a.get(l);s?o&&s.p(t,e):(s=c(l,t),s.c()),b.set(l,h[m]=s),l in g&&v.set(l,Math.abs(m-g[l]))}const y=new Set,w=new Set;function x(t){P(t,1),t.m(l,d),a.set(t.key,t),d=t.first,p--}for(;f&&p;){const e=h[p-1],n=t[f-1],o=e.key,r=n.key;e===n?(d=e.first,f--,p--):b.has(r)?!a.has(o)||y.has(o)?x(e):w.has(r)?f--:v.get(o)>v.get(r)?(w.add(o),x(e)):(y.add(r),f--):(s(n,a),f--)}for(;f--;){const e=t[f];b.has(e.key)||s(e,a)}for(;p;)x(h[p-1]);return h}function R(t,e){-1===t.$$.dirty[0]&&(C.push(t),L||(L=!0,M.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function F(i,a,s,c,d,f,p,m=[-1]){const g=l;$(i);const h=i.$$={fragment:null,ctx:null,props:f,update:t,not_equal:d,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(g?g.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:a.target||g.$$.root};p&&p(h.root);let b=!1;if(h.ctx=s?s(i,a.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return h.ctx&&d(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),b&&R(i,t)),e})):[],h.update(),b=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);h.fragment&&h.fragment.l(t),t.forEach(u)}else h.fragment&&h.fragment.c();a.intro&&P(i.$$.fragment),function(t,n,i,a){const{fragment:l,on_mount:s,on_destroy:c,after_update:d}=t.$$;l&&l.m(n,i),a||O((()=>{const n=s.map(e).filter(r);c?c.push(...n):o(n),t.$$.on_mount=[]})),d.forEach(O)}(i,a.target,a.anchor,a.customElement),A()}$(g)}let H;"function"==typeof HTMLElement&&(H=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(r);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){o(this.$$.on_disconnect)}$destroy(){!function(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var U="0.19.4";var W,B=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,o,r="";if(t&&(null==e?void 0:e.length)&&(null===(n=Object.keys(t))||void 0===n?void 0:n.length)&&(null===(o=null==e?void 0:e.filter((function(e){return Object.keys(t).includes(e.name)})))||void 0===o?void 0:o.length))for(var i=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(r+="".concat(n,":").concat(t[n],";"))},a=0,l=Object.keys(t);a<l.length;a++)i(l[a]);return r},e.addComponent=function(t){var e,n=(null===(e=null==t?void 0:t.repoName.split("/"))||void 0===e?void 0:e[1])||(null==t?void 0:t.repoName);if(!n)throw new Error("wrong componentPath "+(null==t?void 0:t.repoName));if(!(null==t?void 0:t.version))throw new Error("wrong version "+(null==t?void 0:t.version));var o=(null==t?void 0:t.iifePath)||"release/release.js";if(!document.getElementById(n+"-script"))try{var r=document.createElement("script");r.id=n+"-script",r.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(r.src="".concat(t.local)),document.head.appendChild(r)}catch(t){console.warn(t)}};var n=function(){function t(t){if(!(null==t?void 0:t.dictionary))throw new Error("no dictionary provided");this.dictionary=t.dictionary,this.setLang(null==t?void 0:t.lang)}return t.prototype.setLang=function(e){e||(e=t.getDefaultLang()),this.lang=e},t.prototype.translateWord=function(e,n){return t.getDictionaryWord(e,this.dictionary,n||this.lang)},t.prototype.translateDate=function(e,n,o){return t.formatDate(e,n,o||this.lang)},t.getDefaultLang=function(){var t,e,n,o,r,i="en";return(null===navigator||void 0===navigator?void 0:navigator.languages)&&(null===(n=null===(e=null===(t=navigator.languages[0])||void 0===t?void 0:t.split("-")[0])||void 0===e?void 0:e.toLowerCase())||void 0===n?void 0:n.length)&&(i=null===(r=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===r?void 0:r.toLowerCase()),i},t.getDictionaryWord=function(e,n,o){var r;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(r=n[o])||void 0===r?void 0:r[e]))return n[o][e];var i="",a=t.getDefaultLang();if(!o||a!==o){var l=null==n?void 0:n[a];(null==l?void 0:l[e])&&(i=l[e])}return i},t.formatDate=function(e,n,o){if(!e)throw new Error("no date provided");if("function"!=typeof e.getMonth)throw new Error("wrong date format");return new Intl.DateTimeFormat(o||t.getDefaultLang(),n).format(e)},t}();e.LanguageTranslator=n}(W={exports:{}},W.exports),W.exports),V=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,q=/\n/g,K=/^\s*/,G=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Q=/^:\s*/,X=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Y=/^[;\s]*/,Z=/^\s+|\s+$/g,tt="";function et(t){return t?t.replace(Z,tt):tt}var nt=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var r,i,a=function(t,e){if("string"!=typeof t)throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,o=1;function r(t){var e=t.match(q);e&&(n+=e.length);var r=t.lastIndexOf("\n");o=~r?t.length-r:o+t.length}function i(){var t={line:n,column:o};return function(e){return e.position=new a(t),c(),e}}function a(t){this.start=t,this.end={line:n,column:o},this.source=e.source}function l(r){var i=new Error(e.source+":"+n+":"+o+": "+r);if(i.reason=r,i.filename=e.source,i.line=n,i.column=o,i.source=t,!e.silent)throw i}function s(e){var n=e.exec(t);if(n){var o=n[0];return r(o),t=t.slice(o.length),n}}function c(){s(K)}function d(t){var e;for(t=t||[];e=u();)!1!==e&&t.push(e);return t}function u(){var e=i();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;tt!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,tt===t.charAt(n-1))return l("End of comment missing");var a=t.slice(2,n-2);return o+=2,r(a),t=t.slice(n),o+=2,e({type:"comment",comment:a})}}function f(){var t=i(),e=s(G);if(e){if(u(),!s(Q))return l("property missing ':'");var n=s(X),o=t({type:"declaration",property:et(e[0].replace(V,tt)),value:n?et(n[0].replace(V,tt)):tt});return s(Y),o}}return a.prototype.content=t,c(),function(){var t,e=[];for(d(e);t=f();)!1!==t&&(e.push(t),d(e));return e}()}(t),l="function"==typeof e,s=0,c=a.length;s<c;s++)r=(n=a[s]).property,i=n.value,l?e(r,i,n):i&&(o||(o={}),o[r]=i);return o},ot={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function rt(t,e,n){const o=t.slice();return o[22]=e[n],o}function it(t,e,n){const o=t.slice();return o[25]=e[n],o}function at(t,e,n){const o=t.slice();return o[22]=e[n],o}function lt(t,e,n){const o=t.slice();return o[25]=e[n],o}function st(t,e,n){const o=t.slice();return o[25]=e[n],o}function ct(t){let e,n,o,r=t[3]&&dt(t);return{c(){e=f("div"),r&&r.c(),n=m(),o=p(t[4]),w(e,"margin-top","10px")},m(t,i){d(t,e,i),r&&r.m(e,null),c(e,n),c(e,o)},p(t,i){t[3]?r?r.p(t,i):(r=dt(t),r.c(),r.m(e,n)):r&&(r.d(1),r=null),16&i[0]&&y(o,t[4])},d(t){t&&u(e),r&&r.d()}}}function dt(t){let e,n;return{c(){e=f("img"),w(e,"height","40px"),w(e,"margin-right","10px"),s(e.src,n=t[3])||b(e,"src",n),b(e,"alt","")},m(t,n){d(t,e,n)},p(t,o){8&o[0]&&!s(e.src,n=t[3])&&b(e,"src",n)},d(t){t&&u(e)}}}function ut(t){let e,n=[],o=new Map,r=t[0].filter($t);const i=t=>t[25].key;for(let e=0;e<r.length;e+=1){let a=st(t,r,e),l=i(a);o.set(l,n[e]=ft(l,a))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=g()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);d(t,e,o)},p(t,a){195&a[0]&&(r=t[0].filter($t),n=I(n,a,i,1,t,r,o,e.parentNode,J,ft,e,st))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function ft(t,e){let n,o,r,i;return{key:t,first:null,c(){n=f("hb-sidenav-link"),v(n,"style",e[6]),v(n,"navlink",o=JSON.stringify(e[25])),v(n,"navpage",e[1]),this.first=n},m(t,o){d(t,n,o),r||(i=h(n,"pageChange",e[11]),r=!0)},p(t,r){e=t,64&r[0]&&v(n,"style",e[6]),1&r[0]&&o!==(o=JSON.stringify(e[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",e[1])},d(t){t&&u(n),r=!1,i()}}}function pt(t){let e,n=[],o=new Map,r=t[2];const i=t=>t[22].key;for(let e=0;e<r.length;e+=1){let a=at(t,r,e),l=i(a);o.set(l,n[e]=gt(l,a))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=g()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);d(t,e,o)},p(t,a){199&a[0]&&(r=t[2],n=I(n,a,i,1,t,r,o,e.parentNode,J,gt,e,at))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function mt(t,e){let n,o,r,i;return{key:t,first:null,c(){n=f("hb-sidenav-link"),v(n,"style",e[6]),v(n,"navlink",o=JSON.stringify(e[25])),v(n,"navpage",e[1]),this.first=n},m(t,o){d(t,n,o),r||(i=h(n,"pageChange",e[13]),r=!0)},p(t,r){e=t,64&r[0]&&v(n,"style",e[6]),5&r[0]&&o!==(o=JSON.stringify(e[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",e[1])},d(t){t&&u(n),r=!1,i()}}}function gt(t,e){let n,o,r,i,a,l,s=e[22].label+"",h=[],b=new Map;function v(...t){return e[12](e[22],...t)}let x=e[0].filter(v);const $=t=>t[25].key;for(let t=0;t<x.length;t+=1){let n=lt(e,x,t),o=$(n);b.set(o,h[t]=mt(o,n))}return{key:t,first:null,c(){n=f("h5"),o=p(s),r=m(),i=f("hr"),a=m();for(let t=0;t<h.length;t+=1)h[t].c();l=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(t,e){d(t,n,e),c(n,o),d(t,r,e),d(t,i,e),d(t,a,e);for(let n=0;n<h.length;n+=1)h[n].m(t,e);d(t,l,e)},p(t,n){e=t,4&n[0]&&s!==(s=e[22].label+"")&&y(o,s),199&n[0]&&(x=e[0].filter(v),h=I(h,n,$,1,e,x,b,l.parentNode,J,mt,l,lt))},d(t){t&&u(n),t&&u(r),t&&u(i),t&&u(a);for(let e=0;e<h.length;e+=1)h[e].d(t);t&&u(l)}}}function ht(t){let e,n=[],o=new Map,r=t[0].filter(t[14]).map(kt).filter(Et);const i=t=>t[22];for(let e=0;e<r.length;e+=1){let a=rt(t,r,e),l=i(a);o.set(l,n[e]=vt(l,a))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=g()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);d(t,e,o)},p(t,a){199&a[0]&&(r=t[0].filter(t[14]).map(kt).filter(Et),n=I(n,a,i,1,t,r,o,e.parentNode,J,vt,e,rt))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function bt(t,e){let n,o,r,i;return{key:t,first:null,c(){n=f("hb-sidenav-link"),v(n,"style",e[6]),v(n,"navlink",o=JSON.stringify(e[25])),v(n,"navpage",e[1]),this.first=n},m(t,o){d(t,n,o),r||(i=h(n,"pageChange",e[16]),r=!0)},p(t,r){e=t,64&r[0]&&v(n,"style",e[6]),5&r[0]&&o!==(o=JSON.stringify(e[25]))&&v(n,"navlink",o),2&r[0]&&v(n,"navpage",e[1])},d(t){t&&u(n),r=!1,i()}}}function vt(t,e){let n,o,r,i,a,l,s=e[22]+"",h=[],b=new Map;function v(...t){return e[15](e[22],...t)}let x=e[0].filter(v);const $=t=>t[25].key;for(let t=0;t<x.length;t+=1){let n=it(e,x,t),o=$(n);b.set(o,h[t]=bt(o,n))}return{key:t,first:null,c(){n=f("h5"),o=p(s),r=m(),i=f("hr"),a=m();for(let t=0;t<h.length;t+=1)h[t].c();l=g(),w(n,"margin-top","40px"),w(i,"margin-top","0px"),w(i,"margin-bottom","10px"),this.first=n},m(t,e){d(t,n,e),c(n,o),d(t,r,e),d(t,i,e),d(t,a,e);for(let n=0;n<h.length;n+=1)h[n].m(t,e);d(t,l,e)},p(t,n){e=t,5&n[0]&&s!==(s=e[22]+"")&&y(o,s),199&n[0]&&(x=e[0].filter(v),h=I(h,n,$,1,e,x,b,l.parentNode,J,bt,l,it))},d(t){t&&u(n),t&&u(r),t&&u(i),t&&u(a);for(let e=0;e<h.length;e+=1)h[e].d(t);t&&u(l)}}}function yt(t){let e,n,o;return{c(){e=f("hr"),n=m(),o=f("slot"),o.textContent="footer",b(o,"name","footer")},m(t,r){d(t,e,r),d(t,n,r),d(t,o,r)},d(t){t&&u(e),t&&u(n),t&&u(o)}}}function wt(e){let n,o,r,i,a,l,s,p,g,h,v,y,x,$,k=e[0]?.length&&e[0].filter(xt)?.length,E=e[4]&&ct(e),C=k&&ut(e),N=e[2]?.length&&pt(e),_=e[0]?.length&&ht(e),S=e[5]&&yt();return{c(){n=f("link"),o=m(),r=f("div"),i=f("slot"),a=m(),l=f("div"),s=f("h4"),p=f("slot"),g=m(),E&&E.c(),h=m(),v=f("ul"),C&&C.c(),y=m(),N&&N.c(),x=m(),_&&_.c(),$=m(),S&&S.c(),this.c=t,b(n,"rel","stylesheet"),b(n,"href","https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css"),b(i,"name","test"),b(p,"name","header"),b(p,"part","header"),b(s,"class","offcanvas-title"),b(v,"class","nav nav-pills flex-column mb-auto"),w(v,"margin-top","25px"),b(l,"class","d-flex flex-column p-3 bg-light"),w(l,"height","100%"),w(l,"padding-top","0px",1),w(l,"position","relative"),w(l,"max-height","100%"),w(l,"overflow-y","auto"),b(r,"id","webcomponent"),w(r,"position","relative"),w(r,"height","100%")},m(t,e){c(document.head,n),d(t,o,e),d(t,r,e),c(r,i),c(r,a),c(r,l),c(l,s),c(s,p),c(s,g),E&&E.m(s,null),c(l,h),c(l,v),C&&C.m(v,null),c(v,y),N&&N.m(v,null),c(v,x),_&&_.m(v,null),c(l,$),S&&S.m(l,null)},p(t,e){t[4]?E?E.p(t,e):(E=ct(t),E.c(),E.m(s,null)):E&&(E.d(1),E=null),1&e[0]&&(k=t[0]?.length&&t[0].filter(xt)?.length),k?C?C.p(t,e):(C=ut(t),C.c(),C.m(v,y)):C&&(C.d(1),C=null),t[2]?.length?N?N.p(t,e):(N=pt(t),N.c(),N.m(v,x)):N&&(N.d(1),N=null),t[0]?.length?_?_.p(t,e):(_=ht(t),_.c(),_.m(v,null)):_&&(_.d(1),_=null),t[5]?S||(S=yt(),S.c(),S.m(l,null)):S&&(S.d(1),S=null)},i:t,o:t,d(t){u(n),t&&u(o),t&&u(r),E&&E.d(),C&&C.d(),N&&N.d(),_&&_.d(),S&&S.d()}}}const xt=t=>!t.group,$t=t=>!t.group,kt=t=>t.group,Et=(t,e,n)=>n.indexOf(t)===e;function Ct(t,e,n){let o,{id:r}=e,{navlinks:i}=e,{navpage:a}=e,{groups:l}=e,{companylogouri:s}=e,{companytitle:c}=e,{enablefooter:d}=e,{style:u}=e,f="";const p=k(),m=E();function g(t){console.log(t),function(t,e){m(t,e),p.dispatchEvent&&p.dispatchEvent(new CustomEvent(t,{detail:e}))}("pageChange",{page:t})}B.addComponent({repoName:"@htmlbricks/hb-sidenav-link",version:U});return t.$$set=t=>{"id"in t&&n(8,r=t.id),"navlinks"in t&&n(0,i=t.navlinks),"navpage"in t&&n(1,a=t.navpage),"groups"in t&&n(2,l=t.groups),"companylogouri"in t&&n(3,s=t.companylogouri),"companytitle"in t&&n(4,c=t.companytitle),"enablefooter"in t&&n(5,d=t.enablefooter),"style"in t&&n(9,u=t.style)},t.$$.update=()=>{if(1855&t.$$.dirty[0]){r||n(8,r=null),u&&(n(10,o=nt(u)),n(6,f=B.getChildStyleToPass(o,null==ot?void 0:ot.vars))),s||n(3,s="https://upload.wikimedia.org/wikipedia/commons/8/80/Wikipedia-logo-v2.svg"),c||n(4,c=""),d&&"no"!==d||n(5,d=!1),a||n(1,a="home");try{"string"==typeof l?n(2,l=JSON.parse(l)):l||n(2,l=[]),"string"==typeof i?n(0,i=JSON.parse(i)):i||(n(0,i=[]),n(0,i=null))}catch(t){}}},[i,a,l,s,c,d,f,g,r,u,o,t=>g(t.detail.page),(t,e)=>e.group&&e.group===t.key,t=>g(t.detail.page),t=>t.group&&(!l?.length||!l.map((t=>t.key)).includes(t.group)),(t,e)=>e.group&&e.group===t,t=>g(t.detail.page)]}class Nt extends H{constructor(t){super(),this.shadowRoot.innerHTML='<style>@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@latest/font/bootstrap-icons.css");:host{--bs-blue:var(--bs-primary,#07689f);--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:var(--bs-danger,#f67280);--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:var(--bs-warning,#ffc107);--bs-teal:#20c997;--bs-cyan:var(--bs-info,#a2d5f2);--bs-white:#fff;--bs-gray:var(--bs-secondary,#c9d6df);--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:var(--bs-secondary,#c9d6df);--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:var(--bs-primary,#07689f);--bs-secondary:var(--bs-secondary,#c9d6df);--bs-success:var(--bs-warning,#ffc107);--bs-info:var(--bs-info,#a2d5f2);--bs-warning:#ffc107;--bs-danger:var(--bs-danger,#f67280);--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13, 110, 253;--bs-secondary-rgb:108, 117, 125;--bs-success-rgb:25, 135, 84;--bs-info-rgb:13, 202, 240;--bs-warning-rgb:255, 193, 7;--bs-danger-rgb:220, 53, 69;--bs-light-rgb:248, 249, 250;--bs-dark-rgb:33, 37, 41;--bs-white-rgb:255, 255, 255;--bs-black-rgb:0, 0, 0;--bs-body-color-rgb:33, 37, 41;--bs-body-bg-rgb:255, 255, 255;--bs-font-sans-serif:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff}*,*::before,*::after{box-sizing:border-box}@media(prefers-reduced-motion: no-preference){:host{scroll-behavior:smooth}}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:0.25}hr:not([size]){height:1px}h5,h4{margin-top:0;margin-bottom:0.5rem;font-weight:500;line-height:1.2}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}h4{font-size:calc(1.275rem + 0.3vw)}@media(min-width: 1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}ul{padding-left:2rem}ul{margin-top:0;margin-bottom:1rem}img{vertical-align:middle}::-moz-focus-inner{padding:0;border-style:none}@media(min-width: 1200px){}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(min-width: 1200px){}@media(prefers-reduced-motion: reduce){}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}@media(prefers-reduced-motion: reduce){}@media(prefers-reduced-motion: reduce){}@media(min-width: 576px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(max-width: 575.98px){}@media(max-width: 767.98px){}@media(max-width: 991.98px){}@media(max-width: 1199.98px){}@media(max-width: 1399.98px){}@media(prefers-reduced-motion: reduce){}.offcanvas-title{margin-bottom:0;line-height:1.5}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}.d-flex{display:flex !important}.flex-column{flex-direction:column !important}.mb-auto{margin-bottom:auto !important}.p-3{padding:1rem !important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important}@media(min-width: 576px){}@media(min-width: 768px){}@media(min-width: 992px){}@media(min-width: 1200px){}@media(min-width: 1400px){}@media(min-width: 1200px){}@media print{}#webcomponent{font-family:"Roboto", sans-serif}@media(min-width: 768px){}:host{display:block;width:240px}</style>',F(this,{target:this.shadowRoot,props:x(this.attributes),customElement:!0},Ct,wt,i,{id:8,navlinks:0,navpage:1,groups:2,companylogouri:3,companytitle:4,enablefooter:5,style:9},null,[-1,-1]),t&&(t.target&&d(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["id","navlinks","navpage","groups","companylogouri","companytitle","enablefooter","style"]}get id(){return this.$$.ctx[8]}set id(t){this.$$set({id:t}),A()}get navlinks(){return this.$$.ctx[0]}set navlinks(t){this.$$set({navlinks:t}),A()}get navpage(){return this.$$.ctx[1]}set navpage(t){this.$$set({navpage:t}),A()}get groups(){return this.$$.ctx[2]}set groups(t){this.$$set({groups:t}),A()}get companylogouri(){return this.$$.ctx[3]}set companylogouri(t){this.$$set({companylogouri:t}),A()}get companytitle(){return this.$$.ctx[4]}set companytitle(t){this.$$set({companytitle:t}),A()}get enablefooter(){return this.$$.ctx[5]}set enablefooter(t){this.$$set({enablefooter:t}),A()}get style(){return this.$$.ctx[9]}set style(t){this.$$set({style:t}),A()}}return customElements.define("hb-sidebar-desktop",Nt),Nt}();
2
2
  //# sourceMappingURL=release.js.map