umwd-components 0.1.563 → 0.1.565

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.
@@ -3,4 +3,4 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- import{__exports as r}from"../../_virtual/index8.js";var t;function e(){if(t)return r;t=1,r.byteLength=function(r){var t=i(r),e=t[0],n=t[1];return 3*(e+n)/4-n},r.toByteArray=function(r){var t,e,a=i(r),u=a[0],h=a[1],c=new o(function(r,t,e){return 3*(t+e)/4-e}(0,u,h)),f=0,d=h>0?u-4:u;for(e=0;e<d;e+=4)t=n[r.charCodeAt(e)]<<18|n[r.charCodeAt(e+1)]<<12|n[r.charCodeAt(e+2)]<<6|n[r.charCodeAt(e+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;2===h&&(t=n[r.charCodeAt(e)]<<2|n[r.charCodeAt(e+1)]>>4,c[f++]=255&t);1===h&&(t=n[r.charCodeAt(e)]<<10|n[r.charCodeAt(e+1)]<<4|n[r.charCodeAt(e+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t);return c},r.fromByteArray=function(r){for(var t,n=r.length,o=n%3,a=[],u=16383,i=0,c=n-o;i<c;i+=u)a.push(h(r,i,i+u>c?c:i+u));1===o?(t=r[n-1],a.push(e[t>>2]+e[t<<4&63]+"==")):2===o&&(t=(r[n-2]<<8)+r[n-1],a.push(e[t>>10]+e[t>>4&63]+e[t<<2&63]+"="));return a.join("")};for(var e=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)e[u]=a[u],n[a.charCodeAt(u)]=u;function i(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function h(r,t,n){for(var o,a,u=[],i=t;i<n;i+=3)o=(r[i]<<16&16711680)+(r[i+1]<<8&65280)+(255&r[i+2]),u.push(e[(a=o)>>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]);return u.join("")}return n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63,r}export{e as __require};
6
+ import{__exports as r}from"../../_virtual/index7.js";var t;function e(){if(t)return r;t=1,r.byteLength=function(r){var t=i(r),e=t[0],n=t[1];return 3*(e+n)/4-n},r.toByteArray=function(r){var t,e,a=i(r),u=a[0],h=a[1],c=new o(function(r,t,e){return 3*(t+e)/4-e}(0,u,h)),f=0,d=h>0?u-4:u;for(e=0;e<d;e+=4)t=n[r.charCodeAt(e)]<<18|n[r.charCodeAt(e+1)]<<12|n[r.charCodeAt(e+2)]<<6|n[r.charCodeAt(e+3)],c[f++]=t>>16&255,c[f++]=t>>8&255,c[f++]=255&t;2===h&&(t=n[r.charCodeAt(e)]<<2|n[r.charCodeAt(e+1)]>>4,c[f++]=255&t);1===h&&(t=n[r.charCodeAt(e)]<<10|n[r.charCodeAt(e+1)]<<4|n[r.charCodeAt(e+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t);return c},r.fromByteArray=function(r){for(var t,n=r.length,o=n%3,a=[],u=16383,i=0,c=n-o;i<c;i+=u)a.push(h(r,i,i+u>c?c:i+u));1===o?(t=r[n-1],a.push(e[t>>2]+e[t<<4&63]+"==")):2===o&&(t=(r[n-2]<<8)+r[n-1],a.push(e[t>>10]+e[t>>4&63]+e[t<<2&63]+"="));return a.join("")};for(var e=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0;u<64;++u)e[u]=a[u],n[a.charCodeAt(u)]=u;function i(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function h(r,t,n){for(var o,a,u=[],i=t;i<n;i+=3)o=(r[i]<<16&16711680)+(r[i+1]<<8&65280)+(255&r[i+2]),u.push(e[(a=o)>>18&63]+e[a>>12&63]+e[a>>6&63]+e[63&a]);return u.join("")}return n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63,r}export{e as __require};
@@ -3,5 +3,5 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- import{__exports as a}from"../../_virtual/index7.js";
6
+ import{__exports as a}from"../../_virtual/index8.js";
7
7
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var t;function o(){return t||(t=1,a.read=function(a,t,o,r,h){var M,e,i=8*h-r-1,p=(1<<i)-1,f=p>>1,n=-7,w=o?h-1:0,s=o?-1:1,u=a[t+w];for(w+=s,M=u&(1<<-n)-1,u>>=-n,n+=i;n>0;M=256*M+a[t+w],w+=s,n-=8);for(e=M&(1<<-n)-1,M>>=-n,n+=r;n>0;e=256*e+a[t+w],w+=s,n-=8);if(0===M)M=1-f;else{if(M===p)return e?NaN:1/0*(u?-1:1);e+=Math.pow(2,r),M-=f}return(u?-1:1)*e*Math.pow(2,M-r)},a.write=function(a,t,o,r,h,M){var e,i,p,f=8*M-h-1,n=(1<<f)-1,w=n>>1,s=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,u=r?0:M-1,N=r?1:-1,_=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,e=n):(e=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-e))<1&&(e--,p*=2),(t+=e+w>=1?s/p:s*Math.pow(2,1-w))*p>=2&&(e++,p/=2),e+w>=n?(i=0,e=n):e+w>=1?(i=(t*p-1)*Math.pow(2,h),e+=w):(i=t*Math.pow(2,w-1)*Math.pow(2,h),e=0));h>=8;a[o+u]=255&i,u+=N,i/=256,h-=8);for(e=e<<h|i,f+=h;f>0;a[o+u]=255&e,u+=N,e/=256,f-=8);a[o+u-N]|=128*_}),a}export{o as __require};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import{__read as e,__assign as t,__awaiter as a,__generator as r}from"../../node_modules/tslib/tslib.es6.js";import n,{useEffect as i}from"react";import{useRouter as l}from"next/router";import m from"@mui/material/Container";import o from"@mui/material/Paper";import s from"@mui/material/TextField";import u from"@mui/material/Typography";import c from"@mui/material/Stack";import d from"@mui/material/Button";import g from"validator/lib/isEmail";import{setOpacity as p}from"../lib/utils.js";import{useTheme as v}from"@mui/material/styles";function b(b){var f=this,h=b.data,E=h.title,j=void 0===E?"Write us":E,x=h.subtitle,y=void 0===x?"We're open for any suggestion or just to have a chat":x,S=h.successHeading,C=void 0===S?"Thank you!":S,T=h.successText,k=void 0===T?"Your e-mail has been successfully sent!":T,w=h.errorHeading,q=h.errorText,B=void 0===q?"I am sorry, something went wrong, you could email me directly on info@jellepaulus.nl":q,W=h.maxWidth,N=h.sx,O=void 0===N?{}:N,F=h.glass,H=void 0!==F&&F,I=l().query.subject,M=e(n.useState({name:"",email:"",subject:I?String(I):"",message:""}),2),P=M[0],D=M[1];i((function(){I&&D((function(e){return t(t({},e),{subject:String(I)})}))}),[I]);var J=e(n.useState({}),2),R=J[0],Y=J[1],_=e(n.useState("Send"),2);_[0],_[1];var z=e(n.useState(!1),2),A=z[0],G=z[1],K=e(n.useState(!1),2),L=K[0],Q=K[1],U=function(e){var a,r=e.target,n=r.name,i=r.value;D(t(t({},P),((a={})[n]=i,a)))},V=function(e){var a=e.target.name,r=Z(P);r[a]?Y((function(e){var n;return t(t({},e),((n={})[a]=r[a],n))})):Y((function(e){var r=t({},e);return delete r[a],r}))},X=function(){D({name:"",email:"",subject:"",message:""})},Z=function(e){var t={};return e.name||(t.name="Name is required"),e.email?g(e.email)||(t.email="Invalid email address"):t.email="Email is required",e.subject||(t.subject="Subject is required"),e.message||(t.message="Message is required"),t},$=v();return n.createElement(m,{maxWidth:W||"lg",sx:t({my:1},O)},n.createElement(c,{spacing:2,sx:{width:"100%"}},n.createElement(u,{variant:"h6",align:"center"},j),n.createElement(u,{variant:"body1",align:"center",sx:{pb:3}},y),A&&n.createElement(o,{sx:{p:2}},n.createElement(c,{spacing:2},n.createElement(u,{variant:"h6"},C),n.createElement(u,null,k))),L&&n.createElement(o,{sx:{p:2}},n.createElement(c,{spacing:2},w&&n.createElement(u,{variant:"h6"},w),n.createElement(u,null,B),n.createElement(d,{variant:"contained"},"try again")))),!A&&!L&&n.createElement(o,{sx:{p:2,backdropFilter:"blur(3px)",backgroundColor:p($.palette.background.paper,H?.1:1),border:H?"1px solid rgba(255, 255, 255, 0.15)":"none"}},n.createElement(c,{spacing:2},n.createElement(s,{id:"name",name:"name",label:"Name",value:P.name,variant:"outlined",onBlur:V,onChange:U,error:!!R.name,helperText:R.name}),n.createElement(s,{id:"email",name:"email",label:"Email",value:P.email,variant:"outlined",onBlur:V,onChange:U,error:!!R.email,helperText:R.email}),n.createElement(s,{id:"subject",name:"subject",label:"Subject",value:P.subject,variant:"outlined",onBlur:V,onChange:U,error:!!R.subject,helperText:R.subject}),n.createElement(s,{id:"message",name:"message",label:"Message",value:P.message,variant:"outlined",multiline:!0,minRows:5,onBlur:V,onChange:U,error:!!R.message,helperText:R.message}),n.createElement(c,{direction:"row",spacing:2,justifyContent:"end"},n.createElement(d,{variant:"outlined",color:"primary",onClick:X},"Clear"),n.createElement(d,{variant:"contained",onClick:function(e){return a(f,void 0,void 0,(function(){var t;return r(this,(function(a){switch(a.label){case 0:return e.preventDefault(),t=Z(P),0!==Object.keys(t).length?[3,2]:[4,fetch("/api/sendgrid",{body:JSON.stringify({email:P.email,fullname:P.name,subject:P.subject,message:P.message}),headers:{"Content-Type":"application/json"},method:"POST"})];case 1:return a.sent().ok?(G(!0),Q(!1),X()):(G(!1),Q(!0)),[3,3];case 2:Y(t),a.label=3;case 3:return[2]}}))}))}},"Send")))))}export{b as ContactForm};
7
+ import{__read as e,__assign as t,__awaiter as a,__generator as r}from"../../node_modules/tslib/tslib.es6.js";import n,{useEffect as i}from"react";import l from"@mui/material/Container";import m from"@mui/material/Paper";import o from"@mui/material/TextField";import s from"@mui/material/Typography";import u from"@mui/material/Stack";import c from"@mui/material/Button";import d from"validator/lib/isEmail";import{setOpacity as g}from"../lib/utils.js";import{useTheme as p}from"@mui/material/styles";import{useSearchParams as v}from"next/navigation";function b(b){var f=this,h=b.data,E=h.title,j=void 0===E?"Write us":E,x=h.subtitle,y=void 0===x?"We're open for any suggestion or just to have a chat":x,S=h.successHeading,C=void 0===S?"Thank you!":S,T=h.successText,k=void 0===T?"Your e-mail has been successfully sent!":T,w=h.errorHeading,B=h.errorText,q=void 0===B?"I am sorry, something went wrong, you could email me directly on info@jellepaulus.nl":B,W=h.maxWidth,N=h.sx,O=void 0===N?{}:N,F=h.glass,H=void 0!==F&&F,I=v().get("subject"),M=e(n.useState({name:"",email:"",subject:I?String(I):"",message:""}),2),P=M[0],D=M[1];i((function(){I&&D((function(e){return t(t({},e),{subject:String(I)})}))}),[I]);var J=e(n.useState({}),2),R=J[0],Y=J[1],_=e(n.useState("Send"),2);_[0],_[1];var z=e(n.useState(!1),2),A=z[0],G=z[1],K=e(n.useState(!1),2),L=K[0],Q=K[1],U=function(e){var a,r=e.target,n=r.name,i=r.value;D(t(t({},P),((a={})[n]=i,a)))},V=function(e){var a=e.target.name,r=Z(P);r[a]?Y((function(e){var n;return t(t({},e),((n={})[a]=r[a],n))})):Y((function(e){var r=t({},e);return delete r[a],r}))},X=function(){D({name:"",email:"",subject:"",message:""})},Z=function(e){var t={};return e.name||(t.name="Name is required"),e.email?d(e.email)||(t.email="Invalid email address"):t.email="Email is required",e.subject||(t.subject="Subject is required"),e.message||(t.message="Message is required"),t},$=p();return n.createElement(l,{maxWidth:W||"lg",sx:t({my:1},O)},n.createElement(u,{spacing:2,sx:{width:"100%"}},n.createElement(s,{variant:"h6",align:"center"},j),n.createElement(s,{variant:"body1",align:"center",sx:{pb:3}},y),A&&n.createElement(m,{sx:{p:2}},n.createElement(u,{spacing:2},n.createElement(s,{variant:"h6"},C),n.createElement(s,null,k))),L&&n.createElement(m,{sx:{p:2}},n.createElement(u,{spacing:2},w&&n.createElement(s,{variant:"h6"},w),n.createElement(s,null,q),n.createElement(c,{variant:"contained"},"try again")))),!A&&!L&&n.createElement(m,{sx:{p:2,backdropFilter:"blur(3px)",backgroundColor:g($.palette.background.paper,H?.1:1),border:H?"1px solid rgba(255, 255, 255, 0.15)":"none"}},n.createElement(u,{spacing:2},n.createElement(o,{id:"name",name:"name",label:"Name",value:P.name,variant:"outlined",onBlur:V,onChange:U,error:!!R.name,helperText:R.name}),n.createElement(o,{id:"email",name:"email",label:"Email",value:P.email,variant:"outlined",onBlur:V,onChange:U,error:!!R.email,helperText:R.email}),n.createElement(o,{id:"subject",name:"subject",label:"Subject",value:P.subject,variant:"outlined",onBlur:V,onChange:U,error:!!R.subject,helperText:R.subject}),n.createElement(o,{id:"message",name:"message",label:"Message",value:P.message,variant:"outlined",multiline:!0,minRows:5,onBlur:V,onChange:U,error:!!R.message,helperText:R.message}),n.createElement(u,{direction:"row",spacing:2,justifyContent:"end"},n.createElement(c,{variant:"outlined",color:"primary",onClick:X},"Clear"),n.createElement(c,{variant:"contained",onClick:function(e){return a(f,void 0,void 0,(function(){var t;return r(this,(function(a){switch(a.label){case 0:return e.preventDefault(),t=Z(P),0!==Object.keys(t).length?[3,2]:[4,fetch("/api/sendgrid",{body:JSON.stringify({email:P.email,fullname:P.name,subject:P.subject,message:P.message}),headers:{"Content-Type":"application/json"},method:"POST"})];case 1:return a.sent().ok?(G(!0),Q(!1),X()):(G(!1),Q(!0)),[3,3];case 2:Y(t),a.label=3;case 3:return[2]}}))}))}},"Send")))))}export{b as ContactForm};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import t from"react";import{useRouter as e,usePathname as a,useSearchParams as r}from"next/navigation";import o from"@mui/material/Pagination";import n from"@mui/material/Box";import{useTheme as i}from"@mui/material/styles";function m(m){var l=m.pageCount,p=e(),c=i(),u=a(),s=r(),g=null!==s?Number(s.get("page")):1;return t.createElement(n,{sx:[{background:c.palette.primary.main,color:c.palette.primary.contrastText,p:2,textAlign:"center",borderRadius:2,mt:2,"&MuiButtonBase-root":{color:c.palette.primary.contrastText}},Boolean(1==l)&&{visibility:"hidden"}]},t.createElement(o,{count:l,page:g,onChange:function(t,e){var a,r,o=(a=e,(r=new URLSearchParams(null!=s?s:"")).set("page",a.toString()),"".concat(u,"?").concat(r.toString()));p.push(o)},disabled:Boolean(1===l)}))}export{m as default};
7
+ import t from"react";import{useRouter as e,usePathname as a,useSearchParams as r}from"next/navigation";import o from"@mui/material/Pagination";import n from"@mui/material/Box";import{useTheme as i}from"@mui/material/styles";function m(m){var l=m.pageCount,p=e(),c=i(),u=a(),s=r(),g=null!==s?Number(s.get("page")):1;return t.createElement(n,{sx:[{background:c.palette.primary.main,color:c.palette.primary.contrastText,p:2,textAlign:"center",borderRadius:2,mt:2,"& .MuiButtonBase-root":{color:c.palette.primary.contrastText}},Boolean(1==l)&&{visibility:"hidden"}]},t.createElement(o,{count:l,page:g,onChange:function(t,e){var a,r,o=(a=e,(r=new URLSearchParams(null!=s?s:"")).set("page",a.toString()),"".concat(u,"?").concat(r.toString()));p.push(o)},disabled:Boolean(1===l)}))}export{m as default};
@@ -4,4 +4,4 @@
4
4
  * @copyright Jelle Paulus
5
5
  * @license MIT
6
6
  */
7
- import t from"react";import e from"@mui/material/Button";import a from"@mui/material/Stack";import o from"next/link";import{useCart as r}from"../../../context/e-commerce/cart/CartContext.js";var n=function(n){var c=n.product,i=r().dispatch;if(0===c.stock){var m="quotation request for ".concat(c.product_number," - ").concat(c.title),l="/contact?subject=".concat(encodeURIComponent(m));return t.createElement(a,{direction:"row",spacing:2},t.createElement(o,{href:l,passHref:!0},t.createElement(e,{size:"small",variant:"contained"},"Request a Quotation")),t.createElement(e,{size:"small",variant:"contained",disabled:!0},"Out of Stock"))}return t.createElement(e,{size:"small",variant:"contained",onClick:function(){i({type:"ADD_ITEM",payload:c})}},"Add to Card")};export{n as default};
7
+ import t from"react";import e from"@mui/material/Button";import r from"@mui/material/Stack";import o from"next/link";import{useCart as a}from"../../../context/e-commerce/cart/CartContext.js";import{useTheme as n}from"@mui/material/styles";import{Typography as i}from"@mui/material";var c=function(c){var m=c.product,l=a().dispatch;if(n(),m.stock<=0){var u="quotation request for ".concat(m.product_number," - ").concat(m.title),s="/contact?subject=".concat(encodeURIComponent(u));return t.createElement(r,{direction:"column",spacing:1},t.createElement(i,{variant:"body2",color:"error",align:"right"},"Out of stock"),t.createElement(o,{href:s,passHref:!0},t.createElement(e,{size:"small",variant:"contained",color:"warning"},"Request a Quotation")))}return t.createElement(e,{size:"small",variant:"contained",onClick:function(){l({type:"ADD_ITEM",payload:m})}},"Add to Card")};export{c as default};
@@ -3,4 +3,4 @@
3
3
  * @copyright Jelle Paulus
4
4
  * @license MIT
5
5
  */
6
- import{__spreadArray as t,__read as e}from"../../../../node_modules/tslib/tslib.es6.js";import r from"react";import i from"@mui/material/Box";import a from"@mui/material/Card";import o from"@mui/material/CardActions";import m from"@mui/material/CardContent";import l from"@mui/material/CardMedia";import n from"@mui/material/Button";import c from"@mui/material/Typography";import u from"@mui/material/Stack";import p from"./Price.js";import{getStrapiMedia as s}from"../../../lib/utils.js";import{StyledLink as d}from"../../StyledLink.js";import f from"../cart/AddToCartButton.client.js";import v from"../../common/markdown/MarkdownDisplay.js";function _(_){var x,h,E=_.product,y=_.sx,b=void 0===y?[]:y,g=E.id,j=E.uuid,C=E.product_number,k=E.title,w=E.description,A=E.slug,B=E.price,M=E.image,T=E.stock,D=s(null==M?void 0:M.url),L=s(null===(h=null===(x=null==M?void 0:M.formats)||void 0===x?void 0:x.thumbnail)||void 0===h?void 0:h.url);return r.createElement(a,{sx:t([{width:"100%",height:"100%"},{display:"flex",flexDirection:"column"}],e(Array.isArray(b)?b:[b]),!1)},r.createElement(l,{component:"img",height:"140",src:"".concat(D),alt:M.alternativeText}),r.createElement(m,null,r.createElement(u,{direction:"row",justifyContent:"space-between",sx:{pb:2}},r.createElement(d,{href:"/shop/".concat(A),target:"_self"},r.createElement(c,{variant:"h5"},k)),r.createElement(p,{id:g,price:B.price,vat:B.vat,vat_rate:B.vat_rate,price_incl_vat:B.price_incl_vat})),w&&r.createElement(v,null,w.substring(0,150)+"...")),r.createElement(i,{sx:{flexGrow:1}}),r.createElement(o,{sx:{display:"flex",justifyContent:"flex-end"}},r.createElement(n,{size:"small",href:"/shop/".concat(A)},"Learn More"),r.createElement(f,{product:{id:g,uuid:j,slug:A,thumb:L,title:k,vat_rate:B.vat_rate,price_excl_vat:B.price,price_incl_vat:B.price_incl_vat,quantity:1,product_number:C,stock:T}})))}export{_ as default};
6
+ import{__spreadArray as t,__read as e}from"../../../../node_modules/tslib/tslib.es6.js";import r from"react";import i from"@mui/material/Box";import a from"@mui/material/Card";import o from"@mui/material/CardActions";import m from"@mui/material/CardContent";import l from"@mui/material/CardMedia";import n from"@mui/material/Button";import c from"@mui/material/Typography";import u from"@mui/material/Stack";import p from"./Price.js";import{getStrapiMedia as s}from"../../../lib/utils.js";import{StyledLink as d}from"../../StyledLink.js";import f from"../cart/AddToCartButton.client.js";import v from"../../common/markdown/MarkdownDisplay.js";function _(_){var x,h,E=_.product,y=_.sx,b=void 0===y?[]:y,g=E.id,j=E.uuid,C=E.product_number,k=E.title,w=E.description,A=E.slug,B=E.price,M=E.image,T=E.stock,D=s(null==M?void 0:M.url),L=s(null===(h=null===(x=null==M?void 0:M.formats)||void 0===x?void 0:x.thumbnail)||void 0===h?void 0:h.url);return r.createElement(a,{sx:t([{width:"100%",height:"100%"},{display:"flex",flexDirection:"column"}],e(Array.isArray(b)?b:[b]),!1)},r.createElement(l,{component:"img",height:"140",src:"".concat(D),alt:M.alternativeText}),r.createElement(m,null,r.createElement(u,{direction:"row",justifyContent:"space-between",sx:{pb:2}},r.createElement(d,{href:"/shop/".concat(A),target:"_self"},r.createElement(c,{variant:"h5"},k)),r.createElement(p,{id:g,price:B.price,vat:B.vat,vat_rate:B.vat_rate,price_incl_vat:B.price_incl_vat})),w&&r.createElement(v,null,w.substring(0,150)+"...")),r.createElement(i,{sx:{flexGrow:1}}),r.createElement(o,{sx:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"}},r.createElement(n,{size:"small",href:"/shop/".concat(A)},"Learn More"),r.createElement(f,{product:{id:g,uuid:j,slug:A,thumb:L,title:k,vat_rate:B.vat_rate,price_excl_vat:B.price,price_incl_vat:B.price_incl_vat,quantity:1,product_number:C,stock:T}})))}export{_ as default};