1 line
No EOL
23 KiB
JavaScript
1 line
No EOL
23 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[6,9,11,12,14,15,17,20,21],{242:function(e,t,n){},243:function(e){e.exports=JSON.parse('{"ja-JP":{"h3":{"appearance":"見た目"},"location":"位置:","fontSize":"文字サイズ:","fgColor":"文字色:","fgColorGrad":"グラデーション","fgColor1":"文字色(上):","fgColor2":"文字色(下):","alpha":"不透明度=","bgColor":"背景色:","bgOffset":"背景位置:","size":"サイズ:","left":"左","right":"右","top":"上","bottom":"下","display":{"duration":"表示時間:","frame":"(フレーム)","sec":"(秒)"}},"en-US":{"h3":{"appearance":"Appearance"},"location":"Location: ","fontSize":"Font size: ","fgColor":"Font color: ","fgColorGrad":"Gradient","fgColor1":"Font color(Top): ","fgColor2":"Font color(Bottom): ","alpha":"Alpha=","bgColor":"Background color: ","bgOffset":"Background offset: ","size":"Size: ","left":"Left","right":"Right","top":"Top","bottom":"Bottom","display":{"duration":"Display duration: ","frame":"(frame)","sec":"(sec)"}},"fr-FR":{"location":"Position : ","fontSize":"Taille de police : ","fgColor":"Couleur du texte : ","fgColorGrad":"Dégradé","fgColor1":"Couleur du texte (haut) : ","fgColor2":"Couleur du texte (bas) : ","bgColor":"Couleur de fond : ","alpha":"Alpha = "}}')},244:function(e,t,n){"use strict";n.r(t);var o=n(243),r=n(241);const i=e=>({get(){return this.$props.value[e]},set(t){this.update({[e]:t})}});var a={props:{value:{type:Object}},computed:{l(){var e;return null!==(e=o[this.$lang])&&void 0!==e?e:o["en-US"]},...Object.fromEntries(["x","y","fontSize","fgRGB","fgA","fgRGB2","fgA2","bgRGB","bgA","bgLeft","bgRight","bgTop","bgBot"].map(e=>[e,i(e)]))},methods:{update(e){this.$emit("input",{...this.value,...e})},toggleGradient(e){e.target.checked?this.update({fgRGB2:this.fgRGB,fgA2:this.fgA}):this.update({fgRGB2:null,fgA2:null})},rgbI2S:r.f,rgbS2I:r.g,rgbaI2S:r.h}},s=(n(245),n(10)),u=Object(s.a)(a,(function(){var e=this,t=e._self._c;return t("div",[t("div",[t("span",[e._v(e._s(e.l.location)+"(")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.x,expression:"x",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"600"},domProps:{value:e.x},on:{input:function(t){t.target.composing||(e.x=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v(", ")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.y,expression:"y",modifiers:{number:!0}}],attrs:{type:"number",min:"16",max:"464"},domProps:{value:e.y},on:{input:function(t){t.target.composing||(e.y=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v(")")])]),e._v(" "),t("div",[t("span",[e._v(e._s(e.l.fontSize))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.fontSize,expression:"fontSize",modifiers:{number:!0}}],attrs:{type:"number",min:"0"},domProps:{value:e.fontSize},on:{input:function(t){t.target.composing||(e.fontSize=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),t("div",[t("span",[e._v(e._s(null==e.fgRGB2?e.l.fgColor:e.l.fgColor1))]),t("input",{attrs:{type:"color"},domProps:{value:e.rgbI2S(e.fgRGB)},on:{change:function(t){e.fgRGB=e.rgbS2I(t.target.value)}}}),e._v(" "),t("span",[e._v(e._s(e.l.alpha))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.fgA,expression:"fgA",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"255"},domProps:{value:e.fgA},on:{input:function(t){t.target.composing||(e.fgA=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v("/255="+e._s((e.fgA/2.55).toFixed(1))+"%")]),e._v(" "),t("input",{attrs:{type:"checkbox"},domProps:{checked:null!=e.fgRGB2},on:{change:e.toggleGradient}}),t("span",[e._v(e._s(e.l.fgColorGrad))])]),e._v(" "),null!=e.fgRGB2?t("div",[t("span",[e._v(e._s(e.l.fgColor2))]),t("input",{attrs:{type:"color"},domProps:{value:e.rgbI2S(e.fgRGB2)},on:{change:function(t){e.fgRGB2=e.rgbS2I(t.target.value)}}}),e._v(" "),t("span",[e._v(e._s(e.l.alpha))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.fgA2,expression:"fgA2",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"255"},domProps:{value:e.fgA2},on:{input:function(t){t.target.composing||(e.fgA2=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v("/255="+e._s((e.fgA2/2.55).toFixed(1))+"%")])]):e._e(),e._v(" "),t("div",[t("div",[t("span",[e._v(e._s(e.l.bgColor))]),t("input",{attrs:{type:"color"},domProps:{value:e.rgbI2S(e.bgRGB)},on:{change:function(t){e.bgRGB=e.rgbS2I(t.target.value)}}}),e._v(" "),t("span",[e._v(e._s(e.l.alpha))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgA,expression:"bgA",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"254"},domProps:{value:e.bgA},on:{input:function(t){t.target.composing||(e.bgA=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v("/255="+e._s((e.bgA/2.55).toFixed(1))+"%")])]),e._v(" "),t("div",[t("span",[e._v(e._s(e.l.bgOffset))]),e._v(" "),t("span",[e._v(e._s(e.l.left))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgLeft,expression:"bgLeft",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgLeft},on:{input:function(t){t.target.composing||(e.bgLeft=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),t("span",[e._v(e._s(e.l.right))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgRight,expression:"bgRight",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgRight},on:{input:function(t){t.target.composing||(e.bgRight=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),t("span",[e._v(e._s(e.l.top))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgTop,expression:"bgTop",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgTop},on:{input:function(t){t.target.composing||(e.bgTop=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),e._v(" "),t("span",[e._v(e._s(e.l.bottom))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgBot,expression:"bgBot",modifiers:{number:!0}}],attrs:{type:"number"},domProps:{value:e.bgBot},on:{input:function(t){t.target.composing||(e.bgBot=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})])])])}),[],!1,null,"5f99cba2",null);t.default=u.exports},245:function(e,t,n){"use strict";n(242)},251:function(e){e.exports=JSON.parse('{"ja-JP":{"format":"フォーマット:","deletionConfirm":"本当に削除しますか?","add":{"PAS":"+ 位置/角度/速度表示","speed":"+ 速度表示","detailed":"+ 欲張りセット","rect":"+ 長方形"}},"en-US":{"format":"Format:","deletionConfirm":"Are you sure to delete?","add":{"PAS":"+ Position/Angle/Speed Display","speed":"+ Speed Display","detailed":"+ Detailed Display","rect":"+ Rectangle"}}}')},259:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var o=n(256),r=n(252),i=n(249),a=n(257),s=n(254),u=n(258);const l=["CustomizedDisplay","AttemptCounter","PatternSelector","qft","qfst","controller"],c=e=>Object.fromEntries(Object.entries({qft:o,qfst:r,CustomizedDisplay:i,PatternSelector:a,AttemptCounter:s,controller:u}).map(([t,n])=>[t,n.getConfig(e)]))},260:function(e,t,n){},261:function(e,t,n){},262:function(e,t,n){},263:function(e,t,n){},264:function(e,t,n){},265:function(e,t,n){},266:function(e,t,n){},270:function(e,t,n){"use strict";n.r(t);var o=n(251),r=n(244),i=n(249),a={components:{TextConfig:r.default},props:{value:{type:Object},version:{type:String},rows:{type:Number,default:7},cols:{type:Number,default:40}},data(){const{fmt:e,text:t,...n}=this.value;return{textConfig:n,fmt:e}},computed:{l(){var e;return null!==(e=o[this.$lang])&&void 0!==e?e:o["en-US"]},preview(){return Object(i.format2previewText)(this.fmt,this.version)}},methods:{update(){this.$emit("input",{fmt:this.fmt,text:this.preview,...this.textConfig})}},watch:{textConfig(){this.update()},fmt(){this.update()}}},s=n(10),u=Object(s.a)(a,(function(){var e=this,t=e._self._c;return t("div",[t("TextConfig",{model:{value:e.textConfig,callback:function(t){e.textConfig=t},expression:"textConfig"}}),e._v(" "),t("div",[t("div",[e._v(e._s(e.l.format))]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.fmt,expression:"fmt"}],attrs:{rows:e.rows,cols:e.cols},domProps:{value:e.fmt},on:{input:function(t){t.target.composing||(e.fmt=t.target.value)}}})])],1)}),[],!1,null,null,null);t.default=u.exports},278:function(e){e.exports=JSON.parse('{"h3Config":{"ja-JP":"ボタン設定","en-US":"Button Config"},"lblDPad":{"ja-JP":"【十字キー】","en-US":"D-Pad: "},"lblButton":{"ja-JP":"【ボタン】","en-US":"Button: "},"pCautionZ":{"ja-JP":"Zメニューが無効化されるので注意してください","en-US":"Note that Z menu will be disabled."}}')},279:function(e,t,n){"use strict";n(260)},280:function(e,t,n){"use strict";n(261)},281:function(e){e.exports=JSON.parse('{"ja-JP":{"appearance":"見た目","label":"ラベル:"},"en-US":{"appearance":"Appearance","label":"Label:"}}')},282:function(e,t,n){"use strict";n(262)},283:function(e){e.exports=JSON.parse('{"ja-JP":{"h3":"見た目","preview":"プレビュー","previewNote":"※ x座標の範囲は0~600、y座標の範囲は16~464です","freeze":{"h3":"一時停止","duration":"長さ:","frame":"(フレーム)","sec":"(秒)","rows":{"yellowCoin":"黄コインを取った時","redCoin":"赤コインを取った時","blueCoin":"青コインを取った時","item":"アイテム(ノズル等)を取った時","talk":"会話開始時","demo":"カットシーン開始時","cleaned":"NPCを洗った時","bowser":"クッパ戦の足場を破壊した時","yoshi":"ヨッシーに乗った時","take":"オブジェクトを持った時","drop":"オブジェクトを投げた時","put":"オブジェクトを置いた時","tripleJump":"三段ジャンプした時","spinJump":"スピンジャンプした時","ledgeGrab":"崖掴まりした時","wallKick":"壁キックした時","ropeJump":"ロープ、大車輪でジャンプした時","bounce":"アメンボやジャンプ台で跳ねた時"}}},"en-US":{"h3":"Appearance","preview":"Preview","previewNote":"※ x ranges from 0 to 600, and y ranges from 16 to 464.","freeze":{"h3":"Freezing the timer","duration":"Duration: ","frame":"(frames)","sec":"(sec)","rows":{"yellowCoin":"When a yellow coin is collected","redCoin":"When a red coin is collected","blueCoin":"When a blue coin is collected","item":"When an item (e.g. nozzle) is collected","talk":"When dialogue starts","demo":"When a cutscene starts","cleaned":"When an NPC is cleaned","bowser":"When a platform is destroyed in the Bowser fight","yoshi":"When Yoshi is mounted","take":"When Mario holds an object","drop":"When Mario throws an object","put":"When Mario puts down an object","tripleJump":"When Mario triple jumps","spinJump":"When Mario spin jumps","ledgeGrab":"When Mario ledge grabs","wallKick":"When Mario wall kicks","ropeJump":"When Mario jumps from a rope","bounce":"When Mario bounces (e.g. on a roof)"}}},"fr-FR":{"h3":"Apparence","preview":"Aperçu","previewNote":"※ x doit être entre 0 et 600, et y entre 16 et 464.","freeze":{"h3":"Temps intermédiaires","duration":"Durée d\'affichage : ","frame":"(frames)","sec":"(sec)","rows":{"yellowCoin":"Quand une pièce jaune est ramassée","redCoin":"Quand une pièce rouge est ramassée","blueCoin":"Quand une pièce bleue est ramassée","item":"Quand un power-up (buse, etc.) est ramassé","talk":"Quand un dialogue commence","demo":"Quand une cutscene commence","cleaned":"Quand un PNJ est nettoyé","bowser":"Quand une plate-forme est détruite dans le combat de Bowser","yoshi":"Quand Yoshi est monté"}}}}')},284:function(e,t,n){"use strict";n(263)},285:function(e,t,n){"use strict";n(264)},286:function(e,t,n){"use strict";n(265)},287:function(e,t,n){"use strict";n(266)},313:function(e,t,n){},329:function(e,t,n){"use strict";n.r(t);var o=n(241),r=n(271),i=n(278),a={methods:{updateConfig:Object(o.e)(r.e,r.c),toggleButton(e,t){this.button=e.target.checked?this.button|t:this.button&~t,this.updateConfig()},l(e){var t;return null!==(t=i[e][this.$lang])&&void 0!==t?t:i[e]["en-US"]}},data(){const{button:e}=Object(r.d)();return{button:e,buttonInfos:["A","B","X","Y","L","R","Z"].map(e=>({text:e,value:r.a[e]})),dpadButtonInfos:[{text:"←",value:r.a.DL},{text:"↓",value:r.a.DD},{text:"↑",value:r.a.DU},{text:"→",value:r.a.DR}],buttonValues:r.a}}},s=(n(279),n(10)),u=Object(s.a)(a,(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"config"}},[t("h3",[e._v(e._s(e.l("h3Config")))]),e._v(" "),t("div",[t("span",[e._v(e._s(e.l("lblButton")))]),e._v(" "),e._l(e.buttonInfos,(function(n){return t("div",{key:n.value,staticClass:"inline"},[t("input",{attrs:{type:"checkbox"},domProps:{checked:e.button&n.value},on:{change:function(t){return e.toggleButton(t,n.value)}}}),t("span",[e._v(e._s(n.text))])])}))],2),e._v(" "),t("div",[t("span",[e._v(e._s(e.l("lblDPad")))]),e._v(" "),e._l(e.dpadButtonInfos,(function(n){return t("div",{key:n.value,staticClass:"inline"},[t("input",{attrs:{type:"checkbox"},domProps:{checked:e.button&n.value},on:{change:function(t){return e.toggleButton(t,n.value)}}}),t("span",[e._v(e._s(n.text))])])}))],2),e._v(" "),e.button&e.buttonValues.Z?t("div",{staticClass:"custom-block danger"},[t("p",[e._v(e._s(e.l("pCautionZ")))])]):e._e()])}),[],!1,null,null,null);t.default=u.exports},330:function(e,t,n){"use strict";n.r(t);n(91);var o=n(251),r=n(249),i=n(276),a=n(241),s={components:{Cell:n(270).default},props:{version:{type:String},previewConfig:{type:Object}},computed:{l(){return Object(a.d)(o,this.$lang)},db(){const e=this.version;return Object.fromEntries(Object.entries(i.a).map(([t,n])=>[t,{...n,text:Object(r.format2previewText)(n.fmt,e)}]))}},data(){const e=this.version,t=Object(r.getConfig)(e),n={text:Object(r.format2previewText)(r.defaultConfig[0].fmt,e),...r.defaultConfig[0]},o=t.map((e,t)=>t);return{config:t,defaultConfigCell:n,keys:o,nextKey:o.length}},watch:{config:Object(a.e)(r.lskey,r.defaultConfig)},methods:{deletionConfirm(e){this.config.splice(e,1)},append(e){this.config.push({...e,key:this.nextKey++})}}},u=(n(280),n(10)),l=Object(u.a)(s,(function(){var e=this,t=e._self._c;return t("div",[t("Preview",{attrs:{config:e.previewConfig}}),e._v(" "),e._l(e.config,(function(n,o){return t("div",{key:n.key,staticClass:"textcell"},[t("button",{staticClass:"textcell-remove",on:{click:function(t){return e.deletionConfirm(o)}}},[e._v("×")]),e._v(" "),t("Cell",{attrs:{value:n,version:e.version},on:{input:t=>e.config.splice(o,1,{...t,key:n.key})}})],1)})),e._v(" "),t("div",{staticClass:"btn-ctn"},[t("button",{on:{click:function(t){return e.append(e.db.PAS)}}},[e._v(e._s(e.l("add.PAS")))]),e._v(" "),t("button",{on:{click:function(t){return e.append(e.db.speed)}}},[e._v(e._s(e.l("add.speed")))]),e._v(" "),t("button",{on:{click:function(t){return e.append(e.db.detailed)}}},[e._v(e._s(e.l("add.detailed")))]),e._v(" "),t("button",{on:{click:function(t){return e.append(e.db.rect)}}},[e._v(e._s(e.l("add.rect")))])])],2)}),[],!1,null,"42597328",null);t.default=l.exports},331:function(e,t,n){"use strict";n.r(t);var o=n(257),r=n(281),i=n(244),a=n(241);const s=Object(a.e)(o.lskey,o.defaultConfig,o.getPreviewText);var u={components:{TextConfig:i.default},props:{version:{type:String},previewConfig:{type:Object}},data:()=>({...Object(o.getConfig)()}),methods:{updateConfig:s},computed:{l(){var e;return null!==(e=r[this.$lang])&&void 0!==e?e:r["en-US"]},textConfig:{get(){return this},set(e){Object.assign(this,e),this.updateConfig()}}}},l=(n(282),n(10)),c=Object(l.a)(u,(function(){var e=this,t=e._self._c;return t("section",[t("h3",{attrs:{id:"PatternSelector-config"}},[e._v(e._s(e.l.appearance))]),e._v(" "),t("Preview",{attrs:{config:e.previewConfig}}),e._v(" "),t("div",{staticClass:"config-spacer"}),e._v(" "),t("TextConfig",{model:{value:e.textConfig,callback:function(t){e.textConfig=t},expression:"textConfig"}})],1)}),[],!1,null,"613eba6a",null);t.default=c.exports},332:function(e,t,n){"use strict";n.r(t);var o=n(256),r=n(241),i=n(283),a=n(244);const s=Object(r.e)(o.lskey,o.defaultConfig,o.getPreviewText);var u={components:{TextConfig:a.default},props:{version:{type:String}},methods:{onChangeFreeze(e,t){this.freeze[t]=e.target.checked,this.updateConfig()},updateConfig:s},data(){var e,t;return{...Object(o.getConfig)(),freezeKeys:[...Object.keys(null!==(e=null===(t=o.codes[this.version])||void 0===t?void 0:t.freezeCodeHooks)&&void 0!==e?e:{}),...o.statusKeys]}},computed:{l(){var e;return null!==(e=i[this.$lang])&&void 0!==e?e:i["en-US"]},textConfig:{get(){return this},set(e){Object.assign(this,e),this.updateConfig()}}},watch:{freezeDuration:s}},l=(n(284),n(10)),c=Object(l.a)(u,(function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"config"}},[t("section",{staticClass:"appearance"},[t("h3",[e._v(e._s(e.l.h3))]),e._v(" "),t("TextConfig",{model:{value:e.textConfig,callback:function(t){e.textConfig=t},expression:"textConfig"}})],1),e._v(" "),t("section",{staticClass:"freeze"},[t("h3",[e._v(e._s(e.l.freeze.h3))]),e._v(" "),t("div",[e._v("\n "+e._s(e.l.freeze.duration)),t("input",{directives:[{name:"model",rawName:"v-model",value:e.freezeDuration,expression:"freezeDuration"}],attrs:{type:"number",min:"0",max:"32767"},domProps:{value:e.freezeDuration},on:{input:function(t){t.target.composing||(e.freezeDuration=t.target.value)}}}),e._v("\n "+e._s(e.l.freeze.frame)+" = "+e._s((1001*e.freezeDuration/3e4).toFixed(2))+" "+e._s(e.l.freeze.sec)+"\n ")]),e._v(" "),t("table",[t("tbody",e._l(e.freezeKeys,(function(n){return t("tr",{key:n},[t("td",[e._v(e._s(e.l.freeze.rows[n]))]),e._v(" "),t("td",[t("input",{attrs:{type:"checkbox"},domProps:{checked:e.freeze[n]},on:{change:function(t){return e.onChangeFreeze(t,n)}}})])])})),0)])])])}),[],!1,null,"4914e272",null);t.default=c.exports},333:function(e,t,n){"use strict";n.r(t);var o=n(252),r=n(241),i=n(243),a=n(244);const s=Object(r.e)(o.lskey,o.defaultConfig,o.getPreviewText);var u={components:{TextConfig:a.default},props:{version:{type:String}},methods:{updateConfig:s},data:()=>({...Object(o.getConfig)()}),computed:{l(){return Object(r.d)(i,this.$lang)},textConfig:{get(){return this},set(e){Object.assign(this,e),this.updateConfig()}}}},l=(n(285),n(10)),c=Object(l.a)(u,(function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"appearance"},[t("h3",[e._v(e._s(e.l("h3.appearance")))]),e._v(" "),t("TextConfig",{model:{value:e.textConfig,callback:function(t){e.textConfig=t},expression:"textConfig"}})],1)])}),[],!1,null,"4d94b4e4",null);t.default=c.exports},334:function(e,t,n){"use strict";n.r(t);var o=n(254),r=n(241),i=n(243),a=n(244);const s=Object(r.e)(o.lskey,o.defaultConfig,o.getPreviewText);var u={components:{TextConfig:a.default},props:{version:{type:String}},methods:{updateConfig:s},data:()=>({...Object(o.getConfig)()}),computed:{l(){return Object(r.d)(i,this.$lang)},textConfig:{get(){return this},set(e){Object.assign(this,e),this.updateConfig()}}},watch:{duration:s}},l=(n(286),n(10)),c=Object(l.a)(u,(function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"appearance"},[t("h3",[e._v(e._s(e.l("h3.appearance")))]),e._v(" "),t("TextConfig",{model:{value:e.textConfig,callback:function(t){e.textConfig=t},expression:"textConfig"}}),e._v(" "),t("div",[t("span",[e._v(e._s(e.l("display.duration")))]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.duration,expression:"duration"}],attrs:{type:"number",min:"0",max:"255"},domProps:{value:e.duration},on:{input:function(t){t.target.composing||(e.duration=t.target.value)}}}),e._v("\n "+e._s(e.l("display.frame"))+" = "+e._s((1001*e.duration/3e4).toFixed(2))+" "+e._s(e.l("display.sec"))+"\n ")])],1)])}),[],!1,null,"70c2b9be",null);t.default=c.exports},335:function(e,t,n){"use strict";n.r(t);var o=n(258),r=n(277),i=n(241),a=n(243);const s=Object(i.e)(o.lskey,o.defaultConfig,null,r.a);var u={props:{version:{type:String}},methods:{updateConfig:s,rgbI2S:i.f,rgbS2I:i.g},data:()=>({...Object(o.getConfig)()}),computed:{l(){return Object(i.d)(a,this.$lang)}},watch:{x:s,y:s,lw:s,height:s,bgRGB:s,bgA:s}},l=(n(287),n(10)),c=Object(l.a)(u,(function(){var e=this,t=e._self._c;return t("div",[t("section",{staticClass:"appearance"},[t("h3",[e._v(e._s(e.l("h3.appearance")))]),e._v(" "),t("div",[t("div",[t("span",[e._v(e._s(e.l("location"))+"(")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.x,expression:"x",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"600"},domProps:{value:e.x},on:{input:function(t){t.target.composing||(e.x=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v(", ")]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.y,expression:"y",modifiers:{number:!0}}],attrs:{type:"number",min:"16",max:"464"},domProps:{value:e.y},on:{input:function(t){t.target.composing||(e.y=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v(")")])]),e._v(" "),t("div",[t("span",[e._v(e._s(e.l("size")))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.height,expression:"height",modifiers:{number:!0}}],attrs:{type:"number",min:"0"},domProps:{value:e.height},on:{input:function(t){t.target.composing||(e.height=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}})]),e._v(" "),t("div",[t("span",[e._v(e._s(e.l("bgColor")))]),t("input",{attrs:{type:"color"},domProps:{value:e.rgbI2S(e.bgRGB)},on:{change:function(t){e.bgRGB=e.rgbS2I(t.target.value)}}}),e._v(" "),t("span",[e._v(e._s(e.l("alpha")))]),t("input",{directives:[{name:"model",rawName:"v-model.number",value:e.bgA,expression:"bgA",modifiers:{number:!0}}],attrs:{type:"number",min:"0",max:"255"},domProps:{value:e.bgA},on:{input:function(t){t.target.composing||(e.bgA=e._n(t.target.value))},blur:function(t){return e.$forceUpdate()}}}),t("span",[e._v("/255="+e._s((e.bgA/2.55).toFixed(1))+"%")])])])])])}),[],!1,null,"5cdfe97c",null);t.default=c.exports},364:function(e,t,n){"use strict";n(313)},389:function(e,t,n){"use strict";n.r(t);var o=n(246),r=n(259),i=n(329),a=n(330),s=n(331),u=n(332),l=n(333),c=n(334),d=n(335),p={InstantRestart:i.default,CustomizedDisplay:a.default,PatternSelector:s.default,qft:u.default,qfst:l.default,AttemptCounter:c.default,controller:d.default},f={props:{anchor:{type:Boolean},code:{type:Object},version:{type:String},previewConfig:{type:Object}},computed:{translatedCode:function(){return Object(o.b)(this.code,this.$lang)},configUI:function(){return p[this.code.id]},showPreview(){return r.b.includes(this.code.id)}},data:()=>({}),methods:{getLabel(e){return Object(o.a)(e,this.$lang)}}},g=(n(364),n(10)),v=Object(g.a)(f,(function(){var e=this,t=e._self._c;return t("div",[t("h3",[e._v(e._s(e.translatedCode.title))]),e._v(" "),t("div",{staticClass:"metadata"},[t("span",[e._v("\n "+e._s(e.getLabel("codeinfo.version"))+" "+e._s(e.translatedCode.version)+" ("+e._s(e.translatedCode.date)+")\n ")]),e._v(" "),e.code.author.includes(",")?t("span",[e._v(e._s(e.getLabel("codeinfo.authors"))+" "+e._s(e.translatedCode.author))]):t("span",[e._v(e._s(e.getLabel("codeinfo.author"))+" "+e._s(e.translatedCode.author))])]),e._v(" "),e.showPreview?t("Preview",{attrs:{config:e.previewConfig}}):e._e(),e._v(" "),t("p",{staticClass:"description",domProps:{innerHTML:e._s(e.translatedCode.description)}}),e._v(" "),e.configUI?t(e.configUI,{tag:"component",attrs:{version:e.version,previewConfig:e.previewConfig},on:{config:function(t){return e.$emit("config",{[e.code.id]:t})}}}):e._e()],1)}),[],!1,null,"82bf8306",null);t.default=v.exports}}]); |