PageSourceSearch

https://www.puratos.hu/etc.clientlibs/settings/wcm/designs/puratos…/resources/static/js/1350.4b56843e.chunk.js

js puratos.hu collected 2026-09-26 16:26:00 UTC 12,003 bytes, 3 lines download raw bytes

1/*! For license information please see 1350.4b56843e.chunk.js.LICENSE.txt */
2(self.webpackChunkpuratos_react=self.webpackChunkpuratos_react||[]).push([[1350],{6010(e,t,l){"use strict";l.d(t,{S:()=>r,z:()=>i});l(96540);var a=l(74848);const s={display:"initial"},i={sm:"-13",md:"",lg:"-15"},r=e=>{let{id:t,className:l,label:r="",selected:n,onChange:o,size:c=i.md,centered:d,list:u=!1,hideMobile:p=!1,hideDesktop:m=!1,disabled:h=!1}=e;return(0,a.jsxs)("div",{className:"p-checkbox"+c+(d?" center":"")+(u?" list":"")+(p?" important-hide-mobile":"")+(m?" important-hide-desktop":"")+(h?" disabled":""),children:[(0,a.jsx)("input",{id:t,type:"checkbox",className:l,checked:n,onChange:o,disabled:h}),(0,a.jsx)("label",{htmlFor:t,className:"p-cursor-pointer",style:s,children:r})]})}},36173(e,t,l){"use strict";l.d(t,{A:()=>o});l(96540);var a=l(5556),s=l.n(a),i=l(67849),r=l(74848);const n=e=>{let{amount:t,label:l,pluralLabel:a}=e;const s=(0,i.GO)()(1!==t?a:l).replace("{0}","<span>"+t+"</span>");return(0,r.jsx)("h3",{className:"p-section-result-counter p-margin-none",dangerouslySetInnerHTML:{__html:s}})};n.propTypes={amount:s().number,label:s().string,pluralLabel:s().string},n.defaultProps={pluralLabel:"{0} items",label:"{0} item",amount:0};const o=n},65587(e,t,l){"use strict";l.d(t,{P:()=>r});var a=l(96540),s=l(67849),i=l(74848);function r(e){var t;let{paymentInformation:l,showTitle:r=!0,orderNumber:n}=e;const o=(0,s.GO)();return(0,i.jsxs)(a.Fragment,{children:[r||n?(0,i.jsx)("div",{className:"p-flex p-flex-wrap p-margin-bottom-sm",children:(0,i.jsx)("h5",{children:o("{0} {1} payable on {2}","Order",n,l.paymentMethod)})}):null,(0,i.jsx)("div",{className:"table-responsive p-border-none",children:(0,i.jsx)("table",{className:"table table-condensed p-small p-margin-none no-header multibanco",children:(0,i.jsx)("tbody",{children:null===l||void 0===l||null===(t=l.paymentInformationList)||void 0===t?void 0:t.map((e,t)=>(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{className:"p-padding-right-md text-black-75 p-xsmall",children:o(e.label)}),(0,i.jsx)("td",{className:"p-padding-right-md text-black-75 p-xsmall"+(e.value.startsWith("http")?"text-overflow":""),children:e.value.startsWith("http")?(0,i.jsx)("a",{href:e.value,children:e.value}):e.value})]},t))})})})]})}},54170(e,t,l){"use strict";l.d(t,{A:()=>n});var a=l(96540),s=l(67849),i=l(28208),r=l(74848);const n=(0,i.G)((0,s.lI)(function(e){let{label:t,initialValue:l,onChange:s,translate:i,placeholder:n,reset:o}=e;const[c,d]=a.useState(""),[u,p]=a.useState("");return a.useEffect(()=>d(l),[l]),(0,r.jsxs)("div",{className:"form-group",children:[(0,r.jsx)("label",{className:"form-label",children:t&&i(t)}),(0,r.jsxs)("form",{onSubmit:e=>((e,t,l)=>{e&&e.preventDefault&&e.preventDefault(),l(t)})(e,c,s),className:"p-margin-none dropdown",children:[(0,r.jsx)("input",{type:"text",className:"form-control form-icon round",ref:e=>p(e),placeholder:n&&i(n),onInput:e=>((e,t)=>{e.persist(),t(e&&e.target&&e.target.value||"")})(e,d)}),(0,r.jsxs)("button",{type:"submit",className:"p-filter-form__btn",children:[(0,r.jsx)("span",{className:"sr-only",children:i("Search")}),(0,r.jsx)("span",{className:"svg-search-black-circle"})]})]}),(0,r.jsx)("a",{className:"p-filter-toolbar__reset",onClick:()=>((e,t,l)=>{t&&(t.value=""),e&&e(""),l()})(d,u,o),children:(0,r.jsx)("span",{children:i("Reset search")})})]})}))},68797(e,t,l){"use strict";l.d(t,{W:()=>p});var a=l(96540),s=l(5556),i=l(19115),r=l(82960),n=l(67849),o=l(88481),c=l(73354),d=l(74848);function u(e){let{children:t,translate:l}=e;const[s,i]=a.useState(!1);return(0,d.jsx)("div",{className:"row",children:(0,d.jsxs)("div",{className:"col-sm-12",children:[(0,d.jsx)("div",{className:"collapse p-filter-toolbar"+(s?" in":""),children:t}),(0,d.jsx)("div",{className:"p-filter-toggle p-margin-bottom-md",children:(0,d.jsxs)("div",{className:"p-flex p-flex-align-center",onClick:()=>i(!s),children:[(0,d.jsx)("span",{className:"p-filter-toggle__icon svg-reset-red-circle"}),(0,d.jsx)("span",{className:"p-filter-toggle__text",children:l("filtersText")})]})})]})})}u.propTypes={hasFiltering:s.bool,translate:s.func.isRequired,filters:s.object};const p=(0,r.Zz)(n.lI,(0,i.connect)((e,t)=>({hasFiltering:(0,c.RI)((0,o.vD)(e,t.filterId))})))(u);p.FilterSection=e=>{let{children:t}=e;return(0,d.jsx)("div",{className:"p-filter-toolbar__items",children:t})},p.SearchSection=e=>{let{children:t}=e;return(0,d.jsx)("div",{className:"p-filter-toolbar__search",children:t})}},39501(e,t,l){"use strict";l.d(t,{A:()=>O});var a=l(96540),s=l(5556),i=l.n(s),r=l(90249),n=l(84193),o=l(74848);const c=e=>{let{activePage:t,pageClickHandler:l,amountOfPages:a,amountToShow:s}=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&&l(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:()=>l(1),children:"1"})}),(0,o.jsx)("li",{className:t-(s-1)/2>2?"":"hide",children:(0,o.jsx)("a",{href:"#",onClick:()=>l(t-3),children:"..."})}),Array(Math.ceil(a-2<0?0:a-2)).fill().map((e,a)=>(0,o.jsx)("li",{className:(t===a+2?"active":"")+(t-(s-1)/2>a+2||t+(s-1)/2<a+2?"hide":""),children:(0,o.jsx)("a",{href:"#",onClick:()=>l(a+2),children:a+2})},a+1)),(0,o.jsx)("li",{className:a-t-(s-1)/2>=2?"":"hide",children:(0,o.jsx)("a",{href:"#",onClick:()=>l(t+3),children:"..."})}),(0,o.jsx)("li",{className:(t===Math.ceil(a)?"active ":"")+(a<=1?"hide":""),children:(0,o.jsx)("a",{href:"#",onClick:()=>l(Math.ceil(a)),children:Math.ceil(a)})}),(0,o.jsx)("li",{className:a<=t?"disabled":"",children:(0,o.jsx)("a",{href:"#","aria-label":"Next",onClick:()=>!(a<=t)&&l(t+1),children:(0,o.jsx)("span",{"aria-hidden":"true"})})})]})};c.propTypes={activePage:i().number,amountOfPages:i().number,pageClickHandler:i().func,amountToShow:i().number},c.defaultProps={activePage:1,amountOfPages:1,amountToShow:5};const d=(0,n.X)(c);var u=l(36173),p=l(37961),m=l(19115),h=l(746),x=l(24518),v=l(68797),f=l(9496),b=l(29521),g=l(88481),j=l(99507),N=l(93390),y=l(67849),P=l(13956),k=l(17477),C=l(6010);const w=e=>{let{total:t,payInvoices:l,disabled:a,blockButton:s,mobileSticky:i,selectAll:r,isAllSelected:n}=e;const c=(0,y.GO)(),d=(0,k.a)("1000px");return(0,o.jsxs)("div",{className:"p-flex p-flex-align-center p-filtered-list ".concat(i&&d?"mobile-section sticky p-flex-justify-content-space-between p-flex-wrap":"p-flex-justify-content-end"," ").concat(d&&s?"top-section":""),style:i&&d?{display:"none"}:null,children:[(0,o.jsx)("div",{className:"p-flex p-filtered-list-amount ".concat(i&&d?"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:l,disabled:a,block:d&&!i,children:c(d?"Pay invoices":"Pay")}),d&&s&&(0,o.jsx)("div",{className:"p-flex p-filtered-list-amount p-margin-top-sm ".concat(i?"p-margin-bottom-xs":""),children:(0,o.jsx)(C.S,{id:"selectAllMobile",selected:n,onChange:r,label:c("Select all"),centered:!0},"selectAllMobile")}
2)]})};var S=l(32809);function A(e,t,l){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var l=e[Symbol.toPrimitive];if(void 0!==l){var a=l.call(e,t||"default");if("object"!=typeof a)return a;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:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}class R extends a.Component{constructor(){super(...arguments),A(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:l,activePage:s,children:i,loading:n,total:c,allowedRoles:m,itemsPerPage:h,notAllowedRoles:f,eCommerceRequired:g,activeFilters:j,className:y,context:P,listHeader:k,listFooter:C,invoicesAmount:A,payButtonDisabled:R,payInvoices:_,onlinePaymentEnabled:O=!1,selectAll:T,isAllSelected:I,skeletonType:M=S.N.PRODUCTS}=this.props,F="invoices"===P||"orders"===P;return(0,o.jsxs)(b.E.Provider,{value:P,children:[(0,o.jsx)("div",{className:"row",children:(0,o.jsx)(p.d,{roles:m,eCommerceRequired:g,children:(0,o.jsx)("div",{className:"col-xs-12",children:a.Children.map(i,e=>e.type===v.W?e:null)})})}),(0,o.jsx)(x.E,{loading:n,messages:t,total:c,allowedRoles:m,activeFilters:j,notAllowedRoles:f,eCommerceRequired:g,children:(0,o.jsxs)("div",{className:"row "+y,children:[(0,o.jsxs)("div",{className:"col-xs-12 p-flex p-justify-space-between p-flex-align-end ".concat(F?"invoice-filter":""),children:[(0,o.jsx)(u.A,{amount:c}),F&&O?(0,o.jsx)(w,{total:l,payInvoices:_,disabled:R,blockButton:!0,selectAll:T,isAllSelected:I}):null]}),(0,o.jsxs)("div",{className:"col-xs-12",children:[(0,o.jsx)(N.XI,{children:(0,o.jsx)(r.x,{listModel:t,i18n:e,loading:n,activePage:s,amountOfItems:h,resultsHeader:k,listFooter:C,skeletonType:M,children:a.Children.map(i,(e,t)=>e.type!==v.W?e:null)})}),F&&O?(0,o.jsx)(w,{total:l,payInvoices:_,disabled:R,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)(d,{activePage:s,amountOfPages:Math.ceil(c/h),pageClickHandler:this.handlePageClick})})})})]})]})})]})}}R.propTypes={loading:i().bool,itemsPerPage:i().number,context:i().string,activePage:i().number.isRequired,activeFilters:i().object.isRequired,className:i().string},R.defaultProps={loading:!0,allowedRoles:[h.ai.puratosCustomerValidated,h.ai.puratosCustomerNoAuth],notAllowedRoles:[h.ai.puratosNoCustomer,h.ai.puratosCustomerUnvalidated],activeFilters:{},itemsPerPage:f.GL,className:""};const _={updateActivePage:j.fl},O=(0,m.connect)((e,t)=>({i18n:e.myPuratos_i18n.i18n,activePage:(0,g.WE)(e,t.context),activeFilters:(0,g.vD)(e,t.context)}),_)(R)},26436(e,t,l){"use strict";l.d(t,{p:()=>h});var a=l(96540),s=l(89029),i=l(19115),r=l(56694),n=l(46797),o=l(62274),c=l(45037),d=l(67849),u=l(22178),p=l(65587),m=l(74848);const h="multibanco-order-modal";o.P.modals[h]=function(e){let{payload:t}=e;const l=(0,i.useDispatch)(),o=(0,d.GO)(),h=a.useCallback(()=>l((0,c.Oo)()),[l,c.Oo]),x=(0,i.useSelector)(e=>(0,u.Zl)(e));return(0,a.useEffect)(()=>{t.orderNumber&&l((0,r.RQ)(t.orderNumber)),t.invoiceNumber&&l((0,n.q5)(t.invoiceNumber))},[t.orderNumber,t.invoiceNumber]),(0,m.jsx)(s.a,{size:s.a.sizes.LG,title:o("{0} {1} payable on {2}",t.type,t.orderNumber||t.invoiceNumber,null===x||void 0===x?void 0:x.paymentMethod),closeModal:h,children:(0,m.jsx)(s.a.Body,{className:"well p-modal__well",children:(0,m.jsx)(p.P,{paymentInformation:x,showTitle:!1})})})}},21978(e,t,l){"use strict";l.d(t,{c:()=>r});var a=l(74692),s=l.n(a);const i="href",r=e=>{var t;const l=s()(".p-navbar--lang-dropdown")[0];l&&(null===(t=s()(l).children())||void 0===t||t.each(function(){const t=s()(this).attr(i),l=new RegExp("/mypuratos/?(.*)");l.test(t)&&null!==t&&void 0!==t&&t.endsWith(!!t.match(l)&&t.match(l)[0])&&s()(this).attr(i,t.replace(t.match(l)[0],"".concat("/mypuratos","/").concat(e)))}))}},46942(e,t){var l;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var l=arguments[t];l&&(e=r(e,i(l)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var l in e)a.call(e,l)&&e[l]&&(t=r(t,l));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(l=function(){return s}
2.apply(t,[]))||(e.exports=l)}()}}]);
3//# sourceMappingURL=1350.4b56843e.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.