add-term-tracking.asset.php
1 year ago
add-term-tracking.js
1 year ago
attributes-tracking.asset.php
1 year ago
attributes-tracking.js
1 year ago
beta-features-tracking-modal.asset.php
6 months ago
beta-features-tracking-modal.js
1 year ago
beta-features-tracking-modal.js.LICENSE.txt
1 year ago
category-tracking.asset.php
1 year ago
category-tracking.js
1 year ago
command-palette-analytics.asset.php
8 months ago
command-palette-analytics.js
8 months ago
command-palette-analytics.js.LICENSE.txt
1 year ago
command-palette.asset.php
8 months ago
command-palette.js
8 months ago
command-palette.js.LICENSE.txt
1 year ago
email-editor-integration.asset.php
6 months ago
email-editor-integration.js
6 months ago
email-editor-integration.js.LICENSE.txt
1 year ago
fulfillments.asset.php
6 months ago
fulfillments.js
6 months ago
fulfillments.js.LICENSE.txt
10 months ago
marketing-coupons.asset.php
6 months ago
marketing-coupons.js
8 months ago
marketing-coupons.js.LICENSE.txt
8 months ago
onboarding-homepage-notice.asset.php
1 year ago
onboarding-homepage-notice.js
1 year ago
onboarding-load-sample-products-notice.asset.php
1 year ago
onboarding-load-sample-products-notice.js
1 year ago
onboarding-product-import-notice.asset.php
1 year ago
onboarding-product-import-notice.js
1 year ago
onboarding-tax-notice.asset.php
1 year ago
onboarding-tax-notice.js
1 year ago
order-tracking.asset.php
1 year ago
order-tracking.js
1 year ago
payment-method-promotions.asset.php
6 months ago
payment-method-promotions.js
6 months ago
payment-method-promotions.js.LICENSE.txt
8 months ago
print-shipping-label-banner.asset.php
6 months ago
print-shipping-label-banner.js
1 year ago
print-shipping-label-banner.js.LICENSE.txt
1 year ago
product-category-metabox.asset.php
6 months ago
product-category-metabox.js
6 months ago
product-category-metabox.js.LICENSE.txt
1 year ago
product-import-tracking.asset.php
1 year ago
product-import-tracking.js
1 year ago
product-tour.asset.php
1 year ago
product-tour.js
1 year ago
product-tour.js.LICENSE.txt
1 year ago
product-tracking.asset.php
10 months ago
product-tracking.js
10 months ago
settings-embed.asset.php
6 months ago
settings-embed.js
6 months ago
settings-embed.js.LICENSE.txt
1 year ago
settings-tracking.asset.php
1 year ago
settings-tracking.js
1 year ago
shipping-settings-region-picker.asset.php
9 months ago
shipping-settings-region-picker.js
9 months ago
shipping-settings-region-picker.js.LICENSE.txt
1 year ago
tags-tracking.asset.php
1 year ago
tags-tracking.js
1 year ago
variable-product-tour.asset.php
1 year ago
variable-product-tour.js
1 year ago
variable-product-tour.js.LICENSE.txt
1 year ago
wc-addons-tour.asset.php
1 year ago
wc-addons-tour.js
1 year ago
wc-addons-tour.js.LICENSE.txt
1 year ago
wcsettings-deprecation.asset.php
1 year ago
wcsettings-deprecation.js
1 year ago
woo-connect-notice.asset.php
1 year ago
woo-connect-notice.js
1 year ago
woo-enable-autorenew.asset.php
1 year ago
woo-enable-autorenew.js
1 year ago
woo-plugin-update-connect-notice.asset.php
1 year ago
woo-plugin-update-connect-notice.js
1 year ago
woo-product-usage-notice.asset.php
6 months ago
woo-product-usage-notice.js
1 year ago
woo-product-usage-notice.js.LICENSE.txt
1 year ago
woo-purchase-subscription.asset.php
1 year ago
woo-purchase-subscription.js
1 year ago
woo-renew-subscription.asset.php
1 year ago
woo-renew-subscription.js
1 year ago
woo-subscriptions-notice.asset.php
1 year ago
woo-subscriptions-notice.js
1 year ago
beta-features-tracking-modal.js
2 lines
| 1 | /*! For license information please see beta-features-tracking-modal.js.LICENSE.txt */ |
| 2 | (()=>{"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={}})(); |