@htmlbricks/hb-sidebar-desktop 0.20.0 → 0.20.3

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.20.0",
5
+ "version": "0.20.3",
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": "ad80426d1f3f29e5c4aef0d9525b0d96e12c065d",
79
+ "gitHead": "4688cbe17fb2f024281a80f342bb4a69a4b3c56f",
80
80
  "dependencies": {
81
- "@htmlbricks/hb-sidenav-link": "^0.20.0",
81
+ "@htmlbricks/hb-sidenav-link": "^0.20.3",
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.20.0"
621
+ "version": "0.20.3"
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&&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.data!==e&&(t.data=e)}function w(t,e,n,o){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function $(t){const e={};for(const n of t)e[n.name]=n.value;return e}function x(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=[],_=[];let N=[];const S=[],M=Promise.resolve();let O=!1;function L(t){N.push(t)}const j=new Set;let A=0;function T(){if(0!==A)return;const t=l;do{try{for(;A<C.length;){const t=C[A];A++,x(t),D(t.$$)}}catch(t){throw C.length=0,A=0,t}for(x(null),C.length=0,A=0;_.length;)_.pop()();for(let t=0;t<N.length;t+=1){const e=N[t];j.has(e)||(j.add(e),e())}N.length=0}while(C.length);for(;S.length;)S.pop()();O=!1,j.clear(),x(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(L)}}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,r,i,a,l,s,c,d,u,f){let p=t.length,m=a.length,g=p;const h={};for(;g--;)h[t[g].key]=g;const b=[],v=new Map,y=new Map,w=[];for(g=m;g--;){const t=f(i,a,g),o=n(t);let s=l.get(o);s?r&&w.push((()=>s.p(t,e))):(s=d(o,t),s.c()),v.set(o,b[g]=s),o in h&&y.set(o,Math.abs(g-h[o]))}const $=new Set,x=new Set;function k(t){P(t,1),t.m(s,u),l.set(t.key,t),u=t.first,m--}for(;p&&m;){const e=b[m-1],n=t[p-1],o=e.key,r=n.key;e===n?(u=e.first,p--,m--):v.has(r)?!l.has(o)||$.has(o)?k(e):x.has(r)?p--:y.get(o)>y.get(r)?(x.add(o),k(e)):($.add(r),p--):(c(n,l),p--)}for(;p--;){const e=t[p];v.has(e.key)||c(e,l)}for(;m;)k(b[m-1]);return o(w),b}function R(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];N.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),N=e}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function F(t,e){-1===t.$$.dirty[0]&&(C.push(t),O||(O=!0,M.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(i,a,s,c,d,f,p,m=[-1]){const g=l;x(i);const h=i.$$={fragment:null,ctx:[],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&&F(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,after_update:s}=t.$$;l&&l.m(n,i),a||L((()=>{const n=t.$$.on_mount.map(e).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...n):o(n),t.$$.on_mount=[]})),s.forEach(L)}(i,a.target,a.anchor,a.customElement),T()}x(g)}let W;"function"==typeof HTMLElement&&(W=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(){R(this,1),this.$destroy=t}$on(e,n){if(!r(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.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 H="0.20.0";var B,V=(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}(B={exports:{}},B.exports),B.exports),q=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,K=/\n/g,G=/^\s*/,Q=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,X=/^:\s*/,Y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Z=/^[;\s]*/,tt=/^\s+|\s+$/g,et="";function nt(t){return t?t.replace(tt,et):et}var ot=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(K);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(G)}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;et!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,et===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(Q);if(e){if(u(),!s(X))return l("property missing ':'");var n=s(Y),o=t({type:"declaration",property:nt(e[0].replace(q,et)),value:n?nt(n[0].replace(q,et)):et});return s(Z),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},rt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function it(t,e,n){const o=t.slice();return o[22]=e[n],o}function at(t,e,n){const o=t.slice();return o[25]=e[n],o}function lt(t,e,n){const o=t.slice();return o[22]=e[n],o}function st(t,e,n){const o=t.slice();return o[25]=e[n],o}function ct(t,e,n){const o=t.slice();return o[25]=e[n],o}function dt(t){let e,n,o,r=t[3]&&ut(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=ut(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 ut(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 ft(t){let e,n=[],o=new Map,r=t[0].filter(kt);const i=t=>t[25].key;for(let e=0;e<r.length;e+=1){let a=ct(t,r,e),l=i(a);o.set(l,n[e]=pt(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]&&n[e].m(t,o);d(t,e,o)},p(t,a){195&a[0]&&(r=t[0].filter(kt),n=I(n,a,i,1,t,r,o,e.parentNode,J,pt,e,ct))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function pt(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 mt(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=lt(t,r,e),l=i(a);o.set(l,n[e]=ht(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]&&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,ht,e,lt))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function gt(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 ht(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 $=e[0].filter(v);const x=t=>t[25].key;for(let t=0;t<$.length;t+=1){let n=st(e,$,t),o=x(n);b.set(o,h[t]=gt(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]&&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]&&($=e[0].filter(v),h=I(h,n,x,1,e,$,b,l.parentNode,J,gt,l,st))},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 bt(t){let e,n=[],o=new Map,r=t[0].filter(t[14]).map(Et).filter(Ct);const i=t=>t[22];for(let e=0;e<r.length;e+=1){let a=it(t,r,e),l=i(a);o.set(l,n[e]=yt(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]&&n[e].m(t,o);d(t,e,o)},p(t,a){199&a[0]&&(r=t[0].filter(t[14]).map(Et).filter(Ct),n=I(n,a,i,1,t,r,o,e.parentNode,J,yt,e,it))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function vt(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 yt(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 $=e[0].filter(v);const x=t=>t[25].key;for(let t=0;t<$.length;t+=1){let n=at(e,$,t),o=x(n);b.set(o,h[t]=vt(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]&&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]&&($=e[0].filter(v),h=I(h,n,x,1,e,$,b,l.parentNode,J,vt,l,at))},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 wt(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 $t(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]&&dt(e),C=k&&ft(e),_=e[2]?.length&&mt(e),N=e[0]?.length&&bt(e),S=e[5]&&wt();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(),_&&_.c(),$=m(),N&&N.c(),x=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),_&&_.m(v,null),c(v,$),N&&N.m(v,null),c(l,x),S&&S.m(l,null)},p(t,e){t[4]?E?E.p(t,e):(E=dt(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=ft(t),C.c(),C.m(v,y)):C&&(C.d(1),C=null),t[2]?.length?_?_.p(t,e):(_=mt(t),_.c(),_.m(v,$)):_&&(_.d(1),_=null),t[0]?.length?N?N.p(t,e):(N=bt(t),N.c(),N.m(v,null)):N&&(N.d(1),N=null),t[5]?S||(S=wt(),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(),_&&_.d(),N&&N.d(),S&&S.d()}}}const xt=t=>!t.group,kt=t=>!t.group,Et=t=>t.group,Ct=(t,e,n)=>n.indexOf(t)===e;function _t(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})}V.addComponent({repoName:"@htmlbricks/hb-sidenav-link",version:H});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=ot(u)),n(6,f=V.getChildStyleToPass(o,null==rt?void 0:rt.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 W{constructor(t){super();const e=document.createElement("style");e.textContent='@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}',this.shadowRoot.appendChild(e),U(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},_t,$t,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),T()))}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}),T()}get navlinks(){return this.$$.ctx[0]}set navlinks(t){this.$$set({navlinks:t}),T()}get navpage(){return this.$$.ctx[1]}set navpage(t){this.$$set({navpage:t}),T()}get groups(){return this.$$.ctx[2]}set groups(t){this.$$set({groups:t}),T()}get companylogouri(){return this.$$.ctx[3]}set companylogouri(t){this.$$set({companylogouri:t}),T()}get companytitle(){return this.$$.ctx[4]}set companytitle(t){this.$$set({companytitle:t}),T()}get enablefooter(){return this.$$.ctx[5]}set enablefooter(t){this.$$set({enablefooter:t}),T()}get style(){return this.$$.ctx[9]}set style(t){this.$$set({style:t}),T()}}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&&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.data!==e&&(t.data=e)}function w(t,e,n,o){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function $(t){const e={};for(const n of t)e[n.name]=n.value;return e}function x(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=[],_=[];let N=[];const S=[],M=Promise.resolve();let O=!1;function L(t){N.push(t)}const j=new Set;let A=0;function T(){if(0!==A)return;const t=l;do{try{for(;A<C.length;){const t=C[A];A++,x(t),D(t.$$)}}catch(t){throw C.length=0,A=0,t}for(x(null),C.length=0,A=0;_.length;)_.pop()();for(let t=0;t<N.length;t+=1){const e=N[t];j.has(e)||(j.add(e),e())}N.length=0}while(C.length);for(;S.length;)S.pop()();O=!1,j.clear(),x(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(L)}}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,r,i,a,l,s,c,d,u,f){let p=t.length,m=a.length,g=p;const h={};for(;g--;)h[t[g].key]=g;const b=[],v=new Map,y=new Map,w=[];for(g=m;g--;){const t=f(i,a,g),o=n(t);let s=l.get(o);s?r&&w.push((()=>s.p(t,e))):(s=d(o,t),s.c()),v.set(o,b[g]=s),o in h&&y.set(o,Math.abs(g-h[o]))}const $=new Set,x=new Set;function k(t){P(t,1),t.m(s,u),l.set(t.key,t),u=t.first,m--}for(;p&&m;){const e=b[m-1],n=t[p-1],o=e.key,r=n.key;e===n?(u=e.first,p--,m--):v.has(r)?!l.has(o)||$.has(o)?k(e):x.has(r)?p--:y.get(o)>y.get(r)?(x.add(o),k(e)):($.add(r),p--):(c(n,l),p--)}for(;p--;){const e=t[p];v.has(e.key)||c(e,l)}for(;m;)k(b[m-1]);return o(w),b}function R(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];N.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),N=e}(n.after_update),o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function F(t,e){-1===t.$$.dirty[0]&&(C.push(t),O||(O=!0,M.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function U(i,a,s,c,d,f,p,m=[-1]){const g=l;x(i);const h=i.$$={fragment:null,ctx:[],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&&F(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,after_update:s}=t.$$;l&&l.m(n,i),a||L((()=>{const n=t.$$.on_mount.map(e).filter(r);t.$$.on_destroy?t.$$.on_destroy.push(...n):o(n),t.$$.on_mount=[]})),s.forEach(L)}(i,a.target,a.anchor,a.customElement),T()}x(g)}let W;"function"==typeof HTMLElement&&(W=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(){R(this,1),this.$destroy=t}$on(e,n){if(!r(n))return t;const o=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return o.push(n),()=>{const t=o.indexOf(n);-1!==t&&o.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 H="0.20.3";var B,V=(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}(B={exports:{}},B.exports),B.exports),q=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,K=/\n/g,G=/^\s*/,Q=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,X=/^:\s*/,Y=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Z=/^[;\s]*/,tt=/^\s+|\s+$/g,et="";function nt(t){return t?t.replace(tt,et):et}var ot=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(K);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(G)}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;et!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,et===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(Q);if(e){if(u(),!s(X))return l("property missing ':'");var n=s(Y),o=t({type:"declaration",property:nt(e[0].replace(q,et)),value:n?nt(n[0].replace(q,et)):et});return s(Z),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},rt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"li",description:"list element"}]};function it(t,e,n){const o=t.slice();return o[22]=e[n],o}function at(t,e,n){const o=t.slice();return o[25]=e[n],o}function lt(t,e,n){const o=t.slice();return o[22]=e[n],o}function st(t,e,n){const o=t.slice();return o[25]=e[n],o}function ct(t,e,n){const o=t.slice();return o[25]=e[n],o}function dt(t){let e,n,o,r=t[3]&&ut(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=ut(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 ut(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 ft(t){let e,n=[],o=new Map,r=t[0].filter(kt);const i=t=>t[25].key;for(let e=0;e<r.length;e+=1){let a=ct(t,r,e),l=i(a);o.set(l,n[e]=pt(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]&&n[e].m(t,o);d(t,e,o)},p(t,a){195&a[0]&&(r=t[0].filter(kt),n=I(n,a,i,1,t,r,o,e.parentNode,J,pt,e,ct))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function pt(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 mt(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=lt(t,r,e),l=i(a);o.set(l,n[e]=ht(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]&&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,ht,e,lt))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function gt(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 ht(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 $=e[0].filter(v);const x=t=>t[25].key;for(let t=0;t<$.length;t+=1){let n=st(e,$,t),o=x(n);b.set(o,h[t]=gt(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]&&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]&&($=e[0].filter(v),h=I(h,n,x,1,e,$,b,l.parentNode,J,gt,l,st))},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 bt(t){let e,n=[],o=new Map,r=t[0].filter(t[14]).map(Et).filter(Ct);const i=t=>t[22];for(let e=0;e<r.length;e+=1){let a=it(t,r,e),l=i(a);o.set(l,n[e]=yt(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]&&n[e].m(t,o);d(t,e,o)},p(t,a){199&a[0]&&(r=t[0].filter(t[14]).map(Et).filter(Ct),n=I(n,a,i,1,t,r,o,e.parentNode,J,yt,e,it))},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&u(e)}}}function vt(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 yt(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 $=e[0].filter(v);const x=t=>t[25].key;for(let t=0;t<$.length;t+=1){let n=at(e,$,t),o=x(n);b.set(o,h[t]=vt(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]&&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]&&($=e[0].filter(v),h=I(h,n,x,1,e,$,b,l.parentNode,J,vt,l,at))},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 wt(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 $t(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]&&dt(e),C=k&&ft(e),_=e[2]?.length&&mt(e),N=e[0]?.length&&bt(e),S=e[5]&&wt();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(),_&&_.c(),$=m(),N&&N.c(),x=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),_&&_.m(v,null),c(v,$),N&&N.m(v,null),c(l,x),S&&S.m(l,null)},p(t,e){t[4]?E?E.p(t,e):(E=dt(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=ft(t),C.c(),C.m(v,y)):C&&(C.d(1),C=null),t[2]?.length?_?_.p(t,e):(_=mt(t),_.c(),_.m(v,$)):_&&(_.d(1),_=null),t[0]?.length?N?N.p(t,e):(N=bt(t),N.c(),N.m(v,null)):N&&(N.d(1),N=null),t[5]?S||(S=wt(),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(),_&&_.d(),N&&N.d(),S&&S.d()}}}const xt=t=>!t.group,kt=t=>!t.group,Et=t=>t.group,Ct=(t,e,n)=>n.indexOf(t)===e;function _t(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})}V.addComponent({repoName:"@htmlbricks/hb-sidenav-link",version:H});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=ot(u)),n(6,f=V.getChildStyleToPass(o,null==rt?void 0:rt.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 W{constructor(t){super();const e=document.createElement("style");e.textContent='@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}',this.shadowRoot.appendChild(e),U(this,{target:this.shadowRoot,props:$(this.attributes),customElement:!0},_t,$t,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),T()))}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}),T()}get navlinks(){return this.$$.ctx[0]}set navlinks(t){this.$$set({navlinks:t}),T()}get navpage(){return this.$$.ctx[1]}set navpage(t){this.$$set({navpage:t}),T()}get groups(){return this.$$.ctx[2]}set groups(t){this.$$set({groups:t}),T()}get companylogouri(){return this.$$.ctx[3]}set companylogouri(t){this.$$set({companylogouri:t}),T()}get companytitle(){return this.$$.ctx[4]}set companytitle(t){this.$$set({companytitle:t}),T()}get enablefooter(){return this.$$.ctx[5]}set enablefooter(t){this.$$set({enablefooter:t}),T()}get style(){return this.$$.ctx[9]}set style(t){this.$$set({style:t}),T()}}return customElements.define("hb-sidebar-desktop",Nt),Nt}();
2
2
  //# sourceMappingURL=release.js.map