{"version":3,"sources":["webpack:///./components/Elements/Box.less","webpack:///./components/Elements/Section.js","webpack:///./components/Elements/Panel.less","webpack:///./components/Elements/Timer.js","webpack:///./routes/BasiDiDati.js","webpack:///./components/Layout/Split.js","webpack:///./components/Elements/Box.js","webpack:///./components/Elements/Timer.less","webpack:///./components/Layout/Split.less","webpack:///./components/Elements/Panel.js"],"names":["module","exports","props","title","children","Timer","state","Date","now","timer","componentDidMount","this","setInterval","setState","componentWillUnmount","clearInterval","render","dateTo","className","style","parts","milliseconds","seconds","minutes","hours","days","to","timeLeft","Math","floor","expired","unknown","class","count","text","Component","BasiDiDati","href","Array","isArray","map","element","splitchild","split","splitparent","BoxColors","Object","freeze","RED","red","ORANGE","orange","YELLOW","yellow","LIME","lime","CYAN","cyan","BLUE","blue","MAGENTA","magenta","DEFAULT","default","color","box","contents"],"mappings":"4EACAA,EAAOC,QAAU,CAAC,IAAM,aAAa,QAAU,iBAAiB,IAAM,aAAa,OAAS,gBAAgB,OAAS,gBAAgB,KAAO,cAAc,KAAO,cAAc,KAAO,cAAc,QAAU,mB,mCCD9M,wCAGe,aAAUC,GACrB,OACI,EAAC,WAAD,KACI,YACKA,EAAMC,OAEX,EAAC,IAAD,KACKD,EAAME,c,yCCTvBJ,EAAOC,QAAU,CAAC,MAAQ,eAAe,SAAW,oB,sHCG/BI,E,YACjB,aAAc,aACV,sBACKC,MAAQ,CACT,IAAOC,KAAKC,OAEhB,EAAKC,MAAQ,KALH,E,0HAQdC,kBAAA,WAAoB,WAChBC,KAAKF,MAAQG,aAAY,WACrB,EAAKC,SAAS,CAAC,IAAON,KAAKC,UAC5B,M,EAGPM,qBAAA,WACsB,OAAfH,KAAKF,OACJM,cAAcJ,KAAKF,Q,EAI3BO,OAAA,WACI,IAAIC,EAAS,eACTC,EAAYC,IAAMV,MAElBW,EAAQ,CACRC,aAAc,IACdC,QAAS,IACTC,QAAS,IACTC,MAAO,IACPC,KAAM,KAGV,GAAGd,KAAKT,MAAMwB,GAAI,C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EAAME,c","file":"route-BasiDiDati.chunk.ee01a.js","sourcesContent":["// extracted by mini-css-extract-plugin\nmodule.exports = {\"box\":\"box__3cKyY\",\"default\":\"default__v-emJ\",\"red\":\"red__339Cz\",\"orange\":\"orange__24_8v\",\"yellow\":\"yellow__1Jo9W\",\"lime\":\"lime__34yV5\",\"cyan\":\"cyan__3RqLr\",\"blue\":\"blue__13Wnj\",\"magenta\":\"magenta__2tkzq\"};","import Split from \"../Layout/Split\";\r\nimport {Fragment} from \"preact\";\r\n\r\nexport default function (props) {\r\n return (\r\n \r\n

\r\n {props.title}\r\n

\r\n \r\n {props.children}\r\n \r\n
\r\n );\r\n}\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"title\":\"title__3ZVpg\",\"contents\":\"contents__20_NI\"};","import {Component} from 'preact'\nimport style from \"./Timer.less\"\n\n\nexport default class Timer extends Component {\n constructor() {\n super();\n this.state = {\n \"now\": Date.now()\n };\n this.timer = null;\n }\n\n componentDidMount() {\n this.timer = setInterval(() => {\n this.setState({\"now\": Date.now()})\n }, 1000)\n }\n\n componentWillUnmount() {\n if(this.timer !== null) {\n clearInterval(this.timer)\n }\n }\n\n render() {\n let dateTo = \"Unknown date\";\n let className = style.timer;\n\n let parts = {\n milliseconds: \"?\",\n seconds: \"?\",\n minutes: \"?\",\n hours: \"?\",\n days: \"?\",\n };\n\n if(this.props.to) {\n dateTo = new Date(this.props.to);\n let timeLeft = dateTo - this.state.now;\n\n if(timeLeft > 0) {\n parts = {\n milliseconds: timeLeft % 1000,\n seconds: Math.floor(timeLeft / 1000) % 60,\n minutes: Math.floor(timeLeft / 60000) % 60,\n hours: Math.floor(timeLeft / 3600000) % 24,\n days: Math.floor(timeLeft / 86400000),\n };\n }\n\n else {\n parts = {\n milliseconds: 0,\n seconds: 0,\n minutes: 0,\n hours: 0,\n days: 0,\n };\n\n className += \" \" + style.expired;\n }\n }\n else {\n className += \" \" + style.unknown;\n }\n\n return (\n
\n
\n {parts.days}\n
\n
\n giorni\n
\n
\n {parts.hours}\n
\n
\n ore\n
\n
\n {parts.minutes}\n
\n
\n minuti\n
\n
\n {parts.seconds}\n
\n
\n secondi\n
\n
\n )\n }\n}\n","import {Component} from 'preact'\nimport Section from \"../components/Elements/Section\";\nimport Panel from \"../components/Elements/Panel\";\nimport Timer from \"../components/Elements/Timer\";\n\nconst r = String.raw;\n\nexport default class BasiDiDati extends Component {\n render() {\n return (\n
\n

Basi di dati

\n
\n \n

\n Uno scritto con tre domande:\n

\n
    \n
  • Progettazione concettuale e logica
  • \n
  • Formulazione interrogazione
  • \n
  • Una domanda tra:\n
      \n
    • Studio dato derivato
    • \n
    • Progettazione fisica
    • \n
    • Tecnologia database
    • \n
    \n
  • \n
\n
\n \n
    \n
  1. \n
  2. \n
  3. \n
\n
\n \n

\n In gruppo, progettare un database secondo queste specifiche.\n

\n

\n Va consegnato almeno 10 giorni prima dell'esame.\n

\n

\n Consegnando il progetto prima della fine di Luglio si otterrà un bonus!\n

\n \n

\n Esempi di progetti degli anni passati:\n

\n \n

\n Presentando il progetto si otterrà un bonus!\n

\n
\n
\n
\n )\n }\n}\n","import style from \"./Split.less\";\r\n\r\nexport default function (props) {\r\n let children;\r\n\r\n if(Array.isArray(props.children)) {\r\n children = props.children.map(element => {\r\n return (\r\n
\r\n {element}\r\n
\r\n );\r\n });\r\n }\r\n\r\n else {\r\n children = (\r\n
\r\n {props.children}\r\n
\r\n );\r\n }\r\n return (\r\n
\r\n
{children}
\r\n
\r\n );\r\n}\r\n","import style from \"./Box.less\";\r\n\r\nexport const BoxColors = Object.freeze({\r\n RED: style.red,\r\n ORANGE: style.orange,\r\n YELLOW: style.yellow,\r\n LIME: style.lime,\r\n CYAN: style.cyan,\r\n BLUE: style.blue,\r\n MAGENTA: style.magenta,\r\n DEFAULT: style.default\r\n})\r\n\r\nexport default function (props) {\r\n let color = BoxColors.DEFAULT;\r\n if(props.color) {\r\n color = props.color;\r\n }\r\n\r\n return (\r\n
\r\n {props.children}\r\n
\r\n );\r\n}\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"timer\":\"timer__3Z2pL\",\"days\":\"days__myhe2\",\"hours\":\"hours__3JUDn\",\"minutes\":\"minutes__24lD7\",\"seconds\":\"seconds__2vZ4f\",\"count\":\"count__chi9X\",\"text\":\"text__34ldC\",\"unknown\":\"unknown__3sT2P\",\"expired\":\"expired__zNiuP\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"splitparent\":\"splitparent__3-wBs\",\"splitchild\":\"splitchild__begkX\"};","import style from \"./Panel.less\";\nimport Box from \"./Box\";\n\nexport default function(props) {\n\treturn (\n\t\t\n\t\t\t

\n\t\t\t\t{props.title}\n\t\t\t

\n\t\t\t
\n\t\t\t\t{props.children}\n\t\t\t
\n\t\t
\n\t);\n}\n"],"sourceRoot":""}