smart-admin/rc-busness/static/royalcanin-cdn-assets-new/css_js/royal-canin.utilities.picture-polyfill.js
2022-01-11 11:57:54 +08:00

1 line
1.3 KiB
JavaScript

(window["RCDLjsonFunction"]=window["RCDLjsonFunction"]||[]).push([[39],{126:function(e,t,n){"use strict";n.r(t);var r=n(20);var i=n.n(r);var o=n(32);var u=n.n(o);var c=n(262);var l=n.n(c);function asyncGeneratorStep(e,t,n,r,i,o,u){try{var c=e[o](u);var l=c.value}catch(e){n(e);return}if(c.done){t(l)}else{Promise.resolve(l).then(r,i)}}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function _next(e){asyncGeneratorStep(o,r,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,r,i,_next,_throw,"throw",e)}_next(undefined)}))}}RCDL.utilities.picturePolyfill=function(){if(!RCDL.utilities.picturePolyfill.prototype.checked){if(!RCDL.checkHTML5Support.check("picture")){n.e(131).then(n.t.bind(null,648,7)).then((function(e){e.default()}))}RCDL.utilities.picturePolyfill.prototype.checked=true}};RCDL.utilities.picturePolyfill.prototype.checked=false;t["default"]={fn:function(){var e=_asyncToGenerator(regeneratorRuntime.mark((function _callee(){return regeneratorRuntime.wrap((function _callee$(e){while(1){switch(e.prev=e.next){case 0:return e.abrupt("return",RCDL.utilities.picturePolyfill());case 1:case"end":return e.stop()}}}),_callee)})));function fn(){return e.apply(this,arguments)}return fn}(),setup:function setup(e){RCDL.utilities.picturePolyfill.prototype.defaultSelector=e}}}}]);