Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
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={94931:(e,t,o)=>{var r=o(51609),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,w=null;for(r in void 0!==o&&(d=""+o),void 0!==t.key&&(d=""+t.key),void 0!==t.ref&&(w=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:w,props:i,_owner:c.current}}t.jsx=i,t.jsxs=i},39793:(e,t,o)=>{e.exports=o(94931)},51609:e=>{e.exports=window.React}},t={};const o=window.wp.element,r=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 w=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}(39793);const u=(0,c.compose)((0,n.withDispatch)((e=>{const{updateOptions:t}=e(s.optionsStore);return{updateOptions:t}})))((({updateOptions:e})=>{const[t,n]=(0,o.useState)(!1),[c,s]=(0,o.useState)(!1),u=(0,o.useRef)(document.querySelector("#woocommerce_navigation_enabled")),l=async t=>("function"==typeof window.wcTracks.enable&&(t?window.wcTracks.enable((()=>{(0,d.initializeExPlat)()})):window.wcTracks.isEnabled=!1),t&&(0,i.recordEvent)("settings_features_tracking_enabled"),e({woocommerce_allow_tracking:t?"yes":"no"}));return(0,o.useEffect)((()=>{if(!u.current)return;const e=e=>{e.target.checked&&(e.target.checked=!1,n(!0))},t=u.current;return t.addEventListener("change",e,!1),()=>t.removeEventListener("change",e)}),[]),u.current&&t?(0,w.jsxs)(a.Modal,{title:(0,r.__)("Build a Better WooCommerce","woocommerce"),onRequestClose:()=>n(!1),className:"woocommerce-beta-features-tracking-modal",children:[(0,w.jsxs)("p",{children:[(0,r.__)("Testing new features requires sharing non-sensitive data via ","woocommerce"),(0,w.jsx)("a",{href:"https://woocommerce.com/usage-tracking?utm_medium=product",children:(0,r.__)("usage tracking","woocommerce")}),(0,r.__)(". 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,w.jsx)("div",{className:"woocommerce-beta-features-tracking-modal__checkbox",children:(0,w.jsx)(a.CheckboxControl,{label:"Enable usage tracking",onChange:s,checked:c})}),(0,w.jsx)("div",{className:"woocommerce-beta-features-tracking-modal__actions",children:(0,w.jsx)(a.Button,{isPrimary:!0,onClick:async()=>{c?(await l(!0),u.current.checked=!0):await l(!1),n(!1)},children:(0,r.__)("Save","woocommerce")})})]}):null})),l=document.createElement("div");l.setAttribute("id","beta-features-tracking"),(0,o.createRoot)(document.body.appendChild(l)).render((0,w.jsx)(u,{})),(window.wc=window.wc||{}).betaFeaturesTrackingModal={}})();
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
add-term-tracking.asset.php
95 bytes
0644
add-term-tracking.js
741 bytes
0644
attributes-tracking.asset.php
95 bytes
0644
attributes-tracking.js
1309 bytes
0644
beta-features-tracking-modal.asset.php
201 bytes
0644
beta-features-tracking-modal.js
3126 bytes
0644
beta-features-tracking-modal.js.LICENSE.txt
249 bytes
0644
category-tracking.asset.php
95 bytes
0644
category-tracking.js
579 bytes
0644
command-palette-analytics.asset.php
229 bytes
0644
command-palette-analytics.js
2338 bytes
0644
command-palette-analytics.js.LICENSE.txt
249 bytes
0644
command-palette.asset.php
245 bytes
0644
command-palette.js
5429 bytes
0644
command-palette.js.LICENSE.txt
249 bytes
0644
email-editor-integration.asset.php
524 bytes
0644
email-editor-integration.js
108834 bytes
0644
email-editor-integration.js.LICENSE.txt
249 bytes
0644
fulfillments.asset.php
266 bytes
0644
fulfillments.js
45099 bytes
0644
fulfillments.js.LICENSE.txt
249 bytes
0644
marketing-coupons.asset.php
309 bytes
0644
marketing-coupons.js
81195 bytes
0644
marketing-coupons.js.LICENSE.txt
438 bytes
0644
onboarding-homepage-notice.asset.php
148 bytes
0644
onboarding-homepage-notice.js
1625 bytes
0644
onboarding-load-sample-products-notice.asset.php
135 bytes
0644
onboarding-load-sample-products-notice.js
715 bytes
0644
onboarding-product-import-notice.asset.php
124 bytes
0644
onboarding-product-import-notice.js
831 bytes
0644
onboarding-tax-notice.asset.php
135 bytes
0644
onboarding-tax-notice.js
1212 bytes
0644
order-tracking.asset.php
110 bytes
0644
order-tracking.js
1097 bytes
0644
payment-method-promotions.asset.php
210 bytes
0644
payment-method-promotions.js
147139 bytes
0644
payment-method-promotions.js.LICENSE.txt
438 bytes
0644
print-shipping-label-banner.asset.php
253 bytes
0644
print-shipping-label-banner.js
16262 bytes
0644
print-shipping-label-banner.js.LICENSE.txt
249 bytes
0644
product-category-metabox.asset.php
218 bytes
0644
product-category-metabox.js
4595 bytes
0644
product-category-metabox.js.LICENSE.txt
249 bytes
0644
product-import-tracking.asset.php
127 bytes
0644
product-import-tracking.js
282 bytes
0644
product-tour.asset.php
158 bytes
0644
product-tour.js
9262 bytes
0644
product-tour.js.LICENSE.txt
249 bytes
0644
product-tracking.asset.php
123 bytes
0644
product-tracking.js
14181 bytes
0644
settings-embed.asset.php
481 bytes
0644
settings-embed.js
2061549 bytes
0644
settings-embed.js.LICENSE.txt
1538 bytes
0644
settings-tracking.asset.php
110 bytes
0644
settings-tracking.js
1012 bytes
0644
shipping-settings-region-picker.asset.php
153 bytes
0644
shipping-settings-region-picker.js
2072 bytes
0644
shipping-settings-region-picker.js.LICENSE.txt
249 bytes
0644
tags-tracking.asset.php
95 bytes
0644
tags-tracking.js
612 bytes
0644
variable-product-tour.asset.php
163 bytes
0644
variable-product-tour.js
2483 bytes
0644
variable-product-tour.js.LICENSE.txt
249 bytes
0644
wc-addons-tour.asset.php
174 bytes
0644
wc-addons-tour.js
6812 bytes
0644
wc-addons-tour.js.LICENSE.txt
249 bytes
0644
wcsettings-deprecation.asset.php
122 bytes
0644
wcsettings-deprecation.js
1542 bytes
0644
woo-connect-notice.asset.php
95 bytes
0644
woo-connect-notice.js
754 bytes
0644
woo-enable-autorenew.asset.php
111 bytes
0644
woo-enable-autorenew.js
639 bytes
0644
woo-plugin-update-connect-notice.asset.php
111 bytes
0644
woo-plugin-update-connect-notice.js
647 bytes
0644
woo-product-usage-notice.asset.php
223 bytes
0644
woo-product-usage-notice.js
11490 bytes
0644
woo-product-usage-notice.js.LICENSE.txt
249 bytes
0644
woo-purchase-subscription.asset.php
111 bytes
0644
woo-purchase-subscription.js
659 bytes
0644
woo-renew-subscription.asset.php
111 bytes
0644
woo-renew-subscription.js
647 bytes
0644
woo-subscriptions-notice.asset.php
95 bytes
0644
woo-subscriptions-notice.js
1277 bytes
0644
N4ST4R_ID | Naxtarrr