PageSourceSearch

https://zakaz-voda.ru/files/js/207.4ad8c0cc.chunk.js

js zakaz-voda.ru collected 2026-10-07 22:30:17 UTC 8,166 bytes, 33 lines download raw bytes

1"use strict";(self.webpackChunkBaseApp=self.webpackChunkBaseApp||[]).push([[207],{90207:(e,n,t)=>{t.d(n,{y:()=>Z});var r=t(10467),i=t(5544),o=t(96540),s=t(9176),a=t(92869),l=t(51674),u=t(48127),c=t(81252),d=t(78766),f=t(83681),v=function(e){return{container:{flexDirection:"row",alignItems:"center",flex:1},touchable:{marginVertical:10,flex:1,flexDirection:"row",alignItems:"center"},addressMainText:Object.assign({},e.fonts.subheading,e.fonts.regular),addressSecondaryText:Object.assign({},e.fonts.body,{color:e.colors.inactiveText}),loader:{justifyContent:"center",alignItems:"center"}}},g=t(56719),h=t(39963),m=t(48960),p=t(97687),y=t(74848);const b=function(e){var n=e.source,t=e.exclude,r=void 0===t?[]:t,i=e.isOffice,s=void 0!==i&&i,a=(0,p.A)(),l=o.useMemo((function(){var e=a?a.country:"ru";return m.A.create(n,s).toString({exclude:r,country:e})}),[n,r.join(",")]);return(0,y.jsx)(h.A.Child,{children:l})};var A,x,j=t(92805),C=t(37597),k=t(95095),S=t(47027),M=t(91544),w=t(50356),O=t(63844),D=t(27243),I=t(60144),E=t(1068),L=t(25583),z=t(599),V=t(81212),$=t(35051);function T(e){var n;switch(e){case A.Query:n="Query";break;case A.Mutation:n="Mutation";break;case A.Subscription:n="Subscription"}return n}function _(e){x||(x=new z.A(V.v.parser||1e3));var n,t,r=x.get(e);if(r)return r;(0,L.V1)(!!e&&!!e.kind,70,e);for(var i=[],o=[],s=[],a=[],l=0,u=e.definitions;l<u.length;l++){var c=u[l];if("FragmentDefinition"!==c.kind){if("OperationDefinition"===c.kind)switch(c.operation){case"query":o.push(c);break;case"mutation":s.push(c);break;case"subscription":a.push(c)}}else i.push(c)}(0,L.V1)(!i.length||o.length||s.length||a.length,71),(0,L.V1)(o.length+s.length+a.length<=1,72,e,o.length,a.length,s.length),t=o.length?A.Query:A.Mutation,o.length||s.length||(t=A.Subscription);var d=o.length?o:s.length?s:a;(0,L.V1)(1===d.length,73,e,d.length);var f=d[0];n=f.variableDefinitions||[];var v={name:f.name&&"Name"===f.name.kind?f.name.value:"data",type:t,variables:n};return x.set(e,v),v}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(A||(A={})),_.resetCache=function(){x=void 0},!1!==globalThis.__DEV__&&(0,$.D_)("parser",(function(){return x?x.size:0}));var Q=t(9211),N=t(6741),P=t(2619).Sw?D.useLayoutEffect:D.useEffect;var F=t(76601),R=t(27777),q=w.Ay`
2    mutation deleteLocation($id: ID!) {
3        deleteLocation(input: { id: $id }) {
4            location {
5                id
6            }
7        }
8    }
9`;function B(){return(e="user",function(n,t){var r,i=null==(r=(0,R.zj)())?void 0:r.services[e];if(!i)throw Error("config does not found");var o=`${i.domain}${i.graphql}`,s=(0,F.A)().clients;if(!s[o])throw Error(`${e} service not initialized`);return function(e,n){var t,r,i,o,s,a=function(e){var n=D.useContext((0,N.l)()),t=e||n.client;return(0,L.V1)(!!t,58),t}(null==n?void 0:n.client);t=e,r=A.Mutation,i=_(t),o=T(r),s=T(i.type),(0,L.V1)(i.type===r,74,o,o,s);var l=D.useState({called:!1,loading:!1,client:a}),u=l[0],c=l[1],d=D.useRef({result:u,mutationId:0,isMounted:!0,client:a,mutation:e,options:n});P((function(){Object.assign(d.current,{client:a,options:n,mutation:e})}));var f=D.useCallback((function(e){void 0===e&&(e={});var n=d.current,t=n.options,r=n.mutation,i=(0,O.Cl)((0,O.Cl)({},t),{mutation:r}),o=e.client||d.current.client;d.current.result.loading||i.ignoreResults||!d.current.isMounted||c(d.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:o});var s=++d.current.mutationId,a=(0,I.l)(i,e);return o.mutate(a).then((function(n){var t,r,i=n.data,l=n.errors,u=l&&l.length>0?new Q.K4({graphQLErrors:l}):void 0,f=e.onError||(null===(t=d.current.options)||void 0===t?void 0:t.onError);if(u&&f&&f(u,a),s===d.current.mutationId&&!a.ignoreResults){var v={called:!0,loading:!1,data:i,error:u,client:o};d.current.isMounted&&!(0,E.L)(d.current.result,v)&&c(d.current.result=v)}var g=e.onCompleted||(null===(r=d.current.options)||void 0===r?void 0:r.onCompleted);return u||null==g||g(n.data,a),n}),(function(n){var t;if(s===d.current.mutationId&&d.current.isMounted){var r={loading:!1,error:n,data:void 0,called:!0,client:o};(0,E.L)(d.current.result,r)||c(d.current.result=r)}var i=e.onError||(null===(t=d.current.options)||void 0===t?void 0:t.onError);if(i)return i(n,a),{data:void 0,errors:n};throw n}))}),[]),v=D.useCallback((function(){if(d.current.isMounted){var e={called:!1,loading:!1,client:d.current.client};Object.assign(d.current,{mutationId:0,result:e}),c(e)}}),[]);return D.useEffect((function(){var e=d.current;return e.isMounted=!0,function(){e.isMounted=!1}}),[]),[f,(0,O.Cl)({reset:v},u)]}(n,Object.assign({},t,{client:s[o]}))})(q);var e}var K=t(37644);w.Ay`
10    fragment Location on Location {
11        id
12        placeId
13        adminArea
14        countryCode
15        locality
16        position
17        postalCode
18        streetName
19        streetNumber
20        housing
21        building
22        entrance
23        floor
24        comment
25        room
26        name
27        coordinates {
28            id
29            latitude
30            longitude
31        }
32    }
33`;const X=function(e){return`/user/locations/${e}`};var Y=t(7164),G=t(67077),H=t(67014);var J=t(96736),U=t(3041),W=J.b.screens.address.dialogs.delete;const Z=(0,k.A)({service:"user",disableScheme:!0,enabled:!0})((function(e){var n=e.address,t=e.onAddressPress,p=e.canDeleteAddress,A=void 0===p||p,x=e.isSelected,k=e.isOffice,w=void 0!==k&&k,O=e.multiple,D=e.onDelete,I=(0,u.X3)(v),E=(0,i.A)(I,2),L=E[0],z=E[1],V=o.use
33State(!1),$=(0,i.A)(V,2),T=$[0],_=$[1],Q=function(e){var n,t=(0,G.A)(),s=(0,o.useState)(!1),a=(0,i.A)(s,2),l=a[0],u=a[1],c=e.onDelete,d=null==e||null==(n=e.address)?void 0:n.external_id,f=(0,H.A)((function(e){return e.address.selectedAddressId})),v=(0,M.m)().selectAddress,g=B(),h=(0,i.A)(g,1)[0],m=(0,o.useCallback)((0,r.A)((function*(){if(d){yield h({variables:{id:X(d)}});var e=yield t(K.Ay.getAddresses());if(f===d&&(null==e?void 0:e.length)>0){var n=e[0],r=(0,S.$c)(n);v(r)}}})),[d,h,t,f,v]);return{deleteAddress:(0,o.useCallback)((0,r.A)((function*(){u(!0);try{yield m(),Y.A.clear(),c&&(yield c())}catch(e){throw e}finally{u(!1)}})),[m,c]),isDeleting:l}}({address:n}),N=Q.isDeleting,P=Q.deleteAddress,F=(0,c.useOrganizationsActions)(),R=F.organizations,q=F.getOrganizations,J=F.selectedOrganization,Z=F.selectOrganization,ee=(0,d._2)().showNotification,ne=m.A.create(n,w).toString({exclude:["city","name","entrance","floor","room","comment","district"]}),te=m.A.create(n,w).toString({exclude:["name","city","street","house","comment"]}),re=o.useCallback((0,r.A)((function*(){try{D?yield D(n):yield P(),(null==R?void 0:R.length)>0&&q().then((function(e){-1===(null==e?void 0:e.findIndex((function(e){return e.inn===(null==J?void 0:J.inn)&&e.kpp===(null==J?void 0:J.kpp)})))&&Z(null)})).catch((function(){})),ee({type:"info",message:(0,U.t)(W.messages.success)})}catch(e){if(null!=e&&e.message)return void ee({type:"error",message:`${(0,U.t)(W.messages.error)} ${null==e?void 0:e.message}`});ee({type:"error",message:(0,U.t)(W.messages.error)})}})),[n,P,q,D,null==R?void 0:R.length,Z,null==J?void 0:J.inn,null==J?void 0:J.kpp,ee]),ie=o.useCallback((function(){return _(!1)}),[]);return n?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(C.m,{title:(0,U.t)(W.title),description:(0,U.t)(W.message),onNoPress:ie,onYesPress:re,onClose:ie,visible:T}),(0,y.jsxs)(s.A,{style:L.container,children:[(0,y.jsx)(f.Sc,{multiple:O,forceValue:x,separatorSize:16,onChange:t,containerStyle:L.touchable,pressableChildrenStyle:z.styles.flex,unactiveColor:z.colors.primary,children:(0,y.jsxs)(s.A,{style:z.styles.flex,children:[!!n.name&&(0,y.jsx)(h.A,{typeface:"bold",variant:"subheading",numberOfLines:1,children:n.name}),!!ne&&(0,y.jsx)(h.A,{style:L.addressMainText,numberOfLines:1,children:ne}),!!te&&(0,y.jsx)(h.A,{style:L.addressSecondaryText,children:(0,y.jsx)(b,{isOffice:w,source:n,exclude:["name","city","street","house","comment"]})})]})}),(0,y.jsx)(l.A,{width:16}),A&&(0,y.jsx)(y.Fragment,{children:N?(0,y.jsx)(s.A,{style:L.loader,children:(0,y.jsx)(a.A,{color:z.colors.primary})}):(0,y.jsx)(j.A,{source:g.T.icons.trash,onPress:function(){return _(!0)},IconProps:{color:"error"}})})]})]}):null}))}}]);

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.