1"use strict";(globalThis.webpackChunktesa_2016=globalThis.webpackChunktesa_2016||[]).push([[8331,6895],{8481:(e,l,a)=>{a.r(l),a.d(l,{default:()=>d});var t=a(5166),n=a(7302),u=a(1167),r=a(8156);const i=["name"],s=["data-testid"],o=["innerHTML"],d=Object.assign({name:"FriendlyCaptcha",inheritAttrs:!1},{__name:"FriendlyCaptcha",props:{customMessages:{type:Object},id:{type:String,default:null},language:{type:String,default:document.querySelector("html").lang||"en"},name:{type:String,default:null,required:!0},backgroundColor:{type:String,default:"white",validator:e=>["white","gray","red","blue"].includes(e)},required:{type:[Boolean,String],default:!0},rules:{type:[String,Object]},siteKey:{type:String,default:null,required:!0}},setup(e,l){var a;let{expose:d}=l;const v=null===(a=(0,t.FN)())||void 0===a?void 0:a.proxy,c=(0,t.iH)(null),p=(0,t.iH)(null),y=(0,t.iH)(null),g=e;(0,n.S)(y);const f=(0,t.iH)(null),h=(0,t.iH)(null),m=(0,t.iH)(!1),b=(0,t.iH)(!1),k=(0,t.iH)(null),_=(0,t.Fl)(()=>g.required?{required:{allowFalse:!1}}:{});function C(){var e,l,a,t;h.value=null,m.value=!1,null===(e=f.value)||void 0===e||null===(l=e.reset)||void 0===l||l.call(e),b.value||null===(a=f.value)||void 0===a||null===(t=a.start)||void 0===t||t.call(a)}function w(e){h.value=e,(0,t.Y3)(()=>{var e;return null===(e=y.value)||void 0===e?void 0:e.validate(h.value)})}function H(){console.warn("CAPTCHA error:",...arguments)}function S(){m.value=!0}return(0,t.bv)(()=>{var e;b.value=!!p.value.closest("dialog");const l=c.value,a={sitekey:g.siteKey,language:g.language,solutionFieldName:"-",skipStyleInjection:!1,startMode:b.value?"none":"focus",doneCallback:w.bind(v),errorCallback:H.bind(v),startedCallback:S.bind(v)};var t;(f.value=new u.c(l,a),k.value=p.value.closest("form"),null===(e=k.value)||void 0===e||e.addEventListener("friendlycaptcha:reset",C),b.value)&&(null===(t=k.value)||void 0===t||t.addEventListener("input",()=>{var e;m.value||(null===(e=f.value)||void 0===e||e.start())},{once:!0}))}),(0,t.Jd)(()=>{var e,l,a;null===(e=k.value)||void 0===e||e.removeEventListener("friendlycaptcha:reset",C),null===(l=f.value)||void 0===l||null===(a=l.destroy)||void 0===a||a.call(l)}),d({solution:h}),(l,a)=>((0,t.wg)(),(0,t.j4)(r.Z,{slim:"",tag:"aside",rules:_.value,customMessages:e.customMessages,name:e.name,value:h.value,ref_key:"validationProvider",ref:y},{default:(0,t.w5)(n=>{let{errors:u}=n;return[(0,t._)("div",{ref_key:"root",ref:p},[(0,t._)("label",{class:(0,t.C_)(["friendly-captcha",`friendly-captcha--on-${e.backgroundColor}-bg`])},[(0,t.wy)((0,t._)("input",{class:"friendly-captcha__checkbox",type:"hidden",name:e.name,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value=e),tabindex:"-1"},null,8,i),[[t.nr,h.value]]),a[1]||(a[1]=(0,t.Uk)()),(0,t._)("div",{ref_key:"captcha",ref:c,class:"frc-captcha","data-testid":l.$attrs["data-testid"]},null,8,s),a[2]||(a[2]=(0,t.Uk)()),u.length?((0,t.wg)(),(0,t.iD)("div",{key:0,role:"alert",class:"friendly-captcha__error-message copy copy--small",innerHTML:u[0]},null,8,o)):(0,t.kq)("v-if",!0)],2)],512)]}),_:1},8,["rules","customMessages","name","value"]))}})}}]);
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.