PageSourceSearch

https://www.puratos.fr/etc.clientlibs/settings/wcm/designs/puratos…/static/js/myPuratos.ee5e7d84.chunk.js

js puratos.fr collected 2026-10-02 19:36:37 UTC 16,972 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpuratos_react=self.webpackChunkpuratos_react||[]).push([[6691],{44599(e,t,n){n.d(t,{A:()=>j});var o=n(96540),i=n(56347),a=n(19115),r=n(5556),s=n.n(r),c=n(9402),l=n(55166),p=n(74848);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=e=>class extends o.Component{constructor(){super(...arguments),m(this,"shouldDisplay",()=>{const{until:e,from:t,enabled:n}=this.props;if(n)return!0;const o=new Date;return e?t?t>=o<=e:o<=e:!t||o>=t})}render(){return this.shouldDisplay()?(0,p.jsx)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.props)):null}};u.PropTypes={until:s().instanceOf(Date),from:s().instanceOf(Date)};class d extends o.Component{render(){const{size:e,type:t,message:n,id:o,onRemoveNotification:i}=this.props;return n&&(0,p.jsxs)("div",{className:"alert alert-".concat(e," alert-").concat(t," p-margin-bottom-sm"),children:[(0,p.jsx)("button",{type:"button",className:"close","aria-label":"Close",children:(0,p.jsx)("span",{onClick:()=>i(o),onKeyDown:e=>"Enter"===e.key&&i(o),role:"button",tabIndex:0,children:"\xd7"})}),(0,p.jsx)("p",{className:"p-sans",dangerouslySetInnerHTML:{__html:n}})]})}}d.propTypes={type:s().string,size:s().string,message:s().string,id:s().string,onRemoveNotification:s().func},d.defaultProps={type:c.g.info,size:l.G.small};const g=u((0,a.connect)(e=>({mapping:e.myPuratos_dashboard.mapping}),{})(d));var b=n(74331);function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class y extends o.Component{constructor(){super(...arguments),f(this,"state",{notifications:[]}),f(this,"onRouteChanged",()=>{this.clearNotifications(this.populateNotifications)}),f(this,"onRemoveNotification",e=>{e&&this.setState({notifications:this.state.notifications.filter(t=>t.key!==e)})}),f(this,"populateNotifications",()=>{const{location:e,mapping:t}=this.props,n=e.pathname;if(t&&n){const e="/"===n?[""]:n.split("/"),o=[];e.forEach((n,i,a)=>{const r=(0,b.Wt)(t,n);r&&(r.showMessagesOnChildPages||i===e.length-1)&&o.push({key:a.slice(0,i+1).join("/")||"/",message:r.informationMessage,until:r.showInformationMessageUntil}),r&&r.maintenanceEnabled&&r.maintenanceMessage&&i===e.length-1&&o.unshift({key:a.slice(0,i+1).join("/")||"/",message:r.maintenanceMessage,enabled:r.maintenanceEnabled})}),this.setState({notifications:o})}}),f(this,"clearNotifications",e=>{this.setState({notifications:[]},e)})}componentDidMount(){this.props.location&&this.onRouteChanged()}componentDidUpdate(e){(this.props.location&&e.location&&this.props.location.pathname!==e.location.pathname||this.props.mapping!==e.mapping)&&(this.clearNotifications(),this.onRouteChanged())}render(){return this.state.notifications.length>0?(0,p.jsx)("div",{className:"row p-margin-none",children:this.state.notifications.map(e=>(0,p.jsx)(g,{id:e.key,until:e.until,enabled:e.enabled,onRemoveNotification:this.onRemoveNotification,message:e.message},e.key))}):null}}y.defaultProps={},y.propTypes={mapping:s().object};const j=(0,i.y)((0,a.connect)(e=>({mapping:e.myPuratos_dashboard.mapping}),{})(y))},74020(e,t,n){n.r(t),n.d(t,{default:()=>K});var o=n(96540),i=n(30205),a=n(56347),r=n(19115),s=n(46041),c=n(73825),l=n(74331
1),p=n(51590),h=n(746),m=n(24741),u=n(67849),d=n(91223),g=n(98069),b=n(94940);class f extends o.Component{componentDidUpdate(e){(this.props.location&&e.location&&this.props.location.pathname!==e.location.pathname||this.props.shouldScroll!==e.shouldScroll&&this.props.shouldScroll)&&(window.scrollTo(0,0),this.props.setShouldScroll(!1))}render(){return this.props.children}}const y={setShouldScroll:b.xJ},j=(0,a.y)((0,r.connect)(e=>({shouldScroll:e.myPuratos_alerts.shouldScroll}),y)(f));var v=n(28349),P=n(74848);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const M=o.lazy(()=>Promise.all([n.e(673),n.e(8577)]).then(n.bind(n,11203))),N=o.lazy(()=>Promise.all([n.e(8316),n.e(2962),n.e(4589),n.e(3387),n.e(361),n.e(221),n.e(6497),n.e(6104),n.e(4788),n.e(8830),n.e(9182)]).then(n.bind(n,14196))),_=o.lazy(()=>Promise.all([n.e(673),n.e(5990)]).then(n.bind(n,65035))),S=o.lazy(()=>Promise.all([n.e(8316),n.e(2962),n.e(4589),n.e(5047),n.e(5123),n.e(221),n.e(4788),n.e(208)]).then(n.bind(n,39293))),q=o.lazy(()=>Promise.all([n.e(673),n.e(9624)]).then(n.bind(n,85356))),z=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(493)]).then(n.bind(n,94765))),C=o.lazy(()=>Promise.all([n.e(8316),n.e(4589),n.e(488)]).then(n.bind(n,36505))),D=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(3963)]).then(n.bind(n,25835))),k=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(2646)]).then(n.bind(n,34795))),E=o.lazy(()=>Promise.all([n.e(673),n.e(3053)]).then(n.bind(n,22533))),R=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(8729)]).then(n.bind(n,40249))),T=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(1350),n.e(6988)]).then(n.bind(n,8474))),A=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(407)]).then(n.bind(n,43025))),F=o.lazy(()=>Promise.all([n.e(8316),n.e(2962),n.e(4589),n.e(3387),n.e(361),n.e(221),n.e(673),n.e(6497),n.e(6104),n.e(6910),n.e(6734),n.e(4554),n.e(3294)]).then(n.bind(n,26675))),I=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(1350),n.e(3655)]).then(n.bind(n,68545))),H=o.lazy(()=>Promise.all([n.e(2962),n.e(221),n.e(673),n.e(6497),n.e(6734),n.e(4554),n.e(5142)]).then(n.bind(n,21714))),L=o.lazy(()=>Promise.all([n.e(514),n.e(1785),n.e(6343)]).then(n.bind(n,88663))),U=o.lazy(()=>Promise.all([n.e(514),n.e(1785),n.e(5047),n.e(6338),n.e(7984)]).then(n.bind(n,4327)));class V extends o.Component{componentDidMount(){const{mappingmodel:e}=this.props;this.props.fetchMyPuratosMapping(e),this.props.initializeApplication()}componentDidUpdate(e){const{mapping:t}=this.props;e.mapping!==t&&((0,h.M3)()&&this.props.initializeCart(),this.props.initializeApplication(),this.props.fetchSidebar(t),this.props.fetchI18n(t),this.props.fetchHomePageModel(t))}render(){const{sidebar:e,mapping:t,context:n,i18n:r}=this.props,s=(0,l.aM)(t,l.Og.myProducts),c=(0,l.aM)(t,l.Og.promotions),p=(0,l.aM)(t,l.Og.chat),h=(0,l.aM)(t,l.Og.contact),d=(0,l.aM)(t,l.Og.cart),g=(0,l.aM)(t,l.Og.orders),b=(0,l.aM)(t,l.Og.register),f=(0,l.aM)(t,l.Og.signUp),y=(0,l.aM)(t,l.Og.requestAccess),x=(0,l.aM)(t,l.Og.checkout),w=(0,l.aM)(t,l.Og.allProducts),V=(0,l.aM)(t,l.Og.accountSettings),G=(0,l.aM)(t,l.Og.documents),K=(0,l.aM)(t,l.Og.invoices),X=(0,l.aM)(t,l.Og.favoriteRecipes),Z=(0,l.aM)(t,l.Og.dashboard),B=(0,l.aM)(t,l.Og.myEvents),J=(0,l.aM)(t,l.Og.excelImport),W=(0,l.aM)(t,l.Og.deliveryNotes),Y=(0,l.aM)(t,l.Og.contracts);return(0,P.jsx)(o.Fragment,{children:(0,P.jsx)(u.eM,{children:(0,P.jsx)(i.Ny,{history:m.Nc,context:n,children:(0,P.jsx)(j,{children:(0,l.qi)(t)?(0,P.jsxs)(a.dO,{children:[(0,P.jsx)(a.qh,{path:"/",exact:!0,render:()=>e.dashboardHome?(0,P.jsx)(a.rd,{to:e.dashboardHome}):(0,P.jsx)(C,{})}),w&&e.productFinderPath&&(0,P.jsx)(a.qh,{from:"/".concat(w),render:()=>(window.location.pathname=e.productFinderPath,null)}),s&&(0,P.jsx)(a.qh,{path:"/".concat(s),component:F}),V&&(0,P.jsx)(a.qh,{path:"/".concat(V),component:M}),c&&(0,P.jsx)(a.qh,{path:"/".concat(c),component:H}),h&&(0,P.jsx)(a.qh,{path:"/".concat(h),component:q}),p&&(0,P.jsx)(a.qh,{path:"/".concat(p),component:_}),x&&(0,P.jsx)(a.qh,{path:"/".concat(x),component:S}),G&&(0,P.jsx)(a.qh,{path:"/".concat(G),component:k}),K&&(0,P.jsx)(a.qh,{path:"/".concat(K),component:T}),g&&(0,P.jsx)(a.qh,{path:"/".concat(g),component:I}),W&&(0,P.jsx)(a.qh,{path:"/".concat(W),component:D}),Y&&(0,P.jsx)(a.qh,{path:"/".concat(Y),component:z}),(0,P.jsx)(a.qh,{path:"/".concat(d),component:N}),(0,P.jsx)(a.qh,{path:"/".concat(b),component:L}),(0,P.jsx)(a.qh,{path:"/".concat(f),component:U}),(0,P.jsx)(a.qh,{path:"/".concat(y),render:e=>(0,P.jsx)(U,O(O({},e),{},{newCustomer:!1}))}),(0,P.jsx)(a.qh,{path:"/".concat(X),component:R}),(0,P.jsx)(a.qh,{path:"/".concat(B),component:A}),(0,P.jsx)(a.qh,{path:"/".concat(J),component:E}),(0,P.jsx)(a.qh,{exact:!0,path:"/".concat(Z),component:C}),(0,P.jsx)(a.qh,{render:()=>e.dashboardHome?(0,P.jsx)(a.rd,{to:"/".concat(e.dashboardHome)}):(0,P.jsx)(C,{})})]}):(0,P.jsx)(v.A,{mapping:t})})})})})}}const G={fetchSidebar:s.jv,fetchI18n:c.X0,fetchMyPuratosMapping:s.Z5,fetchHomePageModel:p.qm,initializeCart:g.ZE,initializeApplication:d.j0},K=(0,r.connect)(e=>({sidebar:e.myPuratos_navigation.sidebar,i18n:e.myPuratos_i18n.i18n,mapping:e.myPuratos_dashboard.mapping}),G)(V)},28349(e,t,n){n.d(t,{A:()=>T});
1var o=n(96540),i=n(19115),a=n(29413),r=n(74331),s=n(5556),c=n.n(s),l=n(54625),p=n(56347),h=n(15588),m=n(74848);function u(e){let{mapping:t,title:n,route:o,onRouteChange:i,sidebar:a}=e;const s=(0,r.aM)(t,r.Og.myPuratos)===o,c=(0,r.aM)(t,r.Og.allProducts)===o,p="contact"===o,h=window.location.pathname.split("/")[1],u="/".concat(h,"/contact-us");return c&&a.productFinderPath?(0,m.jsx)(m.Fragment,{children:(0,m.jsx)("li",{className:"p-nav-side__item",onClick:()=>window.location.pathname=a.productFinderPath,children:(0,m.jsx)("a",{className:"p-nav-side__link",href:a.productFinderPath,children:n})})}):(0,m.jsx)("li",{className:"p-nav-side__item",onClick:i,children:p?(0,m.jsx)("a",{className:"p-nav-side__link",href:u,children:n}):(0,m.jsx)(l.k2,{exact:s,className:"p-nav-side__link",to:"/".concat(o),activeClassName:"active",children:n})})}u.defaultProps={};const d=(0,p.y)((0,h.A)(e=>({mapping:e.myPuratos_dashboard.mapping,sidebar:e.myPuratos_navigation.sidebar}))(u)),g=e=>{let{title:t,items:n,onRouteChange:o}=e;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("ul",{className:"p-nav-side__list",children:[(0,m.jsx)("li",{className:"p-nav-side__title",children:t}),n.map(e=>(0,m.jsx)(d,{title:e.title,route:e.route,onRouteChange:o},e.route))]}),(0,m.jsx)("hr",{className:"p-nav-side__split"})]})};g.propTypes={title:c().string,items:c().array},g.defaultProps={items:[]};const b=g;var f=n(44087),y=n(84193),j=(n(67849),n(54950));function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class P extends o.Component{constructor(){super(...arguments),v(this,"state",{navMobileVisible:!1}),v(this,"toggleMobileNav",()=>{this.setState({navMobileVisible:!this.state.navMobileVisible})}),v(this,"onRouteChanged",()=>{const{language:e}=this.props;e&&this.onLoadGTMEvent()})}onLoadGTMEvent(){const{location:e,language:t}=this.props,n=e.pathname.slice(1);this.props.pageLoad({title:n,language:t})}componentDidMount(){this.onRouteChanged()}componentDidUpdate(e){const{location:t,mapping:n,language:o}=this.props;n===e.mapping&&t.pathname===e.location.pathname||this.onRouteChanged(),o&&o!==e.language&&this.onLoadGTMEvent()}render(){const{data:e,i18n:t}=this.props,{navMobileVisible:n}=this.state;return(0,m.jsxs)("div",{className:"p-frame__left my-puratos-navigation",children:[(0,m.jsxs)("div",{className:"p-nav-side-toggle",onClick:this.toggleMobileNav,onKeyDown:e=>"Enter"===e.key&&this.toggleMobileNav(),role:"button",tabIndex:0,children:[(0,m.jsx)("div",{className:"p-nav-side-toggle__title",children:(0,j.T)(t,"MyPuratos")}),(0,m.jsx)("div",{className:"p-nav-side-toggle__icon"+(n?" active":""),children:(0,m.jsx)("span",{className:"svg-plus-sign-black-circle"})})]}),(0,m.jsx)("div",{className:"p-nav-side js-nav-side ".concat(this.state.navMobileVisible?"is-visible":""),children:e.sections.map(e=>(0,m.jsx)(b,{title:e.title,items:e.items,onRouteChange:this.toggleMobileNav},e.type))})]})}}P.propTypes={data:c().object,location:c().object},P.defaultProps={};const x={showAlerts:f.cY,pageLoad:f.O$},O=(0,y.X)((0,p.y)((0,h.A)(e=>({data:e.myPuratos_navigation.sidebar,mapping:e.myPuratos_dashboard.mapping,language:e.myPuratos_navigation.language}),x)(P)));var w=n(38093),M=n.n(w);const N=["match","mapping"];function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const z=e=>{let{mapping:t}=e;return(0,m.jsxs)("ol",{className:"breadcrumb",children:[(0,m.jsx)("li",{children:(0,m.jsx)(l.N_,{to:"/",children:(0,r.lz)(t,r.Og.myPuratos)})}),(0,m.jsx)(p.qh,{path:"/:path",render:e=>(0,m.jsx)(C,S(S({},e),{},{mapping:t}))})]})},C=e=>{let{match:t,mapping:n}=e,i=function(e,t){if(null==e)return{};var n,o,i=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,N);return(0,m.jsx)(M(),{title:"".concat((0,r.R4)(i.mapping,t.params.path)?(0,r.R4)(i.mapping,t.params.path):"My Puratos"," - My Puratos"),children:(0,m.jsxs)(o.Fragment,{children:[t.isExact?(0,m.jsx)("li",{children:(0,r.R4)(i.mapping,t.params.path)}):(0,m.jsx)("li",{children:(0,m.jsx)(l.N_,{to:t.url||"",children:(0,r.R4)(i.mapping,t.params.path)})}),(0,m.jsx)(p.qh,{path:"".concat(t.url,"/:path"),render:e=>(0,m.jsx)(C,S(S({},e),{},{mapping:n}))})]})})};z.propTypes={},z.defaultProps={};const D=z;var k=n(44599),E=n(22178);const R={margin:"auto"};const T=(0,i.connect)(e=>({mapping:(0,E.zv)(e)}))(function(e){let{children:t,mapping:n,hideBreadcrumb:o=!1}=e;return(0,m.jsx)("div",{className:"p-frame p-bgcolor-neutral-light",children:(0,m.jsxs)(a.x,{loading:!(0,r.qi)(n),style:R,children:[(0,m.jsx)(O,{}
1),(0,m.jsxs)("div",{className:"p-frame__main",children:[!o&&(0,m.jsx)(D,{mapping:n}),(0,m.jsx)(k.A,{}),t]})]})})})}}]);
2//# sourceMappingURL=myPuratos.ee5e7d84.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.