PageSourceSearch

https://magic.wizards.com/_nuxt/138.a2908bcb65e2bcf1119a.js

js wizards.com collected 2026-09-24 07:18:01 UTC 3,049 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[138],{1218:function(t,e,r){var content=r(2e3);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(17).default)("6885b820",content,!0,{sourceMap:!1})},1999:function(t,e,r){"use strict";var h=r(1218),o=r.n(h);r.d(e,"default",function(){return o.a})},2e3:function(t,e,r){var h=r(16)(function(i){return i[1]});h.push([t.i,".css-UJQPz{overflow:hidden;overflow:var(--aspect-ratio-overflow,hidden);position:relative;width:100%}.css-UJQPz>*{height:auto;left:0;margin:0;position:absolute;top:0;width:100%}.css-UJQPz picture img{height:100%;width:100%}.css-UJQPz>embed,.css-UJQPz>iframe,.css-UJQPz>video{height:100%}",""]),h.locals={wrap:"css-UJQPz"},t.exports=h},2667:function(t,e,r){"use strict";r.r(e);var h=r(10),o=(r(31),r(23),r(55),r(36),{name:"AspectRatio",props:{as:{type:String,required:!1,default:"div"},width:{type:[String,Number],required:!1,default:""},height:{type:[String,Number],required:!1,default:""},ratio:{type:String,required:!1,default:"1:1"}},data:()=>({errors:[]}),computed:{computedRatio(){if(this.width&&this.height){if("number"==typeof this.width&&"number"==typeof this.height)return"".concat(this.height/this.width*100,"%");if("string"==typeof this.width&&"string"==typeof this.height){if(this.width.includes("px")&&this.height.includes("px")){var t=Number(this.width.replace("px","")),e=Number(this.height.replace("px",""));return"".concat(e/t*100,"%")}var r=Number(this.width),o=Number(this.height);if(!isNaN(r)&&!isNaN(o))return"".concat(o/r*100,"%");this.errors.push('width and height must be numbers or strings containing "px"')}}if("string"==typeof this.ratio){if(this.ratio.includes(":")){var n=this.ratio.split(":"),d=Object(h.a)(n,2),c=d[0],f=d[1];if(!isNaN(c)&&!isNaN(f))return"".concat(Number(f)/Number(c)*100,"%");this.errors.push('ratio must be in the format of "width(number):height(number) or width(number):height(number)", e.g. "16:9"')}if(this.ratio.includes("x")){var l=this.ratio.split("x"),m=Object(h.a)(l,2),w=m[0],N=m[1];if(!isNaN(w)&&!isNaN(N))return"".concat(Number(N)/Number(w)*100,"%");this.errors.push('ratio must be in the format of "width(number)xheight(number) or width(number):height(number)", e.g. "16x9"')}this.errors.push('ratio must be in the format of "width(number):height(number) or width(number):height(number)", e.g. "16:9"')}return this.errors.push("width and height must be provided or ratio must be provided, returning 100% as the default value"),"100%"},computedStyle(){return{paddingTop:this.computedRatio}}},watch:{errors(){console.error(this.errors)}}}),n=r(1999),d=r(1);var component=Object(d.a)(o,function(){var t=this;return(0,t._self._c)(t.as,{tag:"component",class:t.$style.wrap,style:t.computedStyle,attrs:{"data-ratio":t.ratio,"data-width":t.width,"data-height":t.height,"data-aspect-ratio-v":"1.3.1"}},[t._t("default")],2)},[],!1,function(t){this.$style=n.default.locals||n.default},null,null);e.default=component.exports}}]);

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.