1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1172],{4615:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/iframe",function(){return t(82138)}])},42168:function(e,n,t){"use strict";t.d(n,{b:function(){return u}});var r=t(67294),i=t(92741);let u=()=>(0,r.useContext)(i.P)},82138:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return p}});var r=t(85893),i=t(5152),u=t.n(i),a=t(11163),o=t(67294),c=t(6118),l=t(93191),s=t(93746);let d=u()(()=>Promise.all([t.e(3704),t.e(6858),t.e(3967)]).then(t.bind(t,56858)),{loadableGenerated:{webpack:()=>[56858]},ssr:!1});var p=!0;n.default=()=>{let[e,n]=(0,o.useState)(!1),[t,i]=(0,o.useState)(!1),[u,p]=(0,o.useState)(!1),f=(0,a.useRouter)(),h=null==f?void 0:f.query,m=(0,s.O)(h,"shouldUpdatePage"),w=(0,s.O)(h,"userType"),g=(0,s.O)(h,"initPage"),y=(0,s.O)(h,"email"),v=(0,s.O)(h,"neophyteMode"),P=(0,s.O)(h,"neophyteSkuId"),{page:O,setPage:b,email:S,setEmail:C,handleValidateEmail:E,emailSuggestion:_,password:N,setPassword:M,error:R,setError:U,handleSubmit:k,handleLoginWith:x,isPending:L,recoveryStatus:T,handleEmailAuthSuccess:I,handleChangePassword:j,handleConfirmSocialLogin:z,isCheckedPolicy:D,setIsCheckedPolicy:B,isShowPolicyMessage:W,isConfirmCodeSent:q,handleCheckConfirmCode:A,handleSendConfirmCode:J}=(0,c.g)({neophyteMode:"true"===v,neophyteSkuId:P,email:y,initPage:g,...m&&{shouldUpdatePage:"true"===m},userType:w,registerWithPass:!0}),X=(0,o.useRef)(null);return(0,o.useEffect)(()=>{if(!X.current)return;let e=new ResizeObserver(e=>{let n=e[0].contentRect.height;if(window.top){let e=window.top.innerWidth;window.top.postMessage({name:"auth.resize",height:n,width:e})}});return e.observe(X.current),()=>e.disconnect()},[]),(0,o.useEffect)(()=>{var e;if(null===(e=window)||void 0===e?void 0:e.top){let e=window.top,t=e.matchMedia("(min-width: 768px)"),r=e.matchMedia("(min-width: 480px) and (max-width: 767px)"),u=e.matchMedia("(max-width: 479px)");n(null==t?void 0:t.matches),i(null==r?void 0:r.matches),p(null==u?void 0:u.matches),t.addEventListener("change",e=>{n(e.matches)}),r.addEventListener("change",e=>{i(e.matches)}),u.addEventListener("change",e=>{p(e.matches)})}},[]),(0,r.jsx)("div",{ref:X,style:{display:"flex",width:"fit-content",margin:"0 auto"},children:(0,r.jsx)(d,{neophyteMode:!1,page:O,onPageChange:b,email:S,onEmailChange:C,onValidateEmail:E,emailSuggestion:_,password:N,onPasswordChange:M,error:R,setError:U,onSubmit:k,onLoginWith:x,isPending:L,recoveryStatus:T,isSmallMobile:u,isMobile:t,isTablet:e,onEmailAuth:l.qj,onEmailAuthSuccess:I,onSetNewPassword:j,onConfirmSocialLogin:z,isCheckedPolicy:D,setIsCheckedPolicy:B,isShowPolicyMessage:W,isConfirmCodeSent:q,onSendConfirmCode:J,onCheckConfirmCode:A})})}},98625:function(e,n,t){"use strict";t.d(n,{PJ:function(){return f},Rw:function(){return c},_Z:function(){return l},_l:function(){return d},dy:function(){return p},nv:function(){return h},sJ:function(){return g},uN:function(){return s},yL:function(){return m},zC:function(){return w}});var r=t(13311),i=t.n(r),u=t(36364);let a=["paper-a5-bw","paper-a4-bw","paper-a5-color","paper-a4-color","digital","audio"],o=["paper-a5-bw-eu","paper-a4-bw-eu","paper-a5-color-eu","paper-a4-color-eu","digital","audio"],c=["RU","BY","KZ"];function l(e){return[...o,...a].includes(e)}function s(e,n){if(!n)return e.filter(e=>a.includes(e.name));let t=c.includes(n)?a:o;return e.filter(e=>t.includes(e.name))}let d=e=>{switch(e){case"RUB":return"â½";case"PLN":return"zÅ";case"EUR":return"â¬";default:return""}},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,u.ej)("isRUEU");return n=>{try{let t={};return t.price=e&&n.priceOut?n.priceOut:n.price,t.priceOriginal=e&&n.priceOriginalOut?n.priceOriginalOut:n.priceOriginal,t.currency=e&&n.currencyOut?n.currencyOut:n.currency,t.currencyIcon=d(t.currency),t}catch(e){return console.error(e),{price:null,priceOriginal:null,currency:null,currencyIcon:null}}}};function f(e){return e.sort((e,n)=>{switch(e.name){case"digital":return -1;case"audio":return 1;default:if(e.name>n.name&&"audio"!==n.name)return 1;if(e.name<n.name)return -1;return 0}})}function h(e){let n=e&&i()(e.annotations,{type:"patronage"}),t=e&&i()(e.annotations,{type:"moderation",id:"fanfic"});if(n&&!t){let e=1;if(n&&n.valueDate){let t=new Date;e=new Date(n.valueDate).getTime()-t.getTime()}return!!(n&&e>0)}return!1}function m(){var e;let n=window.top?window.top.location.toString():e?window.location[e]:window.location.toString();if(n){let e=n;try{let t=new URL(n),r=(null==t?void 0:t.searchParams).get("returnUrl");r&&(e=r)}catch(e){console.log("parse returnUrl error ===>",(null==e?void 0:e.message)||e)}(0,u.d8)("pathname-auth",e)}}function w(e){switch(e){case"ru":default:return"RUB";case"pl":return"PLN"}}function g(e,n){return!!e&&!!n&&Math.ceil(100*Number(Number(e)/Number(n)))/100}
1}},function(e){e.O(0,[323,2437,6118,2888,9774,179],function(){return e(e.s=4615)}),_N_E=e.O()}]);
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.