1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,r as n}from"./framework-C-kvl5Nm.js";import{t as r}from"./printRequestPrefill-BQQUBvLx.js";import{i,n as a,r as o,t as s}from"./PersonalDataConsent-BW1xfm7z.js";var c=e(t(),1),l=n();function u({data:e,defaultProduct:t=`listovki`,formId:n,direction:u,service:d,successGoal:f}){let{sent:p,submitting:m,error:h,submit:g,reset:_}=i({formId:n,direction:u,service:d},{successGoal:f}),[v,y]=(0,c.useState)(t),[b,x]=(0,c.useState)(``),[S,C]=(0,c.useState)(``),[w,T]=(0,c.useState)(``);return(0,c.useEffect)(()=>{function t(t){let{product:n,quantity:r,size:i}=t.detail;y(n),x(r),C(i),T(`Ð ÑоÑме вÑбÑан ваÑианÑ: ${i||e.productLabel}${r?`, ÑиÑаж ${r}`:``}.`)}return window.addEventListener(r,t),()=>window.removeEventListener(r,t)},[e.productLabel]),(0,l.jsx)(`form`,{className:`calc-form print-request-form`,onSubmit:g,children:p?(0,l.jsxs)(`div`,{className:`success`,role:`status`,"aria-live":`polite`,children:[(0,l.jsx)(`span`,{"aria-hidden":`true`,children:`â`}),(0,l.jsx)(`h3`,{children:e.successTitle}),(0,l.jsx)(`p`,{children:`ÐаÑвка пÑинÑÑа. ÐÐµÐ½ÐµÐ´Ð¶ÐµÑ ÑвÑжеÑÑÑ Ñ Ð²Ð°Ð¼Ð¸ по ÑÐºÐ°Ð·Ð°Ð½Ð½Ð¾Ð¼Ñ ÐºÐ¾Ð½ÑакÑÑ.`}),(0,l.jsx)(`button`,{type:`button`,onClick:_,children:e.editLabel})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o,{}),(0,l.jsx)(`p`,{className:`print-request-prefill-status`,role:`status`,"aria-live":`polite`,children:w}),(0,l.jsxs)(`label`,{children:[e.productLabel,(0,l.jsx)(`select`,{name:`product`,value:v,onChange:e=>y(e.target.value),children:e.productOptions.map(e=>(0,l.jsx)(`option`,{value:e.value,children:e.label},e.value))})]}),(0,l.jsxs)(`label`,{children:[e.quantityLabel,(0,l.jsx)(`input`,{name:`quantity`,type:`number`,min:`1`,placeholder:e.quantityPlaceholder,value:b,onChange:e=>x(e.target.value),required:!0})]}),(0,l.jsxs)(`label`,{children:[e.sizeLabel,(0,l.jsx)(`input`,{name:`size`,type:`text`,placeholder:e.sizePlaceholder,value:S,onChange:e=>C(e.target.value)})]}),(0,l.jsxs)(`label`,{children:[e.artworkLabel,(0,l.jsx)(`select`,{name:`artwork`,defaultValue:`ready`,children:e.artworkOptions.map(e=>(0,l.jsx)(`option`,{value:e.value,children:e.label},e.value))})]}),(0,l.jsxs)(`label`,{children:[e.deadlineLabel,(0,l.jsx)(`input`,{name:`deadline`,type:`text`,placeholder:`ÐапÑимеÑ, к 20 авгÑÑÑа`})]}),(0,l.jsxs)(`label`,{children:[e.contactLabel,(0,l.jsx)(`input`,{name:`contact`,className:`ym-disable-keys`,type:`text`,placeholder:e.contactPlaceholder,required:!0})]}),(0,l.jsxs)(`label`,{className:`comment`,children:[e.commentLabel,(0,l.jsx)(`textarea`,{name:`comment`,className:`ym-disable-keys`,rows:4,placeholder:e.commentPlaceholder})]}),(0,l.jsx)(`p`,{className:`form-helper`,children:e.helperText}),h?(0,l.jsx)(a,{}):null,(0,l.jsx)(s,{}),(0,l.jsxs)(`button`,{className:`button button-accent`,type:`submit`,disabled:m,"aria-busy":m,children:[m?`ÐÑпÑавлÑемâ¦`:e.submitLabel,` `,(0,l.jsx)(`span`,{"aria-hidden":`true`,children:`â`})]})]})})}export{u as PrintRequestForm};
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.