Submit
Path:
~
/
home
/
getwphos
/
www
/
chemex
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
wp-admin-scripts
/
File Content:
beta-features-tracking-modal.js
/*! For license information please see beta-features-tracking-modal.js.LICENSE.txt */ (()=>{"use strict";var e={93359:(e,t,o)=>{var r=o(99196),a=Symbol.for("react.element"),n=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),c=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(e,t,o){var r,i={},d=null,u=null;for(r in void 0!==o&&(d=""+o),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(u=t.ref),t)n.call(t,r)&&!s.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:d,ref:u,props:i,_owner:c.current}}t.jsx=i,t.jsxs=i},81514:(e,t,o)=>{e.exports=o(93359)},99196:e=>{e.exports=window.React}},t={};function o(r){var a=t[r];if(void 0!==a)return a.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.exports}o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{o.r(r);const e=window.wp.element,t=window.wp.i18n,a=window.wp.components,n=window.wp.data,c=window.wp.compose,s=window.wc.data,i=window.wc.tracks,d=window.wc.explat;var u=o(81514);const w=(0,c.compose)((0,n.withDispatch)((e=>{const{updateOptions:t}=e(s.optionsStore);return{updateOptions:t}})))((({updateOptions:o})=>{const[r,n]=(0,e.useState)(!1),[c,s]=(0,e.useState)(!1),w=(0,e.useRef)(document.querySelector("#woocommerce_navigation_enabled")),l=async e=>("function"==typeof window.wcTracks.enable&&(e?window.wcTracks.enable((()=>{(0,d.initializeExPlat)()})):window.wcTracks.isEnabled=!1),e&&(0,i.recordEvent)("settings_features_tracking_enabled"),o({woocommerce_allow_tracking:e?"yes":"no"}));return(0,e.useEffect)((()=>{if(!w.current)return;const e=e=>{e.target.checked&&(e.target.checked=!1,n(!0))},t=w.current;return t.addEventListener("change",e,!1),()=>t.removeEventListener("change",e)}),[]),w.current&&r?(0,u.jsxs)(a.Modal,{title:(0,t.__)("Build a Better WooCommerce","woocommerce"),onRequestClose:()=>n(!1),className:"woocommerce-beta-features-tracking-modal",children:[(0,u.jsxs)("p",{children:[(0,t.__)("Testing new features requires sharing non-sensitive data via ","woocommerce"),(0,u.jsx)("a",{href:"https://woocommerce.com/usage-tracking?utm_medium=product",children:(0,t.__)("usage tracking","woocommerce")}),(0,t.__)(". 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,u.jsx)("div",{className:"woocommerce-beta-features-tracking-modal__checkbox",children:(0,u.jsx)(a.CheckboxControl,{label:"Enable usage tracking",onChange:s,checked:c})}),(0,u.jsx)("div",{className:"woocommerce-beta-features-tracking-modal__actions",children:(0,u.jsx)(a.Button,{isPrimary:!0,onClick:async()=>{c?(await l(!0),w.current.checked=!0):await l(!1),n(!1)},children:(0,t.__)("Save","woocommerce")})})]}):null})),l=document.createElement("div");l.setAttribute("id","beta-features-tracking"),(0,e.createRoot)(document.body.appendChild(l)).render((0,u.jsx)(w,{}))})(),(window.wc=window.wc||{}).betaFeaturesTrackingModal=r})();
Submit
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
201 bytes
0644
beta-features-tracking-modal.js
3319 bytes
0644
beta-features-tracking-modal.js.LICENSE.txt
249 bytes
0644
category-tracking.asset.php
95 bytes
0644
category-tracking.js
755 bytes
0644
command-palette-analytics.asset.php
216 bytes
0644
command-palette-analytics.js
2805 bytes
0644
command-palette-analytics.js.LICENSE.txt
249 bytes
0644
command-palette.asset.php
232 bytes
0644
command-palette.js
5829 bytes
0644
command-palette.js.LICENSE.txt
249 bytes
0644
email-editor-integration.asset.php
94 bytes
0644
email-editor-integration.js
403 bytes
0644
marketing-coupons.asset.php
309 bytes
0644
marketing-coupons.js
82814 bytes
0644
marketing-coupons.js.LICENSE.txt
438 bytes
0644
onboarding-homepage-notice.asset.php
148 bytes
0644
onboarding-homepage-notice.js
1801 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
1388 bytes
0644
order-tracking.asset.php
110 bytes
0644
order-tracking.js
1273 bytes
0644
payment-method-promotions.asset.php
224 bytes
0644
payment-method-promotions.js
145101 bytes
0644
payment-method-promotions.js.LICENSE.txt
560 bytes
0644
print-shipping-label-banner.asset.php
253 bytes
0644
print-shipping-label-banner.js
18403 bytes
0644
print-shipping-label-banner.js.LICENSE.txt
249 bytes
0644
product-category-metabox.asset.php
218 bytes
0644
product-category-metabox.js
4531 bytes
0644
product-category-metabox.js.LICENSE.txt
249 bytes
0644
product-import-tracking.asset.php
127 bytes
0644
product-import-tracking.js
458 bytes
0644
product-tour.asset.php
158 bytes
0644
product-tour.js
9455 bytes
0644
product-tour.js.LICENSE.txt
249 bytes
0644
product-tracking.asset.php
123 bytes
0644
product-tracking.js
14310 bytes
0644
settings-embed.asset.php
417 bytes
0644
settings-embed.js
291521 bytes
0644
settings-embed.js.LICENSE.txt
1130 bytes
0644
settings-tracking.asset.php
110 bytes
0644
settings-tracking.js
1188 bytes
0644
shipping-settings-region-picker.asset.php
153 bytes
0644
shipping-settings-region-picker.js
2140 bytes
0644
shipping-settings-region-picker.js.LICENSE.txt
249 bytes
0644
tags-tracking.asset.php
95 bytes
0644
tags-tracking.js
788 bytes
0644
variable-product-tour.asset.php
163 bytes
0644
variable-product-tour.js
2676 bytes
0644
variable-product-tour.js.LICENSE.txt
249 bytes
0644
wc-addons-tour.asset.php
174 bytes
0644
wc-addons-tour.js
7005 bytes
0644
wc-addons-tour.js.LICENSE.txt
249 bytes
0644
wcsettings-deprecation.asset.php
122 bytes
0644
wcsettings-deprecation.js
1718 bytes
0644
woo-connect-notice.asset.php
95 bytes
0644
woo-connect-notice.js
930 bytes
0644
woo-enable-autorenew.asset.php
111 bytes
0644
woo-enable-autorenew.js
815 bytes
0644
woo-plugin-update-connect-notice.asset.php
111 bytes
0644
woo-plugin-update-connect-notice.js
823 bytes
0644
woo-product-usage-notice.asset.php
223 bytes
0644
woo-product-usage-notice.js
11682 bytes
0644
woo-product-usage-notice.js.LICENSE.txt
249 bytes
0644
woo-purchase-subscription.asset.php
111 bytes
0644
woo-purchase-subscription.js
835 bytes
0644
woo-renew-subscription.asset.php
111 bytes
0644
woo-renew-subscription.js
823 bytes
0644
woo-subscriptions-notice.asset.php
95 bytes
0644
woo-subscriptions-notice.js
1453 bytes
0644
N4ST4R_ID | Naxtarrr