PageSourceSearch

https://www.letoile.kz/dist/LoyaltyProgramModalV2-ff081d8d.js

js letoile.kz collected 2026-09-29 22:49:02 UTC 4,498 bytes, 16 lines download raw bytes

1import{b as i,m as c,d as u,h as d}from"./vendor-vue-15488850.js";import{cg as _,b as m}from"./integrations-segmentstream-d01b6c8e.js";import{L as v,a as y}from"./index-e3a5a1c2.js";import{n as h}from"./vendor-splide-d9a079dc.js";import"./vendor-a9303273.js";import"./locales-ru-bba83fc0.js";import"./locales-cn-79b85608.js";import"./config-mapping-47fd6e48.js";import"./vendor-lodash-59d95206.js";import"./vendor-date-fns-8fd1b05b.js";import"./vendor-pswp-a811abc6.js";import"./storage-cbd59dc5.js";import"./svg-icons-1599cbf9.js";const s={name:"LoyaltyProgramModalV2",components:{LeButton:v,LeIcon:y},props:{payload:{type:Object,required:!0}},data(){return{isInnerLinkClicked:!1,isTourOnModalAvailable:!1,status:_.standard}},computed:{...i("features",["webCustomStyleParams"]),...c("profile",["loyaltyPromoInfo"]),title(){return this.loyaltyPromoInfo.header},text(){return this.loyaltyPromoInfo.message},bonusesCount(){return Number(this.loyaltyPromoInfo.promoValue)},formattedText(){const a=/<bonus>/g,t=/<\/bonus>/g;return this.text.replace(a,'<span class="loyalty-modal-v2__bonuses-count">').replace(t,"</span>")},standardCardBackgroundUrl(){return this.webCustomStyleParams.standardCardBackgroundIcon?`url("${this.webCustomStyleParams.standardCardBackgroundIcon}")`:null},cashbackInfo(){return this.getCardBlockInfo("FrontCashbackText","FrontCashbackValue")},discountInfo(){return this.getCardBlockInfo("FrontDiscountText","FrontDiscountValue")},formattedBonusesCount(){return this.getFormattedNumber(this.bonusesCount)}},mounted(){this.$emit("modalContentLoaded"),this.init()},beforeDestroy(){var a;if(!this.isInnerLinkClicked){if((a=this.payload)!=null&&a.isPersonalPriceSetting&&!this.isTourOnModalAvailable){this.$modal.open("PersonalPriceModal",{},{isBottomSide:this.$hasMobileScreenSize,showCloseButton:!this.$hasMobileScreenSize,isRounded:!this.$hasMobileScreenSize});return}this.$url.fullRefresh()}},methods:{...u("productTour",["getProductTourInfo"]),async init(){this.isTourOnModalAvailable=await this.isTourAvailable("configurator")},async isTourAvailable(a){const t=await this.getProductTourInfo(a);return t==null?void 0:t.available},goToCardActivation(){this.isInnerLinkClicked=!0,this.$router.push(m.account.profile),this.$modal.close()},closeModal(){this.$modal.close()},getCardBlockInfo(...a){const t={};for(let o=0;o<a.length;o++){const l=a[o],e=this.webCustomStyleParams[this.status+l];if(!e)return;t[`value${o+1}`]=e}return{...t}},getFormattedNumber(a){return a?Number(a).toLocaleString():0}}},n=()=>{d((a,t)=>({b11c4ff6:a.standardCardBackgroundUrl}))},r=s.setup;s.setup=r?(a,t)=>(n(),r(a,t)):n;const f=s;var p=function(){var t=this,o=t._self._c;return o("div",{staticClass:"loyalty-modal-v2"},[o("LeIcon",{staticClass:"loyalty-modal-v2__close-icon",attrs:{name:"close-v2"},on:{click:t.closeModal}}),t._v(" "),t.$hasMobileScreenSize?o("h2",{staticClass:"loyalty-modal-v2__title"},[t._v(`
2    `+t._s(t.title)+`
3  `)]):t._e(),t._v(" "),o("div",{staticClass:"loyalty-modal-v2__card"},[o("div",{staticClass:"loyalty-modal-v2__top-left"},[t.bonusesCount?o("div",{staticClass:"loyalty-modal-v2__bonuses"},[o("LeIcon",{directives:[{name:"fragment",rawName:"v-fragment"}],attrs:{name:"bonuses-icon-v4"}}),t._v(`
4        `+t._s(t.formattedBonusesCount)+`
5      `)],1):t._e()]),t._v(" "),t.cashbackInfo?o("div",{staticClass:"loyalty-modal-v2__cashback"},[o("div",{staticClass:"loyalty-modal-v2__card-text"},[t._v(t._s(t.cashbackInfo.value1))]),t._v(`
6      `+t._s(t.cashbackInfo.value2)+`
7    `)]):t._e(),t._v(" "),t.discountInfo?o("div",{staticClass:"loyalty-modal-v2__discount"},[o("div",{staticClass:"loyalty-modal-v2__card-text"},[t._v(t._s(t.discountInfo.value1))]),t._v(`
8      `+t._s(t.discountInfo.value2)+`
9    `)]):t._e()]),t._v(" "),t.$hasMobileScreenSize?t._e():o("h2",{staticClass:"loyalty-modal-v2__title"},[t._v(`
10    `+t._s(t.title)+`
11  `)]),t._v(" "),o("p",{staticClass:"loyalty-modal-v2__text",domProps:{innerHTML:t._s(t.formattedText)}}),t._v(" "),o("div",{staticClass:"loyalty-modal-v2__btn-container"},[o("LeButton",{attrs:{isRounded:"",theme:"primary"},on:{click:t.goToCardActivation}},[t._v(`
12      `+t._s(t.$t("base:button.fillTheFormOfCardActivation"))+`
13    `)]),t._v(" "),o("LeButton",{attrs:{isRounded:"",theme:"secondary"},on:{click:t.closeModal}},[t._v(`
14      `+t._s(t.$t("base:button.close"))+`
15    `)])],1)],1)},b=[],C=h(f,p,b,!1,null,null,null,null);const F=C.exports;export{F as default};
16//# sourceMappingURL=LoyaltyProgramModalV2-ff081d8d.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.