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

1 year ago
"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},
//# sourceMappingURL=6276-1121aacc5584144e.js.map