PageSourceSearch

https://www.ausmed.com/chunk-K4SOVWOA.js

js ausmed.com collected 2026-10-02 02:59:41 UTC 2,807 bytes, 1 lines download raw bytes

1import{a as x}from"./chunk-7GZW35D6.js";import{k as S}from"./chunk-IJOQMYIR.js";import{t as R}from"./chunk-2VXHONUW.js";import{a as v}from"./chunk-KQNKCWSB.js";import{c as O}from"./chunk-W3NQXQOX.js";import{c as P}from"./chunk-FN5PQSEI.js";import{b as c}from"./chunk-DMHJZRXD.js";import{c as C}from"./chunk-4NGQH4V6.js";import{V as h}from"./chunk-7WAXKT5I.js";import{$ as w}from"./chunk-6K3X73CK.js";import{D as I,S as d,_ as D,la as a,na as y,x as l,y as n,z as m}from"./chunk-T2TVCV7P.js";import{a as u,b as f}from"./chunk-BBHHUGUF.js";var p;function F(r,e){return p?n(null):(p=!0,l(import("./chunk-OCUIP4ES.js")).pipe(I(i=>{let{CompFlowComponent:o}=i;return r.get(w).open(o,{width:"85%",disableClose:!0,panelClass:"ui-modal-2-overlay",data:e,autoFocus:!1})}),D(()=>p=!1)))}function T(r){if(r.source==="organisation")return r.orgResourceDetail;switch(O(r.activityType,r.source,r.resourceType)){case"blog":return r.blogDetail;case"onlineResource":return r.nursingLectureDetail;case"OnlineCourse":return r.courseDetail;case"podcast":return r.podcastDetail;case"thirdParty":return r.resourceDetail;case"guideToPractice":return r.guideToPracticeDetail;case"explainer":return r.explainerDetail}}function b(r,e,i,o){let t=r.get(P);switch(i){case"ausmed":return l(t.fetchResourceInAllStatusByID(e));case"thirdparty":return t.fetchThirdPartyResourceByID(e);case"organisation":return r.get(x).fetchOrgResourceByID(o,e);default:return m("resource not supported")}}function nr(r,e,i){let o=e.resource,t=[];if(!o)return console.error("\u274C No resource found for assignment \u{1F611}"),n(null);if(e.orgIDs)t=e.orgIDs;else if(i&&i.length>0)t=h(i.map(s=>s.orgID));else return console.error("\u274C No orgIDs found for assignment \u{1F611}"),n(null);let B=r.get(S),L=r.get(v),G=r.get(C),A=!!T(o),E=s=>(A?n(o):b(r,o.resourceID,o.source,s.orgID)).pipe(a(g=>B.recordCompletion(g,s)),y(()=>{L.success("Success! Learning marked as complete."),G.track("D-completionflow-learning_completed"),e?.onCompletion&&e.onCompletion()}),a(()=>F(r,f(u({},e),{orgIDs:t}))),d(g=>(c(r,{buttonText:"Dismiss",header:"Something went wrong",messageBody:"Sorry about this, we're looking into it. Please wait a moment and try again."}),m(g))));return t&&t.length>0?N(t[0],r).pipe(a(s=>s?E(s):(console.error("No organisation detail found for assignment"),n(null)))):(console.error("No organisation detail found for assignment"),c(r,{buttonText:"Dismiss",header:"Something went wrong",messageBody:"No organisation detail found for assignment"}),n(null))}function N(r,e){return e.get(R).getActiveOrgById$(r).pipe(a(i=>{let o=i.orgUser?.orgDetail;return o?n(o):(c(e,{buttonText:"Dismiss",header:"Organisation details not found",messageBody:"Could not find organisation details. Please refresh and try again."}),n(null))}))}export{T as a,b,nr as 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.