PageSourceSearch

https://camping-aramis.com/chunk-MFY6GL67.js

js camping-aramis.com collected 2026-09-30 09:50:40 UTC 14,687 bytes, 1 lines download raw bytes

1import{a as Le}from"./chunk-FD55Q7R4.js";import{j as ge}from"./chunk-LBFZVMBI.js";import{b as pe,c as V,d as me,e as de,g as E,m as he,n as ue}from"./chunk-SQXH55RY.js";import{A as re,c as Y,g as Z,h as ee,j as ie,l as te,m as ne,x as oe}from"./chunk-FZLMV5FP.js";import{O as ce,x as ae}from"./chunk-2RZNBXEW.js";import{e as j,ea as X,h as H,i as K,j as $,p as z,q as G,qa as se,r as J,sa as le}from"./chunk-LKIBVTZY.js";import{A as d,B as h,Da as c,Ia as a,Ja as l,Ka as F,La as T,Ma as R,Oa as x,Ra as C,Sa as p,Va as P,bb as L,cb as I,db as A,ga as o,ha as u,jb as O,kb as D,lb as q,nb as B,p as M,pb as W,sb as _,tb as w,ub as Q,xa as k}from"./chunk-LZGEQQYD.js";import{a as U}from"./chunk-RNQ7BUHW.js";var _e=n=>({merchant:n}),ve=n=>({"password-input":n}),fe=n=>({show:n});function Se(n,g){if(n&1&&(a(0,"span",29)(1,"p",30),L(2),l()()),n&2){let t=p().$implicit;o(2),I(t.errorMessage)}}function Ce(n,g){if(n&1){let t=x();a(0,"a",31),C("click",function(){d(t);let e=p(3);return h(e.showPwd())}),l()}if(n&2){let t=p(3);c("ngClass",W(1,fe,t.isShowPwd))}}function Ie(n,g){if(n&1){let t=x();T(0),a(1,"div",23)(2,"div",24)(3,"input",25),_(4,"translate"),q("ngModelChange",function(e){let r=d(t).$implicit;return D(r.model,e)||(r.model=e),h(e)}),C("blur",function(){d(t);let e=p(2);return h(e.shouldUseOTP())})("keyup",function(){d(t);let e=p(2);return h(e.twoFaNemberCheck())})("mousedown",function(){d(t);let e=p(2);return h(e.twoFaNemberCheck())}),l(),a(5,"label",26),L(6),_(7,"translate"),l(),k(8,Se,3,1,"span",27)(9,Ce,1,3,"a",28),l()(),R()}if(n&2){let t=g.$implicit;o(),P("id","f"+t.id),c("hidden",t.isHidden),o(),c("ngClass",W(18,ve,t.name==="password")),o(),P("name",t.name),P("type",t.type),P("id","p"+t.id),P("maxlength",t.maxlength),P("placeholder",w(4,14,"loginPage."+t.placeholder)),P("autocomplete",t.autocomplete),O("ngModel",t.model),o(2),P("for",t.name),o(),I(w(7,16,"loginPage."+t.name)),o(2),c("ngIf",t.error),o(),c("ngIf",t.name==="password")}}function we(n,g){n&1&&(a(0,"p"),L(1),_(2,"translate"),l()),n&2&&(o(),I(w(2,1,"loginPage.rememberUsername")))}function Pe(n,g){n&1&&(a(0,"p",32),L(1),_(2,"translate"),l()),n&2&&(o(),I(w(2,1,"loginPage.rememberUsername")))}function ke(n,g){n&1&&(a(0,"p",33),L(1),_(2,"translate"),l()),n&2&&(o(),I(w(2,1,"loginPage.usingSocialAccount")))}function be(n,g){if(n&1){let t=x();a(0,"div",34)(1,"a",35),C("click",function(){d(t);let e=p(2);return h(e.onSocialClick())}),F(2,"i",36),l()()}}function xe(n,g){if(n&1){let t=x();T(0),a(1,"div",2)(2,"button",3),C("click",function(){d(t);let e=p();return h(e.close())}),F(3,"i",4),l(),a(4,"div",5)(5,"strong"),L(6),_(7,"translate"),l()(),a(8,"form",6,0),C("ngSubmit",function(){d(t);let e=p();return h(e.submitLogin())}),k(10,Ie,10,20,"ng-container",7),a(11,"div",8)(12,"div",9)(13,"input",10),C("change",function(){d(t);let e=p();return h(e.isRememberUsername=!e.isRememberUsername)}),l(),a(14,"label",11)(15,"span"),F(16,"i",12),l(),k(17,we,3,3,"p",1)(18,Pe,3,3,"p",13),l()(),a(19,"a",14),C("click",function(){d(t);let e=p();return h(e.closeAndNavigate("/Member/ForgotPassword"))}),L(20),_(21,"translate"),l()(),a(22,"div",15)(23,"button",16),L(24),_(25,"translate"),l()(),k(26,ke,3,3,"p",17)(27,be,3,0,"div",18),a(28,"div",19)(29,"h6",20),L(30),_(31,"translate"),l(),a(32,"a",21),C("click",function(){d(t);let e=p();return h(e.closeAndNavigate("/Member/StreamlinedRegister"))}),L(33),_(34,"translate"),l()()()(),a(35,"div",22),C("click",function(){d(t);let e=p();return h(e.close())}),l(),R()}if(n&2){let t=p();o(),c("@loadFadeIn",void 0),o(),c("ngClass",t.globalData.isMobileStyle?"select-close-btn":"popup-close-btn"),o(4),I(w(7,14,"loginPage.login")),o(4),c("ngForOf",t.loginService.loginForm),o(3),c("checked",t.isRememberUsername),o(4),c("ngIf",!t.globalData.isApp),o(),c("ngIf",t.globalData.isApp),o(2),I(w(21,16,"loginPage.forgotPassword")),o(4),I(w(25,18,"loginPage.login")),o(2),c("ngIf",t.cmsService.cmsSetting==null?null:t.cmsService.cmsSetting.isLineLoginActive),o(),c("ngIf",t.cmsService.cmsSetting==null?null:t.cmsService.cmsSetting.isLineLoginActive),o(3),A(" ",Q(31,20,"loginPage.notyetAccount",W(25,_e,t.cmsService.cmsSetting==null?null:t.cmsService.cmsSetting.merchantName))," "),o(3),I(w(34,23,"loginPage.signUp")),o(2),c("@loadFadeIn",void 0)}}var Ke=(()=>{let g=class g{constructor(i,e,r,s,m,v,b,f,S,y,N){this.loginService=i,this.cmsService=e,this.translate=r,this.globalData=s,this.httpService=m,this.lineLoginService=v,this.iab=b,this.screenOrientation=f,this.accountInfoService=S,this.storageService=y,this.router=N,this.qqtimeDebugTraceStorageKey="qqtime-debug-trace",this.popupNavigateEventName="login-popup-route-change",this.isShowPwd=!1,this.isShow2FaActive=!1,this.counter=0,this.intervalId=null,this.lineLoginPopupCloseWatchId=null,this.lineLoginQuickRetryId=null,this.isCheckingLineCallback=!1,this.isCheckingLineStatus=!1,this.isWindowFocusLineLoginListening=!1,this.pendingLineLoginState=null,this.pendingLineLoginWindowRef=null,this.isRememberUsername=!!this.storageService.getCookie("RememberUsername"),this.handleWindowFocusLineLogin=()=>{this.triggerLineLoginImmediateRecheck()}}logLoginPopup(i,e){if(!V())return;let r=U({href:window.location.href,isOpenLogin:this.loginService.isOpenLogin,isQqtimeLoginPopupForcedOpen:this.loginService.isQqtimeLoginPopupForcedOpen,shouldShowLoginPopup:this.loginService.shouldShowLoginPopup,isLogin:this.globalData.isLogin,routerUrl:this.router.url},e&&typeof e=="object"?e:{value:e});console.log("[login-popup][".concat(i,"]"),r);try{let s=sessionStorage.getItem(this.qqtimeDebugTraceStorageKey),m=s?JSON.parse(s):[];m.push({source:"login-popup",step:i,at:new Date().toISOString(),payload:r}),sessionStorage.setItem(this.qqtimeDebugTraceStorageKey,JSON.stringify(m.slice(-50)))}catch(s){}}get shouldShowLoginPopup(){return this.loginService.shouldShowLoginPopup}shouldUseOTP(){this.loginService.loginForm[0].model.trim().length>0&&this.accountInfoService.getIs2FaActive(this.loginService.loginForm[0].model.trim()).then(i=>{this.loginService.loginForm[2].isHidden=!this.accountInfoService.memSettingForm.loginWithTwoFactorAuth;var e=document.getElementById("ftxt2facode");e&&(e.hidden=!this.accountInfoService.memSettingForm.loginWithTwoFactorAuth)}),this.loginService.loginForm[1].model.trim().length>0&&(this.loginService.loginForm[1].errorMessage="",this.loginService.loginForm[1].error=!1),this.loginService.loginForm[2].isHidden==!1&&this.loginService.loginForm[2].model.trim().length>0&&(this.loginService.loginForm[2].errorMessage="",this.loginService.loginForm[2].error=!1)}twoFaNemberCheck(){if(this.loginService.loginForm[2].model.trim().length>0){var i=/^(([0-9]{1}\d*))?$/;!i.test(this.loginService.loginForm[2].model)&&this.loginService.loginForm[2].model.length!=0&&(this.loginService.loginForm[2].model=this.loginService.loginForm[2].model.replace(/[^0-9]+/g,""))}}showPwd(){let i=document.getElementById("ptxtpwd");i.type==="text"?(i.type="password",this.isShowPwd=!1):(i.type="text",this.isShowPwd=!0)}submitLogin(){this.logLoginPopup("submit-login-start"),this.loginService.loginForm[0].error=!1,this.loginService.loginForm[1].error=!1,this.loginService.loginForm[2].error=!1,this.loginService.loginForm[0].model.trim().length===0&&(this.loginService.loginForm[0].errorMessage=this.translate.instant("codeMessage.40001"),this.loginService.loginForm[0].error=!0),this.loginService.loginForm[1].model.trim().length===0&&(this.loginService.loginForm[1].errorMessage=this.translate.instant("codeMessage.40121"),this.loginService.loginForm[1].error=!0),this.loginService.loginForm[2].isHidden==!1&&this.loginService.loginForm[2].model.trim().length==0&&(this.loginService.loginForm[2].errorMessage=this.translate.instant("loginPage.2facodeBlank"),this.loginService.loginForm[2].error=!0),!this.loginService.loginForm[0].error&&!this.loginService.loginForm[1].error&&!this.loginService.loginForm[2].error&&(this.logLoginPopup("submit-login-valid"),this.isRememberUsername?this.storageService.setCookie("RememberUsername",this.loginService.loginForm[0].model.trim(),30
1):this.storageService.delCookie("RememberUsername"),this.logLoginPopup("submit-login-call-login-service"),this.loginService.login())}onSocialClick(){this.clearLineLoginResumeCheck();let i=null;if(!this.globalData.isApp&&(i=open("","lineLogin"),!i)){this.globalData.showMessageAlert("Popup is blocked. Please allow popups and try LINE login again.");return}let r=V()?me():null,s={merchantId:this.cmsService.cmsSetting.merchantCode,loginId:""};r&&(s.ReturnUri=r),this.httpService.getLineLoginUrl(s).subscribe(m=>{if(m.code===0){let b=m.data.loginUrl,f=m.data.state;if(!b||!f){this.closePendingLineWindow(i),this.globalData.showMessageAlert(m.message||"Unable to start LINE login. Please try again.");return}if(de(f),this.globalData.isApp){window.scroll(0,0);var v=this.iab.create(b);v.on("loadstop").subscribe(S=>{this.screenOrientation.unlock();let y=(S==null?void 0:S.url)||"";(y.includes("/api/Social/Line/Callback")||y.includes("/api/Line/Callback"))&&!this.isCheckingLineCallback&&(this.isCheckingLineCallback=!0,this.checkLineLogin(f,v),setTimeout(()=>{this.checkLineLogin(f,v),this.isCheckingLineCallback=!1},1500))}),v.on("exit").subscribe(S=>{this.screenOrientation.lock(this.screenOrientation.ORIENTATIONS.PORTRAIT),this.checkLineLogin(f,v)}),this.startPooling(20,9e3,f,v)}else{let S=this.globalData.openLineLoginPage(b,i);if(!S){this.globalData.showMessageAlert("Popup is blocked. Please allow popups and try LINE login again.");return}this.startLineLoginResumeCheck(f,S),this.startPooling(20,9e3,f,S)}}else this.closePendingLineWindow(i),this.globalData.showMessageAlert(m.message||"Unable to start LINE login. Please try again.")},m=>{this.closePendingLineWindow(i),this.globalData.showMessageAlert("Unable to start LINE login. Please try again.")})}closePendingLineWindow(i){!i||i.closed||i.close()}startLineLoginResumeCheck(i,e){this.pendingLineLoginState=i,this.pendingLineLoginWindowRef=e,this.isWindowFocusLineLoginListening||(window.addEventListener("focus",this.handleWindowFocusLineLogin),this.isWindowFocusLineLoginListening=!0),this.startLineLoginPopupCloseWatch(i,e)}startLineLoginPopupCloseWatch(i,e){this.clearLineLoginPopupCloseWatch(),e&&(this.lineLoginPopupCloseWatchId=setInterval(()=>{e.closed&&(this.clearLineLoginPopupCloseWatch(),this.triggerLineLoginImmediateRecheck(i,e))},500))}triggerLineLoginImmediateRecheck(i=this.pendingLineLoginState,e=this.pendingLineLoginWindowRef){i&&this.checkLineLogin(i,e)}startLineLoginQuickRetry(i,e){this.clearLineLoginQuickRetry();let r=0;this.lineLoginQuickRetryId=setInterval(()=>{if(!this.pendingLineLoginState){this.clearLineLoginQuickRetry();return}r++,this.checkLineLogin(i,e),r>=4&&this.clearLineLoginQuickRetry()},1e3)}clearLineLoginPopupCloseWatch(){this.lineLoginPopupCloseWatchId&&(clearInterval(this.lineLoginPopupCloseWatchId),this.lineLoginPopupCloseWatchId=null)}clearLineLoginQuickRetry(){this.lineLoginQuickRetryId&&(clearInterval(this.lineLoginQuickRetryId),this.lineLoginQuickRetryId=null)}clearLineLoginResumeCheck(){this.pendingLineLoginState=null,this.pendingLineLoginWindowRef=null,this.clearLineLoginPopupCloseWatch(),this.clearLineLoginQuickRetry(),this.isWindowFocusLineLoginListening&&(window.removeEventListener("focus",this.handleWindowFocusLineLogin),this.isWindowFocusLineLoginListening=!1)}startPooling(i,e,r,s){this.intervalId&&(clearInterval(this.intervalId),this.counter=0,this.intervalId=null),this.intervalId=setInterval(()=>{this.checkLineLogin(r,s),this.counter++,this.counter>=i&&(clearInterval(this.intervalId),this.clearLineLoginResumeCheck(),this.closeWindowOrBrowser(s),this.logLoginPopup("close-popup-line-polling-timeout",{state:r,counter:this.counter}),this.loginService.closeLoginPopup())},e)}checkLineLogin(i,e){if(this.isCheckingLineStatus)return;let r={state:i};this.isCheckingLineStatus=!0,this.httpService.checkLineLogin(r).subscribe(s=>{if(this.isCheckingLineStatus=!1,s.code===0)s.data.isLineCallbackFinished&&(clearInterval(this.intervalId),this.clearLineLoginResumeCheck(),this.closeWindowOrBrowser(e),s.data.lineUserId?(E(),this.lineLoginService.lineLogin(s.data.lineUserId,this.loginService.loginForm[2].model.trim())):(E(),this.logLoginPopup("close-popup-line-callback-no-user-id",s.data),this.loginService.closeLoginPopup()));else{let m=[70027,70029,1470027,1470029],v=Number(s.code);
1if(m.includes(v)){clearInterval(this.intervalId),this.clearLineLoginResumeCheck(),E(),this.closeWindowOrBrowser(e),this.logLoginPopup("close-popup-line-terminal-code",s),this.loginService.closeLoginPopup();return}}},s=>{this.isCheckingLineStatus=!1})}closeWindowOrBrowser(i){i&&i.close()}close(){this.logLoginPopup("close-popup-manual"),this.loginService.closeLoginPopup(),this.isShowPwd=!1,this.loginService.loginForm[2].model=""}ngOnDestroy(){this.logLoginPopup("destroy"),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null),this.clearLineLoginResumeCheck()}closeAndNavigate(i){this.logLoginPopup("close-and-navigate",{url:i}),window.dispatchEvent(new CustomEvent(this.popupNavigateEventName,{detail:{url:i}})),this.close(),this.router.navigate([i])}};g.\u0275fac=function(e){return new(e||g)(u(he),u(ce),u(H),u(le),u(ae),u(Le),u(se,8),u(ue,8),u(pe),u(j),u(X))},g.\u0275cmp=M({type:g,selectors:[["app-login-popup"]],standalone:!0,features:[B],decls:1,vars:1,consts:[["form",""],[4,"ngIf"],[1,"popup-box","small"],[3,"click","ngClass"],[1,"icon-Close"],[1,"popup-title","no-border"],[1,"popup-block","no-border",3,"ngSubmit"],[4,"ngFor","ngForOf"],[1,"login-note"],[1,"chek-box",2,"margin-top","0px","width","50%"],["type","checkbox","id","isRememberUsername",3,"change","checked"],["for","isRememberUsername"],[1,"icon-Check"],["style","color: #78848d;font-size: 0.70rem !important;",4,"ngIf"],[3,"click"],[1,"btn-group","full-width"],["type","submit",1,"btn-default","submit"],["class","media-text",4,"ngIf"],["class","media-group",4,"ngIf"],[1,"login-advice"],[1,"title"],[1,"btn-join",3,"click"],[1,"mask","popup",3,"click"],[1,"login-form",3,"id","hidden"],[3,"ngClass"],[3,"ngModelChange","blur","keyup","mousedown","ngModel","name","type","id","maxlength","placeholder","autocomplete"],[3,"for"],["class","form",4,"ngIf"],["class","password-btn",3,"ngClass","click",4,"ngIf"],[1,"form"],[1,"error"],[1,"password-btn",3,"click","ngClass"],[2,"color","#78848d","font-size","0.70rem !important"],[1,"media-text"],[1,"media-group"],[1,"media-item",3,"click"],[1,"line-icon"]],template:function(e,r){e&1&&k(0,xe,36,27,"ng-container",1),e&2&&c("ngIf",r.shouldShowLoginPopup)},dependencies:[J,z,re,ne,Y,Z,ee,oe,te,ie,G,$,K],encapsulation:2,data:{animation:[ge]}});let n=g;return n})();export{Ke as a};

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.