PageSourceSearch

https://marvelstrikeforce.com/static/js/704.ca75a8fae0ddd37367fb.js

js marvelstrikeforce.com collected 2026-10-02 17:07:54 UTC 7,998 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkvsf=self.webpackChunkvsf||[]).push([[704],{704:function(s,e,t){t.r(e),t.d(e,{default:function(){return l}});var r=t(95353),i=t(29493),a=t(53588),o=t(2472),c=t(85471),n=t(88579),h=t(12733);var u={name:"DaisyChainBuyAllProgressModal",props:{offers:Array,offer:Object,purchaseQuantity:{type:Number,default:1},waiveLock:Boolean,purchaseSource:String,offerChoice:{type:[Number,String],default:1},startedAt:{type:Number,default:null},section:{type:String,default:"daisychain-offers"},purchaseParent:Object,preserveExistingModal:{type:Boolean,default:!1},isPurchaseToStep:{type:Boolean,default:!1}},data(){return{daisyChainIcon:"https://assets.marvelstrikeforce.com/www/img/icon-daisy-eagle.png",started:!1,purchaseResult:null}},computed:{...(0,r.aH)({progress:s=>s.payment.daisyChainPurchaseProgress,$l:s=>s.$l}),purchaseTitle(){return this.isMultiPurchase?this.$l("multi.purchase.title"):this.$l(this.isPurchaseToStep?"purchase.to.step":"buy.all")},isMultiPurchase(){return!!this.offer&&this.purchaseQuantity>1},progressIcon(){if(!this.isMultiPurchase)return this.daisyChainIcon;const s=this.offer?.choices?.find((s=>Number(s.id)===Number(this.offerChoice))),e=s?.itemCost?.item;return e?.id===h.HQ?e.icon||this.$store.state.inventory.inventoryMap[h.HQ]?.icon||"https://assets.marvelstrikeforce.com/imgs/ICON_BFYB-CUR_86909d17.png":n},purchased(){return this.progress?.purchased||0},total(){return this.progress?.total||0},progressPercent(){return this.total?Math.min(100,Math.max(0,this.purchased/this.total*100)):0},isProcessing(){return!!this.progress?.active||this.isMultiPurchase&&!(!this.progress?.preparing&&!this.progress?.refreshing)},isComplete(){return!!this.progress?.complete},currentOfferDescription(){return this.progress?.currentOfferDescription?(0,i.YY)(this.progress.currentOfferDescription):""},statusText(){return this.progress?.error?this.progress.error:this.progress?.refreshing?"Refreshing offers...":this.progress?.cancelled&&this.isProcessing?"Finishing current purchase...":this.progress?.cancelled&&this.isComplete?"Purchase stopped.":this.isComplete&&this.total>0&&this.purchased>=this.total?"Purchases complete.":this.isComplete?"Purchase stopped.":this.progress?.currentOfferName?`Purchasing offer ${this.progress.currentOfferName}...`:"Preparing purchases..."}},mounted(){this.startPurchases()},beforeDestroy(){this.isProcessing&&this.cancelDaisyChainPurchases()},methods:{...(0,r.i0)("payment",["processDaisyChainPurchases","processMultiPurchases"]),...(0,r.PY)("payment",["cancelDaisyChainPurchases","clearDaisyChainPurchaseProgress"]),getPurchasedOffer(s){if(s?.lastPurchasedOffer)return s.lastPurchasedOffer;const e=s?.purchased||0;return e<1?null:(this.offers||[]).filter((s=>s&&!s.empty&&0!==s.remainingPurchases)).slice().sort(((s,e)=>parseInt(s?.chain?.index||0)-parseInt(e?.chain?.index||0)))[e-1]},getPurchasedChoiceId(s,e){if(e?.lastPurchasedChoiceId)return e.lastPurchasedChoiceId;const t=(s?.choices||[]).find((s=>
1parseInt(s?.id)===parseInt(this.offerChoice||1)))||s?.choices?.[0];return parseInt(t?.id||this.offerChoice||1)},getResultModalType(s,e,t){if((!this.isPurchaseToStep||s?.lastDaisyChainOffer)&&!t?.cancelled&&!t?.error&&t?.purchased>=t?.total)return"lastDaisyChainOfferClaimed";const r=(s?.choices||[]).find((s=>parseInt(s?.id)===parseInt(e)));return r?.freeCost?"daisyChainFreeOfferClaimed":"daisyChainOfferClaimed"},openUcAmountErrorModal(s){const e=this.purchaseParent||this;this.$emit("close"),setTimeout((()=>{a.A.open(e,"ucAmountError",{...s?.ucAmountError||{},preserveExistingModal:this.preserveExistingModal}),this.clearDaisyChainPurchaseProgress()}),0)},openResultModal(s){if(this.isMultiPurchase)return void this.openMultiPurchaseResult(s);if(s?.ucAmountError)return void this.openUcAmountErrorModal(s);const e=this.getPurchasedOffer(s);if(!e)return this.clearDaisyChainPurchaseProgress(),void this.$emit("close");const t=this.getPurchasedChoiceId(e,s),r=this.getResultModalType(e,t,s),i=this.purchaseParent||this;this.$emit("close"),setTimeout((()=>{a.A.open(i,r,{chainId:e?.chain?.id,confirmArg:{offerId:e.id,choiceId:t}}),this.clearDaisyChainPurchaseProgress()}),0)},openMultiPurchaseResult(s){const e=this.purchaseParent||this,t=()=>{s?.purchased&&"multi-interstitial-offer"===this.purchaseSource&&c.Ay.$EventBus.$emit("MULTI_INTERSTITIAL_PURCHASE_SUCCESS",{...s.paymentSuccess,offerId:this.offer.id,purchaseQuantity:s.purchased})};this.$emit("close"),setTimeout((()=>{this.clearDaisyChainPurchaseProgress(),s?.purchased&&(s.error||s.ucAmountError)&&(this.$store.dispatch("milestones/openStampCardNotification"),this.$store.dispatch("milestones/calculateBfybProgress")),s?.ucAmountError?(t(),a.A.open(e,"ucAmountError",{...s.ucAmountError,preserveExistingModal:this.preserveExistingModal})):s?.paymentError?(t(),(0,o.Tu)(s.paymentError,{...s.errorContext,purchaseQuantity:Math.max(1,s.total-s.purchased)})):s?.error?(t(),a.A.open(e,"purchaseError",{preserveExistingModal:this.preserveExistingModal})):s?.purchased&&a.A.open(e,"paymentSuccess",{preserveExistingModal:this.preserveExistingModal,skipNextWebPopup:this.preserveExistingModal,skipOffersRefresh:!0,close:()=>{t(),!this.preserveExistingModal&&s.paymentSuccess?.offer&&a.A.openInterstitialOffer(e,{offer:s.paymentSuccess.offer})}})}),0)},async startPurchases(){if(this.started)return;this.started=!0;const s=this.isMultiPurchase?this.processMultiPurchases:this.processDaisyChainPurchases,e=await s({offers:this.offers,offer:this.offer,purchaseQuantity:this.purchaseQuantity,offerChoice:this.offerChoice,startedAt:this.startedAt,section:this.section,waiveLock:this.waiveLock,purchaseSource:this.purchaseSource,parent:this.purchaseParent||this});this.isMultiPurchase&&(e?.error||e?.ucAmountError||e?.cancelled)?this.purchaseResult=e:this.openResultModal(e)},onExitClick(){if(this.isProcessing)this.cancelDaisyChainPurchases();else{if(this.purchaseResult){const s=this.purchaseResult;return this.purchaseResult=null,void this.openMultiPurchaseResult(s)}this.clearDaisyChainPurchaseProgress(),this.$emit("close")}}}},l=(0,t(14486).A)(u,(function(){var s=this,e=s._self._c;return e("div",{staticClass:"daisychain-buy-all-progress modal-card item-modal"},[e("div",{staticClass:"modal-content-icon is-unselectable"},[e("div",{staticClass:"deco-ring"},[e("img",{staticStyle:{"margin-left":"-11px","margin-top":"-11px"},attrs:{src:s.progressIcon,alt:"",draggable:"false"}})])]),s._v(" "),e("section",{staticClass:"modal-card-body"},[e("div",{staticClass:"modal-card-content"},[e("div",{staticClass:"content-wrapper"},[e("p",{staticClass:"modal-content-title"},[s._v(s._s(s.purchaseTitle))]),s._v(" "),s.isMultiPurchase?e("p",{staticClass:"chain-progress-count"},[s._v(s._s(s.$l("multi.purchase.progress").replace("{purchased}",s.purchased).replace("{total}",s.total)))]):e("p",{staticClass:"chain-progress-count"},[s._v("Chains purchased: "+s._s(s.purchased)+" / "+s._s(s.total))]),s._v(" "),e("div",{staticClass:"chain-progress-bar",attrs:{role:"progressbar","aria-valuenow":s.purchased,"aria-valuemin":0,"aria-valuemax":s.total}},[e("div",{staticClass:"chain-progress-bar-fill",style:{width:`${s.progressPercent}%`}})]),s._v(" "),e("p",{staticClass:"chain-progress-status"},[s._v(s._s(s.statusText))]),s._v(" "),s.currentOfferDescription?e("p",{staticClass:"modal-content-description",domProps:{innerHTML:s._s(s.currentOfferDescription)}}):s._e()])]),s._v(" "),e("div",{staticClass:"modal-bg-image"}),s._v(" "),e("div",{staticClass:"modal-close-btn",on:{click:s.onExitClick}},[e("i",{staticClass:"far fa-times"})]),s._v(" "),e("div",{staticClass:"modal-top-line"}),s._v(" "),e("div",{staticClass:"chain-progress-button-wrapper"},[e("button",{staticClass:"orange-primary button chain-progress-exit-button",on:{click:s.onExitClick}},[s._m(0)])])])])}),[function(){var s=this._self._c;return s("div",{staticClass:"button-wrapper chain-progress-button-label"},[s("span",{staticClass:"uppercase"},[this._v("Exit")])])}],!1,null,"9b6290e8",null).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.