@htmlbricks/hb-layout-desktop 0.12.19 → 0.12.20
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 +7 -7
- package/release/manifest.json +1 -1
- package/release/release.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-layout-desktop",
|
|
3
3
|
"displayName": "Svelte Bootstrap Layout Desktop WebComponent",
|
|
4
4
|
"description": "Svelte Bootstrap 5 WebComponent",
|
|
5
|
-
"version": "0.12.
|
|
5
|
+
"version": "0.12.20",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"webcomponents"
|
|
76
76
|
],
|
|
77
77
|
"contributors": [],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "2e8bdce0dd37c2bb3638d437e2a9b6bbedce3b25",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@htmlbricks/hb-cookie-law-banner": "^0.12.
|
|
81
|
-
"@htmlbricks/hb-footer": "^0.12.
|
|
82
|
-
"@htmlbricks/hb-jsutils": "^0.12.
|
|
83
|
-
"@htmlbricks/hb-navbar": "^0.12.
|
|
84
|
-
"@htmlbricks/hb-sidebar-desktop": "^0.12.
|
|
80
|
+
"@htmlbricks/hb-cookie-law-banner": "^0.12.20",
|
|
81
|
+
"@htmlbricks/hb-footer": "^0.12.20",
|
|
82
|
+
"@htmlbricks/hb-jsutils": "^0.12.20",
|
|
83
|
+
"@htmlbricks/hb-navbar": "^0.12.20",
|
|
84
|
+
"@htmlbricks/hb-sidebar-desktop": "^0.12.20",
|
|
85
85
|
"debounce": "^1.2.1",
|
|
86
86
|
"style-to-object": "^0.3.0"
|
|
87
87
|
}
|
package/release/manifest.json
CHANGED
package/release/release.js
CHANGED
|
@@ -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 i(t){return"function"==typeof t}function r(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 u(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function p(t){return document.createElement(t)}function g(t){return document.createTextNode(t)}function m(){return g(" ")}function f(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function h(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:h(t,e,n)}function v(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function b(t){const e={};for(const n of t)e[n.name]=n.value;return e}function w(t){l=t}function k(){if(!l)throw new Error("Function called outside component initialization");return l}function x(){const t=k();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,i)}))}}}const _=[],C=[],E=[],N=[],S=Promise.resolve();let O=!1;function T(t){E.push(t)}const L=new Set;let J=0;function A(){const t=l;do{for(;J<_.length;){const t=_[J];J++,w(t),P(t.$$)}for(w(null),_.length=0,J=0;C.length;)C.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];L.has(e)||(L.add(e),e())}E.length=0}while(_.length);for(;N.length;)N.pop()();O=!1,L.clear(),w(t)}function P(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(T)}}const z=new Set;function D(t,e){-1===t.$$.dirty[0]&&(_.push(t),O||(O=!0,S.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(r,a,s,c,u,p,g,m=[-1]){const f=l;w(r);const h=r.$$={fragment:null,ctx:null,props:p,update:t,not_equal:u,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(f?f.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:a.target||f.$$.root};g&&g(h.root);let y=!1;if(h.ctx=s?s(r,a.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return h.ctx&&u(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),y&&D(r,t)),e})):[],h.update(),y=!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(d)}else h.fragment&&h.fragment.c();a.intro&&((v=r.$$.fragment)&&v.i&&(z.delete(v),v.i($))),function(t,n,r,a){const{fragment:l,on_mount:s,on_destroy:c,after_update:u}=t.$$;l&&l.m(n,r),a||T((()=>{const n=s.map(e).filter(i);c?c.push(...n):o(n),t.$$.on_mount=[]})),u.forEach(T)}(r,a.target,a.anchor,a.customElement),A()}var v,$;w(f)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);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.12.19",H=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,R=/\n/g,F=/^\s*/,I=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,W=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,V=/^[;\s]*/,q=/^\s+|\s+$/g,K="";function G(t){return t?t.replace(q,K):K}var Q=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,r,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 i(t){var e=t.match(R);e&&(n+=e.length);var i=t.lastIndexOf("\n");o=~i?t.length-i:o+t.length}function r(){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(i){var r=new Error(e.source+":"+n+":"+o+": "+i);if(r.reason=i,r.filename=e.source,r.line=n,r.column=o,r.source=t,!e.silent)throw r}function s(e){var n=e.exec(t);if(n){var o=n[0];return i(o),t=t.slice(o.length),n}}function c(){s(F)}function u(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=r();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;K!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,K===t.charAt(n-1))return l("End of comment missing");var a=t.slice(2,n-2);return o+=2,i(a),t=t.slice(n),o+=2,e({type:"comment",comment:a})}}function p(){var t=r(),e=s(I);if(e){if(d(),!s(W))return l("property missing ':'");var n=s(B),o=t({type:"declaration",property:G(e[0].replace(H,K)),value:n?G(n[0].replace(H,K)):K});return s(V),o}}return a.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=p();)!1!==t&&(e.push(t),u(e));return e}()}(t),l="function"==typeof e,s=0,c=a.length;s<c;s++)i=(n=a[s]).property,r=n.value,l?e(i,r,n):r&&(o||(o={}),o[i]=r);return o},X={vars:[],parts:[{name:"column-cell-button-content",description:""}]},Y={vars:[],parts:[{name:"left-slot",description:""},{name:"center-slot",description:""},{name:"right-slot",description:""}]},Z={vars:[],parts:[]},tt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"header",description:"header"}]};var et,nt=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,o,i="";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 r=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(i+="".concat(n,":").concat(t[n],";"))},a=0,l=Object.keys(t);a<l.length;a++)r(l[a]);return i},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")){var i=document.createElement("script");i.id=n+"-script",i.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(i.src="".concat(t.local)),document.head.appendChild(i)}};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,i,r="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)&&(r=null===(i=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===i?void 0:i.toLowerCase()),r},t.getDictionaryWord=function(e,n,o){var i;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(i=n[o])||void 0===i?void 0:i[e]))return n[o][e];var r="",a=t.getDefaultLang();if(!o||a!==o){var l=null==n?void 0:n[a];(null==l?void 0:l[e])&&(r=l[e])}return r},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}(et={exports:{}},et.exports),et.exports);function ot(t){let e,n,i,r,a,l,s,g,v,$,b,w,k,x,_,C,E,N,S,O,T,L,J,A,P,z,D,M,j,U,H=t[2]?.logoUri&&rt(t),R=t[13]?.title&&at(t),F=(t[7]||t[11]||t[12]||t[10])&<(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),H&&H.c(),r=m(),R&&R.c(),a=m(),l=p("span"),l.innerHTML='<slot name="nav-center-slot"></slot>',s=m(),g=p("span"),g.innerHTML='<slot name="nav-right-slot"></slot>',k=m(),x=p("div"),_=p("div"),C=p("div"),E=p("slot"),E.textContent="page",S=m(),F&&F.c(),O=m(),T=p("hb-footer"),h(i,"slot","left-slot"),h(l,"slot","center-slot"),h(g,"slot","right-slot"),y(n,"id","navbar"),y(n,"part","navbar"),y(n,"noburger",v=t[3]?.length?"":"no"),y(n,"style",t[19]),y(n,"companybrandname",$=t[5]||t[2]?.siteName||""),y(n,"usermenu",b=t[6]||""),y(n,"switchopen",w=t[17]?"yes":"no"),h(E,"name","page"),h(C,"style",N=t[9]?"flex: 2":""),h(C,"part","page"),h(C,"id","page"),y(T,"type",L="auto"===t[15].type?t[9]?"small":"regular":t[15].type),y(T,"disable_expanding_small",J=t[15].disable_expanding_small?"yes":"no"),y(T,"part","footer"),y(T,"socials",A=t[0]?JSON.stringify(t[0]):""),y(T,"contacts",P=t[1]?JSON.stringify(t[1]):""),y(T,"style",z="display:block;"+t[18]),y(T,"company",D=t[2]?JSON.stringify(t[2]):""),y(T,"columns",M=t[8]||""),h(_,"style",t[21]),h(_,"part","container"),h(e,"id","desktop_without_sidebar")},m(o,d){u(o,e,d),c(e,n),c(n,i),H&&H.m(i,null),c(i,r),R&&R.m(i,null),c(n,a),c(n,l),c(n,s),c(n,g),c(e,k),c(e,x),c(x,_),c(_,C),c(C,E),c(_,S),F&&F.m(_,null),c(_,O),c(_,T),j||(U=[f(n,"navmenuswitch",t[32]),f(n,"userClick",t[33]),f(T,"footerClick",t[34])],j=!0)},p(t,e){t[2]?.logoUri?H?H.p(t,e):(H=rt(t),H.c(),H.m(i,r)):H&&(H.d(1),H=null),t[13]?.title?R?R.p(t,e):(R=at(t),R.c(),R.m(i,null)):R&&(R.d(1),R=null),8&e[0]&&v!==(v=t[3]?.length?"":"no")&&y(n,"noburger",v),524288&e[0]&&y(n,"style",t[19]),36&e[0]&&$!==($=t[5]||t[2]?.siteName||"")&&y(n,"companybrandname",$),64&e[0]&&b!==(b=t[6]||"")&&y(n,"usermenu",b),131072&e[0]&&w!==(w=t[17]?"yes":"no")&&y(n,"switchopen",w),512&e[0]&&N!==(N=t[9]?"flex: 2":"")&&h(C,"style",N),t[7]||t[11]||t[12]||t[10]?F?F.p(t,e):(F=lt(t),F.c(),F.m(_,O)):F&&(F.d(1),F=null),33280&e[0]&&L!==(L="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&y(T,"type",L),32768&e[0]&&J!==(J=t[15].disable_expanding_small?"yes":"no")&&y(T,"disable_expanding_small",J),1&e[0]&&A!==(A=t[0]?JSON.stringify(t[0]):"")&&y(T,"socials",A),2&e[0]&&P!==(P=t[1]?JSON.stringify(t[1]):"")&&y(T,"contacts",P),262144&e[0]&&z!==(z="display:block;"+t[18])&&y(T,"style",z),4&e[0]&&D!==(D=t[2]?JSON.stringify(t[2]):"")&&y(T,"company",D),256&e[0]&&M!==(M=t[8]||"")&&y(T,"columns",M),2097152&e[0]&&h(_,"style",t[21])},d(t){t&&d(e),H&&H.d(),R&&R.d(),F&&F.d(),j=!1,o(U)}}}function it(t){let e,n,i,r,a,l,s,g,v,b,w,k,x,_,C,E,N,S,O,T,L,J,A,P,z,D,M,j,U,H,R,F,I,W,B,V,q=t[2]?.logoUri&&st(t),K=t[13]?.title&&ct(t),G=(t[7]||t[11]||t[12]||t[10])&&ut(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),q&&q.c(),r=m(),K&&K.c(),a=m(),l=p("span"),l.innerHTML='<slot name="nav-center-slot"></slot>',s=m(),g=p("span"),g.innerHTML='<slot name="nav-right-slot"></slot>',x=m(),_=p("div"),C=p("div"),E=p("div"),N=p("hb-sidebar-desktop"),T=m(),L=p("div"),J=p("div"),A=p("slot"),A.textContent="page",z=m(),G&&G.c(),D=m(),M=p("hb-footer"),h(i,"slot","left-slot"),h(l,"slot","center-slot"),h(g,"slot","right-slot"),y(n,"id","navbar"),y(n,"part","navbar"),y(n,"noburger",v=t[3]?.length?"":"no"),y(n,"style",t[19]),y(n,"companybrandname",b=t[5]||t[2]?.siteName||""),y(n,"usermenu",w=t[6]||""),y(n,"switchopen",k=t[17]?"yes":"no"),y(N,"id","sidebarcontainer"),y(N,"style",t[16]),y(N,"navlinks",S=t[3]||"[]"),y(N,"navpage",O=t[4]||""),h(E,"id","inner_sidebar"),h(C,"id","layout_sidebar"),h(A,"name","page"),h(J,"style",P=t[9]?"flex: 2":""),h(J,"part","page"),h(J,"id","page"),y(M,"type",j="auto"===t[15].type?t[9]?"small":"regular":t[15].type),y(M,"disable_expanding_small",U=t[15].disable_expanding_small?"yes":"no"),y(M,"part","footer"),y(M,"socials",H=t[0]?JSON.stringify(t[0]):""),y(M,"contacts",R=t[1]?JSON.stringify(t[1]):""),y(M,"style",F="display:block;"+t[18]),y(M,"company",I=t[2]?JSON.stringify(t[2]):""),y(M,"columns",W=t[8]||""),h(L,"style",t[21]),h(L,"part","container"),h(_,"id","layout_container"),$(_,"grid-template-columns","240px auto"),h(e,"id","desktop")},m(o,d){u(o,e,d),c(e,n),c(n,i),q&&q.m(i,null),c(i,r),K&&K.m(i,null),c(n,a),c(n,l),c(n,s),c(n,g),c(e,x),c(e,_),c(_,C),c(C,E),c(E,N),c(_,T),c(_,L),c(L,J),c(J,A),c(L,z),G&&G.m(L,null),c(L,D),c(L,M),B||(V=[f(n,"navmenuswitch",t[28]),f(n,"userClick",t[29]),f(N,"pageChange",t[30]),f(M,"footerClick",t[31])],B=!0)},p(t,e){t[2]?.logoUri?q?q.p(t,e):(q=st(t),q.c(),q.m(i,r)):q&&(q.d(1),q=null),t[13]?.title?K?K.p(t,e):(K=ct(t),K.c(),K.m(i,null)):K&&(K.d(1),K=null),8&e[0]&&v!==(v=t[3]?.length?"":"no")&&y(n,"noburger",v),524288&e[0]&&y(n,"style",t[19]),36&e[0]&&b!==(b=t[5]||t[2]?.siteName||"")&&y(n,"companybrandname",b),64&e[0]&&w!==(w=t[6]||"")&&y(n,"usermenu",w),131072&e[0]&&k!==(k=t[17]?"yes":"no")&&y(n,"switchopen",k),65536&e[0]&&y(N,"style",t[16]),8&e[0]&&S!==(S=t[3]||"[]")&&y(N,"navlinks",S),16&e[0]&&O!==(O=t[4]||"")&&y(N,"navpage",O),512&e[0]&&P!==(P=t[9]?"flex: 2":"")&&h(J,"style",P),t[7]||t[11]||t[12]||t[10]?G?G.p(t,e):(G=ut(t),G.c(),G.m(L,D)):G&&(G.d(1),G=null),33280&e[0]&&j!==(j="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&y(M,"type",j),32768&e[0]&&U!==(U=t[15].disable_expanding_small?"yes":"no")&&y(M,"disable_expanding_small",U),1&e[0]&&H!==(H=t[0]?JSON.stringify(t[0]):"")&&y(M,"socials",H),2&e[0]&&R!==(R=t[1]?JSON.stringify(t[1]):"")&&y(M,"contacts",R),262144&e[0]&&F!==(F="display:block;"+t[18])&&y(M,"style",F),4&e[0]&&I!==(I=t[2]?JSON.stringify(t[2]):"")&&y(M,"company",I),256&e[0]&&W!==(W=t[8]||"")&&y(M,"columns",W),2097152&e[0]&&h(L,"style",t[21])},d(t){t&&d(e),q&&q.d(),K&&K.d(),G&&G.d(),B=!1,o(V)}}}function rt(t){let e,n;return{c(){e=p("img"),h(e,"alt",""),$(e,"max-height","31px"),$(e,"vertical-align","middle"),s(e.src,n=t[2].logoUri)||h(e,"src",n)},m(t,n){u(t,e,n)},p(t,o){4&o[0]&&!s(e.src,n=t[2].logoUri)&&h(e,"src",n)},d(t){t&&d(e)}}}function at(t){let e,n=t[13].title+"";return{c(){e=g(n)},m(t,n){u(t,e,n)},p(t,o){8192&o[0]&&n!==(n=t[13].title+"")&&v(e,n)},d(t){t&&d(e)}}}function lt(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),y(e,"style",t[20]),y(e,"language",n=t[12]||t[14]),y(e,"allowdecline",t[11]),y(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){1048576&o[0]&&y(e,"style",t[20]),20480&o[0]&&n!==(n=t[12]||t[14])&&y(e,"language",n),2048&o[0]&&y(e,"allowdecline",t[11]),1024&o[0]&&y(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function st(t){let e,n;return{c(){e=p("img"),h(e,"alt",""),$(e,"max-height","31px"),$(e,"vertical-align","middle"),s(e.src,n=t[2].logoUri)||h(e,"src",n)},m(t,n){u(t,e,n)},p(t,o){4&o[0]&&!s(e.src,n=t[2].logoUri)&&h(e,"src",n)},d(t){t&&d(e)}}}function ct(t){let e,n=t[13].title+"";return{c(){e=g(n)},m(t,n){u(t,e,n)},p(t,o){8192&o[0]&&n!==(n=t[13].title+"")&&v(e,n)},d(t){t&&d(e)}}}function ut(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),y(e,"style",t[20]),y(e,"language",n=t[12]||t[14]),y(e,"allowdecline",t[11]),y(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){1048576&o[0]&&y(e,"style",t[20]),20480&o[0]&&n!==(n=t[12]||t[14])&&y(e,"language",n),2048&o[0]&&y(e,"allowdecline",t[11]),1024&o[0]&&y(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function dt(e){let n;function o(t,e){return t[3]?.length&&!0===t[17]?it:ot}let i=o(e),r=i(e);return{c(){r.c(),n=g(""),this.c=t},m(t,e){r.m(t,e),u(t,n,e)},p(t,e){i===(i=o(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(n.parentNode,n)))},i:t,o:t,d(t){r.d(t),t&&d(n)}}}function pt(t,e,n){let o,i,r,{id:a}=e,{socials:l}=e,{contacts:s}=e,{company:c}=e,{navlinks:u}=e,{pagename:d}=e,{page_title:p}=e,{usermenu:g}=e,{cookielaw:m}=e,{columns:f}=e,{onescreen:h}=e,{cookielawuri4more:y}=e,{cookielawallowdecline:v}=e,{cookielawlanguage:$}=e,{sidebar:b}=e,{style:w}=e,{size:_}=e,{i18nlang:C}=e,{footer:E}=e,N="",S="",O="",T="";const L=k(),J=x();function A(t,e){J(t,e),L.dispatchEvent&&L.dispatchEvent(new CustomEvent(t,{detail:e}))}function P(t){console.log("burgerclick",t),n(17,i=t.isOpen),A("offcanvasswitch",t)}nt.addComponent({repoName:"@htmlbricks/hb-footer",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-offcanvas",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-navbar",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-cookie-law-banner",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-sidebar-desktop",version:U});return t.$$set=t=>{"id"in t&&n(24,a=t.id),"socials"in t&&n(0,l=t.socials),"contacts"in t&&n(1,s=t.contacts),"company"in t&&n(2,c=t.company),"navlinks"in t&&n(3,u=t.navlinks),"pagename"in t&&n(4,d=t.pagename),"page_title"in t&&n(5,p=t.page_title),"usermenu"in t&&n(6,g=t.usermenu),"cookielaw"in t&&n(7,m=t.cookielaw),"columns"in t&&n(8,f=t.columns),"onescreen"in t&&n(9,h=t.onescreen),"cookielawuri4more"in t&&n(10,y=t.cookielawuri4more),"cookielawallowdecline"in t&&n(11,v=t.cookielawallowdecline),"cookielawlanguage"in t&&n(12,$=t.cookielawlanguage),"sidebar"in t&&n(13,b=t.sidebar),"style"in t&&n(26,w=t.style),"size"in t&&n(25,_=t.size),"i18nlang"in t&&n(14,C=t.i18nlang),"footer"in t&&n(15,E=t.footer)},t.$$.update=()=>{251920383&t.$$.dirty[0]&&(!0!==i&&!1!==i&&n(17,i=!0),w&&(n(27,o=Q(w)),n(18,N=nt.getChildStyleToPass(o,null==X?void 0:X.vars)),n(19,S=nt.getChildStyleToPass(o,null==Y?void 0:Y.vars)),n(20,O=nt.getChildStyleToPass(o,null==Z?void 0:Z.vars)),n(16,T+=nt.getChildStyleToPass(o,null==tt?void 0:tt.vars))),E?"string"==typeof E&&n(15,E=JSON.parse(E)):n(15,E={type:"auto",disable_expanding_small:!1}),E.type||n(15,E.type="auto",E),_||n(25,_=void 0),a||n(24,a=""),y||n(10,y=""),v||n(11,v=""),$||n(12,$=""),d||n(4,d=null),p||n(5,p=null),m||n(7,m=null),g||n(6,g=null),f||n(8,f=null),"string"==typeof h?n(9,h="no"!==h):h||n(9,h=!1),C||n(14,C=null),b?"string"==typeof b&&n(13,b=JSON.parse(b)):n(13,b={}),c?"string"==typeof c&&n(2,c=JSON.parse(c)):n(2,c=null),u||n(3,u=null),l||n(0,l=null),s||n(1,s=null),n(21,r=h?"display: flex;flex-direction: column;\theight: calc(100vh - 50px);":"display:block;"))},[l,s,c,u,d,p,g,m,f,h,y,v,$,b,C,E,T,i,N,S,O,r,A,P,a,_,w,o,t=>P(t.detail),t=>A("userClick",t.detail),t=>A("pageChange",t.detail),t=>A("footerClick",t.detail),t=>P(t.detail),t=>A("userClick",t.detail),t=>A("footerClick",t.detail)]}class gt extends j{constructor(t){super(),this.shadowRoot.innerHTML='<style>@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{font-family:"Roboto", sans-serif}#desktop_without_sidebar{min-height:100vh}#desktop{min-height:100vh;display:grid;grid-template-rows:max-content auto}#layout_container{display:grid}#layout_sidebar{width:240px;grid-row-start:1;grid-row-end:1;display:flex;position:relative}#inner_sidebar{position:absolute;height:100%}hb-sidebar-desktop{height:100%}</style>',M(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},pt,dt,r,{id:24,socials:0,contacts:1,company:2,navlinks:3,pagename:4,page_title:5,usermenu:6,cookielaw:7,columns:8,onescreen:9,cookielawuri4more:10,cookielawallowdecline:11,cookielawlanguage:12,sidebar:13,style:26,size:25,i18nlang:14,footer:15},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["id","socials","contacts","company","navlinks","pagename","page_title","usermenu","cookielaw","columns","onescreen","cookielawuri4more","cookielawallowdecline","cookielawlanguage","sidebar","style","size","i18nlang","footer"]}get id(){return this.$$.ctx[24]}set id(t){this.$$set({id:t}),A()}get socials(){return this.$$.ctx[0]}set socials(t){this.$$set({socials:t}),A()}get contacts(){return this.$$.ctx[1]}set contacts(t){this.$$set({contacts:t}),A()}get company(){return this.$$.ctx[2]}set company(t){this.$$set({company:t}),A()}get navlinks(){return this.$$.ctx[3]}set navlinks(t){this.$$set({navlinks:t}),A()}get pagename(){return this.$$.ctx[4]}set pagename(t){this.$$set({pagename:t}),A()}get page_title(){return this.$$.ctx[5]}set page_title(t){this.$$set({page_title:t}),A()}get usermenu(){return this.$$.ctx[6]}set usermenu(t){this.$$set({usermenu:t}),A()}get cookielaw(){return this.$$.ctx[7]}set cookielaw(t){this.$$set({cookielaw:t}),A()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),A()}get onescreen(){return this.$$.ctx[9]}set onescreen(t){this.$$set({onescreen:t}),A()}get cookielawuri4more(){return this.$$.ctx[10]}set cookielawuri4more(t){this.$$set({cookielawuri4more:t}),A()}get cookielawallowdecline(){return this.$$.ctx[11]}set cookielawallowdecline(t){this.$$set({cookielawallowdecline:t}),A()}get cookielawlanguage(){return this.$$.ctx[12]}set cookielawlanguage(t){this.$$set({cookielawlanguage:t}),A()}get sidebar(){return this.$$.ctx[13]}set sidebar(t){this.$$set({sidebar:t}),A()}get style(){return this.$$.ctx[26]}set style(t){this.$$set({style:t}),A()}get size(){return this.$$.ctx[25]}set size(t){this.$$set({size:t}),A()}get i18nlang(){return this.$$.ctx[14]}set i18nlang(t){this.$$set({i18nlang:t}),A()}get footer(){return this.$$.ctx[15]}set footer(t){this.$$set({footer:t}),A()}}return customElements.define("hb-layout-desktop",gt),gt}();
|
|
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 i(t){return"function"==typeof t}function r(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 u(t,e,n){t.insertBefore(e,n||null)}function d(t){t.parentNode.removeChild(t)}function p(t){return document.createElement(t)}function g(t){return document.createTextNode(t)}function m(){return g(" ")}function f(t,e,n,o){return t.addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)}function h(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function y(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:h(t,e,n)}function v(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function $(t,e,n,o){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,o?"important":"")}function b(t){const e={};for(const n of t)e[n.name]=n.value;return e}function w(t){l=t}function k(){if(!l)throw new Error("Function called outside component initialization");return l}function x(){const t=k();return(e,n)=>{const o=t.$$.callbacks[e];if(o){const i=function(t,e,n=!1){const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,n,!1,e),o}(e,n);o.slice().forEach((e=>{e.call(t,i)}))}}}const _=[],C=[],E=[],N=[],S=Promise.resolve();let O=!1;function T(t){E.push(t)}const L=new Set;let J=0;function A(){const t=l;do{for(;J<_.length;){const t=_[J];J++,w(t),P(t.$$)}for(w(null),_.length=0,J=0;C.length;)C.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];L.has(e)||(L.add(e),e())}E.length=0}while(_.length);for(;N.length;)N.pop()();O=!1,L.clear(),w(t)}function P(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(T)}}const z=new Set;function D(t,e){-1===t.$$.dirty[0]&&(_.push(t),O||(O=!0,S.then(A)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(r,a,s,c,u,p,g,m=[-1]){const f=l;w(r);const h=r.$$={fragment:null,ctx:null,props:p,update:t,not_equal:u,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(f?f.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:a.target||f.$$.root};g&&g(h.root);let y=!1;if(h.ctx=s?s(r,a.props||{},((t,e,...n)=>{const o=n.length?n[0]:e;return h.ctx&&u(h.ctx[t],h.ctx[t]=o)&&(!h.skip_bound&&h.bound[t]&&h.bound[t](o),y&&D(r,t)),e})):[],h.update(),y=!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(d)}else h.fragment&&h.fragment.c();a.intro&&((v=r.$$.fragment)&&v.i&&(z.delete(v),v.i($))),function(t,n,r,a){const{fragment:l,on_mount:s,on_destroy:c,after_update:u}=t.$$;l&&l.m(n,r),a||T((()=>{const n=s.map(e).filter(i);c?c.push(...n):o(n),t.$$.on_mount=[]})),u.forEach(T)}(r,a.target,a.anchor,a.customElement),A()}var v,$;w(f)}let j;"function"==typeof HTMLElement&&(j=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(e).filter(i);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.12.20",H=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,R=/\n/g,F=/^\s*/,I=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,W=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,V=/^[;\s]*/,q=/^\s+|\s+$/g,K="";function G(t){return t?t.replace(q,K):K}var Q=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,r,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 i(t){var e=t.match(R);e&&(n+=e.length);var i=t.lastIndexOf("\n");o=~i?t.length-i:o+t.length}function r(){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(i){var r=new Error(e.source+":"+n+":"+o+": "+i);if(r.reason=i,r.filename=e.source,r.line=n,r.column=o,r.source=t,!e.silent)throw r}function s(e){var n=e.exec(t);if(n){var o=n[0];return i(o),t=t.slice(o.length),n}}function c(){s(F)}function u(t){var e;for(t=t||[];e=d();)!1!==e&&t.push(e);return t}function d(){var e=r();if("/"==t.charAt(0)&&"*"==t.charAt(1)){for(var n=2;K!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,K===t.charAt(n-1))return l("End of comment missing");var a=t.slice(2,n-2);return o+=2,i(a),t=t.slice(n),o+=2,e({type:"comment",comment:a})}}function p(){var t=r(),e=s(I);if(e){if(d(),!s(W))return l("property missing ':'");var n=s(B),o=t({type:"declaration",property:G(e[0].replace(H,K)),value:n?G(n[0].replace(H,K)):K});return s(V),o}}return a.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=p();)!1!==t&&(e.push(t),u(e));return e}()}(t),l="function"==typeof e,s=0,c=a.length;s<c;s++)i=(n=a[s]).property,r=n.value,l?e(i,r,n):r&&(o||(o={}),o[i]=r);return o},X={vars:[],parts:[{name:"column-cell-button-content",description:""}]},Y={vars:[],parts:[{name:"left-slot",description:""},{name:"center-slot",description:""},{name:"right-slot",description:""}]},Z={vars:[],parts:[]},tt={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"header",description:"header"}]};var et,nt=(function(t,e){e.__esModule=!0,e.LanguageTranslator=e.addComponent=e.getChildStyleToPass=void 0,e.getChildStyleToPass=function(t,e){var n,o,i="";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 r=function(n){(null==e?void 0:e.filter((function(e){return e.name===n&&e.defaultValue!==t[n]})))&&(i+="".concat(n,":").concat(t[n],";"))},a=0,l=Object.keys(t);a<l.length;a++)r(l[a]);return i},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")){var i=document.createElement("script");i.id=n+"-script",i.src="https://cdn.jsdelivr.net/npm/".concat(t.repoName,"@").concat(t.version,"/").concat(o),(null==t?void 0:t.local)&&location.href.includes("localhost")&&(i.src="".concat(t.local)),document.head.appendChild(i)}};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,i,r="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)&&(r=null===(i=null===(o=navigator.languages[0])||void 0===o?void 0:o.split("-")[0])||void 0===i?void 0:i.toLowerCase()),r},t.getDictionaryWord=function(e,n,o){var i;if(!e)throw new Error("no wordKey provided");if(!n)throw new Error("no dictionary provided");if(o&&(null===(i=n[o])||void 0===i?void 0:i[e]))return n[o][e];var r="",a=t.getDefaultLang();if(!o||a!==o){var l=null==n?void 0:n[a];(null==l?void 0:l[e])&&(r=l[e])}return r},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}(et={exports:{}},et.exports),et.exports);function ot(t){let e,n,i,r,a,l,s,g,v,$,b,w,k,x,_,C,E,N,S,O,T,L,J,A,P,z,D,M,j,U,H=t[2]?.logoUri&&rt(t),R=t[13]?.title&&at(t),F=(t[7]||t[11]||t[12]||t[10])&<(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),H&&H.c(),r=m(),R&&R.c(),a=m(),l=p("span"),l.innerHTML='<slot name="nav-center-slot"></slot>',s=m(),g=p("span"),g.innerHTML='<slot name="nav-right-slot"></slot>',k=m(),x=p("div"),_=p("div"),C=p("div"),E=p("slot"),E.textContent="page",S=m(),F&&F.c(),O=m(),T=p("hb-footer"),h(i,"slot","left-slot"),h(l,"slot","center-slot"),h(g,"slot","right-slot"),y(n,"id","navbar"),y(n,"part","navbar"),y(n,"noburger",v=t[3]?.length?"":"no"),y(n,"style",t[19]),y(n,"companybrandname",$=t[5]||t[2]?.siteName||""),y(n,"usermenu",b=t[6]||""),y(n,"switchopen",w=t[17]?"yes":"no"),h(E,"name","page"),h(C,"style",N=t[9]?"flex: 2":""),h(C,"part","page"),h(C,"id","page"),y(T,"type",L="auto"===t[15].type?t[9]?"small":"regular":t[15].type),y(T,"disable_expanding_small",J=t[15].disable_expanding_small?"yes":"no"),y(T,"part","footer"),y(T,"socials",A=t[0]?JSON.stringify(t[0]):""),y(T,"contacts",P=t[1]?JSON.stringify(t[1]):""),y(T,"style",z="display:block;"+t[18]),y(T,"company",D=t[2]?JSON.stringify(t[2]):""),y(T,"columns",M=t[8]||""),h(_,"style",t[21]),h(_,"part","container"),h(e,"id","desktop_without_sidebar")},m(o,d){u(o,e,d),c(e,n),c(n,i),H&&H.m(i,null),c(i,r),R&&R.m(i,null),c(n,a),c(n,l),c(n,s),c(n,g),c(e,k),c(e,x),c(x,_),c(_,C),c(C,E),c(_,S),F&&F.m(_,null),c(_,O),c(_,T),j||(U=[f(n,"navmenuswitch",t[32]),f(n,"userClick",t[33]),f(T,"footerClick",t[34])],j=!0)},p(t,e){t[2]?.logoUri?H?H.p(t,e):(H=rt(t),H.c(),H.m(i,r)):H&&(H.d(1),H=null),t[13]?.title?R?R.p(t,e):(R=at(t),R.c(),R.m(i,null)):R&&(R.d(1),R=null),8&e[0]&&v!==(v=t[3]?.length?"":"no")&&y(n,"noburger",v),524288&e[0]&&y(n,"style",t[19]),36&e[0]&&$!==($=t[5]||t[2]?.siteName||"")&&y(n,"companybrandname",$),64&e[0]&&b!==(b=t[6]||"")&&y(n,"usermenu",b),131072&e[0]&&w!==(w=t[17]?"yes":"no")&&y(n,"switchopen",w),512&e[0]&&N!==(N=t[9]?"flex: 2":"")&&h(C,"style",N),t[7]||t[11]||t[12]||t[10]?F?F.p(t,e):(F=lt(t),F.c(),F.m(_,O)):F&&(F.d(1),F=null),33280&e[0]&&L!==(L="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&y(T,"type",L),32768&e[0]&&J!==(J=t[15].disable_expanding_small?"yes":"no")&&y(T,"disable_expanding_small",J),1&e[0]&&A!==(A=t[0]?JSON.stringify(t[0]):"")&&y(T,"socials",A),2&e[0]&&P!==(P=t[1]?JSON.stringify(t[1]):"")&&y(T,"contacts",P),262144&e[0]&&z!==(z="display:block;"+t[18])&&y(T,"style",z),4&e[0]&&D!==(D=t[2]?JSON.stringify(t[2]):"")&&y(T,"company",D),256&e[0]&&M!==(M=t[8]||"")&&y(T,"columns",M),2097152&e[0]&&h(_,"style",t[21])},d(t){t&&d(e),H&&H.d(),R&&R.d(),F&&F.d(),j=!1,o(U)}}}function it(t){let e,n,i,r,a,l,s,g,v,b,w,k,x,_,C,E,N,S,O,T,L,J,A,P,z,D,M,j,U,H,R,F,I,W,B,V,q=t[2]?.logoUri&&st(t),K=t[13]?.title&&ct(t),G=(t[7]||t[11]||t[12]||t[10])&&ut(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),q&&q.c(),r=m(),K&&K.c(),a=m(),l=p("span"),l.innerHTML='<slot name="nav-center-slot"></slot>',s=m(),g=p("span"),g.innerHTML='<slot name="nav-right-slot"></slot>',x=m(),_=p("div"),C=p("div"),E=p("div"),N=p("hb-sidebar-desktop"),T=m(),L=p("div"),J=p("div"),A=p("slot"),A.textContent="page",z=m(),G&&G.c(),D=m(),M=p("hb-footer"),h(i,"slot","left-slot"),h(l,"slot","center-slot"),h(g,"slot","right-slot"),y(n,"id","navbar"),y(n,"part","navbar"),y(n,"noburger",v=t[3]?.length?"":"no"),y(n,"style",t[19]),y(n,"companybrandname",b=t[5]||t[2]?.siteName||""),y(n,"usermenu",w=t[6]||""),y(n,"switchopen",k=t[17]?"yes":"no"),y(N,"id","sidebarcontainer"),y(N,"style",t[16]),y(N,"navlinks",S=t[3]||"[]"),y(N,"navpage",O=t[4]||""),h(E,"id","inner_sidebar"),h(C,"id","layout_sidebar"),h(A,"name","page"),h(J,"style",P=t[9]?"flex: 2":""),h(J,"part","page"),h(J,"id","page"),y(M,"type",j="auto"===t[15].type?t[9]?"small":"regular":t[15].type),y(M,"disable_expanding_small",U=t[15].disable_expanding_small?"yes":"no"),y(M,"part","footer"),y(M,"socials",H=t[0]?JSON.stringify(t[0]):""),y(M,"contacts",R=t[1]?JSON.stringify(t[1]):""),y(M,"style",F="display:block;"+t[18]),y(M,"company",I=t[2]?JSON.stringify(t[2]):""),y(M,"columns",W=t[8]||""),h(L,"style",t[21]),h(L,"part","container"),h(_,"id","layout_container"),$(_,"grid-template-columns","240px auto"),h(e,"id","desktop")},m(o,d){u(o,e,d),c(e,n),c(n,i),q&&q.m(i,null),c(i,r),K&&K.m(i,null),c(n,a),c(n,l),c(n,s),c(n,g),c(e,x),c(e,_),c(_,C),c(C,E),c(E,N),c(_,T),c(_,L),c(L,J),c(J,A),c(L,z),G&&G.m(L,null),c(L,D),c(L,M),B||(V=[f(n,"navmenuswitch",t[28]),f(n,"userClick",t[29]),f(N,"pageChange",t[30]),f(M,"footerClick",t[31])],B=!0)},p(t,e){t[2]?.logoUri?q?q.p(t,e):(q=st(t),q.c(),q.m(i,r)):q&&(q.d(1),q=null),t[13]?.title?K?K.p(t,e):(K=ct(t),K.c(),K.m(i,null)):K&&(K.d(1),K=null),8&e[0]&&v!==(v=t[3]?.length?"":"no")&&y(n,"noburger",v),524288&e[0]&&y(n,"style",t[19]),36&e[0]&&b!==(b=t[5]||t[2]?.siteName||"")&&y(n,"companybrandname",b),64&e[0]&&w!==(w=t[6]||"")&&y(n,"usermenu",w),131072&e[0]&&k!==(k=t[17]?"yes":"no")&&y(n,"switchopen",k),65536&e[0]&&y(N,"style",t[16]),8&e[0]&&S!==(S=t[3]||"[]")&&y(N,"navlinks",S),16&e[0]&&O!==(O=t[4]||"")&&y(N,"navpage",O),512&e[0]&&P!==(P=t[9]?"flex: 2":"")&&h(J,"style",P),t[7]||t[11]||t[12]||t[10]?G?G.p(t,e):(G=ut(t),G.c(),G.m(L,D)):G&&(G.d(1),G=null),33280&e[0]&&j!==(j="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&y(M,"type",j),32768&e[0]&&U!==(U=t[15].disable_expanding_small?"yes":"no")&&y(M,"disable_expanding_small",U),1&e[0]&&H!==(H=t[0]?JSON.stringify(t[0]):"")&&y(M,"socials",H),2&e[0]&&R!==(R=t[1]?JSON.stringify(t[1]):"")&&y(M,"contacts",R),262144&e[0]&&F!==(F="display:block;"+t[18])&&y(M,"style",F),4&e[0]&&I!==(I=t[2]?JSON.stringify(t[2]):"")&&y(M,"company",I),256&e[0]&&W!==(W=t[8]||"")&&y(M,"columns",W),2097152&e[0]&&h(L,"style",t[21])},d(t){t&&d(e),q&&q.d(),K&&K.d(),G&&G.d(),B=!1,o(V)}}}function rt(t){let e,n;return{c(){e=p("img"),h(e,"alt",""),$(e,"max-height","31px"),$(e,"vertical-align","middle"),s(e.src,n=t[2].logoUri)||h(e,"src",n)},m(t,n){u(t,e,n)},p(t,o){4&o[0]&&!s(e.src,n=t[2].logoUri)&&h(e,"src",n)},d(t){t&&d(e)}}}function at(t){let e,n=t[13].title+"";return{c(){e=g(n)},m(t,n){u(t,e,n)},p(t,o){8192&o[0]&&n!==(n=t[13].title+"")&&v(e,n)},d(t){t&&d(e)}}}function lt(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),y(e,"style",t[20]),y(e,"language",n=t[12]||t[14]),y(e,"allowdecline",t[11]),y(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){1048576&o[0]&&y(e,"style",t[20]),20480&o[0]&&n!==(n=t[12]||t[14])&&y(e,"language",n),2048&o[0]&&y(e,"allowdecline",t[11]),1024&o[0]&&y(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function st(t){let e,n;return{c(){e=p("img"),h(e,"alt",""),$(e,"max-height","31px"),$(e,"vertical-align","middle"),s(e.src,n=t[2].logoUri)||h(e,"src",n)},m(t,n){u(t,e,n)},p(t,o){4&o[0]&&!s(e.src,n=t[2].logoUri)&&h(e,"src",n)},d(t){t&&d(e)}}}function ct(t){let e,n=t[13].title+"";return{c(){e=g(n)},m(t,n){u(t,e,n)},p(t,o){8192&o[0]&&n!==(n=t[13].title+"")&&v(e,n)},d(t){t&&d(e)}}}function ut(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),y(e,"style",t[20]),y(e,"language",n=t[12]||t[14]),y(e,"allowdecline",t[11]),y(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){1048576&o[0]&&y(e,"style",t[20]),20480&o[0]&&n!==(n=t[12]||t[14])&&y(e,"language",n),2048&o[0]&&y(e,"allowdecline",t[11]),1024&o[0]&&y(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function dt(e){let n;function o(t,e){return t[3]?.length&&!0===t[17]?it:ot}let i=o(e),r=i(e);return{c(){r.c(),n=g(""),this.c=t},m(t,e){r.m(t,e),u(t,n,e)},p(t,e){i===(i=o(t))&&r?r.p(t,e):(r.d(1),r=i(t),r&&(r.c(),r.m(n.parentNode,n)))},i:t,o:t,d(t){r.d(t),t&&d(n)}}}function pt(t,e,n){let o,i,r,{id:a}=e,{socials:l}=e,{contacts:s}=e,{company:c}=e,{navlinks:u}=e,{pagename:d}=e,{page_title:p}=e,{usermenu:g}=e,{cookielaw:m}=e,{columns:f}=e,{onescreen:h}=e,{cookielawuri4more:y}=e,{cookielawallowdecline:v}=e,{cookielawlanguage:$}=e,{sidebar:b}=e,{style:w}=e,{size:_}=e,{i18nlang:C}=e,{footer:E}=e,N="",S="",O="",T="";const L=k(),J=x();function A(t,e){J(t,e),L.dispatchEvent&&L.dispatchEvent(new CustomEvent(t,{detail:e}))}function P(t){console.log("burgerclick",t),n(17,i=t.isOpen),A("offcanvasswitch",t)}nt.addComponent({repoName:"@htmlbricks/hb-footer",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-offcanvas",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-navbar",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-cookie-law-banner",version:U}),nt.addComponent({repoName:"@htmlbricks/hb-sidebar-desktop",version:U});return t.$$set=t=>{"id"in t&&n(24,a=t.id),"socials"in t&&n(0,l=t.socials),"contacts"in t&&n(1,s=t.contacts),"company"in t&&n(2,c=t.company),"navlinks"in t&&n(3,u=t.navlinks),"pagename"in t&&n(4,d=t.pagename),"page_title"in t&&n(5,p=t.page_title),"usermenu"in t&&n(6,g=t.usermenu),"cookielaw"in t&&n(7,m=t.cookielaw),"columns"in t&&n(8,f=t.columns),"onescreen"in t&&n(9,h=t.onescreen),"cookielawuri4more"in t&&n(10,y=t.cookielawuri4more),"cookielawallowdecline"in t&&n(11,v=t.cookielawallowdecline),"cookielawlanguage"in t&&n(12,$=t.cookielawlanguage),"sidebar"in t&&n(13,b=t.sidebar),"style"in t&&n(26,w=t.style),"size"in t&&n(25,_=t.size),"i18nlang"in t&&n(14,C=t.i18nlang),"footer"in t&&n(15,E=t.footer)},t.$$.update=()=>{251920383&t.$$.dirty[0]&&(!0!==i&&!1!==i&&n(17,i=!0),w&&(n(27,o=Q(w)),n(18,N=nt.getChildStyleToPass(o,null==X?void 0:X.vars)),n(19,S=nt.getChildStyleToPass(o,null==Y?void 0:Y.vars)),n(20,O=nt.getChildStyleToPass(o,null==Z?void 0:Z.vars)),n(16,T+=nt.getChildStyleToPass(o,null==tt?void 0:tt.vars))),E?"string"==typeof E&&n(15,E=JSON.parse(E)):n(15,E={type:"auto",disable_expanding_small:!1}),E.type||n(15,E.type="auto",E),_||n(25,_=void 0),a||n(24,a=""),y||n(10,y=""),v||n(11,v=""),$||n(12,$=""),d||n(4,d=null),p||n(5,p=null),m||n(7,m=null),g||n(6,g=null),f||n(8,f=null),"string"==typeof h?n(9,h="no"!==h):h||n(9,h=!1),C||n(14,C=null),b?"string"==typeof b&&n(13,b=JSON.parse(b)):n(13,b={}),c?"string"==typeof c&&n(2,c=JSON.parse(c)):n(2,c=null),u||n(3,u=null),l||n(0,l=null),s||n(1,s=null),n(21,r=h?"display: flex;flex-direction: column;\theight: calc(100vh - 50px);":"display:block;"))},[l,s,c,u,d,p,g,m,f,h,y,v,$,b,C,E,T,i,N,S,O,r,A,P,a,_,w,o,t=>P(t.detail),t=>A("userClick",t.detail),t=>A("pageChange",t.detail),t=>A("footerClick",t.detail),t=>P(t.detail),t=>A("userClick",t.detail),t=>A("footerClick",t.detail)]}class gt extends j{constructor(t){super(),this.shadowRoot.innerHTML='<style>@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{font-family:"Roboto", sans-serif}#desktop_without_sidebar{min-height:100vh}#desktop{min-height:100vh;display:grid;grid-template-rows:max-content auto}#layout_container{display:grid}#layout_sidebar{width:240px;grid-row-start:1;grid-row-end:1;display:flex;position:relative}#inner_sidebar{position:absolute;height:100%}hb-sidebar-desktop{height:100%}</style>',M(this,{target:this.shadowRoot,props:b(this.attributes),customElement:!0},pt,dt,r,{id:24,socials:0,contacts:1,company:2,navlinks:3,pagename:4,page_title:5,usermenu:6,cookielaw:7,columns:8,onescreen:9,cookielawuri4more:10,cookielawallowdecline:11,cookielawlanguage:12,sidebar:13,style:26,size:25,i18nlang:14,footer:15},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),A()))}static get observedAttributes(){return["id","socials","contacts","company","navlinks","pagename","page_title","usermenu","cookielaw","columns","onescreen","cookielawuri4more","cookielawallowdecline","cookielawlanguage","sidebar","style","size","i18nlang","footer"]}get id(){return this.$$.ctx[24]}set id(t){this.$$set({id:t}),A()}get socials(){return this.$$.ctx[0]}set socials(t){this.$$set({socials:t}),A()}get contacts(){return this.$$.ctx[1]}set contacts(t){this.$$set({contacts:t}),A()}get company(){return this.$$.ctx[2]}set company(t){this.$$set({company:t}),A()}get navlinks(){return this.$$.ctx[3]}set navlinks(t){this.$$set({navlinks:t}),A()}get pagename(){return this.$$.ctx[4]}set pagename(t){this.$$set({pagename:t}),A()}get page_title(){return this.$$.ctx[5]}set page_title(t){this.$$set({page_title:t}),A()}get usermenu(){return this.$$.ctx[6]}set usermenu(t){this.$$set({usermenu:t}),A()}get cookielaw(){return this.$$.ctx[7]}set cookielaw(t){this.$$set({cookielaw:t}),A()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),A()}get onescreen(){return this.$$.ctx[9]}set onescreen(t){this.$$set({onescreen:t}),A()}get cookielawuri4more(){return this.$$.ctx[10]}set cookielawuri4more(t){this.$$set({cookielawuri4more:t}),A()}get cookielawallowdecline(){return this.$$.ctx[11]}set cookielawallowdecline(t){this.$$set({cookielawallowdecline:t}),A()}get cookielawlanguage(){return this.$$.ctx[12]}set cookielawlanguage(t){this.$$set({cookielawlanguage:t}),A()}get sidebar(){return this.$$.ctx[13]}set sidebar(t){this.$$set({sidebar:t}),A()}get style(){return this.$$.ctx[26]}set style(t){this.$$set({style:t}),A()}get size(){return this.$$.ctx[25]}set size(t){this.$$set({size:t}),A()}get i18nlang(){return this.$$.ctx[14]}set i18nlang(t){this.$$set({i18nlang:t}),A()}get footer(){return this.$$.ctx[15]}set footer(t){this.$$set({footer:t}),A()}}return customElements.define("hb-layout-desktop",gt),gt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|