PageSourceSearch

https://www.deputy.com/_nuxt/CLmNtMI1.js

js deputy.com collected 2026-10-01 08:25:07 UTC 9,487 bytes, 1 lines download raw bytes

1import{_ as w,r as _,e as i,o as r,a as u,F as C,s as G,f as F,d as p,t as y,c as I,w as k,I as B,k as E,D as S,n as H,b as v,j as N,m as M,i as R,p as V,aE as q,u as T,az as j,ay as U,O,ai as z,ab as J}from"./C3AOmhS5.js";import{G as K}from"./tbg5VswV.js";import{G as W}from"./CZelyry7.js";import{G as X}from"./Dr_M7PvX.js";import{I as Y}from"./CeU-yAhM.js";import{G as Q}from"./Otmqi0L5.js";import{G as Z}from"./D06dboZ0.js";import{G as tt}from"./cgo3p3Jl.js";import{g as et}from"./DomUxdz7.js";import{d as nt}from"./CsfcTmkD.js";import{u as rt,a as ot}from"./o6StaxOa.js";import{u as at}from"./DvSWH4jq.js";import{u as st}from"./CCE4Spvs.js";import"./Cn6TSxiq.js";import"./gPeCH4HF.js";import"./C5MLQWvm.js";import"./p5S9pnX-.js";import"./D-tUECde.js";import"./Cpj98o6Y.js";import"./Byi3H-vA.js";import"./-vsEa_js.js";import"./GpBUFeJh.js";import"./B3JWbIqA.js";import"./Ljo6NbD5.js";import"./CRsGdWHe.js";import"./9f0rAYCC.js";import"./BuEA2lA5.js";const it={name:"GLeftPanelScrollToNavigation",components:{GVideoWithContent:X,Intersect:Y,GSideNavMenu:Q},props:{highlightColor:{type:String,default:"rgb(var(--grey-60))"},contentGroups:{type:Array,required:!0}},data(){return{selectedItem:this.contentGroups[0].contentItems[0].uniqueName,isAnimating:!1}},methods:{updateSelected(t,l){if(!this.isAnimating){const o=this.$refs.sideNavMenu[l];this.$refs.sideNavMenu.forEach(a=>{a.selectedItem=t}),o&&(o==null||o.updateHash(t))}},updateIsAnimating(t){this.isAnimating=t}}},lt={class:"g-left-panel-scroll-to-navigation"},ct={class:"g-left-panel-scroll-to-navigation__nav"},ut={class:"g-left-panel-scroll-to-navigation__content-groups"},dt={class:"g-left-panel-scroll-to-navigation__content"},gt=["id"];function ht(t,l,o,a,s,e){const n=_("g-side-nav-menu"),c=_("intersect");return r(),i("div",lt,[u("nav",ct,[u("ol",ut,[(r(!0),i(C,null,G(o.contentGroups,d=>(r(),i("li",{key:d.title},[F(y(o.contentGroups.length>1?d.title:"")+" ",1),p(n,{ref_for:!0,ref:"sideNavMenu","highlight-color":o.highlightColor,"nav-list":d.contentItems,"default-select":s.selectedItem,onUpdateIsAnimating:e.updateIsAnimating},null,8,["highlight-color","nav-list","default-select","onUpdateIsAnimating"])]))),128))])]),u("main",dt,[(r(!0),i(C,null,G(o.contentGroups,(d,f)=>(r(),i(C,null,[(r(!0),i(C,null,G(d.contentItems,g=>(r(),I(c,{key:g.uniqueName,threshold:[.8],"root-margin":"140px 0px 0px 0px",onEnter:b=>e.updateSelected(g.uniqueName,f)},{default:k(()=>[u("div",{id:g.uniqueName,class:"g-left-panel-scroll-to-navigation__content-item"},[(r(),I(B(g.componentName),E({ref_for:!0},g.componentProps),null,16))],8,gt)]),_:2},1032,["onEnter"]))),128))],64))),256))])])}const _t=w(it,[["render",ht]]),pt={name:"GColourNavigation",props:{navItems:{type:Array,required:!0},showNumbers:{type:Boolean,default:!0}},data(){return{color:["rgb(208, 38, 48)","rgb(25, 128, 162)","rgb(62, 39, 183)","rgb(159, 12, 102)"]}}},mt={class:"g-colour-navigation"},ft={key:0,class:"g-colour-navigation__number d-flex mb-10"},vt={class:"g-colour-navigation__content"},yt={key:0,class:"g-colour-navigation__content-info"},Ct=["href","title"];function bt(t,l,o,a,s,e){return r(),i("div",mt,[(r(!0),i(C,null,G(o.navItems,(n,c)=>(r(),i("div",{key:c,class:H(["g-colour-navigation__item",{active:n.active}]),style:S({color:n.active?s.color[c]:null,borderBottomColor:n.active?s.color[c]:null})},[o.showNumbers?(r(),i("div",ft,[u("span",{style:S({backgroundColor:n.active?s.color[c]:"",color:n.active?"white":""})},y(c+1),5)])):v("",!0),u("div",vt,[u("h5",{class:"type-h6 g-colour-navigation__content-title",style:S({color:n.active?s.color[c]:""})},y(n.title),5),n.minsToComplete?(r(),i("div",yt,y(n.minsToComplete)+" min ",1)):v("",!0)]),u("a",{href:n.link,title:n.title},null,8,Ct)],6))),128))])}const Pt=w(pt,[["render",bt]]),Nt={name:"TrainingLearningPath",components:{GLeftPanelScrollToNavigation:_t,GHeader:Z,GColourNavigation:Pt,GColourHeadingCards:tt,GCardsOutlineHover:W,GFaqCollection:K,GContainer:R},props:{trainingData:{type:Object,required:!0}},data(){return{colours:["rgb(208, 38, 48)","rgb(25, 128, 162)","rgb(62, 39, 183)"]}},computed:{...M(T,{stateTrainingData:"trainingData"}),learningPath(){return this.stateTrainingData.learningPath.data.story},courses(){return this.learningPath.content.courses},selectedCourse(){return this.stateTrainingData.selectedCourse.data.story},selectedCourseIndex(){return this.courses.findIndex(t=>t.slug===this.selectedCourse.slug)},isFinalCourse(){return this.selectedCourseIndex===this.courses.length-1},header(){return{text:this.learningPath.content.title,title_style:"slim",subline:this.learningPath.content.description,show_breadcrumb:!0}},headerSlug(){const t=new RegExp(`${this.selectedCourse.slug}/?`);return{full_slug:(this._.provides[q]||this.$route).path.substring(1).replace(t,"")}},topNavItems(){return this.courses.map(t=>({title:t.content.title,minsToComplete:t.content.time_to_complete,active:t.slug===this.selectedCourse.slug,link:(this._.provides[q]||this.$route).path.replace(this.selectedCourse.slug,t.slug)}))},bottomNavCards(){return this.courses.map(t=>({title:t.content.title,minsToComplete:t.content.time_to_complete,href:(this._.provides[q]||this.$route).path.replace(this.selectedCourse.slug,t.slug),image:null,highlighted:t.slug===this.selectedCourse.slug}))},modules(){var t;return((t=this.stateTrainingData)==null?void 0:t.courseModules)??[]},contentGroups(){return this.modules.map(t=>{const l=t.content,o=l.lessons.map(a=>({title:a.content.title,uniqueName:`${t.slug}-${a.slug}`,componentName:"g-video-with-content",componentProps:{title:a.content.title,videoId:a.c
1ontent.video_id,description:N(a.content.description,!1,!0)}}));return{title:l.title,contentItems:o}})},relatedResources(){return this.learningPath.content.related_resources?this.learningPath.content.related_resources.map(t=>({icon:t.content.icon,title:t.content.title,paragraph:t.content.paragraph,url:V(t.content.url)})):null},headerTitle(){if(typeof this.learningPath.content.title<"u")return typeof this.learningPath.content.title<"u"&&typeof this.learningPath.content.title!="string"?N(this.learningPath.content.title,!0,!0):this.learningPath.content.title},headerSubline(){if(typeof this.learningPath.content.description<"u")return typeof this.learningPath.content.description<"u"&&typeof this.learningPath.content.description!="string"?N(this.learningPath.content.description,!0,!0):this.learningPath.content.description}},methods:{richtext:N}},Gt={class:"training-learning-path"},It={key:1,class:"training-learning-path__bottom-nav"},wt={class:"type-h3"},xt={key:2,class:"training-learning-path__related"},St={class:"type-h3"},qt={key:3,class:"training-learning-path__faqs"};function Tt(t,l,o,a,s,e){const n=_("g-header"),c=_("g-colour-navigation"),d=_("g-left-panel-scroll-to-navigation"),f=_("g-colour-heading-cards"),g=_("g-cards-outline-hover"),b=_("g-faq-collection"),x=_("g-container");return r(),i("section",Gt,[p(x,null,{default:k(()=>[p(n,{header:e.header,slug:e.headerSlug,title:e.headerTitle,subline:e.headerSubline},null,8,["header","slug","title","subline"]),e.courses.length>1?(r(),I(c,{key:0,"nav-items":e.topNavItems},null,8,["nav-items"])):v("",!0),p(d,{"highlight-color":e.courses.length>1?s.colours[e.selectedCourseIndex]:"","content-groups":e.contentGroups},null,8,["highlight-color","content-groups"]),e.isFinalCourse?v("",!0):(r(),i("div",It,[u("h3",wt,y(e.selectedCourse.content.next_course_heading||"Continue your learning journey"),1),p(f,{cards:e.bottomNavCards},null,8,["cards"])])),e.isFinalCourse&&e.relatedResources?(r(),i("div",xt,[u("h3",St,y(e.learningPath.content.related_resources_heading||"Related resources"),1),p(g,{cards:e.relatedResources},null,8,["cards"])])):v("",!0),e.selectedCourse.content.faqs[0]?(r(),i("div",qt,[l[0]||(l[0]=u("h3",{class:"type-h3"},"Frequently asked questions",-1)),p(b,{faqs:e.selectedCourse.content.faqs[0].faqs},null,8,["faqs"])])):v("",!0)]),_:1})])}const L=w(Nt,[["render",Tt]]),kt=nt({components:{TrainingLearningPath:L},async setup(){let t,l;const o=ot();return[t,l]=j(()=>at(async()=>{const a=O(),s=T(),e=z(),{$version:n}=J(),d=e.path.replace(/^\/(us|au|gb)\//,"/").replace(/^\/training\//,"").split("/"),f=d[0],g=`${f}/${d[1]}`,b=`cdn/stories/${s.region}/training/learning-paths/${f}`,x=`cdn/stories/${s.region}/training/courses/${g}`;let $;try{$=await a.get(b,{version:n,resolve_relations:"learning-path.courses,learning-path.related_resources"})}catch(h){throw console.error("There was an error [training page]:",h),h}let m;try{m=await a.get(x,{version:n})}catch(h){throw console.error("There was an error [selectedCourse]:",h),h}const P=m.data.story.content.modules;let D=[];if(P.length>0&&Object.values(P).length===P.length)try{D=(await a.get("cdn/stories",{version:n,by_uuids_ordered:P.join(),resolve_relations:"module.lessons"})).data.stories}catch(h){throw console.error("There was an error [trainingModules]:",h),h}const A={learningPath:$,selectedCourse:m,courseModules:D};return m.data.story.content.content=m.data.story.content.faqs,await s.loadStory(m.data.story),await s.saveTrainingData(A),{story:m.data.story,trainingData:A,region:s.region}},"$YT78JHK_ei")),await t,l(),st(),{layout:o}},layout:et,computed:{...M(T,["story","region","trainingData"])},mounted(){rt()}},"$oX_wdValq-");function $t(t,l,o,a,s,e){const n=L,c=U;return r(),I(c,{name:t.layout},{default:k(()=>[p(n,{"training-data":t.trainingData},null,8,["training-data"])]),_:1},8,["name"])}const se=w(kt,[["render",$t]]);export{se as default};

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.