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

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5435],{5435:function(n,e,t){t.r(e),t.d(e,{TagPage:function(){return Tn},__N_SSP:function(){return Bn},default:function(){return Rn}});var r=t(26042),i=t(69396),a=t(828),o=t(85893),s=t(67294),l=t(45697),c=t.n(l),u=t(41664),d=t.n(u),m=t(11163),p=t(96486),h="app.containers.TagPage",g={guides:"".concat(h,".guides"),serviceManuals:"".concat(h,".serviceManuals"),articles:"".concat(h,".articles"),nothingFound:"".concat(h,".nothingFound"),related:"".concat(h,".related"),categories:"".concat(h,".categories"),downloads:"".concat(h,".downloads"),howTo:"".concat(h,".howTo"),supportText:"".concat(h,".supportText"),supportTextBold:"".concat(h,".supportTextBold"),supportTextChat:"".concat(h,".supportTextChat"),pageMetaDescription:"".concat(h,".pageMetaDescription")},f=t(59220),w=t(98485),x=t(76957),v=t(26349),b=t(41347),j=t(7297),y=t(87379),k=t(36434),Z=t(94586),I=t(42097),C=t(78147);function S(){var n=(0,j.Z)(["\n display: grid;\n grid-template-columns: 1fr 1fr 1fr 1fr;\n gap: 1rem;\n @media screen and (max-width: 48em) {\n grid-template-columns: 1fr 1fr;\n }\n @media screen and (max-width: 32em) {\n grid-template-columns: 1fr;\n }\n"]);return S=function(){return n},n}function L(){var n=(0,j.Z)(["\n border: 1px solid ",";\n display: flex;\n flex-direction: column;\n height: 100%;\n flex-grow: 1;\n h4 {\n padding: 0.5rem;\n margin: 0;\n color: #333;\n }\n"]);return L=function(){return n},n}function _(){var n=(0,j.Z)(["\n flex-grow: 1\n"]);return _=function(){return n},n}function E(){var n=(0,j.Z)(["\n font-size: 0.6rem;\n padding: 0 0.5rem 0.2rem;\n"]);return E=function(){return n},n}var P=y.default.div.withConfig({componentId:"sc-2e8142d1-0"})(S()),F=y.default.article.withConfig({componentId:"sc-2e8142d1-1"})(L(),(0,Z.E)("lightGrey")),M=y.default.div.withConfig({componentId:"sc-2e8142d1-2"})(_()),B=y.default.small.withConfig({componentId:"sc-2e8142d1-3"})(E());var T,R=function(n){var e=n.items,t=void 0===e?[]:e,r=n.language,i=n.categories;return n.tagSlug,n.page,n.setLoading,(0,p.isEmpty)(t)?null:(0,o.jsx)(P,{children:t.map((function(n){var e,t,a;if((0,p.isEmpty)(n))return null;var s,l=(null===(e=n.categories_chain)||void 0===e?void 0:e[0])||(null===(t=n.categories)||void 0===t?void 0:t.length)>0&&i&&(0,k.NJ)(i,n.categories[0]).reverse()||[];return(0,o.jsx)(d(),{href:(0,k.Y4)({language:r,item:n}),children:(0,o.jsx)("a",{style:{display:"block"},children:(0,o.jsxs)(F,{children:[(0,o.jsx)(M,{children:(0,o.jsx)(I.Z,{image:null!==(s=null===n||void 0===n||null===(a=n.media)||void 0===a?void 0:a.image)&&void 0!==s?s:C.B$,size:"thumbnail",alt:n.title})}),(0,o.jsx)("h4",{children:n.title}),(0,o.jsx)(B,{children:l.length?l.map((function(n,e){return(0,o.jsxs)("span",{style:{color:"#999"},children:[0!==e&&" > ",n.title]},n.id)})):null})]},n.id)})},n.id)}))})},A=t(46907),z=t(8293),q=t(74886),V=t(49637),D=t(39915),N=t(87802),O=t(94543),G=t(20581),U=t(58591),H=t(50205),K=t(14924),W="app.components.DownloadItem",$="app.components.DownloadsItem",J=(T={updated:"".concat(W,".updated"),moreInfo:"".concat(W,".moreInfo"),olderVersions:"".concat(W,".olderVersions"),changesIn:"".concat($,".changesIn"),download:"".concat($,".download"),downloadFor:"".concat($,".downloadFor"),driver:"".concat($,".driver"),firmware:"".concat($,".firmware"),handbook:"".concat($,".handbook")},(0,K.Z)(T,"olderVersions","".concat($,".olderVersions")),(0,K.Z)(T,"releaseLog","".concat($,".releaseLog")),T),X=t(67814),Q=t(65950),Y="app.component.ExternalNav",nn={community:"".concat(Y,".community"),printableParts:"".concat(Y,".printableParts"),spareParts:"".concat(Y,".spareParts"),collection:"".concat(Y,".collection"),viewer:"".concat(Y,".viewer"),viewerMmuOlder:"".concat(Y,".viewer.mmu2.older"),viewerMmuNewer:"".concat(Y,".viewer.mmu2.newer")},en=t(238),tn=t(61590),rn=t(65735);function an(){var n=(0,j.Z)(["\n display: flex;\n @media screen and (max-width: 32em) {\n flex-direction: column;\n }\n"]);return an=function(){return n},n}function on(){var n=(0,j.Z)(["\n border: 1px solid ",";\n margin-left: 0.5rem;\n margin-right: 0.5rem;\n flex: 1;\n\n &:first-child {\n margin-left: 0;\n }\n\n &:last-child {\n margin-right: 0;\n }\n\n text-align: left;\n transition: border-color 250ms;\n\n &:hover {\n border-color: ",";\n }\n\n @media screen and (max-width: 32em) {\n margin: 0.5rem 0;\n }\n"]);return on=function(){return n},n}function sn(){var n=(0,j.Z)(["\n justify-content: flex-start;\n"]);return sn=function(){return n},n}function ln(){var n=(0,j.Z)(["\n background: #f5f5f5;\n padding: 0.7rem;\n margin-right: 0.4rem;\n flex-grow: 0;\n\n svg {\n width: 3rem;\n height: 3rem;\n }\n"]);return ln=function(){return n},n}var cn=y.default.div.withConfig({componentId:"sc-e91b52b0-0"})(an()),un=y.default.div.withConfig({componentId:"sc-e91b52b0-1"})(on(),(0,Z.E)("lightGrey"),(0,Z.E)("main")),dn=(0,y.default)(en.Fg).withConfig({componentId:"sc-e91b52b0-2"})(sn()),mn=y.default.div.withConfig({componentId:"sc-e91b52b0-3"})(ln()),pn={1149:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk3s-mk3/",printable:"https://www.printables.com/prints/57217-original-prusa-i3-mk3s-printable-parts",spare:"https://www.prusa3d.com/category/mk3-mk3s-mk3s/",viewer:["https://autode.sk/3EgDif1"]},1150:{community:"https://forum.prusa3d.com/forum/original-prusa-mini/",printable:"https://www.printables.com/prints/57214-original-prusa-mini-printable-parts",spare:"https://www.prusa3d.com/category/mini-mini/",viewer:["https://autode.sk/3KOnBQI"]},241:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mmu2s-mmu2/",printable:"https://www.printables.com/prints/57219-original-prusa-mmu2s-printable-parts",spare:"https://www.prusa3d.com/category/mmu2-mmu2s/",viewer:["https://autode.sk/3GbLAFF","https://autode.sk/3LdG08U"]},1313:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-sl1/",printable:"https://www.printables.com/prints/71507-sl1s-speed-printable-parts",spare:"https://www.prusa3d.com/category/sl1-s-cw1-s/",viewer:["https://autode.sk/3po2p9k"]},242:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-sl1/",printable:"https://www.printables.com/prints/57957-original-prusa-sl1-printable-parts",spare:"https://www.prusa3d.com/category/sl1-s-cw1-s/",viewer:["https://autode.sk/3Dd8Qkv"]},1314:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-sl1/",printable:"https://www.printables.com/prints/89780-cw1s-printable-parts",spare:"https://www.prusa3d.com/category/sl1-s-cw1-s/"},244:{community:"https://forum.prusa3d.com/forum/original-prusa-mini/",printable:"https://www.printables.com/prints/57214-original-prusa-mini-printable-parts",spare:"https://www.prusa3d.com/category/mini-mini/",viewer:["https://drive.autodesk.com/de29a2648/shares/SH919a0QTf3c32634dcfbd67df4fd52299a6"]},239:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk3s-mk3/",printable:"https://www.printables.com/prints/88272-original-prusa-i3-mk3s-printable-parts",spare:"https://www.prusa3d.com/category/mk3-mk3s-mk3s/",viewer:["https://autode.sk/3G7hMK7"]},237:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk2-5s-mk2-5/",printable:"https://www.printables.com/prints/88638-mk2s-to-mk25s-upgrade-printable-parts",spare:"https://www.prusa3d.com/category/mk2-5-mk2-5s/"},837:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk2-s/",printable:"https://www.printables.com/prints/88231-original-prusa-i3-mk2s-printable-parts",spare:"https://www.prusa3d.com/category/mk2-mk2s/"},243:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-sl1/",printable:"https://www.printables.com/prints/57963-original-prusa-cw1-printable-parts",spare:"https://www.prusa3d.com/category/sl1-s-cw1-s/",viewer:["https://autode.sk/3ddnrli"]},236:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk2-5s-mk2-5/",printable:"https://www.printables.com/prints/88642-original-prusa-i3-mk25-upgrade-printable-parts",spare:"https://www.prusa3d.com/category/mk2-5-mk2-5s/"},238:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk3s-mk3/",printable:"https://www.printables.com/prints/88240-original-prusa-i3-mk3-printable-parts",spare:"https://www.prusa3d.com/category/mk3-mk3s-mk3s/",viewer:["https://autode.sk/3d98pgJ"]},240:{community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk2-s-multi-material/",printable:"https://www.printables.com/prints/88366-mmu1-multi-material-upgrade-printable-parts",spare:"https://www.prusa3d.com/category/mmu2-mmu2s/"},234:{community:"https://forum.prusa3d.com/forum/english-forum-older-machines-prusa-i3-mk1-and-older/",printable:"https://www.printables.com/prints/88239-original-prusa-i3-plus-mk1-175mm-printable-parts"},1740:{community:"https://forum.prusa3d.com/forum/original-prusa-enclosure/",printable:"https://www.printables.com/model/251931-original-prusa-enclosure-printable-parts",collection:"https://www.printables.com/social/16-prusa-research/collections/229712"},xl:{printable:"https://www.printables.com/model/449554-xl-printable-parts",spare:"https://www.prusa3d.com/category/xl-2/",community:"https://forum.prusa3d.com/forum/original-prusa-xl/"},mk4:{printable:"https://www.printables.com/model/451501-mk4-printable-parts",spare:"https://www.prusa3d.com/category/mk4/ ",community:"https://forum.prusa3d.com/forum/english-forum-original-prusa-i3-mk4/"},mmu3:{printable:"https://www.printables.com/model/531604-mmu3-printable-parts",community:"https://forum.prusa3d.com/forum/original-prusa-mmu3/"}};var hn=function(n){var e=n.tagId,t=n.slug,r=(0,tn.aF)().t,i=pn[e]||pn[t];if(!i)return null;var a=[];if(i.community&&a.push({icon:rn.lXL,title:r(nn.community),url:i.community}),i.printable&&a.push({icon:rn.klh,title:r(nn.printableParts),url:i.printable}),i.spare&&a.push({icon:rn.sq$,title:r(nn.spareParts),url:i.spare}),i.collection&&a.push({icon:rn.r8p,title:r(nn.collection),url:i.collection}),i.viewer){var s=241===e?[r(nn.viewerMmuOlder),r(nn.viewerMmuNewer)]:[r(nn.viewer)];i.viewer.map((function(n,e){a.push({icon:rn.XSV,title:s[e],url:n})}))}return(0,o.jsx)(cn,{children:a&&a.map((function(n){return(0,o.jsx)(un,{id:n.url,children:(0,o.jsxs)(dn,{href:n.url,as:"a",children:[(0,o.jsx)(mn,{children:(0,o.jsx)(X.G,{icon:n.icon,size:"3x"})}),n.title]})},n.url)}))})},gn=t(32143),fn=t(93024),wn=t(22866),xn=t(81783);function vn(){var n=(0,j.Z)(["\n padding: 0.2rem;\n display: flex;\n flex-direction: column;\n font-weight: normal;\n justify-content: center;\n align-items: center;\n font-size: 0.8rem;\n width: 120px;\n"]);return vn=function(){return n},n}function bn(){var n=(0,j.Z)(["\n height: 100%;\n justify-content: space-between;\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n"]);return bn=function(){return n},n}function jn(){var n=(0,j.Z)(["\n border: 1px solid ",";\n border-radius: 2px;\n padding: 0.75rem;\n margin-bottom: 1rem;\n display: flex;\n justify-content: stretch;\n h3 {\n margin: 0;\n }\n\n "," {\n width: 100px;\n text-align: center;\n color: ",";\n }\n\n @media only screen and (max-width: 450px) {\n flex-direction: column;\n\n "," {\n width: 100%;\n }\n\n "," {\n width: 100%;\n height: 5rem;\n }\n\n "," {\n padding: 1rem 0;\n }\n }\n"]);return jn=function(){return n},n}function yn(){var n=(0,j.Z)(["\n font-size: 11px;\n color: #999;\n margin-top: 5px;\n margin-bottom: 0.5rem;\n display: block;\n"]);return yn=function(){return n},n}function kn(){var n=(0,j.Z)(["\n a {\n margin-right: 1rem;\n }\n"]);return kn=function(){return n},n}var Zn=(0,y.default)(gn.Lk).withConfig({componentId:"sc-5e3e935e-0"})(vn()),In=y.default.div.withConfig({componentId:"sc-5e3e935e-1"})(bn()),Cn=y.default.article.withConfig({componentId:"sc-5e3e935e-2"})(jn(),(0,Z.E)("lightGrey"),mn,(0,Z.E)("main"),mn,Zn,In),Sn=y.default.small.withConfig({componentId:"sc-5e3e935e-3"})(yn()),Ln=y.default.div.withConfig({componentId:"sc-5e3e935e-4"})(kn()),_n={handbook:rn.FL8,firmware:rn.Xgz,driver:rn._mg},En={win:{icon:fn.ts2,label:"Windows"},mac:{icon:fn.Av$,label:"MacOs"},linux:{icon:fn.qJE,label:"Linux"},standalone:{icon:xn.q7,label:"Standalone"}},Pn=(0,k.qK)("win");var Fn=function(n){var e,t,r=n.tag,i=n.type,l=n.title,c=n.count,u=n.releaseDate,p=n.files,h=n.releaseLogUrl,g=(0,m.useRouter)().locale,f=p.all?p.all:p[Pn],w=s.useMemo((function(){return(0,k.RA)(g,u)}),[g,u]);return(0,o.jsxs)(Cn,{children:[(0,o.jsx)(mn,{children:(0,o.jsx)(X.G,{icon:_n[null===i||void 0===i?void 0:i.value],size:"4x"})}),(0,o.jsxs)(In,{children:[(0,o.jsxs)("h3",{children:[(0,o.jsx)(v.Z,{index:null===J||void 0===J?void 0:J[i.value]})," ",l]}),(0,o.jsx)(Sn,{children:w}),(0,o.jsx)("div",{children:"driver"===i.value?(0,o.jsxs)(Ln,{children:[Object.entries(p).filter((function(n){return(0,a.Z)(n,1)[0]!==Pn})).map((function(n){var e,t,r=(0,a.Z)(n,2),i=r[0],s=r[1].fileUrl;return(0,o.jsxs)("a",{href:s,target:"_blank",children:[(0,o.jsx)(Q.VL,{icon:null===En||void 0===En||null===(e=En[i])||void 0===e?void 0:e.icon})," ",null===En||void 0===En||null===(t=En[i])||void 0===t?void 0:t.label]},i)})),(0,o.jsx)(d(),{href:"/downloads/".concat(r,"/").concat(null===i||void 0===i?void 0:i.value),children:(0,o.jsxs)("a",{children:[(0,o.jsx)(Q.VL,{icon:wn.qO}),(0,o.jsx)(v.Z,{index:null===J||void 0===J?void 0:J.olderVersions})]})})]}):(0,o.jsxs)(Ln,{children:[h&&(0,o.jsx)("a",{href:h,target:"_blank",children:(0,o.jsx)(v.Z,{index:null===J||void 0===J?void 0:J.moreInfo})}),c>1&&(0,o.jsx)(d(),{href:"/downloads/".concat(r,"/").concat(null===i||void 0===i?void 0:i.value),children:(0,o.jsxs)("a",{children:[(0,o.jsx)(Q.VL,{icon:wn.qO}),(0,o.jsx)(v.Z,{index:null===J||void 0===J?void 0:J.olderVersions})]})})]})})]}),"driver"===i.value?(0,o.jsxs)(Zn,{href:null===f||void 0===f?void 0:f.fileUrl,target:"_blank",children:[(0,o.jsxs)("span",{children:[(0,o.jsx)(Q.VL,{icon:null===En||void 0===En||null===(e=En[Pn])||void 0===e?void 0:e.icon}),null===(t=En[Pn])||void 0===t?void 0:t.label]}),(0,o.jsx)("br",{}),(0,o.jsxs)("span",{children:[(0,o.jsx)(Q.VL,{icon:rn.nek}),f.fileSize," MB"]})]}):(0,o.jsxs)(Zn,{href:null===f||void 0===f?void 0:f.fileUrl,target:"_blank",children:[(0,o.jsx)(X.G,{size:"3x",icon:rn.nek,style:{marginBottom:"0.5rem"}}),f.fileSize," MB"]})]})},Mn=function(n){return{data:n,categoriesBySlug:(0,k.Um)(n)}},Bn=!0;function Tn(n){var e,t,l,c,u=n.swrFallback,h=n.totalArticles,w=n.language,j=n.tagSlug,y=n.categorySlug,Z=n.forumItems,I=n.global,S=n.userData,L=(0,s.useContext)(f.kn).roles,_=(0,v.a)().t,E=(0,s.useMemo)((function(){var n;return null===I||void 0===I||null===(n=I.tagsBySlug)||void 0===n?void 0:n[j]}),[(0,p.size)(null===I||void 0===I?void 0:I.tagsBySlug)]),P=(0,s.useState)(!y),F=P[0],M=P[1],B=((0,m.useRouter)(),(0,s.useRef)(null)),T=(0,a.Z)((0,tn._)("pkb_guides_expanded",!0),2),K=T[0],W=T[1],$=(0,a.Z)((0,tn._)("pkb_manuals_expanded",!0),2),J=$[0],X=$[1],Q=(0,(0,tn.kx)(L).isInAnyRole)([C.K$.ADMIN,C.K$.EMPLOYEE,C.K$.AUTHOR]),Y=x.ZP.helps.withSWR({options:{infinite:!0},fallback:u}),nn=Y.data,rn=Y.isLoading,an=Y.size,on=Y.setSize,sn=Y.fallbackKey,ln=x.ZP.guides.withSWR({fallback:u,middleware:function(n){return n.dataByCat=(0,k.iN)(n.data),n}}),cn=ln.data,un=ln.isLoading,dn=x.ZP.helps.withSWR({fallback:u.featured}),mn=dn.data,pn=dn.isLoading,gn=x.ZP.guides.withSWR({fallback:u.notAssemblyGuides}).data,fn=x.ZP.downloads.withSWR({fallback:u,middleware:function(n){return(0,tn.Es)(n)}}),wn=fn.data,xn=fn.isLoading,vn=x.ZP.categories.withSWR({fallback:u,query:{language:w},middleware:Mn}),bn=vn.data,jn=bn.data,yn=bn.categoriesBySlug,kn=vn.isLoading,Zn=(0,s.useMemo)((function(){return yn?Object.values(yn).sort((function(n,e){return n.order>e.order?1:-1})):[]}),[yn]),In=(0,s.useMemo)((function(){var n=y||!1,e=[];E&&e.push({title:(null===E||void 0===E?void 0:E.content)||E.name,link:!!j&&"/tag/".concat(E.slug)});var t={childrens:jn};return n&&(t=(0,k.CI)(jn,n),e=e.concat((0,k.m)(jn,n).map((function(n){return y===n.slug?{title:n.title}:{title:n.title,link:"/tag/".concat(E.slug,"/").concat(n.slug,"#articles")}})).reverse())),{category:t,breadcrumbs:e}}),[j,y]),Cn=In.category,Sn=In.breadcrumbs;return(0,s.useEffect)((function(){return M(!y)}),[y]),(0,s.useEffect)((function(){"articles"===window.location.hash.substr(1)&&null!==B.current&&(0,k.eU)(B.current,0)})),E?(0,o.jsxs)(U.Z,{global:I,categories:jn,translations:null===Cn||void 0===Cn?void 0:Cn.translations_status,children:[(0,o.jsx)(z.UB,{height:10,children:(0,o.jsxs)(z.im,{style:{width:"100%"},children:[(0,o.jsx)(V.Z,{items:Sn}),F?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(H.Z,{title:E.content,desctiontion:_(g.pageMetaDescripti,{tagFullName:null===E||void 0===E?void 0:E.content}),image:E.media&&E.media.image,translations:null===Cn||void 0===Cn?void 0:Cn.translations_status}),(0,o.jsx)("h1",{style:{textAlign:"center"},children:null===E||void 0===E?void 0:E.content})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(H.Z,{title:"".concat(E.content," | ").concat(Cn.title),desctiontion:_(g.pageMetaDescripti,{tagFullName:null===E||void 0===E?void 0:E.content}),image:E.media&&E.media.image}),(0,o.jsx)("h1",{style:{textAlign:"center"},children:E.content}),(0,o.jsx)("h2",{style:{textAlign:"center"},children:Cn.title})]}),Q&&(0,o.jsx)(D.Z,{url:"/admin/tag/".concat(j)})]})}),F&&(0,o.jsx)(z.ln,{borderTop:!0,borderBottom:!0,children:(0,o.jsxs)(z.im,{width:930,children:[(0,o.jsx)(hn,{tagId:E.id,slug:E.slug}),(0,o.jsxs)(z.rj,{children:[(0,o.jsxs)(z.JX,{cols:8,children:[(0,o.jsx)(z.H2,{children:(0,o.jsx)(v.Z,{index:g.downloads})}),(0,p.isEmpty)(wn)&&xn&&(0,o.jsx)(b.Z,{}),!(null===wn||void 0===wn?void 0:wn.firmware)&&!(null===wn||void 0===wn?void 0:wn.driver)&&!(null===wn||void 0===wn?void 0:wn.handbook)&&(0,o.jsx)("p",{children:(0,o.jsx)(v.Z,{index:g.nothingFound})}),(null===wn||void 0===wn?void 0:wn.firmware)&&(0,o.jsx)(Fn,(0,i.Z)((0,r.Z)({},wn.firmware),{tag:j})),(null===wn||void 0===wn?void 0:wn.driver)&&(0,o.jsx)(Fn,(0,i.Z)((0,r.Z)({},wn.driver),{tag:j})),(null===wn||void 0===wn?void 0:wn.handbook)&&(0,o.jsx)(Fn,(0,i.Z)((0,r.Z)({},wn.handbook),{tag:j}))]}),(0,o.jsxs)(z.JX,{cols:4,children:[(0,o.jsx)(z.H2,{children:(0,o.jsx)(v.Z,{index:g.howTo})}),(0,o.jsxs)(z.aV,{children:[(0,p.isEmpty)(mn)&&pn&&(0,o.jsx)(b.Z,{}),null===mn||void 0===mn?void 0:mn.map((function(n){return(0,o.jsx)(z.HC,{children:(0,o.jsx)(d(),{href:(0,k.Y4)({language:w,item:n}),children:(0,o.jsx)("a",{children:n.title})})},n.id)}))]}),(0,o.jsx)("p",{children:(0,o.jsx)(v.Z,{index:g.supportText,components:{strong:(0,o.jsx)("strong",{children:(0,o.jsx)(v.Z,{index:g.supportTextBold})}),a:(0,o.jsx)("a",{href:"https://www.prusa3d.com/".concat(w,"/"),target:"_blank",children:(0,o.jsx)(v.Z,{index:g.supportTextChat})}),mail:(0,o.jsx)("a",{href:"mailto:info@prusa3d.com",children:"e-mail"})}})})]})]})]})}),F&&(0,o.jsxs)(o.Fragment,{children:[!cn&&un&&(0,o.jsx)(b.Z,{}),(0,o.jsxs)(z.im,{width:930,children:[(0,o.jsx)(q.Z,{onClick:function(){return W(!K)},expanded:K,arrowColor:"#e05d2d",arrowSize:2,withBox:!1,showLabel:!0,children:(0,o.jsx)(z.H2,{center:!0,children:(0,o.jsx)(v.Z,{index:g.guides})})}),K?(0,o.jsx)(z.rj,{children:Zn.map((function(n){var e,t=n.slug;return(null===(e=cn.dataByCat)||void 0===e?void 0:e[t])?(0,o.jsx)(en.ZP,{media:n.media,slug:n.slug,title:n.title,content:"",language:w,isAdmin:Q,type:"category"},t):null}))}):null,(null===gn||void 0===gn||null===(e=gn.data)||void 0===e?void 0:e.length)>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(q.Z,{onClick:function(){return X(!J)},expanded:J,arrowColor:"#e05d2d",arrowSize:2,withBox:!1,showLabel:!0,children:(0,o.jsx)(z.H2,{center:!0,children:(0,o.jsx)(v.Z,{index:g.serviceManuals})})}),J?(0,o.jsx)(z.rj,{children:null===gn||void 0===gn||null===(t=gn.data)||void 0===t?void 0:t.map((function(n){return(0,s.createElement)(en.ZP,(0,i.Z)((0,r.Z)({},n),{isAdmin:Q,key:n.id,language:w}))}))}):null]})]})]}),(0,o.jsx)(z.ln,{borderTop:!0,borderBottom:!0,ref:B,children:(0,o.jsxs)(z.im,{width:900,children:[Cn.childrens&&Cn.childrens.length>0?(0,o.jsxs)(z.im,{children:[(0,o.jsx)(z.H2,{center:!0,children:(0,o.jsx)(v.Z,{index:g.categories})}),!yn&&!(null===(l=Cn.childrens)||void 0===l?void 0:l.length)&&(0,o.jsx)("p",{style:{textAlign:"center"},children:(0,o.jsx)(v.Z,{index:g.nothingFound})}),(0,o.jsxs)(z.rj,{children:[!yn&&kn&&(0,o.jsx)(b.Z,{}),Cn.childrens.map((function(n){return(null===yn||void 0===yn?void 0:yn[n.slug])&&yn[n.slug].count>0&&I.data.assembly_categories&&!I.data.assembly_categories.includes(n.id)?(0,s.createElement)(O.ZP,(0,i.Z)((0,r.Z)({},yn[n.slug]),{key:n.id,language:w,customUrl:"/tag/".concat(j,"/").concat(n.slug)})):null}))]})]}):null,(0,o.jsx)(z.H2,{center:!0,children:(0,o.jsx)(v.Z,{index:g.articles})}),!(null===(c=(0,p.compact)(null===nn||void 0===nn?void 0:nn.flat()))||void 0===c?void 0:c.length)&&(0,o.jsx)("p",{style:{textAlign:"center"},children:(0,o.jsx)(v.Z,{index:g.nothingFound})}),!nn&&rn&&(0,o.jsx)(b.Z,{}),nn&&(null===nn||void 0===nn?void 0:nn.length)>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(R,{items:nn.flat(),tags:I.tagsBySlug,language:w,categories:jn}),(0,o.jsx)(G.Z,{setPage:on,page:an,swrKey:sn,totalPages:h,isLoading:rn})]})]})}),(0,o.jsx)("div",{children:E&&(0,o.jsx)(N.Z,{items:Z})})]}):(0,o.jsx)(U.Z,{global:I,categories:jn,children:(0,o.jsx)(A.ZP,{userData:S})})}Tn.propTypes={tagSlug:c().string.isRequired,categorySlug:c().string.isRequired,totalArticles:c().number.isRequired,language:c().string.isRequired,forumItems:c().arrayOf(c().object).isRequired,swrFallback:c().object.isRequired};var Rn=(0,w.Z)(Tn)}}]);
//# sourceMappingURL=5435-df9d7bdc7c090b6b.js.map