PageSourceSearch

https://alpinegold.exchange/scripts/2117.c487f98b36a814ab1a64.js

js alpinegold.exchange collected 2026-09-30 11:21:26 UTC 12,253 bytes, 2 lines download raw bytes

1/*! For license information please see 2117.c487f98b36a814ab1a64.js.LICENSE.txt */
2"use strict";(self.webpackChunkdigital_world_trader=self.webpackChunkdigital_world_trader||[]).push([[2117],{52117:function(e,t,a){a.r(t),a.d(t,{default:function(){return P}}),a(35890);var c=a(96540),r=a.n(c),l=a(52091),i=a.n(l),n=a(11775),s=a(40542),o=a(78465),d=a.n(o),m=a(29863),u=a(54625),p=a(9407);const y=(0,p.A)("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]),f=(0,p.A)("fish",[["path",{d:"M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z",key:"15baut"}],["path",{d:"M18 12v.5",key:"18hhni"}],["path",{d:"M16 17.93a9.77 9.77 0 0 1 0-11.86",key:"16dt7o"}],["path",{d:"M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33",key:"l9di03"}],["path",{d:"M10.46 7.26C10.2 5.88 9.17 4.24 8 3h5.8a2 2 0 0 1 1.98 1.67l.23 1.4",key:"1kjonw"}],["path",{d:"m16.01 17.93-.23 1.4A2 2 0 0 1 13.8 21H9.5a5.96 5.96 0 0 0 1.49-3.98",key:"1zlm23"}]]);var h=a(7913),v=a(52036);const g=(0,p.A)("feather",[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]]);var E=a(76898),N=a(41568),k=a(44664),_=a(590),w=a(48309),b=a(76081),A=a(35105);const x=[{slug:"hunting-license",icon:y,title:"Hunting License"},{slug:"fishing-license",icon:f,title:"Fishing License"},{slug:"hunt-fish-combo-license",icon:h.A,title:"Hunt/Fish Combination License"},{slug:"trapping-license",icon:v.A,title:"Trapping License"},{slug:"falconry-permit",icon:g,title:"Falconry Permit"},{slug:"guide-outfitter-license",icon:h.A,title:"Guide / Outfitter License"},{slug:"apiary-license",icon:E.A,title:"Apiary / Beekeeper License"},{slug:"poultry-license",icon:N.A,title:"Poultry License"},{slug:"livestock-brand-registration",icon:k.A,title:"Livestock Brand Registration"}];var P=({d:e,mobileOpen:t,setMobileOpen:a})=>{const[l,o]=(0,c.useState)([]),[p,y]=(0,c.useState)({}),[f,h]=(0,c.useState)({}),v=(0,c.useRef)(new Set),g=(0,c.useRef)({}),E=new b.E("https://dex.digitalworld.global");(0,c.useEffect)(()=>(N(),()=>{Object.values(g.current||{}).forEach(e=>clearInterval(e)),g.current={}}),[]);const N=async()=>{try{const e=await m.A.get("/dashboard/licenses/recreational-applications"),t=e?.data?.data||{},a={};x.forEach(e=>{a[e.slug]=Array.isArray(t[e.slug])?t[e.slug]:[]});const c=[];Object.keys(a).forEach(e=>{(a[e]||[]).forEach(t=>{const a={...t,certificate_type:e,uuid:t.uuid||t.id||`${e}-${t.id||Math.random().toString(36).slice(2,8)}`,payment_status:t.payment_status||(t.status&&"paid"===String(t.status).toLowerCase()?"Paid":"Pending"),date_of_birth:t.date_of_birth||t.dob||null,applicant_photo_file_url:t.applicant_photo_file_url||(t.photo_file?t.photo_file.startsWith("http")?t.photo_file:null:t.applicant_photo_file_url)||null};c.push(a)})}),o(c)}catch(e){console.error("Error fetching recreational license applications",e),o([])}},k=async(e,t="recreational")=>{const a=new FormData;a.append("certificate_id",e),a.append("certificate_type",t);const c=f[e];c&&a.append("verkey",c);try{const t=await m.A.post("/dashboard/certificates/status/paid",a);if(g.current[e]&&(clearInterval(g.current[e]),delete g.current[e],y({...g.current})),t?.data?.success){try{await d().update({title:"Payment received ✅",html:"Processing your application…",timer:void 0,showConfirmButton:!1})}catch(e){}try{await d().close()}catch(e){}d().fire("Success",t.data.message,"success").then(()=>{N()})}else{try{await d().close()}catch(e){}d().fire("Error","Payment update failed. Please contact support.","error")}}catch(e){console.error("Update payment failed",e),d().fire("Error","Payment update failed. Please contact support.","error")}finally{v.current.delete(e)}},P=(t,a,c,n)=>{const s=(e=>l.filter(t=>t.certificate_type===e))(t);return s.length>0?s.map((c,l)=>r().createElement("div",{className:"col-xl-4 col-lg-6 col-md-6",key:`${t}-${c.id||c.uuid||l}`},r().createElement("div",{className:"certificate-section"},r().createElement("div",{className:`certificate-icon-title \n                ${0===l?"first-item":""} \n                ${"Paid"===c.payment_status?"has-download":""}`},0===l&&r().createElement(r().Fragment,null,r().createElement("div",{className:"iconBx"},"  ",n&&r().createElement(n,{size:18})),r().createElement("h3",null,a,r().createElement(u.N_,{to:`/licenses/${t}`,className:"create-link ms-1"},r().createElement(_.A,{size:"16"})))),"Paid"===c.payment_status&&r().createElement(u.N_,{to:"#",className:"download-button",onClick:e=>{e.preventDefault(),(async(e,t)=>{try{const a=`/dashboard/licenses/${e}/certificate/${t}/download`,c=await m.A.get(a);c?.data?.success&&c.data.data?window.location.href=c.data.data:d().fire("Error",c?.data?.message||"Certificate not found.","error")}catch(e){d().fire("Download Failed","Could not download certificate.","error")}})(t,c.uuid)}},r().createElement(w.A,{size:15,className:"me-1"})," Download Certificate")),r().createElement("div",{className:"certificate license-certficate"},r().createElement("div",{className:"certificate-body",style:{filter:"Paid"===c.payment_status?"none":"blur(2px)"}},r().createElement("div",{className:"water-mark-logo "},r().createElement("img",{src:i()["utah-watermark-logo"],alt:"Watermark",className:"img-fluid"})),r().createElement("div",{className:"row "},r().createElement("div",{className:"col-auto"},r().createElement("div",{className:"profile-img"},r().createElement("img",{src:c.applicant_photo_file_url||i()["default-avatar"],alt:a,className:"img-fluid"}))),r().createElement("div",{className:"col"},r().createElement("div",{className:"row gy-1"},r().createElement("div",{className:"col-6"},r().createElement("div",{className:"label"},"First Name"),r().createElement("div",{className:"value"},c.applicant_first_name||"-")),r().createElement("div",{className:"col-6"},r().createElement("div",{className:"label"},"Last Name"),r().createElement("div",{className:"value"},c.applicant_last_name||"-")),r().createElement("div",{className:"col-6"},r().createElement("div",{className:"label"},"Birth Date"),r().createElement("div",{className:"value"},(e=>{if(!e)return"-";const t=new Date(e);return isNaN(t.getTime())?e:`${String(t.getDate()).padStart(2,"0")}/${String(t.getMonth()+1).padStart(2,"0")}/${t.getFullYear()}`})(c.date_of_birth))),r().createElement("div",{className:"col-6"},r().createElement("div",{className:"label"},"SSN"),r().createElement("div",{className:"value"},c.ssn_last4?"****"+String(c.ssn_last4).slice(-4):"-")),r().createElement("div",{className:"col-6"},r().createElement("div",{className:"label"},"Contact Phone"),r().createElement("div",{className:"value"},c.contact_phone||"-")))),r().createElement("div",{className:"col-auto"},r().createElement("div",{className:"qr-code-img"},r().createElement("img",{src:i()["qr-code-img"],alt:"QR Code",className:"img-fluid"}))),r().createElement("div",{className:"col-12 mt-2"},r().createElement("div",{className:"label"},"DID"),r().createElement("div",{className:"id-value"},c.utah_identity?`${c.utah_identity.slice(0,4)}****${c.utah_identity.slice(-4)}`:"")))),r().createElement("div",{className:"payment-section"},r().createElement("div",{className:"row align-items-center"},r().createElement("div",{className:"col"},"Paid"!==c.payment_status&&r().createElement("div",{className:"coin"},r().createElement("sup",null,r().createElement("img",{src:i()["clear-icon-dolller"],alt:"Coin",className:"img-fluid"})),"20")),r().createElement("div",{className:"col"},r().createElement("div",{className:"fee-text"},"Paid"===c.payment_status?"Fee Paid":"Fee Pending")),r().createElement("div",{className:"col text-end"},"Paid"!==c.payment_status&&r().createElement("button",{className:"btn btn-primary pay-btn",onClick:()=>(async(t,a,c)=>{try{const r=`/dashboard/licenses/${c}/${t}/payment/qrcode`,l=await m.A.get(r);if(!l?.data?.success)return void d().fire("Error",l?.data?.message||"QR code not available","error");const i=l?.data?.data?.qrcode_image_url,n=l?.data?.data?.verkey;if(h(e=>({...e,[a]:n})),!i)return void d().fire("Error","QR code not found in response","error");g.current[a]&&(clearInterval(g.current[a]),delete g.current[a]);const s=setInterval(()=>{(async(t,a="recreational")=>{const c=e?.session?.account?.accountId?.();if(c&&"string"==typeof c)try{const e=await E.transactions().forAccount(c).order("desc").limit(5).call(),r=e?.records||[];for(const e of r)if("text"===e.memo_type){const c=(e.memo||"").trim();if(!c.includes(a))continue;const r=c.split("|");if(r[r.length-1].trim()===t.toString()){if(v.current.has(t))return;v.current.add(t),g.current[t]&&(clearInterval(g.current[t]),delete g.current[t],y({...g.current}));try{await d().update({title:"Payment received ✅",html:"Processing your application…",timer:void 0,showConfirmButton:!1})}catch(e){}await k(t,a);break}}}catch(e){console.error("getLastTransactions failed",e)}
2else console.error("Account address not valid")})(a,c)},3e3);g.current[a]=s,y({...g.current}),d().fire({title:`Please pay certification fee first using ${(0,A.dt)()} Wallet in order to process your application`,imageUrl:i,imageWidth:350,timer:4e4,timerProgressBar:!0,willClose:()=>{g.current[a]&&(clearInterval(g.current[a]),delete g.current[a],y({...g.current}))},didOpen:()=>{d().showLoading()}})}catch(e){console.error("handlePayNow error",e),d().fire("Error","Failed to initiate QR code payment","error")}})(c.id,c.id,t)},"Pay Now")))))))):r().createElement("div",{className:"col-xl-4 col-lg-6 col-md-6",key:`placeholder-${t}-${c}`},r().createElement("div",{className:"certificate-section"},r().createElement("div",{className:"certificate-icon-title"},r().createElement("div",{className:"iconBx"}," ",n&&r().createElement(n,{size:18})),r().createElement("h3",null,a," ")),r().createElement("div",{className:"certificate-box"},r().createElement("p",{className:"certificate-status"},"Not added yet"),r().createElement(u.N_,{to:`/licenses/${t}`,className:"create-link"},"Create new one"))))};return r().createElement("div",{className:"admin-content-wrapper"},e.session.state===s.$t.IN&&r().createElement(n.A,{d:e,mobileOpen:t,setMobileOpen:a}),r().createElement("div",{className:"main-content"},r().createElement("div",{className:"organization-assets-content"},r().createElement("div",{className:"back-header"},r().createElement("span",{className:"back-title"},"Recreational Licenses"))),r().createElement("div",{className:"white-bg-card"},r().createElement("div",{className:"white-bg-body pb-4"},r().createElement("div",{className:"row gy-4"},x.map((e,t)=>P(e.slug,e.title,t,e.icon)))))))}},590:function(e,t,a){const c=(0,a(9407).A)("circle-plus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);a.d(t,["A",0,c])},41568:function(e,t,a){const c=(0,a(9407).A)("egg",[["path",{d:"M12 2C8 2 4 8 4 14a8 8 0 0 0 16 0c0-6-4-12-8-12",key:"1le142"}]]);a.d(t,["A",0,c])},76898:function(e,t,a){const c=(0,a(9407).A)("flower",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5",key:"14wa3c"}],["path",{d:"M12 7.5V9",key:"1oy5b0"}],["path",{d:"M7.5 12H9",key:"eltsq1"}],["path",{d:"M16.5 12H15",key:"vk5kw4"}],["path",{d:"M12 16.5V15",key:"k7eayi"}],["path",{d:"m8 8 1.88 1.88",key:"nxy4qf"}],["path",{d:"M14.12 9.88 16 8",key:"1lst6k"}],["path",{d:"m8 16 1.88-1.88",key:"h2eex1"}],["path",{d:"M14.12 14.12 16 16",key:"uqkrx3"}]]);a.d(t,["A",0,c])},44664:function(e,t,a){const c=(0,a(9407).A)("tags",[["path",{d:"M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z",key:"16rjxf"}],["path",{d:"M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193",key:"178nd4"}],["circle",{cx:"10.5",cy:"6.5",r:".5",fill:"currentColor",key:"12ikhr"}]]);a.d(t,["A",0,c])}}]);

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.