PageSourceSearch

https://bluettipower.nz/cdn/shop/t/5/assets/bluetti.bluetti-wheel-actions.RIGOmBdk.min.js

js bluettipower.nz collected 2026-10-08 02:12:03 UTC 3,854 bytes, 1 lines download raw bytes

1import{a as t,p as e}from"./bluetti.theme.BTgxbZnO.min.js";import{b as i}from"./bluetti.wheel-template.9d38RYVY.min.js";import{getFingerprint as s}from"./bluetti.fingerprint.XiXFDwgB.min.js";import"./bluetti.preload-helper.DTdAas1V.min.js";import"./bluetti.modulepreload-polyfill.YP0FEG5d.min.js";import"./bluetti.vendor-swiper.CZnIhgBo.min.js";import"./bluetti.constants.DkBBy2jB.min.js";import"./bluetti.vendor.DOtX1JGt.min.js";import"./bluetti.utils.BXYEwbPH.min.js";import"./bluetti.header-nav.CLGakfby.min.js";const{winningActions:r}=window.Shopify.wheelI18n;class n extends window.HTMLElement{constructor(){super(),this.sectionId=this.getAttribute("section-id")||this.closest("bluetti-wheel").getAttribute("section-id"),this.isModal=this.closest("bluetti-wheel").hasAttribute("modal"),this.addEventListener("click",this.onClick.bind(this)),t(`wheel-ready:${this.sectionId}`,this.render.bind(this))}render({wheel:t,customer:e}){this.wheel=t;const{email:s,isNewUser:n,isSubscribe:o}=e,{status:l,limitUser:h,consumptionType:a}=t,m=2===h&&n||3===h&&!n||1===h||4===h;if(1===l)return this.innerHTML="",void this.setAttribute("hidden","");if(2!==l)3===l&&(this.removeAttribute("hidden"),this.innerHTML=i({className:"bg-primary-500 text-white hover:bg-primary-600 lg:bg-white lg:text-primary-500 lg:hover:bg-gray-100",text:s?r.myPrize||"查看我的奖品":r.loginPrize||"立即登录,查看我的奖品",eventName:s?"open-my-prize":"login"}));else{if(!s)return this.removeAttribute("hidden"),void(this.innerHTML=i({className:"bg-primary-500 text-white hover:bg-primary-600 lg:bg-white lg:text-primary-500 lg:hover:bg-gray-100",text:r.login||"立即登录,参与抽奖",eventName:"login"}));switch(a){case 2:case 4:case 5:this.removeAttribute("hidden"),this.innerHTML=i({className:"bg-primary-500 text-white hover:bg-primary-600 lg:bg-white lg:text-primary-500 lg:hover:bg-gray-100",text:s?r.myPrize||"我的奖品":r.login||"立即登录,参与抽奖",eventName:s?"open-my-prize":"login"});break;case 3:this.removeAttribute("hidden"),this.innerHTML=m?i({className:"bg-primary-500 text-white hover:bg-primary-600 lg:bg-white lg:text-primary-500 lg:hover:bg-gray-100",text:o?r.myPrize||"我的奖品":r.subscription||"订阅并获得抽奖资格",eventName:o?"open-my-prize":"subscription"}):""}}}async onClick(t){const{target:i}=t;if(i.hasAttribute("login"))e("login",{redirectId:this.isModal?"":`#shopify-section-${this.sectionId}`,modal:this.isModal?"show":""});else{if(this.showButtonLoading(i),i.hasAttribute("subscription")){if(!i.closest("bluetti-wheel").querySelector('input[name="agree"]').checked)return void e(`wheel-subscribe-agree:${this.sectionId}`,{});this.showButtonLoading(i);try{const t=await s(),i={...this.wheel,visitorId:t};e(`subscription:${this.sectionId}`,i)}catch(r){e(`subscription:${this.sectionId}`,this.wheel)}return}i.hasAttribute("open-my-prize")&&e(`open-my-prize:${this.sectionId}`,{from:"订单抽奖我的奖品"})}}showButtonLoading(t){t.disabled=!0;const e=t.querySelector("svg");if(!e)return;const i=document.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("class","js-btn-spinner w-5 h-5"),i.setAttribute("style","animation:spin 1s linear infinite;"),i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("fill","none"),i.setAttribute("viewBox","0 0 24 24"),i.innerHTML='<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>\n      <path opacity="0.75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>',e.replaceWith(i)}hideButtonLoading(t){var e;t.disabled=!1,null==(e=t.querySelector(".js-btn-loading"))||e.remove()}}window.customElements.whenDefined("bluetti-wheel").then(()=>{window.customElements.define("bluetti-wheel-actions",n)});

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.