PageSourceSearch

https://cdn.tomi.digital/apps/fnt-platform/2.0.09252026.1/chunk-VXJIIBED.js

js tomi.digital collected 2026-10-01 12:20:41 UTC 10,864 bytes, 1 lines download raw bytes

1import{a as Te}from"./chunk-MFENAI4K.js";import"./chunk-M3QVIA7O.js";import{a as Z,b as ee,c as te,d as oe}from"./chunk-EKVTZPVT.js";import{a as Se,b as _e}from"./chunk-LW5LPVES.js";import"./chunk-ZYWYILRC.js";import"./chunk-S54BMOKL.js";import{b as xe,c as ge,g as ke,h as ve}from"./chunk-3ZR4SHJC.js";import{a as v,b as E,d as p,e as q,f as W,g as J,j as Q,k as y,l as X}from"./chunk-K75VSEIY.js";import"./chunk-7FRBKRRG.js";import"./chunk-WPWHXKEF.js";import"./chunk-ZWC24XOW.js";import{H as pe,fa as fe,kb as be,lb as Me}from"./chunk-2U5T7ZRU.js";import"./chunk-HFHRXST3.js";import{D as $,L as ue,Q as Ce,R as he,y as k,z as Y}from"./chunk-EHK3LLER.js";import{G as me,K as ce,L as de,c as re,h as ae,i as ie,p as ne,x as se,y as le}from"./chunk-UZFNZKCX.js";import{D as U,u as K}from"./chunk-YDFILND7.js";import{Ac as G,Da as R,Ea as L,Fa as N,Hc as H,Kc as w,Ob as h,Pb as D,Zc as d,ia as b,jc as x,la as M,lc as g,od as O,qc as T,r as V,ra as u,rc as a,sa as I,sc as i,tc as l,wa as n,wd as B,xb as C,xd as P}from"./chunk-TROGQXTX.js";import{a as F,b as z,i as t}from"./chunk-S6MAVN2Q.js";t();t();t();var Ie=v("[Classroom Create Store State] Initial"),Re=v("[Classroom Create Store State] Change Is Creating Classroom",E()),Le=v("[Classroom Create Store State] Create Classroom",E()),s={initial:Ie,changeIsCreatingClassroom:Re,createClassroom:Le};var we={isCreatingClassroom:!1},Ne=X(we,y(s.initial,e=>we),y(s.changeIsCreatingClassroom,(e,{isCreatingClassroom:c})=>z(F({},e),{isCreatingClassroom:c})));function Ee(e,c){return Ne(e,c)}t();var S="classroom-create";t();var ye=(()=>{class e{constructor(){this._classroomService=n(Te),this._actions=n(ee),this._router=n(k),this._store=n(p),this.createClassroom$=Z(()=>this._actions.pipe(te(s.createClassroom),M(()=>this._store.dispatch(s.changeIsCreatingClassroom({isCreatingClassroom:!0}))),b(o=>this._classroomService.save(o.fields).pipe(M(r=>this._router.navigate(["/classrooms",r.id],{skipLocationChange:!0})),b(r=>[s.changeIsCreatingClassroom({isCreatingClassroom:!1})])))))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=u({token:e,factory:e.\u0275fac})}}return e})();t();var Ae=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=h({type:e,selectors:[["td-classroom-create-screen-svg"]],standalone:!1,decls:25,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","width","180","height","110"],["id","classroom-create-screen"],["d","M0 0h180v110H0z"],["clip-path","url(#classroom-create-screen)"],["fill","rgba(255,255,255,0)","d","M0 0h180v110H0z"],["fill","#fff","d","M29 18A11 11 0 0140 7h99a11 11 0 0111 11v62a11 11 0 01-11 11H40a11 11 0 01-11-11z"],["fill","none","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M27 18A12 12 0 0140 6h99a12 12 0 0112 12v62a12 12 0 01-12 12H40a12 12 0 01-13-12z"],["fill","none","stroke","#4e4f61","stroke-linecap","round","stroke-width","3","d","M166 104h8"],["fill","none","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M6 104h156"],["fill","#e1e4f0","d","M33 21a10 10 0 0111-10h51a10 10 0 0110 10v56a10 10 0 01-10 10H44a10 10 0 01-11-10z"],["fill","none","stroke","#a6a7b0","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M116 23a3 3 0 113-3 3 3 0 01-3 3zM122 20h20M116 34a3 3 0 113-3 3 3 0 01-3 3zM122 31h20M116 44a3 3 0 113-3 3 3 0 01-3 3zM122 41h20M116 55a3 3 0 113-4 3 3 0 01-3 4zM122 51h20"],["fill","#d4336a","d","M150 103a16 16 0 01-11-5 14 14 0 01-4-4 14 14 0 01-1-6 10 10 0 011-5 10 10 0 014-4l11-2 11 2a9 9 0 013 4 10 10 0 012 5 13 13 0 01-2 6 15 15 0 01-3 4 16 16 0 01-11 5z"],["fill","#4e4f61","fill-rule","evenodd","d","M150 76c5 0 9 0 11 2a11 11 0 016 10 15 15 0 01-1 6 16 16 0 01-4 6 18 18 0 01-24 0 16 16 0 01-4-6 15 15 0 01-1-6 11 11 0 015-10c3-2 7-2 12-2zm0 3c-8 0-14 2-14 9s6 13 14 13 14-6 14-13-6-9-14-9z"],["fill","#ca0045","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M150 80l-4-7"],["fill","#97d700","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M150 80s-1-6 4-9c0 0 4 7-4 9z"],["fill","#ffd
173b","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M14 58l10-2 4 32-9 2z"],["fill","#df668f","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3.3","d","M18 49h0a4 4 0 012 0 5 5 0 013 4v4l-8 1-1-4a4 4 0 010-1 4 4 0 012-3 4 4 0 012-1z"],["fill","#ffd73b","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M15 62l9-1"],["fill","#d9d9ff","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M40 53l4 4-2 9-5 2z"],["fill","#d9d9ff","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M33 54l7 1-7 29-6-1z"],["fill","#d9d9ff","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M34 49l7 1-1 5-7-1z"],["fill","#e1e4f0","stroke","#4e4f61","stroke-linecap","round","stroke-linejoin","round","stroke-width","3","d","M11 78a7 7 0 017-7h18a7 7 0 017 7v18a7 7 0 01-7 8H18a7 7 0 01-7-8z"],["fill","#fff","d","M78 47a2 2 0 010 1 2 2 0 010 1 2 2 0 010 1l-8 5-7 4a2 2 0 01-2 0 2 2 0 01-1-1 2 2 0 010-1V40a2 2 0 010-1 2 2 0 012 0 2 2 0 011 0l7 4z"]],template:function(r,f){r&1&&(N(),a(0,"svg",0),l(1,"defs"),a(2,"defs")(3,"clipPath",1),l(4,"path",2),i()(),a(5,"g",3),l(6,"path",4)(7,"path",5)(8,"path",6)(9,"path",7)(10,"path",8)(11,"path",9)(12,"path",10)(13,"path",11)(14,"path",12)(15,"path",13)(16,"path",14)(17,"path",15)(18,"path",16)(19,"path",17)(20,"path",18)(21,"path",19)(22,"path",20)(23,"path",21)(24,"path",22),i()())},encapsulation:2,changeDetection:0})}}return e})();t();t();var Ge=J(S),je=W(Ge,e=>e.isCreatingClassroom);var He=e=>({isCreatingClassroom:e});function Oe(e,c){e&1&&(a(0,"div",17),l(1,"em",22),a(2,"span",15),d(3,"m-classroom-create.3"),i()())}function Be(e,c){if(e&1){let o=G();a(0,"form",13),H("ngSubmit",function(){R(o);let f=w(2);return L(f.createClassroom())}),a(1,"td-form-field",14)(2,"td-label",15),d(3,"m-classroom-create.2"),i(),l(4,"input",16),a(5,"td-hint"),x(6,Oe,4,0,"div",17),i()(),a(7,"div",18)(8,"div",19)(9,"button",20),d(10," m-classroom-create.4 "),i(),a(11,"button",21),d(12," m-classroom-create.5 "),i()()()()}if(e&2){let o=w(2);T("formGroup",o.form),C(6),g(o.name.invalid&&(o.name.dirty||o.name.touched)&&o.name.errors.required?6:-1),C(5),T("disabled",!o.form.valid)}}function Pe(e,c){e&1&&(a(0,"div",12),l(1,"td-loader",23),i())}function Ke(e,c){e&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"em",5),a(6,"span",6),d(7,"TOMi"),i()()(),a(8,"div",7),l(9,"td-classroom-create-screen-svg"),i(),a(10,"h1",8),d(11,"m-classroom-create.0"),i(),a(12,"div",9)(13,"p",10),d(14,"m-classroom-create.1"),i()(),x(15,Be,13,3,"form",11)(16,Pe,2,0,"div",12),i()()()),e&2&&(C(15),g(c.isCreatingClassroom?16:15))}var Fe=(()=>{class e{constructor(){this._store=n(p),this.isCreatingClassroom$=this._store.pipe(q(je)),this._form=fe()}get form(){return this._form}get name(){return this._form.get("name")}createClassroom(){let{name:o}=this.form.value;this._store.dispatch(s.createClassroom({fields:{name:o,staff:[]}}))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=h({type:e,selectors:[["ng-component"]],standalone:!1,decls:2,vars:5,consts:[[1,"container","mx-auto"],[1,"max-w-2xl","mx-auto"],[1,"flex","flex-col","py-5","h-screen","px-1"],[1,"mb-6","md:mb-8"],[1,"flex","justify-center","items-center","text-blue-black-light-2"],[1,"ai","ai-tomi","text-xl","mr-1.5"],[1,"font-bold","tracking-widest"],[1,"flex","justify-center","mt-4"],["l10nTranslate","",1,"text-2xl","mt-6","text-blue-black","font-black","text-center","mb-2","md:mb-4","md:text-3xl","md:mt-4"],[1,"max-w-xl","mx-auto","px-4","mb-8","md:mb-5"],["l10nTranslate","",1,"text-center","text-blue-black"],[1,"flex","flex-col","max-w-xl","w-full","mx-auto",3,"formGroup"],[1,"py-8"],[1,"flex","flex-col","max-w-xl","w-full","mx-auto",3,"ngSubmit","formGroup"],["appearance","fill",1,"w-full","mb-12"],["l10nTranslate",""],["type","text","formControlName","name","maxlength","60","tdInput",""],[1,"flex","item-center","text-red"],[1,"fixed","bottom-0","w-full","pb-4","md:relative"],[1,"flex","items-center","justify-center"],["type","button","routerLink","/teacher/classrooms","l10nTranslate","",1,"td-collection-create-btn","btn","btn-md","btn-outlined-deep-purple","mr-2","btn-100","md:btn-150"],["type","submit","disabled","","l10nTranslate","",1,"td-collection-create-btn","btn","btn-md","btn-contained-deep-purple","ml-2","btn-100","md:btn-150",3,"disabled"],[1,"ai","ai-information","pr-1"],["color","#5800FF","size","40","strokeWidth","6"]],template:function(r,f){if(r&1&&(x(0,Ke,17,1,"div",0),B(1,"async")),r&2){let j;g((j=O(3,He,P(1,1,f.isCreatingClassroom$)))?0:-1,j)}}
1,dependencies:[Y,ne,re,ae,ie,me,le,se,ke,xe,ge,Se,be,Ce,Ae,K],encapsulation:2,changeDetection:0})}}return e})();t();t();t();var Ue={"m-classroom-create":{0:"Create a classroom",1:"Enter the name of the classroom and share access with your students.",2:"Name of the class group, ex: Science 11B",3:"Enter a name for the classroom",4:"Cancel",5:"Accept"}},Ye={"m-classroom-create":{0:"Crea una aula de clase",1:"Ingresa el nombre del aula de clase y comparte el acceso a tus estudiantes.",2:"Nombre del aula de clase, ejm: ciencias 11B",3:"Ingresa un nombre para el Aula de clase",4:"Cancelar",5:"Aceptar"}},$e={"m-classroom-create":{0:"Cr\xE9er une salle de classe",1:"Entrez le nom de la classe et partagez l'acc\xE8s avec vos \xE9l\xE8ves.",2:"Nom du groupe de classe, ex\xA0: Sciences 11B",3:"Entrez un nom pour la classe",4:"Annuler",5:"Accepter"}},qe={"m-classroom-create":{0:"Criar uma sala de aula",1:"Digite o nome da sala de aula e compartilhe o acesso com seus alunos.",2:"Nome da turma, ex: Ci\xEAncias 11B",3:"Insira um nome para a sala de aula",4:"Cancelar",5:"Aceitar"}},A={en:Ue,es:Ye,fr:$e,pt:qe};var ze=(()=>{class e{constructor(){this._translateService=n(ue),this._router=n(k),this._store=n(p)}canActivate(o,r){let f=pe(o.params?.groupid);return this._translateService.addProviders([{name:"m-classroom-create",asset:A}]),this._translateService.loadTranslations([{name:"m-classroom-create",asset:A}]),this._store.dispatch(s.initial()),V(!0)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=u({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Ve=[{path:"",canActivate:[ze],component:Fe}];var xo=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=D({type:e})}static{this.\u0275inj=I({imports:[U,$.forChild(Ve),ce,de,ve,_e,Me,he,Q.forFeature(S,Ee),oe.forFeature([ye])]})}}return e})();export{xo as TdClassroomCreateModule};

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.