1var ke=Object.defineProperty;var Ce=(a,n,p)=>n in a?ke(a,n,{enumerable:!0,configurable:!0,writable:!0,value:p}):a[n]=p;var Y=(a,n,p)=>Ce(a,typeof n!="symbol"?n+"":n,p);import{y as _e,u as $e,c as ee,r as u,a as Ee,B as Te,j as Se,z as G,J as Ae,b as i,o as c,e,p as b,t as d,s as E,v as oe,n as Re,D as w,G as W,l as r,A as j,E as je,F as te,m as De,H as K}from"./DO8wghyy.js";import{i as se}from"./tW2uwczC.js";import{u as Me,c as x,r as J,e as Ve,a as Pe,S as Ie,b as Ue,I as Ne}from"./CrJaCWp9.js";import{u as Le}from"./TBGH4gn3.js";import{u as qe}from"./DF99f_a3.js";import{_ as ze}from"./DlAUqK2U.js";const Oe={class:"flex flex-col bg-white rounded-lg shadow-sm hover:shadow-lg transition-all duration-200 overflow-hidden border border-gray-300 hover:border-gray-400 group h-[175px]"},Be={class:"flex min-h-0 flex flex-col"},Fe={class:"flex flex-row items-center justify-start p-3 space-x-3"},He={class:"sm:w-[80px] sm:h-[80px] w-[70px] h-[70px] bg-white rounded-lg border border-gray-200 flex-shrink-0 overflow-hidden flex items-center justify-center"},Ge=["href","target","rel","title","data-category","data-sponsor","data-URL","data-offer","data-offer-type","aria-label"],We=["src"],Ke={class:"flex flex-col justify-start items-start flex-1 min-h-0 overflow-hidden"},Je={class:"mb-1 w-full"},Xe=["title"],Ze=["title"],Qe={class:"flex-shrink-0 min-h-0"},Ye={class:"flex items-center justify-between p-2"},eo={class:"flex items-center"},oo={class:"text-sm text-gray-600"},to={class:"flex-shrink-0"},so=["disabled"],ro={class:"w-full max-w-2xl lg:max-w-2xl xl:max-w-2xl relative animate-scaleIn"},no={class:"flex flex-col flex-1 overflow-hidden"},ao={class:"w-full p-6 pb-4 text-center bg-gradient-to-r from-indigo-800 to-indigo-900 shrink-0"},lo={class:"text-2xl font-bold text-white mb-2"},io={class:"text-blue-100 text-sm"},co={class:"flex-1 overflow-y-auto p-6 bg-white"},uo={class:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl p-8 text-center border border-blue-100 min-h-0"},po={class:"relative"},fo={key:0,class:"text-blue-600 text-xs mt-2 block"},vo={class:"relative"},mo={key:0,class:"text-blue-600 text-xs mt-2 block"},go={class:"relative"},ho={key:0,class:"text-blue-600 text-xs mt-2 block"},bo={class:"relative"},xo={class:"relative w-full"},yo={class:"p-3 space-y-1 text-sm text-gray-700 max-h-70 overflow-y-auto"},wo={class:"flex items-center p-2 rounded-sm hover:bg-gray-100"},ko=["id","checked","onChange"],Co=["for"],_o={key:0,class:"text-black text-xs mt-1"},$o={class:"space-y-4 pt-2"},Eo={class:"flex items-start"},To={class:"flex items-center h-5 mt-0.5"},So={class:"ml-3"},Ao={for:"terminos",class:"text-sm text-gray-700"},Ro=["href"],jo={key:0,class:"text-blue-600 text-xs mt-1 block"},Do={class:"flex items-start"},Mo={class:"flex items-center h-5 mt-0.5"},Vo={class:"ml-3"},Po={key:0,class:"text-blue-600 text-xs mt-1 block"},Io={class:"flex items-start"},Uo={class:"flex items-center h-5 mt-0.5"},No={class:"ml-3"},Lo={key:0,class:"text-blue-600 text-xs mt-1 block"},qo={class:"flex flex-row justify-center"},zo={key:0,class:"text-blue-500 text-sm"},Oo={class:"pt-4"},Bo={key:0,type:"submit",class:"w-full cursor-pointer bg-gradient-to-r from-indigo-800 to-indigo-900 hover:from-indigo-800 hover:to-indigo-900 text-white font-semibold py-3.5 px-4 rounded-xl shadow-md hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2"},Fo={key:1,type:"button",disabled:"",class:"w-full cursor-pointer bg-gradient-to-r from-blue-600 to-blue-700 text-white font-semibold py-3.5 px-4 rounded-xl shadow-md"},Ho={class:"flex items-start"},Go={class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Wo={key:0,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 13l4 4L19 7"},Ko={key:1,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},Jo={class:"ml-3"},Xo={key:2,class:"bg-gradient-to-br from-blue-50 to-indigo-50 rounded-2xl text-center"},Zo={class:"relative mb-8"},Qo={class:"relative bg-white rounded-2xl p-5 shadow-lg border border-gray-100"},Yo={class:"text-xl md:text-4xl font-black text-gray-900 text-center tracking-[0.2em] font-mono select-all"},et={class:"space-y-4"},ot=["href","target","rel"],tt={__name:"Cupon",props:{cupon:{type:Object,required:!0},dataCategory:{type:String,default:"Home"},categorias:{type:Array,default:()=>[]}},setup(a){var Q;const n=a,p=_e(),m=Le(),D=$e(),{validarFechasOferta:re}=qe(),v=ee(()=>re()),M=u(!1),k=u(!1),V=u(""),T=u(!1),ne=u(!1);let ae=u([]);ae.value=n.categorias;const y=u([]),_=u(""),$=u(""),S=u(""),P=u(!1),I=u(!1),U=u(!1),N=u(new Ne),C=u(!1),L=Ee(),le=L.public.API_URL,q=L.public.AZURE_STORAGE,ie="#"+L.public.COLOR_EVENTO,z=u(1024),ce=Te(),ue=u(((Q=ce.query.preview)==null?void 0:Q.toString())??"").value?"expectativa":"evento",{renderRecaptcha:de,getRecaptchaToken:pe,resetRecaptcha:X}=Me(),O=u(null);let g=null;const B=u(!1),h={required:"Este campo es obligatorio",email:"Por favor ingresa un correo válido",terms:"Debes aceptar los términos y condiciones",policies:"Debes aceptar las polÃticas de privacidad",telefono:"El teléfono es obligatorio",telefonoNumerico:"El teléfono solo debe contener dÃgitos",age:"Debes confirmar que eres mayor de edad",categorias:"Debes seleccionar al menos una categorÃa"},f=u({show:!1,type:"success",title:"",message:""}),A=(l,o,t)=>{f.value={show:!0,type:l,title:o,message:t}},fe={nuevoNombres:{required:x.withMessage(h.required,J)},nuevoCorreo:{required:x.withMessage(h.required,J),email:x.withMessage(h.email,Ve)},aceptaTerminos:{isTrue:x.withMessage(h.terms,l=>l===!0)},politicas:{isTrue:x.withMessage(h.policies,l=>l===!0)},mayorDeEdad:{isTrue:x.withMessage(h.age,l=>l===!0)},nuevoTelefono:{required:x.withMessage(h.telefono,J),numeric:x.withMessage(h.telefonoNumerico,l=>/^\+?\d+$/.test(l))},categorias:{required:x.withMessage(h.categorias,()=>y.value.length>0)}},s=Pe(fe,{nuevoNombres:_,nuevoCorreo:$,aceptaTerminos:P,politicas:I,mayorDeEdad:U,nuevoTelefono:S}),ve=()=>{me()},me=async()=>{M.value=!0,f.value.show=!1,m.usuarioRegistrado?(k.value=!0,V.value=n.cupon.codigoCupon):(k.value=!1,await G(),!B.value&&O.value&&(g=await de(O.value,{size:"normal"}),g!==null&&(B.value=!0))),G(()=>{se()})},F=()=>{M.value=!1,f.value.show=!1,g!==null&&(X(g),B.value=!1,g=null)},ge=l=>{const o=l.nombre||l,t=y.value.indexOf(o);t>-1?y.value.splice(t,1):y.value.push(o)},he=async()=>{try{return(await(await fetch("https://api.ipify.org?format=json")).json()).ip}catch(l){return console.error("Error al obtener IP del cliente:",l),null}},be=async()=>{try{if(!await s.value.$validate()){A("error","Error de validación","Por favor complete todos los campos requeridos");return}C.value=!0;const o=pe(g);if(!o){A("error","reCAPTCHA","Por favor complete el reCAPTCHA"),C.value=!1;return}if((await Ie.consultarRecaptcha(o)).objeto==!1){A("error","reCAPTCHA","Intenta nuevamente"),C.value=!1;return}N.value={...N.value,idEdicionFK:D.id,nombres:_.value,apellidos:"",correo:$.value,telefono:S.value,origenSuscripcion:"Cupones",idUsuarioCreaFK:0,direccionIp:await he(),terminosCondiciones:new Date().toISOString().slice(0,19),politicas:new Date().toISOString().slice(0,19),mayorDeEdad:new Date().toISOString().slice(0,19),nombreCategorias:y.value.map(we=>`'${we}'`).join("|")};const H=await Ue.insertar(N.value,le);if(H.status!==200)throw new Error(H.statusText||"Error en el servidor");m.setUser($.value,_.value),setTimeout(()=>{f.value.show=!1,k.value=!0,V.value=n.cupon.codigoCupon},50),s.value.$reset(),window.grecaptcha&&g!==null&&window.grecaptcha.reset(g),C.value=!1,X(g)}catch(l){console.error("Error en el proceso de inscripción:",l),A("error","Error en el registro",l.message||"No pudimos procesar tu inscripción. Por favor intenta nuevamente"),C.value=!1}},Z=()=>{z.value=window.innerWidth};Se(async()=>{m.inicializarDesdeStorage(),z.value=window.innerWidth,window.addEventListener("resize",Z),G(()=>{se()})}),Ae(()=>{window.removeEventListener("resize",Z)});const R=ee(()=>z.value<768?n.cupon.urlCelular:n.cupon.urlEscritorio),xe=l=>l?q+l:q+p.logoGeneral,ye=()=>{v.value&&dataLayer.push({event:"GA4_redirecciones_cupones",categoria:"Redirecciones cupones",accion:"Redirecciones",marca:n.
1cupon.nombreAnunciante,plp:n.dataCategory,patrocinio:n.cupon.nombrePaquete,tipo_evento:ue,tipo_participante:"Participante",LinkURL:R.value,cupones:`${n.cupon.codigoCupon} ${n.cupon.porcentajeDescuento??0}%OFF`})};return(l,o)=>(c(),i(te,null,[e("div",Oe,[e("div",Be,[e("div",Fe,[e("div",He,[e("a",{href:v.value?R.value:void 0,target:v.value?"_blank":void 0,class:"GACupon block w-full h-full",rel:v.value?"noopener":void 0,title:a.cupon.nombreAnunciante,"data-category":n.dataCategory,"data-sponsor":a.cupon.nombrePaquete,"data-URL":v.value?R.value:"","data-offer":`${a.cupon.codigoCupon} ${a.cupon.porcentajeDescuento??0}%OFF`,"data-offer-type":a.cupon.tipoCupon,onClick:ye,"aria-label":`Visita la página de ${a.cupon.nombreAnunciante}`},[a.cupon.rutaLogoHistoria?(c(),i("img",{key:0,class:"h-full w-full object-cover cursor-pointer",src:xe(a.cupon.rutaLogoHistoria),alt:"Imagen de oferta"},null,8,We)):b("",!0)],8,Ge)]),e("div",Ke,[e("div",Je,[e("span",{class:"bg-[rgb(255,0,0)] text-white text-sm font-bold px-3 py-1 rounded-full truncate max-w-full inline-block",title:a.cupon.nombreAnunciante},d(a.cupon.nombreAnunciante.length>25?a.cupon.nombreAnunciante.substring(0,40)+"...":a.cupon.nombreAnunciante),9,Xe)]),e("p",{class:"text-base text-gray-800 mb-2 line-clamp-2 font-medium leading-tight group-hover:text-gray-900 transition-colors duration-300",title:a.cupon.titulo},d(a.cupon.titulo),9,Ze)])])]),o[14]||(o[14]=e("div",{class:"die-cut m-0 p-0"},[e("div",{class:"inner-line"})],-1)),e("div",Qe,[e("div",Ye,[e("div",eo,[o[13]||(o[13]=e("svg",{class:"w-4 h-4 mr-2 text-[rgb(255,0,0)] flex-shrink-0",fill:"currentColor",viewBox:"0 0 20 20"},[e("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-11a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V7z","clip-rule":"evenodd"})],-1)),e("span",oo,"Vence "+d(a.cupon.fechaVencimiento||"Pronto"),1)]),e("div",to,[e("button",{onClick:ve,disabled:!v.value,class:E([v.value?"cursor-pointer hover:from-indigo-600 hover:to-indigo-700 hover:shadow":"cursor-not-allowed opacity-50","bg-gradient-to-r from-indigo-700 to-indigo-800 text-white font-bold px-3 py-1 rounded-lg shadow-sm transition-all duration-200"])}," Aplicar ",10,so)])])])]),M.value?(c(),i("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{"background-color":"rgba(0, 0, 0, 0.5)"},onClick:oe(F,["self"])},[e("div",ro,[e("div",{class:"max-h-[calc(100vh-2rem)] lg:max-h-[90vh] overflow-hidden rounded-2xl shadow-xl flex flex-col",style:Re({backgroundColor:ie||"#ffffff"})},[e("button",{onClick:F,class:"absolute top-3 right-3 z-20 w-8 h-8 rounded-full flex items-center justify-center text-white bg-white/15 hover:bg-white/30 transition-all duration-200"},o[15]||(o[15]=[e("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor","stroke-width":"2.5",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18L18 6M6 6l12 12"})],-1)])),e("div",no,[e("div",ao,[e("h2",lo,d(k.value?"CUPÃN":"REGÃSTRATE"),1),e("p",io,d(k.value?"Usa este código en tu compra":"Completa el formulario y entérate de cientos de ofertas"),1)]),e("div",co,[e("div",uo,[k.value?f.value.show?(c(),i("div",{key:1,class:E(`p-4 rounded-xl ${f.value.type==="success"?"bg-green-50 border border-green-200":"bg-blue-50 border border-blue-200"}`),role:"alert"},[e("div",Ho,[e("div",{class:E(`mt-1 flex-shrink-0 ${f.value.type==="success"?"text-green-500":"text-blue-500"}`)},[(c(),i("svg",Go,[f.value.type==="success"?(c(),i("path",Wo)):(c(),i("path",Ko))]))],2),e("div",Jo,[e("h3",{class:E(`text-sm font-medium ${f.value.type==="success"?"text-green-800":"text-blue-800"}`)},d(f.value.title),3),e("div",{class:E(`text-sm ${f.value.type==="success"?"text-green-700":"text-blue-700"} mt-1`)},d(f.value.message),3)])])],2)):(c(),i("div",Xo,[o[23]||(o[23]=e("div",{class:"flex flex-col sm:flex-row justify-center items-center gap-4 mb-8"},[e("h3",{class:"text-xl font-semibold text-gray-800"},"¡Código de descuento generado!")],-1)),e("div",Zo,[o[21]||(o[21]=e("div",{class:"absolute inset-0 rounded-2xl bg-gradient-to-r from-indigo-500 to-purple-500 blur-sm op
1acity-30"},null,-1)),e("div",Qo,[e("p",Yo,d(V.value),1)])]),e("div",et,[e("a",{href:v.value?R.value:void 0,target:v.value?"_blank":void 0,rel:v.value?"noopener":void 0},o[22]||(o[22]=[e("button",{type:"button",class:"w-full mb-2 cursor-pointer bg-gradient-to-r from-emerald-400 to-emerald-500 hover:from-emerald-400 hover:to-emerald-500 text-white font-semibold py-4 px-6 rounded-xl shadow-md hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 text-lg"}," IR A LA TIENDA ",-1)]),8,ot),e("button",{onClick:F,class:"w-full cursor-pointer bg-white hover:bg-gray-50 text-gray-700 font-medium py-3.5 px-6 rounded-xl border border-gray-300 hover:border-gray-400 transition-all duration-200"}," Cerrar ")])])):(c(),i("form",{key:0,class:"space-y-5",onSubmit:oe(be,["prevent"])},[e("div",null,[e("div",po,[w(e("input",{"onUpdate:modelValue":o[0]||(o[0]=t=>_.value=t),onChange:o[1]||(o[1]=(...t)=>r(s).nuevoNombres.$touch&&r(s).nuevoNombres.$touch(...t)),class:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl text-gray-800 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200",placeholder:"Nombre"},null,544),[[W,_.value]])]),r(s).nuevoNombres.$error?(c(),i("span",fo,d(r(s).nuevoNombres.$errors[0].$message),1)):b("",!0)]),e("div",null,[e("div",vo,[w(e("input",{"onUpdate:modelValue":o[2]||(o[2]=t=>$.value=t),onChange:o[3]||(o[3]=(...t)=>r(s).nuevoCorreo.$touch&&r(s).nuevoCorreo.$touch(...t)),type:"email",class:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl text-gray-800 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200",placeholder:"Correo electrónico"},null,544),[[W,$.value]])]),r(s).nuevoCorreo.$error?(c(),i("span",mo,d(r(s).nuevoCorreo.$errors[0].$message),1)):b("",!0)]),e("div",null,[e("div",go,[w(e("input",{"onUpdate:modelValue":o[4]||(o[4]=t=>S.value=t),onChange:o[5]||(o[5]=(...t)=>r(s).nuevoTelefono.$touch&&r(s).nuevoTelefono.$touch(...t)),type:"tel",class:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl text-gray-800 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200",placeholder:"Teléfono"},null,544),[[W,S.value]])]),r(s).nuevoTelefono.$error?(c(),i("span",ho,d(r(s).nuevoTelefono.$errors[0].$message),1)):b("",!0)]),e("div",bo,[e("button",{onClick:o[6]||(o[6]=t=>T.value=!T.value),class:"w-full px-4 py-3 bg-gray-50 border border-gray-200 rounded-xl text-left text-gray-800 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 flex justify-between items-center",type:"button"},[j(d(y.value.length>0?y.value.join(", "):"Selecciona una categorÃa")+" ",1),o[16]||(o[16]=e("svg",{class:"w-2.5 h-2.5 ml-2","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 10 6"},[e("path",{stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m1 1 4 4 4-4"})],-1))]),e("div",xo,[w((c(),i("div",{id:"dropdownBgHover",key:T.value,class:"absolute left-0 top-full z-50 w-full bg-white rounded-lg shadow-sm mt-1"},[e("ul",yo,[(c(!0),i(te,null,De(n.categorias,t=>(c(),i("li",{key:t.nombre||t},[e("div",wo,[e("input",{type:"checkbox",id:"cat-"+(t.nombre||t),checked:y.value.includes(t.nombre||t),onChange:H=>ge(t),class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded-sm focus:ring-blue-500"},null,40,ko),e("label",{for:"cat-"+(t.nombre||t),class:"ml-2 text-sm font-medium text-gray-900"},d(t.nombre||t),9,Co)])]))),128))])])),[[je,T.value]])]),r(s).categorias.$error?(c(),i("span",_o,d(r(s).categorias.$errors[0].$message),1)):b("",!0)]),e("div",$o,[e("div",Eo,[e("div",To,[w(e("input",{id:"terminos",type:"checkbox","onUpdate:modelValue":o[7]||(o[7]=t=>P.value=t),onChange:o[8]||(o[8]=(...t)=>r(s).aceptaTerminos.$touch&&r(s).aceptaTerminos.$touch(...t)),class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500"},null,544),[[K,P.value]])]),e("div",So,[e("label",Ao,[o[17]||(o[17]=j(" Acepto los ")),e("a",{href:r(q)+r(p).terminosCondiciones,target:"_blank",class:"text-blue-600 hover:text-blue-800 hover:underline font-medium transition-colors"}," Términos y Condiciones ",8,Ro)]),r(s).aceptaTerminos.$error?(c(),i("span",jo,d(r(s).aceptaTerminos.$errors[0].$message),1)):b("",!0)])]),e("div",Do,[e("div",Mo,[w(e("input",{id:"politicas",type:"checkbox","onUpdate:modelValue":o[9]||(o[9]=t=>I.value=t),onChange:o[10]||(o[10]=(...t)=>r(s).politicas.$touch&&r(s).politicas.$touch(...t)),class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500"},null,544),[[K,I.value]])]),e("div",Vo,[o[18]||(o[18]=e("label",{for:"politicas",class:"text-sm text-gray-700"},[j(" Acepto las "),e("a",{href:"https://ccce.org.co/wp-content/uploads/2017/06/Politica-de-Privacidad-CCCE-V5-18.01.2024.pdf",target:"_blank",class:"text-blue-600 hover:text-blue-800 hover:underline font-medium transition-colors"}," PolÃticas de Privacidad ")],-1)),r(s).politicas.$error?(c(),i("span",Po,d(r(s).politicas.$errors[0].$message),1)):b("",!0)])]),e("div",Io,[e("div",Uo,[w(e("input",{id:"mayorDeEdad",type:"checkbox","onUpdate:modelValue":o[11]||(o[11]=t=>U.value=t),onChange:o[12]||(o[12]=(...t)=>r(s).mayorDeEdad.$touch&&r(s).mayorDeEdad.$touch(...t)),class:"w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500"},null,544),[[K,U.value]])]),e("div",No,[o[19]||(o[19]=e("label",{for:"mayorDeEdad",class:"text-sm text-gray-700 font-medium"}," Soy mayor de 18 años ",-1)),r(s).mayorDeEdad.$error?(c(),i("span",Lo,d(r(s).mayorDeEdad.$errors[0].$message),1)):b("",!0)])])]),e("div",qo,[ne.value?(c(),i("div",zo," Error al cargar reCAPTCHA. Por favor recarga la página. ")):(c(),i("div",{key:1,ref_key:"recaptchaRef",ref:O,class:"mt-4",style:{"min-height":"78px"}},null,512))]),e("div",Oo,[C.value?(c(),i("button",Fo,o[20]||(o[20]=[e("div",{class:"flex items-center justify-center"},[e("svg",{class:"animate-spin h-5 w-5 mr-3 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),j(" Procesando... ")],-1)]))):(c(),i("button",Bo," ENVIAR "))])],32))])])])],4)])])):b("",!0)],64))}}
1,pt=ze(tt,[["__scopeId","data-v-437f1a65"]]);class st{constructor(){Y(this,"controller","cupones")}async makeRequest(n){try{return{status:200,statusText:"OK",objeto:await $fetch("/api/proxy",{method:"POST",body:{url:n,method:"GET"}})}}catch(p){const m=p.statusCode||500;throw m===403?new TypeError("No tiene privilegios suficientes"):m===404?new TypeError("No existen registros asociados"):m===500?new TypeError("Error interno del servidor, por favor intente nuevamente más tarde"):new TypeError("Error al consultar cupones: "+(p.message||p))}}async consultarCuponesXGuidEdi(n,p){const m=`portal/${this.controller}/${n}`,D=`${p}${m}`;return this.makeRequest(D)}}const ft=new st;export{pt as C,ft as S};
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.