Files
php_assessment_2/wp-content/plugins/woocommerce-payments/dist/product-details.js
T

1 line
38 KiB
JavaScript
Raw Normal View History

2025-02-05 23:15:46 +01:00
(()=>{var e={};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{var t;e.g.importScripts&&(t=e.g.location+"");var r=e.g.document;if(!t&&r&&(r.currentScript&&(t=r.currentScript.src),!t)){var o=r.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=o[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t})(),e.p=window.wcpayAssets.url,(()=>{"use strict";const e=e=>"undefined"!=typeof wcpayConfig?wcpayConfig[e]:t(e),t=e=>{let t=null;if("undefined"!=typeof wcpay_upe_config)t=wcpay_upe_config;else{if("object"!=typeof wc||void 0===wc.wcSettings)return null;t=wc.wcSettings.getSetting("woocommerce_payments_data")||{}}return t[e]||null},r=e=>"object"==typeof wcpayExpressCheckoutParams&&wcpayExpressCheckoutParams.hasOwnProperty(e)?wcpayExpressCheckoutParams[e]:"object"==typeof wcpayPaymentRequestParams&&wcpayPaymentRequestParams.hasOwnProperty(e)?wcpayPaymentRequestParams[e]:null,o=e=>r("wc_ajax_url").toString().replace("%%endpoint%%","wcpay_"+e),n=(e,t,r="wcpay_")=>e.toString().replace("%%endpoint%%",r+t),a=["color","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"],i=["fontFamily","fontSize","lineHeight","letterSpacing","fontWeight","fontVariation","textDecoration","textShadow","textTransform","-webkit-font-smoothing","-moz-osx-font-smoothing","transition"],c=["backgroundColor","border","borderTop","borderRight","borderBottom","borderLeft","borderRadius","borderWidth","borderColor","borderStyle","borderTopWidth","borderTopColor","borderTopStyle","borderRightWidth","borderRightColor","borderRightStyle","borderBottomWidth","borderBottomColor","borderBottomStyle","borderLeftWidth","borderLeftColor","borderLeftStyle","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","outline","outlineOffset","boxShadow"],s={".Label":[...a,...i],".Text":[...a,...i],".Input":[...a,...i,...c],".Error":[...a,...i,...c],".Tab":[...a,...i,...c],".TabIcon":[...a],".TabLabel":[...a,...i],".Block":[...a.slice(1),...c.slice(1)],".Container":[...c],".Header":[...a,...c,...i],".Footer":[...a,...c,...i]},l={".Label":s[".Label"],".Label--floating":[...s[".Label"],"transform"],".Input":[...s[".Input"],"outlineColor","outlineWidth","outlineStyle"],".Error":s[".Error"],".Tab":["backgroundColor","color","fontFamily"],".Tab--selected":["outlineColor","outlineWidth","outlineStyle","backgroundColor","color",c],".TabIcon":s[".TabIcon"],".TabIcon--selected":["color"],".TabLabel":s[".TabLabel"],".Block":s[".Block"],".Container":s[".Container"],".Header":s[".Header"],".Footer":s[".Footer"],".Footer--link":s[".Text"],".Text":s[".Text"],".Text--redirect":s[".Text"]};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var d=/^\s+/,h=/\s+$/;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var r=function(e){var t,r,o,n={r:0,g:0,b:0},a=1,i=null,c=null,s=null,l=!1,p=!1;return"string"==typeof e&&(e=function(e){e=e.replace(d,"").replace(h,"").toLowerCase();var t,r=!1;if(q[e])e=q[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=U.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=U.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=U.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=U.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=U.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=U.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=U.hex8.exec(e))?{r:F(t[1]),g:F(t[2]),b:F(t[3]),a:N(t[4]),format:r?"name":"hex8"}:(t=U.hex6.exec(e))?{r:F(t[1]),g:F(t[2]),b:F(t[3]),format:r?"name":"hex"}:(t=U.hex4.exec(e))?{r:F(t[1]+""+t[1]),g:F(t[2]+""+t[2]),b:F(t[3]+""+t[3]),a:N(t[4]+""+t[4]),format:r?"name":"hex8"}:!!(t=U.hex3.exec(e))&&{r:F(t[1]+""+t[