"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[565],{24853:(e,t,c)=>{var l=c(95155),a=c(12115),n=c(29722),o=(c(92681),c(25939)),i=c(69365),s=(c(28965),c(70465)),r=c(17188),d=c(14570);c(28327),c(86830),c(82230),c(80633),c(26567),c(56082),c(98426),c(44550),c(62116),c(21944);var u=c(96848),_=c(83640),m=c(63914),g=c(91501);c(73646);let b=(e,t,c)=>{var l,a;let n=null==c||null==(l=c.toString())?void 0:l.toLowerCase();return!!(null==(a=e.getValue(t))||null==(a=a.toString())||null==(a=a.toLowerCase())?void 0:a.includes(n))};b.autoRemove=e=>w(e);let h=(e,t,c)=>{var l;return!!(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.includes(c))};h.autoRemove=e=>w(e);let p=(e,t,c)=>{var l;return(null==(l=e.getValue(t))||null==(l=l.toString())?void 0:l.toLowerCase())===(null==c?void 0:c.toLowerCase())};p.autoRemove=e=>w(e);let x=(e,t,c)=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(c)};x.autoRemove=e=>w(e)||!(null!=e&&e.length);let v=(e,t,c)=>!c.some(c=>{var l;return!(null!=(l=e.getValue(t))&&l.includes(c))});v.autoRemove=e=>w(e)||!(null!=e&&e.length);let N=(e,t,c)=>c.some(c=>{var l;return null==(l=e.getValue(t))?void 0:l.includes(c)});N.autoRemove=e=>w(e)||!(null!=e&&e.length);let j=(e,t,c)=>e.getValue(t)===c;j.autoRemove=e=>w(e);let f=(e,t,c)=>e.getValue(t)==c;f.autoRemove=e=>w(e);let C=(e,t,c)=>{let[l,a]=c,n=e.getValue(t);return n>=l&&n<=a};C.resolveFilterValue=e=>{let[t,c]=e,l="number"!=typeof t?parseFloat(t):t,a="number"!=typeof c?parseFloat(c):c,n=null===t||Number.isNaN(l)?-1/0:l,o=null===c||Number.isNaN(a)?1/0:a;if(n>o){let e=n;n=o,o=e}return[n,o]},C.autoRemove=e=>w(e)||w(e[0])&&w(e[1]);function w(e){return null==e||""===e}Number.MAX_SAFE_INTEGER;let y=(e,t,c,l,a)=>{var n;let o=a.getRow(t,!0);c?(o.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),o.getCanSelect()&&(e[t]=!0)):delete e[t],l&&null!=(n=o.subRows)&&n.length&&o.getCanSelectSubRows()&&o.subRows.forEach(t=>y(e,t.id,c,l,a))},z=(0,_.g)("table-head-cell"),T=Object.freeze({cell:z,text:"".concat(z,"__text"),buttonLeft:"".concat(z,"__button-left"),buttonRight:"".concat(z,"__button-right")}),V=e=>{let{lineClamp:t,text:c,size:a="m",iconLeft:n,onIconLeftClick:i,iconRight:s,onIconRightClick:r}=e;return(0,l.jsxs)("div",{className:T.cell,children:[n&&(0,l.jsx)(o.B,{className:T.buttonLeft,appearance:"ghost",shape:"icon",variant:"secondary",size:"xs",iconLeft:n,onClick:e=>null==i?void 0:i(e)}),(0,l.jsx)(u.T,{className:T.text,size:"m"===a?"16":"14",lineClamp:t,children:c}),s&&(0,l.jsx)(o.B,{className:T.buttonRight,appearance:"ghost",shape:"icon",variant:"secondary",size:"xs",iconLeft:s,onClick:e=>null==r?void 0:r(e)})]})};V.displayName="TableHeadCell";let R=(0,_.g)("table-icon-button-cell"),k=Object.freeze({cell:R,buttonLeft:"".concat(R,"__button-left"),buttonRight:"".concat(R,"__button-right")}),L=e=>{let{iconLeft:t,onIconLeftClick:c,iconRight:a,onIconRightClick:n}=e;return(0,l.jsxs)("div",{className:k.cell,children:[t&&(0,l.jsx)(o.B,{className:k.buttonLeft,appearance:"ghost",shape:"icon",variant:"secondary",size:"xs",iconLeft:t,onClick:e=>null==c?void 0:c(e)}),a&&(0,l.jsx)(o.B,{className:k.buttonRight,appearance:"ghost",shape:"icon",variant:"secondary",size:"xs",iconLeft:a,onClick:e=>null==n?void 0:n(e)})]})};L.displayName="TableIconButtonCell";let S=Object.freeze({cell:(0,_.g)("table-icon-cell")}),A=e=>{let{icon:t}=e;return(0,l.jsx)(m.P,{className:S.cell,children:t})};A.displayName="TableIconCell";let E=(0,_.g)("table-logos-cell"),I=Object.freeze({cell:E,logo:"".concat(E,"__logo"),badge:"".concat(E,"__badge")}),O=e=>{let{items:t,max:c=3}=e,o=(0,a.useMemo)(()=>c&&t.length>c?t.slice(0,c):t,[t,c]);return(0,l.jsxs)("ul",{className:I.cell,children:[o.map(e=>(0,l.jsx)("li",{className:I.logo,children:(0,l.jsx)(m.P,{children:e})},(0,g.g)())),!!c&&t.length>c&&(0,l.jsx)("li",{className:(0,n.A)(I.badge,I.logo),children:"+".concat(t.length-c)})]})};O.displayName="TableLogosCell";let B=(0,_.g)("table-text-cell"),P=Object.freeze({cell:B,content:"".concat(B,"__content"),icon:"".concat(B,"__icon"),variant:{black:"".concat(B,"--black"),green:"".concat(B,"--green"),red:"".concat(B,"--red")},size:{s:"".concat(B,"--s"),m:"".concat(B,"--m")}}),M=e=>{let{variant:t="black",lineClamp:c=1,text:a,size:o="m",iconLeft:i,iconRight:s}=e;return(0,l.jsxs)("div",{className:(0,n.A)(P.cell,P.variant[t],P.size[o]),children:[i&&(0,l.jsx)(m.P,{className:P.icon,children:i}),(0,l.jsx)(u.T,{className:P.content,size:"m"===o?"16":"14",lineClamp:c,children:a}),s&&(0,l.jsx)(m.P,{className:P.icon,children:s})]})};M.displayName="TableTextCell";let F=(0,_.g)("table-text-with-caption-cell"),H=Object.freeze({cell:F,content:"".concat(F,"__content"),caption:"".concat(F,"__caption")}),G=e=>{let{text:t,caption:c,size:a="m"}=e;return(0,l.jsxs)("div",{className:H.cell,children:[(0,l.jsx)(u.T,{className:H.content,size:"m"===a?"16":"14",lineClamp:1,children:t}),c&&(0,l.jsx)(d.C,{text:c,size:a,lineClamp:1,className:H.caption})]})};function W(e){return a.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M5.136 8.4h1.368c0.192 0 0.348 0.144 0.348 0.336v2.196c0 0.192 0.156 0.336 0.348 0.336h2.4c0.18 0 0.336 -0.144 0.336 -0.336V8.736c0 -0.192 0.156 -0.336 0.348 -0.336h3.42c0.192 0 0.348 0.144 0.348 0.336v2.196c0 0.192 0.156 0.336 0.348 0.336h2.4c0.18 0 0.336 -0.144 0.336 -0.336V8.736c0 -0.192 0.156 -0.336 0.348 -0.336h1.368c0.192 0 0.348 0.144 0.348 0.336v6.516c0 0.192 -0.156 0.348 -0.348 0.348H5.136c-0.192 0 -0.336 -0.156 -0.336 -0.348V8.736c0 -0.192 0.144 -0.336 0.336 -0.336",fill:"currentColor"}))}G.displayName="TableTextWithCaptionCell";let X=(0,_.g)("table-title-cell"),q=Object.freeze({cell:X,media:"".concat(X,"__media"),mediaContent:"".concat(X,"__media-content"),mediaVariant:{icon:"".concat(X,"__media--icon"),image:"".concat(X,"__media--image"),logo:"".concat(X,"__media--logo")},size:{s:"".concat(X,"--s"),m:"".concat(X,"--m")},cornerIcon:"".concat(X,"__corner-icon"),cornerIconVariant:{black:"".concat(X,"__corner-icon--black"),red:"".concat(X,"__corner-icon--red")},badge:"".concat(X,"__badge"),badgeVariant:{first:"".concat(X,"__badge--first"),second:"".concat(X,"__badge--second"),third:"".concat(X,"__badge--third")},content:"".concat(X,"__content"),title:"".concat(X,"__title"),subTitle:"".concat(X,"__sub-title"),caption:"".concat(X,"__caption"),captionIcon:"".concat(X,"__caption-icon"),captionText:"".concat(X,"__caption-text")}),D={first:"1 место",second:"2 место",third:"3 место"},J=e=>{let{title:t,caption:c,subTitle:o,size:i="m",media:s,mediaVariant:r="icon",captionIcon:_,badgeVariant:g,withCornerIcon:b,cornerIconVariant:h="black"}=e,p=(0,a.useMemo)(()=>{if(!g)return null;let e=D[g];return"m"===i?e:e.slice(0,1)},[g,i]);return(0,l.jsxs)("div",{className:(0,n.A)(q.cell,q.size[i]),children:[s&&(0,l.jsxs)("div",{className:(0,n.A)(q.media,q.mediaVariant[r]),children:[b&&(0,l.jsx)(m.P,{className:(0,n.A)(q.cornerIcon,q.cornerIconVariant[h]),children:(0,l.jsx)(W,{})}),(0,l.jsx)("div",{className:q.mediaContent,children:s}),p&&(0,l.jsx)("span",{className:(0,n.A)(q.badge,q.badgeVariant[g]),children:p})]}),(0,l.jsxs)("div",{className:q.content,children:[o&&(0,l.jsx)(d.C,{text:o,size:i,lineClamp:1,className:q.subTitle}),(0,l.jsx)(u.T,{className:q.title,size:"m"===i?"16":"14",lineClamp:1,children:t}),c&&(0,l.jsxs)("div",{className:q.caption,children:[_&&(0,l.jsx)(m.P,{className:q.captionIcon,children:_}),(0,l.jsx)(u.T,{className:q.captionText,size:"m"===i?"16":"14",lineClamp:1,children:c})]})]})]})};J.displayName="TableTitleCell";let K=(0,_.g)("table"),Q=Object.freeze({table:K,control:"".concat(K,"__control"),container:"".concat(K,"__container"),pagination:"".concat(K,"__pagination"),view:"".concat(K,"__view"),variant:{primary:"".concat(K,"--primary"),secondary:"".concat(K,"--secondary")},size:{s:"".concat(K,"--s"),m:"".concat(K,"--m")},stripped:"".concat(K,"--stripped"),appearance:{default:"".concat(K,"--default"),rounded:"".concat(K,"--rounded"),bordered:"".concat(K,"--bordered"),striped:"".concat(K,"--striped")},checkbox:"".concat(K,"__checkbox"),head:"".concat(K,"__head"),headCell:"".concat(K,"__head-cell"),body:"".concat(K,"__body"),bodyCell:"".concat(K,"__body-cell"),footer:"".concat(K,"__foot"),footerCell:"".concat(K,"__foot-cell"),row:"".concat(K,"__row"),rowSpacer:"".concat(K,"__row-spacer"),cell:"".concat(K,"__cell"),cellContent:"".concat(K,"__cell-content"),cellAlign:{left:"".concat(K,"__cell--align-left"),right:"".concat(K,"__cell--align-right"),center:"".concat(K,"__cell--align-center")}})}}]);