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
14 KiB
JavaScript

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6276],{90637:function(n,t,e){var i=e(7297),a=e(85893),r=(e(67294),e(45697)),o=e.n(r),c=e(41664),l=e.n(c),s=e(87379),u=e(11163),d=e(36434),m=e(40039),g=e(52077),p=e(8293),h=e(12076),f=e(42097),x=e(29059);function v(){var n=(0,i.Z)(["\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n"]);return v=function(){return n},n}function j(){var n=(0,i.Z)(["\n position: absolute;\n bottom: 1em;\n right: 1em;\n width: 1em;\n"]);return j=function(){return n},n}function w(){var n=(0,i.Z)(["\n margin-top: 0;\n"]);return w=function(){return n},n}function y(){var n=(0,i.Z)(["\n padding-top: 0.5em;\n display: flex;\n width: 100%;\n font-size: 0.9em;\n justify-content: space-between;\n align-items: flex-end;\n @media screen and (max-width: 32em) {\n flex-direction: column;\n margin-top: 1em;\n align-items: flex-start;\n }\n"]);return y=function(){return n},n}function b(){var n=(0,i.Z)(["\n display: flex;\n @media screen and (max-width: 32em) {\n flex-direction: column;\n align-items: center;\n }\n"]);return b=function(){return n},n}function k(){var n=(0,i.Z)(["\n font-size: 0.8em;\n color: #999;\n @media screen and (max-width: 32em) {\n margin-top: 1em;\n }\n"]);return k=function(){return n},n}var Z=s.default.div.withConfig({componentId:"sc-1c4d51a8-0"})(v()),T=s.default.span.withConfig({componentId:"sc-1c4d51a8-1"})(j()),C=s.default.h3.withConfig({componentId:"sc-1c4d51a8-2"})(w()),I=s.default.aside.withConfig({componentId:"sc-1c4d51a8-3"})(y()),_=(0,s.default)(p.HC).withConfig({componentId:"sc-1c4d51a8-4"})(b()),A=s.default.div.withConfig({componentId:"sc-1c4d51a8-5"})(k());function z(n){var t,e,i,r,o=n.item,c=n.tags,s=n.categories,v=n.large,j=void 0!==v&&v,w=n.withThumbnails,y=void 0===w||w,b=n.withIcon,k=void 0!==b&&b,z=(0,u.useRouter)().locale,E=(0,d.Hl)(o.title||o.name||""),L=(null===(t=o.categories_chain)||void 0===t?void 0:t[0])||(null===(e=o.categories)||void 0===e?void 0:e.length)>0&&s&&(0,d.NJ)(s,o.categories[0]).reverse()||[],P=j&&(null===(i=o.content)||void 0===i?void 0:i.replace(/<[^>]+>/g,"").substring(0,300)),M=P&&"".concat(P.split(" ").splice(0,30).join(" ")," ...");return c?(0,a.jsxs)(_,{icon:(0,a.jsx)(p.Eh,{}),iconLinkTo:(0,d.Y4)({language:z,item:o}),children:[y&&(null===(r=o.media)||void 0===r?void 0:r.image)&&(0,a.jsx)(l(),{href:(0,d.Y4)({language:z,item:o}),children:(0,a.jsx)("a",{style:{display:"block"},children:(0,a.jsx)(f.Z,{image:o.media.image,size:"thumbnail",alt:E,inList:!0,styInfini:!0,style:{maxWidth:j?"200px":"100px",marginRight:"1em"}})})}),(0,a.jsxs)(Z,{children:[(0,a.jsx)(l(),{href:(0,d.Y4)({language:z,item:o}),children:(0,a.jsx)("a",{style:{display:"block"},children:j?(0,a.jsxs)(C,{children:[E," ",(0,a.jsx)(x.Z,{language:z,status:o.translation_status})]}):(0,a.jsxs)(a.Fragment,{children:[E," ",(0,a.jsx)(x.Z,{language:z,status:o.translation_status})]})})}),M&&(0,a.jsx)("p",{style:{marginBottom:"auto",marginTop:0},dangerouslySetInnerHTML:{__html:M}}),(0,a.jsxs)(I,{children:[(0,a.jsxs)("div",{children:[L.length?L.map((function(n,t){return(0,a.jsxs)("span",{style:{color:"#999"},children:[0!==t&&" > ",n.title]},n.id)})):null,o.tags&&(0,a.jsx)(g.nf,{children:o.tags.map((function(n){return(0,a.jsx)(g.ZP,{tag:c[n]},n)}))})]}),"helps"===o.type&&j&&(0,a.jsx)(A,{children:o.comments>0?(0,a.jsx)(l(),{href:"".concat((0,d.Y4)({language:z,item:o}),"#comment-section"),children:(0,a.jsxs)("a",{children:[(0,a.jsx)(m.qt,{width:15})," ",o.comments]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.qt,{width:15})," ",o.comments]})})]}),k&&(0,a.jsx)(T,{children:(0,a.jsx)(h.w,{type:o.type})})]})]},o.id):null}z.propTypes={item:o().object,tags:o().object,categories:o().array,withIcon:o().bool,withThumbnails:o().bool,large:o().bool},t.Z=z},42097:function(n,t,e){var i=e(26042),a=e(69396),r=e(99534),o=e(85893),c=(e(67294),e(45697)),l=e.n(c),s=e(8293),u=function(n){var t=n.image,e=(0,r.Z)(n,["image"]);return t?t.video?(0,o.jsxs)("video",(0,a.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)(s.Ee,(0,i.Z)({image:t.image&&t.image.child||t.child},e)):(0,o.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){e.d(t,{Z:function(){return v}});var i=e(85893),a=e(67294),r=e(45697),o=e.n(r),c=e(9008),l=e.n(c),s=e(86492),u=e.n(s),d=e(11163),m=e(61590),g=e(78147),p={description:"".concat("app.components.SEOHeaders",".description")},h=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"),a=t.match(i);return t.length>e&&a&&a.length>1?"".concat(a[1],"\u2026"):t},f=function(n){var t=function(n){var t=n.replace(/<[^>]+>/g,"");return u().decode(t)}(n);return{base:h({text:t,maxLength:140}),og:h({text:t,maxLength:65})}};function x(n){var t,e=n.description,r=n.title,o=void 0===r?null:r,c=n.image,s=void 0===c?{original:"/img/Original_Prusa_3D_printers.png"}:c,u=n.keywords,x=n.translations,v=(0,d.useRouter)(),j=(0,m.aF)().t,w=(0,a.useState)(null),y=w[0],b=w[1],k=g.L0?g.L4:"",Z=(0,a.useMemo)((function(){return function(n){var t="".concat(n?"".concat(n," | "):"").concat("Prusa Knowledge Base");return{base:t,twitter:h({text:t,maxLength:55})}}(o)}),[o]),T=(0,a.useMemo)((function(){return f(e||j(p.description,{pageTitle:o}))}),[e]),C=(null===x||void 0===x||null===(t=x.en)||void 0===t?void 0:t.slug)?"".concat("https://help.prusa3d.com").concat(v.asPath.replace(/\/[^\/]+?$/,"/".concat(x.en.slug))):"".concat("https://help.prusa3d.com").concat(v.asPath);return(0,a.useEffect)((function(){if(null===s||void 0===s?void 0:s.original){var n=new Image;n.onload=function(){b({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,T.base?(0,i.jsx)("meta",{name:"description",content:T.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(v.asPath)}),Z.base?(0,i.jsx)("meta",{property:"og:title",content:Z.base}):null,(null===s||void 0===s?void 0:s.original)?(0,i.jsx)("meta",{property:"og:image",content:s.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,T.og?(0,i.jsx)("meta",{property:"og:description",content:T.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,T.base?(0,i.jsx)("meta",{name:"twitter:description",content:T.base}):null,Z.twitter?(0,i.jsx)("meta",{name:"twitter:image:alt",content:Z.twitter}):null,(null===s||void 0===s?void 0:s.original)?(0,i.jsx)("meta",{name:"twitter:image",content:s.original}):null,(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1"}),(0,i.jsx)("link",{rel:"preload",href:"".concat(k,"/visuals/fonts/AtlasGrotesk-Regular.ttf"),as:"font",crossOrigin:"anonymous"}),(0,i.jsx)("link",{rel:"preload",href:"".concat(k,"/visuals/fonts/AtlasGrotesk-RegularItalic.ttf"),as:"font",crossOrigin:"anonymous"}),(0,i.jsx)("link",{rel:"preload",href:"".concat(k,"/visuals/fonts/AtlasGrotesk-Medium.ttf"),as:"font",crossOrigin:"anonymous"}),(0,i.jsx)("link",{rel:"preload",href:"".concat(k,"/visuals/fonts/AtlasGrotesk-Black.ttf"),as:"font",crossOrigin:"anonymous"}),(0,i.jsx)("link",{rel:"alternate",href:C,hrefLang:"x-default"},"x-default"),v.locales.map((function(n){var t=null===x||void 0===x?void 0:x[n];if(!t&&"ja"===n)return null;if(t&&1!=(null===t||void 0===t?void 0:t.translated))return null;var e="en"===n?"":"/".concat(n),a=t?v.asPath.replace(/\/[^\/]+?$/,"/".concat(t.slug)):v.asPath;return(0,i.jsx)("link",{rel:"alternate",href:"".concat("https://help.prusa3d.com").concat(e).concat(a),hrefLang:n},"".concat(n,"-").concat(a))}))]})}x.propTypes={title:o().string,description:o().string,image:o().object,keywords:o().string};var v=x},52077:function(n,t,e){e.d(t,{Vp:function(){return f},nf:function(){return v}});var i=e(26042),a=e(69396),r=e(7297),o=e(85893),c=(e(67294),e(45697)),l=e.n(c),s=e(87379),u=e(41664),d=e.n(u),m=e(94586),g=e(36434);function p(){var n=(0,r.Z)(["\n color: #808080;\n border: 1px solid ",";\n border-radius: 2px;\n margin-right: 0.2em;\n margin-bottom: 0.2em;\n padding: 0.2em;\n font-size: 0.8em;\n word-break: keep-all;\n white-space: nowrap;\n transition: all 400ms;\n cursor: pointer;\n display: inline-block;\n &:hover {\n background-color: ",";\n color: white;\n border-color: ",";\n }\n ","\n"]);return p=function(){return n},n}function h(){var n=(0,r.Z)(["\n display: flex;\n flex-wrap: wrap;\n margin-top: 3px;\n width: 100%;\n line-height: 1.9rem;\n"]);return h=function(){return n},n}var f=s.default.span.withConfig({componentId:"sc-23758bd0-0"})(p(),(0,m.E)("lightGrey"),(0,m.E)("main"),(0,m.E)("main"),(function(n){var t=n.active,e=n.theme;return t?"\n background-color: ".concat(e.colors.main,";\n color: white !important;\n border-color: ").concat(e.colors.main," !important;\n "):"\n background-color: #f5f5f5;\n "}));function x(n){var t=n.tag;n.language;return t?(0,o.jsx)(d(),{href:(0,g.Y4)({item:(0,a.Z)((0,i.Z)({},t),{type:"tag"})}),children:(0,o.jsx)("a",{children:(0,o.jsx)(f,{children:t.name})})}):null}var v=s.default.div.withConfig({componentId:"sc-23758bd0-1"})(h());x.propTypes={tag:l().object.isRequired},t.ZP=x},29059:function(n,t,e){var i=e(85893),a=(e(67294),e(45697)),r=e.n(a),o={de:" (\xdcbersetzung in Arbeit)",es:" (Traducci\xf3n en desarrollo)",fr:" (Traduction en cours)",pl:" (T\u0142umaczenie w toku)",it:" (Traduzione in corso)",ja:" (\u9032\u884c\u4e2d\u306e\u7ffb\u8a33)",cs:" (P\u0159ekl\xe1d\xe1 se)"};function c(n){var t=n.status,e=n.language;return"en"===e||!t||0!==t.title&&0!==t.content?null:(0,i.jsx)("span",{style:{fontWeight:"normal",fontSize:"0.9em"},children:" ".concat(o[e])})}c.propTypes={status:r().object,language:r().string.isRequired},t.Z=c},40039:function(n,t,e){e.d(t,{qt:function(){return u},tE:function(){return s}});var i=e(26042),a=e(7297),r=e(85893),o=(e(67294),e(45697)),c=e.n(o);function l(){var n=(0,a.Z)(["\n display: inline-block;\n vertical-align: middle;\n width: 20px;\n margin: 0 0.2em;\n"]);return l=function(){return n},n}e(87379).default.img.withConfig({componentId:"sc-90805cf5-0"})(l());var s=function(n){var t=n.width,e=void 0===t?24:t;return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,fill:"currentColor",viewBox:"0 0 24 16",style:{verticalAlign:"middle",display:"inline-block",margin:"0 0.2em"},children:(0,r.jsx)("path",{className:"a",d:"M12,73.333A2.667,2.667,0,0,0,12,68c-.042,0-.078.01-.119.012a1.979,1.979,0,0,1-2.536,2.536c0,.042-.012.078-.012.119A2.667,2.667,0,0,0,12,73.333Zm11.855-1.942A13.364,13.364,0,0,0,12,64,13.366,13.366,0,0,0,.146,71.392a1.348,1.348,0,0,0,0,1.216A13.364,13.364,0,0,0,12,80a13.366,13.366,0,0,0,11.855-7.392,1.348,1.348,0,0,0,0-1.216ZM12,65.333a5.333,5.333,0,1,1-5.333,5.333A5.333,5.333,0,0,1,12,65.333Zm0,13.333A12.011,12.011,0,0,1,1.334,72a12.282,12.282,0,0,1,5.408-5.389,6.656,6.656,0,1,0,11.926,4.055,6.606,6.606,0,0,0-1.408-4.055A12.283,12.283,0,0,1,22.667,72,12.01,12.01,0,0,1,12,78.667Z",transform:"translate(0 -64)"})})};s.propTypes={width:c().number};var u=function(n){var t=n.width,e=void 0===t?20:t,a=n.style;return(0,r.jsx)("svg",{fill:"currentColor",width:e,viewBox:"0 0 511.626 511.627",style:(0,i.Z)({verticalAlign:"middle",display:"inline-block",margin:"0 0.2em"},a),children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M477.364,127.481c-22.839-28.072-53.864-50.248-93.072-66.522c-39.208-16.274-82.036-24.41-128.479-24.41 c-46.442,0-89.269,8.136-128.478,24.41c-39.209,16.274-70.233,38.446-93.074,66.522C11.419,155.555,0,186.15,0,219.269 c0,28.549,8.61,55.299,25.837,80.232c17.227,24.934,40.778,45.874,70.664,62.813c-2.096,7.611-4.57,14.842-7.426,21.7 c-2.855,6.851-5.424,12.467-7.708,16.847c-2.286,4.374-5.376,9.23-9.281,14.555c-3.899,5.332-6.849,9.093-8.848,11.283 c-1.997,2.19-5.28,5.801-9.851,10.848c-4.565,5.041-7.517,8.33-8.848,9.853c-0.193,0.097-0.953,0.948-2.285,2.574 c-1.331,1.615-1.999,2.419-1.999,2.419l-1.713,2.57c-0.953,1.42-1.381,2.327-1.287,2.703c0.096,0.384-0.094,1.335-0.57,2.854 c-0.477,1.526-0.428,2.669,0.142,3.429v0.287c0.762,3.234,2.283,5.853,4.567,7.851c2.284,1.992,4.858,2.991,7.71,2.991h1.429 c12.375-1.526,23.223-3.613,32.548-6.279c49.87-12.751,93.649-35.782,131.334-69.094c14.274,1.523,28.074,2.283,41.396,2.283 c46.442,0,89.271-8.135,128.479-24.414c39.208-16.276,70.233-38.444,93.072-66.517c22.843-28.072,34.263-58.67,34.263-91.789 C511.626,186.154,500.207,155.555,477.364,127.481z M445.244,292.075c-19.896,22.456-46.733,40.303-80.517,53.529 c-33.784,13.223-70.093,19.842-108.921,19.842c-11.609,0-23.98-0.76-37.113-2.286l-16.274-1.708l-12.277,10.852 c-23.408,20.558-49.582,36.829-78.513,48.821c8.754-15.414,15.416-31.785,19.986-49.102l7.708-27.412l-24.838-14.27 c-24.744-14.093-43.918-30.793-57.53-50.114c-13.61-19.315-20.412-39.638-20.412-60.954c0-26.077,9.945-50.343,29.834-72.803 c19.895-22.458,46.729-40.303,80.515-53.531c33.786-13.229,70.089-19.849,108.92-19.849c38.828,0,75.13,6.617,108.914,19.845 c33.783,13.229,60.62,31.073,80.517,53.531c19.89,22.46,29.834,46.727,29.834,72.802S465.133,269.615,445.244,292.075z"})})})};u.propTypes={width:c().number}}}]);
//# sourceMappingURL=6276-1121aacc5584144e.js.map