PageSourceSearch

https://www.skandland.com/dist/wap/static/js/popup_dialog.js?v=640

js skandland.com collected 2026-10-03 02:41:23 UTC 2,298 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkvue_front_shop"]=self["webpackChunkvue_front_shop"]||[]).push([[40226],{45477:function(e,t,i){i.r(t),i.d(t,{default:function(){return c}});var s=function(){var e=this,t=e._self._c;return t("div",[e._l(e.popupList,(function(e,i){return[t("PopupDialog",{key:i,attrs:{params:e.diy_style,allData:e,"show-type":e.type}})]}))],2)},u=[],l={methods:{checkUserStatus(e){let t,i,s,u=e.target_customer||[],l=JSON.parse(localStorage.getItem("loginStatus"));return u.forEach((e=>{if(1===e.type){if(1===e.value)t=!0;else if(2===e.value||3===e.value){let i=JSON.parse(localStorage.getItem("loginStatus")),s=JSON.parse(localStorage.getItem("subscriptionUserIDs"))||[],u=i.sessionId;2===e.value?(t=!0,s.includes(u)&&(t=!1),i.isLogined&&s.includes(i.customer.id)&&(t=!1)):3===e.value&&(t=!1,s.includes(u)&&(t=!0),i.isLogined&&s.includes(i.customer.id)&&(t=!0))}}else if(2===e.type)1===e.value?i=!0:2===e.value?i=!1===l.isLogined:3===e.value&&(i=!0===l.isLogined);else if(3===e.type)if(s=!1,1===e.value_type)s=!0;else if(2===e.value_type){let t=e.value_begin,i=e.value_end,u=this.$store.state.shopInfo.cartNumber;i?Number(u)>=Number(t)&&Number(u)<=Number(i)&&(s=!0):Number(u)>=Number(t)&&(s=!0)}})),!0===t&&!0===i&&!0===s},checkEffectiveTime(e){let t=!1,i=Number(e.active_begin),s=Number(e.active_end),u=(new Date).getTime()/1e3;return(0===s&&u>i||u>i&&s>u)&&(t=!0),t},checkShowPage(e){let t=!0;if(e.trigger_condition&&1===e.trigger_condition.page_view_type){let e=this.$route.name;(e.indexOf("account")>-1||e.indexOf("checkout")>-1||e.indexOf("page-popupPreview")>-1)&&(t=!1)}else t=!0;return t}}},o={name:"pagePopupDialog",mixins:[l],data(){return{}},components:{PopupDialog:()=>i.e(58704).then(i.bind(i,58704))},created(){},mounted(){let e=document.getElementsByClassName("fec-skeleton")[0];e&&e.remove()},computed:{popupList(){let e=window.baseData.popups||[],t=[];return e.forEach((e=>{let i=this.checkUserStatus(e),s=this.checkEffectiveTime(e),u=this.checkShowPage(e);if(i&&s&&u){var l,o;let i=(null===e||void 0===e||null===(l=e.diy_style)||void 0===l||null===(o=l.global)||void 0===o?void 0:o.device)||1;(!this.clientIsPhone||1!==i&&2!==i)&&(this.clientIsPhone||1!==i&&3!==i)||t.push(e)}})),t}},methods:{}},n=o,a=i(1001),r=(0,a.Z)(n,s,u,!1,null,"62026909",null),c=r.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.