PageSourceSearch

https://www.florista.ph/_next/static/chunks/pages/user-dashboard/wishlist-9b274c73327a1452.js

js florista.ph collected 2026-10-08 22:00:38 UTC 5,116 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3667],{9039:function(e,l,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user-dashboard/wishlist",function(){return s(9767)}])},8880:function(e,l,s){"use strict";s.r(l);var i=s(5893),t=s(9008),n=s.n(t);s(7294),s(1664);var a=s(9734),r=s(6188),d=s(9359);l.default=function(e){var l,s,t,o;let{message:c,RouteNotFound:u}=e,{data:h}=(0,a.ZP)("/get_block_data",async()=>new r.Z().getBlockData({block_slug:"not_found_block"}),{revalidateOnFocus:!1});return u?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n(),{children:(0,i.jsx)("title",{children:"404 - Page Not Found"})}),(0,i.jsx)("div",{className:"container",style:{maxWidth:"1140px"},children:(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-md-12",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:"".concat((null==h?void 0:null===(l=h.result)||void 0===l?void 0:l.description)?null==h?void 0:null===(s=h.result)||void 0===s?void 0:s.description:d.Z.NO_DATA_FOUND)}})})})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n(),{children:(0,i.jsx)("title",{children:"404 - something went wrong!"})}),(0,i.jsx)("div",{className:"container",style:{maxWidth:"1140px"},children:(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-md-12",children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:"".concat((null==h?void 0:null===(t=h.result)||void 0===t?void 0:t.description)?null==h?void 0:null===(o=h.result)||void 0===o?void 0:o.description:d.Z.NO_DATA_FOUND)}})})})})]})}},9767:function(e,l,s){"use strict";s.r(l),s.d(l,{__N_SSP:function(){return f}});var i=s(5893),t=s(7294),n=s(4590),a=s(1664),r=s.n(a),d=s(3299),o=s(9359),c=s(6188);s(5675);var u=s(9734),h=s(9008),v=s.n(h),x=s(8533);s(9840);var g=s(8880),m=s(822),_=s(7041);s(1163);var j=s(8319),N=s(5386),f=!0;l.default=function(){var e;let{data:l}=(0,d.useSession)(),[s,a]=(0,t.useState)([]),[h,f]=(0,t.useState)(),{currency:p,setWishlistCount:w,wishlistCount:S}=(0,t.useContext)(n.m),[y,E]=(0,t.useState)(!1),[Z,T]=(0,t.useState)(!0),[A,k]=(0,t.useState)(2);(0,m.r)((0,_.getCookie)(o.Z.USER_CURRENCY_KEY));let C=(0,_.getCookie)(o.Z.USER_CURRENCY_KEY),{data:R,error:O,isLoading:U}=(0,u.ZP)((null==l?void 0:null===(e=l.user)||void 0===e?void 0:e.slug)?"get_wishlist":null,async()=>await new c.Z().getWishlist({slug:l.user.slug,page:1,currency:p}),{revalidateOnFocus:!1}),W=async()=>{if(A<=R.total_page){var e;let i=null==l?void 0:null===(e=l.user)||void 0===e?void 0:e.slug;if(i){let t=await new c.Z().getWishlist({slug:i,page:A,currency:p});if(t.status===o.Z.SUCCESS_STATUS){let n=null==t?void 0:t.result;Array.isArray(s)&&Array.isArray(n)?a(e=>[...e,...n]):a(e=>[...n]),k(e=>e+1)}}}else T(!1)};(0,t.useEffect)(()=>{var e;a(null==R?void 0:R.result),w(null==R?void 0:R.total_record),T(!((null==R?void 0:null===(e=R.result)||void 0===e?void 0:e.length)<(null==R?void 0:R.limit)))},[R,S]);let b=async()=>{var e,s;let i=null==l?void 0:null===(e=l.user)||void 0===e?void 0:e.slug;if(a(),f(),E(!1),T(!0),k(2),i){let t=await new c.Z().getWishlist({slug:i,page:1,currency:p}),n=null==t?void 0:t.result;a(n),T(!((null==t?void 0:null===(s=t.result)||void 0===s?void 0:s.length)<(null==t?void 0:t.limit)))}};return((0,t.useEffect)(()=>{C!==p&&(a(),f(),E(!1),T(!0),k(2),(0,u.JG)("get_wishlist"))},[p]),y||!s)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v(),{children:(0,i.jsx)("title",{children:"Wishlist"})}),(0,i.jsx)(j.Z,{})]}):(null==R?void 0:R.status)===o.Z.ERROR_STATUS||O||!Array.isArray(s)?(0,i.jsx)(g.default,{}):(0,i.jsxs)("div",{children:[(0,i.jsx)(v(),{children:(0,i.jsx)("title",{children:"Wishlist"})}),0!==s.length?(0,i.jsx)(x.Z,{dataLength:(null==s?void 0:s.length)?null==s?void 0:s.length:8,next:W,hasMore:Z,loader:(0,i.jsx)(j.Z,{height:250}),endMessage:(null==s?void 0:s.length)>(null==R?void 0:R.limit)?(0,i.jsx)("p",{style:{textAlign:"center"},children:"No more results found."}):null,pullDownToRefreshThreshold:30,scrollThreshold:"30%",children:(0,i.jsx)("div",{className:"product-listing-section",children:(0,i.jsx)("div",{className:"container-fluid",children:(0,i.jsx)("div",{className:"row",children:null==s?void 0:s.map((e,l)=>(0,i.jsx)("div",{className:"col-md-3",children:(0,i.jsx)(N.Z,{src:"".concat((null==R?void 0:R.image_path)?null==R?void 0:R.image_path:"/").concat(null==e?void 0:e.product_image),data:e,refreshListing:b,showWishlistIcon:!0})},l))})})})}):(0,i.jsx)("div",{className:"cart-empty-message",children:(0,i.jsxs)("div",{className:"",children:[(0,i.jsxs)("h3",{className:"text-center text-danger",children:["Your Wishlist is ",(0,i.jsx)("span",{className:"text-danger ",children:"Empty!"})," "]})," ",(0,i.jsxs)("div",{className:"",children:[" ",(0,i.jsx)("p",{className:"text-secondary text-center",children:"Seems like you don't have wishes here."})]}),(0,i.jsx)("div",{className:"text-center",children:(0,i.jsxs)(r(),{href:"/",className:"devloper-decoration btn btn-primary",children:[(0,i.jsx)("i",{className:"fa fa-shopping-cart","aria-hidden":"true"})," START SHOPPING"]})})]})})]})}}},function(e){e.O(0,[6893,9774,2888,179],function(){return e(e.s=9039)}),_N_E=e.O()}]);

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.