PageSourceSearch

https://static.cellphones.com.vn/9495255.js

js cellphones.com.vn collected 2026-09-24 19:24:11 UTC 8,283 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{1402:function(e,t,n){"use strict";n(977)},1899:function(e,t,n){"use strict";n.r(t);n(18),n(15),n(23),n(24),n(10),n(6),n(13);var o=n(0),r=n(3),c=(n(5),n(8),n(33),n(27),n(16),n(45),n(47),n(11)),l=n(73),m=n(236);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){Object(r.a)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var h={name:"PopupEmail",data:function(){return{active:!1,email:"",phone:"",timeoutPopup:null}},computed:v(v(v(v({},Object(c.e)("province",["province"])),Object(c.e)("login",["user"])),Object(c.e)("layout",["headerHeight"])),Object(c.e)("json-server",["dynamicConfig"])),watch:{user:{deep:!0,handler:function(){this.user.loggedIn&&clearTimeout(this.timeoutPopup)}}},mounted:function(){var e=this;this.$nextTick(Object(o.a)(regeneratorRuntime.mark(function t(){var n,o,title,r;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(null===(n=e.dynamicConfig)||void 0===n||null===(n=n.theme_config_cps)||void 0===n||null===(n=n.paths_without_popup_email)||void 0===n||!n.includes(e.$route.path)){t.next=1;break}return t.abrupt("return");case 1:return t.next=2,e.$cookies.get("subscriber_popup");case 2:if(r=t.sent){t.next=3;break}r=!1;case 3:o=r,e.user.loggedIn&&(o=!0),o||(title=document.getElementsByTagName("title")[0].innerHTML,e.timeoutPopup=setTimeout(function(){e.pushSimpleEventToGA(title,"view_popup_email",{regionName:12869===e.province.company_id?"Miền Nam_7":"Miền Bắc_1",provinceName:e.province.name}),e.toggleActive(!0);e.$cookies.set("subscriber_popup",!0,{maxAge:"2592000",path:"/",domain:"cellphones.com.vn"}),clearTimeout(e.timeoutPopup)},3e4));case 4:case"end":return t.stop()}},t)})))},methods:v(v({customRegex:l.m,lockScroll:l.x,pushSimpleEventToGA:m.h},Object(c.b)("loader",["switchLoading"])),{},{toggleActive:function(e){var t,n,o;this.active=e,this.lockScroll(e);var r=null===(t=document)||void 0===t?void 0:t.getElementById("subscriberEmailOverlay"),c=null===(n=document)||void 0===n?void 0:n.getElementById("cpsHeader"),l=(null==c?void 0:c.offsetTop)||0,m=(null==c?void 0:c.offsetHeight)||0,d=l-(null===(o=window)||void 0===o?void 0:o.scrollY),v=(d>0?d:0)+m;r.style.top="".concat(v,"px"),r.style.height="calc(100% - ".concat(v,"px)")},submitForm:function(){var e=this;return Object(o.a)(regeneratorRuntime.mark(function t(){var n,o,r,c,l,m;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n="https://05ae8dd7.sibforms.com/serve/MUIFAMeCvg_6bybliM8fe8BT_TU5ycg-X-wsIBESHngTl-dev3Lk81lWTtUjHhnBbFvCN5Oq_4DEcevsjmvmqt-OrA_VPfhEu2db6HDEQIs0XsBE2f-dOSLj0d3988oKjA53WtyWbJMs258cBYygfQfXnHGCsmVuoj0Me4wN_3tbxhKSCi00lfwNuhGbN_u-vn9Y6EP_P3FC6Bd_?isAjax=1",o=/^(([^<>()[\].,;:\s@"]+(\.[^<>()[\].,;:\s@"]+)*)|(".+"))@(([^<>()[\].,;:\s@"]+\.)+[^<>()[\].,;:\s@"]{2,})$/i,r=!0,""!==e.email&&!1!==o.test(e.email)){t.next=1;break}return r=!1,e.$alertMessage({message:"Bạn chưa điền đúng email",icon:"CircleExclamation",type:"error"}),t.abrupt("return",!1);case 1:if(console.log("Check email:"+r),""===e.phone||e.customRegex(e.phone,"phone")){t.next=2;break}return r=!1,e.$alertMessage({message:"Bạn chưa điền đúng số điện thoại",icon:"CircleExclamation",type:"error"}),t.abrupt("return",!1);case 2:if(console.log("Check phone:"+r),(c=new FormData).append("EMAIL",e.email),c.append("SMS__COUNTRY_CODE","+84"),c.append("SMS",e.phone),c.append("email_address_check",""),c.append("locale","en"),!0!==r){t.next=6;break}return e.switchLoading(!0),t.prev=3,t.next=4,e.$axios.post(n,c,{includeClientTypeHeader:!1});case 4:200===(l=t.sent).status&&(e.$alertMessage({message:l.data.message,icon:"CircleCheck",type:"success"}),m={maxAge:31536e5,path:"/",domain:"cellphones.com.vn"},e.$cookies.set("subscriber_popup",!0,m),e.toggleActive(!1),e.pushSubEventToGA("PopupEmail",e.email,e.phone,"")),e.switchLoading(!1),t.next=6;break;case 5:t.prev=5,t.catch(3),e.$alertMessage({message:"Xin lỗi! Số điện thoại hoặc email của quý khách đã từng đăng ký chương trình này.",icon:"CircleExclamation",type:"warning"}),e.switchLoading(!1);case 6:case"end":return t.stop()}},t,null,[[3,5]])}))()},pushSubEventToGA:function(title,e,t,n){console.time("pushSubEventToGA"),setTimeout(function(){var o=window.dataLayer||[];o.push({user_data:{email_address:e,phone_number:t,address:{first_name:n,last_name:"",city:"",region:"",district:"",ward:"",postal_code:"",country:""}
1,form_key:"",form_name:"PopupEmail",form_vs:"",cf:"cf_51=".concat(title," || cf_53=").concat(e?1:0)},event:"generate_lead",eventAction:"generate_lead",cdpData:{properties:{gender:"",birthYear:""}},eventModel:{value:0}}),console.log("DataLayer:"),console.log(o)},500),console.timeEnd("pushSubEventToGA")}})},f=(n(1402),n(44)),component=Object(f.a)(h,function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],attrs:{id:"subscriberEmail"}},[t("div",{staticClass:"subscriber-popup box-banner"},[t("div",{staticClass:"subscriber-popup-body"},[t("button",{staticClass:"cancel-button-top",on:{click:function(t){return e.toggleActive()}}},[t("RenderHtml",{staticClass:"icon",attrs:{html:e.$icons().XMark}})],1),e._v(" "),e.active?t("div",{attrs:{id:"subscriber-form"}},[t("p",{staticClass:"subscribe-title"},[e._v("ĐĂNG KÝ NHẬN TIN KHUYẾN MÃI")]),e._v(" "),t("p",{staticClass:"subscribe-title text-red"},[e._v("(*) Nhận Ngay Voucher 10%")]),e._v(" "),t("p",{staticClass:"subscribe-tip"},[e._v("*Voucher sẽ được gửi sau 24h, chỉ áp dụng cho khách hàng mới")]),e._v(" "),t("div",{staticClass:"control mb-3"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.email,expression:"email"}],staticClass:"input subscriber-form-email",attrs:{id:"inputEmail",type:"text",name:"EMAIL",autocomplete:"off",placeholder:"Email *",required:""},domProps:{value:e.email},on:{input:function(t){t.target.composing||(e.email=t.target.value)}}})]),e._v(" "),t("div",{staticClass:"control mb-3"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.phone,expression:"phone"}],staticClass:"input subscriber-form-phone",attrs:{id:"inputPhone",type:"tel",name:"SMS",autocomplete:"off",maxlength:"10",placeholder:"Số điện thoại"},domProps:{value:e.phone},on:{input:function(t){t.target.composing||(e.phone=t.target.value)}}})]),e._v(" "),e._m(0),e._v(" "),t("div",{staticClass:"group-btn"},[t("button",{staticClass:"subscriber-form-submit button button-default",on:{click:function(t){return e.submitForm()}}},[e._v("\n            ĐĂNG KÝ NGAY\n          ")]),e._v(" "),t("button",{staticClass:"subscriber-form-submit button cancel-button",on:{click:function(t){return e.toggleActive(!1)}}},[e._v("\n            Bữa khác nha!\n          ")])])]):e._e()]),e._v(" "),t("div",{staticClass:"subscriber-popup-header"},[t("div",{staticClass:"subscriber-header-image"},[t("nuxt-img",{attrs:{provider:"CPS_IMG_PROVIDER",format:"webp",src:"https://cdn2.cellphones.com.vn/x/media/wysiwyg/Voucher.gif",alt:"Pop up Email"}})],1)])]),e._v(" "),t("div",{staticClass:"header-overlay",class:e.active?"active":"",attrs:{id:"subscriberEmailOverlay"},on:{click:function(t){return e.toggleActive(!1)}}})])},[function(){var e=this,t=e._self._c;return t("div",{staticClass:"checkbox mb-3 disabled"},[t("label",{staticClass:"subscriber-form-label-rule"},[t("input",{staticClass:"subscriber-form-rule",attrs:{id:"OPT_IN",checked:"",disabled:"",type:"checkbox",value:"1",name:"OPT_IN"}}),e._v(" "),t("a",{attrs:{href:"https://cellphones.com.vn/tos?part=privacy-policy",target:"_blank",rel:"noopener"}},[e._v("Tôi đồng ý với\n              điều khoản của\n              CellphoneS")])])])}],!1,null,"4670fd2e",null);t.default=component.exports},977:function(e,t,n){e.exports={}}}]);

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.