PageSourceSearch

https://www.puratos.co.jp/etc.clientlibs/settings/wcm/designs/pura…/js/myPuratos-recipes.c6c2a370.chunk.js

js puratos.co.jp collected 2026-10-05 18:48:02 UTC 21,023 bytes, 3 lines download raw bytes

1/*! For license information please see myPuratos-recipes.c6c2a370.chunk.js.LICENSE.txt */
2(self.webpackChunkpuratos_react=self.webpackChunkpuratos_react||[]).push([[8729],{6010(e,t,r){"use strict";r.d(t,{S:()=>l,z:()=>a});r(96540);var s=r(74848);const i={display:"initial"},a={sm:"-13",md:"",lg:"-15"},l=e=>{let{id:t,className:r,label:l="",selected:n,onChange:o,size:c=a.md,centered:p,list:d=!1,hideMobile:u=!1,hideDesktop:m=!1,disabled:h=!1}=e;return(0,s.jsxs)("div",{className:"p-checkbox"+c+(p?" center":"")+(d?" list":"")+(u?" important-hide-mobile":"")+(m?" important-hide-desktop":"")+(h?" disabled":""),children:[(0,s.jsx)("input",{id:t,type:"checkbox",className:r,checked:n,onChange:o,disabled:h}),(0,s.jsx)("label",{htmlFor:t,className:"p-cursor-pointer",style:i,children:l})]})}},36173(e,t,r){"use strict";r.d(t,{A:()=>o});r(96540);var s=r(5556),i=r.n(s),a=r(67849),l=r(74848);const n=e=>{let{amount:t,label:r,pluralLabel:s}=e;const i=(0,a.GO)()(1!==t?s:r).replace("{0}","<span>"+t+"</span>");return(0,l.jsx)("h3",{className:"p-section-result-counter p-margin-none",dangerouslySetInnerHTML:{__html:i}})};n.propTypes={amount:i().number,label:i().string,pluralLabel:i().string},n.defaultProps={pluralLabel:"{0} items",label:"{0} item",amount:0};const o=n},54170(e,t,r){"use strict";r.d(t,{A:()=>n});var s=r(96540),i=r(67849),a=r(28208),l=r(74848);const n=(0,a.G)((0,i.lI)(function(e){let{label:t,initialValue:r,onChange:i,translate:a,placeholder:n,reset:o}=e;const[c,p]=s.useState(""),[d,u]=s.useState("");return s.useEffect(()=>p(r),[r]),(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{className:"form-label",children:t&&a(t)}),(0,l.jsxs)("form",{onSubmit:e=>((e,t,r)=>{e&&e.preventDefault&&e.preventDefault(),r(t)})(e,c,i),className:"p-margin-none dropdown",children:[(0,l.jsx)("input",{type:"text",className:"form-control form-icon round",ref:e=>u(e),placeholder:n&&a(n),onInput:e=>((e,t)=>{e.persist(),t(e&&e.target&&e.target.value||"")})(e,p)}),(0,l.jsxs)("button",{type:"submit",className:"p-filter-form__btn",children:[(0,l.jsx)("span",{className:"sr-only",children:a("Search")}),(0,l.jsx)("span",{className:"svg-search-black-circle"})]})]}),(0,l.jsx)("a",{className:"p-filter-toolbar__reset",onClick:()=>((e,t,r)=>{t&&(t.value=""),e&&e(""),r()})(p,d,o),children:(0,l.jsx)("span",{children:a("Reset search")})})]})}))},68797(e,t,r){"use strict";r.d(t,{W:()=>u});var s=r(96540),i=r(5556),a=r(19115),l=r(82960),n=r(67849),o=r(88481),c=r(73354),p=r(74848);function d(e){let{children:t,translate:r}=e;const[i,a]=s.useState(!1);return(0,p.jsx)("div",{className:"row",children:(0,p.jsxs)("div",{className:"col-sm-12",children:[(0,p.jsx)("div",{className:"collapse p-filter-toolbar"+(i?" in":""),children:t}),(0,p.jsx)("div",{className:"p-filter-toggle p-margin-bottom-md",children:(0,p.jsxs)("div",{className:"p-flex p-flex-align-center",onClick:()=>a(!i),children:[(0,p.jsx)("span",{className:"p-filter-toggle__icon svg-reset-red-circle"}),(0,p.jsx)("span",{className:"p-filter-toggle__text",children:r("filtersText")})]})})]})})}d.propTypes={hasFiltering:i.bool,translate:i.func.isRequired,filters:i.object};const u=(0,l.Zz)(n.lI,(0,a.connect)((e,t)=>({hasFiltering:(0,c.RI)((0,o.vD)(e,t.filterId))})))(d);u.FilterSection=e=>{let{children:t}=e;return(0,p.jsx)("div",{className:"p-filter-toolbar__items",children:t})},u.SearchSection=e=>{let{children:t}=e;return(0,p.jsx)("div",{className:"p-filter-toolbar__search",children:t})}},39501(e,t,r){"use strict";r.d(t,{A:()=>F});var s=r(96540),i=r(5556),a=r.n(i),l=r(90249),n=r(84193),o=r(74848);const c=e=>{let{activePage:t,pageClickHandler:r,amountOfPages:s,amountToShow:i}=e;return(0,o.jsxs)("ul",{className:"pagination pagination-sm",children:[(0,o.jsx)("li",{className:1===t?"disabled":"",children:(0,o.jsx)("a",{href:"#","aria-label":"Previous",onClick:()=>1!==t&&r(t-1),children:(0,o.jsx)("span",{"aria-hidden":"true"})})}),(0,o.jsx)("li",{className:1===t?"active":"",children:(0,o.jsx)("a",{href:"#",onClick:()=>r(1),children:"1"})}),(0,o.jsx)("li",{className:t-(i-1)/2>2?"":"hide",children:(0,o.jsx)("a",{href:"#",onClick:()=>r(t-3),children:"..."})}),Array(Math.ceil(s-2<0?0:s-2)).fill().map((e,s)=>(0,o.jsx)("li",{className:(t===s+2?"active":"")+(t-(i-1)/2>s+2||t+(i-1)/2<s+2?"hide":""),children:(0,o.jsx)("a",{href:"#",onClick:()=>r(s+2),children:s+2})},s+1)),(0,o.jsx)("li",{className:s-t-(i-1)/2>=2?"":"hide",children:(0,o.jsx)("a",{href:"#",onClick:()=>r(t+3),children:"..."})}),(0,o.jsx)("li",{className:(t===Math.ceil(s)?"active ":"")+(s<=1?"hide":""),children:(0,o.jsx)("a",{href:"#",onClick:()=>r(Math.ceil(s)),children:Math.ceil(s)})}),(0,o.jsx)("li",{className:s<=t?"disabled":"",children:(0,o.jsx)("a",{href:"#","aria-label":"Next",onClick:()=>!(s<=t)&&r(t+1),children:(0,o.jsx)("span",{"aria-hidden":"true"})})})]})};c.propTypes={activePage:a().number,amountOfPages:a().number,pageClickHandler:a().func,amountToShow:a().number},c.defaultProps={activePage:1,amountOfPages:1,amountToShow:5};const p=(0,n.X)(c);var d=r(36173),u=r(37961),m=r(19115),h=r(746),g=r(24518),f=r(68797),v=r(9496),b=r(29521),x=r(88481),j=r(99507),y=r(93390),N=r(67849),P=r(13956),R=r(17477),w=r(6010);const C=e=>{let{total:t,payInvoices:r,disabled:s,blockButton:i,mobileSticky:a,selectAll:l,isAllSelected:n}=e;const c=(0,N.GO)(),p=(0,R.a)("1000px");return(0,o.jsxs)("div",{className:"p-flex p-flex-align-center p-filtered-list ".concat(a&&p?"mobile-section sticky p-flex-justify-content-space-between p-flex-wrap":"p-flex-justify-content-end"," ").concat(p&&i?"top-section":""),style:a&&p?{display:"none"}:null,children:[(0,o.jsx)("div",{className:"p-flex p-filtered-list-amount ".concat(a&&p?"p-margin-top-xs p-margin-bottom-xs":""),children:(0,o.jsx)("p",{className:"p-filtered-list-total",children:c("Total selected: {0}",t)})}),(0,o.jsx)(P.$,{color:"primary",onClick:r,disabled:s,block:p&&!a,children:c(p?"Pay invoices":"Pay")}),p&&i&&(0,o.jsx)("div",{className:"p-flex p-filtered-list-amount p-margin-top-sm ".concat(a?"p-margin-bottom-xs":""),children:(0,o.jsx)(w.S,{id:"selectAllMobile",selected:n,onChange:l,label:c("Select all"),centered:!0},"selectAllMobile")}
2)]})};var O=r(32809);function _(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class S extends s.Component{constructor(){super(...arguments),_(this,"handlePageClick",e=>this.props.updateActivePage({context:this.props.context,value:e}))}shouldRenderPagination(e,t){return!(!e||0===e||!t||0===t)}render(){const{i18n:e,aemResource:t,totalAmount:r,activePage:i,children:a,loading:n,total:c,allowedRoles:m,itemsPerPage:h,notAllowedRoles:v,eCommerceRequired:x,activeFilters:j,className:N,context:P,listHeader:R,listFooter:w,invoicesAmount:_,payButtonDisabled:S,payInvoices:k,onlinePaymentEnabled:F=!1,selectAll:T,isAllSelected:I,skeletonType:A=O.N.PRODUCTS}=this.props,D="invoices"===P||"orders"===P;return(0,o.jsxs)(b.E.Provider,{value:P,children:[(0,o.jsx)("div",{className:"row",children:(0,o.jsx)(u.d,{roles:m,eCommerceRequired:x,children:(0,o.jsx)("div",{className:"col-xs-12",children:s.Children.map(a,e=>e.type===f.W?e:null)})})}),(0,o.jsx)(g.E,{loading:n,messages:t,total:c,allowedRoles:m,activeFilters:j,notAllowedRoles:v,eCommerceRequired:x,children:(0,o.jsxs)("div",{className:"row "+N,children:[(0,o.jsxs)("div",{className:"col-xs-12 p-flex p-justify-space-between p-flex-align-end ".concat(D?"invoice-filter":""),children:[(0,o.jsx)(d.A,{amount:c}),D&&F?(0,o.jsx)(C,{total:r,payInvoices:k,disabled:S,blockButton:!0,selectAll:T,isAllSelected:I}):null]}),(0,o.jsxs)("div",{className:"col-xs-12",children:[(0,o.jsx)(y.XI,{children:(0,o.jsx)(l.x,{listModel:t,i18n:e,loading:n,activePage:i,amountOfItems:h,resultsHeader:R,listFooter:w,skeletonType:A,children:s.Children.map(a,(e,t)=>e.type!==f.W?e:null)})}),D&&F?(0,o.jsx)(C,{total:r,payInvoices:k,disabled:S,mobileSticky:!0}):null,(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-sm-12",children:(0,o.jsx)("nav",{"aria-label":"Page navigation",className:"p-flex p-justify-space-around",children:this.shouldRenderPagination(h,c)&&(0,o.jsx)(p,{activePage:i,amountOfPages:Math.ceil(c/h),pageClickHandler:this.handlePageClick})})})})]})]})})]})}}S.propTypes={loading:a().bool,itemsPerPage:a().number,context:a().string,activePage:a().number.isRequired,activeFilters:a().object.isRequired,className:a().string},S.defaultProps={loading:!0,allowedRoles:[h.ai.puratosCustomerValidated,h.ai.puratosCustomerNoAuth],notAllowedRoles:[h.ai.puratosNoCustomer,h.ai.puratosCustomerUnvalidated],activeFilters:{},itemsPerPage:v.GL,className:""};const k={updateActivePage:j.fl},F=(0,m.connect)((e,t)=>({i18n:e.myPuratos_i18n.i18n,activePage:(0,x.WE)(e,t.context),activeFilters:(0,x.vD)(e,t.context)}),k)(S)},40249(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>K});var s=r(96540),i=r(19115),a=r(39501),l=r(48679),n=r(45384),o=r(54950),c=r(93390),p=r(99918),d=r(74848);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class g extends s.Component{constructor(){super(...arguments),h(this,"state",{favorited:!1}),h(this,"toggleRecipe",e=>{const{model:t}=this.props;this.props.toggleRecipe({recipeId:t.recipeId,url:t.recipeUrl,active:e}),this.setState({favorited:!this.state.favorited})})}render(){const{model:e,i18n:t}=this.props;return(0,d.jsxs)(c.XI.Row,{className:"recipe-row",children:[(0,d.jsx)(p.TX,{valign:"center",align:"center",size:p.Dq._100,href:e.recipeUrl,product:m(m({},e),{},{productUrl:e.recipeUrl}),mainClassName:"p-align-self-center",className:"image-object-fit__cover"}),(0,d.jsx)(c.XI.Cell,{valign:"center",size:p.Dq._equalLg,className:"recipe-caption",children:(0,d.jsxs)("div",{children:[(0,d.jsxs)("h4",{className:"p-margin-bottom-xs",children:[(0,d.jsx)("a",{href:e.recipeUrl,children:e.title}),(0,d.jsx)("span",{className:"badge badge-success",children:e.tag})]}),(0,d.jsx)("p",{children:e.tags&&e.tags.map((e,t)=>(0,d.jsx)("span",{className:"label label-default p-margin-bottom-xs p-text-color-white text-lowercase",children:e.tagLabel},t))}),(0,d.jsx)("p",{className:"text-small p-margin-bottom-none",children:e.description}),(0,d.jsx)("a",{href:e.recipeUrl,className:"p-link-thin",children:(0,o.T)(t,"Read more")})]})}),(0,d.jsx)(c.XI.Cell,{valign:"center",align:"center",size:p.Dq._100,className:"recipe-fav-cell",children:(0,d.jsx)("span",{className:"btn-fav p-margin-auto "+(this.state.favorited?"":"btn-fav-empty"),onClick:()=>this.toggleRecipe(!0),onKeyDown:e=>"Enter"===e.key&&this.toggleRecipe(!0),role:"button",tabIndex:0})})]})}}g.propTypes={},g.defaultProps={};const f={toggleRecipe:n.bs},v=(0,i.connect)(e=>({i18n:e.myPuratos_i18n.i18n}),f)(g);var b=r(29413);class x extends s.Component{render(){const{model:e,recipes:t}=this.props;return null==t||0===(null===t||void 0===t?void 0:t.length)?null:(0,d.jsxs)(c.XI,{children:[(0,d.jsx)("div",{className:"hide-mobile thumbnail thumbnail-nooverflow col-12",children:(0,d.jsx)("div",{className:"table-group",children:null===t||void 0===t?void 0:t.slice(0,e.amountOfItems).map((t,r)=>(0,d.jsx)(v,{model:t,link:e.link},r))})}),(0,d.jsx)("div",{className:"hide-desktop",children:(0,d.jsx)("div",{className:"table-group",children:null===t||void 0===t?void 0:t.slice(0,e.amountOfItems).map((t,r)=>(0,d.jsx)(v,{model:t,link:e.link},r))})})]})}}const j=(0,b.$)(x);var y=r(9402),N=r(75280);class P extends s.Component{componentDidMount(){const{mapping:e}=this.props;
2this.props.fetchSuggestedRecipesModel(e)}componentDidUpdate(e){const{mapping:t,model:r}=this.props;e.mapping!==t&&this.props.fetchSuggestedRecipesModel(t),e.model!==r&&this.props.fetchSuggestedRecipes({type:r.generatedListUsing,paths:r.manually})}render(){const{model:e,recipes:t,loading:r}=this.props;return(0,d.jsx)(s.Fragment,{children:(0,d.jsx)("div",{className:"row",children:(0,d.jsxs)("div",{className:"col-xs-12",children:[(0,d.jsx)("p",{className:"text-xs",children:e.supertitle}),(0,d.jsx)("h3",{className:"p-margin-top-sm",children:e.title}),(0,d.jsx)(N.A,{message:e.emptyMessage,type:y.g.danger,show:t&&t.length<=0&&!r}),(0,d.jsx)(j,{loading:r,recipes:t,model:e})]})})})}}P.propTypes={},P.defaultProps={};const R={fetchSuggestedRecipesModel:l.g4,fetchSuggestedRecipes:l.H5},w=(0,i.connect)(e=>({mapping:e.myPuratos_dashboard.mapping,model:e.myPuratos_suggestedRecipes.aemResource,recipes:e.myPuratos_suggestedRecipes.recipes.data,loading:e.myPuratos_suggestedRecipes.loading,favoriteLoading:e.myPuratos_favoriteRecipes.loading}),R)(P);var C=r(92639),O=r(63173),_=r(5556),S=r.n(_);function k(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class F extends s.Component{constructor(){super(...arguments),k(this,"state",{favorited:!0}),k(this,"toggleRecipe",e=>{const{data:t,toggleRecipe:r,reFetchRecipes:s}=this.props;this.setState({favorited:!this.state.favorited}),sessionStorage.getItem("favoriteRecipes")&&sessionStorage.removeItem("favoriteRecipes"),r({recipeId:t.recipeId,url:t.recipeUrl,active:e}),s&&s()}),k(this,"renderFavoriteButton",e=>(0,d.jsx)(c.XI.Cell,{valign:"center",align:"center",size:p.Dq._100,className:"recipe-fav-cell "+this.props.className,children:(0,d.jsx)("span",{className:"btn-fav "+(this.state.favorited?"":"btn-fav-empty"),onClick:()=>this.toggleRecipe(e),onKeyDown:t=>"Enter"===t.key&&this.toggleRecipe(e),role:"button",tabIndex:0})})),k(this,"renderColumnValue",e=>e&&""!==e?e:"-"),k(this,"renderColumns",(e,t)=>{if(e){const r=Object.keys(e);if(r&&r.length){let i=r;return t&&(i=t.filter(e=>e&&r.includes(e.label)).map(e=>e.label)),(0,d.jsxs)(s.Fragment,{children:[i.map((t,r)=>(0,d.jsx)(p.IQ,{valign:"center",align:"center",size:p.Dq._equal,className:"p-datatable__value-cell__favorite-recipes",label:t,value:this.renderColumnValue(e[t]),hideDesktop:!1},r)),this.renderFavoriteButton(!0)]})}return this.renderFavoriteButton(!1)}return this.renderFavoriteButton(!1)})}render(){const{data:e,hidden:t,categories:r,homePageModel:s}=this.props;return t?null:(0,d.jsxs)(c.XI.Row,{className:"recipe-row",children:[(0,d.jsx)(p.TX,{valign:"center",align:"center",size:p.Dq._100,product:e,href:e.recipeUrl,fallbackImage:s.fallbackImage,showCartAmount:!0,className:"image-object-fit__cover"}),(0,d.jsx)(p.Vm,{valign:"center",size:p.Dq._equalLg,value:e.title,badgeType:"success",badgeSize:O.GS.medium,badgeValue:e.exclusive,href:e.recipeUrl,className:"p-datatable__value-cell__favorite-recipes"}),this.renderColumns(e.columns,r)]})}}F.propTypes={hidden:S().bool},F.defaultProps={hidden:!1};const T={toggleRecipe:n.bs},I=(0,i.connect)(e=>({homePageModel:e.myPuratos_aem.homepage||C.M,i18n:e.myPuratos_i18n.i18n}),T)(F);var A=r(746),D=r(68797),E=r(50536),M=r(54170),L=r(88481),q=r(99507),U=r(30673),X=r(21978),z=r(32809);function B(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,s)}return r}function V(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B(Object(r),!0).forEach(function(t){W(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B(Object(r)).forEac
2h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function W(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var s=r.call(e,t||"default");if("object"!=typeof s)return s;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class H extends s.Component{constructor(){super(...arguments),W(this,"showFiltersPresentOnData",(e,t)=>e&&e.length&&t.length?e.filter(e=>!!t.find(t=>t&&t.tags&&!!t.tags.find(t=>t&&t.tagId&&t.tagId===e.value))):t),W(this,"reFetchRecipes",()=>{setTimeout(()=>{this.props.fetchFavoriteRecipes(V({},this.props.availableFilters))},1500)})}componentDidMount(){const{mapping:e}=this.props;this.props.resetFilters(H.FILTER_CONTEXT),this.props.fetchFavoriteRecipesModel(e),this.props.fetchFavoriteRecipes(e),(0,X.c)("favorite-recipes")}componentDidUpdate(e){const{mapping:t,filter:r,availableFilters:s,model:i}=this.props;e.mapping!==t&&this.props.fetchFavoriteRecipesModel(V({mapping:t},s)),e.model!==i&&this.props.fetchFavoriteRecipes(V({},s)),e.filter&&e.filter!==r&&this.props.fetchFavoriteRecipes(V(V({countryLanguage:t.countryLanguage},s),r))}render(){const{model:e,favoriteRecipes:t,loading:r,filter:s,resetFilters:i}=this.props;return(0,d.jsxs)(U.A,{title:e.title,description:e.text,promotionalBanner:e.promotionalBanner,allowedRoles:[A.ai.puratosCustomerValidated,A.ai.puratosCustomerNoAuth,A.ai.puratosNoCustomer,A.ai.puratosCustomerUnvalidated],children:[(0,d.jsxs)(a.A,{aemResource:e,loading:r,skeletonType:z.N.FAVORITE_RECIPES,total:t.data.length,context:H.FILTER_CONTEXT,allowedRoles:[A.ai.puratosCustomerValidated,A.ai.puratosCustomerNoAuth,A.ai.puratosNoCustomer,A.ai.puratosCustomerUnvalidated],notAllowedRoles:!1,children:[(0,d.jsxs)(D.W,{children:[(0,d.jsx)(D.W.FilterSection,{children:e.filters.filter(e=>!!e).map(e=>{const r=this.showFiltersPresentOnData(e.children,t.data);return e.children.length?(0,d.jsx)(E.A,{label:e.label,id:"categories-"+e.value,type:"category",options:e.children,filter:s,disabled:r.length<1&&!this.props.filter["categories-"+e.value]},e.label):null})}),(0,d.jsx)(D.W.SearchSection,{children:(0,d.jsx)(M.A,{placeholder:"Search",id:"searchTerm",reset:()=>i(H.FILTER_CONTEXT)})})]}),t.data.map(t=>(0,d.jsx)(I,{reFetchRecipes:this.reFetchRecipes,data:t,categories:e.filters},null===t||void 0===t?void 0:t.recipeId))]}),(0,d.jsx)(w,{})]})}}W(H,"FILTER_CONTEXT","favorite-recipes");const G={fetchFavoriteRecipes:n.sE,fetchFavoriteRecipesModel:n.hP,resetFilters:q.dr},K=(0,i.connect)(e=>({favoriteRecipes:e.myPuratos_favoriteRecipes.favoriteRecipes,model:e.myPuratos_favoriteRecipes.aemResource,loading:e.myPuratos_favoriteRecipes.loading,mapping:e.myPuratos_dashboard.mapping,filter:(0,L.vD)(e,H.FILTER_CONTEXT),availableFilters:(0,L.Je)(e.myPuratos_favoriteRecipes.aemResource)}),G)(H)},92639(e,t,r){"use strict";r.d(t,{M:()=>s});const s={}},21978(e,t,r){"use strict";r.d(t,{c:()=>l});var s=r(74692),i=r.n(s);const a="href",l=e=>{var t;const r=i()(".p-navbar--lang-dropdown")[0];r&&(null===(t=i()(r).children())||void 0===t||t.each(function(){const t=i()(this).attr(a),r=new RegExp("/mypuratos/?(.*)");r.test(t)&&null!==t&&void 0!==t&&t.endsWith(!!t.match(r)&&t.match(r)[0])&&i()(this).attr(a,t.replace(t.match(r)[0],"".concat("/mypuratos","/").concat(e)))}))}},46942(e,t){var r;!function(){"use strict";var s={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=l(e,a(r)))}return e}function a(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)s.call(e,r)&&e[r]&&(t=l(t,r));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}
2.apply(t,[]))||(e.exports=r)}()}}]);
3//# sourceMappingURL=myPuratos-recipes.c6c2a370.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.