PageSourceSearch

https://book.baratahotels.com/assets/APlayerLogin-C_8uQlVC.js

js baratahotels.com collected 2026-10-10 00:47:28 UTC 2,935 bytes, 2 lines download raw bytes

1import{c as w,r as n,f as P,g as L,D as o,H as v,a as u,C as A,N as D,aa as M}from"./@vue-DOiiOO2i.js";import{s as _}from"./pinia-BxPjN3GY.js";import{_ as $,u as E,F as B,a as T,e as U,f as V}from"./index-C3qBTCDi.js";import{useOffersStore as j}from"./offers.store-HNEoNZCa.js";import{_ as N}from"./ApiHtmlContent-DurjL9uE.js";import"./vue-i18n-Bb1jD0ox.js";import"./@intlify-Y34EtYYP.js";import"./vue-router-QQb6IO2i.js";import"./tailwindcss-DF6Njrav.js";import"./lottie-web-DiXPyFxs.js";import"./picocolors-CBpy9uNM.js";import"./axios-DTyqpfTh.js";import"./date-fns-Dzy_VLxG.js";import"./vue-multiselect-ljvZoOSp.js";import"./@kyvg-CGsn1wZ4.js";import"./@dash0-D1h7I60T.js";import"./dompurify-BpHzDiVx.js";const O={class:"flex h-full w-full flex-col justify-between"},z={class:"flex-grow content-center"},F={class:"gc-font-title mb-10 mt-5 text-center font-text-pop-title text-text-pop-title"},W={class:"flex justify-end align-middle"},H={class:"flex items-center"},R={class:"font-primary text-sm"},q={class:"mb-5 mt-10 flex justify-around gap-2"},G={__name:"APlayerLogin",emits:["closeAndCreateCookie","closeAndLoginWithSuccess"],setup(J,{emit:x}){const f=x,h=E(),{applicationSetup:i}=h,p=B(),{userProfile:y}=_(p),C=T(),{userCookies:b}=_(C),S=w(()=>i&&i.duetto_information?i.duetto_information.loginMessage:""),s=n(""),l=n(!1),c=n(!1),a=n(!1),I=e=>{s.value=e,a.value=!1},d=()=>{var t;const e=((t=s.value)==null?void 0:t.trim())||"";return a.value=e.length>50,!a.value},k=async()=>{var t;if(!(((t=s.value)==null?void 0:t.trim())||"")){f("closeAndCreateCookie");return}if(!d()){l.value=!0;return}await p.doPlayerSignUp(s.value).then(()=>{var g;if(c.value&&((g=b.value)!=null&&g.functionalityOrPersonalizationCookies)){const m=new Date;m.setTime(m.getTime()+35*24*60*60*1e3),document.cookie=`playerMemberId=${s.value}; path=/; expires=${m.toUTCString()};`}y.value.playerId=s.value,f("closeAndLoginWithSuccess"),j().getOffers(!0)}).catch(r=>{console.log("doLogin error",r),l.value=!0})};return(e,t)=>(P(),L("div",O,[o("div",z,[o("h1",F,v(e.$t("general.aPlayerMemberLoginTitle")),1),u(N,{class:"font-primary mb-6 text-center text-small-titles md:mb-14",content:S.value},null,8,["content"]),u(U,{id:"signInEmail",customDivClass:"signInEmail mb-4 text-xs w-full",customLabelClass:"text-small-titles font-primary",customInputClass:"w-full mt-1 h-[46px]",label:"Player ID",maxLength:50,defaultValue:"","onUpdate:text":I,onBlur:d,hasError:a.value||l.value,class:A({warning:a.value||l.value})},null,8,["hasError","class"]),o("div",W,[o("label",H,[o("span",R,v(e.$t("general.rememberMe")),1),D(o("input",{type:"checkbox",class:"ml-2","onUpdate:modelValue":t[0]||(t[0]=r=>c.value=r)},null,512),[[M,c.value]])])])]),o("div",q,[u(V,{class:"signInButton",width:"w-full",label:e.$t("general.done"),onClick:k},null,8,["label"])])]))}},fe=$(G,[["__scopeId","data-v-d00fd7c4"]]);export{fe as default};
2//# sourceMappingURL=APlayerLogin-C_8uQlVC.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.