1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3575],{99995:function(e,t,n){"use strict";n.d(t,{Z:function(){return l.C}});var l=n(85010)},85010:function(e,t,n){"use strict";n.d(t,{C:function(){return j}});var l=n(85893),r=n(67294),a=n(74153),o=n.n(a),i=n(26058),s=n(35979),c=n(4298),u=n.n(c),d=n(50061),m=n(11163),p=n(5152),g=n.n(p),h=n(35976);let f={ru:{title:"УпÑавлÑйÑе номеÑом Ñ ÐºÐ¾Ð¼ÑоÑÑом",subtitle:"QR-код оÑпÑÐ°Ð²Ð¸Ñ Ð²Ð°Ñ Ð² мобилÑное пÑиложение",description:"ÐдеÑÑ Ñдобно â можно подклÑÑаÑÑ ÑÑлÑги, ÑмоÑÑеÑÑ Ð´ÐµÑализаÑиÑ, ÑÑаÑÑвоваÑÑ Ð² акÑиÑÑ
, ÑовеÑÑаÑÑ Ð¿Ð¾ÐºÑпки и многое дÑÑгое",link:"https://click.altel.kz/GGx2/popup"},kk:{title:"ÐөмÑÑÑÒ£ÑÐ·Ð´Ñ Ð±Ð°ÑÒаÑÑÐ´Ñ ÒÐ¾Ð»Ð°Ð¹Ð»Ñ ÐµÑÑп алÑÒ£Ñз",subtitle:"QR-код аÑÒÑÐ»Ñ Ð¼Ð¾Ð±Ð¸Ð»ÑÐ´Ñ ÒоÑÑмÑамÑзÒа Ó©ÑеÑÑз",description:"ÒÑзмеÑÑеÑÐ´Ñ ÒоÑÑп, егжей-ÑÐµÐ³Ð¶ÐµÐ¹Ð»Ñ Ð´ÐµÑекÑеÑÐ´Ñ ÐºÓ©ÑÑп, ÑÒ¯ÑÐ»Ñ Ð½Ð°ÑÒандаÑÒа ÒаÑÑÑÑп, ÑиÑÐ¼Ð´Ñ ÑаÑÑп алÑÐ»Ð°Ñ Ð¶Ð°ÑаÑдÑÒ£ жÓне баÑÒа да Ð¿Ð°Ð¹Ð´Ð°Ð»Ñ ÑÑнкÑиÑлаÑдÑÒ£ ÑапÑÑÑÐ¼Ð°Ñ ÒÒ±ÑалÑ",link:"https://click.altel.kz/GGx2/popup"}},k=g()(()=>n.e(7154).then(n.bind(n,87154)),{loadableGenerated:{webpack:()=>[87154]},ssr:!1}),v=()=>{let{locale:e}=(0,m.useRouter)(),{isQrModalOpen:t,hideQrModal:n}=(0,h.Z)();return(0,l.jsx)(k,{url:f[e||"ru"].link,open:t,onClose:n,title:f[e||"ru"].title,subtitle:f[e||"ru"].subtitle,qrText:f[e||"ru"].description})};var y=n(47041),w=n(5233),_=n(93618);let{Content:x}=i.Z,b=e=>{let{withoutFooter:t=!1,headerMobileColor:n="#fafafa",children:a,localeConfig:c}=e,p=(0,m.useRouter)(),{pathname:g,asPath:h,query:f}=p,[k,b]=(0,r.useState)(!1),j="MOBILE"!==(0,y.getCookie)("clientType"),{i18n:C}=(0,w.$G)(),{sm:T}=(0,d.Z)(),Z=()=>b(!0),B=()=>b(!1),N=e=>{e.startsWith("http")?window.location.href=e:p.push(e)},S=null;t||(S=T?(0,l.jsx)(s.$_,{}):(0,l.jsx)(s.bE,{}));let E=()=>{let e="ru"===C.language?"kk":"ru";p.push({pathname:g,query:f},h,{locale:e})};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(u(),{id:"google-analytics",strategy:"afterInteractive",children:"(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='
1+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','GTM-PWC85BB');"}),(0,l.jsxs)(i.Z,{className:o().page,children:[(0,l.jsx)("noscript",{dangerouslySetInnerHTML:{__html:'<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PWC85BB" height="0" width="0" style="display:none;visibility:hidden"></iframe>'}}),(0,l.jsxs)(s.Iw,{currentApp:"core",brand:"altel",locale:C.language,localeConfig:c,children:[T?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(v,{}),(0,l.jsx)(s.rJ,{onChangeLanguage:E}),(0,l.jsx)(s.h4,{onNavigate:N})]}):(0,l.jsx)(l.Fragment,{children:j&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(s.Aq,{closeUrl:(0,_.EW)("close.svg"),logoUrl:"/new/images/altel-mobile.png",deepLink:"https://click.altel.kz/GGx2/9f1qhv9n"}),(0,l.jsx)(s.DJ,{headerMobileColor:n||"#fafafa",showDrawer:Z}),(0,l.jsx)(s.nn,{open:k,onClose:B,onNavigate:N,onChangeLanguage:E})]})}),(0,l.jsx)(x,{className:o().content,children:a}),j&&S]})]})]})};var j=b},2270:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return B}});var l,r=n(85893),a=n(67294),o=n(39332),i=n(86587),s=n(24426),c=n(38289),u=n(85696),d=n(5233),m=n(52864),p=n(11163);let g=async e=>{let t={id_source:String(e.idSource),id_theme:"21462",msisdn:"",contact_phone:e.phoneNumber,id_location:e.city||51,id_lang:e.locale&&"kk"===e.locale?"2":"1",client_name:e.initials,field_422:"2",field_1159:"10",field_1214:e.cityName||"",field_1223:e.utmSource,field_1224:e.utmMedium||"",field_1225:e.utmCampaign||"",field_1226:e.utmTerm||"",field_1227:e.utmContent||"",field_1222:e.url||"url",field_1221:e.siteBlockId||"",field_1220:e.page||"СÑÑаниÑа ÑайÑа"},n=await fetch("".concat("https://altel.kz","/apigw/v1/request/new-request"),{method:"POST",headers:{"Content-Type":"application/json","accept-language":e.locale||"ru"},body:JSON.stringify(t)});if(!n.ok){let e=await n.json();throw Error((null==e?void 0:e.message)||"ÐÑоизоÑла оÑибка на ÑеÑвеÑе")}return await n.json()};var h=n(75865);let{useForm:f,useWatch:k}=i.Z,v=(e,t,n,l,r,o)=>{let[i,c]=(0,a.useState)(!1),u=(0,p.useRouter)(),{locale:d}=u,[m]=f(),{utm_source:v,utm_medium:y,utm_campaign:w,utm_term:_,utm_content:x}=u.query,b=(0,h.V)(w),j=async(a,i,m,p,h,f)=>{c(!0);try{await g({idSource:b,initials:a.name,city:Number(a.city)||51,phoneNumber:a.phone.replace(/\D/g,""),date:new Date().toISOString().slice(0,10),tariffName:i,gift:"No",utmSource:v||"",utmMedium:y||"",utmCampaign:w||"",utmTerm:_||"",utmContent:x||"",url:window.location.href||u.asPath,siteBlockId:p,page:m,locale:d||"ru",cvm:h||"cvm"===u.query.utm_source,cityName:f||""}),s.Z.success({title:e,content:t,okText:n,okButtonProps:{style:{backgroundColor:"#E72487",borderRadius:999}}})}catch(t){let e=String(t).replace(/^Error:\s*/,"");t instanceof Error&&(e=t.message,"Failed to fetch"===t.message&&(e=o)),s.Z.warn({title:l,content:e,okText:r,okButtonProps:{style:{backgroundColor:"#E72487",borderRadius:999}}})}finally{c(!1)}},C=k("name",m),T=k("phone",m),Z=k("city",m),B=!(C&&Z&&T&&13===T.length);return{isLoading:i,isButtonDisabled:B,form:m,onSubmit:j}};var y=n(71817),w=n.n(y),_=n(39050);let x=e=>(0,_.un)(e.target.value),b=e=>(0,_.KY)(e.target.value),j=(e,t)=>(null!==(l=null==t?void 0:t.label)&&void 0!==l?l:"").toLowerCase().includes(e.toLowerCase()),{Text:C}=o.Z,{Item:T}=i.Z,Z=e=>{let{open:t,onCancel:n,deviceCardFormId:l,tariffName:a,page:o,siteBlockId:p,cvm:g,title:h,subtitle:f,messageTitle:k}=e,{t:y}=(0,d.$G)("5g-routers",{keyPrefix:"orderForm"}),{cities:_}=(0,m.t)(),Z=null!=h?h:y("title"),B=null!=f?f:y("subtitle"),N=null!=k?k:y("successMessageTitle"),{form:S,isButtonDisabled:E,isLoading:F,onSubmit:P}=v(y("successMessageTitle"),N,y("okButtonText"),y("errorTitle"),y("backButtonText"),y("errorInternet")),$=()=>{n(),S.resetFields()},G=async e=>{let t=e.city,n=_.find(e=>e.id_request===t);P(e,a,o,p,g,null==n?void 0:n.label).then(()=>{S.resetFields(),$()})},M=()=>{S.submit()};return(0,r.jsx)(s.Z,{title:Z,open:t,onCancel:$,cancelButtonProps:{style:{display:"none"}},destroyOnClose:!0,okText:y("button"),okButtonProps:{htmlType:"submit",disabled:E||F,loading:F,id:l,onClick:M},children:(0,r.jsxs)(i.Z,{id:"pre-order",layout:"vertical",wrapperCol:{span:12},onFinish:G,form:S,className:w().form,children:[(0,r.jsx)(C,{children:B}),(0,r.jsx)(T,{label:y("fields.name"),name:"name",style:{marginTop:16},getValueFromEvent:b,children:(0,r.jsx)(c.Z,{placeholder:"СÑлÑан"})}),(0,r.jsx)(T,{label:y("fields.phone"),name:"phone",getValueFromEvent:x,children:(0,r.jsx)(c.Z,{addonBefore:"+7",placeholder:"700 800-08-80",maxLength:13,inputMode:"numeric"})}),(0,r.jsx)(T,{label:y("fields.city"),name:"city",children:(0,r.jsx)(u.Z,{showSearch:!0,placeholder:"ÐлмаÑÑ",optionFilterProp:"children",filterOption:j,options:_.map(e=>({value:e.id_request,label:e.label}))})})]})})};var B=Z},52864:function(e,t,n){"use strict";n.d(t,{F:function(){return o},t:function(){return i}});var l=n(85893),r=n(67294);let a=(0,r.createContext)({}),o=e=>{let{children:t,initialCities:n}=e,[o,i]=(0,r.useState)(n||[]),s=(0,r.useMemo)(()=>({cities:o,setCities:i}),[o,i]);return(0,l.jsx)(a.Provider,{value:s,children:t})},i=()=>(0,r.useContext)(a)},50061:function(e,t,n){"use strict";var l=n(75302);
1let{useBreakpoint:r}=l.ZP;t.Z=r},35976:function(e,t,n){"use strict";var l=n(67294);let r=()=>{let[e,t]=(0,l.useState)(!1),n=()=>{t(!0)},r=()=>{t(!1)};return{isQrModalOpen:e,showQrModal:n,hideQrModal:r}};t.Z=r},39050:function(e,t,n){"use strict";n.d(t,{KY:function(){return r},un:function(){return l}});let l=e=>{let t=e.replace(/\D/g,"");return t.length<=3?t:t.length>3&&t.length<=6?t.replace(/(\d{3})(\d{0,2})/,"$1 $2"):t.length>6&&t.length<=8?t.replace(/(\d{3})(\d{3})(\d{?})/,"$1 $2-$3"):t.replace(/(\d{3})(\d{3})(\d{0,2})(\d{0,2})/,"$1 $2-$3-$4")},r=e=>e.replace(/[^A-Za-z\u0400-\u044FÓÓÒÒÒÒÒ¢Ò£Ó¨Ó©Ò°Ò±Ò®Ò¯ÒºÒ»ÐÑ ]+/g,"")},75865:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});let l={cvm_aktau:220,cvm_atyrau:221,cvm_kostanay:222,cvm_kyzylorda:223,cvm_pavlodar:224,cvm_petropavlovsk:225,cvm_uralsk:226,cvm_telemarketing:215},r=e=>{var t;return e&&null!==(t=l[e])&&void 0!==t?t:"204"}},93618:function(e,t,n){"use strict";n.d(t,{A1:function(){return a},EW:function(){return r},Jn:function(){return l},ky:function(){return o},qm:function(){return i}});let l=e=>"".concat("/new","/new-altel/images/").concat(e),r=e=>"".concat("https://tele2.kz/images/web","/new-altel/images/").concat(e),a=e=>"".concat("https://tele2.kz/images/web","/new-altel/icons/").concat(e),o=e=>"".concat("https://tele2.kz/images/web","/").concat(e);function i(e){return e?"".concat("https://altel.kz").concat(e):""}},74153:function(e){e.exports={page:"layouts_page__5CBsf",content:"layouts_content__PlAIS"}},71817:function(e){e.exports={form:"DeviceForm_form__y48_m"}}}]);
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.