@htmlbricks/hb-layout-desktop 0.19.2 → 0.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +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.19.
|
|
5
|
+
"version": "0.19.4",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"node-sass": "^6.0.1",
|
|
48
48
|
"postcss": "^8.2.13",
|
|
49
49
|
"postcss-load-config": "^3.0.1",
|
|
50
|
-
"prettier": "^2.
|
|
50
|
+
"prettier": "^2.8.4",
|
|
51
51
|
"rollup": "^2.46.0",
|
|
52
52
|
"rollup-plugin-copy": "^3.4.0",
|
|
53
53
|
"rollup-plugin-css-only": "^3.1.0",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"webcomponents"
|
|
76
76
|
],
|
|
77
77
|
"contributors": [],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "fe4a8986650b6dc9d77c4560ebb9e132c8d48efe",
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@htmlbricks/hb-cookie-law-banner": "^0.19.
|
|
81
|
-
"@htmlbricks/hb-footer": "^0.19.
|
|
82
|
-
"@htmlbricks/hb-navbar": "^0.19.
|
|
83
|
-
"@htmlbricks/hb-sidebar-desktop": "^0.19.
|
|
80
|
+
"@htmlbricks/hb-cookie-law-banner": "^0.19.4",
|
|
81
|
+
"@htmlbricks/hb-footer": "^0.19.4",
|
|
82
|
+
"@htmlbricks/hb-navbar": "^0.19.4",
|
|
83
|
+
"@htmlbricks/hb-sidebar-desktop": "^0.19.4",
|
|
84
84
|
"debounce": "^1.2.1",
|
|
85
85
|
"style-to-object": "^0.3.0",
|
|
86
86
|
"wc-js-utils": "^0.0.1"
|
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 l,a;function s(t,e){return l||(l=document.createElement("a")),l.href=e,t===l.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 v(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:h(t,e,n)}function y(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){a=t}function k(){if(!a)throw new Error("Function called outside component initialization");return a}function x(){const t=k();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const r=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}const _=[],C=[],E=[],N=[],S=Promise.resolve();let T=!1;function O(t){E.push(t)}const D=new Set;let L=0;function J(){const t=a;do{for(;L<_.length;){const t=_[L];L++,w(t),P(t.$$)}for(w(null),_.length=0,L=0;C.length;)C.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];D.has(e)||(D.add(e),e())}E.length=0}while(_.length);for(;N.length;)N.pop()();T=!1,D.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(O)}}const A=new Set;function z(t,e){-1===t.$$.dirty[0]&&(_.push(t),T||(T=!0,S.then(J)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(r,l,s,c,u,p,g,m=[-1]){const f=a;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(l.context||(f?f.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:l.target||f.$$.root};g&&g(h.root);let v=!1;if(h.ctx=s?s(r,l.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),v&&z(r,t)),e})):[],h.update(),v=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);h.fragment&&h.fragment.l(t),t.forEach(d)}else h.fragment&&h.fragment.c();l.intro&&((y=r.$$.fragment)&&y.i&&(A.delete(y),y.i($))),function(t,n,r,l){const{fragment:a,on_mount:s,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,r),l||O((()=>{const n=s.map(e).filter(i);c?c.push(...n):o(n),t.$$.on_mount=[]})),u.forEach(O)}(r,l.target,l.anchor,l.customElement),J()}var y,$;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.19.2";function H(t,e,n){var o,i,r,l,a;function s(){var c=Date.now()-l;c<e&&c>=0?o=setTimeout(s,e-c):(o=null,n||(a=t.apply(r,i),r=i=null))}null==e&&(e=100);var c=function(){r=this,i=arguments,l=Date.now();var c=n&&!o;return o||(o=setTimeout(s,e)),c&&(a=t.apply(r,i),r=i=null),a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(a=t.apply(r,i),r=i=null,clearTimeout(o),o=null)},c}H.debounce=H;var R=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,F=/\n/g,I=/^\s*/,W=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,B=/^:\s*/,V=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q=/^[;\s]*/,K=/^\s+|\s+$/g,G="";function Q(t){return t?t.replace(K,G):G}var X=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,r,l=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(F);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 l(t),c(),e}}function l(t){this.start=t,this.end={line:n,column:o},this.source=e.source}function a(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(I)}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;G!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,G===t.charAt(n-1))return a("End of comment missing");var l=t.slice(2,n-2);return o+=2,i(l),t=t.slice(n),o+=2,e({type:"comment",comment:l})}}function p(){var t=r(),e=s(W);if(e){if(d(),!s(B))return a("property missing ':'");var n=s(V),o=t({type:"declaration",property:Q(e[0].replace(R,G)),value:n?Q(n[0].replace(R,G)):G});return s(q),o}}return l.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=p();)!1!==t&&(e.push(t),u(e));return e}()}(t),a="function"==typeof e,s=0,c=l.length;s<c;s++)i=(n=l[s]).property,r=n.value,a?e(i,r,n):r&&(o||(o={}),o[i]=r);return o},Y={vars:[],parts:[{name:"column-cell-button-content",description:""}]},Z={vars:[],parts:[{name:"left-slot",description:""},{name:"center-slot",description:""},{name:"right-slot",description:""}]},tt={vars:[],parts:[]},et={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"header",description:"header"}]};var nt,ot=(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],";"))},l=0,a=Object.keys(t);l<a.length;l++)r(a[l]);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"))try{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)}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,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="",l=t.getDefaultLang();if(!o||l!==o){var a=null==n?void 0:n[l];(null==a?void 0:a[e])&&(r=a[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}(nt={exports:{}},nt.exports),nt.exports);function it(t){let e,n,i,r,l,a,s,g,y,$,b,w,k,x,_,C,E,N,S,T,O,D,L,J,P,A,z,M,j,U,H=t[2]?.logoUri&<(t),R=t[13]?.title&&at(t),F=(t[7]||t[11]||t[12]||t[10])&&st(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),H&&H.c(),r=m(),R&&R.c(),l=m(),a=p("span"),a.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(),T=m(),O=p("hb-footer"),h(i,"slot","left-slot"),h(a,"slot","center-slot"),h(g,"slot","right-slot"),v(n,"id","navbar"),v(n,"part","navbar"),v(n,"noburger",y=t[3]?.length?"":"no"),v(n,"style",t[20]),v(n,"companybrandname",$=t[5]||t[2]?.siteName||""),v(n,"usermenu",b=t[6]||""),v(n,"switchopen",w=t[18]?"yes":"no"),h(E,"name","page"),h(C,"style",N=t[9]?"flex: 2":""),h(C,"part","page"),h(C,"id","page"),v(O,"policies",t[16]),v(O,"type",D="auto"===t[15].type?t[9]?"small":"regular":t[15].type),v(O,"disable_expanding_small",L=t[15].disable_expanding_small?"yes":"no"),v(O,"part","footer"),v(O,"socials",J=t[0]?JSON.stringify(t[0]):""),v(O,"contacts",P=t[1]?JSON.stringify(t[1]):""),v(O,"style",A="display:block;"+t[19]),v(O,"company",z=t[2]?JSON.stringify(t[2]):""),v(O,"columns",M=t[8]||""),h(_,"style",t[22]),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,l),c(n,a),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(_,T),c(_,O),j||(U=[f(n,"navmenuswitch",t[34]),f(n,"navbarDropDownClick",t[35]),f(n,"navbarSlotClick",t[36]),f(O,"footerClick",t[37])],j=!0)},p(t,e){t[2]?.logoUri?H?H.p(t,e):(H=lt(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]&&y!==(y=t[3]?.length?"":"no")&&v(n,"noburger",y),1048576&e[0]&&v(n,"style",t[20]),36&e[0]&&$!==($=t[5]||t[2]?.siteName||"")&&v(n,"companybrandname",$),64&e[0]&&b!==(b=t[6]||"")&&v(n,"usermenu",b),262144&e[0]&&w!==(w=t[18]?"yes":"no")&&v(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=st(t),F.c(),F.m(_,T)):F&&(F.d(1),F=null),65536&e[0]&&v(O,"policies",t[16]),33280&e[0]&&D!==(D="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&v(O,"type",D),32768&e[0]&&L!==(L=t[15].disable_expanding_small?"yes":"no")&&v(O,"disable_expanding_small",L),1&e[0]&&J!==(J=t[0]?JSON.stringify(t[0]):"")&&v(O,"socials",J),2&e[0]&&P!==(P=t[1]?JSON.stringify(t[1]):"")&&v(O,"contacts",P),524288&e[0]&&A!==(A="display:block;"+t[19])&&v(O,"style",A),4&e[0]&&z!==(z=t[2]?JSON.stringify(t[2]):"")&&v(O,"company",z),256&e[0]&&M!==(M=t[8]||"")&&v(O,"columns",M),4194304&e[0]&&h(_,"style",t[22])},d(t){t&&d(e),H&&H.d(),R&&R.d(),F&&F.d(),j=!1,o(U)}}}function rt(t){let e,n,i,r,l,a,s,g,y,b,w,k,x,_,C,E,N,S,T,O,D,L,J,P,A,z,M,j,U,H,R,F,I,W,B,V,q=t[2]?.logoUri&&ct(t),K=t[13]?.title&&ut(t),G=(t[7]||t[11]||t[12]||t[10])&&dt(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),q&&q.c(),r=m(),K&&K.c(),l=m(),a=p("span"),a.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"),O=m(),D=p("div"),L=p("div"),J=p("slot"),J.textContent="page",A=m(),G&&G.c(),z=m(),M=p("hb-footer"),h(i,"slot","left-slot"),h(a,"slot","center-slot"),h(g,"slot","right-slot"),v(n,"id","navbar"),v(n,"part","navbar"),v(n,"noburger",y=t[3]?.length?"":"no"),v(n,"style",t[20]),v(n,"companybrandname",b=t[5]||t[2]?.siteName||""),v(n,"usermenu",w=t[6]||""),v(n,"switchopen",k=t[18]?"yes":"no"),v(N,"id","sidebarcontainer"),v(N,"style",t[17]),v(N,"navlinks",S=t[3]||"[]"),v(N,"navpage",T=t[4]||""),h(E,"id","inner_sidebar"),h(C,"id","layout_sidebar"),h(J,"name","page"),h(L,"style",P=t[9]?"flex: 2":""),h(L,"part","page"),h(L,"id","page"),v(M,"policies",t[16]),v(M,"type",j="auto"===t[15].type?t[9]?"small":"regular":t[15].type),v(M,"disable_expanding_small",U=t[15].disable_expanding_small?"yes":"no"),v(M,"part","footer"),v(M,"socials",H=t[0]?JSON.stringify(t[0]):""),v(M,"contacts",R=t[1]?JSON.stringify(t[1]):""),v(M,"style",F="display:block;"+t[19]),v(M,"company",I=t[2]?JSON.stringify(t[2]):""),v(M,"columns",W=t[8]||""),h(D,"style",t[22]),h(D,"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,l),c(n,a),c(n,s),c(n,g),c(e,x),c(e,_),c(_,C),c(C,E),c(E,N),c(_,O),c(_,D),c(D,L),c(L,J),c(D,A),G&&G.m(D,null),c(D,z),c(D,M),B||(V=[f(n,"navmenuswitch",t[29]),f(n,"navbarDropDownClick",t[30]),f(n,"navbarSlotClick",t[31]),f(N,"pageChange",t[32]),f(M,"footerClick",t[33])],B=!0)},p(t,e){t[2]?.logoUri?q?q.p(t,e):(q=ct(t),q.c(),q.m(i,r)):q&&(q.d(1),q=null),t[13]?.title?K?K.p(t,e):(K=ut(t),K.c(),K.m(i,null)):K&&(K.d(1),K=null),8&e[0]&&y!==(y=t[3]?.length?"":"no")&&v(n,"noburger",y),1048576&e[0]&&v(n,"style",t[20]),36&e[0]&&b!==(b=t[5]||t[2]?.siteName||"")&&v(n,"companybrandname",b),64&e[0]&&w!==(w=t[6]||"")&&v(n,"usermenu",w),262144&e[0]&&k!==(k=t[18]?"yes":"no")&&v(n,"switchopen",k),131072&e[0]&&v(N,"style",t[17]),8&e[0]&&S!==(S=t[3]||"[]")&&v(N,"navlinks",S),16&e[0]&&T!==(T=t[4]||"")&&v(N,"navpage",T),512&e[0]&&P!==(P=t[9]?"flex: 2":"")&&h(L,"style",P),t[7]||t[11]||t[12]||t[10]?G?G.p(t,e):(G=dt(t),G.c(),G.m(D,z)):G&&(G.d(1),G=null),65536&e[0]&&v(M,"policies",t[16]),33280&e[0]&&j!==(j="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&v(M,"type",j),32768&e[0]&&U!==(U=t[15].disable_expanding_small?"yes":"no")&&v(M,"disable_expanding_small",U),1&e[0]&&H!==(H=t[0]?JSON.stringify(t[0]):"")&&v(M,"socials",H),2&e[0]&&R!==(R=t[1]?JSON.stringify(t[1]):"")&&v(M,"contacts",R),524288&e[0]&&F!==(F="display:block;"+t[19])&&v(M,"style",F),4&e[0]&&I!==(I=t[2]?JSON.stringify(t[2]):"")&&v(M,"company",I),256&e[0]&&W!==(W=t[8]||"")&&v(M,"columns",W),4194304&e[0]&&h(D,"style",t[22])},d(t){t&&d(e),q&&q.d(),K&&K.d(),G&&G.d(),B=!1,o(V)}}}function lt(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+"")&&y(e,n)},d(t){t&&d(e)}}}function st(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),v(e,"style",t[21]),v(e,"language",n=t[12]||t[14]),v(e,"allowdecline",t[11]),v(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){2097152&o[0]&&v(e,"style",t[21]),20480&o[0]&&n!==(n=t[12]||t[14])&&v(e,"language",n),2048&o[0]&&v(e,"allowdecline",t[11]),1024&o[0]&&v(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function ct(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 ut(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+"")&&y(e,n)},d(t){t&&d(e)}}}function dt(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),v(e,"style",t[21]),v(e,"language",n=t[12]||t[14]),v(e,"allowdecline",t[11]),v(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){2097152&o[0]&&v(e,"style",t[21]),20480&o[0]&&n!==(n=t[12]||t[14])&&v(e,"language",n),2048&o[0]&&v(e,"allowdecline",t[11]),1024&o[0]&&v(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function pt(e){let n;function o(t,e){return t[3]?.length&&!0===t[18]?rt:it}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 gt(t,e,n){let o,i,r,{id:l}=e,{socials:a}=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:v}=e,{cookielawallowdecline:y}=e,{cookielawlanguage:$}=e,{sidebar:b}=e,{style:w}=e,{size:_}=e,{i18nlang:C}=e,{footer:E}=e,{policies:N}=e,S="",T="",O="",D="";const L=k(),J=x();function P(t,e){J(t,e),L.dispatchEvent&&L.dispatchEvent(new CustomEvent(t,{detail:e}))}function A(t){console.log("burgerclick",t),n(18,i=t.isOpen),P("offcanvasswitch",t)}ot.addComponent({repoName:"@htmlbricks/hb-footer",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-offcanvas",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-navbar",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-cookie-law-banner",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-sidebar-desktop",version:U});return t.$$set=t=>{"id"in t&&n(25,l=t.id),"socials"in t&&n(0,a=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,v=t.cookielawuri4more),"cookielawallowdecline"in t&&n(11,y=t.cookielawallowdecline),"cookielawlanguage"in t&&n(12,$=t.cookielawlanguage),"sidebar"in t&&n(13,b=t.sidebar),"style"in t&&n(27,w=t.style),"size"in t&&n(26,_=t.size),"i18nlang"in t&&n(14,C=t.i18nlang),"footer"in t&&n(15,E=t.footer),"policies"in t&&n(16,N=t.policies)},t.$$.update=()=>{503840767&t.$$.dirty[0]&&(!0!==i&&!1!==i&&n(18,i=!0),w&&(n(28,o=X(w)),n(19,S=ot.getChildStyleToPass(o,null==Y?void 0:Y.vars)),n(20,T=ot.getChildStyleToPass(o,null==Z?void 0:Z.vars)),n(21,O=ot.getChildStyleToPass(o,null==tt?void 0:tt.vars)),n(17,D+=ot.getChildStyleToPass(o,null==et?void 0:et.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(26,_=void 0),l||n(25,l=""),v||n(10,v=""),y||n(11,y=""),$||n(12,$=""),d||n(4,d=null),p||n(5,p=null),m||n(7,m=null),g||n(6,g=null),N||n(16,N=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),a||n(0,a=null),s||n(1,s=null),n(22,r=h?"display: flex;flex-direction: column;\theight: calc(100vh - 50px);":"display:block;"))},[a,s,c,u,d,p,g,m,f,h,v,y,$,b,C,E,N,D,i,S,T,O,r,P,A,l,_,w,o,t=>A(t.detail),t=>P("navbarDropDownClick",t.detail),t=>P("navbarSlotClick",t.detail),t=>P("pageChange",t.detail),t=>P("footerClick",t.detail),t=>A(t.detail),t=>P("navbarDropDownClick",t.detail),t=>P("navbarSlotClick",t.detail),t=>P("footerClick",t.detail)]}class mt 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}#page{min-height:100%}#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},gt,pt,r,{id:25,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:27,size:26,i18nlang:14,footer:15,policies:16},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),J()))}static get observedAttributes(){return["id","socials","contacts","company","navlinks","pagename","page_title","usermenu","cookielaw","columns","onescreen","cookielawuri4more","cookielawallowdecline","cookielawlanguage","sidebar","style","size","i18nlang","footer","policies"]}get id(){return this.$$.ctx[25]}set id(t){this.$$set({id:t}),J()}get socials(){return this.$$.ctx[0]}set socials(t){this.$$set({socials:t}),J()}get contacts(){return this.$$.ctx[1]}set contacts(t){this.$$set({contacts:t}),J()}get company(){return this.$$.ctx[2]}set company(t){this.$$set({company:t}),J()}get navlinks(){return this.$$.ctx[3]}set navlinks(t){this.$$set({navlinks:t}),J()}get pagename(){return this.$$.ctx[4]}set pagename(t){this.$$set({pagename:t}),J()}get page_title(){return this.$$.ctx[5]}set page_title(t){this.$$set({page_title:t}),J()}get usermenu(){return this.$$.ctx[6]}set usermenu(t){this.$$set({usermenu:t}),J()}get cookielaw(){return this.$$.ctx[7]}set cookielaw(t){this.$$set({cookielaw:t}),J()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),J()}get onescreen(){return this.$$.ctx[9]}set onescreen(t){this.$$set({onescreen:t}),J()}get cookielawuri4more(){return this.$$.ctx[10]}set cookielawuri4more(t){this.$$set({cookielawuri4more:t}),J()}get cookielawallowdecline(){return this.$$.ctx[11]}set cookielawallowdecline(t){this.$$set({cookielawallowdecline:t}),J()}get cookielawlanguage(){return this.$$.ctx[12]}set cookielawlanguage(t){this.$$set({cookielawlanguage:t}),J()}get sidebar(){return this.$$.ctx[13]}set sidebar(t){this.$$set({sidebar:t}),J()}get style(){return this.$$.ctx[27]}set style(t){this.$$set({style:t}),J()}get size(){return this.$$.ctx[26]}set size(t){this.$$set({size:t}),J()}get i18nlang(){return this.$$.ctx[14]}set i18nlang(t){this.$$set({i18nlang:t}),J()}get footer(){return this.$$.ctx[15]}set footer(t){this.$$set({footer:t}),J()}get policies(){return this.$$.ctx[16]}set policies(t){this.$$set({policies:t}),J()}}return customElements.define("hb-layout-desktop",mt),mt}();
|
|
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 l,a;function s(t,e){return l||(l=document.createElement("a")),l.href=e,t===l.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 v(t,e,n){e in t?t[e]="boolean"==typeof t[e]&&""===n||n:h(t,e,n)}function y(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){a=t}function k(){if(!a)throw new Error("Function called outside component initialization");return a}function x(){const t=k();return(e,n,{cancelable:o=!1}={})=>{const i=t.$$.callbacks[e];if(i){const r=function(t,e,{bubbles:n=!1,cancelable:o=!1}={}){const i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,o,e),i}(e,n,{cancelable:o});return i.slice().forEach((e=>{e.call(t,r)})),!r.defaultPrevented}return!0}}const _=[],C=[],E=[],N=[],S=Promise.resolve();let T=!1;function O(t){E.push(t)}const D=new Set;let L=0;function J(){const t=a;do{for(;L<_.length;){const t=_[L];L++,w(t),P(t.$$)}for(w(null),_.length=0,L=0;C.length;)C.pop()();for(let t=0;t<E.length;t+=1){const e=E[t];D.has(e)||(D.add(e),e())}E.length=0}while(_.length);for(;N.length;)N.pop()();T=!1,D.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(O)}}const A=new Set;function z(t,e){-1===t.$$.dirty[0]&&(_.push(t),T||(T=!0,S.then(J)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function M(r,l,s,c,u,p,g,m=[-1]){const f=a;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(l.context||(f?f.$$.context:[])),callbacks:n(),dirty:m,skip_bound:!1,root:l.target||f.$$.root};g&&g(h.root);let v=!1;if(h.ctx=s?s(r,l.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),v&&z(r,t)),e})):[],h.update(),v=!0,o(h.before_update),h.fragment=!!c&&c(h.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);h.fragment&&h.fragment.l(t),t.forEach(d)}else h.fragment&&h.fragment.c();l.intro&&((y=r.$$.fragment)&&y.i&&(A.delete(y),y.i($))),function(t,n,r,l){const{fragment:a,on_mount:s,on_destroy:c,after_update:u}=t.$$;a&&a.m(n,r),l||O((()=>{const n=s.map(e).filter(i);c?c.push(...n):o(n),t.$$.on_mount=[]})),u.forEach(O)}(r,l.target,l.anchor,l.customElement),J()}var y,$;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.19.4";function H(t,e,n){var o,i,r,l,a;function s(){var c=Date.now()-l;c<e&&c>=0?o=setTimeout(s,e-c):(o=null,n||(a=t.apply(r,i),r=i=null))}null==e&&(e=100);var c=function(){r=this,i=arguments,l=Date.now();var c=n&&!o;return o||(o=setTimeout(s,e)),c&&(a=t.apply(r,i),r=i=null),a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(a=t.apply(r,i),r=i=null,clearTimeout(o),o=null)},c}H.debounce=H;var R=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,F=/\n/g,I=/^\s*/,W=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,B=/^:\s*/,V=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,q=/^[;\s]*/,K=/^\s+|\s+$/g,G="";function Q(t){return t?t.replace(K,G):G}var X=function(t,e){var n,o=null;if(!t||"string"!=typeof t)return o;for(var i,r,l=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(F);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 l(t),c(),e}}function l(t){this.start=t,this.end={line:n,column:o},this.source=e.source}function a(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(I)}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;G!=t.charAt(n)&&("*"!=t.charAt(n)||"/"!=t.charAt(n+1));)++n;if(n+=2,G===t.charAt(n-1))return a("End of comment missing");var l=t.slice(2,n-2);return o+=2,i(l),t=t.slice(n),o+=2,e({type:"comment",comment:l})}}function p(){var t=r(),e=s(W);if(e){if(d(),!s(B))return a("property missing ':'");var n=s(V),o=t({type:"declaration",property:Q(e[0].replace(R,G)),value:n?Q(n[0].replace(R,G)):G});return s(q),o}}return l.prototype.content=t,c(),function(){var t,e=[];for(u(e);t=p();)!1!==t&&(e.push(t),u(e));return e}()}(t),a="function"==typeof e,s=0,c=l.length;s<c;s++)i=(n=l[s]).property,r=n.value,a?e(i,r,n):r&&(o||(o={}),o[i]=r);return o},Y={vars:[],parts:[{name:"column-cell-button-content",description:""}]},Z={vars:[],parts:[{name:"left-slot",description:""},{name:"center-slot",description:""},{name:"right-slot",description:""}]},tt={vars:[],parts:[]},et={vars:[{name:"--bs-primary",defaultValue:"#07689f",valueType:"color",theme:"bootstrap"}],parts:[{name:"header",description:"header"}]};var nt,ot=(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],";"))},l=0,a=Object.keys(t);l<a.length;l++)r(a[l]);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"))try{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)}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,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="",l=t.getDefaultLang();if(!o||l!==o){var a=null==n?void 0:n[l];(null==a?void 0:a[e])&&(r=a[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}(nt={exports:{}},nt.exports),nt.exports);function it(t){let e,n,i,r,l,a,s,g,y,$,b,w,k,x,_,C,E,N,S,T,O,D,L,J,P,A,z,M,j,U,H=t[2]?.logoUri&<(t),R=t[13]?.title&&at(t),F=(t[7]||t[11]||t[12]||t[10])&&st(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),H&&H.c(),r=m(),R&&R.c(),l=m(),a=p("span"),a.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(),T=m(),O=p("hb-footer"),h(i,"slot","left-slot"),h(a,"slot","center-slot"),h(g,"slot","right-slot"),v(n,"id","navbar"),v(n,"part","navbar"),v(n,"noburger",y=t[3]?.length?"":"no"),v(n,"style",t[20]),v(n,"companybrandname",$=t[5]||t[2]?.siteName||""),v(n,"usermenu",b=t[6]||""),v(n,"switchopen",w=t[18]?"yes":"no"),h(E,"name","page"),h(C,"style",N=t[9]?"flex: 2":""),h(C,"part","page"),h(C,"id","page"),v(O,"policies",t[16]),v(O,"type",D="auto"===t[15].type?t[9]?"small":"regular":t[15].type),v(O,"disable_expanding_small",L=t[15].disable_expanding_small?"yes":"no"),v(O,"part","footer"),v(O,"socials",J=t[0]?JSON.stringify(t[0]):""),v(O,"contacts",P=t[1]?JSON.stringify(t[1]):""),v(O,"style",A="display:block;"+t[19]),v(O,"company",z=t[2]?JSON.stringify(t[2]):""),v(O,"columns",M=t[8]||""),h(_,"style",t[22]),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,l),c(n,a),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(_,T),c(_,O),j||(U=[f(n,"navmenuswitch",t[34]),f(n,"navbarDropDownClick",t[35]),f(n,"navbarSlotClick",t[36]),f(O,"footerClick",t[37])],j=!0)},p(t,e){t[2]?.logoUri?H?H.p(t,e):(H=lt(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]&&y!==(y=t[3]?.length?"":"no")&&v(n,"noburger",y),1048576&e[0]&&v(n,"style",t[20]),36&e[0]&&$!==($=t[5]||t[2]?.siteName||"")&&v(n,"companybrandname",$),64&e[0]&&b!==(b=t[6]||"")&&v(n,"usermenu",b),262144&e[0]&&w!==(w=t[18]?"yes":"no")&&v(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=st(t),F.c(),F.m(_,T)):F&&(F.d(1),F=null),65536&e[0]&&v(O,"policies",t[16]),33280&e[0]&&D!==(D="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&v(O,"type",D),32768&e[0]&&L!==(L=t[15].disable_expanding_small?"yes":"no")&&v(O,"disable_expanding_small",L),1&e[0]&&J!==(J=t[0]?JSON.stringify(t[0]):"")&&v(O,"socials",J),2&e[0]&&P!==(P=t[1]?JSON.stringify(t[1]):"")&&v(O,"contacts",P),524288&e[0]&&A!==(A="display:block;"+t[19])&&v(O,"style",A),4&e[0]&&z!==(z=t[2]?JSON.stringify(t[2]):"")&&v(O,"company",z),256&e[0]&&M!==(M=t[8]||"")&&v(O,"columns",M),4194304&e[0]&&h(_,"style",t[22])},d(t){t&&d(e),H&&H.d(),R&&R.d(),F&&F.d(),j=!1,o(U)}}}function rt(t){let e,n,i,r,l,a,s,g,y,b,w,k,x,_,C,E,N,S,T,O,D,L,J,P,A,z,M,j,U,H,R,F,I,W,B,V,q=t[2]?.logoUri&&ct(t),K=t[13]?.title&&ut(t),G=(t[7]||t[11]||t[12]||t[10])&&dt(t);return{c(){e=p("div"),n=p("hb-navbar"),i=p("span"),q&&q.c(),r=m(),K&&K.c(),l=m(),a=p("span"),a.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"),O=m(),D=p("div"),L=p("div"),J=p("slot"),J.textContent="page",A=m(),G&&G.c(),z=m(),M=p("hb-footer"),h(i,"slot","left-slot"),h(a,"slot","center-slot"),h(g,"slot","right-slot"),v(n,"id","navbar"),v(n,"part","navbar"),v(n,"noburger",y=t[3]?.length?"":"no"),v(n,"style",t[20]),v(n,"companybrandname",b=t[5]||t[2]?.siteName||""),v(n,"usermenu",w=t[6]||""),v(n,"switchopen",k=t[18]?"yes":"no"),v(N,"id","sidebarcontainer"),v(N,"style",t[17]),v(N,"navlinks",S=t[3]||"[]"),v(N,"navpage",T=t[4]||""),h(E,"id","inner_sidebar"),h(C,"id","layout_sidebar"),h(J,"name","page"),h(L,"style",P=t[9]?"flex: 2":""),h(L,"part","page"),h(L,"id","page"),v(M,"policies",t[16]),v(M,"type",j="auto"===t[15].type?t[9]?"small":"regular":t[15].type),v(M,"disable_expanding_small",U=t[15].disable_expanding_small?"yes":"no"),v(M,"part","footer"),v(M,"socials",H=t[0]?JSON.stringify(t[0]):""),v(M,"contacts",R=t[1]?JSON.stringify(t[1]):""),v(M,"style",F="display:block;"+t[19]),v(M,"company",I=t[2]?JSON.stringify(t[2]):""),v(M,"columns",W=t[8]||""),h(D,"style",t[22]),h(D,"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,l),c(n,a),c(n,s),c(n,g),c(e,x),c(e,_),c(_,C),c(C,E),c(E,N),c(_,O),c(_,D),c(D,L),c(L,J),c(D,A),G&&G.m(D,null),c(D,z),c(D,M),B||(V=[f(n,"navmenuswitch",t[29]),f(n,"navbarDropDownClick",t[30]),f(n,"navbarSlotClick",t[31]),f(N,"pageChange",t[32]),f(M,"footerClick",t[33])],B=!0)},p(t,e){t[2]?.logoUri?q?q.p(t,e):(q=ct(t),q.c(),q.m(i,r)):q&&(q.d(1),q=null),t[13]?.title?K?K.p(t,e):(K=ut(t),K.c(),K.m(i,null)):K&&(K.d(1),K=null),8&e[0]&&y!==(y=t[3]?.length?"":"no")&&v(n,"noburger",y),1048576&e[0]&&v(n,"style",t[20]),36&e[0]&&b!==(b=t[5]||t[2]?.siteName||"")&&v(n,"companybrandname",b),64&e[0]&&w!==(w=t[6]||"")&&v(n,"usermenu",w),262144&e[0]&&k!==(k=t[18]?"yes":"no")&&v(n,"switchopen",k),131072&e[0]&&v(N,"style",t[17]),8&e[0]&&S!==(S=t[3]||"[]")&&v(N,"navlinks",S),16&e[0]&&T!==(T=t[4]||"")&&v(N,"navpage",T),512&e[0]&&P!==(P=t[9]?"flex: 2":"")&&h(L,"style",P),t[7]||t[11]||t[12]||t[10]?G?G.p(t,e):(G=dt(t),G.c(),G.m(D,z)):G&&(G.d(1),G=null),65536&e[0]&&v(M,"policies",t[16]),33280&e[0]&&j!==(j="auto"===t[15].type?t[9]?"small":"regular":t[15].type)&&v(M,"type",j),32768&e[0]&&U!==(U=t[15].disable_expanding_small?"yes":"no")&&v(M,"disable_expanding_small",U),1&e[0]&&H!==(H=t[0]?JSON.stringify(t[0]):"")&&v(M,"socials",H),2&e[0]&&R!==(R=t[1]?JSON.stringify(t[1]):"")&&v(M,"contacts",R),524288&e[0]&&F!==(F="display:block;"+t[19])&&v(M,"style",F),4&e[0]&&I!==(I=t[2]?JSON.stringify(t[2]):"")&&v(M,"company",I),256&e[0]&&W!==(W=t[8]||"")&&v(M,"columns",W),4194304&e[0]&&h(D,"style",t[22])},d(t){t&&d(e),q&&q.d(),K&&K.d(),G&&G.d(),B=!1,o(V)}}}function lt(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+"")&&y(e,n)},d(t){t&&d(e)}}}function st(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),v(e,"style",t[21]),v(e,"language",n=t[12]||t[14]),v(e,"allowdecline",t[11]),v(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){2097152&o[0]&&v(e,"style",t[21]),20480&o[0]&&n!==(n=t[12]||t[14])&&v(e,"language",n),2048&o[0]&&v(e,"allowdecline",t[11]),1024&o[0]&&v(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function ct(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 ut(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+"")&&y(e,n)},d(t){t&&d(e)}}}function dt(t){let e,n;return{c(){e=p("hb-cookie-law-banner"),v(e,"style",t[21]),v(e,"language",n=t[12]||t[14]),v(e,"allowdecline",t[11]),v(e,"cookielawuri4more",t[10])},m(t,n){u(t,e,n)},p(t,o){2097152&o[0]&&v(e,"style",t[21]),20480&o[0]&&n!==(n=t[12]||t[14])&&v(e,"language",n),2048&o[0]&&v(e,"allowdecline",t[11]),1024&o[0]&&v(e,"cookielawuri4more",t[10])},d(t){t&&d(e)}}}function pt(e){let n;function o(t,e){return t[3]?.length&&!0===t[18]?rt:it}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 gt(t,e,n){let o,i,r,{id:l}=e,{socials:a}=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:v}=e,{cookielawallowdecline:y}=e,{cookielawlanguage:$}=e,{sidebar:b}=e,{style:w}=e,{size:_}=e,{i18nlang:C}=e,{footer:E}=e,{policies:N}=e,S="",T="",O="",D="";const L=k(),J=x();function P(t,e){J(t,e),L.dispatchEvent&&L.dispatchEvent(new CustomEvent(t,{detail:e}))}function A(t){console.log("burgerclick",t),n(18,i=t.isOpen),P("offcanvasswitch",t)}ot.addComponent({repoName:"@htmlbricks/hb-footer",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-offcanvas",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-navbar",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-cookie-law-banner",version:U}),ot.addComponent({repoName:"@htmlbricks/hb-sidebar-desktop",version:U});return t.$$set=t=>{"id"in t&&n(25,l=t.id),"socials"in t&&n(0,a=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,v=t.cookielawuri4more),"cookielawallowdecline"in t&&n(11,y=t.cookielawallowdecline),"cookielawlanguage"in t&&n(12,$=t.cookielawlanguage),"sidebar"in t&&n(13,b=t.sidebar),"style"in t&&n(27,w=t.style),"size"in t&&n(26,_=t.size),"i18nlang"in t&&n(14,C=t.i18nlang),"footer"in t&&n(15,E=t.footer),"policies"in t&&n(16,N=t.policies)},t.$$.update=()=>{503840767&t.$$.dirty[0]&&(!0!==i&&!1!==i&&n(18,i=!0),w&&(n(28,o=X(w)),n(19,S=ot.getChildStyleToPass(o,null==Y?void 0:Y.vars)),n(20,T=ot.getChildStyleToPass(o,null==Z?void 0:Z.vars)),n(21,O=ot.getChildStyleToPass(o,null==tt?void 0:tt.vars)),n(17,D+=ot.getChildStyleToPass(o,null==et?void 0:et.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(26,_=void 0),l||n(25,l=""),v||n(10,v=""),y||n(11,y=""),$||n(12,$=""),d||n(4,d=null),p||n(5,p=null),m||n(7,m=null),g||n(6,g=null),N||n(16,N=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),a||n(0,a=null),s||n(1,s=null),n(22,r=h?"display: flex;flex-direction: column;\theight: calc(100vh - 50px);":"display:block;"))},[a,s,c,u,d,p,g,m,f,h,v,y,$,b,C,E,N,D,i,S,T,O,r,P,A,l,_,w,o,t=>A(t.detail),t=>P("navbarDropDownClick",t.detail),t=>P("navbarSlotClick",t.detail),t=>P("pageChange",t.detail),t=>P("footerClick",t.detail),t=>A(t.detail),t=>P("navbarDropDownClick",t.detail),t=>P("navbarSlotClick",t.detail),t=>P("footerClick",t.detail)]}class mt 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}#page{min-height:100%}#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},gt,pt,r,{id:25,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:27,size:26,i18nlang:14,footer:15,policies:16},null,[-1,-1]),t&&(t.target&&u(t.target,this,t.anchor),t.props&&(this.$set(t.props),J()))}static get observedAttributes(){return["id","socials","contacts","company","navlinks","pagename","page_title","usermenu","cookielaw","columns","onescreen","cookielawuri4more","cookielawallowdecline","cookielawlanguage","sidebar","style","size","i18nlang","footer","policies"]}get id(){return this.$$.ctx[25]}set id(t){this.$$set({id:t}),J()}get socials(){return this.$$.ctx[0]}set socials(t){this.$$set({socials:t}),J()}get contacts(){return this.$$.ctx[1]}set contacts(t){this.$$set({contacts:t}),J()}get company(){return this.$$.ctx[2]}set company(t){this.$$set({company:t}),J()}get navlinks(){return this.$$.ctx[3]}set navlinks(t){this.$$set({navlinks:t}),J()}get pagename(){return this.$$.ctx[4]}set pagename(t){this.$$set({pagename:t}),J()}get page_title(){return this.$$.ctx[5]}set page_title(t){this.$$set({page_title:t}),J()}get usermenu(){return this.$$.ctx[6]}set usermenu(t){this.$$set({usermenu:t}),J()}get cookielaw(){return this.$$.ctx[7]}set cookielaw(t){this.$$set({cookielaw:t}),J()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),J()}get onescreen(){return this.$$.ctx[9]}set onescreen(t){this.$$set({onescreen:t}),J()}get cookielawuri4more(){return this.$$.ctx[10]}set cookielawuri4more(t){this.$$set({cookielawuri4more:t}),J()}get cookielawallowdecline(){return this.$$.ctx[11]}set cookielawallowdecline(t){this.$$set({cookielawallowdecline:t}),J()}get cookielawlanguage(){return this.$$.ctx[12]}set cookielawlanguage(t){this.$$set({cookielawlanguage:t}),J()}get sidebar(){return this.$$.ctx[13]}set sidebar(t){this.$$set({sidebar:t}),J()}get style(){return this.$$.ctx[27]}set style(t){this.$$set({style:t}),J()}get size(){return this.$$.ctx[26]}set size(t){this.$$set({size:t}),J()}get i18nlang(){return this.$$.ctx[14]}set i18nlang(t){this.$$set({i18nlang:t}),J()}get footer(){return this.$$.ctx[15]}set footer(t){this.$$set({footer:t}),J()}get policies(){return this.$$.ctx[16]}set policies(t){this.$$set({policies:t}),J()}}return customElements.define("hb-layout-desktop",mt),mt}();
|
|
2
2
|
//# sourceMappingURL=release.js.map
|