PageSourceSearch

https://www.genertel.hu/assets/KuponLekerdezesView.51d5421b.js

js genertel.hu collected 2026-10-08 08:51:37 UTC 2,945 bytes, 2 lines download raw bytes

1import{B as S,s as z,r as t,Z as _,o as B,a as r,b as v,e as C,f as E,g as o,h as i,w as h,i as g,t as k,k as F,Q as K,a6 as T,m as O,a4 as N,n as Q}from"./vendor.91ad5693.js";import{_ as D,f as y,n as $,m as M}from"./index.0e7f23a9.js";const U={id:"kupon-lekerdezes-page"},Z={class:"kuponlekerdezes-section"},j={class:"container-xxl"},G={class:"page-title-section p-0"},H={class:"title-holder"},J={class:"form-section"},P={class:"content-holder"},W={class:"text-container"},X=g(" Keres\xE9s "),Y={name:"KuponLekerdezesView",setup(ee){const f=S(),s=z(),a=t(null),l=t(null),p=t(!1),d=t(null),I=t(!0),n=t({title:"",description:""}),c=t(!1),m=t(null);async function L(){await r.get(`https://portalapi.genertel.hu/pba/Coupon/CouponCode?couponId=${a.value}`).then(e=>{l.value=e.data.couponStatusId}),m.value.onSubmit(),d.value.validate().then(e=>{e&&(!n.value.recaptchaOn||c.value?f.push({path:"/kupon/talalat-ertek",query:{couponId:a.value}}):y())})}async function V(){await r.get(`https://portalapi.genertel.hu/pba/Coupon/CouponCode?couponId=${a.value}`).then(e=>{l.value=e.data.couponStatusId}),d.value.validate().then(e=>{e?f.push({path:"/kupon/talalat-ertek",query:{couponId:a.value}}):y()})}_("VAL_147",async e=>{let u=await r.get("https://portalapi.genertel.hu/pba/Validation/CouponValidate",{params:{couponId:e}});return e!=null?u.data.hasError?(p.value=!1,u.data.message):(p.value=!0,!0):(p.value=!0,"")}),_("VAL_148",e=>l.value==3?$:!0),_("VAL_149",e=>l.value==2?M:!0),B(async()=>{await r.get("https://portalapi.genertel.hu/pba/Contents/Coupon").then(e=>{n.value.title=e.data.title,n.value.description=e.data.description,n.value.recaptchaOn=e.data.recaptchaOn}),s.query.couponid!==null&&s.query.couponid!==void 0&&(a.value=s.query.couponid,V()),s.query.couponId!==null&&s.query.couponId!==void 0&&(a.value=s.query.couponId,V()),I.value=!1});function b(){c.value=!1}function x(e){c.value=!0}return(e,u)=>{const w=v("Title"),A=v("TextInput"),R=v("ReCaptcha");return C(),E("main",U,[o("section",Z,[o("div",j,[o("section",G,[o("div",H,[i(w,{htag:"h1"},{default:h(()=>[g(k(n.value.title),1)]),_:1})])]),o("section",J,[o("div",P,[o("div",W,[o("p",null,k(n.value.description),1)]),i(T,{ref_key:"couponForm",ref:d,class:"form-container"},{default:h(()=>[(C(),F(A,{id:"CC_100",key:a.value,modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=q=>a.value=q),label:"Kuponk\xF3d","max-length":20,"validation-rules":"VAL_100|VAL_147|VAL_148|VAL_149","init-input-value":a.value},null,8,["modelValue","init-input-value"])),i(K,{class:"btn btn-secondary btn-dense",onClick:L},{default:h(()=>[X]),_:1})]),_:1},512),O(i(R,{ref_key:"recaptcha",ref:m,class:Q(["mb-captcha",e.reCaptchaClass]),"recaptcha-valid":c.value,onRecaptchaError:b,onRecaptchaSuccess:x},null,8,["class","recaptcha-valid"]),[[N,n.value.recaptchaOn]])])])])])])}}};var oe=D(Y,[["__scopeId","data-v-bd59d55e"]]);export{oe as default};
2//# sourceMappingURL=KuponLekerdezesView.51d5421b.js.map

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.