1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7791],{7791:(z,g,s)=>{s.r(g),s.d(g,{NomeInCodicePageModule:()=>Z});var u=s(6814),x=s(6223),n=s(3582),p=s(9394),b=s(5861),e=s(5879);const M=function(t){return{"background-color":t}};function _(t,r){1&t&&(e.TgZ(0,"ion-card",3),e._UZ(1,"ion-label",4),e.qZA()),2&t&&e.Q6J("ngStyle",e.VKq(1,M,r.$implicit))}function P(t,r){if(1&t&&(e.TgZ(0,"div",1),e.YNc(1,_,2,3,"ion-card",2),e.qZA()),2&t){const o=r.$implicit;e.xp6(1),e.Q6J("ngForOf",o)}}let h=(()=>{class t{constructor(){this.words=new Array}ngOnInit(){for(let o=0;o<5;o++)this.words[o]=["","","","",""];this.blueMatrix.forEach(o=>{this.words[o.x][o.y]="blue"}),this.redMatrix.forEach(o=>{this.words[o.x][o.y]="red"}),this.words[this.blackCard.x][this.blackCard.y]="black"}static#e=this.\u0275fac=function(i){return new(i||t)};static#o=this.\u0275cmp=e.Xpm({type:t,selectors:[["app-card-nome-in-codice"]],inputs:{blueMatrix:"blueMatrix",redMatrix:"redMatrix",blackCard:"blackCard"},decls:1,vars:1,consts:[["class"," row col-sm-12","style","margin:auto",4,"ngFor","ngForOf"],[1,"row","col-sm-12",2,"margin","auto"],["class","col-sm-2 card-custom","style","height: 50px; width: 70px; border:1px solid black ",3,"ngStyle",4,"ngFor","ngForOf"],[1,"col-sm-2","card-custom",2,"height","50px","width","70px","border","1px solid black",3,"ngStyle"],[2,"color","white"]],template:function(i,a){1&i&&e.YNc(0,P,2,1,"div",0),2&i&&e.Q6J("ngForOf",a.words)},dependencies:[u.sg,u.PC,n.PM,n.Q$],styles:[".card-custom[_ngcontent-%COMP%]{background-color:bisque;min-height:10px;min-width:10px;margin:10px auto auto;text-align:center;font-size:xx-large}"]})}return t})();class C{constructor(r,o){this.x=r,this.y=o}}var f=s(4414);function y(t,r){if(1&t&&(e.TgZ(0,"ion-item",7)(1,"div",8)(2,"b",9),e._uU(3),e.qZA()()()),2&t){const o=e.oxw().$implicit;e.xp6(3),e.Oqu(o)}}function w(t,r){if(1&t){const o=e.EpF();e.TgZ(0,"ion-card",3),e.NdJ("click",function(){const a=e.CHM(o),c=a.index,l=a.$implicit,m=e.oxw().index,d=e.oxw();return e.KtG(d.setColorVisible(m,c,l))}),e.YNc(1,y,4,1,"ion-item",4),e.TgZ(2,"div",5)(3,"b",6),e._uU(4),e.qZA()()()}if(2&t){const o=r.$implicit,i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.isWideScreen()),e.xp6(1),e.Q6J("id",o),e.xp6(2),e.hij(" ",o,"")}}function v(t,r){if(1&t&&(e.TgZ(0,"div",1),e.YNc(1,w,5,3,"ion-card",2),e.qZA()),2&t){const o=r.$implicit;e.xp6(1),e.Q6J("ngForOf",o)}}let N=(()=>{class t{constructor(o){this.platform=o}ngOnInit(){}setColorVisible(o,i,a){document.getElementById(a).style.backgroundColor=this.redMatrix.find(d=>d.x==o&&d.y==i)?"red":this.blueMatrix.find(d=>d.x==o&&d.y==i)?"blue":this.blackCard.x!=o||this.blackCard.y!=i?"bisque":"black"}isWideScreen(){return this.platform.is("ipad")||this.platform.is("desktop")||this.platform.is("tablet")||this.platform.is("phablet")}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(f.t4))};static#o=this.\u0275cmp=e.Xpm({type:t,selectors:[["app-card-name-nome-in-codice"]],inputs:{words:"words",redMatrix:"redMatrix",blueMatrix:"blueMatrix",blackCard:"blackCard"},decls:1,vars:1,consts:[["class","row justify-content-between",4,"ngFor","ngForOf"],[1,"row","justify-content-between"],["class","col card-custom ",3,"click",4,"ngFor","ngForOf"],[1,"col","card-custom",3,"click"],["lines","full","class","col-sm-12",4,"ngIf"],[1,"col-sm-12",2,"border","1px solid black","border-radius","5px","margin","3px",3,"id"],[2,"font-size","larger","font-weight","bolder","transform","rotate(180deg)","display","flex","justify-content","center"],["lines","full",1,"col-sm-12"],[1,"col-sm-12","text-center"],[1,"auto-font-size"]],template:function(i,a){1&i&&e.YNc(0,v,2,1,"div",0),2&i&&e.Q6J("ngForOf",a.words)},dependencies:[u.sg,u.O5,n.PM,n.Ie],styles:[".card-custom[_ngcontent-%COMP%]{background-color:#fffaf0;margin-top:10px;margin-bottom:5px;text-align:center;font-size:2.2vw;cursor:pointer;transform:rotate(180deg)}.auto-font-size[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;font-size:2.5vw;max-width:100px;background-color:#fff;display:contents;border-radius:3px}"]})}return t})();function k(t,r){1&t&&(e.TgZ(0,"div",4)(1,"h1"),e._uU(2,"Fai inquadrare il qr code agli altri giocatori delle squadre e al caposquadra, dopodich\xe8 clicca sul tuo ruolo."),e.qZA()())}function I(t,r){if(1&t){const o=e.EpF();e.TgZ(0,"div",5)(1,"ion-card",6),e.NdJ("click",function(){e.CHM(o);const a=e.oxw();return e.KtG(a.setRole("player"))}),e.TgZ(2,"div",7),e._UZ(3,"img",8),e.qZA(),e.TgZ(4,"ion-card-header")(5,"ion-card-title"),e._uU(6,"Giocatore"),e.qZA()(),e.TgZ(7,"ion-card-content"),e._uU(8," Inquadra il qr o Clicca qui per vedere la scheda con le parole; "),e.qZA()(),e.TgZ(9,"ion-card",6),e.NdJ("click",function(){e.CHM(o);const a=e.oxw();return e.KtG(a.setRole("head"))}),e.TgZ(10,"div",7),e._UZ(11,"img",8),e.qZA(),e.TgZ(12,"ion-card-header")(13,"ion-card-title"),e._uU(14,"Caposquadra"),e.qZA()(),e.TgZ(15,"ion-card-content"),e._uU(16," Inquadra il qr o Clicca qui vedere la scheda da Caposquadra "),e.qZA()()()}if(2&t){const o=e.oxw();e.xp6(3),e.Q6J("src",o.qrCodePlayer,e.LSH),e.xp6(8),e.Q6J("src",o.qrCodeHead,e.LSH)}}function F(t,r){if(1&t&&e._UZ(0,"app-card-nome-in-codice",9),2&t){const o=e.oxw();e.Q6J("blueMatrix",o.blueMatrix)("redMatrix",o.redMatrix)("blackCard",o.blackCard)}}function O(t,r){if(1&t&&e._UZ(0,"app-card-name-nome-in-codice",10),2&t){const o=e.oxw();e.Q6J("words",o.words)("blueMatrix",o.blueMatrix)("redMatrix",o.redMatrix)("blackCard",o.blackCard)}}const A=[{path:"",component:(()=>{class t{constructor(o,i){this.route=o,this.modalController=i,this.role=null,this.redirect=!1,this.qrCodePlayer="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https%3A%2F%2Fludh
1app.web.app%2Fnome-in-codice%3Fredirect%3Dtrue%26role%3Dplayer%26words%3D",this.qrCodeHead="https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=https%3A%2F%2Fludhapp.web.app%2Fnome-in-codice%3Fredirect%3Dtrue%26role%3Dhead%26",this.result=["Acqua","Aereo","Albero","Amore","Animale","Anno","Appartamento","Arancia","Arco","Armadio","Auto","Avventura","Balcone","Banca","Bambino","Bancomat","Bar","Barca","Bicchiere","Bicicletta","Birra","Borsa","Bosco","Bottiglia","Bracciale","Buio","Caff\xe8","Caldo","Camera","Cane","Canestro","Canzone","Capello","Carbone","Carta","Casa","Cassetto","Cattivo","Cazzo","Cane","Cervo","Cestino","Cibo","Cielo","Citt\xe0","Classe","Cognome","Colore","Computer","Coniglio","Cornetto","Corpo","Corridoio","Cosa","Cucina","Cuffie","Cuscino","Dado","Dente","Denaro","Diamante","Difetto","Digitale","Dinosauro","Divano","Dolore","Domanda","Donna","Dovere","Elettricit\xe0","Elicottero","Elmo","Emozione","Energia","Erba","Esame","Faccia","Famiglia","Farfalla","Festa","Fiamma","Fiore","Fiume","Foglia","Formaggio","Forza","Forno","Fortuna","Fotocamera","Fumo","Gabbia","Gatto","Giardino","Giocattolo","Giornale","Giorno","Girocollo","Gita","Goccia","Gol","Golf","Governo","Grande","Grano","Grasso","Guanto","Guerra","Gusto","Hotel","Ideale","Immobile","Ingresso","Insetto","Internet","Intervista","Isola","Jaguar","Jeans","Jolly","Karaoke","Ketchup","Kiwi","Kung Fu","Labbra","Lago","Lampada","Lapide","Lato","Lavagna","Legno","Letto","Libro","Licenza","Luce","Luna","Macchina","Maglia","Mare","Maschera","Matematica","Medico","Medusa","Melanzana","Memoria","Mente","Mercurio","Merenda","Messaggio","Miele","Milione","Mirino","Misto","Moda","Moglie","Mondo","Montagna","Morbillo","Morte","Moto","Musica","Natura","Nave","Negozio","Nido","Nipote","Nobile","Noce","Nostalgia","Notizia","Novit\xe0","Nube","Nuovo","Oceano","Odore","Ombrello","Onda","Opera","Orario","Oro","Orologio","Orso","Ospedale","Ostello","Ottobre","Pace","Padre","Pagina","Palazzo","Pane","Pantaloni","Paradiso","Parco","Parete","Passeggino","Passione","Pasticceria","Patata","Pausa","Pavimento","Pazienza","Pelle","Penna","Pensiero","Pepe","Perla","Pesca","Petrolio","Pezzo","Piano","Piccolo","Piede","Pietra","Pilota","Pinguino","Pioggia","Piscina","Pizza","Pizzo","Pneumatico","Polizia","Pollo","Pomodoro","Ponte","Porcellino","Porta","Posta","Pozzo","Prestito","Prezzo","Prigione","Principessa","Prodotto","Profumo","Progetto","Promessa","Pubblico"],this.words=new Array,this.blueMatrix=new Array,this.redMatrix=new Array,this.genericMatrix=new Array,this.blackCard=new C(0,0)}openModalSchema(){var o=this;return(0,b.Z)(function*(){(yield o.modalController.create({component:h,componentProps:{blueMatrix:o.blueMatrix,redMatrix:o.redMatrix,blackCard:o.blackCard}})).present()})()}ngOnInit(){this.route.queryParams.subscribe(o=>{if(this.redirect=o.redirect,this.role=o.role,"player"===this.role?this.words=JSON.parse(o.words):"head"===this.role&&(this.blueMatrix=JSON.parse(o.blueMatrix),this.redMatrix=JSON.parse(o.redMatrix),this.blackCard=JSON.parse(o.blackCard)),!this.redirect){this.words=new Array;const a=new Array;for(let c=0;c<5;c++){this.words[c]=new Array;for(let l=0;l<5;l++){for(var i=Math.ceil(200*Math.random());a.includes(i);)i=Math.ceil(200*Math.random());a.push(i),this.words[c].push(this.result[i])}}for(let c=0;this.genericMatrix.length<15;c++){const l=new C(this.randomIntFromInterval(0,4),this.randomIntFromInterval(0,4));this.genericMatrix.some(m=>m.x===l.x&&m.y===l.y)||this.genericMatrix.push(l)}this.redMatrix=this.genericMatrix.slice(0,7),this.blueMatrix=this.genericMatrix.slice(7,14),this.blackCard=this.genericMatrix[14],this.qrCodePlayer+=JSON.stringify(this.words),this.qrCodeHead=this.qrCodeHead.concat(`redMatrix=${JSON.stringify(this.redMatrix)}%26blueMatrix=${JSON.stringify(this.blueMatrix)}%26blackCard=${JSON.stringify(this.blackCard)}`).replaceAll('"',"%22"),console.log("this.qrCodeHead",this.qrCodeHead)}})}randomIntFromInterval(o,i){return Math.floor(Math.random()*(i-o+1)+o)}showCardColor(o,i){return this.redMatrix.some(a=>a.x==o&&a.y==i)?"red":this.blueMatrix.some(a=>a.x==o&&a.y==i)?"blue":this.blackCard.x==o&&this.blackCard.y==i?"black":void 0}setRole(o){this.role=o}static#e=this.\u0275fac=function(i){return new(i||t)(e.Y36(p.gz),e.Y36(f.IN))};static#o=this.\u0275cmp=e.Xpm({type:t,selectors:[["app-nome-in-codice"]],decls:9,vars:4,consts:[["class","ion-padding c
1ard",4,"ngIf"],["style","display: flex;justify-content: space-evenly;",4,"ngIf"],[3,"blueMatrix","redMatrix","blackCard",4,"ngIf"],[3,"words","blueMatrix","redMatrix","blackCard",4,"ngIf"],[1,"ion-padding","card"],[2,"display","flex","justify-content","space-evenly"],[1,"col",3,"click"],[2,"display","flex","justify-content","center"],[1,"ion-padding",3,"src"],[3,"blueMatrix","redMatrix","blackCard"],[3,"words","blueMatrix","redMatrix","blackCard"]],template:function(i,a){1&i&&(e.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),e._uU(3," Nome in Codice "),e.qZA()()(),e.TgZ(4,"ion-content"),e.YNc(5,k,3,0,"div",0),e.YNc(6,I,17,2,"div",1),e.YNc(7,F,1,3,"app-card-nome-in-codice",2),e.YNc(8,O,1,4,"app-card-name-nome-in-codice",3),e.qZA()),2&i&&(e.xp6(5),e.Q6J("ngIf",!a.redirect&&!a.role),e.xp6(1),e.Q6J("ngIf",!a.redirect&&!a.role),e.xp6(1),e.Q6J("ngIf","head"==a.role),e.xp6(1),e.Q6J("ngIf","player"==a.role))},dependencies:[u.O5,n.PM,n.FN,n.Zi,n.Dq,n.W2,n.Gu,n.wd,n.sr,h,N],styles:["ion-content[_ngcontent-%COMP%]{--background: url(cranioLogoNoSfondo\\ .33a4307bae6566a7.png);--background-size: 10px!important}.red[_ngcontent-%COMP%]{background-color:red!important}.blue[_ngcontent-%COMP%]{background-color:#00f!important}.black[_ngcontent-%COMP%]{background-color:#000!important}"]})}return t})()}];let q=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#o=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({imports:[p.Bz.forChild(A),p.Bz]})}return t})(),Z=(()=>{class t{static#e=this.\u0275fac=function(i){return new(i||t)};static#o=this.\u0275mod=e.oAB({type:t});static#t=this.\u0275inj=e.cJS({imports:[u.ez,x.u5,n.Pc,q]})}return t})()}}]);
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.