PageSourceSearch

https://virginmobile.sa/join/static/js/41.aa308b81.chunk.js

js virginmobile.sa collected 2026-10-02 03:06:03 UTC 3,471 bytes, 2 lines download raw bytes

1(this.webpackJsonpvm_ksa_web_onboarding_app=this.webpackJsonpvm_ksa_web_onboarding_app||[]).push([[41],{1175:function(e,t,a){e.exports=a.p+"static/media/sim_code_icon.ac2fed1c.png"},541:function(e,t,a){"use strict";a.r(t);var n=a(0),i=a.n(n),o=a(106),l=a.n(o),c=a(1175),s=a.n(c),r=a(14),m=a(2),_=a(250),d=a(1),v=a(12),u=a(10),b=a(3),p=a(27),E=a(7);var g=e=>{var t,a;const o="stf_sim_code_",[c,g]=Object(n.useState)(""),[y,h]=Object(n.useState)(!1),[k,f]=Object(n.useState)(!1),[S,w]=Object(n.useState)(""),C=e=>{let{event_label:t="",interaction_type:a="",...n}=e;const i={event_category:"onboarding_add_kit_code",event_screen:"scan_sim",event_label:t,interaction_type:a,...n};E.a.commonFunction(i)};return i.a.createElement(i.a.Fragment,null,k?i.a.createElement(v.a,null):i.a.createElement("div",{className:"sim-code-container"},i.a.createElement(r.a,{title:m.a.keys[o+"title"],desc:m.a.keys[o+"desc"]}),i.a.createElement("div",{className:"form-field"},i.a.createElement("label",null,m.a.keys[o+"title"]),i.a.createElement("input",{className:"sim-code-input "+(y?"valid":"invalid")+((null===e||void 0===e||null===(t=e.formState)||void 0===t||null===(a=t.sim_number)||void 0===a?void 0:a.value)?" filled":""),autoComplete:"off",type:"number",pattern:"[0-9]{3}",name:"sim_number",value:c,onChange:e=>{w(""),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14;const a=/^[0-9\b]+$/;return""===e.target.value||e.target.value.length<=t&&a.test(e.target.value)}(e,p.a.KITCODE_LENGTH[b.a.version])&&(e=>{var t,a,n;g(null===e||void 0===e||null===(t=e.target)||void 0===t?void 0:t.value),h((null===e||void 0===e||null===(a=e.target)||void 0===a||null===(n=a.value)||void 0===n?void 0:n.length)===p.a.KITCODE_LENGTH[b.a.version])})(e)},placeholder:m.a.keys[o+"placeholder"]}),S?i.a.createElement("p",{className:"sim-error-msg"},S):null,i.a.createElement("div",{className:"hint-section"},i.a.createElement("img",{src:l.a,alt:"hint"}),i.a.createElement("p",null,m.a.keys[o+"hint"]))),i.a.createElement("div",{className:"barcode-container"},i.a.createElement("img",{src:s.a,alt:"barcode"}),i.a.createElement("p",null,m.a.keys[o+"barcode_desc"])),i.a.createElement("button",{className:"storefront-button",disabled:!y,onClick:()=>(e=>{f(!0),C({event_label:"next",interaction_type:"click"}),e&&(d.a.set("imsiCodeError",!0,!0),_.a.kitCode({is_esim:!1,imsi:c}).then(e=>{d.a.clear("imsiCodeError"),e&&(null===e||void 0===e?void 0:e.data)&&(g(""),d.a.set("choose_plan_category",!0,!0),d.a.set("isSimSelected",!0,!0),d.a.set("sim_activation_type","has_sim",!0),u.a.fetchFlowStatus())}).catch(e=>{f(!1),d.a.get_obsrv("imsiCodeError").subscribe(e=>{C({event_label:"error",interaction_type:"view",error_code:e}),-7132===e?(d.a.set("choose_plan_category",!0,!0),d.a.set("isSimSelected",!0,!0),d.a.set("sim_activation_type","has_sim",!0),u.a.fetchFlowStatus(),d.a.clear("imsiCodeError"),g("")):-7128===e?(w(m.a.keys.error_sim_code_used),h(!1)):(h(!1),w(m.a.keys.error_invalid_sim_code))})}));E.a.commonFunction({event_category:"onboarding_activate",event_screen:"scan_sim",interaction_type:"click",event_label:"next",activation_status:""})})(y)},m.a.keys[o+"btn_next"])))};t.default=e=>(Object(n.useEffect)(()=>{E.a.commonFunction({event_category:"onboarding_activate",event_screen:"scan_sim",interaction_type:"view"}),window.scrollTo({top:0,behavior:"smooth"})},[]),i.a.createElement("div",null,i.a.createElement(g,null)))}}]);
2//# sourceMappingURL=41.aa308b81.chunk.js.map

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.