1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8890],{98890:function(e,r,t){t.r(r);var n,o,a,i=t(92809),s=t(30266),l=t(52209),u=t(809),c=t.n(u),d=t(67294),m=t(42283),p=t(57333),f=t(28216),h=t(29654),x=t(29163),b=t(77598),g=t(20471),y=t(60143),j=t(3939),v=t(25780),Z=t(31684),q=t(68222),w=t(84386),O=t(42928),E=t(48803),R=t(88315),F=t(74800),P=t(70916),D=t(85893);function k(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function T(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?k(Object(t),!0).forEach((function(r){(0,i.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var _=x.ZP.div.withConfig({displayName:"PriceRequestPopup__Wrapper",componentId:"sc-1ba91ts-0"})(["position:absolute;bottom:0;display:flex;flex-direction:column;width:100%;max-height:100%;background-color:",";padding:56px ",";"," h3{margin-bottom:30px;font-family:",";",";line-height:1.2;font-weight:800;","}& > button{",";}","{overflow-y:auto;&::-webkit-scrollbar{display:none;}-ms-overflow-style:none;scrollbar-width:none;}","{margin-bottom:10px;&:last-of-type{margin-bottom:20px;}","}"],R.O9.white,(0,E.T5)(1),(0,E.eq)("xl")(n||(n=(0,l.Z)(["\n position: relative;\n padding-top: 60px;\n padding-bottom: 67px;\n width: 720px;\n "]))),R.Rq.mont,(0,E.LZ)(18,24,24),(0,E.eq)("lg")(o||(o=(0,l.Z)(["\n margin-bottom: 40px;\n "]))),P.Z,b.Z,j.Z,(0,E.eq)("lg")(a||(a=(0,l.Z)(["\n margin-bottom: 20px;\n\n &:last-of-type {\n margin-bottom: 40px;\n }\n "])))),C=(0,f.$j)((function(e){return{modalForm:e.modalForm}}),{modalFormRequest:O.O2,modalFormDispatch:O.ve,modalFormClear:O.p0});r.default=C((function(e){var r=e.productId,t=e.onCloseModal,n=e.modalForm,o=e.modalFormRequest,a=e.modalFormDispatch,i=e.modalFormClear,l=n.modalForm,u=l.formData,f=l.statusRequest,x=l.messageRequest,O=l.statusDispatch,E=l.messageDispatch,R=(0,m.cI)({mode:"onChange"}),P=R.handleSubmit,k=R.register,C=R.control,S=R.watch,z=R.errors,A=R.formState,I=S();(0,d.useEffect)((function(){o("priceRequest")}),[]);var H=function(){var e=(0,s.Z)(c().mark((function e(r){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a("priceRequest",r);case 1:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();return(0,D.jsxs)(_,{children:[(0,D.jsx)("button",{onClick:function(){t(),i()}}),u&&(0,D.jsx)("h3",{children:u.form.formTitle}),"success"===f&&"success"!==O&&u?(0,D.jsxs)(b.Z,{onSubmit:P(H),children:[u.fields.map((function(e){var t;return e.isHidden?e.isHidden?(0,D.jsx)("input",{name:e.name,type:e.isHidden?"hidden":e.type,value:r,ref:k},e.id):void 0:(0,D.jsxs)(j.Z,{children:[(0,D.jsxs)(q.Z,{fillInput:!(null===(t=I[e.name])||void 0===t||!t.length),error:!!z[e.name]||!!E[e.name],children:["alphabetical"===e.validationType&&(0,D.jsx)("input",{name:e.name,type:e.type,ref:k({required:e.requiredError?"".concat(e.requiredError):e.isRequired,pattern:{value:/^[a-zA-Z\u0430-\u044f\u0410-\u042f -]+$/,message:"".concat(e.invalidError)},maxLength:{value:80,message:"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u2014 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 80"}})}),"email"===e.validationType&&(0,D.jsx)("input",{name:e.name,type:e.type,ref:k({required:e.requiredError?"".concat(e.requiredError):e.isRequired,pattern:{value:/^([a-zA-Z\-0-9]*|([a-zA-Z]([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*))|(".+"))@(([a-zA-Z0-9]+\.)+[a-zA-Z\-0-9]{2,})$/,message:"".concat(e.invalidError)}})}),"ru_phone"===e.validationType&&(0,D.jsx)(m.Qr,{name:e.name,control:C,as:(0,D.jsx)(p.Z,T({},F.Z.numberFormatOptions)),rules:{required:e.requiredError?"".concat(e.requiredError):e.isRequired},defaultValue:""}),!e.validationType&&"text"===e.type&&(0,D.jsx)("input",{name:e.name,type:e.type,ref:k({required:e.requiredError?"".concat(e.requiredError):e.isRequired,maxLength:{value:80,message:"\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u2014 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 80"}})}),(0,D.jsx)(Z.Z,{children:e.title})]}
1),z[e.name]&&(0,D.jsx)(v.Z,{children:z[e.name].message}),E[e.name]&&(0,D.jsx)(v.Z,{children:E[e.name]})]},e.id)})),(0,D.jsx)(w.Z,{textButton:u.form.buttonText}),(0,D.jsx)(g.Z,{disabled:!A.isDirty||!A.isValid,children:"loading"===O?(0,D.jsx)(h.Z,{}):u.form.buttonText})]}):x&&(0,D.jsx)(y.Z,{children:x}),"success"===O&&E&&(0,D.jsx)(y.Z,{dangerouslySetInnerHTML:{__html:E}})]})}))}}]);
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.