PageSourceSearch

https://static3.asna.ru/_next/static/chunks/pages/profile/favorite/pharmacies-5177b1ca0f3a28b2.js

js asna.ru collected 2026-10-02 05:20:33 UTC 7,396 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[344],{69318:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/profile/favorite/pharmacies",function(){return i(71870)}])},66339:function(e,t,i){"use strict";var l=i(85893),a=(i(67294),i(21617)),r=i(39708),s=i.n(r);t.Z=e=>{let{className:t,color:i="primary"}=e;return(0,l.jsxs)("div",{className:(0,a.Z)(s().root,t,{[s().colorPrimary]:"primary"===i}),children:[(0,l.jsx)("span",{}),(0,l.jsx)("span",{}),(0,l.jsx)("span",{})]})}},54189:function(e,t,i){"use strict";i.d(t,{a:function(){return c}});var l=i(67294),a=i(9473),r=i(1640),s=i(14796),n=i(60571),o=i(5982);const c=()=>{const e=(0,a.I0)(),t=(0,n.v)((e=>e.user.data)),i=(0,n.v)((e=>e.user.form)),c=(0,n.v)((e=>e.user.valid)),d=(0,n.v)((e=>e.user.requiredFields)),u=(0,s.Z)(),_=(0,l.useMemo)((()=>i.email!==(null===t||void 0===t?void 0:t.email)||i.name!=="".concat(null===t||void 0===t?void 0:t.lastName," ").concat(null===t||void 0===t?void 0:t.name)),[t,i]);return{userData:t,form:i,valid:c,requiredFields:d,updateUser:async function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t){const l={data:{type:"user",id:t.id,attributes:i}},a=await e((0,o.Nq)(l)),s=await(null===u||void 0===u?void 0:u.getKeyByEntity("".concat(r.VV,"user_")));s&&(null===u||void 0===u||u.setItem(s,JSON.stringify(a),-1))}},needUpdate:_}}},9785:function(e,t,i){"use strict";i.d(t,{Z:function(){return y}});var l=i(85893),a=i(67294),r=i(41664),s=i.n(r),n=i(11163),o=i(21617),c=i(66256),d=i(93953),u=i.n(d);var _=e=>{let{data:t}=e;const i=(0,n.useRouter)(),r=(e,t)=>e.url?(0,l.jsxs)(s(),{href:e.url,className:(0,o.Z)(t,{[u().active]:e.url.slice(0,-1)===i.pathname}),children:[e.tille,!!(null===e||void 0===e?void 0:e.count)&&(0,l.jsx)("div",{className:u().count,children:e.count})]}):(0,l.jsx)("div",{className:t,children:e.tille});return(0,l.jsx)("div",{className:u().menu,children:(0,c.if)(t).map((e=>(0,l.jsxs)("div",{className:u().menuItem,children:[r(e,u().menuItemTitle),e.children&&(0,l.jsx)("div",{className:u().menuChildren,children:(0,c.if)(e.children).map((e=>(0,l.jsx)(a.Fragment,{children:r(e,u().menuChildTitle)},e.id)))})]},e.id)))})},m=i(54497),f=i(80972),h=i(54189),p=i(59066),v=i(43818),x=i(66339),N=i(26043);const j=[{tille:"\u041f\u0440\u043e\u0444\u0438\u043b\u044c",url:"/profile/",id:1},{tille:"\u041b\u0438\u0447\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f",id:2,children:[{tille:"\u0423\u0447\u0435\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c",url:"/profile/settings/",id:1},{tille:"\u041b\u044e\u0431\u0438\u043c\u044b\u0435 \u0430\u043f\u0442\u0435\u043a\u0438",url:"/profile/favorite/pharmacies/",id:2},{tille:"\u0418\u0437\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u0432\u0430\u0440\u044b",url:"/profile/favorite/products/",id:3},{tille:"\u041e\u0442\u0437\u044b\u0432\u044b",url:"/profile/reviews/",id:4}]},{tille:"\u0417\u0430\u043a\u0430\u0437\u044b",id:3,children:[{tille:"\u041c\u043e\u044f \u043a\u043e\u0440\u0437\u0438\u043d\u0430",url:"/cart/",id:1},{tille:"\u041c\u043e\u0438 \u0437\u0430\u043a\u0430\u0437\u044b",url:"/profile/orders/",id:2},{tille:"\u041a\u0443\u043f\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u043e\u0432\u0430\u0440\u044b",url:"/profile/products/",id:3}]}];var P=i(1466),b=i.n(P);var y=e=>{let{children:t,hideTitle:i="false",backButtonTitle:r="\u041d\u0430\u0437\u0430\u0434",...d}=e;const{isDesktop:u}=(0,m.bp)(),[P,y]=(0,a.useState)(!0),[g,Z]=(0,a.useState)(j),k=(0,n.useRouter)(),{userData:w}=(0,h.a)(),I=d.tabs||[];(0,a.useEffect)((()=>{const e=v.Z.get();(0,f.g7)(e)?y(!1):window.location.href="/"}),[]),(0,a.useEffect)((()=>{const e=(0,c.if)(g).map((e=>3===e.id?{...e,children:(0,c.if)(e.children).map((e=>2===e.id?{...e,count:null===w||void 0===w?void 0:w.orders}:e))}:e));Z(e)}),[w]);return P||!w?(0,l.jsx)(p.Z,{...d,children:(0,l.jsx)(x.Z,{})}):u?(0,l.jsx)(p.Z,{...d,children:(0,l.jsxs)("div",{className:b().root,children:[(0,l.jsx)("div",{className:b().sidebar,children:(0,l.jsx)(_,{data:g})}),(0,l.jsxs)("div",{className:b().content,children:[(0,l.jsxs)("div",{className:(0,o.Z)(b().titlePage,d.titlePageClassName),children:[d.title,d.innerTitle]}),t]})]})}):(0,l.jsx)(p.Z,{...d,children:(0,l.jsxs)("div",{className:b().root,children:[(0,l.jsx)("div",{className:b().backRoot,children:(0,l.jsxs)("button",{className:b().back,onClick:()=>{k.back()},children:[(0,l.jsx)(N.Z,{fontSize:18}),r]})}),!i&&(0,l.jsxs)("div",{className:(0,o.Z)(b().titlePage,d.titlePageClassName),children:[d.title,d.innerTitle]}),I.length>0&&(0,l.jsx)("div",{className:b().tabsBar,children:(0,c.if)(I).map((e=>k.asPath===e.url?(0,l.jsx)("span",{className:(0,o.Z)(b().tabsItem,b().tabsItem_active),children:e.title}):(0,l.jsx)(s(),{href:e.url,className:b().tabsItem,replace:!0,children:e.title})))}),t]})})}},71870:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return p}});var l=i(85893),a=i(67294),r=i(2387),s=i(54497),n=i(93816),o=i(66256),c=i(85890),d=i(28449),u=i(9785),_=i(60571),m=i(66339),f=i(96835),h=i.n(f);var p=()=>{const e=(0,_.v)((e=>e.favorites.onloadPharmacies)),t=(0,_.v)((e=>e.favorites.pharmacies)),{items:i,onload:f}=(0,c.Y)(!1,!0),p=(0,a.useMemo)((()=>(0,n.wm)(t,i)),[t,i]);(0,d.l)(!p.length);const v=f||e,{isDesktop:x}
1=(0,s.bp)(),N=x?"\u041b\u044e\u0431\u0438\u043c\u044b\u0435 \u0430\u043f\u0442\u0435\u043a\u0438":"\u0418\u0437\u0431\u0440\u0430\u043d\u043d\u043e\u0435",j=(0,l.jsx)("span",{className:h().title_count,children:p.length});return v?(0,l.jsx)(u.Z,{title:N,children:(0,l.jsx)(m.Z,{})}):(0,l.jsx)(u.Z,{title:N,innerTitle:!!p.length&&x&&j,titlePageClassName:h().title,tabs:[{title:"\u0410\u043f\u0442\u0435\u043a\u0438",url:"/profile/favorite/pharmacies/"},{title:"\u0422\u043e\u0432\u0430\u0440\u044b",url:"/profile/favorite/products/"}],children:(0,l.jsx)("div",{className:h().root,children:(0,o.if)(p).length?(0,o.if)(p).map((e=>(0,l.jsx)(r.Z,{item:e,rootClassName:h().pharmacy},e.id))):"\u0421\u043f\u0438\u0441\u043e\u043a \u043b\u044e\u0431\u0438\u043c\u044b\u0445 \u0430\u043f\u0442\u0435\u043a \u043f\u0443\u0441\u0442"})})}},39708:function(e){e.exports={root:"OnloadDotted_root__PWKyd",onload:"OnloadDotted_onload__44dBC",colorPrimary:"OnloadDotted_colorPrimary__gM9xd",pulse:"OnloadDotted_pulse___dNdX"}},93953:function(e){e.exports={menuItem:"LeftMenu_menuItem__GkGsa",menuItemTitle:"LeftMenu_menuItemTitle__CQJq9",menuChildren:"LeftMenu_menuChildren__Neskg",menuChildTitle:"LeftMenu_menuChildTitle__K77r2",count:"LeftMenu_count__QItXo",active:"LeftMenu_active__Vk1ZG",pulse:"LeftMenu_pulse__nFmL4"}},96835:function(e){e.exports={root:"profilePharmacies_root__fgrFG",title:"profilePharmacies_title__66H6M",title_count:"profilePharmacies_title_count__SO4wM",pharmacy:"profilePharmacies_pharmacy__fKEUp",pulse:"profilePharmacies_pulse__FwodR"}},1466:function(e){e.exports={root:"layoutProfile_root__pwriJ",sidebar:"layoutProfile_sidebar__U6V0t",content:"layoutProfile_content__l4iTw",titlePage:"layoutProfile_titlePage__KimDN",tabsBar:"layoutProfile_tabsBar__aotLa",tabsItem:"layoutProfile_tabsItem__VfMSo",tabsItem_active:"layoutProfile_tabsItem_active__OY1nf",backRoot:"layoutProfile_backRoot__M8nP4",back:"layoutProfile_back__JoZq_",pulse:"layoutProfile_pulse__yYf0x"}}},function(e){e.O(0,[1664,2866,3586,7967,9926,804,8449,2447,9774,2888,179],(function(){return t=69318,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.