/g,">")).replace(/100)){alert("100文字を超えて入力している項目があります。100文字を越えた項目を含めて生成することはできません。");return}for(var f=0;f<20;++f)if(document.getElementById("input-id-i"+f)&&(s[f]=document.getElementById("input-id-i"+f),i[f]=c(s[f].value),i[f].length>100)){alert("100文字を超えて入力している項目があります。100文字を越えた項目を含めて生成することはできません。");return}for(var f=61;f<65;++f)if(document.getElementById("input-id-i"+f)&&(s[f]=document.getElementById("input-id-i"+f),i[f]=c(s[f].value),i[f].length>100)){alert("100文字を超えて入力している項目があります。100文字を越えた項目を含めて生成することはできません。");return}for(var f=0;f<20;++f)if(document.getElementById("input-id-s"+f)&&(l[f]=document.getElementById("input-id-s"+f),r[f]=c(l[f].value),r[f].length>100)){alert("100文字を超えて入力している項目があります。100文字を越えた項目を含めて生成することはできません。");return}for(var f=0;f<70;++f)if(document.getElementById("input-id-c"+f)&&(o[f]=document.getElementById("input-id-c"+f),d[f]=c(o[f].value),d[f].length>100)){alert("100文字を超えて入力している項目があります。100文字を越えた項目を含めて生成することはできません。");return}d[1]&&(d[1]="+"+d[1]),d[4]&&(d[4]="https://"+d[4]),a[5]?i[5]="("+d[1]+")"+a[5].replace(/^0/,""):i[5]="",d[2]?i[6]="("+d[1]+")"+d[2].replace(/^0/,""):i[6]="",i[60]="",i[60]+=i[61]+", ",i[60]+=i[62]+", ",i[60]+=i[63];for(var f=1;f<20;++f)document.getElementById("design-id-"+f)&&(A[f]=document.getElementById("design-id-"+f),p[f]=A[f].value);var m=[];m[0]=p[14],"none"!==i[0]?m[2]=''+i[0]+" ":m[2]="","none"!==r[0]?m[3]=''+r[0]+" ":m[3]="";for(var f=5;f<11;++f)p[f]?(p[f]=c(p[f]),m[f]="family="+p[f].replace(/ /g,"+")+"&",p[f]='"'+p[f]+'"'):m[f]="";function u(e){let t=parseInt(e.substr(1,2),16),n=parseInt(e.substr(3,2),16),a=parseInt(e.substr(5,2),16);return(299*t+587*n+114*a)/2550>60?"#000000":"#ffffff"}m[11]=m[5]+m[6]+m[7]+m[8]+m[9]+m[10],""!==m[11]&&(m[11]='@import url("https://fonts.googleapis.com/css2?'+m[11]+'display=swap");');for(var h=u(p[1]),$=u(p[3]),y=document.getElementsByName("radio1"),E="",f=y.length;f--;)if(y[f].checked){switch(E=y[f].value){case"0":var w=''+d[5]+" ",b="";break;case"1":var w="",b=''+d[5]+" "}break}var _=document.getElementsByName("radio2");for(postPosition2="",f=_.length;f--;)if(_[f].checked){switch(postPosition2=_[f].value){case"0":var B=''+d[5]+" ",v="";break;case"1":var B="",v=''+d[5]+" "}break}var I=''+d[5]+" ",C=[],T=document.getElementsByName("radio3");for(postPosition2="",f=_.length;f--;)if(T[f].checked){switch(selectIcons=T[f].value){case"0":a[5]?C[1]='📞 ':C[1]="",d[2]?C[2]='📠 ':C[2]="",d[3]?C[3]='📧 ':C[3]="",d[4]?C[4]='🌐 ':C[4]="",a[6]?C[5]='🗺 ':C[5]="",C[7]='ℹ ',C[8]='📒 ';var R="";break;case"1":a[5]?C[1]='phone ':C[1]="",d[2]?C[2]='fax ':C[2]="",d[3]?C[3]='email ':C[3]="",d[4]?C[4]='web ':C[4]="",a[6]?C[5]='map ':C[5]="",C[7]='info ',C[8]='person_add ';var R=' '}d[6]?C[6]='
'+d[6]+' '+d[6]+' '+d[6]+"
":C[6]=""}var S=[];i[7]="";for(var f=7;f<12;++f)switch(d[f]){case"none":S[f]="";break;case"mobile":switch(selectIcons){case"0":S[f]="📱";break;case"1":S[f]='smartphone '}d[1]?i[7]="("+d[1]+")"+a[f].replace(/^0/,""):i[7]=a[f],S[f]=''+S[f]+' '+a[f]+' '+i[7]+' '+i[7]+"
";break;case"twitter":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"instagram":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"facebook":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"youtube":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"line":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"whatsapp":a[f]=a[f].replace("+",""),a[f]=a[f].replace("-",""),a[f]=a[f].replace("(",""),a[f]=a[f].replace(")",""),S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"weixin":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"kakaotalk":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"linkedin":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"discord":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"symbol":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"nem":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"bitcoin":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"ethereum":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
";break;case"freetext":S[f]=''+a[f]+' '+a[f]+' '+a[f]+"
"}var D=new Date,k=D.getUTCFullYear()+"-"+("0"+(D.getUTCMonth()+1)).slice(-2)+"-"+("0"+D.getUTCDate()).slice(-2)+"T"+("0"+D.getUTCHours()).slice(-2)+":"+("0"+D.getUTCMinutes()).slice(-2)+":"+("0"+D.getUTCSeconds()).slice(-2);d[52]=document.getElementById("input-id-c52").checked,d[52]?(a[12]=a[4],i[12]=i[4],r[12]=r[4],a[13]=a[4],i[13]=i[4],r[13]=r[4]):(a[12]=a[4],i[12]=i[4],r[12]=r[4],a[13]="",i[13]="",r[13]=""),d[59]=document.getElementById("input-id-c59").checked,d[59]?d[13]&&(d[14]=' target="_blank" href="https://'+d[13]+'"'):d[14]=' target="_blank" href="https://local.google.co.jp/maps?q='+d[5]+"+"+a[6]+"+"+a[1]+'"',a[1]&&a[12]?a[14]=a[12]+"("+a[1]+")":a[14]=a[12]+a[1],i[1]&&i[12]?i[14]=i[12]+"("+i[1]+")":i[14]=i[12]+i[1],d[6]?d[12]="URL;type=Symbol(XYM):https://symbol.fyi/accounts/'"+d[6]+"'\n":d[12]="",a[2]&&a[3]?a[15]=a[2]+" / "+a[3]:a[15]=a[2]+a[3],i[2]&&i[3]?i[15]=i[2]+" / "+i[3]:i[15]=i[2]+i[3];var x=new Date;function F(){t=(""+x.getFullYear()).slice(-2)+("0"+(x.getUTCMonth()+1)).slice(-2)+("0"+x.getUTCDate()).slice(-2)+("0"+x.getUTCHours()).slice(-2)+("0"+x.getUTCMinutes()).slice(-2)+("0"+x.getUTCSeconds()).slice(-2)+Math.floor(10*Math.random())+Math.floor(10*Math.random())+Math.floor(10*Math.random())}d[0]?15!==String(d[0]).length||isNaN(d[0])?F():t=d[0]:F(),void 0==retstrings6&&(m[0]=1),void 0==retstrings1&&(retstrings1="");var U=[],Y=[];U[0]="BEGIN:VCARD\nVERSION:3.0\nPRODID:-//GRAPEs Inc., OSAKA JAPAN//GRAPEs VirtualCardToken Generator Version 1.10\nN:;"+a[14]+";;;\nFN:"+a[14]+"\nX-NICKNAME: "+a[13]+";\nORG:"+a[1]+";"+a[15]+"\nEMAIL;TYPE=INTERNET;TYPE=WORK;TYPE=PREF:"+g(d[3])+"\nTEL;TYPE=WORK;TYPE=VOICE;TYPE=PREF:"+a[5]+"\nTEL;TYPE=CELL;TYPE=VOICE;TYPE=PREF:"+i[7]+"\nTEL;TYPE=WORK;TYPE=FAX:"+d[2]+"\nADR;TYPE=WORK;TYPE=PREF:;;"+a[6]+";"+d[5]+";;;\nURL;TYPE=PREF;TYPE=PREF:"+g(d[4])+"\ninputValueC[12]X-SOCIALPROFILE;TYPE=VirtualCardNum:"+t+"\nNOTE:last updated:"+new Date+"\nPHOTO;ENCODING=b;TYPE=JPEG:"+retstrings7+"\nEND:VCARD\n\n",Y[0]=window.btoa(unescape(encodeURIComponent(U[0]))),U[1]="BEGIN:VCARD\nVERSION:3.0\nPRODID:-//GRAPEs Inc., OSAKA JAPAN//GRAPEs VirtualCardToken Generator Version 1.10\nN:;"+i[12]+"("+i[1]+");;;\nFN:"+i[12]+"("+i[1]+")\nX-NICKNAME:"+a[13]+";\nORG:"+i[1]+";"+i[15]+"\nEMAIL;TYPE=INTERNET;TYPE=WORK;TYPE=PREF:"+g(d[3])+"\nTEL;TYPE=WORK;TYPE=VOICE;TYPE=PREF:"+i[5]+"\nTEL;TYPE=CELL;TYPE=VOICE;TYPE=PREF:"+i[7]+"\nTEL;TYPE=WORK;TYPE=FAX:"+i[6]+"\nADR;TYPE=WORK;TYPE=PREF:"+g(i[61])+";"+i[62]+";"+i[63]+";"+d[5]+";"+i[64]+";;\nURL;TYPE=PREF;TYPE=PREF:"+g(d[4])+"\ninputValueC[12]X-SOCIALPROFILE;TYPE=VirtualCardNum:"+t+"\nNOTE:last updated:"+new Date+"\nPHOTO;ENCODING=b;TYPE=JPEG:"+retstrings7+"\nEND:VCARD\n\n",Y[1]=window.btoa(unescape(encodeURIComponent(U[1])));var Q=[],P=[];if("日本語"===a[0])var L="カード作成日,氏名,ニックネーム,会社名,部署名,役職,TEL,携帯番号,FAX,Email,URL,国,郵便番号,住所,SymbolWalletAddress,VirtualCardNum,アイコン\n";else var L="Create Time,Name,Company,Department,Title,Telephone,Mobile,Fax,Email,Web Page,Note,Zip,Street2,Street1,City,State,Address: Country,SymbolWalletAddress,VirtualCardNum,Icon\n";Q[0]=L+k+"(UTC),"+a[12]+","+a[13]+","+a[1]+","+a[2]+","+a[3]+","+a[5]+","+i[7]+","+d[2]+","+g(d[3])+","+g(d[4])+",,"+d[5]+',"'+g(a[6])+'",'+d[6]+","+t+","+retstrings7,P[0]=window.btoa(unescape(encodeURIComponent(Q[0]))),Q[1]="Create Time,Name,Nickname,Company,Department,Title,Telephone,Mobile,Fax,Email,Web Page,Note,Zip,Street2,Street1,City,State,Address: Country,SymbolWalletAddress,VirtualCardNum,Icon\n"+k+"(UTC),"+i[12]+","+a[13]+","+i[1]+","+i[2]+","+i[3]+","+i[5]+","+i[7]+","+i[6]+","+g(d[3])+","+g(d[4])+",,"+d[5]+',,"'+i[61]+'","'+i[62]+'","'+i[63]+'","'+i[64]+'",'+d[6]+","+t+","+retstrings7,P[1]=window.btoa(unescape(encodeURIComponent(Q[1])));let G=`${a[14]} ${R}GRAPEs Virtual Card
1.10
\xd7 Generator ぶどうのバーチャルカードトークンつくーる v1.10(GRAPEs VirtualCardToken Generator v1.10) Meta Date:${k} (UTC)
Card Number ${t}
JSON Text for Token(Mosaic) Message Download
Guidance (1)このファイルはHTMLとCSSで構成されております。 (2)仕様変更、ブラウザ依存により、一部機能が動作しない事があります。 (3)一般的なメールサービスなどと同様、身に覚えのないトークン(モザイク) を受信した際や、URL等を開く際は、十分にご注意下さい。
(1)This file consists of HTML and CSS. (2)Some functions may not work due to specification changes or browser dependence. (3)Like as most mail services, please be very careful when receiving Tokens(Mosaics) that you do not recognize, or when opening URLs, etc.
`;var N="card.html",M=document.getElementById("getLocal"),O=["href","download"];window.navigator;var X=new Blob([G],{type:"text/html"}),V=window.URL.createObjectURL(X),j=window.navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")||-1!=j.indexOf("trident")?window.navigator.msSaveOrOpenBlob(X,N):(M.setAttribute(O[0],V),M.setAttribute(O[1],N))}function handleDragOver(e){e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"}function handleFileSelect1(e){e.stopPropagation(),e.preventDefault();for(var t,n=e.dataTransfer.files,a=[],s=0;t=n[s];s++)if(a.push("",escape(t.name)," (",t.type||"n/a",") - ",t.size," bytes, last modified: ",t.lastModifiedDate.toLocaleDateString(),"
"),t.type.match("image.*")){var i=new FileReader;i.onload=function(e){return function(t){var n=document.createElement("span");if(n.innerHTML=[' '].join(""),document.getElementById("list1").insertBefore(n,null),retstrings1=t.target.result,retstrings7){var a=document.createElement("canvas"),s=a.getContext("2d"),i=new Image;i.id="Anonymous",i.onload=function(e){var t,n;this.width>this.height?(t=300,n=300*this.height/this.width):(n=300,t=300*this.width/this.height),a.width=t,a.height=n,s.drawImage(this,0,0,this.width,this.height,0,0,t,n),retstrings7=(retstrings7=a.toDataURL("image/jpeg",.92)).replace("data:image/jpeg;base64,","")},retstrings7?i.src=retstrings7:i.src=retstrings1}}}(t),i.readAsDataURL(t)}document.getElementById("list1").innerHTML=""}var dropZone=document.getElementById("drop-zone1");function handleFileSelect2(e){e.stopPropagation(),e.preventDefault();for(var t,n=e.dataTransfer.files,a=[],s=0;t=n[s];s++)if(a.push("",escape(t.name)," (",t.type||"n/a",") - ",t.size," bytes, last modified: ",t.lastModifiedDate.toLocaleDateString(),"
"),t.type.match("image.*")){var i=new FileReader;i.onload=function(e){return function(t){var n=document.createElement("span");n.innerHTML=[' '].join(""),document.getElementById("list2").insertBefore(n,null),retstrings2=t.target.result}}(t),i.readAsDataURL(t)}document.getElementById("list2").innerHTML=""}dropZone.addEventListener("dragover",handleDragOver,!1),dropZone.addEventListener("drop",handleFileSelect1,!1);var dropZone=document.getElementById("drop-zone2");function handleFileSelect3(e){e.stopPropagation(),e.preventDefault();for(var t,n=e.dataTransfer.files,a=[],s=0;t=n[s];s++)if(a.push("",escape(t.name)," (",t.type||"n/a",") - ",t.size," bytes, last modified: ",t.lastModifiedDate.toLocaleDateString(),"
"),t.type.match("image.*")){var i=new FileReader;i.onload=function(e){return function(t){var n=document.createElement("span");n.innerHTML=[' '].join(""),document.getElementById("list3").insertBefore(n,null),retstrings3=t.target.result}}(t),i.readAsDataURL(t)}document.getElementById("list3").innerHTML=""}dropZone.addEventListener("dragover",handleDragOver,!1),dropZone.addEventListener("drop",handleFileSelect2,!1);var dropZone=document.getElementById("drop-zone3");function handleFileSelect4(e){e.stopPropagation(),e.preventDefault();for(var t,n=e.dataTransfer.files,a=[],s=0;t=n[s];s++)if(a.push("",escape(t.name)," (",t.type||"n/a",") - ",t.size," bytes, last modified: ",t.lastModifiedDate.toLocaleDateString(),"
"),t.type.match("image.*")){var i=new FileReader;i.onload=function(e){return function(t){var n=document.createElement("span");n.innerHTML=[' '].join(""),document.getElementById("list4").insertBefore(n,null),retstrings4=t.target.result}}(t),i.readAsDataURL(t)}document.getElementById("list4").innerHTML=""}dropZone.addEventListener("dragover",handleDragOver,!1),dropZone.addEventListener("drop",handleFileSelect3,!1);var dropZone=document.getElementById("drop-zone4");function handleFileSelect5(e){e.stopPropagation(),e.preventDefault();for(var t,n=e.dataTransfer.files,a=[],s=0;t=n[s];s++)if(a.push("",escape(t.name)," (",t.type||"n/a",") - ",t.size," bytes, last modified: ",t.lastModifiedDate.toLocaleDateString(),"
"),t.type.match("image.*")){var i=new FileReader;i.onload=function(e){return function(t){var n=document.createElement("span");n.innerHTML=[' '].join(""),document.getElementById("list5").insertBefore(n,null),retstrings5=t.target.result}}(t),i.readAsDataURL(t)}document.getElementById("list5").innerHTML=""}dropZone.addEventListener("dragover",handleDragOver,!1),dropZone.addEventListener("drop",handleFileSelect4,!1);var dropZone=document.getElementById("drop-zone5");function handleFileSelect6(e){e.stopPropagation(),e.preventDefault();for(var t,n=e.dataTransfer.files,a=[],s=0;t=n[s];s++)if(a.push("",escape(t.name)," (",t.type||"n/a",") - ",t.size," bytes, last modified: ",t.lastModifiedDate.toLocaleDateString(),"
"),t.type.match("image.*")){var i=new FileReader;i.onload=function(e){return function(t){var n=document.createElement("span");n.innerHTML=[' '].join(""),document.getElementById("list6").insertBefore(n,null),retstrings6=t.target.result}}(t),i.readAsDataURL(t)}document.getElementById("list6").innerHTML=""}dropZone.addEventListener("dragover",handleDragOver,!1),dropZone.addEventListener("drop",handleFileSelect5,!1);var dropZone=document.getElementById("drop-zone6");function handleFileSelect7(e){e.stopPropagation(),e.preventDefault();for(var t,n=e.dataTransfer.files,a=[],s=0;t=n[s];s++)if(a.push("",escape(t.name)," (",t.type||"n/a",") - ",t.size," bytes, last modified: ",t.lastModifiedDate.toLocaleDateString(),"
"),t.type.match("image.*")){var i=new FileReader;i.onload=function(e){return function(t){var n=document.createElement("span");n.innerHTML=[' '].join(""),document.getElementById("list7").insertBefore(n,null),retstrings7=t.target.result;var a=document.createElement("canvas"),s=a.getContext("2d"),i=new Image;i.id="Anonymous",i.onload=function(e){var t,n;this.width>this.height?(t=300,n=300*this.height/this.width):(n=300,t=300*this.width/this.height),a.width=t,a.height=n,s.drawImage(this,0,0,this.width,this.height,0,0,t,n),retstrings7=(retstrings7=a.toDataURL("image/jpeg",.92)).replace("data:image/jpeg;base64,","")},i.src=retstrings7}}(t),i.readAsDataURL(t)}document.getElementById("list7").innerHTML=""}dropZone.addEventListener("dragover",handleDragOver,!1),dropZone.addEventListener("drop",handleFileSelect6,!1);var dropZone=document.getElementById("drop-zone7");dropZone.addEventListener("dragover",handleDragOver,!1),dropZone.addEventListener("drop",handleFileSelect7,!1);var retstrings1="",retstrings2="",retstrings3="",retstrings4="",retstrings5="",retstrings6="",retstrings7="";function countGrapheme(e){let t=new Intl.Segmenter("ja",{granularity:"grapheme"});return[...t.segment(e)].length}const vctfileimport=document.getElementById("vctfileimport"),text=document.getElementById("text");function handleDownload(){for(var e="{",t=0;t<20;++t)document.getElementById("input-id-d"+t)&&(e+='"input-id-d'+t+'":"'+document.getElementById("input-id-d"+t).value+'",');for(var t=0;t<20;++t)document.getElementById("input-id-i"+t)&&(e+='"input-id-i'+t+'":"'+document.getElementById("input-id-i"+t).value+'",');for(var t=61;t<65;++t)document.getElementById("input-id-i"+t)&&(e+='"input-id-i'+t+'":"'+document.getElementById("input-id-i"+t).value+'",');for(var t=0;t<20;++t)document.getElementById("input-id-s"+t)&&(e+='"input-id-s'+t+'":"'+document.getElementById("input-id-s"+t).value+'",');for(var t=0;t<70;++t)document.getElementById("input-id-c"+t)&&(t>=51&&t<=70?e+='"input-id-c'+t+'":"'+document.getElementById("input-id-c"+t).checked+'",':e+='"input-id-c'+t+'":"'+document.getElementById("input-id-c"+t).value+'",');for(var t=0;t<20;++t)document.getElementById("design-id-"+t)&&(e+='"design-id-'+t+'":"'+document.getElementById("design-id-"+t).value+'",');e+='"":""}';var n="card-save-data.txt",a=document.getElementById("vcttemplate"),s=["href","download"];window.navigator;var i=new Blob([e],{type:"text/plain"}),l=window.URL.createObjectURL(i),r=window.navigator.userAgent.toLowerCase();-1!=r.indexOf("msie")||-1!=r.indexOf("trident")?window.navigator.msSaveOrOpenBlob(i,n):(a.setAttribute(s[0],l),a.setAttribute(s[1],n))}vctfileimport.addEventListener("change",function(e){let t=e.target.files,n=new FileReader;n.readAsText(t[0]),n.onload=function(){if(countGrapheme(textval=n.result)>4e3){alert("[EN]This file has unreadable data. [JP]読み取りできないデータが含まれています。");return}text.value=n.result;let e=JSON.parse(text.value);for(var t=0;t<20;++t)if(e["input-id-d"+t]){if(countGrapheme(e["input-id-d"+t])>100){alert("[EN]This file has unreadable data. [JP]読み取りできないデータが含まれています。");return}document.getElementById("input-id-d"+t).value=e["input-id-d"+t]}for(var t=0;t<20;++t)if(e["input-id-i"+t]){if(countGrapheme(e["input-id-i"+t])>100){alert("[EN]This file has unreadable data. [JP]読み取りできないデータが含まれています。");return}document.getElementById("input-id-i"+t).value=e["input-id-i"+t]}for(var t=61;t<65;++t)if(e["input-id-i"+t]){if(countGrapheme(e["input-id-i"+t])>100){alert("[EN]This file has unreadable data. [JP]読み取りできないデータが含まれています。");return}document.getElementById("input-id-i"+t).value=e["input-id-i"+t]}for(var t=0;t<20;++t)if(e["input-id-s"+t]){if(countGrapheme(e["input-id-s"+t])>100){alert("[EN]This file has unreadable data. [JP]読み取りできないデータが含まれています。");return}document.getElementById("input-id-s"+t).value=e["input-id-s"+t]}for(var t=0;t<70;++t)t>=51&&t<=70?document.getElementById("input-id-c"+t)&&("true"==e["input-id-c"+t]?document.getElementById("input-id-c"+t).checked=!0:document.getElementById("input-id-c"+t).checked=!1):e["input-id-c"+t]&&(document.getElementById("input-id-c"+t).value=e["input-id-c"+t]);for(var t=0;t<20;++t)if(e["design-id-"+t]){if(countGrapheme(e["design-id-"+t])>100){alert("[EN]This file has unreadable data. [JP]読み取りできないデータが含まれています。");return}document.getElementById("design-id-"+t).value=e["design-id-"+t]}change()}});