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
8.5 KiB
JavaScript
2 lines
8.5 KiB
JavaScript
1 year ago
|
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3338],{45816:function(n,e,t){var i=t(85893),r=t(41664),o=t.n(r),l=t(11163);e.Z=function(n){var e=n.children,t=n.isActive,r=void 0!==t&&t,s=n.href,a=n.activeClassName,c=void 0===a?null:a,u=n.style,d=void 0===u?null:u,f=(0,l.useRouter)(),g=c||"active",p="function"===typeof r?r(s,f):f.asPath===s;return(0,i.jsx)(o(),{href:s,children:(0,i.jsx)("a",{className:p?g:"",style:d,children:e})})}},83338:function(n,e,t){t.d(e,{l:function(){return _},Z:function(){return z}});var i=t(26042),r=t(69396),o=t(7297),l=t(85893),s=t(67294),a=t(45697),c=t.n(a),u=t(87379),d=t(41664),f=t.n(d),g=t(1247),p=t(45816),h=t(61257),v=t(8293),m=t(36434),x=t(61590),b=t(94586);function j(){var n=(0,o.Z)(["\n position: relative;\n top: 8px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n height: 2rem;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 0 0 0 15px;\n z-index: 9999;\n\n &:focus {\n outline: none;\n }\n\n div {\n width: 1rem;\n height: 0.25rem;\n background: ",";\n border-radius: 10px;\n transition: all 0.3s linear;\n position: relative;\n transform-origin: 1px;\n\n :first-child {\n transform: ",";\n }\n\n :nth-child(2) {\n transform: ",";\n }\n }\n"]);return j=function(){return n},n}function y(){var n=(0,o.Z)(["\n position: relative;\n left: ",";\n padding: 0.5rem 0.5rem 0.5rem 2rem;\n margin-left: -2rem;\n width: 6rem;\n background: white;\n border-radius: 0 0.5rem 0.5rem 0;\n border: 1px solid #e0e0e0;\n border-left: none;\n display: flex;\n align-items: center;\n flex-direction: column;\n transition: 0.3s ease-in-out;\n z-index: 100;\n"]);return y=function(){return n},n}var w=u.default.button.withConfig({componentId:"sc-a58f9a59-0"})(j(),(0,b.E)("main"),(function(n){return n.open?"rotate(-45deg)":"translateY(-15px) rotate(45deg)"}),(function(n){return n.open?"translateY(-5px) rotate(45deg)":"rotate(-45deg)"})),S=u.default.div.withConfig({componentId:"sc-a58f9a59-1"})(y(),(function(n){return n.open?"265px":"0px"})),k=function(n){var e=n.setOpen,t=n.open,i=n.style;return(0,l.jsxs)(S,{open:t,onClick:function(){return e(!t)},children:[(0,l.jsxs)(w,{open:t,style:i,children:[(0,l.jsx)("div",{}),(0,l.jsx)("div",{})]}),"Menu"]})};k.propTypes={open:c().bool.isRequired,setOpen:c().func.isRequired};var Z=k,R=t(41347),C=t(33548);function T(n){var e=n.title,t=n.slug,i=n.language,r=n.expandable,o=n.catSlug,a=n.itemSlug,c=n.isPreview,u=(0,s.useState)(!1),d=u[0],g=u[1],p=(0,s.useState)([]),h=p[0],x=p[1],b=(0,s.useState)([]),j=b[0],y=b[1],w=(0,s.useState)(!1),S=w[0],k=w[1];return(0,s.useEffect)((function(){k(!1)}),[o,a]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v.HC,{padding:.5,children:r?(0,l.jsx)("a",{href:"#",onClick:function(n){if(n.preventDefault(),r)if(0===h.length&&0===j.length){g(!0),k(!0);var e={lng:i,page:1,per_page:9999,category:t,admin:c};(0,C.Z)("v1/helps",{params:e}).then((function(n){x(n.data||[]),(0,C.Z)("v1/guides",{params:e}).then((function(n){g(!1),y(n.data||[])}))}))}else k(!S)},style:{display:"block"},children:(0,l.jsx)("strong",{children:e})}):(0,l.jsx)("strong",{style:{color:"black"},children:e})}),r&&S&&(0,l.jsxs)(l.Fragment,{children:[d&&(0,l.jsx)(R.Z,{size:30}),j.length>0&&j.map((function(n){return(0,l.jsx)(v.HC,{depth:1,padding:.5,children:(0,l.jsx)(f(),{href:(0,m.Y4)({language:i,item:n}),children:(0,l.jsx)("a",{style:{display:"block"},children:n.title})})},n.id)})),h.length>0&&h.map((function(n){return(0,l.jsx)(v.HC,{depth:1,padding:.5,children:(0,l.jsx)(f(),{href:(0,m.Y4)({language:i,item:n}),children:(0,l.jsx)("a",{style:{display:"block"},children:n.title})})},n.id)}))]})]})}T.propTypes={title:c().string.isRequired,slug:c().string.isRequired,language:c().string.isRequired,expandable:c().bool,isPreview:c().bool,catSlug:c().string,itemSlug:c().string};var H=T;function O(){var n=(0,o.Z)(["\n z-index: 40;\n padding-right: 5px;\n\n @media print {\n display: none;\n }\n"]);return O=function(){return n},n}var E=(0,u.defaul
|
||
|
//# sourceMappingURL=3338-ce9246526f13568e.js.map
|