25 lines
6.3 KiB
JavaScript
25 lines
6.3 KiB
JavaScript
window.order_preferences=function(n){function t(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};return t.m=n,t.c=e,t.i=function(n){return n},t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=507)}({0:function(n,t,e){"use strict";t.__esModule=!0,t.default=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}},1:function(n,t,e){"use strict";t.__esModule=!0;var r=e(19),o=function(n){return n&&n.__esModule?n:{default:n}}(r);t.default=function(){function n(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(n,r.key,r)}}return function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}}()},10:function(n,t,e){var r=e(6),o=e(12);n.exports=e(2)?function(n,t,e){return r.f(n,t,o(1,e))}:function(n,t,e){return n[t]=e,n}},11:function(n,t,e){var r=e(4);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},12:function(n,t){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},13:function(n,t,e){var r=e(4);n.exports=function(n,t){if(!r(n))return n;var e,o;if(t&&"function"==typeof(e=n.toString)&&!r(o=e.call(n)))return o;if("function"==typeof(e=n.valueOf)&&!r(o=e.call(n)))return o;if(!t&&"function"==typeof(e=n.toString)&&!r(o=e.call(n)))return o;throw TypeError("Can't convert object to primitive value")}},15:function(n,t,e){var r=e(18);n.exports=function(n,t,e){if(r(n),void 0===t)return n;switch(e){case 1:return function(e){return n.call(t,e)};case 2:return function(e,r){return n.call(t,e,r)};case 3:return function(e,r,o){return n.call(t,e,r,o)}}return function(){return n.apply(t,arguments)}}},16:function(n,t,e){var r=e(4),o=e(5).document,u=r(o)&&r(o.createElement);n.exports=function(n){return u?o.createElement(n):{}}},17:function(n,t,e){n.exports=!e(2)&&!e(7)(function(){return 7!=Object.defineProperty(e(16)("div"),"a",{get:function(){return 7}}).a})},18:function(n,t){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},19:function(n,t,e){n.exports={default:e(20),__esModule:!0}},2:function(n,t,e){n.exports=!e(7)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},20:function(n,t,e){e(21);var r=e(3).Object;n.exports=function(n,t,e){return r.defineProperty(n,t,e)}},21:function(n,t,e){var r=e(8);r(r.S+r.F*!e(2),"Object",{defineProperty:e(6).f})},3:function(n,t){var e=n.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},4:function(n,t){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},412:function(n,t,e){"use strict";function r(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(t,"__esModule",{value:!0});var o=e(0),u=r(o),i=e(1),f=r(i),c=window.$,a=function(){function n(){var t=this;(0,u.default)(this,n),this.handle(),c('input[name="form[general][enable_tos]"]').on("change",function(){return t.handle()})}return(0,f.default)(n,[{key:"handle",value:function(){var n=c('input[name="form[general][enable_tos]"]:checked').val(),t=parseInt(n);this.handleTermsAndConditionsCmsSelect(t)}},{key:"handleTermsAndConditionsCmsSelect",value:function(n){c("#form_general_tos_cms_id").prop("disabled",!n)}}]),n}();t.default=a},5:function(n,t){var e=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},507:function(n,t,e){"use strict";var r=e(412),o=function(n){return n&&n.__esModule?n:{default:n}}(r);/**
|
|
* Copyright since 2007 PrestaShop SA and Contributors
|
|
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
|
*
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This source file is subject to the Open Software License (OSL 3.0)
|
|
* that is bundled with this package in the file LICENSE.md.
|
|
* It is also available through the world-wide-web at this URL:
|
|
* https://opensource.org/licenses/OSL-3.0
|
|
* If you did not receive a copy of the license and are unable to
|
|
* obtain it through the world-wide-web, please send an email
|
|
* to license@prestashop.com so we can send you a copy immediately.
|
|
*
|
|
* DISCLAIMER
|
|
*
|
|
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
|
* versions in the future. If you wish to customize PrestaShop for your
|
|
* needs please refer to https://devdocs.prestashop.com/ for more information.
|
|
*
|
|
* @author PrestaShop SA and Contributors <contact@prestashop.com>
|
|
* @copyright Since 2007 PrestaShop SA and Contributors
|
|
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
|
|
*/
|
|
(0,window.$)(function(){new o.default})},6:function(n,t,e){var r=e(11),o=e(17),u=e(13),i=Object.defineProperty;t.f=e(2)?Object.defineProperty:function(n,t,e){if(r(n),t=u(t,!0),r(e),o)try{return i(n,t,e)}catch(n){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(n[t]=e.value),n}},7:function(n,t){n.exports=function(n){try{return!!n()}catch(n){return!0}}},8:function(n,t,e){var r=e(5),o=e(3),u=e(15),i=e(10),f=function(n,t,e){var c,a,l,s=n&f.F,p=n&f.G,d=n&f.S,v=n&f.P,y=n&f.B,_=n&f.W,h=p?o:o[t]||(o[t]={}),w=h.prototype,b=p?r:d?r[t]:(r[t]||{}).prototype;p&&(e=t);for(c in e)(a=!s&&b&&void 0!==b[c])&&c in h||(l=a?b[c]:e[c],h[c]=p&&"function"!=typeof b[c]?e[c]:y&&a?u(l,r):_&&b[c]==l?function(n){var t=function(t,e,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,r)}return n.apply(this,arguments)};return t.prototype=n.prototype,t}(l):v&&"function"==typeof l?u(Function.call,l):l,v&&((h.virtual||(h.virtual={}))[c]=l,n&f.R&&w&&!w[c]&&i(w,c,l)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,n.exports=f}}); |