PageSourceSearch

https://zakaz-voda.ru/files/js/8761.067db175.chunk.js

js zakaz-voda.ru collected 2026-10-07 22:31:16 UTC 5,094 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkBaseApp=self.webpackChunkBaseApp||[]).push([[8761],{78761:(e,t,n)=>{n.r(t),n.d(t,{SavedPaymentCardsScreen:()=>_});var i=n(60436),r=n(5544),s=n(20454),o=n(96540),l=n(9176),a=n(49580),c=n(45315),u=n(51674),d=n(10691),m=n(48127),p=n(68244),f=n(46413),y=n(28959),v=function(e){return{container:{flex:1,height:50,alignItems:"center",flexDirection:"row",padding:16,borderRadius:10,backgroundColor:e.colors.background},deleteButton:{marginRight:0,marginLeft:"auto",width:30,height:30,alignItems:"center",justifyContent:"center"},iconWrapper:{marginRight:10,width:40,alignItems:"center"}}},g=n(74848);const h=function(e){var t=e.system,n=e.title,i=e.onPress,s=e.onPressDeleteButton,o=(0,m.X3)(v),c=(0,r.A)(o,2),u=c[0],d=c[1];return(0,g.jsxs)(f.A,{style:u.container,onPress:i,disabled:!i,children:[(0,g.jsx)(l.A,{style:u.iconWrapper,children:(0,g.jsx)(p.Db,{system:t})}),(0,g.jsx)(a.Typography,{children:n}),!!s&&(0,g.jsx)(f.A,{style:u.deleteButton,onPress:s,children:(0,g.jsx)(y.F.Trash,{width:16,height:16,color:d.colors.textSecondary})})]})};var b=n(78766),C=n(83681),x=n(51741),j=function(){return{list:{marginTop:28},modalBody:{paddingHorizontal:14,marginTop:20},loading:{marginTop:20}}},k=n(45926),P=n(75772),A=n(96736),S=n(49813),M=n(3041),D=n(10467),w=n(77853),B=n.n(w),I=n(37597),L=A.b.screens.profile.paymentCards;const T=function(e){var t=e.item,n=o.useState(!1),i=(0,r.A)(n,2),s=i[0],l=i[1],a=(0,b._2)().showNotification,c=(0,p.Tx)(),u=(0,p.t_)(),d=o.useCallback((0,D.A)((function*(){try{b.j0.trackEvent(b.sV.DeletePaymentCard),yield c.mutateAsync(t["@id"]),yield u.refetch()}catch(e){a({type:"error",message:null==e?void 0:e.message})}})),[c,t,u,a]),m=o.useCallback((function(){b.j0.trackEvent(b.sV.CloseDeletePaymentCardModal),l(!1)}),[]),f=o.useMemo((function(){var e,n=null==t||null==(e=t.cardMask)?void 0:e.slice(-4);return n?`**${n}`:"****"}),[null==t?void 0:t.cardMask]),y=o.useMemo((function(){var e,n,i=null==t||null==(e=t.cardMask)?void 0:e.slice(0,4),r=B().number(i);return null==r||null==(n=r.card)?void 0:n.type}),[null==t?void 0:t.cardMask]),v=o.useCallback((function(){l(!0)}),[]);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h,{system:y,title:f,onPressDeleteButton:v}),(0,g.jsx)(I.m,{title:(0,M.t)(L.deleteCardModal.title,{mask:f}),description:(0,M.t)(L.deleteCardModal.description),visible:s,onClose:m,onNoPress:function(){},onYesPress:d})]})};var E=A.b.screens.profile.paymentCards.deleteSbpModal;const F=function(e){var t=e.item,n=o.useState(!1),i=(0,r.A)(n,2),s=i[0],l=i[1],a=(0,b._2)().showNotification,c=(0,p.Tx)(),u=(0,p.$e)(),d=o.useCallback((0,D.A)((function*(){try{b.j0.trackEvent(b.sV.DeleteClientSbp),yield c.mutateAsync(t["@id"]),yield u.refetch()}catch(e){a({type:"error",message:null==e?void 0:e.message})}})),[u,c,t,a]),m=o.useCallback((function(){b.j0.trackEvent(b.sV.CloseDeleteClientSbpModal),l(!1)}),[]),f=o.useMemo((function(){return null==t?void 0:t.name}),[null==t?void 0:t.name]),y=o.useCallback((function(){l(!0)}),[]);return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(h,{system:p.b$.Sbp,title:f,onPressDeleteButton:y}),(0,g.jsx)(I.m,{title:(0,M.t)(E.title,{mask:f}),description:(0,M.t)(E.description),visible:s,onClose:m,onNoPress:function(){},onYesPress:d})]})};var $=A.b.screens.profile.paymentCards;const _=o.forwardRef((function(e,t){(0,s.A)(e);var n=o.useRef(null),f=(0,m.X3)(j),y=(0,r.A)(f,1)[0],v=(0,c.cq)(),A=(0,p.t_)(),D=(0,p.$e)(),w=(0,x.k)().initialPaymentMethods,B=(0,b.Vg)({screenName:S.JS.SavedPaymentCards,openScreen:function(){var e;return null==(e=n.current)?void 0:e.open()}}).onCloseScreen;o.useImperativeHandle(t,(function(){return{open:function(){var e;return null==n||null==(e=n.current)?void 0:e.open()},close:function(){var e;return null==n||null==(e=n.current)?void 0:e.close()}}}),[]);var I=o.useMemo((function(){return[].concat((0,i.A)(D.data||[]),(0,i.A)(A.data||[]),(0,i.A)(w||[]))}),[D.data,w,A.data]);return(0,g.jsxs)(C.Y7,{ref:n,onClose:B,children:[(0,g.jsxs)(l.A,{style:y.modalBody,children:[(0,g.jsx)(P.A,{title:(0,M.t)($.title)}),(A.isFetching||D.isFetching||A.isLocationPending||D.isLocationPending)&&(0,g.jsx)(k.A,{style:y.loading}),(0,g.jsx)(d.cy,{data:I,style:y.list,keyExtractor:function(e){return null==e?void 0:e["@id"]},renderItem:function(e){var t,i;if(null!=(t=e.item)&&null!=(t=t.setup)&&t.supportsInitialPayment){var r,s=null==(r=e.item.setup)?void 0:r.sbp;return(0,g.jsx)(h,{system:s?p.b$.Sbp:p.b$.Default,title:s?(0,M.t)($.labels.linkingSbp):(0,M.t)($.labels.linkingCard),onPress:function(){var t,i;v.navigate(S.JS.InitialPayment,{payment_method:null==(t=e.item)?void 0:t["@id"],source:S.JS.Profile}),null==(i=n.current)||i.close()}})}return null!=(i=e.item)&&i["@id"].includes("client_sbps")?(0,g.jsx)(F,{item:e.item}):(0,g.jsx)(T,{item:e.item})},ItemSeparatorComponent:function(){return(0,g.jsx)(u.A,{height:28})},ListFooterComponent:function(){return(0,g.jsx)(u.A,{height:38})},ListEmptyComponent:function(){return A.isLocationPending||D.isLocationPending?null:(0,g.jsx)(a.Typography,{children:(0,M.t)($.emptyList)})},bounces:!1})]}),(0,g.jsx)(C.tl,{})]})}))}}]);

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.