umwd-components 0.1.396 → 0.1.398

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.
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__read as e,__assign as n}from"../../../../node_modules/tslib/tslib.es6.js";import a,{useState as t,useEffect as o}from"react";import i from"@mui/material/Typography";import c from"@mui/material/Stack";import r from"@mui/material/Box";import m from"@mui/material/TextField";import l from"@mui/material/Button";import u from"@mui/icons-material/BusinessCenter";import{vatValidate as d}from"../../../lib/vatValidate.js";import{eoriValidate as b}from"../../../lib/eoriValidate.js";function _(e){var n=e.data,t=n.company_name,o=n.business_entity_name,m=n.coc_number,_=n.vat_number,s=n.eori_number;return a.createElement(c,{spacing:2,direction:"row"},a.createElement(u,null),a.createElement(r,null,a.createElement(i,{variant:"h6",component:"p"},t),a.createElement(i,{variant:"body2",component:"p"},o),a.createElement(i,{variant:"body2",component:"p"},m),a.createElement(i,{variant:"body2",component:"p"},_),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){console.log(d(_))}},"TODO vat validate"),a.createElement(i,{variant:"body2",component:"p"},s),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){console.log(b(s))}},"TODO eori validate")))}function s(i){var r,_=i.data,s=i.componentName,v=i.componentReference,p=i.disabled,y=void 0!==p&&p,E=e(t(((r={})["".concat(s,"id")]=(null==_?void 0:_.id)||"",r["".concat(s,".company_name")]=(null==_?void 0:_.company_name)||"",r["".concat(s,".business_entity_name")]=(null==_?void 0:_.business_entity_name)||"",r["".concat(s,".coc_number")]=(null==_?void 0:_.coc_number)||"",r["".concat(s,".vat_number")]=(null==_?void 0:_.vat_number)||"",r["".concat(s,".eori_number")]=(null==_?void 0:_.eori_number)||"",r)),2),f=E[0],g=E[1],C=function(e){var a=e.target,t=a.name,o=a.value;g((function(e){var a;return n(n({},e),((a={})[t]=o,a))}))};return o((function(){var e;g(((e={})["".concat(s,".id")]=(null==_?void 0:_.id)||"",e["".concat(s,".company_name")]=(null==_?void 0:_.company_name)||"",e["".concat(s,".business_entity_name")]=(null==_?void 0:_.business_entity_name)||"",e["".concat(s,".coc_number")]=(null==_?void 0:_.coc_number)||"",e["".concat(s,".vat_number")]=(null==_?void 0:_.vat_number)||"",e["".concat(s,".eori_number")]=(null==_?void 0:_.eori_number)||"",e))}),[_]),a.createElement(c,{spacing:1,direction:"row"},a.createElement(u,null),a.createElement(c,{spacing:1,sx:{flex:1}},a.createElement("input",{id:"component_name",type:"hidden",name:"".concat(s,".__component"),value:v}),f.id&&a.createElement("input",{id:"component_id",type:"hidden",name:"".concat(s,".id"),value:f["".concat(s,".id")]}),a.createElement(m,{id:"company_name",name:"".concat(s,".company_name"),label:"Company Name",value:f["".concat(s,".company_name")],onChange:C,disabled:y}),a.createElement(m,{id:"business_entity_name",name:"".concat(s,".business_entity_name"),label:"Business Entity Name",value:f["".concat(s,".business_entity_name")],onChange:C,disabled:y}),a.createElement(m,{id:"coc_number",name:"".concat(s,".coc_number"),label:"CoC Number",value:f["".concat(s,".coc_number")],onChange:C,disabled:y}),a.createElement(c,{direction:"row",spacing:2},a.createElement(m,{id:"vat_number",name:"".concat(s,".vat_number"),label:"VAT Number",value:f["".concat(s,".vat_number")],onChange:C,disabled:y}),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){f.vat_number&&d(f.vat_number)},disabled:y},"TODO validate vat")),a.createElement(c,{direction:"row",spacing:2},a.createElement(m,{id:"eori_number",name:"".concat(s,".eori_number"),label:"EORI Number",value:f["".concat(s,".eori_number")],onChange:C,disabled:y}),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){f.eori_number&&b(f.eori_number)},disabled:y},"TODO validate eori"))))}export{s as BusinessCredentialsFields,_ as default};
7
+ import{__read as e,__assign as n}from"../../../../node_modules/tslib/tslib.es6.js";import a,{useState as t,useEffect as o}from"react";import i from"@mui/material/Typography";import c from"@mui/material/Stack";import r from"@mui/material/Box";import m from"@mui/material/TextField";import l from"@mui/material/Button";import u from"@mui/icons-material/BusinessCenter";import{vatValidate as d}from"../../../lib/vatValidate.js";import{eoriValidate as b}from"../../../lib/eoriValidate.js";function _(e){var n=e.data,t=n.company_name,o=n.business_entity_name,m=n.coc_number,_=n.vat_number,s=n.eori_number;return a.createElement(c,{spacing:2,direction:"row"},a.createElement(u,null),a.createElement(r,null,a.createElement(i,{variant:"h6",component:"p"},t),a.createElement(i,{variant:"body2",component:"p"},o),a.createElement(i,{variant:"body2",component:"p"},m),a.createElement(i,{variant:"body2",component:"p"},_),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){console.log(d(_))}},"TODO vat validate"),a.createElement(i,{variant:"body2",component:"p"},s),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){console.log(b(s))}},"TODO eori validate")))}function s(i){var r,_=i.data,s=i.componentName,v=i.componentReference,p=i.disabled,y=void 0!==p&&p,E=e(t(((r={})["".concat(s,"id")]=(null==_?void 0:_.id)||"",r["".concat(s,".company_name")]=(null==_?void 0:_.company_name)||"",r["".concat(s,".business_entity_name")]=(null==_?void 0:_.business_entity_name)||"",r["".concat(s,".coc_number")]=(null==_?void 0:_.coc_number)||"",r["".concat(s,".vat_number")]=(null==_?void 0:_.vat_number)||"",r["".concat(s,".eori_number")]=(null==_?void 0:_.eori_number)||"",r)),2),f=E[0],g=E[1],C=function(e){var a=e.target,t=a.name,o=a.value;g((function(e){var a;return n(n({},e),((a={})[t]=o,a))}))};return o((function(){var e;g(((e={})["".concat(s,".id")]=(null==_?void 0:_.id)||"",e["".concat(s,".company_name")]=(null==_?void 0:_.company_name)||"",e["".concat(s,".business_entity_name")]=(null==_?void 0:_.business_entity_name)||"",e["".concat(s,".coc_number")]=(null==_?void 0:_.coc_number)||"",e["".concat(s,".vat_number")]=(null==_?void 0:_.vat_number)||"",e["".concat(s,".eori_number")]=(null==_?void 0:_.eori_number)||"",e))}),[_]),a.createElement(c,{spacing:1,direction:"row"},a.createElement(u,null),a.createElement(c,{spacing:1,sx:{flex:1}},a.createElement("input",{id:"component_name",type:"hidden",name:"".concat(s,".__component"),value:v}),f.id&&a.createElement("input",{id:"component_id",type:"hidden",name:"".concat(s,".id"),value:f["".concat(s,".id")]}),a.createElement(m,{id:"company_name",name:"".concat(s,".company_name"),label:"Company Name",value:f["".concat(s,".company_name")],onChange:C,disabled:y}),a.createElement(m,{id:"business_entity_name",name:"".concat(s,".business_entity_name"),label:"Business Entity Name",value:f["".concat(s,".business_entity_name")],onChange:C,disabled:y}),a.createElement(m,{id:"coc_number",name:"".concat(s,".coc_number"),label:"CoC Number",value:f["".concat(s,".coc_number")],onChange:C,disabled:y}),a.createElement(c,{direction:"row",spacing:2},a.createElement(m,{id:"vat_number",name:"".concat(s,".vat_number"),label:"VAT Number",value:f["".concat(s,".vat_number")],onChange:C,disabled:y}),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){console.log(f.vat_number),f.vat_number&&console.log(d(f.vat_number))},disabled:y},"TODO validate vat")),a.createElement(c,{direction:"row",spacing:2},a.createElement(m,{id:"eori_number",name:"".concat(s,".eori_number"),label:"EORI Number",value:f["".concat(s,".eori_number")],onChange:C,disabled:y}),a.createElement(l,{variant:"contained",color:"primary",onClick:function(){f.eori_number&&b(f.eori_number)},disabled:y},"TODO validate eori"))))}export{s as BusinessCredentialsFields,_ as default};
@@ -3,4 +3,4 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- import e,{Suspense as t}from"react";import l from"@mui/material/Box";import r from"@mui/material/Button";import i from"@mui/material/Typography";import a from"@mui/material/Stack";import n from"@mui/material/Grid";import m from"@mui/material/Paper";import{getStrapiMedia as o}from"../../../lib/utils.js";import c from"next/link";import{StrapiImage as u}from"../../StrapiImage.js";import d from"../cart/AddToCartButton.client.js";import s from"../../common/markdown/MarkdownDisplay.js";function p(p){var v,g,E,x,f=p.product;p.sx;var h=f.id,y=f.uuid,_=f.product_number,b=f.title,k=f.description,T=f.slug,j=f.price,w=f.image;f.gallery;var B=f.categories,F=f.stock,C=(null==w?void 0:w.url)?o(w.url):null,A=(null===(g=null===(v=null==w?void 0:w.formats)||void 0===v?void 0:v.thumbnail)||void 0===g?void 0:g.url)?o(w.formats.thumbnail.url):null;return e.createElement(e.Fragment,null,e.createElement(n,{container:!0,spacing:2,sx:{py:3,minHeight:"60vh"}},e.createElement(n,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12},e.createElement(i,{variant:"h4",align:"left",component:"h1"},b)),e.createElement(n,{item:!0,xs:12,sm:8,md:9,lg:4,xl:4},e.createElement(s,null,k)),e.createElement(n,{item:!0,xs:12,sm:4,md:3,lg:3,xl:3},(null==j?void 0:j.price)&&e.createElement(m,{sx:{p:1}},e.createElement(a,{spacing:1},e.createElement(i,{variant:"body2"},"Price excl. VAT € ",j.price.toFixed(2)),j.price_incl_vat&&e.createElement(i,{variant:"body2",sx:{fontWeight:600}},"Price incl. VAT € ",j.price_incl_vat.toFixed(2)),e.createElement(i,{variant:"body2",sx:{fontWeight:600,color:0===F?"red":"white"},align:"right"},F," items in stock"),e.createElement(d,{product:{id:h,uuid:y,slug:T,thumb:A,title:b,vat_rate:j.vat_rate,quantity:1,price_excl_vat:j.price,price_incl_vat:j.price_incl_vat,product_number:_}})))),e.createElement(n,{item:!0,xs:12,sm:12,md:6,lg:5,xl:5},null!==C&&e.createElement(l,{sx:{height:"400px",width:"100%",position:"relative"}},e.createElement(t,{fallback:e.createElement("div",null,"Loading...")},e.createElement(u,{id:w.id,url:C,alternativeText:w.alternativeText,fill:!0,style:{objectFit:"contain"}})))),e.createElement(n,{item:!0,xs:12,sm:12,md:6,lg:7,xl:7},e.createElement(n,{container:!0,spacing:2},e.createElement(n,{item:!0,xs:12},e.createElement(i,{variant:"h6"},"Image galleryy")),e.createElement(n,{item:!0,xs:12},e.createElement(t,{fallback:e.createElement("div",null,"Loading...")},e.createElement(a,{spacing:1,direction:"row"},(null===(E=null==f?void 0:f.gallery)||void 0===E?void 0:E.data)&&f.gallery.data.map((function(t){var r=(null==t?void 0:t.url)?o(t.url):null;return e.createElement(l,{key:t.id,sx:{width:" 150px",height:"150px",position:"relative"}},null!==r&&e.createElement(u,{id:t.id,url:r,alternativeText:t.alternativeText,fill:!0,style:{objectFit:"contain"}}))}))))),e.createElement(n,{item:!0,xs:12,md:6},(null==B?void 0:B.data)&&e.createElement(a,{justifyContent:"center",alignItems:"center",direction:1===B.data.length?"row":"column"},1===B.data.length?e.createElement(i,null,"Category:"):e.createElement(i,null,"Categories:"),null===(x=B.data)||void 0===x?void 0:x.map((function(t){return e.createElement(c,{href:"/shop/categories/".concat(t.slug),key:t.id,legacyBehavior:!0},e.createElement(r,{variant:"text"},t.slug))})))),e.createElement(n,{item:!0,xs:12,md:6},e.createElement(a,null,e.createElement(c,{href:"/shop",legacyBehavior:!0},e.createElement(r,{variant:"outlined"},"continue shopping"))))))))}export{p as default};
6
+ import e,{Suspense as t}from"react";import l from"@mui/material/Box";import r from"@mui/material/Button";import i from"@mui/material/Typography";import a from"@mui/material/Stack";import n from"@mui/material/Grid";import m from"@mui/material/Paper";import{getStrapiMedia as o}from"../../../lib/utils.js";import c from"next/link";import{StrapiImage as u}from"../../StrapiImage.js";import d from"../cart/AddToCartButton.client.js";import s from"../../common/markdown/MarkdownDisplay.js";function p(p){var v,g,E,x,f=p.product;p.sx;var h=f.id,y=f.uuid,_=f.product_number,b=f.title,k=f.description,T=f.slug,j=f.price,w=f.image;f.gallery;var B=f.categories,F=f.stock,C=(null==w?void 0:w.url)?o(w.url):null,A=(null===(g=null===(v=null==w?void 0:w.formats)||void 0===v?void 0:v.thumbnail)||void 0===g?void 0:g.url)?o(w.formats.thumbnail.url):null;return e.createElement(e.Fragment,null,e.createElement(n,{container:!0,spacing:2,sx:{py:3,minHeight:"60vh"}},e.createElement(n,{item:!0,xs:12,sm:12,md:12,lg:12,xl:12},e.createElement(i,{variant:"h4",align:"left",component:"h1"},b)),e.createElement(n,{item:!0,xs:12,sm:8,md:9,lg:4,xl:4},e.createElement(s,null,k)),e.createElement(n,{item:!0,xs:12,sm:4,md:3,lg:3,xl:3},(null==j?void 0:j.price)&&e.createElement(m,{sx:{p:1}},e.createElement(a,{spacing:1},e.createElement(i,{variant:"body2"},"Price excl. VAT € ",j.price.toFixed(2)),j.price_incl_vat&&e.createElement(i,{variant:"body2",sx:{fontWeight:600}},"Price incl. VAT € ",j.price_incl_vat.toFixed(2)),e.createElement(i,{variant:"body2",sx:{fontWeight:600,color:0===F?"red":"white"},align:"right"},F," items in stock"),e.createElement(d,{product:{id:h,uuid:y,slug:T,thumb:A,title:b,vat_rate:j.vat_rate,quantity:1,price_excl_vat:j.price,price_incl_vat:j.price_incl_vat,product_number:_}})))),e.createElement(n,{item:!0,xs:12,sm:12,md:6,lg:5,xl:5},null!==C&&e.createElement(l,{sx:{height:"400px",width:"100%",position:"relative"}},e.createElement(t,{fallback:e.createElement("div",null,"Loading...")},e.createElement(u,{id:w.id,url:C,alternativeText:w.alternativeText,fill:!0,style:{objectFit:"contain"}})))),e.createElement(n,{item:!0,xs:12,sm:12,md:6,lg:7,xl:7},e.createElement(n,{container:!0,spacing:2},e.createElement(n,{item:!0,xs:12},e.createElement(i,{variant:"h6"},"Image gallery")),e.createElement(n,{item:!0,xs:12},e.createElement(t,{fallback:e.createElement("div",null,"Loading...")},e.createElement(a,{spacing:1,direction:"row"},(null===(E=null==f?void 0:f.gallery)||void 0===E?void 0:E.data)&&f.gallery.data.map((function(t){var r=(null==t?void 0:t.url)?o(t.url):null;return e.createElement(l,{key:t.id,sx:{width:" 150px",height:"150px",position:"relative"}},null!==r&&e.createElement(u,{id:t.id,url:r,alternativeText:t.alternativeText,fill:!0,style:{objectFit:"contain"}}))}))))),e.createElement(n,{item:!0,xs:12,md:6},(null==B?void 0:B.data)&&e.createElement(a,{justifyContent:"center",alignItems:"center",direction:1===B.data.length?"row":"column"},1===B.data.length?e.createElement(i,null,"Category:"):e.createElement(i,null,"Categories:"),null===(x=B.data)||void 0===x?void 0:x.map((function(t){return e.createElement(c,{href:"/shop/categories/".concat(t.slug),key:t.id,legacyBehavior:!0},e.createElement(r,{variant:"text"},t.slug))})))),e.createElement(n,{item:!0,xs:12,md:6},e.createElement(a,null,e.createElement(c,{href:"/shop",legacyBehavior:!0},e.createElement(r,{variant:"outlined"},"continue shopping"))))))))}export{p as default};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as n}from"@mui/material/styles";import r from"@mui/material/AppBar";import a from"@mui/material/Container";import i from"@mui/material/Toolbar";import m from"@mui/material/Typography";import l from"@mui/material/Box";import o from"@mui/material/IconButton";import c from"@mui/material/Grid";import s from"@mui/material/Divider";import d from"@mui/material/Stack";import p from"next/link";import u from"next/image";import f from"../../lib/getIcon.js";import{StyledLink as E}from"../StyledLink.js";import y from"@mui/icons-material/Home";import x from"@mui/icons-material/Phone";import b from"@mui/icons-material/Email";function g(g){var h=g.data,v=h.site_title,_=h.logo,C=h.parent_company_name,j=h.business_credentials,w=h.address,I=h.socials,k=h.disclaimer_link,A=h.privacypolicy_link,D=h.maxWidth,T=void 0===D?"lg":D,F=h.referal,B=h.sx,P=void 0===B?{}:B,S=h.useIcons,W=void 0!==S&&S,G=n(),V=f("APIcon");return t.createElement(r,{position:"relative",sx:e({backgroundColor:"light"===G.palette.mode?G.palette.primary.light:G.palette.primary.dark,top:"auto",bottom:0},P),component:"footer"},t.createElement(a,{maxWidth:T},t.createElement(i,{disableGutters:!0},t.createElement(c,{container:!0,sx:{p:2},spacing:2},t.createElement(c,{item:!0,xs:12,sm:6,md:4,sx:[W&&{display:"grid",justifyContent:"center"}]},t.createElement(l,{sx:{display:{xs:"none",md:"flex"},cursor:"pointer",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",height:"100%",textDecoration:"none"}},t.createElement(m,{variant:"h6",color:"#ffffff",sx:{mb:2},component:"h2"},v),void 0!==(null==_?void 0:_.url)&&t.createElement(p,{href:"#home"},t.createElement(l,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",p:1}},t.createElement(u,{src:_.url,width:_.width||100,height:_.height||100,alt:_.alternativeText||"site logo"}))))),t.createElement(c,{item:!0,xs:12,sm:6,md:4,sx:[W&&{display:"grid",justifyContent:"stretch",width:{xs:"80%",sm:"60%",md:"80%"}}]},t.createElement(m,{variant:"h6",sx:[{mb:2},W&&{textAlign:"center"}],component:"h2"},"Contact Information"),j&&t.createElement(t.Fragment,null,t.createElement(m,{id:"company_name",variant:"h6",component:"h3",sx:[{mb:2},W&&{textAlign:"center"}]},j.company_name),C&&t.createElement(m,{id:"parent_company_name",variant:"h6",component:"h4",sx:{mb:2,textAlign:"center"}},"By ",C)),!0===W?t.createElement(d,{spacing:1},w&&t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(y,null),t.createElement(d,{alignItems:"flex-end"},t.createElement(m,{variant:"body1"},w.street," ",w.street_number," ",w.street_number_addition&&w.street_number_addition),t.createElement(m,{variant:"body1"},w.postal_code," ",w.city))),t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(x,null),t.createElement(m,{variant:"body1"},"+3133867606")),t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(b,null),t.createElement(m,{variant:"body1"},"info@jellepaulus.nl")),j&&t.createElement(t.Fragment,null,t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(m,{variant:"body1"},"CoC:"),t.createElement(m,{variant:"body1"},j.coc_number)),t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(m,{variant:"body1"},"VAT:"),t.createElement(m,{variant:"body1",align:"right"},j.vat_number)))):t.createElement(t.Fragment,null,w&&t.createElement(t.Fragment,null,t.createElement(m,{variant:"body1"},w.street," ",w.street_number," ",w.street_number_addition&&w.street_number_addition),t.createElement(m,{variant:"body1"},w.postal_code," ",w.city),j&&t.createElement(t.Fragment,null,t.createElement(m,{variant:"body1"},j.company_name," by"," ",C),t.createElement(m,{variant:"body1"},"CoC: ",j.coc_number),t.createElement(m,{variant:"body1"},"VAT: ",j.vat_number))))),t.createElement(c,{item:!0,xs:12,sm:6,md:4,sx:[W&&{display:"grid",justifyContent:"center"}]},I&&I.length>0&&t.createElement(t.Fragment,null,t.createElement(m,{variant:"h6",sx:{mb:2},component:"h2"},"Socials"),t.createElement(d,{spacing:2,sx:{width:"min-content",color:"primary.contrastText",alignContent:"space-between"}},I.map((function(e,n){var r=f(e.icon);return t.createElement(E,{href:e.url,key:n},t.createElement(o,{key:n,color:"inherit",size:"large"},null!==r&&t.createElement(r,null)))}))))),t.createElement(c,{item:!0,xs:12},t.createElement(s,null)),t.createElement(c,{item:!0,xs:12},t.createElement(d,{direction:{xs:"column",sm:"row"},alignItems:"center",gap:2,justifyContent:"space-around"},k&&t.createElement(E,{href:k},t.createElement(m,{variant:"body1",color:"#ffffff"},"Disclaimer")),A&&t.createElement(E,{href:A},t.createElement(m,{variant:"body1",color:"#ffffff"},"Privacy Policy")))),Boolean(k||A)&&t.createElement(c,{item:!0,xs:12},t.createElement(s,null)),t.createElement(c,{item:!0,xs:12,sx:{display:"flex",justifyContent:"center",alignItems:"center",pb:"50px"}},F||t.createElement(E,{href:"https://atelierpaulus.nl/"},t.createElement(m,{color:"secondary.contrastText",sx:{textDecoration:"underline",verticalAlign:"middle",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:{xs:"column",sm:"row"},gap:2}},"Design & Webdevelopment",null!==V&&t.createElement(V,{sx:{mx:2}}),"Atelier Paulus")))))))}export{g as default};
7
+ import{__assign as e}from"../../../node_modules/tslib/tslib.es6.js";import t from"react";import{useTheme as n}from"@mui/material/styles";import r from"@mui/material/AppBar";import a from"@mui/material/Container";import i from"@mui/material/Toolbar";import m from"@mui/material/Typography";import l from"@mui/material/Box";import o from"@mui/material/IconButton";import c from"@mui/material/Grid";import s from"@mui/material/Divider";import d from"@mui/material/Stack";import u from"next/link";import p from"next/image";import f from"../../lib/getIcon.js";import{StyledLink as E}from"../StyledLink.js";import y from"@mui/icons-material/Home";import x from"@mui/icons-material/Phone";import b from"@mui/icons-material/Email";function g(g){var h=g.data,v=h.site_title,_=h.logo,C=h.parent_company_name,j=h.business_credentials,w=h.address,I=h.socials,k=h.disclaimer_link,A=h.privacypolicy_link,D=h.maxWidth,T=void 0===D?"lg":D,F=h.referal,B=h.sx,P=void 0===B?{}:B,S=h.useIcons,W=void 0!==S&&S,G=n(),V=f("APIcon");return t.createElement(r,{position:"relative",sx:e({backgroundColor:"light"===G.palette.mode?G.palette.primary.light:G.palette.primary.dark,top:"auto",bottom:0},P),component:"footer"},t.createElement(a,{maxWidth:T},t.createElement(i,{disableGutters:!0},t.createElement(c,{container:!0,sx:{p:2},spacing:2},t.createElement(c,{item:!0,xs:12,sm:6,md:4,sx:[W&&{display:"grid",justifyContent:"center"}]},t.createElement(l,{sx:{display:{xs:"none",md:"flex"},cursor:"pointer",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",height:"100%",textDecoration:"none"}},t.createElement(m,{variant:"h6",color:"#ffffff",sx:{mb:2},component:"h2"},v),void 0!==(null==_?void 0:_.url)&&t.createElement(u,{href:"#home"},t.createElement(l,{sx:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",p:1}},t.createElement(p,{src:_.url,width:_.width||100,height:_.height||100,alt:_.alternativeText||"site logo"}))))),t.createElement(c,{item:!0,xs:12,sm:6,md:4,sx:[W&&{display:"grid",justifyContent:"stretch",width:{xs:"80%",sm:"60%",md:"80%"}}]},t.createElement(m,{variant:"h6",sx:[{mb:2},W&&{textAlign:"center"}],component:"h2"},"Contact Information"),j&&t.createElement(t.Fragment,null,t.createElement(m,{id:"company_name",variant:"h6",component:"h3",sx:[{mb:2},W&&{textAlign:"center"}]},j.company_name),C&&t.createElement(m,{id:"parent_company_name",variant:"h6",component:"h4",sx:{mb:2,textAlign:"center"}},"By ",C)),!0===W?t.createElement(d,{spacing:1},w&&t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(y,null),t.createElement(d,{alignItems:"flex-end"},t.createElement(m,{variant:"body1"},w.street," ",w.street_number," ",w.street_number_addition&&w.street_number_addition),t.createElement(m,{variant:"body1"},w.postal_code," ",w.city))),t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(x,null),t.createElement(m,{variant:"body1"},"+3133867606")),t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(b,null),t.createElement(m,{variant:"body1"},"info@jellepaulus.nl")),j&&t.createElement(t.Fragment,null,t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(m,{variant:"body1"},"CoC:"),t.createElement(m,{variant:"body1"},j.coc_number)),t.createElement(d,{direction:"row",justifyContent:"space-between"},t.createElement(m,{variant:"body1"},"VAT:"),t.createElement(m,{variant:"body1",align:"right"},j.vat_number)))):t.createElement(t.Fragment,null,w&&t.createElement(t.Fragment,null,t.createElement(m,{variant:"body1"},w.street," ",w.street_number," ",w.street_number_addition&&w.street_number_addition),t.createElement(m,{variant:"body1"},w.postal_code," ",w.city),j&&t.createElement(t.Fragment,null,t.createElement(m,{variant:"body1"},j.company_name," by"," ",C),t.createElement(m,{variant:"body1"},"CoC: ",j.coc_number),t.createElement(m,{variant:"body1"},"VAT: ",j.vat_number))))),t.createElement(c,{item:!0,xs:12,sm:6,md:4,sx:[W&&{display:"grid",justifyContent:"center"}]},I&&I.length>0&&t.createElement(t.Fragment,null,t.createElement(m,{variant:"h6",sx:{mb:2},component:"h2"},"Socials"),t.createElement(d,{spacing:2,sx:{width:"min-content",color:"primary.contrastText",alignContent:"space-between"}},I.map((function(e,n){var r=void 0!==e.icon?f(e.icon):null;return t.createElement(E,{href:e.url,key:n},t.createElement(o,{key:n,color:"inherit",size:"large"},null!==r&&t.createElement(r,null)))}))))),t.createElement(c,{item:!0,xs:12},t.createElement(s,null)),t.createElement(c,{item:!0,xs:12},t.createElement(d,{direction:{xs:"column",sm:"row"},alignItems:"center",gap:2,justifyContent:"space-around"},k&&t.createElement(E,{href:k},t.createElement(m,{variant:"body1",color:"#ffffff"},"Disclaimer")),A&&t.createElement(E,{href:A},t.createElement(m,{variant:"body1",color:"#ffffff"},"Privacy Policy")))),Boolean(k||A)&&t.createElement(c,{item:!0,xs:12},t.createElement(s,null)),t.createElement(c,{item:!0,xs:12,sx:{display:"flex",justifyContent:"center",alignItems:"center",pb:"50px"}},F||t.createElement(E,{href:"https://atelierpaulus.nl/"},t.createElement(m,{color:"secondary.contrastText",sx:{textDecoration:"underline",verticalAlign:"middle",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:{xs:"column",sm:"row"},gap:2}},"Design & Webdevelopment",null!==V&&t.createElement(V,{sx:{mx:2}}),"Atelier Paulus")))))))}export{g as default};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__read as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import r,{useState as a,useEffect as l,Fragment as o}from"react";import n from"next/link";import i from"next/image";import m from"@mui/material/Dialog";import c from"@mui/material/AppBar";import s from"@mui/material/Box";import p from"@mui/material/Toolbar";import x from"@mui/material/Typography";import u from"@mui/material/Container";import d from"@mui/material/Button";import h from"@mui/material/List";import f from"@mui/material/ListItem";import g from"@mui/material/Divider";import y from"@mui/material/ListItemText";import E from"@mui/material/Tabs";import w from"@mui/material/Tab";import b from"@mui/icons-material/Close";import v from"@mui/icons-material/MoreVert";import{useTheme as T}from"@mui/material/styles";function D(D){var k=D.data,C=k.site_title,W=k.logo,G=k.tabs,F=k.maxWidth,H=k.minHeight,I=k.sx,L=void 0===I?{}:I;k.home_url;var S=e(a(!1),2),B=S[0],R=S[1],_=e(a(0),2),j=_[0],A=_[1],q=function(){R(!1)},M=T();return l((function(){var e=function(){var e=document.querySelectorAll("section"),t=window.scrollY+1;e.forEach((function(e,r){t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight&&A(r)}))};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]),r.createElement(c,{position:"sticky",sx:t({backgroundColor:M.palette.primary.main},L)},r.createElement(u,{maxWidth:F},r.createElement(p,{disableGutters:!0,sx:{py:1,"@media all":{minHeight:H}}},r.createElement(n,{href:"/#home",style:{color:M.palette.primary.contrastText,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{sx:{display:{xs:"none",md:"flex"},alignItems:"center"}},void 0!==(null==W?void 0:W.url)&&r.createElement(i,{src:W.url,width:W.width,height:W.height,alt:W.alternativeText||"site logo",style:t({maxHeight:"55px",marginRight:"20px",width:"auto",height:"auto"},W.style)}),null!=C&&r.createElement(r.Fragment,null,"string"==typeof C?r.createElement(x,{variant:"h6",noWrap:!0,component:"h1",sx:{display:"flex",textDecoration:"none"}},C):r.createElement(r.Fragment,null,C)))),r.createElement(s,{sx:{display:{xs:"none",md:"flex"},width:{xs:"0px",md:"30px"}}}),G&&G.length>0&&r.createElement(s,{sx:{flexGrow:1,display:{xs:"none",md:"flex",alignItems:"center"}}},r.createElement(E,{value:j,"aria-label":"wrapped label tabs example",indicatorColor:"secondary",role:"navigation"},G.length>0&&G.map((function(e,t){return r.createElement(n,{key:e.name,href:"/".concat(e.slug),style:{color:M.palette.primary.contrastText,textDecoration:"none"}},r.createElement(w,{value:t,label:e.name,sx:{color:M.palette.primary.contrastText,opacity:.9}}))})))),r.createElement(n,{href:"/",style:{color:M.palette.primary.contrastText,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{sx:{display:{xs:"flex",md:"none"},alignItems:"center"}},void 0!==(null==W?void 0:W.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:W.url,width:W.width||32,height:W.height||32,alt:W.alternativeText||"site logo",style:t({maxHeight:"55px",width:"auto",height:"auto"},W.style)})),null!=C&&r.createElement(r.Fragment,null,"string"==typeof C?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},C):r.createElement(r.Fragment,null,C)))),r.createElement(s,{sx:{display:{xs:"flex",md:"none"},flexGrow:1}}),r.createElement(s,{sx:{flexGrow:0,display:{xs:"flex",md:"none"}}},r.createElement(d,{onClick:function(){R(!0)},sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}},r.createElement(v,{sx:{color:"primary.contrastText"}})),r.createElement(m,{fullScreen:!0,open:B,onClose:q},r.createElement(c,{position:"sticky"},r.createElement(u,{maxWidth:"xl"},r.createElement(p,{disableGutters:!0,sx:{py:1,justifyContent:"space-between"}},r.createElement(n,{href:"/",style:{color:M.palette.primary.contrastText,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{sx:{display:"flex",flexDirection:"row",alignItems:"center"}},(null==W?void 0:W.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:W.url,alt:W.alternativeText||"logo",width:W.width||32,height:W.height||32,style:{maxHeight:"55px",width:"auto",height:"auto"}})),null!=C&&r.createElement(r.Fragment,null,"string"==typeof C?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},C):r.createElement(r.Fragment,null,C)))),r.createElement(d,{onClick:q,sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},"aria-label":"close"},r.createElement(b,{sx:{color:"primary.contrastText"}}))))),G&&G.length>0&&r.createElement(h,null,G.map((function(e){return r.createElement(o,{key:e.name},r.createElement(n,{href:"#".concat(e.slug),style:{color:M.palette.text.primary,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{onClick:q},r.createElement(f,null,r.createElement(y,{primary:e.name})))),r.createElement(g,null))}))))))))}export{D as default};
7
+ import{__read as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import r,{useState as a,useEffect as l,Fragment as o}from"react";import n from"next/link";import i from"next/image";import m from"@mui/material/Dialog";import c from"@mui/material/AppBar";import s from"@mui/material/Box";import p from"@mui/material/Toolbar";import x from"@mui/material/Typography";import u from"@mui/material/Container";import d from"@mui/material/Button";import h from"@mui/material/List";import f from"@mui/material/ListItem";import g from"@mui/material/Divider";import y from"@mui/material/ListItemText";import E from"@mui/material/Tabs";import w from"@mui/material/Tab";import b from"@mui/icons-material/Close";import v from"@mui/icons-material/MoreVert";import{useTheme as T}from"@mui/material/styles";function D(D){var k=D.data,C=k.site_title,W=k.logo,G=k.tabs,F=k.maxWidth,H=void 0===F?"lg":F,I=k.minHeight,L=k.sx,S=void 0===L?{}:L;k.home_url;var B=e(a(!1),2),R=B[0],_=B[1],j=e(a(0),2),A=j[0],q=j[1],M=function(){_(!1)},V=T();return l((function(){var e=function(){var e=document.querySelectorAll("section"),t=window.scrollY+1;e.forEach((function(e,r){t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight&&q(r)}))};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]),r.createElement(c,{position:"sticky",sx:t({backgroundColor:V.palette.primary.main},S)},r.createElement(u,{maxWidth:H},r.createElement(p,{disableGutters:!0,sx:{py:1,"@media all":{minHeight:I}}},r.createElement(n,{href:"/#home",style:{color:V.palette.primary.contrastText,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{sx:{display:{xs:"none",md:"flex"},alignItems:"center"}},void 0!==(null==W?void 0:W.url)&&r.createElement(i,{src:W.url,width:W.width,height:W.height,alt:W.alternativeText||"site logo",style:t({maxHeight:"55px",marginRight:"20px",width:"auto",height:"auto"},W.style)}),null!=C&&r.createElement(r.Fragment,null,"string"==typeof C?r.createElement(x,{variant:"h6",noWrap:!0,component:"h1",sx:{display:"flex",textDecoration:"none"}},C):r.createElement(r.Fragment,null,C)))),r.createElement(s,{sx:{display:{xs:"none",md:"flex"},width:{xs:"0px",md:"30px"}}}),G&&G.length>0&&r.createElement(s,{sx:{flexGrow:1,display:{xs:"none",md:"flex",alignItems:"center"}}},r.createElement(E,{value:A,"aria-label":"wrapped label tabs example",indicatorColor:"secondary",role:"navigation"},G.length>0&&G.map((function(e,t){return r.createElement(n,{key:e.name,href:"/".concat(e.slug),style:{color:V.palette.primary.contrastText,textDecoration:"none"}},r.createElement(w,{value:t,label:e.name,sx:{color:V.palette.primary.contrastText,opacity:.9}}))})))),r.createElement(n,{href:"/",style:{color:V.palette.primary.contrastText,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{sx:{display:{xs:"flex",md:"none"},alignItems:"center"}},void 0!==(null==W?void 0:W.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:W.url,width:W.width||32,height:W.height||32,alt:W.alternativeText||"site logo",style:t({maxHeight:"55px",width:"auto",height:"auto"},W.style)})),null!=C&&r.createElement(r.Fragment,null,"string"==typeof C?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},C):r.createElement(r.Fragment,null,C)))),r.createElement(s,{sx:{display:{xs:"flex",md:"none"},flexGrow:1}}),r.createElement(s,{sx:{flexGrow:0,display:{xs:"flex",md:"none"}}},r.createElement(d,{onClick:function(){_(!0)},sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}},r.createElement(v,{sx:{color:"primary.contrastText"}})),r.createElement(m,{fullScreen:!0,open:R,onClose:M},r.createElement(c,{position:"sticky"},r.createElement(u,{maxWidth:"xl"},r.createElement(p,{disableGutters:!0,sx:{py:1,justifyContent:"space-between"}},r.createElement(n,{href:"/",style:{color:V.palette.primary.contrastText,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{sx:{display:"flex",flexDirection:"row",alignItems:"center"}},(null==W?void 0:W.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:W.url,alt:W.alternativeText||"logo",width:W.width||32,height:W.height||32,style:{maxHeight:"55px",width:"auto",height:"auto"}})),null!=C&&r.createElement(r.Fragment,null,"string"==typeof C?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},C):r.createElement(r.Fragment,null,C)))),r.createElement(d,{onClick:M,sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},"aria-label":"close"},r.createElement(b,{sx:{color:"primary.contrastText"}}))))),G&&G.length>0&&r.createElement(h,null,G.map((function(e){return r.createElement(o,{key:e.name},r.createElement(n,{href:"#".concat(e.slug),style:{color:V.palette.text.primary,textDecoration:"none",cursor:"pointer"}},r.createElement(s,{onClick:M},r.createElement(f,null,r.createElement(y,{primary:e.name})))),r.createElement(g,null))}))))))))}export{D as default};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__read as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import r,{useState as a,useEffect as l,Fragment as n}from"react";import i from"next/image";import o from"@mui/material/Dialog";import m from"@mui/material/AppBar";import s from"@mui/material/Box";import p from"@mui/material/Toolbar";import x from"@mui/material/Typography";import c from"@mui/material/Container";import u from"@mui/material/Button";import d from"@mui/material/List";import f from"@mui/material/ListItem";import h from"@mui/material/Divider";import g from"@mui/material/ListItemText";import E from"@mui/material/Tabs";import y from"@mui/material/Tab";import b from"@mui/icons-material/Close";import v from"@mui/icons-material/MoreVert";import{useTheme as w}from"@mui/material/styles";import{StyledLink as T}from"../StyledLink.js";function I(I){var k=I.data,D=k.site_title,_=k.logo,C=k.navigation,W=k.maxWidth,F=k.minHeight,G=k.sx,H=void 0===G?{}:G,L=k.home_url,S=void 0===L?"/#home":L,B=k.slot1,j=void 0===B?null:B,A=k.slot2,R=void 0===A?null:A,q=e(a(!1),2),M=q[0],N=q[1],V=e(a(0),2),X=V[0],Y=V[1],z=function(){N(!1)},J=w();return l((function(){var e=function(){var e=document.querySelectorAll("section"),t=window.scrollY+1;e.forEach((function(e,r){t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight&&Y(r)}))};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]),r.createElement(m,{position:"sticky",sx:t({backgroundColor:J.palette.primary.main},H)},r.createElement(c,{maxWidth:W},r.createElement(p,{disableGutters:!0,sx:{py:1,"@media all":{minHeight:F}}},r.createElement(T,{href:S,sx:{color:J.palette.primary.contrastText,textDecoration:"none",lineHeight:.51},target:"_self"},r.createElement(s,{sx:{display:{xs:"none",md:"flex"},alignItems:"center"}},void 0!==(null==_?void 0:_.url)&&r.createElement(i,{src:_.url,width:_.width,height:_.height,alt:_.alternativeText||"site logo",style:t({maxHeight:"55px",marginRight:"20px",width:"auto",height:"auto"},_.style)}),null!=D&&r.createElement(r.Fragment,null,"string"==typeof D?r.createElement(x,{variant:"h6",noWrap:!0,component:"h1",sx:{display:"flex",textDecoration:"none",p:0}},D):r.createElement(r.Fragment,null,D)))),r.createElement(s,{sx:{display:{xs:"none",md:"flex"},width:{xs:"0px",md:"30px"}}}),r.createElement(s,{sx:{flexGrow:1,display:{xs:"none",md:"flex",alignItems:"center"}}},r.createElement(E,{value:X,"aria-label":"main website navigation",indicatorColor:"secondary",role:"navigation"},C.length>0&&C.map((function(e){return r.createElement(y,{key:e.id,value:e.tab,label:r.createElement(r.Fragment,null,r.createElement(T,{href:e.path,sx:{color:J.palette.primary.contrastText},target:"_self"},e.title),e.subItems&&e.subItems.length>0&&e.subItems.map((function(e,t){var a=50+50*t;return r.createElement(s,{key:e.id,sx:{position:"fixed"}},r.createElement(s,{sx:{position:"absolute",top:a}},r.createElement(T,{href:e.path,target:"_self"},r.createElement(x,{className:"nested",variant:"button",textAlign:"center",sx:{display:"block",position:"absolute",top:"-1000px",transform:"translateX(-50%)",color:J.palette.primary.contrastText,transitionDuration:"0.5s",transitionDelay:"0.5s",width:"max-content","&:hover":{borderBottom:"1px solid red"}}},e.title))))}))),sx:{color:J.palette.primary.contrastText,opacity:.9,position:"relative",overflow:"visible",display:"flex",flexDirection:"column","& .nested":{p:0},"&:hover":{".nested":{top:"0px"}}}})})))),r.createElement(T,{href:"/",sx:{color:J.palette.primary.contrastText,textDecoration:"none"},target:"_self"},r.createElement(s,{sx:{display:{xs:"flex",md:"none"},alignItems:"center"}},void 0!==(null==_?void 0:_.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:_.url,width:_.width||32,height:_.height||32,alt:_.alternativeText||"site logo",style:t({maxHeight:"55px",width:"auto",height:"auto"},_.style)})),null!=D&&r.createElement(r.Fragment,null,"string"==typeof D?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},D):r.createElement(r.Fragment,null,D)))),r.createElement(s,{sx:{display:{xs:"flex"},flexGrow:1}}),j&&r.createElement(s,{sx:{display:{xs:"flex"},mr:2}},j),R&&r.createElement(s,{sx:{display:{xs:"flex"},mr:2}},R),r.createElement(s,{sx:{flexGrow:0,display:{xs:"flex",md:"none"}}},r.createElement(u,{onClick:function(){N(!0)},sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}},r.createElement(v,{sx:{color:"primary.contrastText"}})),r.createElement(o,{fullScreen:!0,open:M,onClose:z},r.createElement(m,{position:"sticky"},r.createElement(c,{maxWidth:"xl"},r.createElement(p,{disableGutters:!0,sx:{py:1,justifyContent:"space-between"}},r.createElement(T,{href:"/",sx:{color:J.palette.primary.contrastText},target:"_self"},r.createElement(s,{sx:{display:"flex",flexDirection:"row",alignItems:"center"}},(null==_?void 0:_.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:_.url,alt:_.alternativeText||"logo",width:_.width||32,height:_.height||32,style:{maxHeight:"55px",width:"auto",height:"auto"}})),null!=D&&r.createElement(r.Fragment,null,"string"==typeof D?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},D):r.createElement(r.Fragment,null,D)))),r.createElement(u,{onClick:z,sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},"aria-label":"close"},r.createElement(b,{sx:{color:"primary.contrastText"}}))))),C.length>0&&r.createElement(d,null,C.map((function(e){return r.createElement(n,{key:e.id},r.createElement(T,{href:e.path,target:"_self"},r.createElement(f,null,r.createElement(g,{primary:e.title}))),r.createElement(h,null),e.subItems&&e.subItems.length>0&&r.createElement(d,null,e.subItems.map((function(e){return r.createElement(n,{key:e.id},r.createElement(T,{href:e.path,target:"_self"},r.createElement(f,null,r.createElement(g,{primary:e.title}))),r.createElement(h,null))}))))}))))))))}export{I as default};
7
+ import{__read as e,__assign as t}from"../../../node_modules/tslib/tslib.es6.js";import r,{useState as a,useEffect as l,Fragment as i}from"react";import n from"next/image";import o from"@mui/material/Dialog";import m from"@mui/material/AppBar";import s from"@mui/material/Box";import p from"@mui/material/Toolbar";import x from"@mui/material/Typography";import c from"@mui/material/Container";import u from"@mui/material/Button";import d from"@mui/material/List";import f from"@mui/material/ListItem";import h from"@mui/material/Divider";import g from"@mui/material/ListItemText";import E from"@mui/material/Tabs";import y from"@mui/material/Tab";import b from"@mui/icons-material/Close";import v from"@mui/icons-material/MoreVert";import{useTheme as w}from"@mui/material/styles";import{StyledLink as T}from"../StyledLink.js";function I(I){var k=I.data,D=k.site_title,_=k.logo,C=k.navigation,W=k.maxWidth,F=void 0===W?"lg":W,G=k.minHeight,H=k.sx,L=void 0===H?{}:H,S=k.home_url,B=void 0===S?"/#home":S,j=k.slot1,A=void 0===j?null:j,R=k.slot2,q=void 0===R?null:R,M=e(a(!1),2),N=M[0],V=M[1],X=e(a(0),2),Y=X[0],z=X[1],J=function(){V(!1)},K=w();return l((function(){var e=function(){var e=document.querySelectorAll("section"),t=window.scrollY+1;e.forEach((function(e,r){t>=e.offsetTop&&t<e.offsetTop+e.offsetHeight&&z(r)}))};return window.addEventListener("scroll",e),function(){return window.removeEventListener("scroll",e)}}),[]),r.createElement(m,{position:"sticky",sx:t({backgroundColor:K.palette.primary.main},L)},r.createElement(c,{maxWidth:F},r.createElement(p,{disableGutters:!0,sx:{py:1,"@media all":{minHeight:G}}},r.createElement(T,{href:B,sx:{color:K.palette.primary.contrastText,textDecoration:"none",lineHeight:.51},target:"_self"},r.createElement(s,{sx:{display:{xs:"none",md:"flex"},alignItems:"center"}},void 0!==(null==_?void 0:_.url)&&r.createElement(n,{src:_.url,width:_.width||32,height:_.height||32,alt:_.alternativeText||"site logo",style:t({maxHeight:"55px",marginRight:"20px",width:"auto",height:"auto"},_.style)}),null!=D&&r.createElement(r.Fragment,null,"string"==typeof D?r.createElement(x,{variant:"h6",noWrap:!0,component:"h1",sx:{display:"flex",textDecoration:"none",p:0}},D):r.createElement(r.Fragment,null,D)))),r.createElement(s,{sx:{display:{xs:"none",md:"flex"},width:{xs:"0px",md:"30px"}}}),r.createElement(s,{sx:{flexGrow:1,display:{xs:"none",md:"flex",alignItems:"center"}}},r.createElement(E,{value:Y,"aria-label":"main website navigation",indicatorColor:"secondary",role:"navigation"},C.length>0&&C.map((function(e){return r.createElement(y,{key:e.id,value:e.tab,label:r.createElement(r.Fragment,null,r.createElement(T,{href:e.path,sx:{color:K.palette.primary.contrastText},target:"_self"},e.title),e.subItems&&e.subItems.length>0&&e.subItems.map((function(e,t){var a=50+50*t;return r.createElement(s,{key:e.id,sx:{position:"fixed"}},r.createElement(s,{sx:{position:"absolute",top:a}},r.createElement(T,{href:e.path,target:"_self"},r.createElement(x,{className:"nested",variant:"button",textAlign:"center",sx:{display:"block",position:"absolute",top:"-1000px",transform:"translateX(-50%)",color:K.palette.primary.contrastText,transitionDuration:"0.5s",transitionDelay:"0.5s",width:"max-content","&:hover":{borderBottom:"1px solid red"}}},e.title))))}))),sx:{color:K.palette.primary.contrastText,opacity:.9,position:"relative",overflow:"visible",display:"flex",flexDirection:"column","& .nested":{p:0},"&:hover":{".nested":{top:"0px"}}}})})))),r.createElement(T,{href:"/",sx:{color:K.palette.primary.contrastText,textDecoration:"none"},target:"_self"},r.createElement(s,{sx:{display:{xs:"flex",md:"none"},alignItems:"center"}},void 0!==(null==_?void 0:_.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:_.url,width:_.width||32,height:_.height||32,alt:_.alternativeText||"site logo",style:t({maxHeight:"55px",width:"auto",height:"auto"},_.style)})),null!=D&&r.createElement(r.Fragment,null,"string"==typeof D?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},D):r.createElement(r.Fragment,null,D)))),r.createElement(s,{sx:{display:{xs:"flex"},flexGrow:1}}),A&&r.createElement(s,{sx:{display:{xs:"flex"},mr:2}},A),q&&r.createElement(s,{sx:{display:{xs:"flex"},mr:2}},q),r.createElement(s,{sx:{flexGrow:0,display:{xs:"flex",md:"none"}}},r.createElement(u,{onClick:function(){V(!0)},sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}},r.createElement(v,{sx:{color:"primary.contrastText"}})),r.createElement(o,{fullScreen:!0,open:N,onClose:J},r.createElement(m,{position:"sticky"},r.createElement(c,{maxWidth:"xl"},r.createElement(p,{disableGutters:!0,sx:{py:1,justifyContent:"space-between"}},r.createElement(T,{href:"/",sx:{color:K.palette.primary.contrastText},target:"_self"},r.createElement(s,{sx:{display:"flex",flexDirection:"row",alignItems:"center"}},(null==_?void 0:_.url)&&r.createElement(s,{sx:{display:"flex",mr:1}},r.createElement("img",{src:_.url,alt:_.alternativeText||"logo",width:_.width||32,height:_.height||32,style:{maxHeight:"55px",width:"auto",height:"auto"}})),null!=D&&r.createElement(r.Fragment,null,"string"==typeof D?r.createElement(x,{variant:"h5",noWrap:!0,component:"h1",sx:{display:"flex",flexGrow:1,textDecoration:"none"}},D):r.createElement(r.Fragment,null,D)))),r.createElement(u,{onClick:J,sx:{width:"40px",height:"40px",borderRadius:"50%",p:0,minWidth:"unset",color:"primary.contrastText",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},"aria-label":"close"},r.createElement(b,{sx:{color:"primary.contrastText"}}))))),C.length>0&&r.createElement(d,null,C.map((function(e){return r.createElement(i,{key:e.id},r.createElement(T,{href:e.path,target:"_self"},r.createElement(f,null,r.createElement(g,{primary:e.title}))),r.createElement(h,null),e.subItems&&e.subItems.length>0&&r.createElement(d,null,e.subItems.map((function(e){return r.createElement(i,{key:e.id},r.createElement(T,{href:e.path,target:"_self"},r.createElement(f,null,r.createElement(g,{primary:e.title}))),r.createElement(h,null))}))))}))))))))}export{I as default};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__awaiter as t,__generator as n}from"../../../node_modules/tslib/tslib.es6.js";import{cookies as o}from"next/headers";function i(){return t(this,void 0,void 0,(function(){var t,i,r;return n(this,(function(n){return t=o(),[2,null!=(i=null===(r=t.get("jwt"))||void 0===r?void 0:r.value)?i:null]}))}))}export{i as getAuthToken};
7
+ import{__awaiter as o,__generator as t}from"../../../node_modules/tslib/tslib.es6.js";import{cookies as e}from"next/headers";function n(){return o(this,void 0,void 0,(function(){var o,n,i;return t(this,(function(t){return o=e(),console.log("cookieStore",o),n=null===(i=o.get("jwt"))||void 0===i?void 0:i.value,console.log("token",n),[2,null!=n?n:null]}))}))}export{n as getAuthToken};