PageSourceSearch

https://immi.gov.bt/_next/static/chunks/pages/non-tourist/amendmen…/[applicationId]-f77ea350de4df3d2.js

js immi.gov.bt collected 2026-09-25 06:42:05 UTC 16,398 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64748],{53184:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var i=t(87462),r=t(63366),a=t(67294),l=t(86010),s=t(94780),o=t(44063),c=t(71657),d=t(90948),h=t(1588),x=t(34867);function m(e){return(0,x.ZP)("MuiTableHead",e)}(0,h.Z)("MuiTableHead",["root"]);var p=t(85893);let u=["className","component"],y=e=>{let{classes:n}=e;return(0,s.Z)({root:["root"]},m,n)},j=(0,d.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,n)=>n.root})({display:"table-header-group"}),f={variant:"head"},Z="thead",v=a.forwardRef(function(e,n){let t=(0,c.Z)({props:e,name:"MuiTableHead"}),{className:a,component:s=Z}=t,d=(0,r.Z)(t,u),h=(0,i.Z)({},t,{component:s}),x=y(h);return(0,p.jsx)(o.Z.Provider,{value:f,children:(0,p.jsx)(j,(0,i.Z)({as:s,className:(0,l.Z)(x.root,a),ref:n,role:s===Z?null:"rowgroup",ownerState:h},d))})});var g=v},30218:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/non-tourist/amendment/payment/invoice/[applicationId]",function(){return t(68851)}])},39513:function(e,n,t){"use strict";t.r(n);var i=t(85893),r=t(64666),a=t(37645),l=t(6514),s=t(36822),o=t(15861),c=t(67720),d=t(58951),h=t(46901),x=t(31425),m=t(83321),p=t(86501),u=t(63730);let y=e=>{var n,t,y,j,f;let{isModalOpen:Z,setIsModalOpen:v,paymentMethod:g,paymentDetails:b,navigateTo:w}=e,M=()=>{v(!1),p.ZP.success("Payment method updated successfully",{duration:2e3}),w()};return(0,i.jsxs)(r.Z,{open:Z,fullWidth:!0,maxWidth:"sm",scroll:"body",children:[(0,i.jsx)(a.Z,{sx:{textAlign:"center"},children:g.paymentMethodCategory.name}),(0,i.jsxs)(l.Z,{dividers:!0,children:[(0,i.jsx)(s.Z,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",mt:2},children:(0,i.jsx)(o.Z,{variant:"h6",children:null===(n=b.paymentMethod)||void 0===n?void 0:n.description})}),null==b?void 0:null===(t=b.paymentMethod)||void 0===t?void 0:null===(y=t.paymentMethodConfiguration)||void 0===y?void 0:null===(j=y.additionalInformation)||void 0===j?void 0:j.map((e,n)=>(0,i.jsx)(i.Fragment,{children:Object.entries(e).map((e,t)=>{let[r,a]=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.Z,{sx:{gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",mt:2,mb:2},children:[(0,i.jsxs)(o.Z,{children:[r," ",0!==t&&":"]}),(0,i.jsx)(o.Z,{children:a})]},n),(0,i.jsx)(c.Z,{})]})})})),(null===(f=b.paymentMethod)||void 0===f?void 0:f.instructions)&&(0,i.jsx)(d.Z,{sx:{mt:2},children:(0,i.jsx)(h.Z,{variant:"standard",icon:!1,severity:"info",children:(0,i.jsx)(o.Z,{dangerouslySetInnerHTML:{__html:b.paymentMethod.instructions.replace("{applicationNo}",null==b?void 0:b.applicationNoOfPayment)}})})})]}),(0,i.jsxs)(x.Z,{sx:{justifyContent:"flex-end",pt:3},children:[(0,i.jsxs)(m.Z,{size:"small",variant:"outlined",color:"primary",children:[(0,i.jsx)(u.Z,{fontSize:"1.125rem",icon:"tabler:download"}),"Download invoice"]}),(0,i.jsxs)(m.Z,{size:"small",variant:"contained",color:"success",onClick:M,children:[(0,i.jsx)(u.Z,{fontSize:"1.125rem",icon:"tabler:device-floppy"}),"Continue"]})]})]})};n.default=y},14932:function(e,n,t){"use strict";t.r(n);var i=t(85893),r=t(15861),a=t(36822),l=t(67358),s=t(38895),o=t(16216),c=t(78462),d=t(22797),h=t(36872),x=t(98456),m=t(67294),p=t(63730),u=t(78959);let y=e=>{let{applicationNo:n,onSelectPaymentOption:t}=e,[y,j]=(0,m.useState)({}),[f,Z]=(0,m.useState)(null),[v,g]=(0,m.useState)(null),[b,w]=(0,m.useState)(!1),M=e=>{g(e)},N=e=>{v!==e&&Z(f===e?null:e)},I=async e=>{w(!0),Z(e);try{await t(e)}catch(e){console.error("Error fetching payment advice:",e)}finally{w(!1)}};return(0,m.useEffect)(()=>{let e=async()=>{await (0,u.Rd)(n).then(e=>{let n=e.reduce((e,n)=>{if(n.paymentMethodCategory){let t=n.paymentMethodCategory.id;e[t]=e[t]||[],e[t].push(n)}return e},{});j(n)}).catch(e=>{console.log(e),j({})})};e()},[n]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Z,{variant:"h5",children:"Select your preferred payment method"}),(0,i.jsxs)(a.Z,{width:"100%",gap:2,mb:2,sx:{position:"relative"},children:[Object.entries(y).map(e=>{var n,t,x,m,u,y;let[j,Z]=e;return(0,i.jsxs)(l.Z,{sx:{cursor:"pointer",boxShadow:"rgba(0, 0, 0, 0.5)",flexDirection:"row"},expanded:v===j,onChange:()=>M(j),children:[(0,i.jsx)(s.Z,{expandIcon:(0,i.jsx)(p.Z,{icon:v===j?"tabler:chevron-down":"tabler:chevron-right"}),"aria-controls":"".concat(j,"-content"),id:"".concat(j,"-header"),onClick:()=>N(j),children:(0,i.jsx)(a.Z,{width:"100%",children:(0,i.jsx)(o.Z,{children:(0,i.jsx)(c.Z,{dense:!0,disablePadding:!0,children:(0,i.jsxs)(o.Z,{direction:"row",spacing:2,alignItems:"center",justifyContent:"space-between",sx:{cursor:"pointer",width:"100%",maxWidth:"600px"},children:[(0,i.jsxs)(a.Z,{sx:{flex:1},children:[(0,i.jsx)(r.Z,{children:null===(n=Z[0])||void 0===n?void 0:null===(t=n.paymentMethodCategory)||void 0===t?void 0:t.name}),(null===(x=Z[0].paymentMethodCategory)||void 0===x?void 0:x.description)&&(0,i.jsx)(r.Z,{variant:"body2",children:null===(m=Z[0].paymentMethodCategory)||void 0===m?void 0:m.description})]}),(null===(u=Z[0].paymentMethodCategory)||void 0===u?void 0:u.logo)&&(0,i.jsx)("img",{src:null===(y=Z[0].paymentMethodCategory)||void 0===y?void 0:y.logo,alt:Z[0].paymentMethodCategory.name,style:{width:"80px",height:"auto"}})]})})})})}),(0,i.jsx)(d.Z,{sx:{backgroundColor:"white"},children:(0,i.jsx)(a.Z,{width:"100%",children:(0,i.jsx)(o.Z,{children:(0,i.jsx)(c.Z,{dense:!0,disablePadding:!0,children:Z.map(e=>(0,i.jsxs)(o.Z,{direction:"row",spacing:3,mt:2,alignItems:"center",sx:{bgcolor:f===e.id?"rgba(255, 215, 0, 0.2)":"rgba(0,0,0, 0.02)",p:2,borderRadius:1,boxShadow:f===e.id?"0px 0px 0px 1px rgba(255, 215, 0, 1)":1,cursor:"pointer",width:"100%"},onClick:()=>I(e.id),children:[(0,i.jsx)(h.Z,{checked:f===e.id,onChange:n=>{n.stopPropagation(),I(e.id)},sx:{color:f===e.id?"#FF5722":"grey.500","&.Mui-checked":{color:"#FF5722"}}}),(0,i.jsx)(a.Z,{children:e.description&&(0,i.jsx)(r.Z,{variant:"body3",children:e.description})})]},e.id))})})})})]},j)}),b&&(0,i.jsx)(a.Z,{position:"absolute",top:0,left:0,width:"100%",height:"100%",bgcolor:"rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1,children:(0,i.jsx)(x.Z,{})})]})]})};n.default=y},59029:function(e,n,t){"use strict";t.r(n);
1var i=t(85893),r=t(15861),a=t(67720),l=t(36822),s=t(66242),o=t(44267),c=t(46901),d=t(2859);t(67294),t(78959);var h=t(71857);(0,d.J)("pk_live_51QwfvPPq802EoFiUsJhYPUZ3hObIXNSSk2T4wNynxe1MOKlA0LswqBPrycfBikWf0cV0mJYBwzEnZ281FQzG3Fm40069Y3lw3Q");let x=e=>{var n,t,d,x,m;let{applicationId:p,applicationNo:u,selectedPaymentMethod:y,paymentDetails:j}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.Z,{variant:"h5",sx:{mb:1,textAligh:"center"},gutterBottom:!0,children:"Payment Summary"}),(0,i.jsx)(a.Z,{mt:2}),j?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column",mt:2,mb:2},children:[(0,i.jsxs)(l.Z,{sx:{mb:2,gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsx)(r.Z,{children:"Application Type"}),(0,i.jsx)(r.Z,{sx:{color:"text.secondary"},children:"Visa Amendment"})]}),(0,i.jsxs)(l.Z,{sx:{mb:2,gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsx)(r.Z,{children:"Application No."}),(0,i.jsx)(r.Z,{sx:{color:"text.secondary"},children:null==j?void 0:j.applicationNoOfPayment})]})]}),(0,i.jsx)(a.Z,{sx:{m:"0 !important"}}),(0,i.jsxs)(l.Z,{sx:{mt:2,mb:2,gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsx)(r.Z,{sx:{fontWeight:500},children:"Amount"}),(0,i.jsx)(r.Z,{sx:{fontWeight:500},children:(0,h.x)(j.amount,j.currency)})]}),(0,i.jsx)(a.Z,{sx:{m:"0 !important"}}),(0,i.jsx)(s.Z,{variant:"outlined",sx:{mt:2,boxShadow:"none",borderColor:"rgba(255, 215, 0, 1)",borderWidth:"1px"},children:(0,i.jsxs)(o.Z,{children:[(0,i.jsx)(l.Z,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",mb:0},children:(0,i.jsx)(r.Z,{children:j.paymentMethod.paymentMethodCategory.name})}),(0,i.jsx)(l.Z,{sx:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",mt:2},children:(0,i.jsx)(r.Z,{variant:"body2",children:null===(n=j.paymentMethod)||void 0===n?void 0:n.description})}),null==j?void 0:null===(t=j.paymentMethod)||void 0===t?void 0:null===(d=t.paymentMethodConfiguration)||void 0===d?void 0:null===(x=d.additionalInformation)||void 0===x?void 0:x.map((e,n)=>(0,i.jsx)(i.Fragment,{children:Object.entries(e).map((e,t)=>{let[s,o]=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(l.Z,{sx:{gap:2,display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",mt:2,mb:2},children:[(0,i.jsxs)(r.Z,{children:[s," ",0!==t&&":"]}),(0,i.jsx)(r.Z,{children:o})]},n),(0,i.jsx)(a.Z,{})]})})})),(null===(m=j.paymentMethod)||void 0===m?void 0:m.instructions)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(l.Z,{mt:2,children:(0,i.jsx)(c.Z,{variant:"standard",icon:!1,severity:"info",mt:2,children:(0,i.jsx)(r.Z,{dangerouslySetInnerHTML:{__html:j.paymentMethod.instructions.replace("{applicationNo}",null==j?void 0:j.applicationNoOfPayment)}})})})})]})})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(l.Z,{sx:{display:"flex",flexDirection:"column",mt:2,mb:2},children:(0,i.jsx)(c.Z,{variant:"standard",icon:!1,severity:"error",children:"Payment method not selected"})})})]})};n.default=x},68851:function(e,n,t){"use strict";t.r(n);var i=t(85893),r=t(46901),a=t(83321),l=t(36822),s=t(66242),o=t(44267),c=t(86886),d=t(90629),h=t(2734),x=t(7906),m=t(295),p=t(53252),u=t(72882),y=t(53184),j=t(53816),f=t(15861),Z=t(32912),v=t(11163),g=t(67294),b=t(63730),w=t(82338),M=t(78959),N=t(42521),I=t(71857),C=t(39513),S=t(50846),F=t(14932),P=t(59029);let k=()=>{var e,n;let t=(0,v.useRouter)(),{applicationId:k}=t.query,O=(0,h.Z)(),[W,A]=(0,g.useState)(null),[D,_]=(0,g.useState)(),[E,T]=(0,g.useState)(),[R,z]=(0,g.useState)(),[B,U]=(0,g.useState)(),[G,H]=(0,g.useState)(!1),[L]=(0,g.useState)(),q=async e=>{_(e),await (0,M.Sg)(null==W?void 0:W.applicationNo,e).then(e=>T(e)).catch(e=>{console.log(e),T()})},J=async()=>{try{await (0,M.Wl)(null==W?void 0:W.applicationNo,{paymentMethodId:D}).then(e=>{z(e),e.paymentMethod.isOnline?H(!0):U(!0)}).catch(e=>{console.log("error",e),H(!1)}),H(!0)}catch(e){console.error("Error confirming payment:",e),L("Error confirming payment")}},Q=async e=>{try{let n=await N.ZP.getVisaAmendmentById(e);n&&A(n)}catch(e){console.log("info",e)}};return(0,g.useEffect)(()=>{"undefined"===k?t.back():k&&Q(k)},[k,t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(c.ZP,{container:!0,spacing:6,children:[(0,i.jsx)(c.ZP,{item:!0,xl:12,md:12,xs:12,children:(0,i.jsxs)(s.Z,{children:[(0,i.jsx)(o.Z,{children:(0,i.jsx)(c.ZP,{container:!0,children:(0,i.jsx)(c.ZP,{item:!0,sm:6,xs:12,sx:{mb:{sm:0,xs:0}},children:(0,i.jsxs)(l.Z,{sx:{display:"flex",flexDirection:"column"},children:[(0,i.jsx)(l.Z,{sx:{mb:6,display:"flex",alignItems:"center"},children:(0,i.jsx)(f.Z,{variant:"h4",children:"Invoice for amendment application"})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)(f.Z,{sx:{mb:2,color:"text.secondary"},variant:"h6",children:["Application no : # ",(0,i.jsx)("b",{children:null==W?void 0:W.applicationNo})]}),(null==W?void 0:W.createdAt)&&(0,i.jsxs)(f.Z,{sx:{mb:2,color:"text.secondary"},variant:"h6",children:["Application Date : ",(0,i.jsx)("b",{children:(0,Z.Z)(new Date(null==W?void 0:W.createdAt),"dd-MM-yyyy")})]})]})]})})})}),(0,i.jsxs)(o.Z,{children:[(0,i.jsx)(u.Z,{mb:3,component:d.Z,children:(0,i.jsxs)(x.Z,{mb:3,sx:{"& .MuiTableCell-root":{py:"".concat(O.spacing(1)," !important"),fontSize:O.typography.body1.fontSize,border:"1px solid #ccc",borderRadius:"8px"},"& .fee-cell":{textAlign:"right"}},children:[(0,i.jsx)(y.Z,{children:(0,i.jsxs)(j.Z,{children:[(0,i.jsx)(p.Z,{children:"Name"}),(0,i.jsx)(p.Z,{children:"No of nights"}),(0,i.jsx)(p.Z,{className:"fee-cell",children:"SDF fee"}),(0,i.jsx)(p.Z,{className:"fee-cell",children:"Total"})]})}),(0,i.jsx)(m.Z,{children:(null==W?void 0:W.visa)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.Z,{children:null===(e=W.visa)||void 0===e?void 0:e.name}),(0,i.jsx)(p.Z,{children:W.amendmentFee.noOfNights}),(0,i.jsx)(p.Z,{className:"fee-cell",children:(0,I.x)(W.amendmentFee.sdfFee,W.amendmentFee.currency)}),(0,i.jsx)(p.Z,{className:"fee-cell",children:(0,I.x)(W.amendmentFee.totalAmount,W.amendmentFee.currency)}),(0,i.jsxs)(j.Z,{children:[(0,i.jsx)(p.Z,{colSpan:3,sx:{textAlign:"center"},children:(0,i.jsx)("strong",{children:"Grand Total"})}),(0,i.jsx)(p.Z,{className:"fee-cell",children:(0,i.jsxs)("strong",{children:[" ",(0,I.x)(W.amendmentFee.totalAmount,W.amendmentFee.currency)]})})]})]})})]})}),(0,i.jsx)(f.Z,{children:(0,i.jsx)("br",{})})]})]})}),(0,i.jsx)(c.ZP,{item:!0,xl:7,md:7,xs:12,children:(0,i.jsx)(s.Z,{children:(0,i.jsxs)(o.Z,{children:[W&&W.applicationNo&&(0,i.jsx)(l.Z,{width:"100%",mt:3,children:(0,i.jsx)(F.default,{applicationNo:null==W?void 0:W.applicationNo,onSelectPaymentOption:q})}),(0,i.jsx)(r.Z,{severity:"warning",variant:"standard",mt:3,mb:3,children:(0,i.jsx)(w.default,{children:"Please note that the total amount reflected in this invoice is the total amount payable to the Department of Immigration. All bank charges must be borne by the applicant. Ensure applicable bank charges are paid separately to the banks to avoid shortage in the amount payable to the Department of Immigration. Please review payment methods and bank options. Banks have different transaction charges. The International Payment Gateway (credit/debit cards) is strongly encouraged to expedite the transfer of payment. If using card, please inform your card 
1issuer bank and ensure that the card is valid and enabled for international transfer. Please note that banks take longer to verify payment made through wire transfer. If using wire transfer, ensure that the Application ID number generated by the system is reflected correctly during the wire transfer. Please note that the Department of Immigration will assess application only after confirmation of receipt of the full SDF and applicable visa fee."})})]})})}),(0,i.jsx)(c.ZP,{item:!0,xl:5,md:5,xs:12,children:(0,i.jsx)(s.Z,{children:(0,i.jsxs)(o.Z,{children:[(0,i.jsx)(P.default,{paymentDetails:E}),E&&E.paymentMethod?(0,i.jsx)(i.Fragment,{children:(null===(n=E.paymentMethod)||void 0===n?void 0:n.isOnline)?(0,i.jsx)(l.Z,{mt:2,children:(0,i.jsx)(a.Z,{fullWidth:!0,variant:"contained",color:"primary",onClick:J,children:"Pay Now"})}):(0,i.jsx)(l.Z,{mt:2,children:(0,i.jsx)(a.Z,{fullWidth:!0,variant:"contained",color:"primary",onClick:J,children:"Confirm payment method"})})}):(0,i.jsx)(i.Fragment,{}),(0,i.jsxs)(a.Z,{fullWidth:!0,sx:{mb:2,mt:2},color:"secondary",variant:"tonal",onClick:()=>t.push("/tourist/amendment/view/".concat(k)),children:[(0,i.jsx)(b.Z,{fontSize:"1.125rem",icon:"tabler:chevron-left"})," Back to amendment application"]})]})})})]}),R&&E&&E.paymentMethod.isOnline&&(0,i.jsx)(S.default,{isModalOpen:G,setIsModalOpen:H,paymentMethod:E.paymentMethod,applicationNo:null==W?void 0:W.applicationNo}),R&&E&&!E.paymentMethod.isOnline&&(0,i.jsx)(C.default,{isModalOpen:B,setIsModalOpen:U,paymentMethod:E.paymentMethod,applicationNo:null==W?void 0:W.applicationNo,paymentDetails:E,navigateTo:()=>t.replace("/tourist/amendment/view/".concat(k))})]})};n.default=k},82338:function(e,n,t){"use strict";t.r(n);var i=t(85893),r=t(15861),a=t(67294);let l=e=>{let{children:n}=e,[t,l]=(0,a.useState)(!1),s=()=>{l(!t)},o=String(n),c=Math.ceil(o.length/6),d=t?o:"".concat(o.substring(0,c),"...");return(0,i.jsxs)("div",{children:[(0,i.jsx)(r.Z,{variant:"body2",children:d}),(0,i.jsx)(r.Z,{variant:"body2",onClick:s,color:"primary",sx:{cursor:"pointer"},children:t?"Read Less":"Read More ..."})]})};n.default=l},71857:function(e,n,t){"use strict";t.d(n,{x:function(){return i}});let i=(e,n)=>{let t;switch(n){case"USD":t=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});break;case"GBP":t=new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP"});break;case"INR":t=new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR"});break;case"EUR":t=new Intl.NumberFormat("en-DE",{style:"currency",currency:"EUR"});break;default:t=new Intl.NumberFormat("en-US",{style:"currency",currency:n})}return t.format(e)}}},function(e){e.O(0,[86886,56261,1040,27821,50846,49774,92888,40179],function(){return e(e.s=30218)}),_N_E=e.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.