PageSourceSearch

https://www.ajprodukty.pl/assets/3303.chunk.ad3d08bd145cb1641779.js

js ajprodukty.pl collected 2026-10-02 18:48:30 UTC 8,688 bytes, 3 lines download raw bytes

1/*! For license information please see 3303.chunk.ad3d08bd145cb1641779.js.LICENSE.txt */
2"use strict";(globalThis.webpackChunknitro5_app=globalThis.webpackChunknitro5_app||[]).push([[3303],{92568(e,t,a){a.d(t,{A:()=>g});var o=a(63696),n=a(30561),l=a(10774),s=a(39879),r=a(97760),d=a(54866),c=a(13149),i=a(25927),m=a(75737),u=a(31678),p=a(38152),C=a(25194),h=a(93393);const g=(0,l.I4)(function(e){const t=(0,i.DD)(),{isLookupAddressEnabled:a}=(0,u.d)(e=>e.appShellData.countrySettings.lookupAddressSettings),{getPostalCodeAttributesBasedOnPostalCodePattern:l}=(0,h.D)({onChange:e.handleAddressChange});return o.createElement(f,null,o.createElement(y,null,o.createElement(c.H4,null,(0,n.TlY)("/Shared/Order/ContactInfo")),o.createElement(r.LB,null,o.createElement(S,{value:e.companyName,onChange:e.handleAddressChange,name:"companyName",spellCheck:!1,autoCorrect:"off",preferFramed:e.preferFramedFields,placeholder:(0,n.TlY)("/Account/Address/CompanyName"),autoComplete:"organization"}),o.createElement(S,{value:e.firstName,required:!0,onChange:e.handleAddressChange,name:"firstName",spellCheck:!1,autoCorrect:"off",preferFramed:e.preferFramedFields,placeholder:(0,n.TlY)("/Account/Address/FirstName"),autoComplete:"given-name"}),o.createElement(S,{value:e.lastName,required:!0,onChange:e.handleAddressChange,name:"lastName",spellCheck:!1,autoCorrect:"off",preferFramed:e.preferFramedFields,placeholder:(0,n.TlY)("/Account/Address/LastName"),autoComplete:"family-name"}),!!e.showPhoneField&&o.createElement(E,{required:e.isPhoneNumberMandatory,value:e.phone,onChange:e.handleAddressChange,name:"phone",preferFramed:e.preferFramedFields,placeholder:(0,n.TlY)("/Shared/Order/MobileNumber"),autoComplete:"tel"}))),o.createElement(A,null,o.createElement(c.H4,null,(0,n.TlY)("/Account/Address/Type/Postal"),t),o.createElement(r.LB,null,o.createElement(S,{value:e.address,required:!0,onChange:e.handleAddressChange,name:"address",spellCheck:!1,autoCorrect:"off",preferFramed:e.preferFramedFields,placeholder:(0,n.TlY)("/Account/Address/AddressLabel"),autoComplete:"street-address"}),a?o.createElement(v,{preferFramed:e.preferFramedFields,city:e.city,county:e.county,postalCode:e.postalCode,stateAddress:e.state,postalCodeLabel:(0,n.TlY)("/Account/Address/PostalCode"),cityLabel:(0,n.TlY)("/Account/Address/City"),stateLabel:(0,n.TlY)("/Account/Address/State"),countyLabel:(0,n.TlY)("/Account/Address/County"),onSetCity:e.onSetCity,onSetCounty:e.onSetCounty,onSetPostalCode:e.onSetPostalCode,onSetStateAddress:e.onSetStateAddress}):o.createElement(o.Fragment,null,o.createElement(k,Object.assign({},l(),{value:e.postalCode,name:"postalCode",spellCheck:!1,preferFramed:e.preferFramedFields,placeholder:(0,n.TlY)("/Account/Address/PostalCode"),autoComplete:"postal-code"})),o.createElement(S,{value:e.city,required:!0,onChange:e.handleAddressChange,name:"city",spellCheck:!1,autoCorrect:"off",preferFramed:e.preferFramedFields,placeholder:(0,n.TlY)("/Account/Address/City"),autoComplete:"address-level2"})))))}),f=l.I4.div({display:"flex",textAlign:"left",flexDirection:({isCompact:e})=>e?"column":"row",margin:{top:s.Lc.medium}}),y=l.I4.div({marginRight:({isCompact:e})=>e?0:s.Rr,width:({isCompact:e})=>e?"100%":"50%"}),A=l.I4.div({width:({isCompact:e})=>e?"100%":"50%"}),b=(0,l.I4)(r.LU,{flexShrink:1,cursor:"text"}),S=(0,l.I4)(d.Ay,b),k=(0,l.I4)(m.A,b),E=(0,l.I4)(C.A,b),v=(0,l.I4)(p.n,{width:"100%",margin:{top:s.as,left:s.Y}})},13303(e,t,a){a.d(t,{default:()=>g});var o=a(63696),n=a(10774),l=a(59095),s=a(95082),r=a(39879),d=a(13149),c=a(39372),i=a(92568),m=a(29874),u=a(75083),p=a(24763),C=a(58312),h=a(67173);const g=function(e){const{chooseCatalog:t,title:a,sendButtonText:n,privacyPolicyText:l,appearance:r,catalogSettings:d}=e,{catalogs:m,isPhoneNumberEnabled:p,isPhoneNumberMandatory:h,catalogBlockId:g}=d,{handleSubmit:k,onCatalogChange:N,handleAddressChange:x,handleOnSetCity:I,handleOnSetCounty:O,handleOnSetPostalCode:Y,handleOnSetStateAddress:L,submitState:j,sendOnceToAddress:w,chosenCatalogs:D,isResetToEditModeForLookupAddress:R,recaptchaProps:B,recaptchaRef:M}=(0,C.A)({theme:"cowab",catalogs:m,catalogBlockId:g});return o.createElement(u.RQ,{appearance:r},o.createElement(f,{onSubmit:k}
2,o.createElement(A,null,t),o.createElement(y,null,null==D?void 0:D.map(e=>o.createElement(P,{key:e.name,checked:e.selected,onChange:()=>N(e.name),label:e.name},e.name))),o.createElement(b,null,a),o.createElement(i.A,{isResetToEditModeForLookupAddress:R,showPhoneField:p,isPhoneNumberMandatory:h,firstName:w.firstName,lastName:w.lastName,companyName:w.companyName,address:w.address,postalCode:w.postalCode,city:w.city,state:w.state,county:w.county,phone:w.phone,handleAddressChange:x,onSetCity:I,onSetCounty:O,onSetPostalCode:Y,onSetStateAddress:L}),o.createElement(T,Object.assign({ref:M},B)),o.createElement(S,null,o.createElement(E,null,o.createElement(v,{state:j,as:c.Sx.Secondary,type:"submit",disabled:!(null==D?void 0:D.some(e=>e.selected)),"aria-label":n,feedbackDirection:"top"},n)),o.createElement(F,null,o.createElement(s.Ed,{html:null==l?void 0:l.html})))))},f=(0,n.I4)(m.A,{backgroundColor:e=>e.siteTheme.catalogBlock.backgroundColor,padding:{xy:r.Lc.large},textAlign:({isCompact:e})=>e?"center":"inherit"}),y=n.I4.div({display:"inline-flex",flexDirection:"column",gap:r.Lc.small}),A=(0,n.I4)(d.H3,{margin:{bottom:({isCompact:e})=>e?r.as:r.Y,top:({isCompact:e})=>e?r.EX:0}}),b=(0,n.I4)(d.H3,{margin:{top:r.ut,bottom:({isCompact:e})=>e?r.Y:r.nU}}),S=n.I4.div({margin:{top:r.Lc.large},display:"flex",flexDirection:({isCompact:e})=>e?"column":"row"}),k=(0,l.V4)(c.Ay),E=n.I4.div({width:"fit-content"}),v=(0,n.I4)(k,{margin:{x:({isCompact:e})=>e?r.EX:0},flexShrink:0}),F=n.I4.div({overflow:"auto",display:"flex",flexDirection:"column",flexGrow:1,justifyContent:"center",margin:{x:r.Lc.medium,y:({isCompact:e})=>e?r.Y:0},fontSize:r.Ni}),P=(0,n.I4)(p.S,{}),T=(0,n.I4)(h.Nk,{display:"flex",justifyContent:({isCompact:e})=>e?"center":void 0,margin:{bottom:r.Y}})},58312(e,t,a){a.d(t,{A:()=>i});var o=a(30561),n=a(67173),l=a(59095),s=a(31678),r=a(73532),d=a(63696);const c={aj:"/catalogblockaj/sendonce",cowab:"/catalogblock/sendonce"};const i=function(e){const{catalogs:t,catalogBlockId:a,theme:i}=e,[m,u]=(0,d.useState)(!1),{submitState:p,pushSubmit:C,closeFeedbackMessage:h}=(0,l.j8)(),[g,f]=(0,d.useState)({companyName:"",firstName:"",lastName:"",address:"",city:"",postalCode:"",state:"",county:"",phone:""}),[y,A]=(0,d.useState)(t),b=(0,s.d)(e=>e.currentPage),S=(0,d.useRef)(null),k=(0,d.useCallback)(e=>{h()}
2,[h]),{postJsonWithAntiForgeryTokenAndCaptcha:E,componentRef:v,captchaProps:F}=(0,n.Ay)({setValid:k,formRef:S}),P=(0,d.useCallback)(()=>{var e,t;const n=null===(t=null===(e=null==y?void 0:y.filter(e=>e.selected))||void 0===e?void 0:e.map(e=>e.name))||void 0===t?void 0:t.join(",");C(E({url:c[i],body:{address:g,catalog:n,catalogBlockId:a}}).then(e=>e.success?(f({companyName:"",firstName:"",lastName:"",address:"",city:"",postalCode:"",state:"",county:"",phone:""}),(0,r.lh)(b.trackingPageType),u(!0),e.message):Promise.reject(e.message)).catch(e=>e&&"string"==typeof e?Promise.reject(e):Promise.reject((0,o.TlY)("/Errors/GeneralErrorMessage"))))},[a,y,b.trackingPageType,E,C,g,i]),T=(0,d.useCallback)(e=>{const t=e.currentTarget,a=e.currentTarget.name;f(Object.assign(Object.assign({},g),{[a]:t.value}))},[g]),N=(0,d.useCallback)((e,t)=>{const a=e;f(e=>Object.assign(Object.assign({},e),{[a]:t})),u(!1)},[]);return{handleSubmit:P,onCatalogChange:(0,d.useCallback)(e=>{const t=[...y],a=t.find(t=>t.name===e);a&&(a.selected=!a.selected),A(t)},[y]),handleAddressChange:T,handleOnSetCity:(0,d.useCallback)(e=>{N("city",e)},[N]),handleOnSetCounty:(0,d.useCallback)(e=>{N("county",e)},[N]),handleOnSetPostalCode:(0,d.useCallback)(e=>{N("postalCode",e)},[N]),handleOnSetStateAddress:(0,d.useCallback)(e=>{N("state",e)},[N]),submitState:p,sendOnceToAddress:g,chosenCatalogs:y,isResetToEditModeForLookupAddress:m,recaptchaRef:v,recaptchaProps:F,formRef:S}}},93393(e,t,a){a.d(t,{D:()=>s});var o=a(63696),n=a(31678),l=a(45778);function s({onChange:e}){const t=(0,n.d)(e=>e.appShellData.countrySettings.regexPatterns.postalCode.validation),a=function(){const e=(0,n.d)(e=>e.appShellData.countrySettings.regexPatterns.postalCode.formatting),t=(0,n.d)(e=>e.appShellData.countrySettings.regexPatterns.postalCode.substitution);return(0,o.useMemo)(()=>e&&t?(0,l.Q)(e,t):e=>e,[e,t])}(),s=(0,o.useCallback)(()=>!"".match(t),[t]),r=(0,o.useCallback)(t=>{e&&e(t)},[e]),d=(0,o.useCallback)(()=>({pattern:t,required:s(),formatting:a,onChange:r}),[a,s,r,t]);return{regex:t||void 0,getPostalCodeAttributesBasedOnPostalCodePattern:d}}}}]);
3//# sourceMappingURL=3303.chunk.ad3d08bd145cb1641779.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.