Submit
Path:
~
/
home
/
getwphos
/
www
/
new-cytogenx
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
wp-admin-scripts
/
File Content:
beta-features-tracking-modal.js
(()=>{"use strict";var e={};(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);const t=window.wp.element,a=window.wp.i18n,o=window.wp.components,n=window.wp.data,c=window.wp.compose,r=window.wc.data,i=window.wc.tracks,s=window.wc.explat,d=(0,c.compose)((0,n.withDispatch)((e=>{const{updateOptions:t}=e(r.OPTIONS_STORE_NAME);return{updateOptions:t}})))((({updateOptions:e})=>{const[n,c]=(0,t.useState)(!1),[r,d]=(0,t.useState)(!1),m=(0,t.useRef)(document.querySelector("#woocommerce_navigation_enabled")),w=async t=>("function"==typeof window.wcTracks.enable&&(t?window.wcTracks.enable((()=>{(0,s.initializeExPlat)()})):window.wcTracks.isEnabled=!1),t&&(0,i.recordEvent)("settings_features_tracking_enabled"),e({woocommerce_allow_tracking:t?"yes":"no"}));return(0,t.useEffect)((()=>{if(!m.current)return;const e=e=>{e.target.checked&&(e.target.checked=!1,c(!0))},t=m.current;return t.addEventListener("change",e,!1),()=>t.removeEventListener("change",e)}),[]),m.current&&n?(0,t.createElement)(o.Modal,{title:(0,a.__)("Build a Better WooCommerce","woocommerce"),onRequestClose:()=>c(!1),className:"woocommerce-beta-features-tracking-modal"},(0,t.createElement)("p",null,(0,a.__)("Testing new features requires sharing non-sensitive data via ","woocommerce"),(0,t.createElement)("a",{href:"https://woocommerce.com/usage-tracking?utm_medium=product"},(0,a.__)("usage tracking","woocommerce")),(0,a.__)(". Gathering usage data allows us to make WooCommerce better — your store will be considered as we evaluate new features, judge the quality of an update, or determine if an improvement makes sense. No personal data is tracked or stored and you can opt-out at any time.","woocommerce")),(0,t.createElement)("div",{className:"woocommerce-beta-features-tracking-modal__checkbox"},(0,t.createElement)(o.CheckboxControl,{label:"Enable usage tracking",onChange:d,checked:r})),(0,t.createElement)("div",{className:"woocommerce-beta-features-tracking-modal__actions"},(0,t.createElement)(o.Button,{isPrimary:!0,onClick:async()=>{r?(await w(!0),m.current.checked=!0):await w(!1),c(!1)}},(0,a.__)("Save","woocommerce")))):null})),m=document.createElement("div");m.setAttribute("id","beta-features-tracking"),(0,t.render)((0,t.createElement)(d,null),document.body.appendChild(m)),(window.wc=window.wc||{}).betaFeaturesTrackingModal=e})();
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
add-term-tracking.asset.php
95 bytes
0644
add-term-tracking.js
917 bytes
0644
attributes-tracking.asset.php
95 bytes
0644
attributes-tracking.js
1485 bytes
0644
beta-features-tracking-modal.asset.php
192 bytes
0644
beta-features-tracking-modal.js
2444 bytes
0644
category-tracking.asset.php
95 bytes
0644
category-tracking.js
755 bytes
0644
command-palette-analytics.asset.php
207 bytes
0644
command-palette-analytics.js
1937 bytes
0644
command-palette.asset.php
223 bytes
0644
command-palette.js
4829 bytes
0644
marketing-coupons.asset.php
309 bytes
0644
marketing-coupons.js
51368 bytes
0644
marketing-coupons.js.LICENSE.txt
121 bytes
0644
navigation-opt-out.asset.php
124 bytes
0644
navigation-opt-out.js
1344 bytes
0644
onboarding-homepage-notice.asset.php
148 bytes
0644
onboarding-homepage-notice.js
1799 bytes
0644
onboarding-load-sample-products-notice.asset.php
135 bytes
0644
onboarding-load-sample-products-notice.js
891 bytes
0644
onboarding-product-import-notice.asset.php
124 bytes
0644
onboarding-product-import-notice.js
1007 bytes
0644
onboarding-product-notice.asset.php
135 bytes
0644
onboarding-product-notice.js
874 bytes
0644
onboarding-tax-notice.asset.php
135 bytes
0644
onboarding-tax-notice.js
1386 bytes
0644
order-tracking.asset.php
110 bytes
0644
order-tracking.js
1273 bytes
0644
payment-method-promotions.asset.php
182 bytes
0644
payment-method-promotions.js
25446 bytes
0644
payment-method-promotions.js.LICENSE.txt
188 bytes
0644
print-shipping-label-banner.asset.php
246 bytes
0644
print-shipping-label-banner.js
15602 bytes
0644
product-category-metabox.asset.php
209 bytes
0644
product-category-metabox.js
3781 bytes
0644
product-import-tracking.asset.php
127 bytes
0644
product-import-tracking.js
458 bytes
0644
product-tour.asset.php
149 bytes
0644
product-tour.js
8578 bytes
0644
product-tracking.asset.php
123 bytes
0644
product-tracking.js
14261 bytes
0644
settings-tracking.asset.php
110 bytes
0644
settings-tracking.js
1188 bytes
0644
shipping-settings-region-picker.asset.php
141 bytes
0644
shipping-settings-region-picker.js
1785 bytes
0644
tags-tracking.asset.php
95 bytes
0644
tags-tracking.js
788 bytes
0644
variable-product-tour.asset.php
154 bytes
0644
variable-product-tour.js
1815 bytes
0644
wc-addons-tour.asset.php
165 bytes
0644
wc-addons-tour.js
6161 bytes
0644
N4ST4R_ID | Naxtarrr