PageSourceSearch

https://mindcraft.vercel.app/_next/static/chunks/9302.b57472b78ccc87e9.js

js mindcraft.vercel.app collected 2026-10-03 07:20:12 UTC 13,031 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9302],{52259:function(t,e,o){o.d(e,{Z:function(){return b}});var a=o(85893),l=o(7145),n=o.n(l),r=o(67294),s=o(99272),i=o(49294),d=o(32610),u=o(41733),c=o(54646),p=o(28860),m=o.n(p);let h=m()(()=>Promise.all([o.e(2554),o.e(6886),o.e(3562),o.e(1455)]).then(o.bind(o,41455)),{loadableGenerated:{webpack:()=>[41455]}}),j=m()(()=>o.e(1948).then(o.bind(o,31948)),{loadableGenerated:{webpack:()=>[31948]}}),g=m()(()=>Promise.all([o.e(2554),o.e(6886),o.e(3562),o.e(2294)]).then(o.bind(o,52294)),{loadableGenerated:{webpack:()=>[52294]}}),w=m()(()=>Promise.all([o.e(6886),o.e(2625),o.e(490),o.e(44),o.e(7172),o.e(597),o.e(6419),o.e(8168),o.e(6334),o.e(1915),o.e(3951),o.e(1687)]).then(o.bind(o,61687)),{loadableGenerated:{webpack:()=>[61687]}});function x(t){let{id:e,text:o,index:l,moveCard:n,item:p}=t,m=(0,r.useContext)(c.Q),x=(0,r.useRef)(null),[{handlerId:b},v]=(0,s.L)({accept:"card",collect:t=>({handlerId:t.getHandlerId()}),hover(t,e){var o;if(!x.current)return;let a=t.index;if(a===l)return;let r=null===(o=x.current)||void 0===o?void 0:o.getBoundingClientRect(),s=(r.bottom-r.top)/2,i=e.getClientOffset(),d=i.y-r.top;a<l&&d<s||a>l&&d>s||(n(a,l),t.index=l)}}),[{isDragging:y},f]=(0,i.c)({type:"card",item:()=>({id:e,index:l}),collect:t=>({isDragging:t.isDragging()})});return f(v(x)),(0,a.jsxs)("div",{ref:x,style:{opacity:y?0:1,width:"100%",marginTop:30},"data-handler-id":b,children:[(0,a.jsxs)("div",{style:{display:"flex",width:"100%",justifyContent:"space-between"},children:[(0,a.jsx)("div",{children:(0,a.jsx)(d.Z,{style:{marginTop:10,marginBottom:10}})}),(0,a.jsx)("div",{children:(0,a.jsx)(u.Z,{color:"primary",style:{marginTop:10,marginBottom:10},onClick:()=>{m.setItems(t=>t.filter(t=>t.id!==e))}})})]}),"richtext"===p.blockType&&(0,a.jsx)(h,{item:p}),"stats"===p.blockType&&(0,a.jsx)(g,{item:p}),"dataset"===p.blockType&&(0,a.jsx)(w,{item:p}),"embed"===p.blockType&&(0,a.jsx)(j,{item:p})]})}function b(t){let{items:e}=t,o=(0,r.useContext)(c.Q);{let t=(0,r.useCallback)((t,e)=>{o.setItems(o=>n()(o,{$splice:[[t,1],[e,0,o[t]]]}))},[]),l=(0,r.useCallback)((e,o)=>(0,a.jsx)(x,{index:o,id:e.id,text:e.id,item:e,moveCard:t},e.id),[]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{children:e.map((t,e)=>l(t,e))})})}}},89302:function(t,e,o){o.r(e),o.d(e,{default:function(){return C}});var a=o(85893),l=o(83321),n=o(65582),r=o(61903),s=o(67720),i=o(51233),d=o(28860),u=o.n(d),c=o(67294),p=o(36963),m=o(45007),h=o(54646),j=o(41415),g=o(52259),w=o(90032),x=o(96540),b=o(66818),v=o(191),y=o(30381),f=o.n(y),Z=o(11163);let k=u()(()=>o.e(4720).then(o.bind(o,84720)).then(t=>t.DndProvider),{loadableGenerated:{webpack:()=>[84720]}});function C(){let t=(0,c.useContext)(v.V);(0,Z.useRouter)();let[e,o]=(0,c.useState)([]),[d,u]=(0,c.useState)(""),[y,C]=(0,c.useState)(""),[B,T]=(0,c.useState)(!1),[S,I]=(0,c.useState)(),[A,L]=(0,c.useState)([]),[G,P]=(0,c.useState)([]),O=async()=>{(0,j.qJ)("utils","home").then(t=>{null!==t&&(I(t),u(t.title),L(t.locList),P(t.judList),o(t.items),C(t.intro),T(t.isOn))})};(0,c.useEffect)(()=>{O()},[]);let D=async()=>{let o={items:e,title:d,intro:y,isOn:B,locList:A,judList:G,createdBy:S&&S.createdBy?S.createdBy:t.userName,createdAt:S&&S.createdAt?S.createdAt:f().utc().format("X"),editedBy:S&&S.editedBy?S.editedBy:t.userName,editedAt:S&&S.editedAt?S.editedAt:f().utc().format("X")};console.log(o),"admin"===t.userType&&await (0,j.jA)("utils","home",o).then(()=>alert("Salvat!"))};return(0,a.jsx)(n.Z,{maxWidth:"md",style:{padding:0},children:(0,a.jsxs)(h.Q.Provider,{value:{items:e,setItems:o},children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(r.Z,{label:"Titlu",variant:"outlined",fullWidth:!0,style:{marginBottom:20},value:d,onChange:t=>u(t.target.value)}),(0,a.jsx)(r.Z,{label:"Intro",multiline:!0,variant:"outlined",fullWidth:!0,style:{marginBottom:20},value:y,onChange:t=>C(t.target.value)})]}),(0,a.jsx)("div",{children:(0,a.jsx)(k,{backend:p.PD,children:(0,a.jsx)(g.Z,{items:e})})}),(0,a.jsx)(s.Z,{style:{marginTop:30,marginBottom:30}}),(0,a.jsxs)(i.Z,{spacing:2,direction:"row",children:[(0,a.jsx)(l.Z,{variant:"contained",startIcon:(0,a.jsx)(x.Z,{color:"primary"}),color:"white",onClick:()=>{o(t=>[...t,{id:(0,m.Z)(),blockType:"richtext",payload:{link:"",name:"",lat:12,text:""}}
1])},children:"paragraf"}),(0,a.jsx)(l.Z,{variant:"contained",startIcon:(0,a.jsx)(x.Z,{color:"primary"}),color:"white",onClick:()=>{o(t=>[...t,{id:(0,m.Z)(),blockType:"stats",payload:{values:[]}}])},children:"stats"}),(0,a.jsx)(l.Z,{variant:"contained",startIcon:(0,a.jsx)(x.Z,{color:"primary"}),color:"white",onClick:()=>{o(t=>[...t,{id:(0,m.Z)(),blockType:"dataset",payload:{datasetId:"",chartType:"",name:"",desc:"",link:"",lat:12}}])},children:"dataset"}),(0,a.jsx)(l.Z,{variant:"contained",startIcon:(0,a.jsx)(x.Z,{color:"primary"}),color:"white",onClick:()=>{o(t=>[...t,{id:(0,m.Z)(),blockType:"embed",payload:"",lat:12}])},children:"embed"})]}),(0,a.jsx)(s.Z,{style:{marginTop:30,marginBottom:30}}),(0,a.jsx)(w.Z,{locList:A,setLocList:L,judList:G,setJudList:P,rows:[],tip:""}),(0,a.jsx)(s.Z,{style:{marginTop:30,marginBottom:20}}),(0,a.jsx)(l.Z,{variant:"contained",color:"primary",onClick:D,size:"large",startIcon:(0,a.jsx)(b.Z,{}),fullWidth:!0,disabled:0===e.length||0===d.length||0===y.length,children:"Salveaza"})]})})}},90032:function(t,e,o){o.d(e,{Z:function(){return p}});var a=o(85893),l=o(82579),n=o(34089),r=o(61903),s=o(83321),i=o(15861),d=o(67294),u=o(11154),c=o(12798);function p(t){let{locList:e,setLocList:o,judList:p,setJudList:m,rows:h,tip:j}=t,[g,w]=(0,d.useState)([]),[x,b]=(0,d.useState)([]);(0,d.useEffect)(()=>{fetch("/mapsnames/ro-all.json").then(t=>t.json()).then(t=>{w(t),b(t.map(t=>t.loc_jd))})},[]);let v=(0,l.D)({limit:100}),y=()=>{if(h.length>0&&g.length>0){let t=h.filter(t=>t.value>0),e=t.map(t=>t.judet),a=t.map(t=>{var e;return null===(e=g.find(e=>e.loc===t.loc))||void 0===e?void 0:e.loc_jd});e=e.filter(t=>void 0!==t),a=a.filter(t=>
1void 0!==t),m([...new Set(e)]),o([...new Set(a)])}};return(0,a.jsxs)(d.Fragment,{children:[(0,a.jsx)(i.Z,{style:{marginBottom:10},variant:"h5",children:"GeoTags"}),(0,a.jsx)(i.Z,{variant:"body1",style:{marginBottom:20},children:"Adaugă județe, localități și ani ca taguri."}),("mapjud"===j||"maploc"===j)&&(0,a.jsx)(s.Z,{variant:"contained",color:"white",component:"span",style:{marginTop:0,marginBottom:30},size:"small",onClick:()=>y(),startIcon:(0,a.jsx)(c.Z,{color:"primary"}),children:"generează din date"}),m&&(0,a.jsx)(n.Z,{filterOptions:v,style:{width:"100%",marginBottom:20},multiple:!0,fullWidth:!0,limitTags:10,disablePortal:!0,id:"combo-box-demo",options:u.map(t=>t.judet),sx:{width:300},onChange:(t,e)=>{m(e||[])},value:p||[],getOptionLabel:t=>{let e=u.find(e=>e.judet===t);return e?e.nume+", "+e.judet:t},renderInput:t=>(0,a.jsx)(r.Z,{...t,label:"Județe"})}),(0,a.jsx)(n.Z,{filterOptions:v,style:{width:"100%",marginBottom:20},multiple:!0,fullWidth:!0,limitTags:10,disablePortal:!0,options:x,sx:{width:300},onChange:(t,e)=>{o(e||[])},value:e||[],getOptionLabel:t=>{let e=g.find(e=>e.loc_jd===t);return e?e.loc+", "+e.judet:t},renderInput:t=>(0,a.jsx)(r.Z,{...t,label:"Localități"})})]})}},54646:function(t,e,o){o.d(e,{Q:function(){return l}});var a=o(67294);let l=(0,a.createContext)()},11154:function(t){t.exports=JSON.parse('[{"judet":"ro-ab","nume":"Alba","long":23.5399,"lat":46.0238,"wt":800,"ht":800,"scale":36000,"rotate":[-23.43,-46.02,0],"pos":"top"},{"judet":"ro-ag","nume":"Argeș","long":24.8486,"lat":44.995,"wt":500,"ht":550,"scale":25000,"rotate":[-24.8486,-44.995,0],"pos":"top"},{"judet":"ro-ar","nume":"Arad","long":21.8938,"lat":46.2937,"wt":800,"ht":500,"scale":32000,"rotate":[-21.69,-46.28,0],"pos":"top"},{"judet":"ro-b","nume":"București","long":26.1027,"lat":44.4361,"wt":800,"ht":600,"scale":166000,"rotate":[-26.0827,-44.4361,0],"pos":"top"},{"judet":"ro-bc","nume":"Bacău","long":26.7114,"lat":46.4265,"wt":800,"ht":580,"scale":37000,"rotate":[-26.76,-46.47,0],"pos":"top"},{"judet":"ro-bh","nume":"Bihor","long":22.1957,"lat":46.9959,"wt":600,"ht":630,"scale":28000,"rotate":[-22.1957,-46.99,0],"pos":"top"},{"judet":"ro-bn","nume":"Bistrița-Năsăud","long":24.5059,"lat":47.1808,"wt":800,"ht":600,"scale":39500,"rotate":[-24.59,-47.18,0],"pos":"top"},{"judet":"ro-br","nume":"Brăila","long":27.6672,"lat":45.1178,"wt":800,"ht":600,"scale":45000,"rotate":[-27.65,-45.14,0],"pos":"top"},{"judet":"ro-bt","nume":"Botoșani","long":26.7595,"lat":47.8523,"wt":800,"ht":600,"scale":40000,"rotate":[-26.7,-47.84,0],"pos":"top"},{"judet":"ro-bv","nume":"Brașov","long":25.1534,"lat":45.7827,"wt":800,"ht":600,"scale":40000,"rotate":[-25.3,-45.8,0],"pos":"top"},{"judet":"ro-bz","nume":"Buzău","long":26.7906,"lat":45.2656,"wt":800,"ht":700,"scale":38000,"rotate":[-26.7906,-45.2656,0],"pos":"top"},{"judet":"ro-cj","nume":"Cluj","long":23.7116,"lat":46.8851,"wt":800,"ht":640,"scale":36000,"rotate":[-23.5,-46.9,0],"pos":"top"},{"judet":"ro-cl","nume":"Călărași","long":27.1338,"lat":44.3291,"wt":800,"ht":400,"scale":36000,"rotate":[-27.13,-44.35,0],"pos":"top"},{"judet":"ro-cs","nume":"Caraș-Severin","long":22.0768,"lat":45.1274,"wt":800,"ht":700,"scale":36000,"rotate":[-22.15,-45.12,0],"pos":"top"},{"judet":"ro-ct","nume":"Constanța","long":28.509,"lat":44.2679,"wt":800,"ht":750,"scale":37000,"rotate":[-28.1,-44.33,0],"pos":"top"},{"judet":"ro-cv","nume":"Covasna","long":25.9634,"lat":45.8993,"wt":800,"ht":650,"scale":50000,"rotate":[-26,-45.92,0],"pos":"top"},{"judet":"ro-db","nume":"D\xe2mbovița","long":25.4831,"lat":44.9268,"wt":800,"ht":800,"scale":43000,"rotate":[-25.58,-44.92,0],"pos":"top"},{"judet":"ro-dj","nume":"Dolj","long":23.6692,"lat":44.2141,"wt":800,"ht":650,"scale":35000,"rotate":[-23.56,-44.23,0],"pos":"top"},{"judet":"ro-gj","nume":"Gorj","long":23.3257,"lat":44.9612,"wt":800,"ht":600,"scale":42000,"rotate":[-23.3,-44.95,0],"pos":"bottom"},{"judet":"ro-gl","nume":"Galați","long":27.7512,"lat":45.7777,"wt":800,"ht":700,"scale":50000,"rotate":[-27.7712,-45.76,0],"pos":"top"},{"judet":"ro-gr","nume":"Giurgiu","long":26.05,"lat":44.1235,"wt":800,"ht":700,"scale":45000,"rotate":[-25.85,-44.1235,0],"pos":"top"},{"judet":"ro-hd","nume":"Hunedoara","long":22.9516,"lat":45.7759,"wt":800,"ht":800,"scale":40000,"rotate":[-22.95,-45.77,0],"pos":"top"},{"judet":"ro-hr","nume":"Harghita","long":25.5978,"lat":46.6261,"wt":800,"ht":700,"scale":36000,"rotate":[-25.4978,-46.6261,0],"pos":"top"},{"judet":"ro-if","nume":"Ilfov","long":26.2864,"lat":44.7379,"wt":800,"ht":530,"scale":55000,"rotate":[-26.11,-44.5,0],"pos":"top"},{"judet":"ro-il","nume":"Ialomița","long":27.3662,"lat":44.5976,"wt":800,"ht":450,"scale":36000,"rotate":[-27.16,-44.67,0],"pos":"top"}
1,{"judet":"ro-is","nume":"Iași","long":27.1883,"lat":47.2047,"wt":800,"ht":550,"scale":39000,"rotate":[-27.3,-47.19,0],"pos":"top"},{"judet":"ro-mh","nume":"Mehedinți","long":23.0554,"lat":44.6042,"wt":800,"ht":650,"scale":36000,"rotate":[-22.7,-44.6042,0],"pos":"top"},{"judet":"ro-mm","nume":"Maramureș","long":24.1964,"lat":47.6723,"wt":900,"ht":500,"scale":35000,"rotate":[-24.03,-47.7,0],"pos":"top"},{"judet":"ro-ms","nume":"Mureș","long":24.6254,"lat":46.6066,"wt":800,"ht":700,"scale":36000,"rotate":[-24.75,-46.6,0],"pos":"top"},{"judet":"ro-nt","nume":"Neamț","long":26.4853,"lat":46.9908,"wt":800,"ht":530,"scale":40000,"rotate":[-26.43,-46.99,0],"pos":"top"},{"judet":"ro-ot","nume":"Olt","long":24.4661,"lat":44.2914,"wt":800,"ht":800,"scale":36000,"rotate":[-24.46,-44.29,0],"pos":"top"},{"judet":"ro-ph","nume":"Prahova","long":26.0402,"lat":45.1056,"wt":800,"ht":670,"scale":45000,"rotate":[-25.95,-45.1,0],"pos":"top"},{"judet":"ro-sb","nume":"Sibiu","long":24.2492,"lat":45.8872,"wt":800,"ht":600,"scale":42000,"rotate":[-24.2492,-45.8872,0],"pos":"top"},{"judet":"ro-sj","nume":"Sălaj","long":23.0145,"lat":47.1546,"wt":800,"ht":550,"scale":46000,"rotate":[-23.21,-47.18,0],"pos":"top"},{"judet":"ro-sm","nume":"Satu-Mare","long":22.7655,"lat":47.7332,"wt":800,"ht":600,"scale":42000,"rotate":[-22.97,-47.73,0],"pos":"top"},{"judet":"ro-sv","nume":"Suceava","long":25.8174,"lat":47.5327,"wt":800,"ht":600,"scale":36000,"rotate":[-25.8174,-47.5327,0],"pos":"top"},{"judet":"ro-tl","nume":"Tulcea","long":29.0687,"lat":45.0047,"wt":800,"ht":570,"scale":36000,"rotate":[-28.86,-45.02,0],"pos":"bottom"},{"judet":"ro-tm","nume":"Timiș","long":21.6322,"lat":45.6908,"wt":800,"ht":550,"scale":28000,"rotate":[-21.4,-45.7,0],"pos":"top"},{"judet":"ro-tr","nume":"Teleorman","long":25.1865,"lat":44.0681,"wt":800,"ht":700,"scale":44000,"rotate":[-25.18,-44.08,0],"pos":"top"},{"judet":"ro-vl","nume":"V\xe2lcea","long":24.1539,"lat":45.0405,"wt":800,"ht":800,"scale":41000,"rotate":[-24.1539,-45.0405,0],"pos":"top"},{"judet":"ro-vn","nume":"Vrancea","long":26.892,"lat":45.7868,"wt":800,"ht":650,"scale":42000,"rotate":[-27.06,-45.81,0],"pos":"top"},{"judet":"ro-vs","nume":"Vaslui","long":27.8033,"lat":46.4968,"wt":800,"ht":700,"scale":40000,"rotate":[-27.75,-46.49,0],"pos":"top"}]')}}]);

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.