PageSourceSearch

https://www.puratos.com/etc.clientlibs/settings/wcm/designs/purato…/static/js/myPuratos-chat.8f6d42fc.chunk.js

js puratos.com collected 2026-10-02 03:58:12 UTC 5,613 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpuratos_react=self.webpackChunkpuratos_react||[]).push([[5990],{65035(t,e,a){a.r(e),a.d(e,{default:()=>N});var s=a(96540),n=a(19115),l=a(55337),c=a(5556),o=a.n(c),r=a(74848);const i=t=>{let{style:e,image:a,category:s,title:n,text:l,buttonText:c,buttonLink:o}=t;return(0,r.jsxs)("div",{className:"thumbnail thumbnail--transparent p-background",children:[(0,r.jsx)("div",{className:"p-background__item p-background__item--".concat(e," bg-lazyload lazyload"),style:{backgroundImage:"url('".concat(a.rendition600Path,"')")}}),(0,r.jsxs)("div",{className:"p-box p-box--lg p-color-positive text-center",children:[s&&(0,r.jsx)("h3",{className:"badge badge-md badge-".concat("primary"===e?"info":"light"),children:s}),n&&(0,r.jsx)("h2",{className:"p-margin-top-xs p-margin-bottom",dangerouslySetInnerHTML:{__html:n}}),l&&(0,r.jsx)("p",{className:"lead",dangerouslySetInnerHTML:{__html:l}}),c&&(0,r.jsx)("p",{className:"p-margin-top",children:(0,r.jsx)("a",{href:o,className:"btn btn-default",children:c})})]})]})};i.propTypes={style:o().string,image:o().object,category:o().string,title:o().string,text:o().string,buttonText:o().string,buttonLink:o().string},i.defaultProps={style:"primary",image:{}};const p=i,d=t=>{let{title:e,rows:a}=t;return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("div",{className:"col-xs-12 p-flex p-justify-space-between p-flex-align-center",children:(0,r.jsx)("h3",{className:"p-section-title",dangerouslySetInnerHTML:{__html:e}})}),(0,r.jsx)("div",{className:"thumbnail col-xs-12",children:(0,r.jsx)("div",{className:"table-group",children:a})})]})};d.propTypes={},d.defaultProps={};const m=d;var h=a(62975),u=a(54950),g=a(22178);const x=t=>{let{i18n:e,data:a,key:s,locale:l}=t;const c=(0,n.useSelector)(g.Tq);return(0,r.jsx)("div",{className:"table-group-item",children:(0,r.jsxs)("div",{className:"row p-flex-sm",children:[(0,r.jsxs)("div",{className:"col-xs-12 col-sm-4",children:[(0,r.jsx)("span",{className:"text-muted p-xsmall block",children:(0,u.T)(e,"Date")}),(0,r.jsx)("span",{className:"p-serif-nr",children:(0,h.oh)(a.date,l,c)})]}),(0,r.jsxs)("div",{className:"col-xs-12 col-sm-4",children:[(0,r.jsx)("span",{className:"text-muted p-xsmall block",children:(0,u.T)(e,"Topic")}),a.topic]}),(0,r.jsx)("div",{className:"col-xs-12 col-sm-4",children:(0,r.jsxs)("div",{className:"p-flex p-justify-space-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:"text-muted p-xsmall block",children:(0,u.T)(e,"Expert")})," ",a.name]}),a.image&&(0,r.jsx)("div",{className:"p-avatar bg-lazyload lazyload",style:{backgroundImage:"url('".concat(a.image.rendition400Path,"')")}})]})})]})},s)};x.propTypes={i18n:o().object,data:o().object,key:o().string},x.defaultProps={i18n:{}};const b=x;var j=a(30673),f=a(21978);class v extends s.Component{componentDidMount(){const{mapping:t}=this.props;this.props.fetchChatModel(t),(0,f.c)("chat")}componentDidUpdate(t){const{mapping:e}=this.props;t.mapping!==e&&this.props.fetchChatModel(e)}render(){const{chatModel:t,i18n:e,mapping:a}=this.props;let s="";return t&&t.upcomingChats&&t.upcomingChats.chats&&(s=t.upcomingChats.chats.map(t=>(0,r.jsx)(b,{locale:a.countryLanguage,data:t,i18n:e},t.materialNumber))),(0,r.jsxs)(j.A,{title:t.title,description:t.text,children:[(0,r.jsx)("div",{className:"row p-flex p-flex-wrap chat",children:t&&t.tiles&&t.tiles.map((t,e)=>(0,r.jsx)("div",{className:"col-sm-6 p-flex",children:(0,r.jsx)(p,{text:t.text,title:t.title,style:t.style,image:t.image,category:t.category,buttonText:t.buttonText,buttonLink:t.buttonLink})},e))}),(0,r.jsx)("div",{className:"row",children:t&&t.upcomingChats&&(0,r.jsx)(m,{title:t.upcomingChats.title,rows:s})})]})}}const y={fetchChatModel:l._7},N=(0,n.connect)(t=>({chatModel:t.myPuratos_contact.chat.aemResource,mapping:t.myPuratos_dashboard.mapping,i18n:t.myPuratos_i18n.i18n}),y)(v)},62975(t,e,a){a.d(e,{KH:()=>r,Xd:()=>c,Yq:()=>l,oh:()=>o});var s=a(23941),n=a.n(s);function l(t){return i(t)?l(n()(t).toDate()):t instanceof Date?"".concat(t.getDate(),"/").concat(t.getMonth()+1,"/").concat(t.getFullYear()):t}function c(t,e){var a;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t)return"";let l=e,c=[];return e&&(l=e.replace("_","-").toLowerCase(),c=l.split("-"),2===c.length&&(l="".concat(c[0],"-").concat(c[1].toUpperCase()))),null!==(a=n().locales())&&void 0!==a&&a.includes(l)?n().locale(l):c.length?n().locale(c[0]):n().locale("en"),n()(t).format(s.toUpperCase()||"L")}function o(t,e){var a;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!t)return"";let l=e,c=[];return e&&(l=e.replace("_","-").toLowerCase(),c=l.split("-"),2===c.length&&(l="".concat(c[0],"-").concat(c[1].toUpperCase()))),null!==(a=n().locales())&&void 0!==a&&a.includes(l)?n().locale(l):c.length?n().locale(c[0]):n().locale("en"),n()(t).format(s.toUpperCase()||"L LT")}function r(t){return t instanceof Date?"".concat(t.getFullYear(),"-").concat((t.getMonth()+1).toString().length>1?t.getMonth()+1:"0"+(t.getMonth()+1),"-").concat(t.getDate().toString().length>1?t.getDate():"0"+t.getDate()):t}function i(t){return!isNaN(parseFloat(t)&&isFinite(t))}},21978(t,e,a){a.d(e,{c:()=>c});var s=a(74692),n=a.n(s);const l="href",c=t=>{var e;const a=n()(".p-navbar--lang-dropdown")[0];a&&(null===(e=n()(a).children())||void 0===e||e.each(function(){const e=n()(this).attr(l),a=new RegExp("/mypuratos/?(.*)");a.test(e)&&null!==e&&void 0!==e&&e.endsWith(!!e.match(a)&&e.match(a)[0])&&n()(this).attr(l,e.replace(e.match(a)[0],"".concat("/mypuratos","/").concat(t)))}))}}}]);
2//# sourceMappingURL=myPuratos-chat.8f6d42fc.chunk.js.map

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.