PageSourceSearch

https://seomaker.ai/_nuxt-v2/D60V8vvE2.js

js seomaker.ai collected 2026-10-05 12:37:07 UTC 10,797 bytes, 1 lines download raw bytes

1import{n as e}from"./DQvjNzka.js";import{At as t,Ct as n,Ln as r,Mt as i,Qn as a,St as o,Xn as s,_n as c,bt as l,ei as u,ii as d,jr as f,kt as p,xr as m}from"./BPsVqlsv.js";import{_ as ee,w as h,x as g}from"./CTS8L1HF.js";import{t as te}from"./ClK-vs_A.js";import{s as _,t as v}from"./BdOgpimk.js";import{n as y}from"./C0hueuQh.js";import{t as b}from"./Pm2tYQQI.js";import{t as ne}from"./CtZgbgbi.js";import{t as re}from"./DGnxnl3w.js";var x={firstname:255,lastname:255,email:255,phone:64,webAddress:255,message:1e4},S=[`firstname`,`lastname`,`email`,`message`],C=/^[^\s@]+@[^\s@]+$/,w={"form.firstname":`firstname`,"form.lastname":`lastname`,"form.email":`email`,"form.phone":`phone`,"form.web-address":`webAddress`,"form.message":`message`,"form.regulationsCheckbox":`regulationsCheckbox`};function T(){return{firstname:``,lastname:``,email:``,phone:``,webAddress:``,message:``,regulationsCheckbox:!1}}function ie(e){let t={};for(let n of S)e[n].trim()===``&&(t[n]={key:`error-required`});!t.email&&!C.test(e.email.trim())&&(t.email={key:`error-email`});for(let[n,r]of Object.entries(x))!t[n]&&e[n].trim().length>r&&(t[n]={key:`error-too-long`,params:{max:r}});return e.regulationsCheckbox||(t.regulationsCheckbox={key:`error-accept-terms`}),t}function ae(e,t){return{firstname:e.firstname.trim(),lastname:e.lastname.trim(),email:e.email.trim(),phone:e.phone.trim(),"web-address":t===`partners`?e.webAddress.trim():``,message:e.message.trim(),regulationsCheckbox:e.regulationsCheckbox,contactType:t}}function oe(e){let t={},n=[];for(let[r,i]of Object.entries(e??{})){let e=i?.[0];if(typeof e!=`string`||e===``)continue;let a=w[r];a?t[a]={message:e}:n.push(e)}return{fields:t,unmatched:n}}var E={sendForm:`/api/contact/sendForm`};function se(e){return{sendForm:t=>e.post(E.sendForm,{form:t},{skipGlobalErrorHandler:!0})}}var ce={class:`grid grid-cols-1 gap-x-4 gap-y-3 md:grid-cols-2`},le=[`for`],ue=[`id`,`placeholder`,`aria-invalid`,`aria-describedby`],D=[`id`],O=[`for`],k=[`id`,`placeholder`,`aria-invalid`,`aria-describedby`],A=[`id`],j=[`for`],M=[`id`,`placeholder`,`aria-invalid`,`aria-describedby`],N=[`id`],P=[`for`],F=[`id`,`placeholder`,`aria-invalid`,`aria-describedby`],I=[`id`],L={key:0,class:`md:col-span-2`},R=[`for`],z=[`id`,`placeholder`,`aria-invalid`,`aria-describedby`],B=[`id`],V={class:`md:col-span-2`},de=[`for`],H=[`id`,`placeholder`,`aria-invalid`,`aria-describedby`],fe=[`id`],pe={class:`md:col-span-2`},me={class:`flex items-start gap-2`},he=[`id`,`aria-invalid`,`aria-describedby`],ge=[`for`],_e=[`id`],ve={class:`mt-4 flex justify-end`},U=`w-full rounded-ui border bg-surface px-3 py-2 text-sm text-ink-900 placeholder:text-ink-400 focus:outline-none focus:ring-2 focus:ring-brand`,W=i({__name:`MarketingContactForm`,props:{type:{default:`support`}},emits:[`sent`],setup(i,{emit:x}){let S=i,C=x,{t:w}=e(),E=y(),W=b(),G=se(v()),K=r(),q=m(T()),J=m({}),Y=m(!1);function X(e){return`${K}-${e}`}function Z(e){return`${K}-${e}-error`}function Q(e){return e?e.message??(e.key?w(e.key,e.params??{}):``):``}async function ye(){if(!Y.value&&(J.value=ie(q.value),!(Object.keys(J.value).length>0))){Y.value=!0;try{await G.sendForm(ae(q.value,S.type)),q.value=T(),W.success(w(`message-sent`)),C(`sent`)}catch(e){let t=_(e)?oe(e.validationErrors):null;if(t&&(Object.keys(t.fields).length>0||t.unmatched.length>0)){J.value=t.fields;let e=t.unmatched[0];e&&W.error(e);return}W.error(w(`send-failed`))}finally{Y.value=!1}}}function $(e){return J.value[e]?`border-error`:`border-line-strong`}return(e,r)=>{let m=te,_=re,v=ne;return c(),n(`form`,{class:`text-ink-900`,novalidate:``,onSubmit:h(ye,[`prevent`])},[l(`div`,ce,[l(`div`,null,[l(`label`,{for:X(`firstname`),class:`mb-1 ms-1 block text-xs font-bold`},d(f(w)(`name`)),9,le),a(l(`input`,{id:X(`firstname`),"onUpdate:modelValue":r[0]||=e=>f(q).firstname=e,type:`text`,autocomplete:`given-name`,placeholder:f(w)(`name`),class:u([U,$(`firstname`)]),"aria-invalid":!!f(J).firstname,"aria-describedby":f(J).firstname?Z(`firstname`):void 0},null,10,ue),[[g,f(q).firstname]]),f(J).firstname?(c(),n(`p`,{key:0,id:Z(`firstname`),class:`mt-1 ms-1 text-xs text-error`},d(Q(f(J).firstname)),9,D)):o(``,!0)]),l(`div`,null,[l(`label`,{for:X(`lastname`),class:`mb-1 ms-1 block text-xs font-bold`},d(f(w)(`surname`)),9,O),a(l(`input`,{id:X(`lastname`),"onUpdate:modelValue":r[1]||=e=>f(q).lastname=e,type:`text`,autocomplete:`family-name`,placeholder:f(w)(`surname`),class:u([U,$(`lastname`)]),"aria-invalid":!!f(J).lastname,"aria-describedby":f(J).lastname?Z(`lastname`):void 0}
1,null,10,k),[[g,f(q).lastname]]),f(J).lastname?(c(),n(`p`,{key:0,id:Z(`lastname`),class:`mt-1 ms-1 text-xs text-error`},d(Q(f(J).lastname)),9,A)):o(``,!0)]),l(`div`,null,[l(`label`,{for:X(`email`),class:`mb-1 ms-1 block text-xs font-bold`},d(f(w)(`email-address`)),9,j),a(l(`input`,{id:X(`email`),"onUpdate:modelValue":r[2]||=e=>f(q).email=e,type:`email`,autocomplete:`email`,placeholder:f(w)(`email-address`),class:u([U,$(`email`)]),"aria-invalid":!!f(J).email,"aria-describedby":f(J).email?Z(`email`):void 0},null,10,M),[[g,f(q).email]]),f(J).email?(c(),n(`p`,{key:0,id:Z(`email`),class:`mt-1 ms-1 text-xs text-error`},d(Q(f(J).email)),9,N)):o(``,!0)]),l(`div`,null,[l(`label`,{for:X(`phone`),class:`mb-1 ms-1 block text-xs font-bold`},d(f(w)(`phone`)),9,P),a(l(`input`,{id:X(`phone`),"onUpdate:modelValue":r[3]||=e=>f(q).phone=e,type:`tel`,autocomplete:`tel`,placeholder:f(w)(`phone`),class:u([U,$(`phone`)]),"aria-invalid":!!f(J).phone,"aria-describedby":f(J).phone?Z(`phone`):void 0},null,10,F),[[g,f(q).phone]]),f(J).phone?(c(),n(`p`,{key:0,id:Z(`phone`),class:`mt-1 ms-1 text-xs text-error`},d(Q(f(J).phone)),9,I)):o(``,!0)]),i.type===`partners`?(c(),n(`div`,L,[l(`label`,{for:X(`webAddress`),class:`mb-1 ms-1 block text-xs font-bold`},d(f(w)(`web-address`)),9,R),a(l(`input`,{id:X(`webAddress`),"onUpdate:modelValue":r[4]||=e=>f(q).webAddress=e,type:`text`,autocomplete:`url`,placeholder:f(w)(`web-address`),class:u([U,$(`webAddress`)]),"aria-invalid":!!f(J).webAddress,"aria-describedby":f(J).webAddress?Z(`webAddress`):void 0},null,10,z),[[g,f(q).webAddress]]),f(J).webAddress?(c(),n(`p`,{key:0,id:Z(`webAddress`),class:`mt-1 ms-1 text-xs text-error`},d(Q(f(J).webAddress)),9,B)):o(``,!0)])):o(``,!0),l(`div`,V,[l(`label`,{for:X(`message`),class:`mb-1 ms-1 block text-xs font-bold`},d(f(w)(`message`)),9,de),a(l(`textarea`,{id:X(`message`),"onUpdate:modelValue":r[5]||=e=>f(q).message=e,rows:`4`,placeholder:f(w)(`message-placeholder`),class:u([U,$(`message`),`resize-y`]),"aria-invalid":!!f(J).message,"aria-describedby":f(J).message?Z(`message`):void 0},null,10,H),[[g,f(q).message]]),f(J).message?(c(),n(`p`,{key:0,id:Z(`message`),class:`mt-1 ms-1 text-xs text-error`},d(Q(f(J).message)),9,fe)):o(``,!0)]),l(`div`,pe,[l(`div`,me,[a(l(`input`,{id:X(`regulationsCheckbox`),"onUpdate:modelValue":r[6]||=e=>f(q).regulationsCheckbox=e,type:`checkbox`,class:`mt-0.5 size-4 shrink-0 cursor-pointer rounded-ui-sm border border-line-strong accent-error focus:ring-2 focus:ring-brand focus:outline-none`,"aria-invalid":!!f(J).regulationsCheckbox,"aria-describedby":f(J).regulationsCheckbox?Z(`regulationsCheckbox`):void 0},null,8,he),[[ee,f(q).regulationsCheckbox]]),l(`label`,{for:X(`regulationsCheckbox`),class:`text-xs text-ink-700`},[p(d(f(w)(`accept-terms`))+` `,1),t(_,{text:f(w)(`opens-in-new-window`),placement:`bottom`},{default:s(()=>[t(m,{to:f(E)({name:`terms`}),target:`_blank`,rel:`noopener`,class:`text-brand-600 underline`,onClick:r[7]||=h(()=>{},[`stop`])},{default:s(()=>[p(d(f(w)(`regulations`)),1)]),_:1},8,[`to`])]),_:1},8,[`text`]),p(` `+d(f(w)(`and`))+` `,1),t(_,{text:f(w)(`opens-in-new-window`),placement:`bottom`},{default:s(()=>[t(m,{to:f(E)({name:`privacy`}),target:`_blank`,rel:`noopener`,class:`text-brand-600 underline`,onClick:r[8]||=h(()=>{},[`stop`])},{default:s(()=>[p(d(f(w)(`privacy`)),1)]),_:1},8,[`to`])]),_:1},8,[`text`])],8,ge)]),f(J).regulationsCheckbox?(c(),n(`p`,{key:0,id:Z(`regulationsCheckbox`),class:`mt-1 text-xs text-error`},d(Q(f(J).regulationsCheckbox)),9,_e)):o(``,!0)])]),l(`div`,ve,[t(v,{type:`submit`,loading:f(Y),"data-testid":`contact-form-submit`},{default:s(()=>[p(d(f(w)(`send`)),1)]),_:1},8,[`loading`])])],32)}}});function G(e){let t=e;t.__i18n=t.__i18n||[],t.__i18n.push({locale:``,resource:{pl:{name:{t:0,b:{t:2,i:[{t:3}],s:`Imię*`}},surname:{t:0,b:{t:2,i:[{t:3}],s:`Nazwisko*`}}
1,"email-address":{t:0,b:{t:2,i:[{t:3}],s:`Adres email*`}},phone:{t:0,b:{t:2,i:[{t:3}],s:`Numer telefonu`}},"web-address":{t:0,b:{t:2,i:[{t:3}],s:`Strona internetowa firmy`}},message:{t:0,b:{t:2,i:[{t:3}],s:`Wiadomość`}},"message-placeholder":{t:0,b:{t:2,i:[{t:3}],s:`Chcę nawiązać współpracę jako partner...`}},send:{t:0,b:{t:2,i:[{t:3}],s:`Wyślij`}},"accept-terms":{t:0,b:{t:2,i:[{t:3}],s:`Przesyłając wiadomość, wyrażasz zgodę na nasz`}},regulations:{t:0,b:{t:2,i:[{t:3}],s:`Regulamin`}},privacy:{t:0,b:{t:2,i:[{t:3}],s:`Politykę prywatności`}},and:{t:0,b:{t:2,i:[{t:3}],s:`i`}},"opens-in-new-window":{t:0,b:{t:2,i:[{t:3}],s:`Otwiera się w nowym oknie`}},"message-sent":{t:0,b:{t:2,i:[{t:3}],s:`Wiadomość została wysłana`}},"send-failed":{t:0,b:{t:2,i:[{t:3}],s:`Nie udało się wysłać wiadomości. Spróbuj ponownie.`}},"error-required":{t:0,b:{t:2,i:[{t:3}],s:`To pole jest wymagane`}},"error-email":{t:0,b:{t:2,i:[{t:3}],s:`Adres email jest nieprawidłowy`}},"error-too-long":{t:0,b:{t:2,i:[{t:3,v:`Maksymalnie `},{t:4,k:`max`},{t:3,v:` znaków`}]}},"error-accept-terms":{t:0,b:{t:2,i:[{t:3}],s:`Zgoda jest wymagana`}}},en:{name:{t:0,b:{t:2,i:[{t:3}],s:`Name*`}},surname:{t:0,b:{t:2,i:[{t:3}],s:`Surname*`}},"email-address":{t:0,b:{t:2,i:[{t:3}],s:`Email Adress*`}},phone:{t:0,b:{t:2,i:[{t:3}],s:`Phone number`}},"web-address":{t:0,b:{t:2,i:[{t:3}],s:`Company website`}},message:{t:0,b:{t:2,i:[{t:3}],s:`Message`}},"message-placeholder":{t:0,b:{t:2,i:[{t:3}],s:`I would like to cooperate as a partner...`}},send:{t:0,b:{t:2,i:[{t:3}],s:`Send`}},"accept-terms":{t:0,b:{t:2,i:[{t:3}],s:`By sending a message, you agree to our`}},regulations:{t:0,b:{t:2,i:[{t:3}],s:`Regulations`}},privacy:{t:0,b:{t:2,i:[{t:3}],s:`Privacy policy`}},and:{t:0,b:{t:2,i:[{t:3}],s:`and`}},"opens-in-new-window":{t:0,b:{t:2,i:[{t:3}],s:`Opens in new window`}},"message-sent":{t:0,b:{t:2,i:[{t:3}],s:`Your message has been sent`}},"send-failed":{t:0,b:{t:2,i:[{t:3}],s:`The message could not be sent. Please try again.`}},"error-required":{t:0,b:{t:2,i:[{t:3}],s:`This field is required`}},"error-email":{t:0,b:{t:2,i:[{t:3}],s:`The email address is invalid`}},"error-too-long":{t:0,b:{t:2,i:[{t:4,k:`max`},{t:3,v:` characters at most`}]}},"error-accept-terms":{t:0,b:{t:2,i:[{t:3}],s:`The consent is required`}}}}})}typeof G==`function`&&G(W);var K=Object.assign(W,{__name:`MarketingContactForm`});export{K as t};

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.