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

1 year ago
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[807],{10392:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/guide/[slug]",function(){return e(36956)}])},49637:function(n,t,e){"use strict";var i=e(7297),r=e(85893),o=(e(67294),e(45697)),a=e.n(o),c=e(87379),l=e(41664),s=e.n(l),u=e(25935),d=e(36434);function m(){var n=(0,i.Z)(["\n list-style: none;\n margin: 0;\n padding: 0;\n"]);return m=function(){return n},n}function p(){var n=(0,i.Z)(["\n font-size: 0.7rem;\n display: inline-block;\n margin-right: 0.5em;\n &:after {\n content: '/';\n margin-left: 0.5em;\n }\n &:last-child:after {\n display: none;\n }\n a {\n color: ",";\n text-decoration: underline;\n &:hover {\n text-decoration: none;\n }\n }\n"]);return p=function(){return n},n}var g=c.default.ul.withConfig({componentId:"sc-46c20db4-0"})(m()),f=c.default.li.withConfig({componentId:"sc-46c20db4-1"})(p(),(function(n){return n.inAdmin?n.theme.colors.main:"#f0f0f0"})),h=function(n){var t=n.items,e=void 0===t?[]:t,i=n.inAdmin,o=void 0!==i&&i,a=[{title:"Home",link:"/"}].concat(e);return(0,r.jsx)(g,{children:a.map((function(n){return(0,r.jsx)(f,{inAdmin:o,children:n.link?(0,r.jsx)(s(),{href:n.link,children:(0,r.jsx)("a",{children:(0,d.Hl)(n.title)})}):(0,u.ZP)("".concat(n.title))},n.title)}))})};h.propTypes={items:a().arrayOf(a().exact({title:a().string.isRequired,link:a().string}).isRequired).isRequired,inAdmin:a().bool},t.Z=h},42097:function(n,t,e){"use strict";var i=e(26042),r=e(69396),o=e(99534),a=e(85893),c=(e(67294),e(45697)),l=e.n(c),s=e(8293),u=function(n){var t=n.image,e=(0,o.Z)(n,["image"]);return t?t.video?(0,a.jsxs)("video",(0,r.Z)((0,i.Z)({style:{width:"100%",zIndex:5},controls:!0},e),{autoPlay:!0,loop:!0,children:[(0,a.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,a.jsx)(s.Ee,(0,i.Z)({image:t.image&&t.image.child||t.child},e)):(0,a.jsx)(s.Ee,(0,i.Z)({image:t.image||t},e)):null};u.propTypes={image:l().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),o=e(45697),a=e.n(o),c=e(9008),l=e.n(c),s=e(86492),u=e.n(s),d=e(11163),m=e(61590),p=e(78147),g={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,o=n.title,a=void 0===o?null:o,c=n.image,s=void 0===c?{original:"/img/Original_Prusa_3D_printers.png"}:c,u=n.keywords,v=n.translations,x=(0,d.useRouter)(),w=(0,m.aF)().t,j=(0,r.useState)(null),b=j[0],y=j[1],k=p.L0?p.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})}}(a)}),[a]),A=(0,r.useMemo)((function(){return h(e||w(g.description,{pageTitle:a}))}),[e]),_=(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===s||void 0===s?void 0:s.original){var n=new Image;n.onload=function(){y({w:n.width,h:n.height})},n.src=s.original}}),[s.original]),(0,i.jsxs)(l(),{children:[(0,i.jsx)("title",{children:Z.base}),Z.base?(0,i.jsx)("meta",{name:"subject",content:Z.base}):null,A.base?(0,i.jsx)("meta",{name:"description",content:A.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===s||void 0=
//# sourceMappingURL=[slug]-c192f4796f062f69.js.map