PageSourceSearch

https://scrubsociety.com/_next/static/chunks/912.d912dd325a6b10ae.js

js scrubsociety.com collected 2026-10-09 05:03:18 UTC 1,523 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[912],{912:(e,t,l)=>{l.d(t,{syncPendingIdentityToProfile:()=>s});var i=l(748);let r="pending_identity";function n(e,t){if(400!==e)return!1;let l=t.replace(/\u2013/g,"-").replace(/\u2014/g,"-");return/already have this (certification|profession)-specialty combination/i.test(l)}async function s(){var e,t,l,s,a,o,u,c,f,p;let d;if(!localStorage.getItem("pending_intent"))return;let y=localStorage.getItem(r);if(!y)return;try{d=JSON.parse(y)}catch(e){return}let m=null==d||null==(e=d.profession)?void 0:e.trim(),g=null==d||null==(t=d.specialty)?void 0:t.trim(),h=null==d?void 0:d.specialtyEntries;if(!m&&!g&&!(h&&h.length>0))return void localStorage.removeItem(r);try{if(await new Promise(e=>setTimeout(e,150)),m&&await i.QH.ensureUserProfessionLicenseByName(m),h&&h.length>0)for(let e of h)try{await i.QH.createUserProfessionSpecialty({professionId:e.professionId,specialtyId:e.specialtyId})}catch(i){let e=null==i||null==(l=i.response)?void 0:l.status,t=null!=(o=null==i||null==(a=i.response)||null==(s=a.data)?void 0:s.message)?o:"";if(!n(e,t))throw i}else if(g){let e=await i.QH.listProfessionSpecialtyFixtures();for(let t of g.split(",").map(e=>e.trim()).filter(Boolean)){let l=(0,i.a4)(e,t);if(l)try{await i.QH.createUserProfessionSpecialty(l)}catch(l){let e=null==l||null==(u=l.response)?void 0:u.status,t=null!=(p=null==l||null==(f=l.response)||null==(c=f.data)?void 0:c.message)?p:"";if(!n(e,t))throw l}}}localStorage.removeItem(r)}catch(e){}}}}]);

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.