PageSourceSearch

https://prawodlabiznesu.eu/wp-content/plugins/ncmaz-frontend/dist/assets/MegamenuItem.bba5ce36.js

js prawodlabiznesu.eu collected 2026-10-04 08:13:46 UTC 6,334 bytes, 80 lines download raw bytes

1import{j as n,a as e,N as E,d as _,L as q,S as w,r as F,T as Q,E as B,e as U,R as G,D as H}from"./main.0d84c3a0.js";const K=` edges {
2  node {
3    id
4    link
5    categories {
6      edges {
7        node {
8          id
9          link
10          name
11          uri
12          slug
13          count
14          categoryId
15          ncTaxonomyMeta {
16            color 
17          } 
18        } 
19      } 
20    }
21    commentCount
22    date
23    excerpt
24    featuredImage {
25      node {
26        id
27        altText
28        caption
29        sourceUrl(size: $featuredImage_size) 
30      } 
31    }
32    postFormats {
33      edges {
34        node {
35          id
36          name 
37        } 
38      } 
39    }
40    postId
41    slug
42    title 
43  } 
44}`,V=`
45  query Megamenu_Filter(
46    $field: PostObjectsConnectionOrderbyEnum = DATE
47    $order: OrderEnum = DESC
48    $categoryIn: [ID] = []
49    $tagIn: [ID] = []
50    $authorIn: [ID] = []
51    $last: Int = null
52    $first: Int = 10
53    $before: String = null
54    $after: String = null
55    $featuredImage_size: MediaItemSizeEnum = MEDIUM
56  ) {
57    posts(
58      where: {
59        orderby: { field: $field, order: $order }
60        categoryIn: $categoryIn
61        tagIn: $tagIn
62        authorIn: $authorIn
63      }
64      last: $last
65      first: $first
66      before: $before
67      after: $after
68    ) {
69     ${K}
70      pageInfo {
71        hasNextPage
72        hasPreviousPage
73        endCursor
74        startCursor 
75      } 
76    }
77  }
78`,Y=({className:m="h-full",post:b})=>{var x,d,g,c,p,N,y;const{link:i,categories:a,title:f,featuredImage:o,postFormats:l}=b,$=(x=l==null?void 0:l.edges[0])==null?void 0:x.node.slug;return n("div",{className:`nc-Card18 group relative flex flex-col ${m}`,"data-nc-id":"Card18",children:[n("div",{className:"w-full block h-0 aspect-h-9 aspect-w-10 rounded-2xl overflow-hidden z-0",children:[e(E,{containerClassName:"absolute inset-0 ",src:(o==null?void 0:o.node.sourceUrl)||".",alt:f}),e("div",{children:e(_,{className:"absolute left-1.5 bottom-1.5",postType:$,wrapSize:"w-8 h-8",iconSize:"w-4 h-4"})}),e("div",{className:"bg-transparent group-hover:bg-gray-900/30 transform transition-colors"})]}),e("div",{className:"absolute top-1.5 inset-x-1.5 flex justify-between ",children:e(q,{className:"relative z-10",name:(g=(d=a==null?void 0:a.edges[0])==null?void 0:d.node)==null?void 0:g.name,href:(p=(c=a==null?void 0:a.edges[0])==null?void 0:c.node)==null?void 0:p.link,color:(y=(N=a==null?void 0:a.edges[0])==null?void 0:N.node)==null?void 0:y.ncTaxonomyMeta.color})}),e("h3",{className:"block mt-2 font-medium text-sm",children:e("span",{className:"line-clamp-2",dangerouslySetInnerHTML:{__html:f}})}),e("a",{href:i,className:"absolute inset-0"})]})},J=({className:m="h-full"})=>n("div",{className:`nc-Card18Skeleton group relative flex flex-col ${m}`,"data-nc-id":"Card18Skeleton",children:[n("div",{className:"w-full block h-0 aspect-h-9 aspect-w-10 rounded-2xl overflow-hidden",children:[e(E,{containerClassName:"absolute inset-0 ",src:"."}),e("div",{children:e(_,{className:"absolute left-1.5 bottom-1.5",wrapSize:"w-8 h-8",iconSize:"w-4 h-4"})}),e("div",{className:"bg-transparent group-hover:bg-gray-900/30 transform transition-colors"})]}),e("div",{className:"absolute top-1.5 inset-x-1.5 flex justify-between ",children:e(w,{width:"40%"})}),n("h3",{className:"block mt-2 font-medium text-sm",children:[e(w,{width:"80%"}),e(w,{width:"60%"})]})]}),X=({domNode:m,menuItemData:b})=>{var C,P,T;const{ncmazMenuCustomFields:i}=b,[a,f]=F.exports.useState((P=(C=i==null?void 0:i.taxonomies)==null?void 0:C[0])==null?void 0:P.categoryId),{taxonomies:o,numberOfPosts:l,order:$,orderBy:x,showTabFilter:d}=i;let g={},c=[];d?c=[a]:c=(o==null?void 0:o.map(r=>r.categoryId))||[],g={categoryIn:c,first:Number(l)};const p=Q`
79    ${V}
80  `,[N,{loading:y,error:z,data:u,fetchMore:v}]=B(p,{notifyOnNetworkStatusChange:!0,variables:g}),{ref:O}=U(N,99),s=(T=u==null?void 0:u.posts)==null?void 0:T.pageInfo,I=(u==null?void 0:u.posts.edges)||[],k=y,j=r=>{f(r.categoryId)},S=(r,{fetchMoreResult:t})=>{var h;return(h=t==null?void 0:t.posts)!=null&&h.edges.length?t:r},D=()=>{if(!(s!=null&&s.hasPreviousPage)&&!(s!=null&&s.hasNextPage))return null;let r="w-10 h-10 bg-white dark:bg-neutral-900 border border-neutral-200 hover:border-neutral-300 dark:border-neutral-6000 dark:hover:border-neutral-500 rounded-full flex items-center justify-center  -- disabled:opacity-70 disabled:text-gray-500  disabled:cursor-default disabled:hover:border-neutral-200 dark:disabled:hover:border-neutral-6000";return n("div",{className:"nc-NextPrev mt-8 ml-2 relative flex items-center justify-center text-neutral-900 dark:text-neutral-300 space-x-2.5 ",children:[e("button",{className:r,disabled:!s.hasPreviousPage,onClick:()=>{v&&v({variables:{first:null,after:null,last:Number(l),before:s.startCursor||null},updateQuery:S})},children:e("i",{className:"las la-angle-left"})}),e("button",{className:r,disabled:!s.hasNextPage,onClick:()=>{v&&v({variables:{first:Number(l),after:s.endCursor||null,last:null,before:null},updateQuery:S})},children:e("i",{className:"las la-angle-right"})})]})},M=()=>{const{taxonomies:r}=b.ncmazMenuCustomFields;return e("div",{className:"w-1/5 py-8 flex-shrink-0  ",children:e("div",{className:"flow-root",children:e("div",{children:(r||[]).map(t=>{const h=t.categoryId===a;return n("a",{href:t.link,className:`py-2.5 px-5 flex items-center !m-0 relative ${h?"bg-neutral-100 dar
80k:bg-neutral-800 ":""}`,onMouseEnter:()=>j(t),children:[h&&e("span",{className:"absolute left-0 w-1 h-full top-0 bg-primary-500"}),t.name]},t.categoryId)})})})})},A=()=>e("div",{className:`flex-grow ${d?"border-l border-neutral-200 dark:border-neutral-800":""}`,children:n("div",{className:"px-4 py-5 ",children:[e(H,{className:"my-5",data:I,error:z,isSkeleton:k}),k||I.length?e("div",{className:`grid gap-4 ${d?"grid-cols-4":"grid-cols-5"}`,children:k?Array.from(Array(Number(l)||10).keys()).map((r,t)=>e(J,{},t)):I.map(r=>e(Y,{post:r.node},r.node.id))}):null,D()]})}),L=()=>e("div",{ref:O,className:"nc-megamenu-item absolute top-full py-3 -inset-x-10",children:n("div",{className:"w-full flex overflow-hidden rounded-2xl shadow-lg ring-1 ring-black dark:ring-white ring-opacity-5 dark:ring-opacity-10 text-sm relative bg-white dark:bg-neutral-900 ",children:[d&&M(),A()]})});return G.createPortal(L(),m)};export{X as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.