PageSourceSearch

https://www.tpipolene.com/_next/static/chunks/pages/user/chat-1c750df07181a277ed07.js

js tpipolene.com collected 2026-10-06 09:29:50 UTC 3,907 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3965],{56578:function(e,t,n){"use strict";var r=n(94184),s=n.n(r),i=n(67294),a=n(11461),l=n(85893);t.Z=function(e){var t=e.elLeft,n=e.elCenter,r=e.elRight,c=e.className,o=e.isBerger,u=(0,i.useState)(!1),d=u[0],m=u[1];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:s()("heaed-title-mb",c||"",{"h-64px is-berger":o}),children:[t?(0,l.jsx)("div",{className:"heaed-title-mb-left",children:t}):null,n?(0,l.jsx)("div",{className:"heaed-title-mb-center",children:n}):null,r?(0,l.jsx)("div",{className:"heaed-title-mb-right",children:r}):null,o&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"navTrigger-bg"}),(0,l.jsxs)("div",{className:s()("navTrigger",{active:d}),onClick:function(){return m(!d)},children:[(0,l.jsx)("i",{}),(0,l.jsx)("i",{}),(0,l.jsx)("i",{})]})]})]}),!c&&(0,l.jsx)("div",{className:s()("heaed-title-mb-bg",{"h-64px":o})}),o&&(0,l.jsx)("div",{className:s()("nav-content",{active:d}),children:(0,l.jsx)("div",{className:"container ",children:(0,l.jsx)(a.Z,{open:d,setOpen:m})})})]})}},44570:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return j}});var r=n(83789),s=n(92809),i=n(67294),a=n(1124),l=n(26847),c=n(5070),o=n(56578),u=n(41664),d=n(53023),m=n(70309),h=(n(20075),n(34276)),f=n(10867),p=n(85893);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){(0,s.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=!0;t.default=function(e){e.query,e.locale;var t=(0,f.$G)("user").t,n=(0,i.useContext)(m.ZP),s=(n.open,n.setOpen,n.setOpenSellerList),g=n.openSellerList,j=n.setChats,b=(0,i.useContext)(l.ZP).user,x=[{id:-1,interlocutor_id:"chat_bot",interlocutor:{name:"TPI Chat Bot"},lasted:"10:00",messages:[]},{id:-2,interlocutor_id:"admin",admin_id:"admin",interlocutor:{name:"TPI Polene"},lasted:"10:00",messages:[]}];return(0,i.useEffect)((function(){b&&d.Z.getChats().then((function(e){var t=e.data;t=t.map((function(e){var t;return v(v({},e),{},{interlocutor_id:e.seller_id||e.admin_id,interlocutor:e.seller?v(v({},e.seller),{},{name:null===(t=e.seller)||void 0===t?void 0:t.shop_name}):{name:"TPI Polene"},last_message:e.messages[e.messages.length-1],messages:[]})}));var n=[].concat((0,r.Z)(t),x).reduce((function(e,t){return-1===e.findIndex((function(e){return e.interlocutor_id===t.interlocutor_id}))?[].concat((0,r.Z)(e),[t]):e}),[]);j(n)})).catch((function(e){console.log(e.response||e)}))}),[b]),b?(0,p.jsx)(a.Z,{title:"Chat",page_name:"Chat",mobileNavShow:"none",activeMenuBottom:"profile",mbNavBottomShow:"none",noneShipping:"mobile",className:"bg-mainlayout-grey-ds bg-mainlayout-white-md min-height-mainlayout-100-md footer-btn-chat-none",children:(0,p.jsxs)(c.pU,{at:"sm",className:"",children:[(0,p.jsx)(o.Z,{elLeft:(0,p.jsx)(u.default,{href:"/user/dashboard",children:(0,p.jsx)("a",{children:(0,p.jsx)("img",{src:"/icon/header/Icon-ionic-ios-arrow-back.svg"})})}),elCenter:(0,p.jsx)("div",{className:"d-flex align-items-center",children:(0,p.jsx)("h5",{className:"mb-0 font-weight-medium",children:t("nav_chat")})})}),(0,p.jsx)("div",{className:"modal-chat open position-relative",children:(0,p.jsx)(h.Z,{isMobile:!0,openSellerList:g,setOpenSellerList:s})})]})}):null}},16642:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/chat",function(){return n(44570)}])}},function(e){e.O(0,[9774,4038,1124,2888,179],(function(){return t=16642,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.