PageSourceSearch

https://fotolab.ai/_next/static/chunks/7620.6c35e849224550e8.js

js fotolab.ai collected 2026-10-05 13:07:36 UTC 14,583 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="72a2ad26-c3f7-4a30-bf6b-99cb31b6b156",e._sentryDebugIdIdentifier="sentry-dbid-72a2ad26-c3f7-4a30-bf6b-99cb31b6b156")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7620],{13084:(e,t,s)=>{s.d(t,{A:()=>N});var n=s(95155),a=s(12115),r=s(26497),i=s(9924),l=s(64182),o=s(65361),c=s(43569),d=s(63909),x=s(45748),m=s(39059),u=s(80297),p=s(48550),h=s(60023),b=s(25234);let g={hidden:{opacity:0,transition:{duration:.2}},visible:{opacity:1,transition:{duration:.2}}},f={hidden:{opacity:0,scale:.92,y:24},visible:{opacity:1,scale:1,y:0,transition:{type:"spring",damping:25,stiffness:350}},exit:{opacity:0,scale:.95,y:16,transition:{duration:.15}}},j={hidden:{y:"100%"},visible:{y:0,transition:{type:"spring",damping:30,stiffness:350}},exit:{y:"100%",transition:{duration:.2}}};function w(e){let{actionLabel:t,creditsLabel:s,isLoading:a,isDisabled:r,name:i,onSelect:l,price:c,photos:d,popular:x,popularLabel:m,photosLabel:u}=e;return(0,n.jsxs)("div",{className:"grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-3 gap-y-2 px-4 py-3 rounded-xl text-sm transition-colors ".concat(x?"bg-gradient-to-r from-orange-50 to-rose-50 ring-1 ring-orange-200":"bg-gray-50"),children:[(0,n.jsxs)("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[(0,n.jsx)("span",{className:"font-semibold text-gray-900",children:i}),x&&(0,n.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-orange-600 bg-orange-100 rounded-full px-2 py-0.5",children:m})]}),(0,n.jsx)("div",{className:"text-right whitespace-nowrap",children:(0,n.jsx)("span",{className:"font-bold text-gray-900",children:c})}),(0,n.jsxs)("div",{className:"col-span-2 flex flex-wrap items-center justify-between gap-2",children:[(0,n.jsxs)("span",{className:"text-xs text-gray-500",children:[d," ",u]}),(0,n.jsx)("button",{type:"button",onClick:l,disabled:r||a,className:"inline-flex min-w-[110px] items-center justify-center gap-2 rounded-xl px-3.5 py-2 text-xs font-semibold transition-all ".concat(x?"bg-gradient-to-r from-orange-500 to-rose-500 text-white shadow-md shadow-orange-500/25 hover:from-orange-600 hover:to-rose-600":"bg-stone-900 text-white hover:bg-stone-800"," disabled:cursor-not-allowed disabled:opacity-70"),children:a?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"h-3.5 w-3.5 animate-spin rounded-full border-2 border-current/30 border-t-current"}),s]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o.A,{className:"h-3.5 w-3.5"}),t]})})]})]})}function N(e){let{isOpen:t,onClose:s,mode:o}=e,N=(0,p.R)("UpsellModal"),{error:v,loadingTier:y,locale:_,startCheckout:k,tariffs:C,pricingLoading:R,pricingError:P,reloadPricing:A}=(0,b.D)("limit_exceeded_modal",N("checkoutError")),[S,E]=(0,a.useState)(!1);(0,a.useEffect)(()=>{E(window.innerWidth<640)},[]);let[I,T]=(0,a.useState)(0),[D,L]=(0,a.useState)(!1),U=(0,a.useRef)(0),F=(0,a.useRef)(null),J=(0,a.useCallback)(e=>{U.current=e.touches[0].clientY,L(!0)},[]),O=(0,a.useCallback)(e=>{if(!D)return;let t=e.touches[0].clientY-U.current;t>0&&T(t)},[D]),Y=(0,a.useCallback)(()=>{I>100&&s(),T(0),L(!1)},[I,s]);return(0,n.jsx)(r.N,{children:t&&(0,n.jsxs)(l.lG,{as:i.P.div,open:t,onClose:s,initialFocus:F,className:"fixed inset-0 z-[60] ".concat(S?"flex items-end":"flex items-center justify-center p-4"),variants:g,initial:"hidden",animate:"visible",exit:"hidden",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":"true"}),(0,n.jsxs)(l.Lj,{as:i.P.div,variants:S?j:f,initial:"hidden",animate:"visible",exit:"exit",style:S&&D?{transform:"translateY(".concat(I,"px)")}:void 0,onTouchStart:S?J:void 0,onTouchMove:S?O:void 0,onTouchEnd:S?Y:void 0,className:"relative w-full bg-white shadow-2xl overflow-hidden ".concat(S?"inset-x-0 bottom-0 rounded-t-3xl max-h-[85vh] overflow-y-auto":"max-w-md rounded-3xl"),children:[S&&(0,n.jsx)("div",{className:"pt-3 pb-1 flex justify-center",children:(0,n.jsx)("div",{className:"w-10 h-1 bg-stone-300 rounded-full"})}),(0,n.jsxs)("div",{className:"relative px-6 pt-6 pb-5 text-center bg-gradient-to-br from-rose-500 to-orange-500",children:[(0,n.jsx)("button",{ref:F,type:"button",onClick:s,className:"absolute right-3 top-3 inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-full text-white/80 hover:text-white hover:bg-white/10 transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white","aria-label":N("close"),children:(0,n.jsx)(c.A,{className:"h-5 w-5"})}),(0,n.jsx)("div",{className:"mx-auto mb-3 flex h-14 w-14 items-center justify-center rounded-2xl bg-white/20 shadow-inner",children:(0,n.jsx)(d.A,{className:"h-7 w-7 text-white"})}),(0,n.jsx)(l.L3,{as:"h2",className:"text-xl font-bold text-white",children:"limit_exceeded"===o?N("limitReached"):N("likeResult")}),(0,n.jsx)("p",{className:"mt-1 text-sm text-white/80",children:N("limitReachedDesc")})]}),(0,n.jsxs)("div",{className:"px-6 py-5 pb-[max(1.25rem,env(safe-area-inset-bottom))]",children:[(0,n.jsxs)("div",{className:"space-y-2 mb-5","aria-busy":R,children:[R&&(0,n.jsx)("p",{role:"status",className:"py-3 text-sm text-stone-600",children:N("loadingPlans")}),!R&&P&&(0,n.jsxs)("p",{role:"alert",className:"text-sm text-stone-600",children:[N("plansUnavailable")," ",(0,n.jsx)("button",{type:"button",onClick:()=>void A(),className:"inline-flex min-h-[44px] items-center underline text-orange-700",children:N("retryPlans")})]}),!R&&!P&&0===C.length&&(0,n.jsx)("p",{role:"status",className:"py-3 text-sm text-stone-600",children:N("noPlans")}),C.map(e=>(0,n.jsx)(w,{actionLabel:N("buyNow"),creditsLabel:N("processing"),isLoading:y===e.id,isDisabled:null!==y||R||P,name:"en"===_?e.nameEn:e.nameRu,onSelect:()=>k(e.id),price:(0,h.$g)(e.priceRub,"ru"),photos:String((0,h.Ip)(e.credits)),popular:"premium"===e.id,popularLabel:N("popular"),photosLabel:N("photos")},e.id))]}),(0,n.jsx)("ul",{className:"mb-5 space-y-2 text-sm text-gray-600",children:[N("benefitHdNoWatermark"),N("benefitRestoreColorizeAnimate"),N("benefitFastResult")].map(e=>(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)(x.A,{className:"h-4 w-4 flex-shrink-0 text-orange-500"}),e]},e))}),v&&(0,n.jsx)("div",{role:"alert",className:"mb-4 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:v}),(0,n.jsxs)(u.default,{href:"/pricing#pricing",onClick:s,className:"flex w-full items-center justify-center gap-2 rounded-2xl border border-stone-200 bg-stone-50 px-6 py-3 text-center text-sm font-semibold text-stone-700 transition-all duration-200 hover:border-orange-200 hover:bg-white hover:text-stone-900",children:[N("cho
1oseAnotherPlan"),(0,n.jsx)(m.A,{className:"h-4 w-4"})]}),(0,n.jsx)("button",{onClick:s,className:"mt-3 block w-full text-center text-sm text-gray-400 transition-colors hover:text-gray-600",children:N("notNow")})]})]},"upsell-panel")]},"upsell-backdrop")})}},17961:(e,t,s)=>{s.d(t,{A:()=>g});var n=s(95155),a=s(65380),r=s(20063),i=s(39059),l=s(45748),o=s(24287),c=s(65361),d=s(80297),x=s(60023),m=s(20855),u=s(48550),p=s(25234),h=s(82002);let b=["basic","premium"];function g(e){let{className:t=""}=e,s=(0,h.N9)((0,r.usePathname)()),g=(0,u.R)("PostProcessingOffer"),{user:f}=(0,a.A)(),{error:j,loadingTier:w,startCheckout:N,tariffs:v,pricingLoading:y,pricingError:_,reloadPricing:k}=(0,p.D)("inline_post_processing",g("paymentError")),C=v.filter(e=>b.includes(e.id)),R=C.length?C:v;return(0,n.jsxs)("section",{className:"relative overflow-hidden rounded-[28px] border border-orange-200/80 bg-[radial-gradient(circle_at_top_left,_rgba(255,255,255,0.96),_rgba(255,237,213,0.92)_42%,_rgba(255,247,237,0.98)_100%)] shadow-[0_24px_80px_-42px_rgba(249,115,22,0.55)] ".concat(t),children:[(null==f?void 0:f.first_paid_transaction_at)&&(0,n.jsxs)("div",{className:"relative border-b border-orange-200/70 p-5 sm:p-6",children:[(0,n.jsx)("h3",{className:"text-lg font-semibold text-stone-900",children:g("studioTitle")}),(0,n.jsx)("p",{className:"mt-2 text-sm leading-6 text-stone-600",children:g("studioDescription")}),(0,n.jsxs)("a",{href:"/studio",onClick:()=>{(0,h.vP)(s),(0,m.Jb)("post_result_studio")},className:"mt-3 inline-flex min-h-11 items-center gap-2 font-semibold text-orange-700 hover:text-orange-800",children:[g("studioCta")," ",(0,n.jsx)(i.A,{className:"h-4 w-4"})]})]}),(0,n.jsx)("div",{className:"absolute -right-20 top-0 h-40 w-40 rounded-full bg-orange-300/20 blur-3xl"}),(0,n.jsx)("div",{className:"absolute -left-8 bottom-0 h-28 w-28 rounded-full bg-rose-300/15 blur-2xl"}),(0,n.jsxs)("div",{className:"relative grid gap-6 p-5 sm:p-6 lg:grid-cols-[1.1fr_0.9fr] lg:items-start",children:[(0,n.jsxs)("div",{className:"max-w-xl",children:[(0,n.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-[0.22em] text-orange-600",children:g("eyebrow")}),(0,n.jsx)("h3",{className:"mt-2 text-2xl font-semibold leading-tight text-stone-900 sm:text-[2rem]",children:g("title")}),(0,n.jsx)("p",{className:"mt-3 max-w-lg text-sm leading-6 text-stone-600 sm:text-[15px]",children:g("subtitle")}),(0,n.jsx)("div",{className:"mt-5 space-y-2.5",children:[g("benefitQuality"),g("benefitTools"),g("benefitSpeed")].map(e=>(0,n.jsxs)("div",{className:"flex items-start gap-3 text-sm text-stone-700",children:[(0,n.jsx)("span",{className:"mt-0.5 inline-flex h-6 w-6 flex-none items-center justify-center rounded-full bg-white/90 shadow-sm ring-1 ring-orange-200",children:(0,n.jsx)(l.A,{className:"h-3.5 w-3.5 text-orange-600"})}),(0,n.jsx)("span",{children:e})]},e))}),(0,n.jsxs)("div",{className:"mt-5 flex items-center gap-2 text-xs text-stone-500",children:[(0,n.jsx)(o.A,{className:"h-4 w-4 text-emerald-600"}),(0,n.jsx)("span",{children:g("secureNote")})]}),j&&(0,n.jsx)("div",{role:"alert",className:"mt-4 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:j}),(0,n.jsxs)("div",{className:"mt-5 flex flex-wrap items-center gap-3",children:[(0,n.jsxs)(d.default,{href:"/pricing#pricing",onClick:()=>(0,m.Jb)("inline_post_processing"),className:"inline-flex items-center gap-2 rounded-xl border border-stone-300 bg-white/90 px-4 py-2.5 text-sm font-medium text-stone-700 transition-all hover:border-orange-300 hover:bg-white hover:text-stone-900",children:[g("allPlans"),(0,n.jsx)(i.A,{className:"h-4 w-4"})]}),(0,n.jsx)("span",{className:"text-xs text-stone-500",children:g("allPlansHint")})]})]}),(0,n.jsxs)("div",{className:"grid gap-3","aria-busy":y,children:[y&&(0,n.jsx)("p",{role:"status",className:"py-3 text-sm text-stone-600",children:g("loadingPlans")}),!y&&_&&(0,n.jsxs)("p",{role:"alert",className:"text-sm text-stone-600",children:[g("plansUnavailable")," ",(0,n.jsx)("button",{type:"button",onClick:()=>void k(),className:"inline-flex min-h-[44px] items-center underline text-orange-700",children:g("retryPlans")})]}),!y&&!_&&0===R.length&&(0,n.jsx)("p",{role:"status",className:"py-3 text-sm text-stone-600",children:g("noPlans")}),R.map(e=>{let t=e.id,a=(0,x.$g)(e.priceRub,"ru"),r=g("packageSummary",{restorations:(0,x.Ip)(e.credits),animations:(0,x.a3)(e.credits)}),i="premium"===t,l=w===t;return(0,n.jsxs)("div",{className:"rounded-[24px] border p-4 sm:p-5 ".concat(i?"border-orange-300 bg-white shadow-[0_18px_45px_-30px_rgba(249,115,22,0.55)]":"border-white/80 bg-white/75"),children:[(0,n.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-lg font-semibold text-stone-900",children:"en"===s?e.nameEn:e.nameRu}),(0,n.jsx)("span",{className:"inline-flex rounded-full px-2 py-0.5 text-[10px] font-bold uppercase tracking-[0.18em] ".concat(i?"bg-orange-100 text-orange-700":"bg-stone-100 text-stone-600"),children:i?g("recommended"):g("quickStart")})]}),(0,n.jsx)("p",{className:"mt-1 text-sm text-stone-500",children:g("summaryLabel")})]}),(0,n.jsxs)("div",{className:"text-right",children:[(0,n.jsx)("div",{className:"text-2xl font-semibold text-stone-900",children:a}),(0,n.jsxs)("div",{className:"text-xs text-stone-500",children:[e.credits," ",g("creditsUnit")]})]})]}),(0,n.jsx)("p",{className:"mt-3 text-sm leading-6 text-stone-700",children:r}),(0,n.jsx)("button",{type:"button",onClick:()=>N(t),disabled:null!==w||y||_,className:"mt-4 inline-flex w-full items-center justify-center gap-2 rounded-2xl px-4 py-3 text-sm font-semibold transition-all ".concat(i?"bg-gradient-to-r from-orange-500 to-rose-500 text-white shadow-lg shadow-orange-500/25 hover:from-orange-600 hover:to-rose-600":"bg-stone-900 text-white hover:bg-stone-800"," disabled:cursor-not-allowed disabled:opacity-70"),children:l?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-current/30 border-t-current"}),g("processing")]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.A,{className:"h-4 w-4"}),g("buyNow")]})})]},t)})]})]})]})}},25234:(e,t,s)=>{s.d(t,{D:()=>c});var n=s(86699),a=s(12115),r=s(51567),i=s(65380),l=s(80344),o=s(20855);function c(e,t){let{user:s}=(0,i.A)(),{tariffs:c,loading:d,error:x,reload:m}=(0,n.Ok)(),u=(0,r.Ym)(),[p,h]=(0,a.useState)(null),b=(0,a.useRef)(!1),[g,f]=(0,a.useState)(null),j="en"===u,w=e=>j?"/en".concat(e):e,N=w("/pricing"),v=w("/auth"),y=j?"robokassa":"yookassa",_=async n=>{if(b.current||p||d||x)return;let a=c.find(e=>e.id===n);if(!a)return void f(t);if((0,o.Jb)(e),(0,o.Ml)(n,a.priceRub,a.credits),!s){let e=new URLSearchParams({checkoutProvider:y,checkoutTier:n}),t="".concat(N,"?").concat(e.toString(),"#pricing");window.location.href="".concat(v,"?mode=signup&redirect=").concat(encodeURIComponent(t));return}let r=j?a.nameEn:a.nameRu,i="robokassa"===y?"/api/payment/robokassa/create":"/api/payment/create";b.current=!0,h(n),f(null),(0,o.Jr)(n,a.priceRub,y);try{let e=(0,o.mU)(),c=await (0,l.AT)(i,{method:"POST",body:JSON.stringify({tariffId:n,amount:a.priceRub,description:"".concat(r," - ").concat(a.credits," credits"),userId:s.id,clientId:e||void 0,locale:u})});if(!c.confirmation_url)throw Error(t);window.location.href=c.confirmation_url}catch(e){console.error("[QUICK-CHECKOUT] Checkout error:",e),f(t),m(),b.current=!1,h(null)}};return{error:g,tariffs:c,pricingLoading:d,pricingError:x,reloadPricing:m,isEnglish:j,loadingTier:p,locale:u,startCheckout:_}}}}]);

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.