PageSourceSearch

https://immi.gov.bt/_next/static/chunks/pages/bhutan-innovation-fo…/store/visa-application-5ef7c31a26d26087.js

js immi.gov.bt collected 2026-09-25 06:40:36 UTC 5,777 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[77341],{39660:function(a,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/bhutan-innovation-forum/store/visa-application",function(){return n(63856)}])},63856:function(a,t,n){"use strict";n.r(t),n.d(t,{addDraftApplicationFinalSubmission:function(){return l},addVisaApplication:function(){return p},finalSubmitApplication:function(){return u},getAllDraftApplications:function(){return r},getNonTouristApplicantByApplicationId:function(){return o},getNonTouristApplications:function(){return c},getVisaApplicationById:function(){return s},uploadApplicationDocuments:function(){return d},visaApplicationSlice:function(){return f}});var i=n(77236),e=n(31606);let c=async(a,t,n)=>{let i=await e.ZP.nonTouristApplicationList(a,t,n);return i},o=async(a,t,n,i)=>{try{let c=await e.ZP.getNonTouristApplicantByApplicationId(a,t,n,i);return c}catch(a){return a}},p=(0,i.hg)("application/addApplication",async(a,t)=>{let{rejectWithValue:n}=t;try{let t=await e.ZP.addDraftApplication(a);return t}catch(a){return n(a)}}),r=async(a,t,n)=>{let i=await e.ZP.getAllDraftVisaApplications(a,t,n);return i},l=(0,i.hg)("application/addApplication",async(a,t)=>{let{draftVisaApplicationId:n,data:i}=a,{rejectWithValue:c}=t;try{let a=await e.ZP.addDraftApplicationFinalSubmission(n,i);return a}catch(a){return c(a)}}),s=(0,i.hg)("application/addApplication",async(a,t)=>{let{rejectWithValue:n}=t;try{let t=await e.ZP.getVisaApplicationById(a);return t}catch(a){return n(a)}}),d=(0,i.hg)("application/uploadApplicationDocuments",async(a,t)=>{let{rejectWithValue:n}=t;try{let t=await e.ZP.uploadApplicationDocuments(a);return t}catch(a){return n(a)}}),u=(0,i.hg)("application/finalSubmitApplication",async(a,t)=>{let{rejectWithValue:n}=t;try{let t=await e.ZP.finalSubmitApplication(a);return t}catch(a){return n(a)}}),f=(0,i.oM)({name:"visaApplication",initialState:{visaApplication:null,draftApplications:{data:[],totalPages:0,meta:{},allData:[],loading:!0,errors:null}},reducers:{},extraReducers:a=>{a.addCase(r.fulfilled,(a,t)=>{a.draftApplications.data=t.payload.data,a.draftApplications.meta=t.payload.meta,a.draftApplications.totalPages=t.payload.totalPages,a.draftApplications.error=null,a.draftApplications.loading=!1}).addCase(r.pending,a=>{a.draftApplications={data:[],meta:{},totalPages:0,error:null,loading:!0}}).addCase(r.rejected,(a,t)=>{a.draftApplications={data:[],meta:{},totalPages:0,error:t.payload,loading:!1}})}}),{}=f.actions;t.default=f.reducer},31606:function(a,t,n){"use strict";n.d(t,{_P:function(){return h}});var i=n(61723),e=n(83563);let c="".concat("".concat("https://api.immi.gov.bt"),"/svc/non-tourist-visa/api"),o=async(a,t,n)=>{let i="".concat(c,"/applications?perPage=").concat(a,"&page=").concat(t+1);""!==n.trim()&&(i+="&q=".concat(encodeURIComponent(n)));let o=await e.Z.get(i);return{data:o.data.data||[],meta:o.data.meta||{page:1,perPage:10,itemCount:0,pageCount:1,hasPreviousPage:!1,hasNextPage:!1}}},p=async(a,t,n,i)=>{let o="".concat(c,"/applications/").concat(a,"/guests?perPage=").concat(t,"&page=").concat(n+1,"&id=").concat(a);""!==i.trim()&&(o+="&q=".concat(encodeURIComponent(i)));let p=await e.Z.get(o);return{data:p.data.data||[],meta:p.data.meta||{page:1,perPage:10,itemCount:0,pageCount:1,hasPreviousPage:!1,hasNextPage:!1}}},r=async a=>{let t=await e.Z.get("".concat(c,"/applications/").concat(a));return t.data},l=async a=>{let{id:t,visaApplicationDocuments:n}=a,i=new FormData;n.forEach(a=>{i.append("attachments",a.file)});let o=await e.Z.post("".concat(c,"/visa-applications/").concat(t,"/upload-documents"),i,{headers:{"Content-Type":"multipart/form-data"}});return o.data},s=async a=>{let t=await e.Z.get("".concat(c,"/draft-applications/").concat(a));return t.data},d=async(a,t)=>{let n=await e.Z.put("".concat(c,"/draft-applications/initiate/").concat(a),t);return n.data},u=async(a,t,n)=>{let i="".concat(c,"/draft-applications/bif?perPage=").concat(a,"&page=").concat(t+1);""!==n.trim()&&(i+="&q=".concat(encodeURIComponent(n)));let o=await e.Z.get(i);return{data:o.data.data||[],meta:o.data.meta||{page:1,perPage:10,itemCount:0,pageCount:1,hasPreviousPage:!1,hasNextPage:!1}}},f=async a=>{let{hostAgencyId:t,hostAgencyName:n}=a,i=new FormData;i.append("hostAgencyId",t),i.append("hostAgencyName",n);let o=await e.Z.post("".concat(c,"/draft-applications/initiate"),i,{headers:{"Content-Type":"multipart/form-data"}});return o.data},g=async a=>{let{draftVisaApplicationId:t}=a,n=new FormData;n.append("file",a.data.file[0]);let i=await e.Z.post("".concat(c,"/draft-application-guests/upload-and-read-mrz-passport?draftApplicationId=").concat(t),n,{headers:{"Content-Type":"multipart/form-data"}});return i.data},m=async(a,t)=>{let n=await e.Z.get("".concat(c,"/draft-application-guests/by-draft-visa-application-id/").concat(a),{params:(0,i.yY)(t)});return n.data},y=async(a,t)=>{let n=await e.Z.post("".concat(c,"/draft-applications/").concat(a,"/final-submission"),t);return n.data},A=async a=>{let t=await e.Z.patch("".concat(c,"/applications/").concat(a,"/submit"),{});return t.data},h=async a=>{let t=await e.Z.get("".concat(c,"/applications/check-payment-status/").concat(a,"/guests"));return t.data},P=async a=>{let t=await e.Z.delete("".concat(c,"/draft-applications/").concat(a));return t.data};t.ZP={deleteDraftVisaApplication:P,finalSubmitApplication:A,nonTouristApplicationList:o,getNonTouristApplicantByApplicationId:p,uploadApplicationDocuments:l,getVisaApplicationById:r,addDraftApplication:f,draftUploadAndReadMrz:g,getAllDraftVisaApplications:u,getAllDraftApplicantByDraftApplicationId:m,getDraftApplicationById:s,updateDraftApplication:d,addDraftApplicationFinalSubmission:y}}},function(a){a.O(0,[49774,92888,40179],function(){return a(a.s=39660)}),_N_E=a.O()}]);

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.