PageSourceSearch

https://sellzilla.club/_next/static/chunks/3s5nkpgn6h36w.js

js sellzilla.club collected 2026-10-02 01:20:04 UTC 14,427 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88915,e=>{"use strict";var t=e.i(53286);e.s(["Ic",0,function({icon:e,...n}){return(0,t.jsx)("iconify-icon",{icon:e,...n})}])},86909,e=>{"use strict";var t=e.i(94189);let n="sz_token";function s(){return localStorage.getItem(n)}function c(e){localStorage.setItem(n,e)}let a="sz_admin_token",i="sz_acting";class r extends Error{status;transient;constructor(e,t){super(e),this.name="ApiError",this.status=t,this.transient=0===t||502===t||503===t||504===t}}let o=[400,1200,2500],l=e=>new Promise(t=>setTimeout(t,e));function u(e){window.dispatchEvent(new CustomEvent(e?"sz-api-up":"sz-api-down"))}async function d(e,t={}){let n=s(),c="GET"===(t.method||"GET").toUpperCase(),a=0;for(;;){let s;try{s=await fetch("/api"+e,{...t,headers:{"Content-Type":"application/json",...n?{Authorization:`Bearer ${n}`}:{},...t.headers||{}}})}catch{if(c&&a<o.length){await l(o[a++]);continue}throw u(!1),new r("Нет связи с сервером",0)}if(!s.ok&&(502===s.status||503===s.status||504===s.status)&&c&&a<o.length){await l(o[a++]);continue}let i=null;try{i=await s.json()}catch{}if(!s.ok){let e=413===s.status?"Слишком большой запрос — уменьшите вложение или сузьте выборку":`Ошибка ${s.status}`,t=i&&(i.detail||i.message)||e,n=new r("string"==typeof t?t:"Ошибка",s.status);throw n.transient&&u(!1),n}return u(!0),i}}async function h(e,t){let n=await d("/auth/login",{method:"POST",body:JSON.stringify({email:e,password:t})});return c(n.access_token),n}async function m(e,t,n,s){let a={email:e,password:t,name:n};s&&(a.ref=s);let i=await d("/auth/register",{method:"POST",body:JSON.stringify(a)});return c(i.access_token),i}async function p(e){return d("/auth/forgot-password",{method:"POST",body:JSON.stringify({email:e})})}async function f(e,t,n){return d("/auth/reset-password",{method:"POST",body:JSON.stringify({email:e,code:t,new_password:n})})}let g=null;async function x(){return g||(g=d("/auth/me")).finally(()=>{setTimeout(()=>{g=null},1e3)}),g}async function y(e,t){return d("/auth/change-password",{method:"POST",body:JSON.stringify({current_password:e,new_password:t})})}async function j(){return d("/auth/tg/targets")}async function v(e,t){return d(`/auth/tg/targets/${e}/topics`,{method:"PATCH",body:JSON.stringify({topics:t})})}async function w(e){return d(`/auth/tg/targets/link?kind=${e}`,{method:"POST"})}async function S(e){return d(`/auth/tg/targets/${e}`,{method:"DELETE"})}e.s(["ApiError",0,r,"apiFetch",0,d,"changePassword",0,y,"fetchMe",0,x,"forgotPassword",0,p,"getActing",0,function(){let e=localStorage.getItem(i);if(!e)return null;try{return JSON.parse(e)}catch{return null}},"getToken",0,s,"login",0,h,"logout",0,function(){localStorage.removeItem(n),localStorage.removeItem(a),localStorage.removeItem(i),window.location.href="/auth"},"register",0,m,"resetPassword",0,f,"startImpersonation",0,function(e,t){let n=s();n&&localStorage.setItem(a,n),c(e),localStorage.setItem(i,JSON.stringify(t))},"stopImpersonation",0,function(){let e=localStorage.getItem(a);e&&c(e),localStorage.removeItem(a),localStorage.removeItem(i)},"tgTargetLink",0,w,"tgTargetRemove",0,S,"tgTargetTopics",0,v,"tgTargets",0,j,"useMe",0,function(){let[e,n]=(0,t.useState)(null),[c,a]=(0,t.useState)(!0);return(0,t.useEffect)(()=>{let e=!0;return s()?(x().then(t=>e&&n(t)).catch(()=>{}).finally(()=>e&&a(!1)),()=>{e=!1}):void a(!1)},[]),{user:e,loading:c}},"useRequireAuth",0,function(){(0,t.useEffect)(()=>{s()||(window.location.href="/auth")},[])}])},52296,e=>{"use strict";var t=e.i(86909);async function n(e,n,s){return(0,t.apiFetch)("/wb/connections",{method:"POST",body:JSON.stringify({phone:e,label:n,reconnect_of:s})})}async function s(){return(0,t.apiFetch)("/wb/connections")}async function c(e){return(0,t.apiFetch)(`/wb/connections/${e}`)}async function a(e,n){return(0,t.apiFetch)(`/wb/connections/${e}/otp`,{method:"POST",body:JSON.stringify({code:n})})}async function i(e){return(0,t.apiFetch)(`/wb/connections/${e}/cancel`,{method:"POST"})}async function r(e,n){return(0,t.apiFetch)(`/wb/connections/${e}/shops/select`,{method:"POST",body:JSON.stringify({supplier_uuids:n})})}async function o(e,n){return(0,t.apiFetch)("/wb/api-key/validate",{method:"POST",body:JSON.stringify({key:e,supplier_uuid:n})})}async function l(e,n){return(0,t.apiFetch)(`/wb/shops/${e}/api-key`,{method:"POST",body:JSON.stringify({key:n})})}async function u(e){return(0,t.apiFetch)(`/wb/shops/${e}/disconnect`,{method:"POST"})}async function d(e){return(0,t.apiFetch)(`/wb/shops/${e}/reconnect`,{method:"POST"})}async function h(e){return(0,t.apiFetch)(`/wb/shops/${e}/disconnect/cancel`,{method:"POST"})}async function m(e){return(0,t.apiFetch)(`/wb/connections/${e}`,{method:"DELETE"})}async function p(){return(0,t.apiFetch)("/wb/auth-health")}e.s(["authHealth",0,p,"cancelConnection",0,i,"cancelDisconnectShop",0,h,"deleteConnection",0,m,"disconnectShop",0,u,"getConnection",0,c,"listConnections",0,s,"reconnectShop",0,d,"selectShops",0,r,"setShopApiKey",0,l,"startConnection",0,n,"submitOtp",0,a,"validateApiToken",0,o])},46588,e=>{"use strict";var t=e.i(86909);async function n(){return(0,t.apiFetch)("/balance/me")}async function s(){return(0,t.apiFetch)("/balance/transactions")}async function c(e){return(0,t.apiFetch)("/balance/topup",{method:"POST",body:JSON.stringify({amount:e})})}async function a(e){return(0,t.apiFetch)(`/balance/payment/${e}`)}e.s(["myBalance",0,n,"myTransactions",0,s,"paymentStatus",0,a,"topUp",0,c])},53100,(e,t,n)=>{t.exports=e.r(2974)},57867,e=>{"use strict";var t=e.i(53286),n=e.i(94189),s=e.i(86909),c=e.i(88915);
1e.s(["default",0,function(){let[e,a]=(0,n.useState)(null);return((0,n.useEffect)(()=>{a((0,s.getActing)())},[]),e)?(0,t.jsxs)("div",{className:"imp-banner",children:[(0,t.jsxs)("div",{className:"imp-left",children:[(0,t.jsx)(c.Ic,{icon:"lucide:user-check"}),(0,t.jsxs)("span",{children:["Вы в аккаунте ",(0,t.jsx)("b",{children:e.name})," · ",e.email,". Действия выполняются от его имени."]})]}),(0,t.jsxs)("button",{className:"imp-back",onClick:()=>{(0,s.stopImpersonation)(),window.location.href="/admin"},children:[(0,t.jsx)(c.Ic,{icon:"lucide:log-out"}),"Вернуться в свой профиль"]})]}):null}])},89423,e=>{"use strict";var t=e.i(53286),n=e.i(94189),s=e.i(86909),c=e.i(52296),a=e.i(88915);e.s(["default",0,function(){let[e,i]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{if(!(0,s.getToken)())return;let e=!0,t=()=>{(0,c.authHealth)().then(t=>{e&&i((t.broken||[]).length>0)}).catch(()=>{})};t();let n=setInterval(t,12e4);return()=>{e=!1,clearInterval(n)}},[]),e)?(0,t.jsxs)("div",{className:"auth-lost",children:[(0,t.jsxs)("div",{className:"auth-lost-left",children:[(0,t.jsx)(a.Ic,{icon:"lucide:alert-triangle"}),(0,t.jsx)("span",{children:"Wildberries выкинул из кабинета — нужно войти заново."})]}),(0,t.jsxs)("a",{className:"auth-lost-btn",href:"/",children:[(0,t.jsx)(a.Ic,{icon:"lucide:log-in"}),"Войти"]})]}):null}])},67254,e=>{"use strict";var t=e.i(53286),n=e.i(94189),s=e.i(88915);e.s(["default",0,function(){let[e,c]=(0,n.useState)(!1),[a,i]=(0,n.useState)(!1),r=(0,n.useRef)(null);return((0,n.useEffect)(()=>{let t=()=>{r.current||e||(r.current=setTimeout(()=>{r.current=null,c(!0)},1200))},n=()=>
1{r.current&&(clearTimeout(r.current),r.current=null),c(e=>(e&&i(!0),e))};return window.addEventListener("sz-api-down",t),window.addEventListener("sz-api-up",n),()=>{window.removeEventListener("sz-api-down",t),window.removeEventListener("sz-api-up",n),r.current&&clearTimeout(r.current)}},[e]),e)?(0,t.jsxs)("div",{className:"api-down"+(a?" api-down--back":""),children:[(0,t.jsx)(s.Ic,{icon:a?"lucide:wifi":"lucide:wifi-off"}),(0,t.jsx)("div",{className:"ad-text",children:a?(0,t.jsx)(t.Fragment,{children:"Сервис обновился — обновите страницу."}):(0,t.jsx)(t.Fragment,{children:"Идёт обновление сервиса. Обновите страницу через минуту."})}),(0,t.jsxs)("button",{className:"ad-btn",onClick:()=>window.location.reload(),children:[(0,t.jsx)(s.Ic,{icon:"lucide:refresh-cw"})," Обновить"]})]}):null}])},69140,e=>{"use strict";var t=e.i(53286),n=e.i(94189),s=e.i(46588),c=e.i(88915);let a="sz_topup_pending",i=[5e3,1e4,15e3,25e3,5e4,1e5],r=e=>e.toLocaleString("ru-RU")+" ₽";e.s(["default",0,function(){let[e,o]=(0,n.useState)(!1),[l,u]=(0,n.useState)(15e3),[d,h]=(0,n.useState)("select"),[m,p]=(0,n.useState)(0),[f,g]=(0,n.useState)(""),[x,y]=(0,n.useState)(""),j=(0,n.useRef)(null),v=(e,t)=>{j.current?.(),p(t),h("polling");let n=!0,c=0;j.current=()=>{n=!1};let i=async()=>{if(n){c++;try{let t=await (0,s.paymentStatus)(e);if("succeeded"===t.status){localStorage.removeItem(a),h("success"),window.dispatchEvent(new CustomEvent("sz-balance-changed"));return}if("canceled"===t.status||"amount_mismatch"===t.status){localStorage.removeItem(a),y("Платёж отменён или не прошёл"),h("select");return}}catch{}n&&c<150&&setTimeout(i,2e3)}};i()};if((0,n.useEffect)(()=>{let e=()=>{j.current?.(),u(15e3),y(""),g(""),h("select"),o(!0)};return window.addEventListener("sz-topup-open",e),()=>window.removeEventListener("sz-topup-open",e)},[]),(0,n.useEffect)(()=>{let e,t=localStorage.getItem(a);if(t){try{e=JSON.parse(t)}catch{localStorage.removeItem(a);return}e?.id?(g(e.url||""),o(!0),v(e.id,e.amount||0)):localStorage.removeItem(a)}},[]),!e)return null;let w="creating"!==d,S=()=>{j.current?.(),o(!1)};return(0,t.jsx)("div",{className:"overlay",onMouseDown:e=>e.target===e.currentTarget&&w&&S(),children:(0,t.jsxs)("div",{className:"modal tu-modal",children:[w&&(0,t.jsx)("button",{className:"modal-x",onClick:S,children:(0,t.jsx)(c.Ic,{icon:"lucide:x"})}),"select"===d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"tu-head",children:[(0,t.jsx)("div",{className:"tu-ic",children:(0,t.jsx)(c.Ic,{icon:"lucide:wallet"})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{children:"Пополнение баланса"}),(0,t.jsxs)("div",{className:"tu-sub",children:["Оплата через ",(0,t.jsx)("b",{children:"ЮKassa"})," · шаг 5 000 ₽"]})]})]}),(0,t.jsx)("div",{className:"tu-amount",children:r(l)}),(0,t.jsx)("input",{className:"tu-slider",type:"range",min:5e3,max:3e5,step:5e3,value:l,onChange:e=>u(+e.target.value),style:{"--p":(l-5e3)/295e3*100+"%"}}),(0,t.jsxs)("div",{className:"tu-range-lbl",children:[(0,t.jsx)("span",{children:r(5e3)}),(0,t.jsx)("span",{children:r(3e5)})]}),(0,t.jsx)("div",{className:"tu-chips",children:i.map(e=>(0,t.jsx)("button",{className:"tu-chip"+(l===e?" on":""),onClick:()=>u(e),children:e.toLocaleString("ru-RU")},e))}),(0,t.jsxs)("button",{className:"tu-pay",onClick:()=>{y("");let e=window.open("","_blank");h("creating"),(0,s.topUp)(l).then(t=>{localStorage.setItem(a,JSON.stringify({id:t.payment_id,amount:l,url:t.confirmation_url})),g(t.confirmation_url),e&&!e.closed?(e.location.href=t.confirmation_url,v(t.payment_id,l)):window.location.href=t.confirmation_url}).catch(t=>{try{e?.close()}catch{}y(t?.message||"Не удалось создать платёж"),h("select")})},children:[(0,t.jsx)(c.Ic,{icon:"lucide:credit-card"}),"Оплатить ",r(l)]}),x&&(0,t.jsx)("div",{style:{color:"var(--danger)",fontSize:13,textAlign:"center",marginTop:10},children:x}),(0,t.jsxs)("div",{className:"tu-note",children:[(0,t.jsx)(c.Ic,{icon:"lucide:shield-check"}),"Платёж защищён ЮKassa. Средства зачисляются после подтверждения."]})]}),"creating"===d&&(0,t.jsxs)("div",{className:"tu-state",children:[(0,t.jsx)(c.Ic,{icon:"lucide:loader-2",class:"tu-spin"}),(0,t.jsx)("div",{className:"tu-state-t",children:"Создаём платёж в ЮKassa…"}),(0,t.jsxs)("div",{className:"tu-state-s",children:["Открываем оплату на ",r(l)," в новой вкладке"]})]}),"polling"===d&&(0,t.jsxs)("div",{className:"tu-state",children:[(0,t.jsx)(c.Ic,{icon:"lucide:loader-2",class:"tu-spin"}),(0,t.jsx)("div",{className:"tu-state-t",children:"Ожидаем подтверждение платежа"}),(0,t.jsx)("div",{className:"tu-state-s",children:"Оплата открыта в новой вкладке. Завершите её — баÐ
1»Ð°Ð½Ñ зачислится автоматически после подтверждения ЮKassa."}),(0,t.jsxs)("div",{className:"tu-steps",children:[(0,t.jsxs)("span",{className:"done",children:[(0,t.jsx)(c.Ic,{icon:"lucide:check"}),"Платёж создан"]}),(0,t.jsxs)("span",{className:"active",children:[(0,t.jsx)(c.Ic,{icon:"lucide:external-link"}),"Оплата в новой вкладке"]}),(0,t.jsxs)("span",{children:[(0,t.jsx)(c.Ic,{icon:"lucide:loader-2",class:"tu-spin"}),"Подтверждение"]})]}),f&&(0,t.jsxs)("button",{className:"tu-reopen",onClick:()=>window.open(f,"_blank"),children:[(0,t.jsx)(c.Ic,{icon:"lucide:external-link"}),"Закрыли вкладку? Открыть оплату снова"]})]}),"success"===d&&(0,t.jsxs)("div",{className:"tu-success",children:[(0,t.jsx)("div",{className:"sent-check",children:(0,t.jsxs)("svg",{viewBox:"0 0 52 52",className:"sent-svg",children:[(0,t.jsx)("circle",{className:"sent-circle",cx:"26",cy:"26",r:"24",fill:"none"}),(0,t.jsx)("path",{className:"sent-tick",fill:"none",d:"M15 27 l7 7 l15 -16"})]})}),(0,t.jsx)("h2",{children:"Баланс пополнен"}),(0,t.jsxs)("p",{className:"tu-state-s",children:["Платёж на ",(0,t.jsx)("b",{children:r(m)})," подтверждён и зачислен на баланс."]}),(0,t.jsx)("button",{className:"tu-pay",onClick:S,children:"Готово"})]})]})})}])},58068,e=>{"use strict";var t=e.i(53286),n=e.i(53100);let s=["/chats","/reviews"];e.s(["default",0,function(){let e=(0,n.usePathname)(),c=new Date().getFullYear();return s.some(t=>e===t||e.startsWith(t+"/"))?null:(0,t.jsx)("footer",{className:"ftr",children:(0,t.jsxs)("div",{className:"ftr-in",children:[(0,t.jsxs)("span",{className:"ftr-c",children:["© ",c," Sellzilla"]}),(0,t.jsxs)("nav",{className:"ftr-nav",children:[(0,t.jsx)("a",{href:"/privacy",children:"Политика конфиденциальности"}),(0,t.jsx)("a",{href:"/offer",children:"Публичная оферта"})]})]})})}])}]);

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.