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
10 KiB
JavaScript
2 lines
10 KiB
JavaScript
1 year ago
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4560],{94543:function(n,e,t){var i=t(7297),r=t(85893),o=t(45697),a=t.n(o),s=t(87379),d=t(41664),c=t.n(d),l=t(36434),u=t(94586),m=t(29059);function f(){var n=(0,i.Z)(["\n color: #333;\n font-size: 1em;\n padding: 0 1em;\n text-align: left;\n"]);return f=function(){return n},n}function h(){var n=(0,i.Z)(["\n position: relative;\n text-align: center;\n width: calc((100% - 2em) / 3);\n height: 120px;\n overflow: hidden;\n margin-bottom: 1em;\n background-color: #fff;\n border: 1px solid ",";\n\n @media screen and (min-width: 64em) {\n &:nth-child(3n + 3) {\n margin-right: 0;\n }\n }\n @media screen and (max-width: 64em) {\n width: calc(50% - 1em);\n }\n @media screen and (min-width: 48em) {\n margin-right: 1em;\n }\n @media screen and (max-width: 48em) {\n width: 100%;\n }\n"]);return h=function(){return n},n}function g(){var n=(0,i.Z)(["\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: space-between;\n transition: border 500ms;\n\n &:hover {\n border-color: #fa6831;\n }\n"]);return g=function(){return n},n}function p(){var n=(0,i.Z)(["\n width: 120px;\n"]);return p=function(){return n},n}var x=s.default.div.withConfig({componentId:"sc-1eedbcab-0"})(f()),v=s.default.article.withConfig({componentId:"sc-1eedbcab-1"})(h(),(0,u.E)("lightGrey")),w=s.default.a.withConfig({componentId:"sc-1eedbcab-2"})(g()),b=s.default.img.withConfig({componentId:"sc-1eedbcab-3"})(p());function j(n){var e=n.title,t=n.media,i=n.slug,o=n.count,a=n.language,s=n.customUrl,d=void 0!==s&&s,u=n.translation_status,f=(0,l.hw)(t.image.thumbnail||t.image.original);return(0,r.jsx)(v,{children:(0,r.jsx)(c(),{href:d||(0,l.Y4)({item:{slug:i,type:"category"}}),passHref:!0,children:(0,r.jsxs)(w,{children:[(0,r.jsx)(x,{children:(0,r.jsxs)("h4",{children:[(0,l.Hl)(e)," (",o,")",(0,r.jsx)("br",{}),(0,r.jsx)(m.Z,{language:a,status:u})]})}),t&&(0,r.jsx)(b,{src:f,width:"300",alt:e})]})})})}j.propTypes={title:a().string.isRequired,count:a().number.isRequired,language:a().string.isRequired,slug:a().string.isRequired,media:a().object,translation_status:a().object,customUrl:a().string},e.ZP=j},74886:function(n,e,t){t.d(e,{Z:function(){return b}});var i=t(7297),r=t(85893),o=(t(67294),t(45697)),a=t.n(o),s=t(87379),d="app.component.Expandable",c={show:"".concat(d,".show"),hide:"".concat(d,".hide")},l=t(26349),u=t(94586),m=t(38421);function f(){var n=(0,i.Z)(["\n position: relative;\n border-color: ",";\n ","\n padding: 1em 0.5em;\n margin: 2px 0;\n cursor: pointer;\n vertical-align: middle;\n transition: margin-bottom 300ms;\n ","\n"]);return f=function(){return n},n}function h(){var n=(0,i.Z)(["\n position: relative;\n display: inline-block;\n margin-left: 20px;\n transform: rotate(90deg) scale(",");\n transition: transform 200ms;\n color: ",";\n ","\n"]);return h=function(){return n},n}function g(){var n=(0,i.Z)(["\n position: absolute;\n right: 1em;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n font-size: 0.8em;\n"]);return g=function(){return n},n}var p=s.default.div.withConfig({componentId:"sc-2f3f31b1-0"})(f(),(0,u.E)("lightGrey"),(function(n){return n.withBox?"\n background-color: white;\n border-width: 1px;\n border-style: solid;":""}),(function(n){return n.expanded&&"margin-bottom: 1em;"})),x=(0,s.default)(m.Z).withConfig({componentId:"sc-2f3f31b1-1"})(h(),(function(n){return n.size}),(function(n){return n.color}),(function(n){return n.expanded?"transform: rotate(270deg) scale(".concat(n.size,");"):""})),v=s.default.div.withConfig({componentId:"sc-2f3f31b1-2"})(g()),w=function(n){var e=n.title,t=n.children,i=n.onClick,o=n.expanded,a=n.withBox,s=void 0===a||a,d=n.arrowColor,u=void 0===d?"#e0e0e0":d,m=n.arrowSize,f=void 0===m?1:m,h=n.showLabel,g=void 0!==h&&h;return(0,r.jsxs)(p,{onClick:i,expanded:o,withBox:s,children:[e||t,(0,r.jsxs)(v,{children:[g&&(o?(0,r.jsx)(l.Z,{index:c.hide}):(0,r.jsx)(l.Z,{index:c.show})),(0,r.jsx)(x,{expanded:o,color:u,size:f})]})]})};w.propType
|
||
|
//# sourceMappingURL=4560-3505c3af0a5d7e74.js.map
|