PageSourceSearch

https://myofer.co.il/_next/static/chunks/6449.7e122302a58855b1.js

js myofer.co.il collected 2026-09-24 22:08:08 UTC 6,613 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6449],{56449:function(e,t,r){r.r(t),r.d(t,{default:function(){return storesLobby_StoresLobbyMobile}});var l=r(85893),s=r(48021),n=r(67294),i=r(96687),o=r(61468),a=r(16743),d=r(38230),c=r(11918),u=r(3456),h=r(3014),x=r(65018),g=r(41664),m=r.n(g),f=r(11163),j=r(80471),p=r(86893),y=r(92949),StoresImageCategoryMobile=e=>{var t,r;let{currentCategory:d,selected:u,active:g,translations:b,changeActive:v,isRadc:S,mallCategories:C,imageMobileContainerRef:_,handleStoreSearchChange:I,resetPageIndex:M}=e,k=(null==u?void 0:u.seoTitle)||s.kmH[null==u?void 0:u.id],{clearSearchData:R,state:{storeSearchVal:A}}=(0,n.useContext)(i._),Z=(0,n.useMemo)(()=>S?2:1,[S]),E=(0,f.useRouter)(),P=(0,n.useRef)(Array(Z));return(0,n.useEffect)(()=>{g===s.mtp&&P.current[1]&&P.current[1].scrollIntoView({inline:"center",block:"end"}),g===s.MU2&&P.current[0]&&P.current[0].scrollIntoView({inline:"center",block:"end"}),g!==s.MU2&&g!==s.mtp&&P.current[C.findIndex(e=>e.id===g)+Z].scrollIntoView({inline:"center",block:"end"})},[g]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.fb,{ref:_,children:(0,l.jsx)(c.default,{src:(null==d?void 0:d.image.cloudinaryPublicId)?(0,y.xL)(null==d?void 0:d.image.cloudinaryPublicId):"/mobile-stores-lobby.png",alt:null==d?void 0:null===(t=d.image)||void 0===t?void 0:t.alt,maxHeight:460,maxWidth:532,isStore:!0})}),(0,l.jsx)(o.Xz,{children:"".concat(s.BAp).concat(null==u?void 0:u.name)}),(0,l.jsxs)(o.MJ,{style:{marginBottom:32},children:[(0,l.jsx)(m(),{href:"/malls/".concat(k,"/stores"),passHref:!0,children:(0,l.jsx)(o.Cl,{isStoreCatgeory:!0,ref:P.current[0],isActive:g===s.MU2,onClick:()=>v(s.MU2),children:(0,l.jsx)(o.nv,{isStoreCategory:!0,children:null!==(r=null==b?void 0:b.stores_lobby_all_category)&&void 0!==r?r:s.iXN})})}),C.map(e=>(0,l.jsx)(m(),{href:"/malls/".concat(k,"/stores/cat/").concat(e.id),passHref:!0,children:(0,l.jsx)(o.Cl,{ref:e=>{P.current.push(e)},isActive:g===e.id,onClick:()=>v(e.id),children:(0,l.jsx)(o.nv,{children:e.title})})},e.id))]}),(0,l.jsxs)(a.p4,{children:[(0,l.jsx)(a.ol,{placeholder:(0,h.gN)({textKey:x.R.store_lobby_search_component_text,values:{}}),value:A,onChange:I}),A.length>1?(0,l.jsx)(j.Fk5,{onClick:()=>{R();let{slug:e,params:t}=E.query;E.query={slug:e,params:t},E.replace(E,void 0,{shallow:!0}),M()}}):(0,l.jsx)(p.jRj,{fontSize:24,strokeWidth:1.5})]})]})},storesLobby_StoresLobbyMobile=e=>{let{currentCategory:t,selected:r,active:h,translations:x,changeActive:g,isRadc:m,mallCategories:f,isAuthenticated:j,followedStoresTargetRef:p,mallId:y,allStoresUpperTargetRef:b,pageIndex:v,allStoresTargetRef:S,setPageIndex:C,numOfPages:_,propsStores:I,propsProductStores:M,total:k,handleStoreSearchChange:R}=e,{state:{allStores:A,followedStores:Z,productsStores:E}}=(0,n.useContext)(i._),P=(0,n.useRef)(null),[w,L]=(0,n.useState)(h!==s.mtp?I:M);return(0,n.useEffect)(()=>{L(h!==s.mtp?A:E)},[A,h,E]),(0,l.jsxs)(a.Ly,{children:[(0,l.jsx)(StoresImageCategoryMobile,{currentCategory:t,handleStoreSearchChange:R,selected:r,active:h,changeActive:g,translations:x,isRadc:m,mallCategories:f,imageMobileContainerRef:P,resetPageIndex:()=>{C(1)}}),(0,l.jsx)(u.Z,{selected:r,setPageIndex:C,active:h,translations:x,isAuthenticated:j,followedStoresTargetRef:p,allStoresUpperTargetRef:b,allStoresTargetRef:S,mallId:y,pageIndex:v,getCategoryId:()=>h>0?h:void 0,filteredAllStores:w,numOfPages:_,total:k}),t&&t.seoText&&(0,l.jsxs)(o.kO,{children:[(0,l.jsx)(c.default,{src:"/ofer-logo-rounded.svg",alt:"MyOfer",maxHeight:44,maxWidth:44}),(0,l.jsx)(o.Z5,{children:s.llt}),(0,l.jsx)(o.q2,{children:null==t?void 0:t.title}),(0,l.jsx)(o.MA,{children:(0,l.jsx)(d.Z,{text:null==t?void 0:t.seoText})})]})]})}},3456:function(e,t,r){r.d(t,{e:function(){return EmptySearchedStoresState}});var l=r(85893),s=r(88078),n=r(48021),i=r(33869),o=r(67294),a=r(6899),d=r(96687),c=r(3014),u=r(65018),h=r(83253),x=r(61468),g=r(10328),m=r(18713);let EmptySearchedStoresState=e=>{let{isMobile:t}=e;return(0,l.jsx)(x.Ft,{isMobile:t,children:(0,l.jsx)(x.ie,{children:"-"})})};t.Z=e=>{let{selected:t,active:r,translations:f,isAuthenticated:j,followedStoresTargetRef
1:p,mallId:y,allStoresUpperTargetRef:b,pageIndex:v,allStoresTargetRef:S,getCategoryId:C,filteredAllStores:_,numOfPages:I,total:M,setPageIndex:k}=e,{state:{followedStores:R,followQueue:A,storeSearchData:Z,storeSearchVal:E,followedStoresSearchData:P,followedProductStores:w,followedProductsStoresSearchData:L,searchLoading:N}}=(0,o.useContext)(d._),T=(0,o.useMemo)(()=>E&&E.length>1,[E]),F=(0,o.useMemo)(()=>{let e=[];return T&&(e=Z.entities),T||(e=_),e.filter(e=>!R.some(t=>t.id===e.id))},[_,Z,R]),H=(0,o.useMemo)(()=>{if(T)return r===n.mtp?L:P;if(r===n.mtp){let e=_.filter(e=>R.some(t=>t.id===e.id));return e}return R},[R,P,E,L]);return(0,l.jsxs)(x.fp,{children:[T&&0===H.length&&0===F.length&&(0,l.jsxs)(x.am,{children:[(0,l.jsx)(x.oU,{children:(0,l.jsx)(c.g0,{textKey:u.R.store_lobby_no_search_result,values:{}})}),(0,l.jsx)(x.em,{children:E})]}),(0,l.jsxs)(x.AY,{children:[H.length>0&&j&&(0,l.jsxs)(x.Q$,{isEmpty:!!(T&&0===H.length&&0===F.length),children:[(0,l.jsx)(x.NZ,{children:n.Rei}),N?(0,l.jsx)(h.Z,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.default,{total:M,initItems:H,target:p.current,pageSize:12,componentKey:1,fetchItems:(e,t)=>(0,i.R1)({pageIndex:e,pageSize:t,searchPhrase:E,mallId:y,categoryId:C()}),renderCard:e=>{let{item:t}=e;return(0,l.jsx)(m.default,{store:t,isLoading:A.includes(t.id)},t.id)}}),(0,l.jsx)("div",{ref:p})," "]})]}),F.length?(0,l.jsxs)(x.Q$,{isEmpty:!!(T&&0===H.length&&0===F.length),children:[(0,l.jsx)(x.NZ,{children:n.bXo}),N?(0,l.jsx)(h.Z,{}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(g.default,{total:M,initItems:F,target:p.current,pageSize:12,componentKey:1,fetchItems:(e,t)=>(0,i.R1)({pageIndex:e,pageSize:t,searchPhrase:E,mallId:y,categoryId:C()}),renderCard:e=>{let{item:t}=e;return(0,l.jsx)(m.default,{store:t,isLoading:A.includes(t.id)},t.id)}}),(0,l.jsx)("div",{ref:p})," "]}),(I>1||!I)&&(0,l.jsx)(s.default,{numOfPages:I,currPage:v,pageChangeCallback:e=>{k(e)}})]}):(0,l.jsxs)(a.Jn,{style:{padding:"38px 16px 150px"},children:[(0,l.jsx)(x.NZ,{children:n.bXo}),T?(0,l.jsx)(EmptySearchedStoresState,{isMobile:!0}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.ZG,{src:"".concat("https://cdn.groo.co.il/my-ofer-public","/missing-malls.png"),alt:"Not found",style:{marginTop:"50px"}}),(0,l.jsx)(a.w0,{style:{fontSize:"21px",fontWeight:"300",lineHeight:"26px",margin:"0",textAlign:"center",right:"0",marginTop:"20px"},children:(null==f?void 0:f.stores_not_found)?null==f?void 0:f.stores_not_found:n.hQb})]})]})]})]})}}}]);

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.