profinansy-ui-lib 4.1.24 → 4.1.25
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.
|
@@ -6751,9 +6751,18 @@ Check the top-level render call using <`+me+">.")}return oe}}function lr(F,oe){{
|
|
|
6751
6751
|
position: relative;
|
|
6752
6752
|
width: 100%;
|
|
6753
6753
|
font-family: Manrope, sans-serif;
|
|
6754
|
+
|
|
6755
|
+
.special-label {
|
|
6756
|
+
display: none;
|
|
6757
|
+
}
|
|
6754
6758
|
}
|
|
6755
6759
|
|
|
6756
6760
|
.ui-phone-button {
|
|
6761
|
+
position: absolute;
|
|
6762
|
+
top: 0;
|
|
6763
|
+
bottom: 0;
|
|
6764
|
+
left: 0;
|
|
6765
|
+
z-index: 1;
|
|
6757
6766
|
pointer-events: ${e=>e.$disabled?"none":"auto"};
|
|
6758
6767
|
background: ${e=>e.$useFieldBackground?e.theme.background.field:e.theme.background.primary} !important;
|
|
6759
6768
|
border: ${e=>el(e.$useFieldBackground,e.theme.stroke,e.$error)} !important;
|
|
@@ -6896,7 +6905,7 @@ Check the top-level render call using <`+me+">.")}return oe}}function lr(F,oe){{
|
|
|
6896
6905
|
}
|
|
6897
6906
|
}
|
|
6898
6907
|
}
|
|
6899
|
-
`,Ld=e=>e?e.startsWith("+")?e:`+${e}`:"",Q6=({name:e,value:t,placeholder:n,disabled:r=!1,country:o,useFieldBackground:i=!1,dropdownMaxHeight:s,error:l,onChange:c})=>{const{mode:u}=ye(),{locale:p}=be(),[h,g]=m.useState(Ld(t));m.useEffect(()=>{const C=Ld(t);C!==h&&g(C)},[h,t]);const x=o||(p===cn.ru?"ru":"ae"),v=(C,b={})=>{const y=C||"",k="countryCode"in b&&typeof b.countryCode=="string"?b.countryCode:void 0;g(y),c(y.replace(/[^0-9]/g,""),k)};return a.jsx(f.ThemeProvider,{theme:he[u],children:a.jsxs(vS,{$disabled:r,$useFieldBackground:i,$dropdownMaxHeight:s,$error:!!l,children:[a.jsx(mS,{country:x,value:h,placeholder:n||"+7 999 123 45 67",disabled:r,onChange:v,containerClass:"ui-phone-container",buttonClass:"ui-phone-button",inputClass:"ui-phone-input",dropdownClass:"ui-phone-dropdown",inputProps:{name:e,autoComplete:"tel","aria-invalid":!!l||void 0,"aria-describedby":l&&typeof l!="boolean"?`${e}-error`:void 0}}),l&&typeof l!="boolean"?a.jsx(oi,{text:l,id:`${e}-error`}):null]})})},$d=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{transform:"rotate(90 10 10)"},d.createElement("path",{d:"M10.0001 3.33317L15.0001 3.33317C16.8417 3.33317 18.3334 4.82484 18.3334 6.6665L18.3334 13.3332C18.3334 15.1748 16.8417 16.6665 15.0001 16.6665L10.0001 16.6665C9.54175 16.6665 9.16675 16.2915 9.16675 15.8332L9.16675 14.1915C9.16675 13.7332 9.54175 13.3582 10.0001 13.3582L12.6167 13.3582C13.2334 13.3582 13.8001 13.0165 14.0917 12.4748C14.2251 12.2332 14.2917 11.9665 14.2917 11.6915C14.2917 11.3748 14.2001 11.0582 14.0167 10.7832L13.5001 9.9915L13.9917 9.25817C14.3334 8.74984 14.3751 8.09984 14.0834 7.55817C13.7917 7.00817 13.2334 6.6665 12.6084 6.6665L10.0001 6.6665C9.54175 6.66651 9.16675 6.29151 9.16675 5.83317L9.16675 4.16651C9.16675 3.70817 9.54175 3.33317 10.0001 3.33317Z",fill:"white"}),d.createElement("path",{d:"M5.83341 2.08317L6.66675 2.08317C7.58341 2.08317 8.33341 2.52484 8.33341 3.74984L8.33342 16.2498C8.33342 17.5248 7.58342 17.9165 6.66675 17.9165L5.83342 17.9165C4.91675 17.9165 4.16675 17.5248 4.16675 16.2498L4.16675 3.74984C4.16675 2.52484 4.91675 2.08317 5.83341 2.08317Z",fill:"white"}),d.createElement("path",{d:"M4.16662 10.3L4.16662 14.9C3.85829 15.1834 3.38329 15.175 3.08329 14.875L1.89995 13.6917C1.59162 13.3834 1.59162 12.875 1.89995 12.5667L4.16662 10.3Z",fill:"white"}),d.createElement("path",{d:"M4.16662 5.1085L4.16662 9.7085L1.89995 7.44183C1.59162 7.1335 1.59162 6.62516 1.89995 6.31683L3.08329 5.1335C3.38329 4.8335 3.85829 4.82516 4.16662 5.1085Z",fill:"white"}),d.createElement("path",{d:"M9.16675 8.35814C9.16675 7.89981 9.54175 7.52481 10.0001 7.52481L12.6084 7.5248C13.2751 7.5248 13.6751 8.26647 13.3001 8.81647L12.8001 9.56647C12.6167 9.84147 12.6167 10.1998 12.8001 10.4831L13.3167 11.2665C13.6834 11.8165 13.2834 12.5498 12.6251 12.5498L10.0001 12.5498C9.54175 12.5498 9.16675 12.1748 9.16675 11.7165L9.16675 8.35814Z",fill:"white"}))),CS=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2149 19.9429C8.25211 19.9429 7.33999 19.6551 5.75453 18.504C4.75166 19.799 1.57594 20.8111 1.43743 19.0796C1.43743 17.7798 1.1509 16.6815 0.826161 15.4824C0.439353 14.0051 0 12.36 0 9.97627C0 4.28308 4.65138 0 10.1623 0C15.6781 0 19.9999 4.49411 19.9999 10.029C20.0184 15.4783 15.6406 19.9139 10.2149 19.9429ZM10.2961 4.92097C7.61221 4.78189 5.52051 6.64765 5.05729 9.57338C4.67525 11.9955 5.35338 14.9452 5.93121 15.0987C6.20819 15.1658 6.90543 14.5999 7.33999 14.1634C8.05859 14.662 8.89538 14.9614 9.76598 15.0315C12.5469 15.1659 14.9231 13.0396 15.1098 10.2497C15.2185 7.45382 13.0773 5.08578 10.2961 4.92578V4.92097Z",fill:"white"})),bS=e=>d.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_23252_1904)"},d.createElement("path",{d:"M0.00580816 5.75744C0.0136645 5.59339 0.0288965 5.40587 0.0464267 5.25738C0.0605213 5.13799 0.0638046 5.11154 0.0670175 5.09106C0.0689053 5.07899 0.0729039 5.05324 0.0759057 5.03382C0.135532 4.64747 0.208526 4.339 0.322971 3.98958C0.551451 3.29199 0.882837 2.67723 1.32983 2.12171C1.56784 1.82592 1.9217 1.47487 2.19817 1.26025C2.5902 0.955933 2.94155 0.74146 3.36783 0.546249C3.67548 0.405373 4.07212 0.267404 4.39385 0.189359C4.61452 0.135835 4.873 0.0854523 5.02998 0.0653794C5.05416 0.0622849 5.09374 0.0570725 5.11792 0.0538133C5.618 -0.0137478 6.19305 -0.0179365 6.65988 0.0426237C6.68406 0.0457535 6.72466 0.0510129 6.75007 0.0542957C6.84629 0.0667089 7.04774 0.103102 7.16996 0.130128C7.59293 0.223657 7.99744 0.364086 8.3999 0.557121C8.81726 0.757309 9.2836 1.06698 9.63806 1.37933C9.99359 1.6926 10.2935 2.02424 10.5595 2.39821C10.9586 2.95936 11.2544 3.57574 11.443 4.23961C11.519 4.50723 11.5653 4.7221 11.6075 5.00441C11.6181 5.07472 11.6217 5.10334 11.6374 5.23973C11.6429 5.28772 11.6509 5.38621 11.6611 5.53422C11.6687 5.64297 11.6685 6.03378 11.6608 6.16212C11.6222 6.81009 11.4909 7.40493 11.2555 7.99888C11.1343 8.30453 10.9583 8.65514 10.7934 8.91958C10.0506 10.1106 8.84011 11.0236 7.46018 11.4337C7.3773 11.4583 7.16185 11.5147 7.10903 11.5255C7.09578 11.5282 7.05329 11.5373 7.01459 11.5456C6.90572 11.5691 6.73012 11.599 6.61444 11.6137C6.49702 11.6287 6.47138 11.6316 6.40778 11.6373C6.22062 11.654 6.14565 11.6571 5.92701 11.6571C5.66864 11.6571 5.54635 11.6501 5.31726 11.6222C5.15728 11.6027 4.96234 11.5691 4.8453 11.5409C4.83885 11.5393 4.80982 11.5325 4.7808 11.5257C4.48904 11.4575 4.18309 11.325 3.84908 11.122C3.8019 11.0933 3.75478 11.0647 3.74438 11.0584C3.72712 11.0479 3.67806 11.0164 3.56717 10.9444C3.5446 10.9297 3.48687 10.8918 3.43891 10.86C3.39094 10.8282 3.34961 10.8022 3.34706 10.8022C3.34453 10.8022 3.32538 10.8227 3.30452 10.8478C3.2393 10.9262 3.13559 11.0228 3.0269 11.1061C2.92168 11.1868 2.73315 11.3015 2.57926 11.3785C2.0931 11.6217 1.64401 11.7141 1.28974 11.6438C1.24514 11.6349 1.1417 11.5988 1.10878 11.5805C0.963441 11.5 0.883787 11.3822 0.852924 11.2022C0.847659 11.1715 0.84216 11.1397 0.840694 11.1316C0.83924 11.1235 0.834116 11.007 0.829308 10.8728C0.8245 10.7385 0.818016 10.6087 0.814897 10.5845C0.811778 10.5602 0.80622 10.5152 0.802549 10.4845C0.786028 10.3461 0.76498 10.2075 0.730177 10.0079C0.712389 9.90595 0.649561 9.60543 0.620223 9.48205C0.61015 9.43963 0.599773 9.39434 0.597182 9.3814C0.591799 9.35447 0.474622 8.88587 0.439034 8.74897C0.411666 8.6437 0.266698 8.0632 0.254644 8.01065C0.250188 7.99124 0.239881 7.94623 0.231732 7.91064C0.133187 7.4801 0.0708753 7.11767 0.0344898 6.76344C0.00367403 6.46352 -0.00814569 6.0488 0.00580816 5.75744ZM8.82011 5.58855C8.7791 5.15471 8.64681 4.74253 8.42402 4.35433C8.17806 3.92575 7.80959 3.54819 7.39275 3.29761C6.99626 3.05927 6.57037 2.92064 6.08238 2.87109C5.96314 2.85898 5.60268 2.86076 5.48143 2.87406C5.21218 2.90358 4.98645 2.96077 4.75504 3.05814C4.24392 3.2732 3.80724 3.64707 3.47347 4.15541C3.44439 4.1997 3.41548 4.2447 3.40923 4.25542C3.21585 4.58724 3.09144 4.88731 3.01334 5.21031C2.97834 5.3551 2.97427 5.37453 2.94855 5.51917C2.88994 5.8486 2.86 6.38969 2.87819 6.78992C2.91156 7.52377 3.02078 8.08079 3.22052 8.53589C3.31282 8.74622 3.41102 8.82679 3.54468 8.80185C3.67294 8.77792 3.82058 8.68439 4.04266 8.48638C4.18262 8.36159 4.27367 8.28421 4.28056 8.28421C4.28313 8.28421 4.31098 8.30097 4.34246 8.32144C4.69842 8.55293 5.08224 8.69965 5.48433 8.75792C5.74684 8.79597 6.03812 8.79291 6.31104 8.74926C6.96205 8.64511 7.6075 8.28781 8.05976 7.78121C8.48573 7.30406 8.73823 6.75949 8.81127 6.16043C8.83082 6.00014 8.83478 5.74364 8.82011 5.58855Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_23252_1904"},d.createElement("rect",{width:11.6667,height:11.6667,fill:"white"})))),yS=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.3333 1.62012L4.66658 1.62012C2.66659 1.62012 1.33325 2.95345 1.33325 4.95345L1.33325 8.95345C1.33325 10.9535 2.66659 12.2868 4.66658 12.2868V13.7068C4.66658 14.2401 5.25992 14.5601 5.69992 14.2601L8.66658 12.2868H11.3333C13.3333 12.2868 14.6666 10.9535 14.6666 8.95345L14.6666 4.95345C14.6666 2.95345 13.3333 1.62012 11.3333 1.62012ZM7.99992 9.73345C7.71992 9.73345 7.49992 9.50678 7.49992 9.23345C7.49992 8.96012 7.71992 8.73345 7.99992 8.73345C8.27992 8.73345 8.49992 8.96012 8.49992 9.23345C8.49992 9.50678 8.27992 9.73345 7.99992 9.73345ZM8.83992 6.96678C8.57992 7.14012 8.49992 7.25345 8.49992 7.44012V7.58012C8.49992 7.85345 8.27325 8.08012 7.99992 8.08012C7.72658 8.08012 7.49992 7.85345 7.49992 7.58012V7.44012C7.49992 6.66678 8.06659 6.28678 8.27992 6.14012C8.52659 5.97345 8.60658 5.86012 8.60658 5.68678C8.60658 5.35345 8.33325 5.08012 7.99992 5.08012C7.66658 5.08012 7.39325 5.35345 7.39325 5.68678C7.39325 5.96012 7.16658 6.18678 6.89325 6.18678C6.61992 6.18678 6.39325 5.96012 6.39325 5.68678C6.39325 4.80012 7.11325 4.08012 7.99992 4.08012C8.88658 4.08012 9.60658 4.80012 9.60658 5.68678C9.60658 6.44678 9.04659 6.82678 8.83992 6.96678Z",fill:"#6553F5"})),wS=e=>d.createElement("svg",{width:10,height:9,viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M9.5 0.301113L7.99729 8.14614C7.99729 8.14614 7.78703 8.69006 7.20945 8.4292L3.74229 5.67629L3.72621 5.66818C4.19454 5.2327 7.8262 1.85133 7.98492 1.69806C8.23063 1.46068 8.07809 1.31936 7.7928 1.49868L2.4284 5.02649L0.358819 4.30538C0.358819 4.30538 0.0331287 4.18541 0.00179642 3.92455C-0.0299481 3.66327 0.369538 3.52195 0.369538 3.52195L8.80657 0.0944738C8.80657 0.0944738 9.5 -0.221035 9.5 0.301113V0.301113Z",fill:"#FEFEFE"})),kS=e=>d.createElement("svg",{width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M22 0.7085L18.52 19.1674C18.52 19.1674 18.0331 20.4472 16.6956 19.8334L8.66635 13.356L8.62912 13.3369C9.71368 12.3122 18.1238 4.35607 18.4914 3.99544C19.0604 3.4369 18.7072 3.10439 18.0465 3.5263L5.62365 11.827L0.83095 10.1303C0.83095 10.1303 0.076719 9.84803 0.00416013 9.23424C-0.0693535 8.61945 0.855772 8.28694 0.855772 8.28694L20.3942 0.222291C20.3942 0.222291 22 -0.520082 22 0.7085Z",fill:"white"})),_S=e=>d.createElement("svg",{width:28,height:18,viewBox:"0 0 28 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M15.2505 18C5.68395 18 0.227358 11.2432 0 0H4.79201C4.94941 8.25225 8.4822 11.7477 11.2805 12.4685V0H15.7926V7.11712C18.5559 6.81081 21.4591 3.56757 22.4385 0H26.9507C26.5816 1.85024 25.8459 3.60213 24.7897 5.14607C23.7334 6.69002 22.3793 7.99282 20.812 8.97297C22.5615 9.86857 24.1067 11.1362 25.3457 12.6922C26.5848 14.2483 27.4894 16.0573 28 18H23.0331C22.5748 16.3126 21.6432 14.8022 20.3552 13.6579C19.0672 12.5137 17.4801 11.7865 15.7926 11.5676V18H15.2505Z",fill:"white"})),ES=e=>d.createElement("svg",{width:11,height:11,viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M8.96341 1.53125C7.97561 0.546875 6.65854 0 5.26829 0C2.37805 0 0.0365848 2.33333 0.0365848 5.21354C0.0365848 6.125 0.292683 7.03646 0.731707 7.80208L0 10.5L2.78049 9.77083C3.54878 10.1719 4.39024 10.3906 5.26829 10.3906C8.15854 10.3906 10.5 8.05729 10.5 5.17708C10.4634 3.82813 9.95122 2.51562 8.96341 1.53125ZM7.79268 7.07292C7.68293 7.36458 7.17073 7.65625 6.91463 7.69271C6.69512 7.72917 6.40244 7.72917 6.10976 7.65625C5.92683 7.58333 5.67073 7.51042 5.37805 7.36458C4.06098 6.81771 3.21951 5.50521 3.14634 5.39583C3.07317 5.32292 2.59756 4.70312 2.59756 4.04687C2.59756 3.39062 2.92683 3.09896 3.03658 2.95312C3.14634 2.80729 3.29268 2.80729 3.40244 2.80729C3.47561 2.80729 3.58536 2.80729 3.65853 2.80729C3.73171 2.80729 3.84146 2.77083 3.95122 3.02604C4.06098 3.28125 4.31707 3.9375 4.35366 3.97396C4.39024 4.04687 4.39024 4.11979 4.35366 4.19271C4.31707 4.26563 4.28049 4.33854 4.20732 4.41146C4.13414 4.48437 4.06097 4.59375 4.02439 4.63021C3.95122 4.70312 3.87805 4.77604 3.95122 4.88542C4.02439 5.03125 4.28049 5.43229 4.68293 5.79687C5.19512 6.23437 5.59756 6.38021 5.7439 6.45313C5.89024 6.52604 5.96341 6.48958 6.03658 6.41667C6.10975 6.34375 6.36585 6.05208 6.43902 5.90625C6.5122 5.76042 6.62195 5.79688 6.73171 5.83333C6.84146 5.86979 7.5 6.19792 7.60976 6.27083C7.7561 6.34375 7.82927 6.38021 7.86585 6.41667C7.90244 6.52604 7.90244 6.78125 7.79268 7.07292Z",fill:"white"})),Md=()=>Math.random()<.5?"A":"B",LS=()=>{if(typeof window>"u")return"A";try{const e=sessionStorage.getItem(xd);if(e==="A"||e==="B")return e;const t=Md();return sessionStorage.setItem(xd,t),t}catch{return Md()}},$S=({autoOpen:e=!0,copy:t,metrikaGoals:n})=>{const{mode:r}=ye(),{locale:o,isForeignSite:i}=be(),{pathname:s,userRole:l,hostnames:c,user:u}=Ae(),{isCompactLayout:p,isMobileLayout:h}=pS(),g=!p,x=l==="guest",v=o===cn.ru&&!i,C=m.useMemo(()=>!tI(s),[s]),b=v&&C,y=t||rI,[k,w]=m.useState(!1),[E,_]=m.useState(()=>Cd()),{isAllowed:L,isLoading:$,registerView:S}=dS(b&&!E),{isAllowed:T,isLoading:O}=uS(b&&!E,x),X=b&&L&&T,[N,z]=m.useState(()=>bd()&&!Cd()),[j,B]=m.useState("intro"),A=E&&j==="final",I=X||A||k,[P]=m.useState(()=>LS()),R=m.useMemo(()=>cI(n),[n]),[H,V]=m.useState({}),[Q,fe]=m.useState(""),[G,M]=m.useState(""),[J,re]=m.useState(""),[ee,ge]=m.useState(o===cn.ru?"ru":"ae"),[we,Ie]=m.useState(!1),[ie,He]=m.useState(!1),[Re,W]=m.useState(!1),[K,U]=m.useState(!1),[te,le]=m.useState(null),[xe,Ee]=m.useState(""),_e=m.useRef(!1),ce=m.useRef(!1);m.useEffect(()=>{if(!X||E)return;bd()&&z(!0);const ae=XM();e&&!ae&&(UM(),w(!0))},[e,X,E]),m.useEffect(()=>{!X&&!A&&!k&&(w(!1),z(!1))},[X,A,k]);const de=m.useMemo(()=>aI({goal:H.goal,experience:H.experience,barrier:H.barrier}),[H.goal,H.experience,H.barrier]);m.useEffect(()=>{k&&!_e.current&&R("offerView",void 0,P),_e.current=k},[k,R,P]),m.useEffect(()=>{const ae=N&&!k&&!E;ae&&!ce.current&&R("returnIconView",void 0,P),ce.current=ae},[N,k,E,R,P]),m.useEffect(()=>{if(!k)return;const ae=vI(j);if(ae){R(ae,void 0,P);return}j==="leadForm"&&(R("awOfferView",{funnel_id:de.id},P),R(mI(de.id),{funnel_id:de.id},P))},[k,j,de.id,R,P]);const $e=m.useMemo(()=>Nl(j)?OI(j):null,[j]),pe=Nl(j)?j:null,ke=m.useMemo(()=>g$(j,p),[j,p]),tt=()=>{E||R("popupClose",void 0,P),w(!1),E||(JM(),z(!0))},Ht=()=>{R("returnIconClick",void 0,P),w(!0)},Ct=()=>{R("startClick",void 0,P),B("question1")},Ut=(ae,Le)=>{const st=CI(j);st&&R(st,{question_id:ae,answer_id:Le},P),V(Je=>({...Je,[ae]:Le}))},sn=()=>{!bt||!H[bt.id]||(j==="question1"?B("question2"):j==="question2"?B("question3"):j==="question3"&&B("leadForm"))},$n=()=>{if(j==="question2")return B("question1");if(j==="question3")return B("question2");if(j==="leadForm")return B("question3");if(j==="final")return B("leadForm")},pt=m.useMemo(()=>oS({name:Q,email:G,phone:J,phoneCountry:ee,isPrivacyAccepted:we,isMailingAccepted:ie}),[Q,G,J,ee,we,ie]),Rn=!iS(pt),pn=ae=>Re&&!!pt[ae],Vt=m.useMemo(()=>RI({bases:BI(de.tildaSubmit),ulid:te,search:xe||(typeof window<"u"?window.location.search:"")}),[de.tildaSubmit,te,xe]),Qt=(ae,Le)=>{if(!ae)return;const st=xI(de.id,Le);st&&R(st,{funnel_id:de.id},P),window.open(ae,"_blank","noopener,noreferrer")},Pn=async()=>{if(!K){if(!Rn){W(!0);return}U(!0);try{typeof window<"u"&&Ee(window.location.search);const ae=HI(de.tildaSubmit,{name:Q.trim(),email:G.trim(),phone:J.trim()},{internalReferrerHosts:wd(c)}),Le=await NI(ae);Le?.id!=null&&le(String(Le.id)),await II(u,{name:Q.trim(),email:G.trim(),phone:J.trim()},de.crmPayloads,x);const st=typeof window<"u"?window.location.href:s;await UI(JI({url:st,fio:Q.trim(),email:G.trim(),phone:J.trim(),questions:y.questions,answers:H,internalReferrerHosts:wd(c)})),R("registrationSuccess",{funnel_id:de.id},P),R(gI(de.id),{funnel_id:de.id},P),S(),QM(),qM(),_(!0),z(!1),B("final")}finally{U(!1)}}},bt=pe===null?null:y.questions[X6(pe)],gt=H6[P],$r=!!bt&&!!H[bt.id],Yr=ae=>{switch(ae){case"telegram":return a.jsx(wS,{});case"whatsapp":return a.jsx(ES,{});case"max":return a.jsx(bS,{});default:return null}},sr=()=>a.jsxs(TM,{children:[a.jsx(RM,{"aria-hidden":!0,children:a.jsx(PM,{children:a.jsx(yS,{})})}),a.jsxs(BM,{children:["Остались вопросы? Напишите"," ",a.jsx(HM,{children:a.jsx(ni,{placement:"right",width:"240px",height:"auto",padding:"10px",borderRadius:"12px",zIndex:Cn.zIndex8,boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.04), 0 0 4px 0 rgba(0, 0, 0, 0.06)",targetElement:a.jsx(ZM,{type:"button",children:"менеджеру pro.finansy"}),children:a.jsx(VM,{children:nI.map(ae=>a.jsxs(NM,{href:ae.href,target:"_blank",rel:"noopener noreferrer",children:[a.jsx(OM,{children:ae.label}),a.jsx(WM,{$variant:ae.messenger,"aria-hidden":!0,children:Yr(ae.messenger)})]},ae.href))})})})]})]}),fn=()=>a.jsxs(bM,{children:[a.jsx(yM,{children:a.jsx(Y,{variant:"text-Regular",tag:"div",colorCategory:"nav",color:"#E1E0EB",children:de.leadHeading})}),!!de.leadParagraphs.length&&a.jsx(wM,{children:de.leadParagraphs.map(ae=>a.jsx(Y,{variant:p?"header6-Bold":"header5-Bold",tag:"div",colorName:"contrastThemed",children:ae},ae))}),!!de.leadBullets.length&&a.jsxs(kM,{children:[a.jsx(_M,{children:de.leadBulletsLabel||"Внутри:"}),a.jsx(EM,{children:de.leadBullets.map(ae=>a.jsx("li",{children:ae},ae))})]})]}),bn=()=>a.jsxs(MM,{children:[a.jsx(fd,{$hasError:pn("privacy"),children:a.jsx(Or,{name:"privacy",size:"L",checked:we,onChange:Ie,htmlText:a.jsxs(hd,{children:["Согласен с политикой"," ",a.jsx(md,{href:"https://profinansy.ru/docs/privacy-policy",target:"_blank",rel:"noopener noreferrer",onClick:ae=>ae.stopPropagation(),children:"обработки персональных данных"})]})})}),a.jsx(fd,{$hasError:pn("mailing"),children:a.jsx(Or,{name:"mailing",size:"L",checked:ie,onChange:He,verticalAlign:"start",htmlText:a.jsxs(hd,{children:["Я согласен на получение"," ",a.jsx(md,{href:"https://profinansy.ru/docs/consent-mailings",target:"_blank",rel:"noopener noreferrer",onClick:ae=>ae.stopPropagation(),children:"рекламно-информационных сообщений (рассылок)"})]})})})]}),lr=()=>a.jsxs(a.Fragment,{children:[a.jsx(LM,{children:de.formCallout}),a.jsxs(SM,{children:[a.jsx(kr,{name:"name",value:Q,onChange:fe,placeholder:y.leadForm.namePlaceholder,error:pn("name")}),a.jsx(kr,{name:"email",value:G,onChange:M,placeholder:y.leadForm.emailPlaceholder,error:pn("email")}),a.jsx($M,{children:a.jsx(Q6,{name:"phone",value:J,country:ee,onChange:(ae,Le)=>{re(ae),Le&&ge(Le)},placeholder:y.leadForm.phonePlaceholder,useFieldBackground:!0,dropdownMaxHeight:m$,error:pn("phone")})})]}),bn(),!!de.formGiftText&&a.jsxs(DM,{children:[a.jsx(jM,{children:a.jsx(AM,{"aria-hidden":!0,children:a.jsx($d,{})})}),a.jsx(FM,{children:de.formGiftText})]})]}),Bn=()=>a.jsx(ut,{size:"L",text:de.submitButtonText,width:h?"100%":"273px",disabled:K,loading:K,onClick:Pn}),Xr=(ae=!1)=>ae?a.jsxs(CM,{children:[a.jsxs(Us,{type:"button",$variant:"telegram",disabled:!Vt.telegram,onClick:()=>Qt(Vt.telegram,"telegram"),children:[a.jsx(Qs,{children:y.final.telegramText}),a.jsx(Js,{$variant:"telegram","aria-hidden":!0,children:a.jsx(kS,{})})]}),!!Vt.vk&&a.jsxs(Us,{type:"button",$variant:"vk",onClick:()=>Qt(Vt.vk,"vk"),children:[a.jsx(Qs,{children:y.final.vkText||"Смотреть в ВК"}),a.jsx(Js,{$variant:"vk","aria-hidden":!0,children:a.jsx(_S,{})})]}),!!Vt.max&&a.jsxs(Us,{type:"button",$variant:"max",onClick:()=>Qt(Vt.max,"max"),children:[a.jsx(Qs,{children:y.final.maxText}),a.jsx(Js,{$variant:"max","aria-hidden":!0,children:a.jsx(CS,{})})]})]}):a.jsxs(zM,{children:[a.jsx(ut,{text:y.final.telegramText,style:{width:"100%"},disabled:!Vt.telegram,onClick:()=>Qt(Vt.telegram,"telegram")}),!!Vt.vk&&a.jsx(ut,{mode:"secondary",text:y.final.vkText||"Смотреть в ВК",style:{width:"100%"},onClick:()=>Qt(Vt.vk,"vk")}),!!Vt.max&&a.jsx(ut,{mode:"secondary",text:y.final.maxText,style:{width:"100%"},onClick:()=>Qt(Vt.max,"max")})]}),yo=()=>g?a.jsxs(lM,{children:[a.jsx(qs,{$imageUrl:Ar.formDesktop,children:fn()}),a.jsxs(Da,{children:[a.jsx(ja,{children:lr()}),a.jsx(IM,{children:Bn()})]})]}):h?a.jsxs(Xs,{children:[a.jsx(qs,{children:fn()}),a.jsx(Da,{children:a.jsx(ja,{children:lr()})})]}):a.jsxs(Xs,{children:[a.jsx(qs,{$imageUrl:Ar.formMob,children:fn()}),a.jsx(Da,{children:a.jsx(ja,{children:lr()})})]}),wo=()=>a.jsxs(a.Fragment,{children:[a.jsx(pM,{children:y.final.titleCompact}),!!y.final.subtitle&&a.jsx(fM,{children:y.final.subtitle}),a.jsxs(gd,{children:[a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:"Вы записались на:"}),a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:de.title})]}),sr()]}),Mr=()=>{const ae=Ar.finalDesktop;return g?a.jsxs(cM,{children:[a.jsx(dM,{$imageUrl:ae}),a.jsxs(hM,{children:[a.jsxs(mM,{children:[a.jsx(gM,{children:y.final.titleDesktop}),!!y.final.subtitle&&a.jsx(xM,{children:y.final.subtitle}),a.jsxs(gd,{children:[a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:"Вы записались на:"}),a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:de.title})]}),sr()]}),a.jsx(vM,{children:Xr(!0)})]})]}):a.jsxs(Xs,{children:[a.jsx(uM,{$imageUrl:Ar.finalMob}),a.jsx(Da,{children:a.jsx(ja,{children:wo()})})]})},Mn=()=>{const ae=gt.titleLines?.length?gt.titleLines.join(" "):gt.title??"";return a.jsx(O$,{children:ae})},Ur=()=>gt.titleLines?.length?a.jsx(A$,{children:gt.titleLines.map(ae=>a.jsx(F$,{children:ae},ae))}):a.jsx(j$,{children:gt.title??""}),ko=()=>a.jsxs(N$,{children:[Mn(),!!gt.headlinePrimary&&a.jsxs(W$,{children:[a.jsx(Z$,{children:gt.headlinePrimary}),!!gt.headlineAccent&&a.jsx(z$,{children:gt.headlineAccent})]})]}),F=()=>a.jsxs(S$,{children:[!!gt.durationText&&a.jsx(D$,{children:gt.durationText}),Ur(),!!gt.headlinePrimary&&a.jsxs(T$,{children:[a.jsx(R$,{children:gt.headlinePrimary}),!!gt.headlineAccent&&a.jsx(P$,{children:gt.headlineAccent})]})]}),oe=()=>bt?a.jsxs(a.Fragment,{children:[a.jsx(Y,{variant:"header2-Bold",tag:"h2",children:bt.title}),a.jsx(aM,{children:bt.answers.map(ae=>a.jsx(sM,{$selected:H[bt.id]===ae.id,children:a.jsx(Wc,{name:bt.id,value:ae.id,checked:H[bt.id]===ae.id,text:ae.text,size:"L",onChange:Le=>Ut(bt.id,Le)})},ae.id))}),!!$e&&a.jsxs(nM,{children:[a.jsxs(rM,{children:[$e.current,"/",$e.total]}),a.jsx(oM,{children:[1,2,3].map(ae=>a.jsx(iM,{$active:$e.current>=ae},ae))})]})]}):null,me=(ae,{compact:Le})=>{const st=WI(ae),Je=ZI(ae),xt=Le?h?"100%":ae==="question3"?"234px":"146px":"187px",D=Le?h?"100%":"144px":"187px";return a.jsxs(Ys,{$align:"end",$reverseOnMobile:st,children:[st&&a.jsx(ut,{mode:"secondary",size:"L",width:D,text:"Назад",onClick:$n}),a.jsx(ut,{size:"L",text:Je,width:xt,disabled:!$r,onClick:sn})]})},Fe=()=>!bt||!pe?null:p?a.jsxs(K$,{children:[a.jsx(eM,{src:dd(pe,!0),alt:""}),a.jsx(tM,{children:oe()})]}):a.jsx(G$,{children:a.jsxs(Y$,{children:[a.jsx(X$,{children:a.jsx(U$,{src:dd(pe,!1),alt:""})}),a.jsxs(Q$,{children:[a.jsx(J$,{children:oe()}),a.jsx(q$,{children:me(pe,{compact:!1})})]})]})}),Ne=()=>p?a.jsxs(H$,{children:[a.jsx(V$,{src:Ar.introCompact,alt:""}),ko()]}):a.jsx(E$,{$bgUrl:Ar.introBg,children:a.jsxs(L$,{children:[a.jsx($$,{children:a.jsx(M$,{src:Ar.introPic,alt:""})}),a.jsxs(I$,{children:[F(),a.jsx(B$,{children:a.jsx(ut,{size:"L",width:"100%",text:gt.buttonText,onClick:Ct})})]})]})}),We=()=>j==="intro"&&p?a.jsx(Sa,{$withDivider:!0,$introCompact:!0,children:a.jsx(Ys,{children:a.jsx(ut,{size:"L",text:gt.buttonText,width:"100%",onClick:Ct})})}):j==="intro"?null:pe&&bt&&p?a.jsx(Sa,{$withDivider:!0,$questionCompact:!0,children:me(pe,{compact:!0})}):pe?null:j==="leadForm"&&!g?a.jsx(Sa,{$withDivider:!0,$formCompact:!0,children:a.jsx(Ys,{$align:h?void 0:"end",children:Bn()})}):j==="final"&&p?a.jsx(Sa,{$withDivider:!0,$finalCompact:!0,children:Xr(!0)}):null;return!I||($||O)&&!E&&!k?null:a.jsx(f.ThemeProvider,{theme:he[r],children:a.jsxs(a.Fragment,{children:[a.jsx(GM,{}),N&&!k&&!E&&a.jsx(ri,{id:"quiz-funnel-fab",children:a.jsx(y$,{children:a.jsxs(k$,{type:"button",onClick:Ht,"aria-label":vd,children:[a.jsx(w$,{children:vd}),a.jsx(R6,{"aria-hidden":!0,children:a.jsx($d,{})})]})})}),a.jsx(Ln,{open:k,onClose:tt,maxWidth:ke,styleContent:(j==="leadForm"||j==="final")&&!p?{borderRadius:"27px 24px 24px 27px"}:void 0,styleContentInside:{padding:0,margin:0},children:a.jsxs(_$,{"data-flush":zI(j)?"true":void 0,"data-question-compact":pe&&p?"true":void 0,"data-form-compact":j==="leadForm"&&p?"true":void 0,"data-final-compact":j==="final"&&p?"true":void 0,children:[j==="intro"&&Ne(),pe&&!!bt&&Fe(),j==="leadForm"&&yo(),j==="final"&&Mr(),We()]})})]})})},MS=(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}},IS=(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}},SS=(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}},DS=f.styled.div`
|
|
6908
|
+
`,Ld=e=>e?e.startsWith("+")?e:`+${e}`:"",Q6=({name:e,value:t,placeholder:n,disabled:r=!1,country:o,useFieldBackground:i=!1,dropdownMaxHeight:s,error:l,onChange:c})=>{const{mode:u}=ye(),{locale:p}=be(),[h,g]=m.useState(Ld(t));m.useEffect(()=>{const C=Ld(t);C!==h&&g(C)},[h,t]);const x=o||(p===cn.ru?"ru":"ae"),v=(C,b={})=>{const y=C||"",k="countryCode"in b&&typeof b.countryCode=="string"?b.countryCode:void 0;g(y),c(y.replace(/[^0-9]/g,""),k)};return a.jsx(f.ThemeProvider,{theme:he[u],children:a.jsxs(vS,{$disabled:r,$useFieldBackground:i,$dropdownMaxHeight:s,$error:!!l,children:[a.jsx(mS,{country:x,value:h,placeholder:n||"+7 999 123 45 67",specialLabel:"",disabled:r,onChange:v,containerClass:"ui-phone-container",buttonClass:"ui-phone-button",inputClass:"ui-phone-input",dropdownClass:"ui-phone-dropdown",inputProps:{name:e,autoComplete:"tel","aria-invalid":!!l||void 0,"aria-describedby":l&&typeof l!="boolean"?`${e}-error`:void 0}}),l&&typeof l!="boolean"?a.jsx(oi,{text:l,id:`${e}-error`}):null]})})},$d=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{transform:"rotate(90 10 10)"},d.createElement("path",{d:"M10.0001 3.33317L15.0001 3.33317C16.8417 3.33317 18.3334 4.82484 18.3334 6.6665L18.3334 13.3332C18.3334 15.1748 16.8417 16.6665 15.0001 16.6665L10.0001 16.6665C9.54175 16.6665 9.16675 16.2915 9.16675 15.8332L9.16675 14.1915C9.16675 13.7332 9.54175 13.3582 10.0001 13.3582L12.6167 13.3582C13.2334 13.3582 13.8001 13.0165 14.0917 12.4748C14.2251 12.2332 14.2917 11.9665 14.2917 11.6915C14.2917 11.3748 14.2001 11.0582 14.0167 10.7832L13.5001 9.9915L13.9917 9.25817C14.3334 8.74984 14.3751 8.09984 14.0834 7.55817C13.7917 7.00817 13.2334 6.6665 12.6084 6.6665L10.0001 6.6665C9.54175 6.66651 9.16675 6.29151 9.16675 5.83317L9.16675 4.16651C9.16675 3.70817 9.54175 3.33317 10.0001 3.33317Z",fill:"white"}),d.createElement("path",{d:"M5.83341 2.08317L6.66675 2.08317C7.58341 2.08317 8.33341 2.52484 8.33341 3.74984L8.33342 16.2498C8.33342 17.5248 7.58342 17.9165 6.66675 17.9165L5.83342 17.9165C4.91675 17.9165 4.16675 17.5248 4.16675 16.2498L4.16675 3.74984C4.16675 2.52484 4.91675 2.08317 5.83341 2.08317Z",fill:"white"}),d.createElement("path",{d:"M4.16662 10.3L4.16662 14.9C3.85829 15.1834 3.38329 15.175 3.08329 14.875L1.89995 13.6917C1.59162 13.3834 1.59162 12.875 1.89995 12.5667L4.16662 10.3Z",fill:"white"}),d.createElement("path",{d:"M4.16662 5.1085L4.16662 9.7085L1.89995 7.44183C1.59162 7.1335 1.59162 6.62516 1.89995 6.31683L3.08329 5.1335C3.38329 4.8335 3.85829 4.82516 4.16662 5.1085Z",fill:"white"}),d.createElement("path",{d:"M9.16675 8.35814C9.16675 7.89981 9.54175 7.52481 10.0001 7.52481L12.6084 7.5248C13.2751 7.5248 13.6751 8.26647 13.3001 8.81647L12.8001 9.56647C12.6167 9.84147 12.6167 10.1998 12.8001 10.4831L13.3167 11.2665C13.6834 11.8165 13.2834 12.5498 12.6251 12.5498L10.0001 12.5498C9.54175 12.5498 9.16675 12.1748 9.16675 11.7165L9.16675 8.35814Z",fill:"white"}))),CS=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2149 19.9429C8.25211 19.9429 7.33999 19.6551 5.75453 18.504C4.75166 19.799 1.57594 20.8111 1.43743 19.0796C1.43743 17.7798 1.1509 16.6815 0.826161 15.4824C0.439353 14.0051 0 12.36 0 9.97627C0 4.28308 4.65138 0 10.1623 0C15.6781 0 19.9999 4.49411 19.9999 10.029C20.0184 15.4783 15.6406 19.9139 10.2149 19.9429ZM10.2961 4.92097C7.61221 4.78189 5.52051 6.64765 5.05729 9.57338C4.67525 11.9955 5.35338 14.9452 5.93121 15.0987C6.20819 15.1658 6.90543 14.5999 7.33999 14.1634C8.05859 14.662 8.89538 14.9614 9.76598 15.0315C12.5469 15.1659 14.9231 13.0396 15.1098 10.2497C15.2185 7.45382 13.0773 5.08578 10.2961 4.92578V4.92097Z",fill:"white"})),bS=e=>d.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("g",{clipPath:"url(#clip0_23252_1904)"},d.createElement("path",{d:"M0.00580816 5.75744C0.0136645 5.59339 0.0288965 5.40587 0.0464267 5.25738C0.0605213 5.13799 0.0638046 5.11154 0.0670175 5.09106C0.0689053 5.07899 0.0729039 5.05324 0.0759057 5.03382C0.135532 4.64747 0.208526 4.339 0.322971 3.98958C0.551451 3.29199 0.882837 2.67723 1.32983 2.12171C1.56784 1.82592 1.9217 1.47487 2.19817 1.26025C2.5902 0.955933 2.94155 0.74146 3.36783 0.546249C3.67548 0.405373 4.07212 0.267404 4.39385 0.189359C4.61452 0.135835 4.873 0.0854523 5.02998 0.0653794C5.05416 0.0622849 5.09374 0.0570725 5.11792 0.0538133C5.618 -0.0137478 6.19305 -0.0179365 6.65988 0.0426237C6.68406 0.0457535 6.72466 0.0510129 6.75007 0.0542957C6.84629 0.0667089 7.04774 0.103102 7.16996 0.130128C7.59293 0.223657 7.99744 0.364086 8.3999 0.557121C8.81726 0.757309 9.2836 1.06698 9.63806 1.37933C9.99359 1.6926 10.2935 2.02424 10.5595 2.39821C10.9586 2.95936 11.2544 3.57574 11.443 4.23961C11.519 4.50723 11.5653 4.7221 11.6075 5.00441C11.6181 5.07472 11.6217 5.10334 11.6374 5.23973C11.6429 5.28772 11.6509 5.38621 11.6611 5.53422C11.6687 5.64297 11.6685 6.03378 11.6608 6.16212C11.6222 6.81009 11.4909 7.40493 11.2555 7.99888C11.1343 8.30453 10.9583 8.65514 10.7934 8.91958C10.0506 10.1106 8.84011 11.0236 7.46018 11.4337C7.3773 11.4583 7.16185 11.5147 7.10903 11.5255C7.09578 11.5282 7.05329 11.5373 7.01459 11.5456C6.90572 11.5691 6.73012 11.599 6.61444 11.6137C6.49702 11.6287 6.47138 11.6316 6.40778 11.6373C6.22062 11.654 6.14565 11.6571 5.92701 11.6571C5.66864 11.6571 5.54635 11.6501 5.31726 11.6222C5.15728 11.6027 4.96234 11.5691 4.8453 11.5409C4.83885 11.5393 4.80982 11.5325 4.7808 11.5257C4.48904 11.4575 4.18309 11.325 3.84908 11.122C3.8019 11.0933 3.75478 11.0647 3.74438 11.0584C3.72712 11.0479 3.67806 11.0164 3.56717 10.9444C3.5446 10.9297 3.48687 10.8918 3.43891 10.86C3.39094 10.8282 3.34961 10.8022 3.34706 10.8022C3.34453 10.8022 3.32538 10.8227 3.30452 10.8478C3.2393 10.9262 3.13559 11.0228 3.0269 11.1061C2.92168 11.1868 2.73315 11.3015 2.57926 11.3785C2.0931 11.6217 1.64401 11.7141 1.28974 11.6438C1.24514 11.6349 1.1417 11.5988 1.10878 11.5805C0.963441 11.5 0.883787 11.3822 0.852924 11.2022C0.847659 11.1715 0.84216 11.1397 0.840694 11.1316C0.83924 11.1235 0.834116 11.007 0.829308 10.8728C0.8245 10.7385 0.818016 10.6087 0.814897 10.5845C0.811778 10.5602 0.80622 10.5152 0.802549 10.4845C0.786028 10.3461 0.76498 10.2075 0.730177 10.0079C0.712389 9.90595 0.649561 9.60543 0.620223 9.48205C0.61015 9.43963 0.599773 9.39434 0.597182 9.3814C0.591799 9.35447 0.474622 8.88587 0.439034 8.74897C0.411666 8.6437 0.266698 8.0632 0.254644 8.01065C0.250188 7.99124 0.239881 7.94623 0.231732 7.91064C0.133187 7.4801 0.0708753 7.11767 0.0344898 6.76344C0.00367403 6.46352 -0.00814569 6.0488 0.00580816 5.75744ZM8.82011 5.58855C8.7791 5.15471 8.64681 4.74253 8.42402 4.35433C8.17806 3.92575 7.80959 3.54819 7.39275 3.29761C6.99626 3.05927 6.57037 2.92064 6.08238 2.87109C5.96314 2.85898 5.60268 2.86076 5.48143 2.87406C5.21218 2.90358 4.98645 2.96077 4.75504 3.05814C4.24392 3.2732 3.80724 3.64707 3.47347 4.15541C3.44439 4.1997 3.41548 4.2447 3.40923 4.25542C3.21585 4.58724 3.09144 4.88731 3.01334 5.21031C2.97834 5.3551 2.97427 5.37453 2.94855 5.51917C2.88994 5.8486 2.86 6.38969 2.87819 6.78992C2.91156 7.52377 3.02078 8.08079 3.22052 8.53589C3.31282 8.74622 3.41102 8.82679 3.54468 8.80185C3.67294 8.77792 3.82058 8.68439 4.04266 8.48638C4.18262 8.36159 4.27367 8.28421 4.28056 8.28421C4.28313 8.28421 4.31098 8.30097 4.34246 8.32144C4.69842 8.55293 5.08224 8.69965 5.48433 8.75792C5.74684 8.79597 6.03812 8.79291 6.31104 8.74926C6.96205 8.64511 7.6075 8.28781 8.05976 7.78121C8.48573 7.30406 8.73823 6.75949 8.81127 6.16043C8.83082 6.00014 8.83478 5.74364 8.82011 5.58855Z",fill:"white"})),d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_23252_1904"},d.createElement("rect",{width:11.6667,height:11.6667,fill:"white"})))),yS=e=>d.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M11.3333 1.62012L4.66658 1.62012C2.66659 1.62012 1.33325 2.95345 1.33325 4.95345L1.33325 8.95345C1.33325 10.9535 2.66659 12.2868 4.66658 12.2868V13.7068C4.66658 14.2401 5.25992 14.5601 5.69992 14.2601L8.66658 12.2868H11.3333C13.3333 12.2868 14.6666 10.9535 14.6666 8.95345L14.6666 4.95345C14.6666 2.95345 13.3333 1.62012 11.3333 1.62012ZM7.99992 9.73345C7.71992 9.73345 7.49992 9.50678 7.49992 9.23345C7.49992 8.96012 7.71992 8.73345 7.99992 8.73345C8.27992 8.73345 8.49992 8.96012 8.49992 9.23345C8.49992 9.50678 8.27992 9.73345 7.99992 9.73345ZM8.83992 6.96678C8.57992 7.14012 8.49992 7.25345 8.49992 7.44012V7.58012C8.49992 7.85345 8.27325 8.08012 7.99992 8.08012C7.72658 8.08012 7.49992 7.85345 7.49992 7.58012V7.44012C7.49992 6.66678 8.06659 6.28678 8.27992 6.14012C8.52659 5.97345 8.60658 5.86012 8.60658 5.68678C8.60658 5.35345 8.33325 5.08012 7.99992 5.08012C7.66658 5.08012 7.39325 5.35345 7.39325 5.68678C7.39325 5.96012 7.16658 6.18678 6.89325 6.18678C6.61992 6.18678 6.39325 5.96012 6.39325 5.68678C6.39325 4.80012 7.11325 4.08012 7.99992 4.08012C8.88658 4.08012 9.60658 4.80012 9.60658 5.68678C9.60658 6.44678 9.04659 6.82678 8.83992 6.96678Z",fill:"#6553F5"})),wS=e=>d.createElement("svg",{width:10,height:9,viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M9.5 0.301113L7.99729 8.14614C7.99729 8.14614 7.78703 8.69006 7.20945 8.4292L3.74229 5.67629L3.72621 5.66818C4.19454 5.2327 7.8262 1.85133 7.98492 1.69806C8.23063 1.46068 8.07809 1.31936 7.7928 1.49868L2.4284 5.02649L0.358819 4.30538C0.358819 4.30538 0.0331287 4.18541 0.00179642 3.92455C-0.0299481 3.66327 0.369538 3.52195 0.369538 3.52195L8.80657 0.0944738C8.80657 0.0944738 9.5 -0.221035 9.5 0.301113V0.301113Z",fill:"#FEFEFE"})),kS=e=>d.createElement("svg",{width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M22 0.7085L18.52 19.1674C18.52 19.1674 18.0331 20.4472 16.6956 19.8334L8.66635 13.356L8.62912 13.3369C9.71368 12.3122 18.1238 4.35607 18.4914 3.99544C19.0604 3.4369 18.7072 3.10439 18.0465 3.5263L5.62365 11.827L0.83095 10.1303C0.83095 10.1303 0.076719 9.84803 0.00416013 9.23424C-0.0693535 8.61945 0.855772 8.28694 0.855772 8.28694L20.3942 0.222291C20.3942 0.222291 22 -0.520082 22 0.7085Z",fill:"white"})),_S=e=>d.createElement("svg",{width:28,height:18,viewBox:"0 0 28 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M15.2505 18C5.68395 18 0.227358 11.2432 0 0H4.79201C4.94941 8.25225 8.4822 11.7477 11.2805 12.4685V0H15.7926V7.11712C18.5559 6.81081 21.4591 3.56757 22.4385 0H26.9507C26.5816 1.85024 25.8459 3.60213 24.7897 5.14607C23.7334 6.69002 22.3793 7.99282 20.812 8.97297C22.5615 9.86857 24.1067 11.1362 25.3457 12.6922C26.5848 14.2483 27.4894 16.0573 28 18H23.0331C22.5748 16.3126 21.6432 14.8022 20.3552 13.6579C19.0672 12.5137 17.4801 11.7865 15.7926 11.5676V18H15.2505Z",fill:"white"})),ES=e=>d.createElement("svg",{width:11,height:11,viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M8.96341 1.53125C7.97561 0.546875 6.65854 0 5.26829 0C2.37805 0 0.0365848 2.33333 0.0365848 5.21354C0.0365848 6.125 0.292683 7.03646 0.731707 7.80208L0 10.5L2.78049 9.77083C3.54878 10.1719 4.39024 10.3906 5.26829 10.3906C8.15854 10.3906 10.5 8.05729 10.5 5.17708C10.4634 3.82813 9.95122 2.51562 8.96341 1.53125ZM7.79268 7.07292C7.68293 7.36458 7.17073 7.65625 6.91463 7.69271C6.69512 7.72917 6.40244 7.72917 6.10976 7.65625C5.92683 7.58333 5.67073 7.51042 5.37805 7.36458C4.06098 6.81771 3.21951 5.50521 3.14634 5.39583C3.07317 5.32292 2.59756 4.70312 2.59756 4.04687C2.59756 3.39062 2.92683 3.09896 3.03658 2.95312C3.14634 2.80729 3.29268 2.80729 3.40244 2.80729C3.47561 2.80729 3.58536 2.80729 3.65853 2.80729C3.73171 2.80729 3.84146 2.77083 3.95122 3.02604C4.06098 3.28125 4.31707 3.9375 4.35366 3.97396C4.39024 4.04687 4.39024 4.11979 4.35366 4.19271C4.31707 4.26563 4.28049 4.33854 4.20732 4.41146C4.13414 4.48437 4.06097 4.59375 4.02439 4.63021C3.95122 4.70312 3.87805 4.77604 3.95122 4.88542C4.02439 5.03125 4.28049 5.43229 4.68293 5.79687C5.19512 6.23437 5.59756 6.38021 5.7439 6.45313C5.89024 6.52604 5.96341 6.48958 6.03658 6.41667C6.10975 6.34375 6.36585 6.05208 6.43902 5.90625C6.5122 5.76042 6.62195 5.79688 6.73171 5.83333C6.84146 5.86979 7.5 6.19792 7.60976 6.27083C7.7561 6.34375 7.82927 6.38021 7.86585 6.41667C7.90244 6.52604 7.90244 6.78125 7.79268 7.07292Z",fill:"white"})),Md=()=>Math.random()<.5?"A":"B",LS=()=>{if(typeof window>"u")return"A";try{const e=sessionStorage.getItem(xd);if(e==="A"||e==="B")return e;const t=Md();return sessionStorage.setItem(xd,t),t}catch{return Md()}},$S=({autoOpen:e=!0,copy:t,metrikaGoals:n})=>{const{mode:r}=ye(),{locale:o,isForeignSite:i}=be(),{pathname:s,userRole:l,hostnames:c,user:u}=Ae(),{isCompactLayout:p,isMobileLayout:h}=pS(),g=!p,x=l==="guest",v=o===cn.ru&&!i,C=m.useMemo(()=>!tI(s),[s]),b=v&&C,y=t||rI,[k,w]=m.useState(!1),[E,_]=m.useState(()=>Cd()),{isAllowed:L,isLoading:$,registerView:S}=dS(b&&!E),{isAllowed:T,isLoading:O}=uS(b&&!E,x),X=b&&L&&T,[N,z]=m.useState(()=>bd()&&!Cd()),[j,B]=m.useState("intro"),A=E&&j==="final",I=X||A||k,[P]=m.useState(()=>LS()),R=m.useMemo(()=>cI(n),[n]),[H,V]=m.useState({}),[Q,fe]=m.useState(""),[G,M]=m.useState(""),[J,re]=m.useState(""),[ee,ge]=m.useState(o===cn.ru?"ru":"ae"),[we,Ie]=m.useState(!1),[ie,He]=m.useState(!1),[Re,W]=m.useState(!1),[K,U]=m.useState(!1),[te,le]=m.useState(null),[xe,Ee]=m.useState(""),_e=m.useRef(!1),ce=m.useRef(!1);m.useEffect(()=>{if(!X||E)return;bd()&&z(!0);const ae=XM();e&&!ae&&(UM(),w(!0))},[e,X,E]),m.useEffect(()=>{!X&&!A&&!k&&(w(!1),z(!1))},[X,A,k]);const de=m.useMemo(()=>aI({goal:H.goal,experience:H.experience,barrier:H.barrier}),[H.goal,H.experience,H.barrier]);m.useEffect(()=>{k&&!_e.current&&R("offerView",void 0,P),_e.current=k},[k,R,P]),m.useEffect(()=>{const ae=N&&!k&&!E;ae&&!ce.current&&R("returnIconView",void 0,P),ce.current=ae},[N,k,E,R,P]),m.useEffect(()=>{if(!k)return;const ae=vI(j);if(ae){R(ae,void 0,P);return}j==="leadForm"&&(R("awOfferView",{funnel_id:de.id},P),R(mI(de.id),{funnel_id:de.id},P))},[k,j,de.id,R,P]);const $e=m.useMemo(()=>Nl(j)?OI(j):null,[j]),pe=Nl(j)?j:null,ke=m.useMemo(()=>g$(j,p),[j,p]),tt=()=>{E||R("popupClose",void 0,P),w(!1),E||(JM(),z(!0))},Ht=()=>{R("returnIconClick",void 0,P),w(!0)},Ct=()=>{R("startClick",void 0,P),B("question1")},Ut=(ae,Le)=>{const st=CI(j);st&&R(st,{question_id:ae,answer_id:Le},P),V(Je=>({...Je,[ae]:Le}))},sn=()=>{!bt||!H[bt.id]||(j==="question1"?B("question2"):j==="question2"?B("question3"):j==="question3"&&B("leadForm"))},$n=()=>{if(j==="question2")return B("question1");if(j==="question3")return B("question2");if(j==="leadForm")return B("question3");if(j==="final")return B("leadForm")},pt=m.useMemo(()=>oS({name:Q,email:G,phone:J,phoneCountry:ee,isPrivacyAccepted:we,isMailingAccepted:ie}),[Q,G,J,ee,we,ie]),Rn=!iS(pt),pn=ae=>Re&&!!pt[ae],Vt=m.useMemo(()=>RI({bases:BI(de.tildaSubmit),ulid:te,search:xe||(typeof window<"u"?window.location.search:"")}),[de.tildaSubmit,te,xe]),Qt=(ae,Le)=>{if(!ae)return;const st=xI(de.id,Le);st&&R(st,{funnel_id:de.id},P),window.open(ae,"_blank","noopener,noreferrer")},Pn=async()=>{if(!K){if(!Rn){W(!0);return}U(!0);try{typeof window<"u"&&Ee(window.location.search);const ae=HI(de.tildaSubmit,{name:Q.trim(),email:G.trim(),phone:J.trim()},{internalReferrerHosts:wd(c)}),Le=await NI(ae);Le?.id!=null&&le(String(Le.id)),await II(u,{name:Q.trim(),email:G.trim(),phone:J.trim()},de.crmPayloads,x);const st=typeof window<"u"?window.location.href:s;await UI(JI({url:st,fio:Q.trim(),email:G.trim(),phone:J.trim(),questions:y.questions,answers:H,internalReferrerHosts:wd(c)})),R("registrationSuccess",{funnel_id:de.id},P),R(gI(de.id),{funnel_id:de.id},P),S(),QM(),qM(),_(!0),z(!1),B("final")}finally{U(!1)}}},bt=pe===null?null:y.questions[X6(pe)],gt=H6[P],$r=!!bt&&!!H[bt.id],Yr=ae=>{switch(ae){case"telegram":return a.jsx(wS,{});case"whatsapp":return a.jsx(ES,{});case"max":return a.jsx(bS,{});default:return null}},sr=()=>a.jsxs(TM,{children:[a.jsx(RM,{"aria-hidden":!0,children:a.jsx(PM,{children:a.jsx(yS,{})})}),a.jsxs(BM,{children:["Остались вопросы? Напишите"," ",a.jsx(HM,{children:a.jsx(ni,{placement:"right",width:"240px",height:"auto",padding:"10px",borderRadius:"12px",zIndex:Cn.zIndex8,boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.04), 0 0 4px 0 rgba(0, 0, 0, 0.06)",targetElement:a.jsx(ZM,{type:"button",children:"менеджеру pro.finansy"}),children:a.jsx(VM,{children:nI.map(ae=>a.jsxs(NM,{href:ae.href,target:"_blank",rel:"noopener noreferrer",children:[a.jsx(OM,{children:ae.label}),a.jsx(WM,{$variant:ae.messenger,"aria-hidden":!0,children:Yr(ae.messenger)})]},ae.href))})})})]})]}),fn=()=>a.jsxs(bM,{children:[a.jsx(yM,{children:a.jsx(Y,{variant:"text-Regular",tag:"div",colorCategory:"nav",color:"#E1E0EB",children:de.leadHeading})}),!!de.leadParagraphs.length&&a.jsx(wM,{children:de.leadParagraphs.map(ae=>a.jsx(Y,{variant:p?"header6-Bold":"header5-Bold",tag:"div",colorName:"contrastThemed",children:ae},ae))}),!!de.leadBullets.length&&a.jsxs(kM,{children:[a.jsx(_M,{children:de.leadBulletsLabel||"Внутри:"}),a.jsx(EM,{children:de.leadBullets.map(ae=>a.jsx("li",{children:ae},ae))})]})]}),bn=()=>a.jsxs(MM,{children:[a.jsx(fd,{$hasError:pn("privacy"),children:a.jsx(Or,{name:"privacy",size:"L",checked:we,onChange:Ie,htmlText:a.jsxs(hd,{children:["Согласен с политикой"," ",a.jsx(md,{href:"https://profinansy.ru/docs/privacy-policy",target:"_blank",rel:"noopener noreferrer",onClick:ae=>ae.stopPropagation(),children:"обработки персональных данных"})]})})}),a.jsx(fd,{$hasError:pn("mailing"),children:a.jsx(Or,{name:"mailing",size:"L",checked:ie,onChange:He,verticalAlign:"start",htmlText:a.jsxs(hd,{children:["Я согласен на получение"," ",a.jsx(md,{href:"https://profinansy.ru/docs/consent-mailings",target:"_blank",rel:"noopener noreferrer",onClick:ae=>ae.stopPropagation(),children:"рекламно-информационных сообщений (рассылок)"})]})})})]}),lr=()=>a.jsxs(a.Fragment,{children:[a.jsx(LM,{children:de.formCallout}),a.jsxs(SM,{children:[a.jsx(kr,{name:"name",value:Q,onChange:fe,placeholder:y.leadForm.namePlaceholder,error:pn("name")}),a.jsx(kr,{name:"email",value:G,onChange:M,placeholder:y.leadForm.emailPlaceholder,error:pn("email")}),a.jsx($M,{children:a.jsx(Q6,{name:"phone",value:J,country:ee,onChange:(ae,Le)=>{re(ae),Le&&ge(Le)},placeholder:y.leadForm.phonePlaceholder,useFieldBackground:!0,dropdownMaxHeight:m$,error:pn("phone")})})]}),bn(),!!de.formGiftText&&a.jsxs(DM,{children:[a.jsx(jM,{children:a.jsx(AM,{"aria-hidden":!0,children:a.jsx($d,{})})}),a.jsx(FM,{children:de.formGiftText})]})]}),Bn=()=>a.jsx(ut,{size:"L",text:de.submitButtonText,width:h?"100%":"273px",disabled:K,loading:K,onClick:Pn}),Xr=(ae=!1)=>ae?a.jsxs(CM,{children:[a.jsxs(Us,{type:"button",$variant:"telegram",disabled:!Vt.telegram,onClick:()=>Qt(Vt.telegram,"telegram"),children:[a.jsx(Qs,{children:y.final.telegramText}),a.jsx(Js,{$variant:"telegram","aria-hidden":!0,children:a.jsx(kS,{})})]}),!!Vt.vk&&a.jsxs(Us,{type:"button",$variant:"vk",onClick:()=>Qt(Vt.vk,"vk"),children:[a.jsx(Qs,{children:y.final.vkText||"Смотреть в ВК"}),a.jsx(Js,{$variant:"vk","aria-hidden":!0,children:a.jsx(_S,{})})]}),!!Vt.max&&a.jsxs(Us,{type:"button",$variant:"max",onClick:()=>Qt(Vt.max,"max"),children:[a.jsx(Qs,{children:y.final.maxText}),a.jsx(Js,{$variant:"max","aria-hidden":!0,children:a.jsx(CS,{})})]})]}):a.jsxs(zM,{children:[a.jsx(ut,{text:y.final.telegramText,style:{width:"100%"},disabled:!Vt.telegram,onClick:()=>Qt(Vt.telegram,"telegram")}),!!Vt.vk&&a.jsx(ut,{mode:"secondary",text:y.final.vkText||"Смотреть в ВК",style:{width:"100%"},onClick:()=>Qt(Vt.vk,"vk")}),!!Vt.max&&a.jsx(ut,{mode:"secondary",text:y.final.maxText,style:{width:"100%"},onClick:()=>Qt(Vt.max,"max")})]}),yo=()=>g?a.jsxs(lM,{children:[a.jsx(qs,{$imageUrl:Ar.formDesktop,children:fn()}),a.jsxs(Da,{children:[a.jsx(ja,{children:lr()}),a.jsx(IM,{children:Bn()})]})]}):h?a.jsxs(Xs,{children:[a.jsx(qs,{children:fn()}),a.jsx(Da,{children:a.jsx(ja,{children:lr()})})]}):a.jsxs(Xs,{children:[a.jsx(qs,{$imageUrl:Ar.formMob,children:fn()}),a.jsx(Da,{children:a.jsx(ja,{children:lr()})})]}),wo=()=>a.jsxs(a.Fragment,{children:[a.jsx(pM,{children:y.final.titleCompact}),!!y.final.subtitle&&a.jsx(fM,{children:y.final.subtitle}),a.jsxs(gd,{children:[a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:"Вы записались на:"}),a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:de.title})]}),sr()]}),Mr=()=>{const ae=Ar.finalDesktop;return g?a.jsxs(cM,{children:[a.jsx(dM,{$imageUrl:ae}),a.jsxs(hM,{children:[a.jsxs(mM,{children:[a.jsx(gM,{children:y.final.titleDesktop}),!!y.final.subtitle&&a.jsx(xM,{children:y.final.subtitle}),a.jsxs(gd,{children:[a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:"Вы записались на:"}),a.jsx(Y,{variant:"text-Regular",tag:"div",colorName:"primary",children:de.title})]}),sr()]}),a.jsx(vM,{children:Xr(!0)})]})]}):a.jsxs(Xs,{children:[a.jsx(uM,{$imageUrl:Ar.finalMob}),a.jsx(Da,{children:a.jsx(ja,{children:wo()})})]})},Mn=()=>{const ae=gt.titleLines?.length?gt.titleLines.join(" "):gt.title??"";return a.jsx(O$,{children:ae})},Ur=()=>gt.titleLines?.length?a.jsx(A$,{children:gt.titleLines.map(ae=>a.jsx(F$,{children:ae},ae))}):a.jsx(j$,{children:gt.title??""}),ko=()=>a.jsxs(N$,{children:[Mn(),!!gt.headlinePrimary&&a.jsxs(W$,{children:[a.jsx(Z$,{children:gt.headlinePrimary}),!!gt.headlineAccent&&a.jsx(z$,{children:gt.headlineAccent})]})]}),F=()=>a.jsxs(S$,{children:[!!gt.durationText&&a.jsx(D$,{children:gt.durationText}),Ur(),!!gt.headlinePrimary&&a.jsxs(T$,{children:[a.jsx(R$,{children:gt.headlinePrimary}),!!gt.headlineAccent&&a.jsx(P$,{children:gt.headlineAccent})]})]}),oe=()=>bt?a.jsxs(a.Fragment,{children:[a.jsx(Y,{variant:"header2-Bold",tag:"h2",children:bt.title}),a.jsx(aM,{children:bt.answers.map(ae=>a.jsx(sM,{$selected:H[bt.id]===ae.id,children:a.jsx(Wc,{name:bt.id,value:ae.id,checked:H[bt.id]===ae.id,text:ae.text,size:"L",onChange:Le=>Ut(bt.id,Le)})},ae.id))}),!!$e&&a.jsxs(nM,{children:[a.jsxs(rM,{children:[$e.current,"/",$e.total]}),a.jsx(oM,{children:[1,2,3].map(ae=>a.jsx(iM,{$active:$e.current>=ae},ae))})]})]}):null,me=(ae,{compact:Le})=>{const st=WI(ae),Je=ZI(ae),xt=Le?h?"100%":ae==="question3"?"234px":"146px":"187px",D=Le?h?"100%":"144px":"187px";return a.jsxs(Ys,{$align:"end",$reverseOnMobile:st,children:[st&&a.jsx(ut,{mode:"secondary",size:"L",width:D,text:"Назад",onClick:$n}),a.jsx(ut,{size:"L",text:Je,width:xt,disabled:!$r,onClick:sn})]})},Fe=()=>!bt||!pe?null:p?a.jsxs(K$,{children:[a.jsx(eM,{src:dd(pe,!0),alt:""}),a.jsx(tM,{children:oe()})]}):a.jsx(G$,{children:a.jsxs(Y$,{children:[a.jsx(X$,{children:a.jsx(U$,{src:dd(pe,!1),alt:""})}),a.jsxs(Q$,{children:[a.jsx(J$,{children:oe()}),a.jsx(q$,{children:me(pe,{compact:!1})})]})]})}),Ne=()=>p?a.jsxs(H$,{children:[a.jsx(V$,{src:Ar.introCompact,alt:""}),ko()]}):a.jsx(E$,{$bgUrl:Ar.introBg,children:a.jsxs(L$,{children:[a.jsx($$,{children:a.jsx(M$,{src:Ar.introPic,alt:""})}),a.jsxs(I$,{children:[F(),a.jsx(B$,{children:a.jsx(ut,{size:"L",width:"100%",text:gt.buttonText,onClick:Ct})})]})]})}),We=()=>j==="intro"&&p?a.jsx(Sa,{$withDivider:!0,$introCompact:!0,children:a.jsx(Ys,{children:a.jsx(ut,{size:"L",text:gt.buttonText,width:"100%",onClick:Ct})})}):j==="intro"?null:pe&&bt&&p?a.jsx(Sa,{$withDivider:!0,$questionCompact:!0,children:me(pe,{compact:!0})}):pe?null:j==="leadForm"&&!g?a.jsx(Sa,{$withDivider:!0,$formCompact:!0,children:a.jsx(Ys,{$align:h?void 0:"end",children:Bn()})}):j==="final"&&p?a.jsx(Sa,{$withDivider:!0,$finalCompact:!0,children:Xr(!0)}):null;return!I||($||O)&&!E&&!k?null:a.jsx(f.ThemeProvider,{theme:he[r],children:a.jsxs(a.Fragment,{children:[a.jsx(GM,{}),N&&!k&&!E&&a.jsx(ri,{id:"quiz-funnel-fab",children:a.jsx(y$,{children:a.jsxs(k$,{type:"button",onClick:Ht,"aria-label":vd,children:[a.jsx(w$,{children:vd}),a.jsx(R6,{"aria-hidden":!0,children:a.jsx($d,{})})]})})}),a.jsx(Ln,{open:k,onClose:tt,maxWidth:ke,styleContent:(j==="leadForm"||j==="final")&&!p?{borderRadius:"27px 24px 24px 27px"}:void 0,styleContentInside:{padding:0,margin:0},children:a.jsxs(_$,{"data-flush":zI(j)?"true":void 0,"data-question-compact":pe&&p?"true":void 0,"data-form-compact":j==="leadForm"&&p?"true":void 0,"data-final-compact":j==="final"&&p?"true":void 0,children:[j==="intro"&&Ne(),pe&&!!bt&&Fe(),j==="leadForm"&&yo(),j==="final"&&Mr(),We()]})})]})})},MS=(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}},IS=(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}},SS=(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}},DS=f.styled.div`
|
|
6900
6909
|
position: relative;
|
|
6901
6910
|
width: 388px;
|
|
6902
6911
|
border-radius: 12px;
|