PageSourceSearch

https://inter-nation.uz/_next/static/chunks/4298.9cd20e1a6141d1b5.js

js inter-nation.uz collected 2026-10-07 17:40:51 UTC 33,965 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4298],{85368:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},37431:function(e,n,t){var r;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;let i=(r=t(95183))&&r.__esModule?r:{default:r};n.default=i,e.exports=i},95183:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return a}});var r=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(n);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,t&&t.set(e,r),r}(t(67294)),i=_interop_require_default(t(85368)),o=_interop_require_default(t(92074));function _interop_require_default(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:n})(e)}var a=r.forwardRef(function(e,n){var t,a;return r.createElement(o.default,(t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.forEach(function(n){var r;r=t[n],n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r})}return e}({},e),a=a={ref:n,icon:i.default},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(a)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}),t))})},10339:function(e,n,t){t.d(n,{Z:function(){return info}});var r=t(85893);t(67294);var i=t(82729),o=t(37556);function _templateObject(){let e=(0,i._)(["\n  margin: 0 0 100px;\n  max-width: 1060px;\n  padding: 0 16px;\n\n  .title {\n    color: #777e90;\n    text-align: center;\n    font-size: 20px;\n    font-style: normal;\n    font-weight: 700;\n    line-height: 24px; /* 120% */\n    margin-bottom: 12px;\n    margin-top: 64px;\n  }\n\n  .content {\n    color: #777e90;\n    font-size: 14px;\n    font-style: normal;\n    font-weight: 400;\n    line-height: normal;\n    white-space: pre-wrap;\n  }\n  @media (max-width: 575px) {\n    margin: 32px 0;\n\n    .title {\n      margin-top: 32px !important;\n    }\n  }\n"]);return _templateObject=function(){return e},e}let a=o.Z.div(_templateObject());var l=t(5233),info=()=>{let{t:e}=(0,l.$G)();return(0,r.jsxs)(a,{children:[(0,r.jsx)("h4",{className:"title",children:e("CASHBACK.INFO_TITLE")}),(0,r.jsx)("div",{className:"content",dangerouslySetInnerHTML:{__html:e("CASHBACK.INFO")}})]})}},75027:function(e,n,t){t.d(n,{Z:function(){return steps}});var r=t(85893),i=t(67294),o=t(88050),a=t(82729),l=t(37556),s=t(70917);function _templateObject(){let e=(0,a._)(["\n  margin: 60px 0;\n  width: 100%;\n  .swiper-slide {\n    width: auto !important;\n    height: auto !important;\n    /* Center slide text vertically */\n    display: -webkit-box;\n    display: -ms-flexbox;\n    display: -webkit-flex;\n    display: flex;\n    -webkit-box-pack: center;\n    -ms-flex-pack: center;\n    -webkit-justify-content: center;\n    justify-content: center;\n    /* Step 1 has no description, so it is shorter than the rest. Anchor every\n       slide to the top, otherwise the shorter one is centred and its icon sits\n       below the others' — most visible on mobile. */\n    -webkit-box-align: start;\n    -ms-flex-align: start;\n    -webkit-align-items: flex-start;
1\n    align-items: flex-start;\n  }\n  h2 {\n    color: #000;\n    text-align: center;\n    font-size: 20px;\n    font-style: normal;\n    font-weight: 700;\n    line-height: 24px; /* 120% */\n    margin-bottom: 20px;\n  }\n  @media (max-width: 575px) {\n    margin: 40px 0;\n    display: block;\n    h2 {\n      color: #000;\n      text-align: center;\n      font-size: var(--font-size-16px, 16px);\n      font-style: normal;\n      font-weight: 700;\n      line-height: var(--font-line-height-line_height_20, 20px); /* 125% */\n    }\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,a._)(["\n  padding: 0 16px;\n  width: fit-content;\n  margin: 0 auto;\n  @media (max-width: 768px) {\n    width: 100%;\n  }\n  /* Full-bleed scroll on mobile: the swiper spans the whole screen width and\n     clips at the edges, while slidesOffsetBefore/After keep a 16px gutter so\n     the first/last steps line up with the rest of the content. */\n  @media (max-width: 575px) {\n    padding: 0;\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,a._)(["\n  position: absolute;\n  right: -40px;\n  top: 28px;\n  @media (max-width: 575px) {\n    top: 6px;\n    left: 40px;\n\n    svg {\n      width: 98px;\n    }\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,a._)(["\n      padding-left: 40px;\n    "]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,a._)(["\n        padding-left: 0;\n      "]);return _templateObject4=function(){return e},e}function _templateObject5(){let e=(0,a._)(["\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: flex-start;\n  margin-right: ",";\n  h3 {\n    color: #23262f;\n    text-align: center;\n    font-size: 18px;\n    font-style: normal;\n    font-weight: 600;\n    line-height: 20px; /* 111.111% */\n\n    margin: 10px 0 4px;\n  }\n  p {\n    color: #777e90;\n    font-size: 14px;\n    font-style: normal;\n    font-weight: 400;\n    line-height: normal;\n  }\n  ",";\n\n  @media (max-width: 575px) {\n    align-items: flex-start;\n    max-width: 160px;\n    margin-right: ",";\n    &.first {\n      width: 160px;\n    }\n    h3 {\n      font-size: 14px;\n      font-weight: 500;\n      line-height: 16px; /* 114.286% */\n      margin: 8px 0 4px;\n      text-align: left;\n    }\n    ",";\n  }\n"]);return _templateObject5=function(){return e},e}function _templateObject6(){let e=(0,a._)(["\n  width: 80px;\n  height: 80px;\n  border-radius: 50%;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  background: #f4f5f6;\n  @media (max-width: 575px) {\n    width: 32px;\n    height: 32px;\n    svg {\n      width: 20px;\n      height: 20px;\n    }\n  }\n"]);return _templateObject6=function(){return e},e}let c=l.Z.div(_templateObject()),d=l.Z.div(_templateObject1()),p=l.Z.div(_templateObject2()),u=l.Z.div(_templateObject5(),e=>{let{is_last:n}=e;return n?"0":"120px"},e=>{let{is_last:n}=e;return n&&(0,s.iv)(_templateObject3())},e=>{let{is_last:n}=e;return n?"0":"20px"},e=>{let{is_last:n}=e;return n&&(0,s.iv)(_templateObject4())}),f=l.Z.div(_templateObject6());var h=t(2261);t(10367);var m=t(5233),steps=()=>{let{t:e}=(0,m.$G)(),n=[{icon:o.e0,title:e("CASHBACK.STEPS.STEP1.TITLE"),description:""},{icon:o.TJ,title:e("CASHBACK.STEPS.STEP2.TITLE"),description:e("CASHBACK.STEPS.STEP2.DESCRIPTION")},{icon:o.Ds,title:e("CASHBACK.STEPS.STEP3.TITLE"),description:e("CASHBACK.STEPS.STEP3.DESCRIPTION")},{icon:o.LZ,title:e("CASHBACK.STEPS.STEP4.TITLE"),description:e("CASHBACK.STEPS.STEP4.DESCRIPTION")}];return(0,r.jsxs)(c,{children:[(0,r.jsx)("h2",{children:e("CASHBACK.STEPS.TITLE")}),(0,r.jsx)(d,{children:(0,r.jsx)(h.tq,{slidesPerView:"auto",slidesOffsetBefore:16,slidesOffsetAfter:16,breakpoints:{576:{slidesOffsetBefore:0,slidesOffsetAfter:0}},children:n.map((e,t)=>{let a=t===n.length-1;return(0,r.jsxs)(h.o5,{children:[(0,r.jsxs)(u,{is_last:a,className:0==t?"first":"other",children:[(0,r.jsx)(f,{children:e.icon&&i.createElement(e.icon,{width:40,height:40},null)}),(0,r.jsx)("h3",{children:null==e?void 0:e.title}),(0,r.jsx)("p",{children:null==e?void 0:e.description})]}
1),!a&&(0,r.jsx)(p,{children:(0,r.jsx)(o.Od,{})})]},t)})})})]})}},47179:function(e,n,t){t.r(n),t.d(n,{default:function(){return app_cashback}});var r=t(85893),i=t(67294),o=t(5789),a=t(57588),l=t(91633),s=t(55673),c=t(6554),d=t(88050),p=t(82729),u=t(37556),f=t(39348);function _templateObject(){let e=(0,p._)(["\n  padding: 0 16px;\n\n  /* On mobile every field's value must read uniformly — same size and weight\n     across text inputs, selects, date pickers and phone masks. 16px also keeps\n     iOS Safari from auto-zooming when a field is focused. */\n  @media (max-width: 576px) {\n    .ant-input,\n    .ant-select-selection-item,\n    .ant-select-selection-search-input,\n    .ant-picker-input > input {\n      font-size: 16px !important;\n      font-weight: 500 !important;\n    }\n  }\n"]);return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,p._)(["\n  input {\n    height: 36px;\n    font-size: ",";\n    background: ",";\n    border: 1px solid "," !important;\n    box-shadow: 0 1px 1px "," !important;\n    border-radius: 6px;\n    ::placeholder {\n      color: #b1b5c3;\n      opacity: 1;\n    }\n\n    :-ms-input-placeholder {\n      color: #b1b5c3;\n    }\n\n    ::-ms-input-placeholder {\n      color: #b1b5c3;\n    }\n    &:focus {\n      border-color: ",";\n      box-shadow: unset !important;\n    }\n\n    &:hover {\n      border-color: "," !important;\n    }\n    @media (max-width: 576px) {\n      height: 44px !important;\n      font-size: 16px !important;\n      font-weight: 500 !important;\n    }\n  }\n"]);return _templateObject1=function(){return e},e}function _templateObject2(){let e=(0,p._)(["\n  margin: 24px 0 32px;\n\n  .ant-upload-wrapper .ant-upload-drag {\n    height: 100px !important;\n  }\n  .ant-image {\n    display: block;\n  }\n  .ant-image .custom-image-wrapper,\n  img,\n  .loading {\n    height: 100px !important;\n  }\n"]);return _templateObject2=function(){return e},e}function _templateObject3(){let e=(0,p._)(["\n  margin-bottom: 16px;\n  color: #777e90;\n  font-size: 12px;\n  font-style: normal;\n  font-weight: 400;\n  line-height: 16px;\n  text-align: center;\n"]);return _templateObject3=function(){return e},e}function _templateObject4(){let e=(0,p._)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  .extra {\n    color: #777e90;\n    font-size: 12px;\n  }\n  /* Bands the backend doesn't price — the label reads as an absence, so it sits\n     a step back from the real amounts. */\n  .extra.muted {\n    color: #b1b5c3;\n  }\n"]);return _templateObject4=function(){return e},e}let h=u.Z.form(_templateObject());u.Z.div(_templateObject1(),f.CH.f12,f.Ek.yukon,f.Ek.purpleCrystal,f.Ek.amnesia,f.Ek.primary,f.Ek.primary);let m=u.Z.div(_templateObject2()),x=u.Z.p(_templateObject3()),b=u.Z.div(_templateObject4());var g=t(5233),_=t(88767),v=t(43796),C=t(95762);let y={initialData:e=>v.Z.post("/v2",{project:C.i.lms,action:"system_company_get_initial_data",query_params:null==e?void 0:e.query_params,body:null==e?void 0:e.body}),create:e=>v.Z.post("/v2",{project:C.i.lms,action:"webhook_student_alumni_request_create",query_params:null==e?void 0:e.query_params,body:null==e?void 0:e.body})},initialData=async e=>{try{let n=await y.initialData(e);return n.data}catch(e){throw e}},create=async e=>{try{let n=await y.create(e);return n.data}catch(e){throw e}},useGetCompanyInitialData=e=>(0,_.useQuery)(["system_company_get_initial_data",e],()=>initialData(e),{staleTime:18e4}),useCreateCashback=e=>{let{onSuccess:n,onError:t}=e;return(0,_.useMutation)({mutationFn:create,onSuccess:n,onError:t})};var j=t(87536),w=t(34439),O=t(79249);function phoneInputStyle_templateObject(){let e=(0,p._)(["\n  position: relative;\n\n  .field {\n    display: flex;\n    align-items: center;\n    height: 36px;\n    background: ",";\n    border: 1px solid ",";\n    box-shadow: 0 1px 1px ",";\n    border-radius: 6px;\n    transition: border-color 0.2s;\n\n    &:hover {\n      border-color: ",";\n    }\n    &:focus-within {\n      border-color: ",";\n      box-shadow: unset;\n    }\n\n    @media (max-width: 576px) {\n      height: 44px;\n    }\n  }\n\n  .field--error {\n    border-color: "," !important;\n  }\n\n  /* Country selector button: flag + dial code + caret, split from the number by\n     a divider like a leading addon. */\n  .country {\n    display: flex;
1\n    align-items: center;\n    gap: 6px;\n    height: 100%;\n    padding: 0 8px 0 10px;\n    background: transparent;\n    border: none;\n    border-right: 1px solid ",";\n    border-radius: 0;\n    cursor: pointer;\n    flex-shrink: 0;\n  }\n\n  .dial {\n    font-size: ",";\n    font-weight: 500;\n    color: #141416;\n  }\n\n  .arrow {\n    transition: transform 0.2s ease;\n  }\n  .arrow--open {\n    transform: rotate(180deg);\n  }\n\n  .phone {\n    flex: 1;\n    width: 100%;\n    height: 100%;\n    border: none;\n    background: transparent;\n    padding: 0 12px;\n    font-size: ",";\n    font-weight: 500;\n    color: #141416;\n    outline: none;\n    border-radius: 0 6px 6px 0;\n\n    ::placeholder {\n      color: #b1b5c3;\n      opacity: 1;\n      font-weight: 400;\n    }\n\n    @media (max-width: 576px) {\n      font-size: 16px;\n    }\n  }\n\n  /* Country dropdown: search box pinned on top, scrollable list below. */\n  .dropdown {\n    position: absolute;\n    top: calc(100% + 6px);\n    left: 0;\n    z-index: 1000;\n    background: #fff;\n    border-radius: 8px;\n    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);\n    min-width: 260px;\n    overflow: hidden;\n    display: flex;\n    flex-direction: column;\n  }\n\n  .search {\n    padding: 10px;\n    border-bottom: 1px solid ",";\n\n    input {\n      width: 100%;\n      padding: 8px 10px;\n      border: 1px solid ",";\n      border-radius: 6px;\n      font-size: ",";\n      outline: none;\n      background: ",";\n\n      &:focus {\n        border-color: ",";\n      }\n      ::placeholder {\n        color: #b1b5c3;\n      }\n    }\n  }\n\n  .list {\n    overflow-y: auto;\n    max-height: 260px;\n    padding: 6px;\n  }\n\n  .item {\n    display: flex;\n    align-items: center;\n    gap: 10px;\n    padding: 8px 10px;\n    border-radius: 6px;\n    cursor: pointer;\n    transition: background-color 0.15s;\n\n    &:hover,\n    &.item--active {\n      background-color: #f4f5f6;\n    }\n  }\n\n  .name {\n    flex: 1;\n    font-size: ",";\n    color: #141416;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n  }\n\n  .code {\n    font-size: 12px;\n    color: #b1b5c3;\n    flex-shrink: 0;\n  }\n\n  .empty {\n    padding: 14px;\n    text-align: center;\n    color: #b1b5c3;\n    font-size: ",";\n  }\n\n  .error {\n    color: ",";\n    font-size: 12px;\n    font-weight: 500;\n    margin-top: 4px;\n    padding-left: 12px;\n  }\n"]);return phoneInputStyle_templateObject=function(){return e},e}let S=u.Z.div(phoneInputStyle_templateObject(),f.Ek.yukon,f.Ek.purpleCrystal,f.Ek.amnesia,f.Ek.primary,f.Ek.primary,f.eR.red,f.Ek.purpleCrystal,f.CH.f12,f.CH.f12,f.Ek.purpleCrystal,f.Ek.purpleCrystal,f.CH.f12,f.Ek.yukon,f.Ek.primary,f.CH.f12,f.CH.f12,f.eR.red),k={uz:{search:"Davlatni qidirish...",notFound:"Topilmadi"},ru:{search:"Поиск страны...",notFound:"Не найдено"},en:{search:"Search country...",notFound:"Not found"}};var form_PhoneInput=e=>{var n;let{control:t,name:o,countryName:a,placeholder:l,error:s,lang:c}=e,d=null!==(n=k[null!=c?c:"uz"])&&void 0!==n?n:k.uz,p=(0,j.bc)({name:o,control:t,defaultValue:""}),u=(0,j.bc)({name:a,control:t,defaultValue:O.eX}),[f,h]=(0,i.useState)(!1),[m,x]=(0,i.useState)(""),b=(0,i.useRef)(null),g=(0,i.useRef)(null),_=(0,w.m5)({defaultCountry:"uz",value:p.field.value,countries:w.Z8,disableDialCodeAndPrefix:!0,onChange:e=>{let n=/\d/.test(e.inputValue);p.field.onChange(n?e.phone:""),u.field.onChange(e.country.iso2.toUpperCase())}}),v=(0,i.useMemo)(()=>w.Z8.map(e=>(0,w.ow)(e)),[]),C=(0,i.useMemo)(()=>{if(!m)return v;let e=m.toLowerCase();return v.filter(n=>n.name.toLowerCase().includes(e)||n.dialCode.includes(e)||n.iso2.toLowerCase().includes(e))},[m,v]);(0,i.useEffect)(()=>{u.field.onChange(_.country.iso2.toUpperCase())},[]),(0,i.useEffect)(()=>{let onClickOutside=e=>{b.current&&!b.current.contains(e.target)&&(h(!1),x(""))};return f&&(document.addEventListener("mousedown",onClickOutside),setTimeout(()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.focus()},10)),()=>document.removeEventListener("mousedown",onClickOutside)},[f]);let selectCountry=e=>{_.setCountry(e.iso2),u.field.onChange(e.iso2.toUpperCase()),h(!1),x("")};return(0,r.jsxs)(S,{ref:b,children:[(0,r.jsxs)("div",{className:"field ".concat(s?"field--error":""),children:[(0,r.jsxs)("button",{type:"button",className:"country",onClick:()=>h(e=>!e),children:[(0,r.jsx)(w.eE,{iso2:_.country.iso2,size:20}),(0,r.jsxs)("span",{className:"dial",children:["+",_.country.dialCode]}),(0,r.jsx)("svg",{className:"arrow ".concat(f?"arrow--open":""),width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,r.jsx)("path",{d:"M3 4.5L6 7.5L9 4.5",stroke:"#777E90",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),f&&(0,r.jsxs)("div",{className:"dropdown",children:[(0,r.jsx)("div",{className:"search",children:(0,r.jsx)("input",{ref:g,type:"text",placeholder:d.search,value:m,onChange:e=>x(e.target.value),onClick:e=>e.stopPropagation()})}),(0,r.jsxs)("div",{className:"list",children:[C.map(e=>(0,r.jsxs)("div",{className:"item ".concat(_.country.iso2===e.iso2?"item--active":""),onClick:()=>selectCountry(e),children:[(0,r.jsx)(w.eE,{iso2:e.iso2,size:18}),(0,r.jsx)("span",{className:"name",children:e.name}),(0,r.jsxs)("span",{className:"code",children:["+",e.dialCode]})]},e.iso2)),0===C.length&&(0,r.jsx)("div",{className:"empty",children:d.notFound})]})]}),(0,r.jsx)("input",{type:"tel",className:"phone",placeholder:l,value:_.inputValue,onChange:_.handlePhoneValueChange,ref:_.inputRef})]}),s&&(0,r.jsx)("div",{className:"error",children:s})]})},phoneNumber=e=>{var n,t;let{control:i,errors:a}=e,{t:l,i18n:c}=(0,g.$G)();return(0,r.jsxs)(s.Z,{gutter:[12,12],children:[(0,r.jsx)(o.Z,{xs:24,sm:12,children:(0,r.jsx)(form_PhoneInput,{control:i,name:"main_phone",countryName:"phone_country",lang:c.language,placeholder:"".concat(l("CASHBACK.FORM.PHONE_NUMBER")),error:null==a?void 0:null===(n=a.main_phone)||void 0===n?void 0:n.message})}),(0,r.jsx)(o.Z,{xs:24,sm:12,children:(0,r.jsx)(form_PhoneInput,{control:i,name:"extra_phone",countryName:"extra_phone_country",lang:c.language,placeholder:"".concat(l("CASHBACK.FORM.PHONE_NUMBER")," ").concat(l("CASHBACK.FORM.EXTRA")),error:null==a?void 0:null===(t=a.extra_phone)||void 0===t?void 0:t.message})})]})},E=t(53711),A=t(76240),N=t(17051);let T=[9,8.5,8,7.5,7,6.5,6,5.5,5,4.5];var cashback_form=e=>{var n,t,p,u,f,_,v,C,y,w;
1let{control:O,errors:S,onSubmit:k,setValue:P,loading:I,clearErrors:D}=e,{t:z}=(0,g.$G)(),[R,Z]=(0,i.useState)(!1),{data:B}=useGetCompanyInitialData({query_params:{expand:"ieltsCashbackConfig"}}),M=null!==(w=null==B?void 0:null===(t=B.ieltsCashbackConfig)||void 0===t?void 0:null===(n=t.branches)||void 0===n?void 0:n.map(e=>({value:null==e?void 0:e.id,label:e.name,extra:null==e?void 0:e.region_id})))&&void 0!==w?w:[],H=(0,j.qo)({control:O,name:"branch_id"}),L=(0,i.useMemo)(()=>{var e,n,t;let i=M.find(e=>e.value==H),o=null==B?void 0:null===(n=B.ieltsCashbackConfig)||void 0===n?void 0:null===(e=n.config)||void 0===e?void 0:e.find(e=>(null==e?void 0:e.region_id.toString())==(null==i?void 0:i.extra));if(!o)return;let a=new Map((null!==(t=null==o?void 0:o.config)&&void 0!==t?t:[]).map(e=>[Number(null==e?void 0:e.score),e]));return T.map(e=>{let n=a.get(e);return{value:n?n.score:e,label:(0,r.jsxs)(b,{children:[e,n?(0,r.jsxs)("div",{className:"extra",children:[(0,A.S)(n.amount)," UZS"]}):(0,r.jsx)("div",{className:"extra muted",children:z("CASHBACK.FORM.NO_CASHBACK")})]})}})},[H,M,B,z]);return(0,i.useEffect)(()=>{P("ielts_score",void 0),D("ielts_score")},[H]),(0,r.jsxs)(h,{onSubmit:e=>e.preventDefault(),className:"form",children:[(0,r.jsxs)(s.Z,{gutter:[12,12],wrap:!0,children:[(0,r.jsx)(o.Z,{span:24,children:(0,r.jsx)(d.II,{name:"full_name",control:O,error:null===(p=S.full_name)||void 0===p?void 0:p.message,placeholder:z("CASHBACK.FORM.NAME")})}),(0,r.jsx)(o.Z,{xs:24,sm:12,lg:12,xl:12,children:(0,r.jsx)(d.Ph,{control:O,name:"branch_id",options:M,error:null==S?void 0:null===(u=S.branch_id)||void 0===u?void 0:u.message,placeholder:z("CASHBACK.FORM.BRANCH")})}),(0,r.jsx)(o.Z,{xs:24,sm:12,lg:12,xl:12,children:(0,r.jsx)(d.Mt,{format:"DD-MM-YYYY",getPopupContainer:e=>e.parentElement,allowClear:!0,name:"birth_date",control:O,style:{width:"100%"},error:null==S?void 0:null===(f=S.dob)||void 0===f?void 0:f.message,placeholder:z("CASHBACK.FORM.DOB")})}),(0,r.jsx)(o.Z,{xs:24,sm:12,lg:12,xl:12,children:(0,r.jsx)(d.Ph,{control:O,name:"ielts_score",options:L,error:null==S?void 0:null===(_=S.ielts_score)||void 0===_?void 0:_.message,placeholder:z("CASHBACK.FORM.IELTS_SCORE")})}),(0,r.jsx)(o.Z,{xs:24,sm:12,lg:12,xl:12,children:(0,r.jsxs)(a.Z,{gap:4,children:[(0,r.jsx)(d.Mt,{format:"DD-MM-YYYY",getPopupContainer:e=>e.parentElement,allowClear:!0,name:"test_date",control:O,style:{width:"100%"},error:null==S?void 0:null===(v=S.test_date)||void 0===v?void 0:v.message,placeholder:z("CASHBACK.FORM.TEST_DATE")}),(0,r.jsx)(N.sz,{width:36,height:36,color:"#d9d9d9",onClick:()=>Z(!0),style:{cursor:"pointer"}})]})}),(0,r.jsx)(o.Z,{span:24,children:(0,r.jsx)(phoneNumber,{control:O,errors:S})})]}),(0,r.jsxs)(m,{children:[(0,r.jsx)(c.Z,{block:!0,onlyImage:!0,multiple:!1,text:"Upload IELTS Certificate",handleChange:e=>{var n;P("ielts_file_id",null===(n=e[0])||void 0===n?void 0:n.id),D("ielts_file_id")}}),(0,r.jsx)(E.Z,{error:null==S?void 0:null===(C=S.ielts_file_id)||void 0===C?void 0:C.message})]}),(0,r.jsx)(x,{children:z("CASHBACK.FORM.CONSENT")}),(0,r.jsx)(a.Z,{justify:"center",className:"footer",children:(0,r.jsx)(d.zx,{onClick:k,className:"submit",disabled:!!(null===(y=Object.values(S))||void 0===y?void 0:y.length),loading:I,children:z("CASHBACK.FORM.SEND")})}),(0,r.jsx)(l.Z,{src:"/images/video-file.svg",alt:"",width:0,style:{borderRadius:6,display:"none"},preview:{destroyOnClose:!0,visible:R||!1,closeIcon:(0,r.jsx)(N.Tw,{width:24,height:24,color:"var(--grey-800)"}),onVisibleChange:e=>{Z(e)},imageRender:()=>(0,r.jsx)("img",{src:"/images/certificate/ielts.jpeg",style:{zIndex:2e4,maxWidth:"100%",maxHeight:"70%"}}),toolbarRender:()=>null}})]})},P=t(1297),I=t(58746),moneyBack=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",...e,children:[(0,r.jsx)("path",{d:"M20.4338 1.25499C19.8813 1.24124 19.3288 1.25499 18.7788 1.29124C15.2113 1.52499 11.8438 2.67749 8.87631 4.90999V3.74499C8.87631 3.41347 8.74461 3.09553 8.51019 2.86111C8.27577 2.62669 7.95783 2.49499 7.62631 2.49499C7.29479 2.49499 6.97685 2.62669 6.74242 2.86111C6.508 3.09553 6.37631 3.41347 6.37631 3.74499V7.61999C6.37631 8.73374 7.71881 9.28999 8.50756 8.50624C14.2813 2.73374 23.4201 2.13499 29.8963 7.10499C36.3726 12.075 38.1576 21.055 34.0776 28.125C29.9951 35.195 21.3301 38.1325 13.7876 35.0075C6.24506 31.8825 2.19881 23.6812 4.31256 15.7962C4.35522 15.6375 4.36613 15.4719 4.34465 15.3089C4.32317 15.146 4.26972 14.9889 4.18739 14.8466C4.10505 14.7043 3.99543 14.5797 3.86483 14.4799C3.73423 14.3801 3.5852 14.3071 3.42631 14.265C3.10673 14.1781 2.76572 14.2215 2.47815 14.3858C2.19059 14.5501 1.97997 14.8218 1.89256 15.1412C-0.539942 24.2212 4.14381 33.725 12.8276 37.3237C21.5113 40.9212 31.5388 37.5075 36.2388 29.37C40.9388 21.2325 38.8788 10.8412 31.4213 5.11999C28.2639 2.69435 24.4145 1.34026 20.4338 1.25499ZM20.0051 7.20749C12.9538 7.20749 7.20506 12.9475 7.20506 19.9975C7.20506 27.0475 12.9551 32.795 20.0051 32.795C27.0551 32.795 32.7926 27.0462 32.7926 19.9975C32.7926 12.9487 27.0551 7.20749 20.0051 7.20749ZM20.0051 12.1437C20.1692 12.1444 20.3316 12.1774 20.483 12.2408C20.6344 12.3042 20.7719 12.3969 20.8875 12.5134C21.0031 12.6299 21.0946 12.7681 21.1568 12.92C21.219 13.0719 21.2507 13.2346 21.2501 13.3987V13.5912C22.5001 13.7612 23.5713 14.5362 24.1401 15.615C24.2942 15.9089 24.3253 16.252 24.2265 16.5688C24.1277 16.8856 23.9071 17.1502 23.6132 17.3044C23.3193 17.4585 22.9762 17.4896 22.6594 17.3908C22.3426 17.292 22.078 17.0714 21.9238 16.7775C21.8115 16.5589 21.6406 16.3758 21.4302 16.2487C21.2199 16.1215 20.9783 16.0553 20.7326 16.0575H19.5701C18.8026 16.0575 18.2226 16.6375 18.2226 17.405C18.2226 18.1725 18.8026 18.7525 19.5701 18.7525H20.4376C22.5476 18.7525 24.2751 20.4912 24.2751 22.6C24.2715 23.4762 23.9702 24.3252 23.4205 25.0075C22.8708 25.6898 22.1054 26.165 21.2501 26.355V26.6037C21.2501 26.9356 21.1182 27.2539 20.8836 27.4885C20.6489 27.7232 20.3307 27.855 19.9988 27.855C19.667 27.855 19.3487 27.7232 
119.114 27.4885C18.8794 27.2539 18.7476 26.9356 18.7476 26.6037V26.4087C18.1411 26.3246 17.5632 26.0977 17.0615 25.7467C16.5597 25.3958 16.1484 24.9308 15.8613 24.39C15.7795 24.2441 15.7277 24.0833 15.7091 23.9171C15.6905 23.7509 15.7054 23.5826 15.7529 23.4223C15.8004 23.2619 15.8796 23.1127 15.9858 22.9835C16.092 22.8543 16.223 22.7476 16.3711 22.6699C16.5192 22.5922 16.6814 22.5449 16.8481 22.531C17.0147 22.517 17.1825 22.5366 17.3415 22.5885C17.5004 22.6405 17.6474 22.7239 17.7736 22.8336C17.8998 22.9433 18.0027 23.0773 18.0763 23.2275C18.3001 23.6537 18.7413 23.945 19.2751 23.945H20.4376C21.2063 23.945 21.7751 23.3675 21.7751 22.6C21.7751 21.8325 21.2063 21.2525 20.4376 21.2525H19.5701C18.5513 21.2472 17.5757 20.8402 16.8553 20.1198C16.1349 19.3994 15.7278 18.4238 15.7226 17.405C15.7226 15.5787 17.0276 14.035 18.7476 13.6525V13.3987C18.7469 13.2335 18.779 13.0698 18.842 12.9171C18.905 12.7644 18.9976 12.6257 19.1145 12.509C19.2315 12.3923 19.3704 12.2999 19.5232 12.2372C19.6761 12.1745 19.8399 12.1428 20.0051 12.1437Z",fill:"url(#paint0_linear_836_12774)"}),(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"paint0_linear_836_12774",x1:"20.0013",y1:"1.24976",x2:"20.0013",y2:"38.7494",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{stopColor:"#594206"}),(0,r.jsx)("stop",{offset:"1",stopColor:"#29200A"})]})})]}),D=t(10339),z=t(75027),R=t(11163),Z=t(18268);let B={[Z.s.NOT_FOUND]:"/cashback/error",[Z.s.EXPIRE]:"/cashback/warning",[Z.s.DATE_NOT_VALID]:"/cashback/date-not-found",[Z.s.ALREADY_GIVEN]:"/cashback/given",[Z.s.IELTS_BAND_SCORE_NOT_VALID]:"/cashback/band-not-valid",[Z.s.SUCCESS]:"/cashback/success"};var app_cashback=()=>{let{t:e}=(0,g.$G)(),n=(0,R.useRouter)(),{watch:t,control:o,handleSubmit:a,setValue:l,setError:s,reset:c,formState:{errors:d},clearErrors:p}=(0,j.cI)(),u=useCreateCashback({onSuccess:e=>{var t;let r=null==e?void 0:null===(t=e.http)||void 0===t?void 0:t.status;n.replace(B[r]||"/cashback/success"),c({})},onError:e=>{(0,I.R)({err:e,setError:s})}});return(0,i.useEffect)(()=>{let e=t((e,n)=>{let{name:t,type:r}=n;"change"===r&&p(t)});return()=>e.unsubscribe()},[t]),(0,r.jsxs)(P.i,{children:[(0,r.jsx)(P.J,{children:(0,r.jsx)(moneyBack,{})}),(0,r.jsx)("h1",{children:e("CASHBACK.TITLE")}),(0,r.jsx)("p",{className:"description",children:e("CASHBACK.DESCRIPTION")}),(0,r.jsx)(cashback_form,{control:o,errors:d,setValue:l,onSubmit:()=>{let e=t(),n=!!(null==e?void 0:e.extra_phone);u.mutate({body:{...e,extra_phone:n?e.extra_phone:void 0,extra_phone_country:n?e.extra_phone_country:void 0}})},clearErrors:p,loading:u.isLoading}),(0,r.jsx)(z.Z,{}),(0,r.jsx)(D.Z,{})]})}},1297:function(e,n,t){t.d(n,{J:function(){return a},i:function(){return o}});var r=t(82729),i=t(37556);function _templateObject(){let e=(0,r._)(['\n  background: url("/certificate/pattern.jpg") no-repeat top;\n  min-height: 70vh;\n  background-size: 1500px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-origin: border-box;\n  flex-direction: column;\n  font-family: var(--font-inter);\n  padding-top: 80px;\n  .ant-picker-input {\n    display: flex;\n    flex-direction: row-reverse;\n    gap: 4px;\n\n    input::placeholder {\n      font-size: 12px;\n      line-height: 15px;\n      font-weight: 500;\n      color: #b1b5c3;\n      @media (max-width: 576px) {\n        font-size: 16px !important;\n      }\n    }\n  }\n\n  /* The phone number inside the contact line is a tel: link. Per the design it\n     stands out from the grey sentence around it — dark and semibold — and never\n     wraps mid-number. */\n  .phone-link {\n    color: #141416;\n    font-weight: 400;\n    text-decoration: none;\n    white-space: nowrap;\n  }\n\n  h1 {\n    font-weight: 700;\n    font-size: 48px;\n    line-height: 58px;\n    letter-spacing: -0.01em;\n    margin-top: 19px;\n    text-align: center;\n  }\n\n  .description {\n    width: 70vw;\n    font-size: 18px;\n    line-height: 22px;\n    text-align: center;\n    letter-spacing: -0.01em;\n    color: #777e90;\n    margin-top: 16px;\n  }\n\n  .form {\n    max-width: 740px;\n    width: 100%;\n    margin-top: 32px;\n  }\n  .wrapper-of-button {\n    display: flex;\n    justify-content: center;\n    margin: 0 auto;\n    width: 100%;\n  }\n  @media (max-width: 530px) {\n    background-size: 1100px;\n\n    h1 {\n      font-size: 24px;\n      line-height: 29px;\n    }\n\n    .description {\n      font-size: 16px;\n      line-height: 130%;\n      text-align: center;\n      color: #777e90;\n      width: 90vw;\n    }\n    .form {\n      max-width: 100%;\n      padding: 0 24px;\n    }\n    .ant-select-single {\n      height: 44px;\n    }\n    .wrapper-of-button {\n      .submit {\n        width: 100%;\n      }\n    }\n  }\n\n  @media (max-width: 768px) {\n    background-size: 1300px;\n  }\n']);
1return _templateObject=function(){return e},e}function _templateObject1(){let e=(0,r._)(["\n  width: 80px;\n  height: 80px;\n  border-radius: 50%;\n  background: #ffcf00;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n"]);return _templateObject1=function(){return e},e}let o=i.Z.div(_templateObject()),a=i.Z.div(_templateObject1())},18268:function(e,n,t){var r,i;t.d(n,{s:function(){return r}}),(i=r||(r={}))[i.DATE_NOT_VALID=100]="DATE_NOT_VALID",i[i.SUCCESS=200]="SUCCESS",i[i.NOT_FOUND=300]="NOT_FOUND",i[i.EXPIRE=400]="EXPIRE",i[i.ALREADY_GIVEN=500]="ALREADY_GIVEN",i[i.IELTS_BAND_SCORE_NOT_VALID=600]="IELTS_BAND_SCORE_NOT_VALID"},79249:function(e,n,t){t.d(n,{V4:function(){return r},eX:function(){return i}});let r=100,i="UZ"},76240:function(e,n,t){t.d(n,{S:function(){return separateNumberThousands}});let separateNumberThousands=e=>{let n=Math.floor(e),t=n?n.toString().replace(/\B(?=(\d{3})+(?!\d))/g," "):0;return t}},97582:function(e,n,t){function __rest(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>n.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t}function __awaiter(e,n,t,r){return new(t||(t=Promise))(function(i,o){function fulfilled(e){try{step(r.next(e))}catch(e){o(e)}}function rejected(e){try{step(r.throw(e))}catch(e){o(e)}}function step(e){var n;e.done?i(e.value):((n=e.value)instanceof t?n:new t(function(e){e(n)})).then(fulfilled,rejected)}step((r=r.apply(e,n||[])).next())})}function __generator(e,n){var t,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=verb(0),a.throw=verb(1),a.return=verb(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function verb(l){return function(s){return function(l){if(t)throw TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(t=1,r&&(i=2&l[0]?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,r=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===l[0]||2===l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],r=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}function __read(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,i,o=t.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a}function __spreadArray(e,n,t){if(t||2==arguments.length)for(var r,i=0,o=n.length;i<o;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return e.concat(r||Array.prototype.slice.call(n))}t.d(n,{CR:function(){return __read},Jh:function(){return __generator},_T:function(){return __rest},ev:function(){return __spreadArray},mG:function(){return __awaiter}}),"function"==typeof SuppressedError&&SuppressedError}}]);
2//# sourceMappingURL=4298.9cd20e1a6141d1b5.js.map

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.