PageSourceSearch

https://hitjuwa.com/build/@web/assets/OmniaWheelWidget-C44Tkwkv.js

js hitjuwa.com collected 2026-10-08 03:18:08 UTC 4,437 bytes, 1 lines download raw bytes

1import{a as d}from"./analytics-DmbqtLKU.js";import{az as g,aA as i,aH as s,aE as t,aa as p,aC as h,aR as o,P as m,aM as f,aB as w}from"./vendor-20260711-Fh9mwovN.js";import{_ as y}from"./app-C4RDAAEp.js";import"./vue-core-20260711-BLgKnbRy.js";const k={name:"OmniaWheelWidget",data(){return{wheel:null,loading:!0,loadError:!1}},computed:{availableSpins(){return this.wheel?(this.wheel.can_free_spin?1:0)+Number(this.wheel.unlocked_spins_available||0)+Number(this.wheel.extra_spins_remaining||0):0}},methods:{trackOpen(){d("hub_widget_opened",{path:"/hub",state:"selected",target:"wheel"})},retry(){d("task_next_action_selected",{path:"/hub",state:"selected",target:"retry"}),this.load()},async load(){this.loading=!0,this.loadError=!1;try{const{data:n}=await(this.$axios||window.axios).get("/api/wheel/status");if(!n.success)throw new Error("wheel_load_failed");this.wheel=n.wheel||n,d("hub_widget_load_state",{path:"/hub",state:"ready",target:"wheel"})}catch(n){this.loadError=!0,d("hub_widget_load_state",{path:"/hub",state:"error",target:"wheel",failure_kind:"unexpected"})}finally{this.loading=!1}}},created(){this.load()}},c={class:"hj-omnia-widget",role:"region","aria-label":"Wheel of Fortune"},b={class:"hj-omnia-widget-header"},v={class:"hj-omnia-widget-icon icon-wheel"},x={class:"hj-omnia-widget-body"},j={key:1,class:"hj-omnia-empty",role:"alert"},_={style:{display:"flex","align-items":"center",gap:"12px","margin-bottom":"12px"}},N={style:{width:"48px",height:"48px","border-radius":"50%",background:"rgba(245,188,63,0.08)",border:"2px solid var(--hj-gold)",display:"flex","align-items":"center","justify-content":"center"}},C={style:{"font-size":"var(--hj-font-lg)","font-weight":"700",color:"var(--hj-gold)"}},E={key:1,style:{"font-size":"var(--hj-font-xs)",color:"var(--hj-text-muted)","text-align":"center"}},O={key:3,class:"hj-omnia-empty"};function W(n,e,z,S,u,a){const r=g("router-link");return i(),s("div",c,[t("div",b,[t("span",v,[t("img",{class:"hj-hero-icon hj-hero-icon--md",loading:"lazy",src:"/img/hero-icons/ui/spin-wheel.webp",alt:"Wheel of Fortune",onError:e[0]||(e[0]=l=>{l.target.style.display="none",l.target.nextElementSibling.style.display=""})},null,32),e[3]||(e[3]=t("i",{class:"fas fa-dharmachakra hj-hero-fallback"},null,-1))]),e[5]||(e[5]=t("h2",{class:"hj-omnia-widget-title"},"Wheel",-1)),p(r,{to:"/wheel",class:"hj-omnia-widget-link",onClickNative:a.trackOpen},{default:h(()=>[...e[4]||(e[4]=[o("Open",-1)])],void 0,!0),_:1},8,["onClickNative"])]),t("div",x,[u.loading?(i(),s(m,{key:0},[e[6]||(e[6]=t("div",{class:"hj-omnia-skeleton-line w-50"},null,-1)),e[7]||(e[7]=t("div",{class:"hj-omnia-skeleton-line w-75",style:{"margin-top":"8px"}},null,-1))],64)):u.loadError?(i(),s("div",j,[e[8]||(e[8]=t("span",null,"Wheel status could not be loaded",-1)),t("button",{type:"button",class:"hj-omnia-btn btn-secondary",onClick:e[1]||(e[1]=(...l)=>a.retry&&a.retry(...l))},"Try again")])):u.wheel?(i(),s(m,{key:2},[t("div",_,[t("div",N,[t("img",{class:"hj-hero-icon hj-hero-icon--md",loading:"lazy",src:"/img/hero-icons/ui/spin-wheel.webp",alt:"Wheel",style:{width:"22px",height:"22px"},onError:e[2]||(e[2]=l=>{l.target.style.display="none",l.target.nextElementSibling.style.display=""})},null,32),e[9]||(e[9]=t("i",{class:"fas fa-dharmachakra hj-hero-fallback",style:{color:"var(--hj-gold)","font-size":"22px"}},null,-1))]),t("div",null,[t("div",C,f(a.availableSpins),1),e[10]||(e[10]=t("div",{style:{"font-size":"var(--hj-font-xs)",color:"var(--hj-text-muted)"}},"spins available",-1))])]),a.availableSpins>0?(i(),w(r,{key:0,to:"/wheel",class:"hj-omnia-btn btn-gold",style:{width:"100%"},onClickNative:a.trackOpen},{default:h(()=>[...e[11]||(e[11]=[t("i",{class:"fas fa-dharmachakra"},null,-1),o(" Spin Now ",-1)])],void 0,!0),_:1},8,["onClickNative"])):(i(),s("div",E,[e[13]||(e[13]=o(" Come back tomorrow for free spins! ",-1)),p(r,{to:"/wheel",class:"hj-omnia-widget-link",style:{display:"block","margin-top":"8px"},onClickNative:a.trackOpen},{default:h(()=>[...e[12]||(e[12]=[o("View wheel",-1)])],void 0,!0),_:1},8,["onClickNative"])]))],64)):(i(),s("div",O,[e[15]||(e[15]=t("i",{class:"fal fa-dharmachakra"},null,-1)),e[16]||(e[16]=t("span",null,"Wheel unavailable",-1)),p(r,{to:"/wheel",class:"hj-omnia-widget-link",onClickNative:a.trackOpen},{default:h(()=>[...e[14]||(e[14]=[o("Open wheel",-1)])],void 0,!0),_:1}
1,8,["onClickNative"])]))])])}const A=y(k,[["render",W]]);export{A as default};

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.