Current Path : /storage/v11800/testtest/public_html/wp-content/plugins/google-listings-and-ads/js/build/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/testtest/public_html/wp-content/plugins/google-listings-and-ads/js/build/product-attributes.js |
!function(){"use strict";var t={n:function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(e,{a:e}),e},d:function(o,e){for(var n in e)t.o(e,n)&&!t.o(o,n)&&Object.defineProperty(o,n,{enumerable:!0,get:e[n]})},o:function(t,o){return Object.prototype.hasOwnProperty.call(t,o)}},o=window.jQuery,e=t.n(o);window.glaData;const n=window.glaProductData,c=[["CAMPAIGN","campaign"],["ASSET_GROUP","asset-group"]],a=(Object.fromEntries(c),c.reduce(((t,o,e)=>{const n=(e+1).toString();return t[o[1]]=n,t}),{}),t=>{const o=t.parents("div.select-with-text-input").find(".custom-input");"_gla_custom_value"===t.val()?o.show():o.hide()});var r=t=>{const o=t("div.select-with-text-input select");o.each((function(o,e){a(t(e))})),o.on("change",(function(){a(t(this))}))};e()((function(){const t=()=>{r(e())};e()("#woocommerce-product-data").on("woocommerce_variations_loaded",t),e()(document.body).on("woocommerce_variations_added",t),t()})),e()(document).on("woocommerce-product-type-change","body",((t,o)=>{const c=n.applicableProductTypes.includes(o);e()(".gla_attributes_tab, .gla_meta_box").toggle(c)}))}();