PageSourceSearch

https://nusagold.com.my/assets/PremiumIndex-DhCPv64_.js

js nusagold.com.my collected 2026-10-10 01:54:07 UTC 4,236 bytes, 1 lines download raw bytes

1import{G as S}from"./GeneralLineChart-DleB98A7.js";import{P}from"./PremiumForm-CoG2ZFty.js";import{f as C}from"./number-format-BAldXnqs.js";import{r as v}from"./price-update-DOoNycdy.js";import{d as R,r as m,m as L,n as x,w as F,o as B,a9 as T,am as V,p as k,_ as E,c as N,b as e,v as b,q as _,g as w,y as h,F as y,h as G}from"./index-BiNElWAS.js";import{u as $}from"./premium-CqB7D6Jj.js";import{u as A}from"./price-Bq9pgzqX.js";import"./multiselect-Dt1ifPrq.js";import"./inputmask-CAoaweY4.js";import"./index.esm-BRoZROyn.js";const M=R({components:{GeneralLineChart:S,PremiumForm:P},setup(){const s=m(),t=m(),u=m(),a=$(),o=m(),r=m(),l=A(),g=L(),n=x(),d=k("showToast"),p=async()=>{var i,c;r.value.disabled=!0,(i=r.value)==null||i.setAttribute("data-kt-indicator","on"),await f(),(c=r.value)==null||c.removeAttribute("data-kt-indicator"),r.value.disabled=!1},f=async()=>{(await o.value.formRef.validate()).valid&&(await a.updatePremium(o.value.formRef.values),n.getStatus()!="error"?(d(),await a.fetchPremiumList(),await g.fetchCurrentCorporate(),o.value.setValues(a.premium)):(o.value.formRef.setErrors(n.getErrors()),d()))};return F(l.arrayOfPricesSell,()=>{v(s.value,t.value),v(s.value,u.value)}),B(async()=>{await a.fetchPremiumList(),o.value.setValues(a.premium),o.value.loadBudget(),T(()=>{v(s.value,t.value),v(s.value,u.value),V()})}),{btnSubmitFormRef:r,premiumFormRef:o,priceStore:l,generalLineChartBuyingRef:t,generalLineChartBuyingOwnRef:u,generalLineChartSellingRef:s,formatNumber:C,btnSubmitForm:p}}}),O={class:"row"},j={class:"col-12"},z={class:"card"},I={class:"card-body"},D={class:"row"},U={class:"col-6"},q={class:"h-100 card card-flush"},W={class:"card-body px-0"},Y={class:"row px-5"},H={class:"col-md-12"},J={class:"col-md-12 text-end"},K={class:"col-6"},Q={class:"h-100 card card-flush"},X={class:"card-body px-0"},Z={class:"row px-5"},ee={class:"col-md-12"},se={class:"col-md-12 text-end"},te={class:"card-footer text-end"};function oe(s,t,u,a,o,r){var n,d,p,f,i,c;const l=w("GeneralLineChart"),g=w("PremiumForm");return G(),N("div",O,[e("div",j,[e("div",z,[t[4]||(t[4]=e("div",{class:"card-header"},[e("div",{class:"card-title"},[b(" Premium Settings "),e("i",{class:"bi bi-info-circle ms-2 cursor-pointer","data-bs-toggle":"tooltip","data-bs-placement":"top","data-bs-html":"true",title:"Adds an additional amount to the <strong>current gold price</strong> to split the profits between top level and low level earnings."})]),e("div",{class:"card-toolbar"})],-1)),e("div",I,[e("div",D,[e("div",U,[e("div",q,[t[1]||(t[1]=e("div",{class:"pt-5 px-5"},[e("div",{class:"card-title d-flex justify-content-between"},[e("span",{class:"fs-5 fw-bold text-gray-900 pt-2 me-2 lh-1 ls-n2"}," WE SELL (RM/g) ")])],-1)),e("div",W,[e("div",Y,[e("div",H,[_(l,{ref:"generalLineChartBuyingRef"},null,512)]),e("div",J,[e("span",{class:h(["fs-1 fw-bold lh-1 ls-n2",(n=s.priceStore.goldPrice)==null?void 0:n.buyTextClass])},[b(y(s.formatNumber((d=s.priceStore.goldPrice)==null?void 0:d.buy))+" ",1),e("i",{class:h(["bi fs-3 fw-bold me-5",(p=s.priceStore.goldPrice)==null?void 0:p.buyIconClass])},null,2)],2)])])])])]),e("div",K,[e("div",Q,[t[2]||(t[2]=e("div",{class:"pt-5 px-5"},[e("div",{class:"card-title d-flex justify-content-between"},[e("span",{class:"fs-5 fw-bold text-gray-900 pt-2 me-2 lh-1 ls-n2"}," YOUR SELL (RM/g) ")])],-1)),e("div",X,[e("div",Z,[e("div",ee,[_(l,{ref:"generalLineChartBuyingOwnRef"},null,512)]),e("div",se,[e("span",{class:h(["fs-1 fw-bold lh-1 ls-n2",(f=s.priceStore.goldPrice)==null?void 0:f.buyTextClass])},[b(y(s.formatNumber((i=s.priceStore.goldPrice)==null?void 0:i.ownBuy))+" ",1),e("i",{class:h(["bi fs-3 fw-bold me-5",(c=s.priceStore.goldPrice)==null?void 0:c.buyIconClass])},null,2)],2)])])])])])]),_(g,{formType:"create",ref:"premiumFormRef"},null,512)]),e("div",te,[e("button",{id:"editDesignationModalSubmit",type:"button",ref:"btnSubmitFormRef",onClick:t[0]||(t[0]=ae=>s.btnSubmitForm()),class:"btn btn-primary"},t[3]||(t[3]=[e("span",{class:"indicator-label"}," Update Premium ",-1),e("span",{class:"indicator-progress"},[b(" Please wait... "),e("span",{class:"spinner-border spinner-border-sm align-middle ms-2"})],-1)]),512)])])])])}const ve=E(M,[["render",oe]]);export{ve 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.