PageSourceSearch

https://www.desotogreenways.org/dist/wap/static/js/GlobalRebateBottomBar.js?v=640

js desotogreenways.org collected 2026-10-03 02:03:08 UTC 4,118 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkvue_front_shop"]=self["webpackChunkvue_front_shop"]||[]).push([[57613],{37681:function(e,t,a){a.r(t),a.d(t,{default:function(){return _}});var r=function(){var e=this,t=e._self._c;return e.hiddenBox?e._e():t("a",{staticClass:"rebate-bottom-bar",class:{hidden:e.clickButton},style:e.barStyle,attrs:{href:e.$baseUrl+"/rebate/"+e.rebateData.id},on:{click:function(t){return t.stopPropagation(),e.toInfo.apply(null,arguments)}}},[e.rebateData.rebate_content&&e.rebateData.rebate_content.rules?t("div",{staticClass:"style-msg"},[t("div",{domProps:{innerHTML:e._s(e.getBarMsg())}})]):e._e(),t("div",{staticClass:"rebate-bottom-bar-close",on:{click:function(t){return t.stopPropagation(),e.hiddenBottomBar.apply(null,arguments)}}},[t("i",{staticClass:"el-icon-close"})])])},o=[],i={name:"GlobalRebateBottomBar",data(){return{clickButton:!1,hiddenBox:!1,defaultFixedBgStyle:{text_color:"#ffffff",underpainting_color1:"#FE4747",underpainting_color2:"#FA7F67"}}},created(){},mounted(){let e=document.getElementsByClassName("fec-skeleton")[0];e&&e.remove()},computed:{rebateData(){var e;let t=(null===(e=window)||void 0===e?void 0:e.baseData)||this.$store.state.decorate.baseData||{};return t.rebate||{}},barStyle(){return 1===this.rebateData.global_banner_color_type?{"--re-bar-bg":`linear-gradient(to right,${this.defaultFixedBgStyle.underpainting_color1},${this.defaultFixedBgStyle.underpainting_color2} )`,"--re-text-color":this.defaultFixedBgStyle.text_color}:{"--re-bar-bg":`linear-gradient(to right,${this.rebateData.global_banner_color_value.underpainting_color1},${this.rebateData.global_banner_color_value.underpainting_color2} )`,"--re-text-color":this.rebateData.global_banner_color_value.text_color}}},methods:{hiddenBottomBar(e){e.preventDefault?e.preventDefault():e.returnValue=!1,this.clickButton=!0,setTimeout((()=>{this.hiddenBox=!0}),1e3),sessionStorage.setItem("show_rebate","1")},toInfo(e){e.preventDefault?e.preventDefault():e.returnValue=!1,setTimeout((()=>{this.hiddenBox=!0}),1e3),sessionStorage.setItem("show_rebate","1"),this.$href("/rebate/"+this.rebateData.id)},getBarMsg(){return this.rebateData.rebate_type&&this.rebateData.rebate_content&&this.rebateData.rebate_content.rules?this.getTypeIsMsg(this.rebateData.rebate_content.rules[0]):""},getTypeIsMsg(e){let t="";return 1==this.rebateData.rebate_type?t=this.getType1Msg(e):2==this.rebateData.rebate_type?t=this.getType2Msg(e):3==this.rebateData.rebate_type?t=this.getType3Msg(e):4==this.rebateData.rebate_type?t=this.getType4Msg(e):5==this.rebateData.rebate_type&&(t=this.getType5Msg(e)),t},getType1Msg(e){let t=`<b>${this.$currencyConversion(this.$money,this.$Price(e.buy_amount))}</b>`,a=`<b>${this.$currencyConversion(this.$money,this.$Price(e.discount_amount))}</b>`,r=this.$L("buy_total_more_and_save_derate").replace("{{i_i_total}}",t);return r=r.replace("{{i_i_derate}}",a),r},getType2Msg(e){let t=`<b>${e.buy_count}</b>`,a=`<b>${e.discount_off+"% off"}</b>`,r=this.$L("buy_more_items_save_discount").replace("{{i_i_total}}",t);return r=r.replace("{{i_i_discount}}",a),r},getType3Msg(e){let t=`<b>${e.position}</b>`,a=`<b>${e.discount_off+"% off"}</b>`,r=this.$L("buy_more_items_save_off").replace("{{i_i_position}}",t);return r=r.replace("{{i_i_discount}}",a),r},getType4Msg(e){let t=`<b>${e.buy_count}</b>`,a=`<b>${this.$currencyConversion(this.$money,this.$Price(e.discount_amount))}</b>`,r=this.$L("buy_total_items_and_save_money").replace("{{i_i_count}}",t);return r=r.replace("{{i_i_money}}",a),r},getType5Msg(e){let t=`<b>${this.$currencyConversion(this.$money,this.$Price(e.buy_amount))}</b>`,a=`<b>${e.discount_off+"% off"}</b>`,r=this.$L("buy_total_money_and_save_off").replace("{{i_i_total}}",t);return r=r.replace("{{i_i_discount}}",a),r},replaceTemplate(e,t){let a=this.$baseUrl+"/pages/"+this.formData.text_page_handle,r="";return r=1===this.formData.click_new_page?`<a href="${a}" target="_blank">${this.$T(t.name,t.lang_params)}</a>`:`<a href="${a}" >${this.$T(t.name,t.lang_params)}</a>`,e.replace(/\{{[^\}]+\}}/,r)}}}
1,n=i,s=a(1001),l=(0,s.Z)(n,r,o,!1,null,"fb8a5c4e",null),_=l.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.