PageSourceSearch

https://www.malagahoy.es/malagahoy/5291.h-52acfa3e16bf48980f42.js

js malagahoy.es collected 2026-10-01 10:25:54 UTC 11,560 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5291],{8255:(function(j,g,n){n.d(g,{Z:function(){return $}});var _=function(){var e=this,o=e._self._c,M=e._self._setupProxy;return o("validation-provider",{staticClass:"bbnx-input-textarea__wrapper",attrs:{name:e.name,rules:e.rules,vid:e.confirmed},scopedSlots:e._u([{key:"default",fn:function({errors:P}){return[o("div",{staticClass:"bbnx-input-textarea",class:{"bbnx-input-textarea--disabled":e.disabled}},[o("label",{attrs:{name:e.name,id:e.id}},[o("span",{staticClass:"bbnx-input-textarea__label",class:e.brickConfig.components["input-text"].label},[e._v(`
2        `+e._s(e.label)+`
3        `),e.required?o("span",{staticClass:"color-error500"},[e._v("*")]):e._e()]),e._v(" "),o("div",{staticClass:"bbnx-input-textarea__input-wrapper"},[o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.text,expression:"text"}],staticClass:"bbnx-input-textarea__input",class:{"bbnx-input-textarea__input--icon":e.icon,"bbnx-input-textarea__input--error":P.length},attrs:{rows:e.rows,cols:e.cols,type:e.type,for:e.id,disabled:e.disabled,placeholder:e.placeholder,maxlength:e.maxLength},domProps:{value:e.text},on:{input:function(O){O.target.composing||(e.text=O.target.value)}}}),e._v(" "),e.icon?o("button",{staticClass:"bbnx-input-textarea__icon",attrs:{type:"button"},on:{click:e.clickIcon}},[o("nx-icon",{attrs:{icon:e.icon}})],1):e._e()])]),e._v(" "),e.helperText||e.$slots.helper?o("span",{staticClass:"bbnx-input-textarea__helper"},[e._t("helper",function(){return[e._v(e._s(e.helperText))]})],2):e._e(),e._v(" "),P.length?o("span",{staticClass:"bbnx-input-textarea__error"},[e._v(e._s(P[0]))]):e._e()])]}}],null,!0)})},y=[],b=n(3646),m=n(2281),w=n(7382),c=Object.defineProperty,a=Object.defineProperties,s=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,f=(p,e,o)=>e in p?c(p,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):p[e]=o,h=(p,e)=>{for(var o in e||(e={}))d.call(e,o)&&f(p,o,e[o]);if(u)for(var o of u(e))C.call(e,o)&&f(p,o,e[o]);return p},v=(p,e)=>a(p,s(e)),S={name:"nx-input-textarea",components:{NxIcon:m.Z,ValidationProvider:b.d_},props:{value:{type:String},name:{type:String},id:{type:String},label:{type:String},placeholder:{type:String},rules:{type:[String,Object]},helperText:{type:String},type:{type:String,default:"text"},disabled:{type:Boolean,default:!1},confirmed:{type:String},icon:{type:String},rows:{type:String},cols:{type:String},maxLength:{type:Number,default:1e4}},computed:v(h({},(0,w.Se)(["brickConfig"])),{text:{get(){return this.value},set(p){this.$emit("input",p)}},required(){return typeof this.rules=="string"?this.rules.search("required")>=0:this.rules.required}}),methods:{clickIcon(){this.$emit("clickIcon")}}},E=S,k=n(810),I=(0,k.Z)(E,_,y,!1,null,null,null),$=I.exports}),5291:(function(j,g,n){n.r(g),n.d(g,{default:function(){return Z}});var _=function(){var t=this,r=t._self._c,R=t._self._setupProxy;return r("div",[r("validation-observer",{ref:"validator",scopedSlots:t._u([{key:"default",fn:function({valid:x}){return[r("form",{on:{submit:function(l){l.preventDefault(),l.stopPropagation()}}},[r("nx-input-text",{attrs:{label:t.$t("module.contact.name"),name:t.$t("module.contact.name"),"max-length":50,rules:"required|max:50"},model:{value:t.name,callback:function(l){t.name=l},expression:"name"}}),t._v(" "),r("nx-input-text",{staticClass:"mt-5",attrs:{label:t.$t("module.contact.company"),name:t.$t("module.contact.company"),"max-length":50,rules:"required|max:50"},model:{value:t.company,callback:function(l){t.company=l},expression:"company"}}),t._v(" "),r("div",{staticClass:"module-contact-form--block50 mt-5"},[r("nx-input-text",{attrs:{label:t.$t("module.contact.phone"),name:t.$t("module.contact.phone"),"max-length":50,rules:"phone|max:50"},model:{value:t.phone,callback:function(l){t.phone=l},expression:"phone"}}),t._v(" "),r("nx-input-text",{attrs:{label:t.$t("module.contact.position"),name:t.$t("module.contact.position"),"max-length":50,rules:"required|max:50"},model:{value:t.position,callback:function(l){t.position=l},expression:"position"}})],1),t._v(" "),r("nx-input-text",{staticClass:"mt-5",attrs:{label:t.$t("module.contact.email"),name:t.$t("module.contact.email"),rules:"required|email"},model:{value:t.email,callback:function(l){t.email=l},expression:"email"}}),t._v(" "),r("nx-input-textarea",{staticClass:"mt-5",attrs:{label:t.$t("module.contact.description"),name:t.$t("module.contact.description"),rows:"7",cols:"100%","max-length":1e3,rules:"required|max:1000"},model:{value:t.description,callback:function(l){t.description=l},expression:"description"}}
3),t._v(" "),r("nx-input-checkbox",{staticClass:"mt-5",class:t.textLegalClasses,attrs:{name:"terms",rules:"required|musttrue",check:""},model:{value:t.terms,callback:function(l){t.terms=l},expression:"terms"}},[r("p",{domProps:{innerHTML:t._s(t.translations.checkbox)}})]),t._v(" "),r("vue-recaptcha",{ref:"recaptcha",attrs:{loadRecaptchaScript:!0,sitekey:t.recaptchaWebKey,size:"invisible"},on:{verify:t.onCaptchaVerified,expired:t.onCaptchaExpired}}),t._v(" "),r("script",{tag:"component",attrs:{src:"https://www.google.com/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit",async:"",defer:""}}),t._v(" "),r("div",{staticClass:"module-contact-form--button"},[r("nx-button",{staticClass:"mt-6",attrs:{text:t.$t("module.contact.button"),loading:t.waiting,type:"submit",medium:"",atomConfig:t.brickConfig.board["module-contact-form"].button,disabled:!x},on:{click:t.sendMail}})],1)],1)]}}])}),t._v(" "),r("nx-modal-window",{attrs:{title:t.$t("module.contact.modal-title"),text:t.$t("module.contact.modal-text")},scopedSlots:t._u([{key:"actions",fn:function(){return[r("nx-button",{staticClass:"form-user-profile__button",attrs:{text:t.$t("module.contact.modal-button"),tabindex:t.showModal?"0":"-1",type:"button",medium:""},on:{click:t.closeModal}})]},proxy:!0}]),model:{value:t.showModal,callback:function(x){t.showModal=x},expression:"showModal"}}),t._v(" "),t.showError?r("nx-alert-message",{staticClass:"user--mt-20",attrs:{alert:""},scopedSlots:t._u([{key:"content",fn:function(){return[r("p",{domProps:{textContent:t._s(t.$t("contact.error"))}}),t._v(" "),t.registerErrors.length?r("ul",t._l(t.registerErrors,function(x,l){return r("li",{key:l},[r("p",[t._v(t._s(x))])])}),0):t._e()]},proxy:!0}],null,!1,1832522033)}):t._e()],1)},y=[],b=n(3646),m=n(57),w=n(8255),c=n(4067),a=n(4609),s=n(6727),u=n(3814),d=n(4206),C=n.n(d),f={sendMail(i,t,r,R,x,l,T,A,H){return C().create().post("/api/front/module-contact-form/",{name:i,email:t,company:r,phone:R,position:x,description:l,terms:T,recaptcha:A,moduleId:H})}},h=n(3340),v=n(7248),S=n(7382),E=Object.defineProperty,k=Object.defineProperties,I=Object.getOwnPropertyDescriptors,$=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable,o=(i,t,r)=>t in i?E(i,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[t]=r,M=(i,t)=>{for(var r in t||(t={}))p.call(t,r)&&o(i,r,t[r]);if($)for(var r of $(t))e.call(t,r)&&o(i,r,t[r]);return i},P=(i,t)=>k(i,I(t)),O={name:"nx-module-form-contact",components:{NxHeadlineAtom:h.Z,ValidationObserver:b._j,VueRecaptcha:v.Z,ValidationProvider:b.d_,NxInputText:m.Z,NxInputTextarea:w.Z,NxInputCheckbox:c.Z,NxButton:a.Z,NxModalWindow:s.Z,NxAlertMessage:u.Z},props:{recaptchaWebKey:{type:String,required:!0},legalConditionsUrl:{type:String,default:""},legalPrivacyUrl:{type:String,default:""},moduleId:{type:String,default:""}},computed:P(M({},(0,S.Se)(["brickConfig"])),{translations(){return{checkbox:this.$t("contact.checkbox-legal",{urlconditions:this.legalConditionsUrl,urlpolitic:this.legalPrivacyUrl})}},textLegalClasses(){return this.brickConfig.board["module-contact-form"]["legal-text"].classes}}),data:()=>({waiting:!1,name:null,email:null,company:null,phone:null,position:null,description:null,terms:null,showError:!1,registerErrors:[],showModal:!1,recaptcha:null}),methods:{closeModal(){this.showModal=!1},onCaptchaVerified(i){this.recaptcha=i},onCaptchaExpired(){this.recaptcha=null},clearForm(){this.name=null,this.email=null,this.company=null,this.phone=null,this.position=null,this.description=null,this.terms=null,this.showError=!1,this.registerErrors=[],this.$refs.validator.reset(),this.$refs.recaptcha.reset()},sendMail(){this.waiting=!0,this.$refs.recaptcha.execute(),setTimeout(()=>{f.sendMail(this.name,this.email,this.company,this.phone,this.position,this.description,this.terms,this.recaptcha,this.moduleId).then(i=>{console.debug(i),typeof i.errors!="undefined"?(this.showError=!0,i.errors.forEach(t=>{this.registerErrors.push(this.$t(`register.error-server.${t.errorCode}`))})):(this.clearForm(),this.showModal=!0,this.waiting=!1)}).catch(i=>{console.error(i),this.showError=!0,typeof i.apiInfo.data.errors!="undefined"&&i.apiInfo.data.errors.forEac
3h(t=>{this.registerErrors.push(this.$t(`register.error-server.${t.errorCode}`))})})},500)}}},L=O,N=n(810),V=(0,N.Z)(L,_,y,!1,null,null,null),Z=V.exports}),7248:(function(j,g){function n(){return n=Object.assign||function(c){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(c[u]=s[u])}return c},n.apply(this,arguments)}var _=function(){var a=!1,s=[],u=function(h){if(!a){a=!0;for(var v=0,S=s.length;v<S;v++)s[v](h)}},d=function(h){if(!a){s.push(h);return}h()},C={resolved:function(){return a},resolve:u,promise:{then:d}};return C},y=Object.prototype.hasOwnProperty;function b(){var c=_();return{notify:function(){c.resolve()},wait:function(){return c.promise},render:function(s,u,d){this.wait().then(function(){d(window.grecaptcha.render(s,u))})},reset:function(s){typeof s!="undefined"&&(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.reset(s)}))},execute:function(s){typeof s!="undefined"&&(this.assertLoaded(),this.wait().then(function(){return window.grecaptcha.execute(s)}))},checkRecaptchaLoad:function(){y.call(window,"grecaptcha")&&y.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!c.resolved())throw new Error("ReCAPTCHA has not been loaded")}}}var m=b();typeof window!="undefined"&&(window.vueRecaptchaApiLoaded=m.notify);var w={name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!1},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},beforeMount:function(){if(this.loadRecaptchaScript&&!document.getElementById(this.recaptchaScriptId)){var a=document.createElement("script");a.id=this.recaptchaScriptId,a.src="https://"+this.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+this.language,a.async=!0,a.defer=!0,document.head.appendChild(a)}},mounted:function(){var a=this;m.checkRecaptchaLoad();var s=n({},this.$props,{callback:this.emitVerify,"expired-callback":this.emitExpired,"error-callback":this.emitError}),u=this.$slots.default?this.$el.children[0]:this.$el;m.render(u,s,function(d){a.$widgetId=d,a.$emit("render",d)})},methods:{reset:function(){m.reset(this.$widgetId)},execute:function(){m.execute(this.$widgetId)},emitVerify:function(a){this.$emit("verify",a)},emitExpired:function(){this.$emit("expired")},emitError:function(){this.$emit("error")}},render:function(a){return a("div",{},this.$slots.default)}};g.Z=w})}]);

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.