profinansy-ui-lib 3.8.81 → 3.8.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,5 @@
1
- declare const Support: () => import("react/jsx-runtime").JSX.Element;
1
+ interface IProps {
2
+ isWithoutBottom?: boolean;
3
+ }
4
+ declare const Support: ({ isWithoutBottom }: IProps) => import("react/jsx-runtime").JSX.Element;
2
5
  export { Support };
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
- export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
3
+ $isWithoutBottom: boolean;
4
+ }>> & string;
3
5
  export declare const Button: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
4
6
  $mode: string;
5
7
  }>> & string;
@@ -5132,7 +5132,7 @@ Check the top-level render call using <`+q+">.")}return G}}function e2(L,G){{if(
5132
5132
  right: 20px;
5133
5133
  @media (max-width: ${ve}px) {
5134
5134
  z-index: 2100;
5135
- bottom: 82px;
5135
+ bottom: ${({$isWithoutBottom:e})=>e?"20px":"82px"};
5136
5136
  }
5137
5137
  `,SM=h.styled.button`
5138
5138
  display: flex;
@@ -5245,7 +5245,7 @@ Check the top-level render call using <`+q+">.")}return G}}function e2(L,G){{if(
5245
5245
  & path {
5246
5246
  fill: ${e=>e.theme.icons.primary};
5247
5247
  }
5248
- `,RM=e=>d.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M24.6265 22.4401L25.1465 26.6534C25.2799 27.7601 24.0932 28.5334 23.1465 27.9601L18.5332 25.2134C18.2132 25.0267 18.1332 24.6267 18.3065 24.3067C18.9732 23.0801 19.3332 21.6934 19.3332 20.3067C19.3332 15.4267 15.1465 11.4534 9.99986 11.4534C8.94653 11.4534 7.91986 11.6134 6.95986 11.9334C6.46652 12.0934 5.98653 11.6401 6.10653 11.1334C7.31986 6.28008 11.9865 2.66675 17.5599 2.66675C24.0665 2.66675 29.3332 7.58675 29.3332 13.6534C29.3332 17.2534 27.4799 20.4401 24.6265 22.4401Z",fill:"white"}),d.createElement("path",{d:"M17.3337 20.3067C17.3337 21.8934 16.747 23.36 15.7603 24.52C14.4403 26.12 12.347 27.1467 10.0003 27.1467L6.52033 29.2134C5.93366 29.5734 5.18699 29.08 5.26699 28.4L5.60033 25.7734C3.81366 24.5334 2.66699 22.5467 2.66699 20.3067C2.66699 17.96 3.92033 15.8934 5.84033 14.6667C7.02699 13.8934 8.45366 13.4534 10.0003 13.4534C14.0537 13.4534 17.3337 16.52 17.3337 20.3067Z",fill:"white"})),PM=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M14.7691 19.75H9.25914C8.81914 19.75 8.25914 19.7 7.88914 19.32C7.52914 18.95 7.53914 18.49 7.54914 18.18V17.29C5.02914 15.61 3.36914 12.69 3.36914 9.91005C3.36914 7.28005 4.54914 4.82005 6.59914 3.17005C8.64914 1.52005 11.3391 0.900047 13.9691 1.48005C16.4691 2.03005 18.6291 3.70005 19.7491 5.95005C21.9191 10.32 19.8291 15.05 16.4891 17.3V18.05C16.4991 18.34 16.5091 18.87 16.0991 19.29C15.7891 19.59 15.3491 19.75 14.7691 19.75ZM9.03914 18.24C9.08914 18.24 9.15914 18.25 9.24914 18.25H14.7691C14.8691 18.25 14.9391 18.24 14.9791 18.23C14.9791 18.2 14.9791 18.16 14.9791 18.13V16.87C14.9791 16.61 15.1191 16.36 15.3391 16.23C18.2991 14.44 20.2591 10.35 18.3891 6.60005C17.4691 4.75005 15.6891 3.38005 13.6291 2.93005C11.4491 2.45005 9.21914 2.96005 7.51914 4.33005C5.81914 5.70005 4.84914 7.73005 4.84914 9.91005C4.84914 12.69 6.76914 15.09 8.66914 16.24C8.89914 16.38 9.02914 16.62 9.02914 16.88V18.23C9.03914 18.23 9.03914 18.23 9.03914 18.24Z",fill:"white"}),d.createElement("path",{d:"M15.4993 22.7499C15.4293 22.7499 15.3593 22.7399 15.2893 22.7199C13.1293 22.0999 10.8593 22.0999 8.69928 22.7199C8.29928 22.8299 7.88928 22.5999 7.76928 22.1999C7.64928 21.7999 7.88928 21.3899 8.28928 21.2699C10.7093 20.5799 13.2793 20.5799 15.6993 21.2699C16.0993 21.3799 16.3293 21.7999 16.2193 22.1999C16.1293 22.5399 15.8293 22.7499 15.4993 22.7499Z",fill:"white"})),jM=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M8 22.3199C7.72 22.3199 7.42998 22.2499 7.16998 22.1099C6.59998 21.8099 6.25 21.2099 6.25 20.5699V19.15C3.23 18.84 1.25 16.6199 1.25 13.4399V7.43994C1.25 3.99994 3.56 1.68994 7 1.68994H17C20.44 1.68994 22.75 3.99994 22.75 7.43994V13.4399C22.75 16.8799 20.44 19.1899 17 19.1899H13.23L8.96997 22.03C8.67997 22.22 8.34 22.3199 8 22.3199ZM7 3.17993C4.42 3.17993 2.75 4.84993 2.75 7.42993V13.43C2.75 16.01 4.42 17.68 7 17.68C7.41 17.68 7.75 18.02 7.75 18.43V20.56C7.75 20.69 7.83 20.75 7.88 20.78C7.93001 20.81 8.03001 20.84 8.14001 20.77L12.59 17.81C12.71 17.73 12.86 17.68 13.01 17.68H17.01C19.59 17.68 21.26 16.01 21.26 13.43V7.42993C21.26 4.84993 19.59 3.17993 17.01 3.17993H7Z",fill:"white"}),d.createElement("path",{d:"M11.9998 12.1099C11.5898 12.1099 11.2498 11.7699 11.2498 11.3599V11.1499C11.2498 9.9899 12.0998 9.41989 12.4198 9.19989C12.7898 8.94989 12.9098 8.7799 12.9098 8.5199C12.9098 8.0199 12.4998 7.60986 11.9998 7.60986C11.4998 7.60986 11.0898 8.0199 11.0898 8.5199C11.0898 8.9299 10.7498 9.2699 10.3398 9.2699C9.92984 9.2699 9.58984 8.9299 9.58984 8.5199C9.58984 7.1899 10.6698 6.10986 11.9998 6.10986C13.3298 6.10986 14.4098 7.1899 14.4098 8.5199C14.4098 9.6599 13.5698 10.2299 13.2598 10.4399C12.8698 10.6999 12.7498 10.8699 12.7498 11.1499V11.3599C12.7498 11.7799 12.4098 12.1099 11.9998 12.1099Z",fill:"white"}),d.createElement("path",{d:"M12 14.6001C11.58 14.6001 11.25 14.2601 11.25 13.8501C11.25 13.4401 11.59 13.1001 12 13.1001C12.41 13.1001 12.75 13.4401 12.75 13.8501C12.75 14.2601 12.42 14.6001 12 14.6001Z",fill:"white"})),HM=()=>{const e=m.useRef(null),[t,n]=m.useState(!1),[r,o]=m.useState(!1),{mode:i}=te(),{isForeignSite:a}=ce(),l=u=>{u?n(!0):(n(!1),o(!1))};_i(t,()=>l(!1),e);const c=()=>{window.open("https://profinansy.ru/account/bank-ideas","_blank")};return a?null:s.jsx(h.ThemeProvider,{theme:X[i],children:s.jsxs(LM,{id:"support-widget",ref:e,children:[s.jsx(SM,{$mode:i,onClick:()=>l(!t),children:s.jsx(RM,{})}),s.jsxs($M,{$mode:i,$isOpen:t,children:[s.jsxs(DM,{children:[s.jsx(V,{variant:"header5-Bold",tag:"h5",colorName:"contrastThemed",children:"Выберите действие"}),s.jsx(_M,{onClick:()=>l(!1),children:s.jsx(Sl,{})})]}),s.jsx(TM,{children:r?s.jsxs("div",{children:[s.jsx(V,{variant:"text-Regular",tag:"h4",marginBottom:"8px",children:"Здравствуйте!"}),s.jsx(V,{variant:"text-Regular",display:"block",marginBottom:"8px",children:"Спасибо, что вы с нами)"}),s.jsxs(V,{variant:"text-Regular",display:"block",marginBottom:"16px",children:["Для обращения в клиентскую поддержку pro.finansy перейдите по"," ",s.jsx("a",{href:"https://t.me/Profinansy_help_bot",target:"_blank",rel:"noreferrer noopener",children:"ссылке"})," ","и напишите ваш вопрос в Телеграм-бота."]}),s.jsx(V,{variant:"text-Regular",display:"block",children:"Мы обязательно вам поможем!❤"})]}):s.jsxs(s.Fragment,{children:[s.jsxs(Ac,{onClick:()=>o(!0),children:[s.jsx(Rc,{$isGreen:!0,children:s.jsx(jM,{})}),s.jsxs(Pc,{children:[s.jsx(V,{variant:"text-Bold",colorName:"primary",tag:"span",children:"Поддержка"}),s.jsx(V,{variant:"description-Regular",colorName:"fourth",tag:"span",children:"Задайте вопрос консультанту"})]})]}),s.jsxs(Ac,{onClick:c,children:[s.jsx(Rc,{children:s.jsx(PM,{})}),s.jsxs(Pc,{children:[s.jsx(V,{variant:"text-Bold",colorName:"primary",tag:"span",children:"Банк обращений"}),s.jsx(V,{variant:"description-Regular",colorName:"fourth",tag:"span",children:"Сообщите нам об ошибке или предложите идею"})]}),s.jsx(AM,{})]})]})})]})]})})},BM=(e,t)=>{switch(e){case"success":return t.stroke.positive;case"error":return t.stroke.negative;case"warning":return t.stroke.warning;case"info":return t.stroke.info;default:return t.stroke.primary}},FM=(e,t)=>{switch(e){case"success":return t.interactiveButtons.successBackground;case"error":return t.interactiveButtons.warningBackground;case"warning":return t.background.negativeTint;case"info":return t.other.lightBlueTint;default:return t.other.turquoiseTint}},VM=(e,t)=>{switch(e){case"success":return t.icons.positive;case"error":return t.icons.negative;case"warning":return t.icons.warring;case"info":return t.icons.info;default:return t.other.turquoise}},OM=h.styled.div`
5248
+ `,RM=e=>d.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M24.6265 22.4401L25.1465 26.6534C25.2799 27.7601 24.0932 28.5334 23.1465 27.9601L18.5332 25.2134C18.2132 25.0267 18.1332 24.6267 18.3065 24.3067C18.9732 23.0801 19.3332 21.6934 19.3332 20.3067C19.3332 15.4267 15.1465 11.4534 9.99986 11.4534C8.94653 11.4534 7.91986 11.6134 6.95986 11.9334C6.46652 12.0934 5.98653 11.6401 6.10653 11.1334C7.31986 6.28008 11.9865 2.66675 17.5599 2.66675C24.0665 2.66675 29.3332 7.58675 29.3332 13.6534C29.3332 17.2534 27.4799 20.4401 24.6265 22.4401Z",fill:"white"}),d.createElement("path",{d:"M17.3337 20.3067C17.3337 21.8934 16.747 23.36 15.7603 24.52C14.4403 26.12 12.347 27.1467 10.0003 27.1467L6.52033 29.2134C5.93366 29.5734 5.18699 29.08 5.26699 28.4L5.60033 25.7734C3.81366 24.5334 2.66699 22.5467 2.66699 20.3067C2.66699 17.96 3.92033 15.8934 5.84033 14.6667C7.02699 13.8934 8.45366 13.4534 10.0003 13.4534C14.0537 13.4534 17.3337 16.52 17.3337 20.3067Z",fill:"white"})),PM=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M14.7691 19.75H9.25914C8.81914 19.75 8.25914 19.7 7.88914 19.32C7.52914 18.95 7.53914 18.49 7.54914 18.18V17.29C5.02914 15.61 3.36914 12.69 3.36914 9.91005C3.36914 7.28005 4.54914 4.82005 6.59914 3.17005C8.64914 1.52005 11.3391 0.900047 13.9691 1.48005C16.4691 2.03005 18.6291 3.70005 19.7491 5.95005C21.9191 10.32 19.8291 15.05 16.4891 17.3V18.05C16.4991 18.34 16.5091 18.87 16.0991 19.29C15.7891 19.59 15.3491 19.75 14.7691 19.75ZM9.03914 18.24C9.08914 18.24 9.15914 18.25 9.24914 18.25H14.7691C14.8691 18.25 14.9391 18.24 14.9791 18.23C14.9791 18.2 14.9791 18.16 14.9791 18.13V16.87C14.9791 16.61 15.1191 16.36 15.3391 16.23C18.2991 14.44 20.2591 10.35 18.3891 6.60005C17.4691 4.75005 15.6891 3.38005 13.6291 2.93005C11.4491 2.45005 9.21914 2.96005 7.51914 4.33005C5.81914 5.70005 4.84914 7.73005 4.84914 9.91005C4.84914 12.69 6.76914 15.09 8.66914 16.24C8.89914 16.38 9.02914 16.62 9.02914 16.88V18.23C9.03914 18.23 9.03914 18.23 9.03914 18.24Z",fill:"white"}),d.createElement("path",{d:"M15.4993 22.7499C15.4293 22.7499 15.3593 22.7399 15.2893 22.7199C13.1293 22.0999 10.8593 22.0999 8.69928 22.7199C8.29928 22.8299 7.88928 22.5999 7.76928 22.1999C7.64928 21.7999 7.88928 21.3899 8.28928 21.2699C10.7093 20.5799 13.2793 20.5799 15.6993 21.2699C16.0993 21.3799 16.3293 21.7999 16.2193 22.1999C16.1293 22.5399 15.8293 22.7499 15.4993 22.7499Z",fill:"white"})),jM=e=>d.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M8 22.3199C7.72 22.3199 7.42998 22.2499 7.16998 22.1099C6.59998 21.8099 6.25 21.2099 6.25 20.5699V19.15C3.23 18.84 1.25 16.6199 1.25 13.4399V7.43994C1.25 3.99994 3.56 1.68994 7 1.68994H17C20.44 1.68994 22.75 3.99994 22.75 7.43994V13.4399C22.75 16.8799 20.44 19.1899 17 19.1899H13.23L8.96997 22.03C8.67997 22.22 8.34 22.3199 8 22.3199ZM7 3.17993C4.42 3.17993 2.75 4.84993 2.75 7.42993V13.43C2.75 16.01 4.42 17.68 7 17.68C7.41 17.68 7.75 18.02 7.75 18.43V20.56C7.75 20.69 7.83 20.75 7.88 20.78C7.93001 20.81 8.03001 20.84 8.14001 20.77L12.59 17.81C12.71 17.73 12.86 17.68 13.01 17.68H17.01C19.59 17.68 21.26 16.01 21.26 13.43V7.42993C21.26 4.84993 19.59 3.17993 17.01 3.17993H7Z",fill:"white"}),d.createElement("path",{d:"M11.9998 12.1099C11.5898 12.1099 11.2498 11.7699 11.2498 11.3599V11.1499C11.2498 9.9899 12.0998 9.41989 12.4198 9.19989C12.7898 8.94989 12.9098 8.7799 12.9098 8.5199C12.9098 8.0199 12.4998 7.60986 11.9998 7.60986C11.4998 7.60986 11.0898 8.0199 11.0898 8.5199C11.0898 8.9299 10.7498 9.2699 10.3398 9.2699C9.92984 9.2699 9.58984 8.9299 9.58984 8.5199C9.58984 7.1899 10.6698 6.10986 11.9998 6.10986C13.3298 6.10986 14.4098 7.1899 14.4098 8.5199C14.4098 9.6599 13.5698 10.2299 13.2598 10.4399C12.8698 10.6999 12.7498 10.8699 12.7498 11.1499V11.3599C12.7498 11.7799 12.4098 12.1099 11.9998 12.1099Z",fill:"white"}),d.createElement("path",{d:"M12 14.6001C11.58 14.6001 11.25 14.2601 11.25 13.8501C11.25 13.4401 11.59 13.1001 12 13.1001C12.41 13.1001 12.75 13.4401 12.75 13.8501C12.75 14.2601 12.42 14.6001 12 14.6001Z",fill:"white"})),HM=({isWithoutBottom:e=!1})=>{const t=m.useRef(null),[n,r]=m.useState(!1),[o,i]=m.useState(!1),{mode:a}=te(),{isForeignSite:l}=ce(),c=f=>{f?r(!0):(r(!1),i(!1))};_i(n,()=>c(!1),t);const u=()=>{window.open("https://profinansy.ru/account/bank-ideas","_blank")};return l?null:s.jsx(h.ThemeProvider,{theme:X[a],children:s.jsxs(LM,{id:"support-widget",ref:t,$isWithoutBottom:e,children:[s.jsx(SM,{$mode:a,onClick:()=>c(!n),children:s.jsx(RM,{})}),s.jsxs($M,{$mode:a,$isOpen:n,children:[s.jsxs(DM,{children:[s.jsx(V,{variant:"header5-Bold",tag:"h5",colorName:"contrastThemed",children:"Выберите действие"}),s.jsx(_M,{onClick:()=>c(!1),children:s.jsx(Sl,{})})]}),s.jsx(TM,{children:o?s.jsxs("div",{children:[s.jsx(V,{variant:"text-Regular",tag:"h4",marginBottom:"8px",children:"Здравствуйте!"}),s.jsx(V,{variant:"text-Regular",display:"block",marginBottom:"8px",children:"Спасибо, что вы с нами)"}),s.jsxs(V,{variant:"text-Regular",display:"block",marginBottom:"16px",children:["Для обращения в клиентскую поддержку pro.finansy перейдите по"," ",s.jsx("a",{href:"https://t.me/Profinansy_help_bot",target:"_blank",rel:"noreferrer noopener",children:"ссылке"})," ","и напишите ваш вопрос в Телеграм-бота."]}),s.jsx(V,{variant:"text-Regular",display:"block",children:"Мы обязательно вам поможем!❤"})]}):s.jsxs(s.Fragment,{children:[s.jsxs(Ac,{onClick:()=>i(!0),children:[s.jsx(Rc,{$isGreen:!0,children:s.jsx(jM,{})}),s.jsxs(Pc,{children:[s.jsx(V,{variant:"text-Bold",colorName:"primary",tag:"span",children:"Поддержка"}),s.jsx(V,{variant:"description-Regular",colorName:"fourth",tag:"span",children:"Задайте вопрос консультанту"})]})]}),s.jsxs(Ac,{onClick:u,children:[s.jsx(Rc,{children:s.jsx(PM,{})}),s.jsxs(Pc,{children:[s.jsx(V,{variant:"text-Bold",colorName:"primary",tag:"span",children:"Банк обращений"}),s.jsx(V,{variant:"description-Regular",colorName:"fourth",tag:"span",children:"Сообщите нам об ошибке или предложите идею"})]}),s.jsx(AM,{})]})]})})]})]})})},BM=(e,t)=>{switch(e){case"success":return t.stroke.positive;case"error":return t.stroke.negative;case"warning":return t.stroke.warning;case"info":return t.stroke.info;default:return t.stroke.primary}},FM=(e,t)=>{switch(e){case"success":return t.interactiveButtons.successBackground;case"error":return t.interactiveButtons.warningBackground;case"warning":return t.background.negativeTint;case"info":return t.other.lightBlueTint;default:return t.other.turquoiseTint}},VM=(e,t)=>{switch(e){case"success":return t.icons.positive;case"error":return t.icons.negative;case"warning":return t.icons.warring;case"info":return t.icons.info;default:return t.other.turquoise}},OM=h.styled.div`
5249
5249
  position: relative;
5250
5250
  width: 388px;
5251
5251
  border-radius: 12px;
@@ -6788,7 +6788,7 @@ Check the top-level render call using <`+q+">.")}return G}}function e2(L,G){{if(
6788
6788
  border-radius: 8px;
6789
6789
  background-color: ${({theme:e})=>e.background.content};
6790
6790
  @media (max-width: 600px) {
6791
- max-width: 277px;
6791
+ max-width: 300px;
6792
6792
  }
6793
6793
  }
6794
6794