{"version":3,"sources":["webpack:///./src/feature/image/image.js","webpack:///./node_modules/core-js/modules/es.object.get-prototype-of.js","webpack:///./node_modules/core-js/modules/es.object.set-prototype-of.js"],"names":["Image","element","elm","initDomCache","init","supportObjectFit","document","documentElement","style","imageCover","this","classList","contains","objectFit","imgUrl","dataset","fallbackUrl","backgroundImage","add","innerHTML","BaseFeature","$","fails","toObject","nativeGetPrototypeOf","CORRECT_PROTOTYPE_GETTER","target","stat","forced","sham","getPrototypeOf","it","setPrototypeOf"],"mappings":"6+BAEqBA,E,YACpB,WAAYC,GAAS,a,4FAAA,UACpB,wBAAMA,KAEDC,IAAMD,EACX,EAAKE,eACL,EAAKC,OALe,E,8RASpB,IAAMC,EAAmB,cAAeC,SAASC,gBAAgBC,MAC3DC,EAAaC,KAAKR,IAAIS,UAAUC,SAAS,mBAC1CP,GAAoBI,GACxBC,KAAKG,c,kCAKN,IAAMC,EAASJ,KAAKR,IAAIa,QAAQC,YAChCN,KAAKR,IAAIM,MAAMS,gBAAf,cAAwCH,EAAxC,KACAJ,KAAKR,IAAIS,UAAUO,IAAI,2BACvBR,KAAKR,IAAIiB,UAAY,Q,oCArBYC,I,oBCFnC,IAAIC,EAAI,EAAQ,GACZC,EAAQ,EAAQ,GAChBC,EAAW,EAAQ,GACnBC,EAAuB,EAAQ,IAC/BC,EAA2B,EAAQ,IAMvCJ,EAAE,CAAEK,OAAQ,SAAUC,MAAM,EAAMC,OAJRN,GAAM,WAAcE,EAAqB,MAIJK,MAAOJ,GAA4B,CAChGK,eAAgB,SAAwBC,GACtC,OAAOP,EAAqBD,EAASQ,Q,oBCZjC,EAAQ,EAKhBV,CAAE,CAAEK,OAAQ,SAAUC,MAAM,GAAQ,CAClCK,eALmB,EAAQ","file":"12-5154093c.pkg.js","sourcesContent":["import BaseFeature from '../../foundation/base/base';\r\n\r\nexport default class Image extends BaseFeature {\r\n\tconstructor(element) {\r\n\t\tsuper(element);\r\n\r\n\t\tthis.elm = element;\r\n\t\tthis.initDomCache();\r\n\t\tthis.init();\r\n\t}\r\n\r\n\tinit() {\r\n\t\tconst supportObjectFit = 'objectFit' in document.documentElement.style;\r\n\t\tconst imageCover = this.elm.classList.contains('a-image--cover');\r\n\t\tif (!supportObjectFit && imageCover) {\r\n\t\t\tthis.objectFit();\r\n\t\t}\r\n\t}\r\n\r\n\tobjectFit() {\r\n\t\tconst imgUrl = this.elm.dataset.fallbackUrl;\r\n\t\tthis.elm.style.backgroundImage = `url(${imgUrl})`;\r\n\t\tthis.elm.classList.add('a-image--cover-fallback');\r\n\t\tthis.elm.innerHTML = '';\r\n\t}\r\n}\r\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n"],"sourceRoot":""}