You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
1 year ago
|
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5986],{76027:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tag/[...slug]",function(){return e(5435)}])},39915:function(n,t,e){"use strict";e.d(t,{Z:function(){return f}});var i=e(7297),r=e(85893),a=(e(67294),e(87379)),o=e(45697),c=e.n(o),s=e(26349),l=e(11163),u={edit:"".concat("app.components.EditButton",".edit")},d=e(32143);function m(){var n=(0,i.Z)(["\n position: absolute;\n right: 5px;\n top: 5px;\n @media print {\n display: none;\n }\n"]);return m=function(){return n},n}var g=(0,a.default)(d.I4).withConfig({componentId:"sc-c841ec7-0"})(m()),p=function(n){var t=n.url;return"en"!==(0,l.useRouter)().locale?null:(0,r.jsx)(g,{href:t,children:(0,r.jsx)(s.Z,{index:u.edit})})};p.propTypes={url:c().string.isRequired};var f=p},42097:function(n,t,e){"use strict";var i=e(26042),r=e(69396),a=e(99534),o=e(85893),c=(e(67294),e(45697)),s=e.n(c),l=e(8293),u=function(n){var t=n.image,e=(0,a.Z)(n,["image"]);return t?t.video?(0,o.jsxs)("video",(0,r.Z)((0,i.Z)({style:{width:"100%",zIndex:5},controls:!0},e),{autoPlay:!0,loop:!0,children:[(0,o.jsx)("source",{src:t.video.original,type:t.video.mime_type}),"Your browser does not support HTML5 video."]})):t.image&&t.image.child||t.child?(0,o.jsx)(l.Ee,(0,i.Z)({image:t.image&&t.image.child||t.child},e)):(0,o.jsx)(l.Ee,(0,i.Z)({image:t.image||t},e)):null};u.propTypes={image:s().object.isRequired},t.Z=u},50205:function(n,t,e){"use strict";e.d(t,{Z:function(){return x}});var i=e(85893),r=e(67294),a=e(45697),o=e.n(a),c=e(9008),s=e.n(c),l=e(86492),u=e.n(l),d=e(11163),m=e(61590),g=e(78147),p={description:"".concat("app.components.SEOHeaders",".description")},f=function(n){var t=n.text,e=n.maxLength;if("string"!==typeof t)return null;var i=new RegExp("^(.{0,".concat(e-1,"}[a-z])[\\W]+"),"i"),r=t.match(i);return t.length>e&&r&&r.length>1?"".concat(r[1],"\u2026"):t},h=function(n){var t=function(n){var t=n.replace(/<[^>]+>/g,"");return u().decode(t)}(n);return{base:f({text:t,maxLength:140}),og:f({text:t,maxLength:65})}};function v(n){var t,e=n.description,a=n.title,o=void 0===a?null:a,c=n.image,l=void 0===c?{original:"/img/Original_Prusa_3D_printers.png"}:c,u=n.keywords,v=n.translations,x=(0,d.useRouter)(),j=(0,m.aF)().t,w=(0,r.useState)(null),y=w[0],b=w[1],k=g.L0?g.L4:"",Z=(0,r.useMemo)((function(){return function(n){var t="".concat(n?"".concat(n," | "):"").concat("Prusa Knowledge Base");return{base:t,twitter:f({text:t,maxLength:55})}}(o)}),[o]),_=(0,r.useMemo)((function(){return h(e||j(p.description,{pageTitle:o}))}),[e]),T=(null===v||void 0===v||null===(t=v.en)||void 0===t?void 0:t.slug)?"".concat("https://help.prusa3d.com").concat(x.asPath.replace(/\/[^\/]+?$/,"/".concat(v.en.slug))):"".concat("https://help.prusa3d.com").concat(x.asPath);return(0,r.useEffect)((function(){if(null===l||void 0===l?void 0:l.original){var n=new Image;n.onload=function(){b({w:n.width,h:n.height})},n.src=l.original}}),[l.original]),(0,i.jsxs)(s(),{children:[(0,i.jsx)("title",{children:Z.base}),Z.base?(0,i.jsx)("meta",{name:"subject",content:Z.base}):null,_.base?(0,i.jsx)("meta",{name:"description",content:_.base}):null,u?(0,i.jsx)("meta",{name:"keywords",content:u}):null,(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:url",content:"".concat("https://help.prusa3d.com").concat(x.asPath)}),Z.base?(0,i.jsx)("meta",{property:"og:title",content:Z.base}):null,(null===l||void 0===l?void 0:l.original)?(0,i.jsx)("meta",{property:"og:image",content:l.original}):null,y?(0,i.jsx)("meta",{property:"og:image:width",content:y.w}):null,y?(0,i.jsx)("meta",{property:"og:image:height",content:y.h}):null,_.og?(0,i.jsx)("meta",{property:"og:description",content:_.og}):null,(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:site",content:"@Prusa3D"}),Z.twitter?(0,i.jsx)("meta",{name:"twitter:title",content:Z.twitter}):null,_.base?(0,i.jsx)("meta",{name:"twitter:description",content:_.base}):null,Z.twitter?(0,i.jsx)("meta",{name:"twitter:image:alt",content:Z.twitter}):null,(nu
|
||
|
//# sourceMappingURL=[...slug]-1f3bd7bf132f8245.js.map
|