Changeset 3476031
- Timestamp:
- 03/06/2026 02:33:32 AM (4 weeks ago)
- Location:
- datalayer-for-ecommerce-free/trunk
- Files:
-
- 11 edited
-
assets/build/index-rtl.css (modified) (1 diff)
-
assets/build/index.asset.php (modified) (1 diff)
-
assets/build/index.css (modified) (1 diff)
-
assets/build/index.js (modified) (1 diff)
-
datalayer-for-ecommerce-free.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
vendor/composer/autoload_classmap.php (modified) (1 diff)
-
vendor/composer/autoload_static.php (modified) (1 diff)
-
vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
datalayer-for-ecommerce-free/trunk/assets/build/index-rtl.css
r3292879 r3476031 1 :root body.woocommerce-admin-page__datalayer-for-ecommerce-free{--wp-admin-theme-color:#008bff;--wp-admin-theme-color-darker-10:#008bff;--wp-admin-theme-color-darker-20:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free{background:#f7f7f7}body.woocommerce-admin-page__datalayer-for-ecommerce-free . wrap.datalayer-for-ecommerce-free{-webkit-align-content:stretch;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;-ms-flex-line-pack:stretch;align-items:stretch}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{background:#fff;border-bottom-left-radius:30px;border-top-left-radius:30px;box-shadow:-10px 17px 21px 0 rgba(0,0,0,.1);padding:50px 50px 0;width:82%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .my-gutenberg-form{padding-bottom:100px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header{padding-right:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{font-size:22px;line-height:4.2}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{line-height:1.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .wp-list-table td{width:auto!important}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control{margin-bottom:30px!important;white-space:pre-wrap}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus{margin-bottom:40px!important;margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-negative{margin-bottom:-5px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated{position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated{background:red;border-radius:5px;font-size:11px;padding:5px;position:absolute;left:63%;top:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a:visited{color:#fff;font-weight:700;text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control__label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field label{font-size:14px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control p.components-base-control__help{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-color-picker .components-flex{display:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button{border-radius:6px;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button.is-secondary{margin-left:15px}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons{display:inline-block;font-size:15px;height:auto;padding:10px;text-wrap:wrap;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:first-child{margin-bottom:15px;margin-left:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:nth-child(2){margin-left:0}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-fields-button{margin-top:30px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control{margin-bottom:55px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .components-base-control__help{right:0;position:absolute;top:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__clear{top:calc(25% - 10px)!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__tags{margin:45px 0 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control__label.label_external{font-size:14px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary{border:1px solid #008bff;border-radius:6px;box-shadow:none;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:focus{border:1px solid #008bff;box-shadow:none;color:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .css-off1bd{flex-direction:column}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-subtitle{font-size:16px;font-weight:500;margin-bottom:20px;text-transform:uppercase}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex{flex-wrap:wrap;gap:30px}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex .components-flex-item{width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function{margin-top:30px;position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .components-base-control,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .form-fields-button,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function table.wp-list-table{opacity:.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function{background:#fec228;border-radius:6px;color:#fff;display:inline-block;font-size:20px;font-weight:700;margin-bottom:25px;padding:20px;text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function .components-external-link__contents{text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function svg{display:none}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:77%}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:70%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{border-bottom-right-radius:30px;border-bottom-left-radius:30px;border-top-left-radius:0;min-height:auto;width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{background:#fbfbfb;border-bottom-right-radius:30px;border-left:1px solid #eaebee;border-top-right-radius:30px;box-shadow:0 17px 21px 0 rgba(0,0,0,.1);min-height:720px;padding:28px 20px;width:18%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer{text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer img{width:120px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel{background:transparent;border:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle{font-size:16px!important;font-weight:700!important;padding:18px 35px 18px 48px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle:focus{box-shadow:inset 0 0 0 2px #e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle svg.components-panel__icon{height:25px;right:0;margin:0;position:absolute;width:25px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation{box-sizing:border-box;margin:2px 0;overflow:hidden;padding:0 16px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button{align-items:center;color:#74797e;display:flex;font-weight:400;height:auto;line-height:20px;margin:0 0 2px;min-height:40px;opacity:1;padding:8px 16px;text-align:right;transition:box-shadow .1s linear;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:last-child{margin-bottom:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button span.navigation-item-label{color:inherit;cursor:pointer;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;margin:0 0 0 auto;text-align:right;text-wrap:pretty}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover{background:#e1f1fa;border-radius:2px;box-shadow:none;outline:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover span.navigation-item-label{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover:not(.is-active) span.navigation-item-label{font-weight:400}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr{margin-bottom:2px;margin-top:2px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active{background:#e1f1fa;color:#74797e;font-weight:700}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active .components-button span{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o:hover{background:#e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button{color:#74797e;opacity:1}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button:focus:not(:disabled){box-shadow:0 0 0 2px #e1f1fa}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:23%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel__row .custom-navigation{padding:0!important}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:30%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{border-bottom-right-radius:0;border-left:0;border-top-right-radius:30px;border-top-left-radius:30px;width:100%}}1 :root body.woocommerce-admin-page__datalayer-for-ecommerce-free{--wp-admin-theme-color:#008bff;--wp-admin-theme-color-darker-10:#008bff;--wp-admin-theme-color-darker-20:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free{background:#f7f7f7}body.woocommerce-admin-page__datalayer-for-ecommerce-free .components-popover__content{padding:10px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free{-webkit-align-content:stretch;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;-ms-flex-line-pack:stretch;align-items:stretch}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{background:#fff;border-bottom-left-radius:30px;border-top-left-radius:30px;box-shadow:-10px 17px 21px 0 rgba(0,0,0,.1);padding:50px 50px 0;width:82%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .my-gutenberg-form{padding-bottom:100px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header{padding-right:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{font-size:22px;line-height:4.2}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{line-height:1.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .wp-list-table td{width:auto!important}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control{margin-bottom:30px!important;white-space:pre-wrap}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus{margin-bottom:40px!important;margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-negative{margin-bottom:-5px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated{position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated{background:red;border-radius:5px;font-size:11px;padding:5px;position:absolute;left:63%;top:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a:visited{color:#fff;font-weight:700;text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control__label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field label{font-size:14px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control p.components-base-control__help{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-color-picker .components-flex{display:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button{border-radius:6px;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button.is-secondary{margin-left:15px}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons{display:inline-block;font-size:15px;height:auto;padding:10px;text-wrap:wrap;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:first-child{margin-bottom:15px;margin-left:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:nth-child(2){margin-left:0}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-fields-button{margin-top:30px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control{margin-bottom:55px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .components-base-control__help{right:0;position:absolute;top:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__clear{top:calc(25% - 10px)!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__tags{margin:45px 0 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control__label.label_external{font-size:14px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary{border:1px solid #008bff;border-radius:6px;box-shadow:none;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:focus{border:1px solid #008bff;box-shadow:none;color:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .css-off1bd{flex-direction:column}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-subtitle{font-size:16px;font-weight:500;margin-bottom:20px;text-transform:uppercase}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex{flex-wrap:wrap;gap:30px}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex .components-flex-item{width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function{margin-top:30px;position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .components-base-control,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .form-fields-button,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function table.wp-list-table{opacity:.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function{background:#fec228;border-radius:6px;color:#fff;display:inline-block;font-size:20px;font-weight:700;margin-bottom:25px;padding:20px;text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function .components-external-link__contents{text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function svg{display:none}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:77%}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:70%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{border-bottom-right-radius:30px;border-bottom-left-radius:30px;border-top-left-radius:0;min-height:auto;width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard h2{font-size:18px;font-weight:500;margin-bottom:30px;margin-top:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard h3{font-size:18px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls{align-items:flex-start;border:1px solid #e0e0e0;display:flex;flex-direction:row;flex-wrap:nowrap;gap:200px;justify-content:flex-start;padding:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date h3{margin:0 0 0 25px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars{align-items:center;border:1px solid #e0e0e0;display:flex;flex-wrap:wrap;justify-content:flex-start;padding:10px 25px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-icon{height:20px;padding:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-start:after{color:rgba(0,0,0,.4);content:" - ";font-size:16px;font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-end .components-button.is-secondary,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-start .components-button.is-secondary{box-shadow:none;color:rgba(0,0,0,.4);font-size:16px;font-weight:500;outline:0;padding:10px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product .components-base-control{margin-bottom:0!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product .woocommerce-select-control{margin-bottom:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product .funnel-dashboard-filters-product-clear{cursor:pointer;margin-right:15px;margin-top:15px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats{border:1px solid #e0e0e0;margin-top:35px;padding:25px 50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel{align-items:flex-end;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;margin-top:40px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item{border-bottom:0 solid #e0e0e0;border-left:1px solid #e0e0e0;border-top:1px solid #e0e0e0;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-end;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item:first-child{border-right:1px solid #e0e0e0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header{align-items:center;border-bottom:1px solid #e0e0e0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-bottom:50px;padding:15px 30px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header .funnel-dashboard-funnel-item-header-sequence{color:rgba(0,0,0,.54);font-size:12px;margin-bottom:5px;text-align:right;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header .funnel-dashboard-funnel-item-header-label{font-size:16px;width:80%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header .funnel-dashboard-funnel-item-header-value{font-size:16px;font-weight:700}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-bar{align-items:flex-start;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-end}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-bar .funnel-dashboard-funnel-bar{text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-bar .funnel-dashboard-funnel-bar .funnel-step-bar{align-items:flex-end;border-radius:0 0 0 0;color:#fff;display:flex;font-weight:700;height:100%;justify-content:center;margin:0 auto;transition:height .4s ease;width:190px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer{align-items:center;border-top:1px solid #e0e0e0;display:flex;flex-direction:row;flex-wrap:wrap;height:50px;justify-content:space-between;padding:10px 15px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent-legend{font-size:14px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent-legend.empty{height:29px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent{font-size:14px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent.empty{height:18px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-notice button{margin-top:20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-notice .components-notice__dismiss{display:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{background:#fbfbfb;border-bottom-right-radius:30px;border-left:1px solid #eaebee;border-top-right-radius:30px;box-shadow:0 17px 21px 0 rgba(0,0,0,.1);min-height:720px;padding:28px 20px;width:18%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer{text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer img{width:120px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel{background:transparent;border:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle{font-size:16px!important;font-weight:700!important;padding:18px 35px 18px 48px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle:focus{box-shadow:inset 0 0 0 2px #e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle svg.components-panel__icon{height:25px;right:0;margin:0;position:absolute;width:25px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation{box-sizing:border-box;margin:2px 0;overflow:hidden;padding:0 16px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button{align-items:center;color:#74797e;display:flex;font-weight:400;height:auto;line-height:20px;margin:0 0 2px;min-height:40px;opacity:1;padding:8px 16px;text-align:right;transition:box-shadow .1s linear;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:last-child{margin-bottom:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button span.navigation-item-label{color:inherit;cursor:pointer;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;margin:0 0 0 auto;text-align:right;text-wrap:pretty}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover{background:#e1f1fa;border-radius:2px;box-shadow:none;outline:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover span.navigation-item-label{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover:not(.is-active) span.navigation-item-label{font-weight:400}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr{margin-bottom:2px;margin-top:2px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active{background:#e1f1fa;color:#74797e;font-weight:700}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active .components-button span{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o:hover{background:#e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button{color:#74797e;opacity:1}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button:focus:not(:disabled){box-shadow:0 0 0 2px #e1f1fa}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:23%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel__row .custom-navigation{padding:0!important}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:30%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{border-bottom-right-radius:0;border-left:0;border-top-right-radius:30px;border-top-left-radius:30px;width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insights-container__featured .insight-card{background:#fbfbfb;border-right:8px solid #008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insights-container__featured .insight-card__text{font-size:15px;line-height:1.6}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insights-container__grid{display:grid;gap:16px;grid-template-columns:1fr}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card{border-right:4px solid #008bff;margin-bottom:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__header{display:flex;justify-content:space-between;margin-bottom:12px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__header strong{font-size:18px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__header .insight-card__badge{align-items:center;background:#f0f0f0;border-radius:12px;display:flex;font-size:12px;padding:2px 8px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__text{font-size:14px;line-height:1.6;margin-bottom:16px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__footer{color:#666;display:flex;font-size:12px;justify-content:space-between}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__footer .insight-card__ai{align-items:center;cursor:help;display:flex} -
datalayer-for-ecommerce-free/trunk/assets/build/index.asset.php
r3292879 r3476031 1 <?php return array('dependencies' => array('react ', 'wc-components', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => '9c1ec5c7daba0a008bb6');1 <?php return array('dependencies' => array('react-jsx-runtime', 'wc-components', 'wp-api-fetch', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-notices', 'wp-primitives'), 'version' => 'da5ebc8bac22605730b7'); -
datalayer-for-ecommerce-free/trunk/assets/build/index.css
r3292879 r3476031 1 :root body.woocommerce-admin-page__datalayer-for-ecommerce-free{--wp-admin-theme-color:#008bff;--wp-admin-theme-color-darker-10:#008bff;--wp-admin-theme-color-darker-20:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free{background:#f7f7f7}body.woocommerce-admin-page__datalayer-for-ecommerce-free . wrap.datalayer-for-ecommerce-free{-webkit-align-content:stretch;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;-ms-flex-line-pack:stretch;align-items:stretch}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{background:#fff;border-bottom-right-radius:30px;border-top-right-radius:30px;box-shadow:10px 17px 21px 0 rgba(0,0,0,.1);padding:50px 50px 0;width:82%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .my-gutenberg-form{padding-bottom:100px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header{padding-left:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{font-size:22px;line-height:4.2}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{line-height:1.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .wp-list-table td{width:auto!important}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control{margin-bottom:30px!important;white-space:pre-wrap}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus{margin-bottom:40px!important;margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-negative{margin-bottom:-5px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated{position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated{background:red;border-radius:5px;font-size:11px;padding:5px;position:absolute;right:63%;top:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a:visited{color:#fff;font-weight:700;text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control__label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field label{font-size:14px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control p.components-base-control__help{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-color-picker .components-flex{display:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button{border-radius:6px;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button.is-secondary{margin-right:15px}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons{display:inline-block;font-size:15px;height:auto;padding:10px;text-wrap:wrap;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:first-child{margin-bottom:15px;margin-right:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:nth-child(2){margin-right:0}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-fields-button{margin-top:30px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control{margin-bottom:55px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .components-base-control__help{left:0;position:absolute;top:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__clear{top:calc(25% - 10px)!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__tags{margin:45px 0 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control__label.label_external{font-size:14px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary{border:1px solid #008bff;border-radius:6px;box-shadow:none;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:focus{border:1px solid #008bff;box-shadow:none;color:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .css-off1bd{flex-direction:column}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-subtitle{font-size:16px;font-weight:500;margin-bottom:20px;text-transform:uppercase}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex{flex-wrap:wrap;gap:30px}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex .components-flex-item{width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function{margin-top:30px;position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .components-base-control,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .form-fields-button,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function table.wp-list-table{opacity:.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function{background:#fec228;border-radius:6px;color:#fff;display:inline-block;font-size:20px;font-weight:700;margin-bottom:25px;padding:20px;text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function .components-external-link__contents{text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function svg{display:none}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:77%}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:70%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{border-bottom-left-radius:30px;border-bottom-right-radius:30px;border-top-right-radius:0;min-height:auto;width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{background:#fbfbfb;border-bottom-left-radius:30px;border-right:1px solid #eaebee;border-top-left-radius:30px;box-shadow:0 17px 21px 0 rgba(0,0,0,.1);min-height:720px;padding:28px 20px;width:18%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer{text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer img{width:120px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel{background:transparent;border:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle{font-size:16px!important;font-weight:700!important;padding:18px 48px 18px 35px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle:focus{box-shadow:inset 0 0 0 2px #e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle svg.components-panel__icon{height:25px;left:0;margin:0;position:absolute;width:25px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation{box-sizing:border-box;margin:2px 0;overflow:hidden;padding:0 16px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button{align-items:center;color:#74797e;display:flex;font-weight:400;height:auto;line-height:20px;margin:0 0 2px;min-height:40px;opacity:1;padding:8px 16px;text-align:left;transition:box-shadow .1s linear;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:last-child{margin-bottom:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button span.navigation-item-label{color:inherit;cursor:pointer;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;margin:0 auto 0 0;text-align:left;text-wrap:pretty}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover{background:#e1f1fa;border-radius:2px;box-shadow:none;outline:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover span.navigation-item-label{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover:not(.is-active) span.navigation-item-label{font-weight:400}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr{margin-bottom:2px;margin-top:2px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active{background:#e1f1fa;color:#74797e;font-weight:700}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active .components-button span{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o:hover{background:#e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button{color:#74797e;opacity:1}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button:focus:not(:disabled){box-shadow:0 0 0 2px #e1f1fa}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:23%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel__row .custom-navigation{padding:0!important}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:30%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{border-bottom-left-radius:0;border-right:0;border-top-left-radius:30px;border-top-right-radius:30px;width:100%}}1 :root body.woocommerce-admin-page__datalayer-for-ecommerce-free{--wp-admin-theme-color:#008bff;--wp-admin-theme-color-darker-10:#008bff;--wp-admin-theme-color-darker-20:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free{background:#f7f7f7}body.woocommerce-admin-page__datalayer-for-ecommerce-free .components-popover__content{padding:10px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free{-webkit-align-content:stretch;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;-ms-flex-line-pack:stretch;align-items:stretch}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{background:#fff;border-bottom-right-radius:30px;border-top-right-radius:30px;box-shadow:10px 17px 21px 0 rgba(0,0,0,.1);padding:50px 50px 0;width:82%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .my-gutenberg-form{padding-bottom:100px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header{padding-left:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{font-size:22px;line-height:4.2}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-section-header .woocommerce-section-header__title{line-height:1.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .wp-list-table td{width:auto!important}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control{margin-bottom:30px!important;white-space:pre-wrap}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus{margin-bottom:40px!important;margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-negative{margin-bottom:-5px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated{position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated{background:red;border-radius:5px;font-size:11px;padding:5px;position:absolute;right:63%;top:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control.enhanced-ecommerce-deprecated .field-enhanced-ecommerce-deprecated a:visited{color:#fff;font-weight:700;text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control-bottom-minus-active{margin-top:-20px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field .components-base-control__label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control .components-base-control__field label{font-size:14px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control p.components-base-control__help{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-color-picker .components-flex{display:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button{border-radius:6px;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons .components-button.is-secondary{margin-right:15px}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons{display:inline-block;font-size:15px;height:auto;padding:10px;text-wrap:wrap;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:first-child{margin-bottom:15px;margin-right:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-buttons.is-secondary:nth-child(2){margin-right:0}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-fields-button{margin-top:30px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control{margin-bottom:55px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .components-base-control__help{left:0;position:absolute;top:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__clear{top:calc(25% - 10px)!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .woocommerce-select-control .woocommerce-select-control__tags{margin:45px 0 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-base-control__label.label_external{font-size:14px!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary{border:1px solid #008bff;border-radius:6px;box-shadow:none;font-size:15px;padding:0 20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:focus{border:1px solid #008bff;box-shadow:none;color:#008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .components-button.is-secondary:hover{opacity:.8}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex.css-1e5wyad .css-off1bd{flex-direction:column}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .form-subtitle{font-size:16px;font-weight:500;margin-bottom:20px;text-transform:uppercase}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex{flex-wrap:wrap;gap:30px}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-flex .components-flex-item{width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function{margin-top:30px;position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .components-base-control,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function .form-fields-button,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function table.wp-list-table{opacity:.5}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function{background:#fec228;border-radius:6px;color:#fff;display:inline-block;font-size:20px;font-weight:700;margin-bottom:25px;padding:20px;text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function .components-external-link__contents{text-decoration:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .premium-function span .link-premium-function svg{display:none}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:77%}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{width:70%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap{border-bottom-left-radius:30px;border-bottom-right-radius:30px;border-top-right-radius:0;min-height:auto;width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard h2{font-size:18px;font-weight:500;margin-bottom:30px;margin-top:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard h3{font-size:18px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls{align-items:flex-start;border:1px solid #e0e0e0;display:flex;flex-direction:row;flex-wrap:nowrap;gap:200px;justify-content:flex-start;padding:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date h3{margin:0 25px 0 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars{align-items:center;border:1px solid #e0e0e0;display:flex;flex-wrap:wrap;justify-content:flex-start;padding:10px 25px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-icon{height:20px;padding:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-start:after{color:rgba(0,0,0,.4);content:" - ";font-size:16px;font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-end .components-button.is-secondary,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-calendars .funnel-dashboard-calendars-start .components-button.is-secondary{box-shadow:none;color:rgba(0,0,0,.4);font-size:16px;font-weight:500;outline:0;padding:10px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;position:relative}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product .components-base-control{margin-bottom:0!important}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product .woocommerce-select-control{margin-bottom:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-controls .funnel-dashboard-controls-date .funnel-dashboard-filters .funnel-dashboard-filters-product .funnel-dashboard-filters-product-clear{cursor:pointer;margin-left:15px;margin-top:15px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats{border:1px solid #e0e0e0;margin-top:35px;padding:25px 50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel{align-items:flex-end;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;margin-top:40px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item{border-bottom:0 solid #e0e0e0;border-right:1px solid #e0e0e0;border-top:1px solid #e0e0e0;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-end;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item:first-child{border-left:1px solid #e0e0e0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header{align-items:center;border-bottom:1px solid #e0e0e0;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;margin-bottom:50px;padding:15px 30px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header .funnel-dashboard-funnel-item-header-sequence{color:rgba(0,0,0,.54);font-size:12px;margin-bottom:5px;text-align:left;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header .funnel-dashboard-funnel-item-header-label{font-size:16px;width:80%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-header .funnel-dashboard-funnel-item-header-value{font-size:16px;font-weight:700}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-bar{align-items:flex-start;display:flex;flex-direction:column;flex-wrap:nowrap;justify-content:flex-end}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-bar .funnel-dashboard-funnel-bar{text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-bar .funnel-dashboard-funnel-bar .funnel-step-bar{align-items:flex-end;border-radius:0 0 0 0;color:#fff;display:flex;font-weight:700;height:100%;justify-content:center;margin:0 auto;transition:height .4s ease;width:190px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer{align-items:center;border-top:1px solid #e0e0e0;display:flex;flex-direction:row;flex-wrap:wrap;height:50px;justify-content:space-between;padding:10px 15px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent-legend{font-size:14px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent-legend.empty{height:29px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent{font-size:14px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .funnel-dashboard .funnel-dashboard-stats .funnel-dashboard-funnel .funnel-dashboard-funnel-item .funnel-dashboard-funnel-item-footer .funnel-step-percent.empty{height:18px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-notice button{margin-top:20px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-form-datalayer-for-ecommerce-free-wrap .components-notice .components-notice__dismiss{display:none}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{background:#fbfbfb;border-bottom-left-radius:30px;border-right:1px solid #eaebee;border-top-left-radius:30px;box-shadow:0 17px 21px 0 rgba(0,0,0,.1);min-height:720px;padding:28px 20px;width:18%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer{text-align:center}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .logoDatalayer img{width:120px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel{background:transparent;border:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle{font-size:16px!important;font-weight:700!important;padding:18px 48px 18px 35px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle:focus{box-shadow:inset 0 0 0 2px #e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-button.components-panel__body-toggle svg.components-panel__icon{height:25px;left:0;margin:0;position:absolute;width:25px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__body.is-opened>.components-panel__body-title{margin:-16px -16px 0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation{box-sizing:border-box;margin:2px 0;overflow:hidden;padding:0 16px;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button{align-items:center;color:#74797e;display:flex;font-weight:400;height:auto;line-height:20px;margin:0 0 2px;min-height:40px;opacity:1;padding:8px 16px;text-align:left;transition:box-shadow .1s linear;width:100%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:last-child{margin-bottom:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button span.navigation-item-label{color:inherit;cursor:pointer;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;margin:0 auto 0 0;text-align:left;text-wrap:pretty}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover{background:#e1f1fa;border-radius:2px;box-shadow:none;outline:0}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover span.navigation-item-label{color:#74797e}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button.is-active span.navigation-item-label,body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:focus span.navigation-item-label{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .custom-navigation button:hover:not(.is-active) span.navigation-item-label{font-weight:400}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr{margin-bottom:2px;margin-top:2px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active{background:#e1f1fa;color:#74797e;font-weight:700}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o.is-active .components-button span{font-weight:500}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item.css-mzv38o:hover{background:#e1f1fa}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button{color:#74797e;opacity:1}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel .components-panel__row .components-navigation__menu.css-1t5hihr .components-navigation__item .components-button:focus:not(:disabled){box-shadow:0 0 0 2px #e1f1fa}@media(max-width:1440px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:23%}body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap .components-panel__row .custom-navigation{padding:0!important}}@media(max-width:1280px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{width:30%}}@media(max-width:768px){body.woocommerce-admin-page__datalayer-for-ecommerce-free .wrap.datalayer-for-ecommerce-free .content-sidebar-datalayer-for-ecommerce-free-wrap{border-bottom-left-radius:0;border-right:0;border-top-left-radius:30px;border-top-right-radius:30px;width:100%}}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insights-container__featured .insight-card{background:#fbfbfb;border-left:8px solid #008bff}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insights-container__featured .insight-card__text{font-size:15px;line-height:1.6}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insights-container__grid{display:grid;gap:16px;grid-template-columns:1fr}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card{border-left:4px solid #008bff;margin-bottom:50px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__header{display:flex;justify-content:space-between;margin-bottom:12px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__header strong{font-size:18px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__header .insight-card__badge{align-items:center;background:#f0f0f0;border-radius:12px;display:flex;font-size:12px;padding:2px 8px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__text{font-size:14px;line-height:1.6;margin-bottom:16px}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__footer{color:#666;display:flex;font-size:12px;justify-content:space-between}body.woocommerce-admin-page__datalayer-for-ecommerce-free .insights-container .insight-card .insight-card__footer .insight-card__ai{align-items:center;cursor:help;display:flex} -
datalayer-for-ecommerce-free/trunk/assets/build/index.js
r3292879 r3476031 1 (()=>{"use strict";var e={ 20:(e,a,o)=>{var t=o(609),r=Symbol.for("react.element"),_=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,a,o){var t,_={},c=null,g=null;for(t in void 0!==o&&(c=""+o),void 0!==a.key&&(c=""+a.key),void 0!==a.ref&&(g=a.ref),a)n.call(a,t)&&!s.hasOwnProperty(t)&&(_[t]=a[t]);if(e&&e.defaultProps)for(t in a=e.defaultProps)void 0===_[t]&&(_[t]=a[t]);return{$$typeof:r,type:e,key:c,ref:g,props:_,_owner:l.current}}a.Fragment=_,a.jsx=c,a.jsxs=c},609:e=>{e.exports=window.React},848:(e,a,o)=>{e.exports=o(20)}},a={};function o(t){var r=a[t];if(void 0!==r)return r.exports;var _=a[t]={exports:{}};return e[t](_,_.exports,o),_.exports}o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a}),a},o.d=(e,a)=>{for(var t in a)o.o(a,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var a=o.g.document;if(!e&&a&&(a.currentScript&&"SCRIPT"===a.currentScript.tagName.toUpperCase()&&(e=a.currentScript.src),!e)){var t=a.getElementsByTagName("script");if(t.length)for(var r=t.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=t[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})();const t=window.wp.hooks,r=window.wp.i18n,_=window.wp.element,n=window.wp.data,l=window.wp.components,s=window.wp.notices,c=window.wc.components;var g=o(848);const i=e=>{const{createSuccessNotice:a,createErrorNotice:o}=(0,n.useDispatch)(s.store),t=(0,n.useDispatch)(),[i,d]=(0,_.useState)(!1),{getFields:m,isLoading:p}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")})),[]),[u,y]=(0,_.useState)({tracking_google_tag_manager:"",data_layer_google_tag_manager_custom_domain_server_side:"",data_layer_google_tag_manager_custom_script_filename_server_side:"",data_layer_google_tag_manager_custom_environment_gtm_auth:"",data_layer_google_tag_manager_custom_environment_gtm_preview:""}),h=(0,_.useCallback)(((e,a)=>{y((o=>({...o,[a]:e})))}),[]),f=(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState()));(0,_.useEffect)((()=>{m&&y(m)}),[m]);const x=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Example: GTM-XXXXXX - ","datalayer-for-ecommerce-free"),(0,g.jsx)(l.ExternalLink,{href:"https://support.google.com/tagmanager/answer/6103696",children:"Read more"})]}),v=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Example: https://DOMAIN-NAME.com - Send Google scripts gtm.js directly from your tagging server - ","datalayer-for-ecommerce-free"),(0,g.jsx)(l.ExternalLink,{href:"https://developers.google.com/tag-platform/tag-manager/server-side/send-data?hl=en#update_the_gtmjs_source_domain",children:"Read more"}),"\n",(0,r.__)("Leave empty if you don't use GTM Server Side","datalayer-for-ecommerce-free")]}),b=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Example: filename.js - Enter a custom name for the file gtm.js","datalayer-for-ecommerce-free"),"\n",(0,r.__)("Only use for custom file loader in your GTM Server Side","datalayer-for-ecommerce-free")]}),j=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Insert gtm_auth to use a custom environment - ","datalayer-for-woocommerce"),(0,g.jsx)(l.ExternalLink,{href:"https://support.google.com/tagmanager/answer/6311518?hl=en",children:"Read more"}),"\n",(0,r.__)("Leave empty if you don't use GTM Custom Environment","datalayer-for-woocommerce")]}),w=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Insert gtm_preview to use a custom environment - ","datalayer-for-woocommerce"),(0,g.jsx)(l.ExternalLink,{href:"https://support.google.com/tagmanager/answer/6311518?hl=en",children:"Read more"}),"\n",(0,r.__)("Leave empty if you don't use GTM Custom Environment","datalayer-for-woocommerce")]});return(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Google Tag Manager Settings","datalayer-for-ecommerce-free")}),p?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,r.__)("Google Tag Manager ID","datalayer-for-ecommerce-free"),value:u.tracking_google_tag_manager,onChange:e=>h(e,"tracking_google_tag_manager"),help:x}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{d(!0),await t("shop-datalayer-for-ecommerce-free").saveSettings({tracking_google_tag_manager:u.tracking_google_tag_manager,data_layer_google_tag_manager_custom_domain_server_side:u.data_layer_google_tag_manager_custom_domain_server_side,data_layer_google_tag_manager_custom_script_filename_server_side:u.data_layer_google_tag_manager_custom_script_filename_server_side,data_layer_google_tag_manager_custom_environment_gtm_auth:u.data_layer_google_tag_manager_custom_environment_gtm_auth,data_layer_google_tag_manager_custom_environment_gtm_preview:u.data_layer_google_tag_manager_custom_environment_gtm_preview},f),d(!1),a((0,r.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),o("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:i,children:i?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-ecommerce-free")]}):(0,r.__)("Save","datalayer-for-ecommerce-free")})}),(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Custom domain GTM Server Side","datalayer-for-ecommerce-free"),help:v}),(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Custom script filename GTM Server Side","datalayer-for-ecommerce-free"),help:b}),(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Custom Environment gtm_auth","datalayer-for-woocommerce"),help:j}),(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Custom Environment gtm_preview","datalayer-for-woocommerce"),help:w})]})]}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},d=()=>(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Google Tag Manager Tags Synchronization","datalayer-for-ecommerce-free")}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{variant:"primary",href:"https://demoshop.arrayevida.com.br/wp-content/uploads/2024/07/workspace.zip",children:(0,r.__)("Download Import File GTM","datalayer-for-ecommerce-free")})})]}),m=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,n.useDispatch)(s.store),o=(0,n.useDispatch)(),[t,i]=(0,_.useState)(!1),{getFields:d,isLoading:m}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")})),[]),[p,u]=(0,_.useState)({data_layer_google_tag_manager_consent_mode_default:"",data_layer_google_tag_manager_consent_mode_default_ad_storage:"",data_layer_google_tag_manager_consent_mode_default_ad_user_data:"",data_layer_google_tag_manager_consent_mode_default_ad_personalization:"",data_layer_google_tag_manager_consent_mode_default_analytics_storage:"",data_layer_google_tag_manager_consent_mode_default_functionality_storage:"",data_layer_google_tag_manager_consent_mode_default_personalization_storage:"",data_layer_google_tag_manager_consent_mode_default_security_storage:""}),y=(0,_.useCallback)(((e,a)=>{u((o=>({...o,[a]:e})))}),[]),h=(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState()));(0,_.useEffect)((()=>{d&&u(d)}),[d]);const f=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Enable to trigger for all parameters consent to denied. ","datalayer-for-woocommerce"),(0,g.jsx)(l.ExternalLink,{href:"https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#default-consent",children:"Read more"})]}),x=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger ad_storage consent to granted","datalayer-for-woocommerce")}),v=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger ad_user_data consent to granted","datalayer-for-woocommerce")}),b=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger ad_personalization consent to granted","datalayer-for-woocommerce")}),j=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger analytics_storage consent to granted","datalayer-for-woocommerce")}),w=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger functionality_storage consent to granted","datalayer-for-woocommerce")}),S=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger personalization_storage consent to granted","datalayer-for-woocommerce")}),C=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger security_storage consent to granted","datalayer-for-woocommerce")}),N=p.data_layer_google_tag_manager_consent_mode_default;return(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Google Tag Manager Consent Mode","datalayer-for-woocommerce")}),(0,g.jsxs)("div",{className:"form-legend",children:[(0,g.jsxs)(l.Tip,{children:[(0,r.__)("Use this feature to trigger DEFAULT consent before the GTM declaration.","datalayer-for-woocommerce"),"\n",(0,r.__)("This feature does not replace the use of a consent tool. If the consent tool already triggers a DEFAULT consent, you do not need to use this feature.","datalayer-for-woocommerce")," ",(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/document/datalayer-for-woocommerce/#consent-mode",children:(0,r.__)("Read more","datalayer-for-woocommerce")})]}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{})]}),m?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Google Consent Mode","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default"),help:f}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Ad Storage","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default_ad_storage"),help:x,disabled:!N}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Ad User Data","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default_ad_user_data"),help:v,disabled:!N}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Ad Personalization","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default_ad_personalization"),help:b,disabled:!N}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Analytics Storage","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default_analytics_storage"),help:j,disabled:!N}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Functionality Storage","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default_functionality_storage"),help:w,disabled:!N}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Personalization Storage","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default_personalization_storage"),help:S,disabled:!N}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Security Storage","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_consent_mode_default_security_storage"),help:C,disabled:!N}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{i(!0),await o("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_consent_mode_default:p.data_layer_google_tag_manager_consent_mode_default,data_layer_google_tag_manager_consent_mode_default_ad_storage:p.data_layer_google_tag_manager_consent_mode_default_ad_storage,data_layer_google_tag_manager_consent_mode_default_ad_user_data:p.data_layer_google_tag_manager_consent_mode_default_ad_user_data,data_layer_google_tag_manager_consent_mode_default_ad_personalization:p.data_layer_google_tag_manager_consent_mode_default_ad_personalization,data_layer_google_tag_manager_consent_mode_default_analytics_storage:p.data_layer_google_tag_manager_consent_mode_default_analytics_storage,data_layer_google_tag_manager_consent_mode_default_functionality_storage:p.data_layer_google_tag_manager_consent_mode_default_functionality_storage,data_layer_google_tag_manager_consent_mode_default_personalization_storage:p.data_layer_google_tag_manager_consent_mode_default_personalization_storage,data_layer_google_tag_manager_consent_mode_default_security_storage:p.data_layer_google_tag_manager_consent_mode_default_security_storage},h),i(!1),e((0,r.__)("Settings saved!","datalayer-for-woocommerce"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:t?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-woocommerce")]}):(0,r.__)("Save","datalayer-for-woocommerce")})})]})}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},p=window.wp.apiFetch;var u=o.n(p);const y=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,n.useDispatch)(s.store),o=(0,n.useDispatch)(),[t,i]=(0,_.useState)(!1),[d,m]=(0,_.useState)(null),{getFields:p,isLoading:u}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")})),[]),[y,h]=(0,_.useState)({data_layer_google_tag_manager_server_to_server_container_url:"",data_layer_google_tag_manager_server_to_server_measurement_id:"",data_layer_google_tag_manager_server_to_server_preview_request_header:"",data_layer_google_tag_manager_server_to_server_purchase_event:"",data_layer_google_tag_manager_server_to_server_status_purchase_event:"",data_layer_google_tag_manager_server_to_server_order_pay_event:"",data_layer_google_tag_manager_server_to_server_status_order_pay_event:"",data_layer_google_tag_manager_server_to_server_refund_event:""}),f=((0,_.useCallback)(((e,a)=>{h((o=>({...o,[a]:e})))}),[]),(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState())));(0,_.useEffect)((()=>{p&&h(p)}),[p]);const x=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Insert preview request header to test manually send a preview request. ","datalayer-for-woocommerce"),(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/document/datalayer-for-woocommerce/#server-to-server-request-header",children:"Read more"})]});return y.data_layer_google_tag_manager_server_to_server_purchase_event,y.data_layer_google_tag_manager_server_to_server_order_pay_event,(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Google Tag Manager Server-to-Server","datalayer-for-woocommerce")}),(0,g.jsxs)("div",{className:"form-legend",children:[(0,g.jsxs)(l.Tip,{children:[(0,r.__)("Use this feature to send events directly to GTM server side.","datalayer-for-woocommerce"),(0,g.jsx)("br",{}),(0,r.__)("Please note: This is an advanced feature. Recommended for experienced users only.","datalayer-for-woocommerce")," ",(0,g.jsx)(l.ExternalLink,{href:"https://developers.google.com/tag-platform/tag-manager/server-side/send-data?hl=en&option=GTM#3_optional_send_data_from_sources_other_than_websites",children:(0,r.__)("Read more","datalayer-for-woocommerce")})]}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{})]}),u?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,r.__)("Google Server Container Url","datalayer-for-woocommerce"),help:(0,r.__)("Insert GTM Server container URL","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,r.__)("Measurement ID GA4","datalayer-for-woocommerce"),help:(0,r.__)("Insert Measurement ID GA4. Example: G-G999999999","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,r.__)("Preview Request Header","datalayer-for-woocommerce"),help:x,disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Save Cookies in Order","datalayer-for-woocommerce"),help:(0,r.__)("Enable to save user cookies in order and link web and server events","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Purchase Event","datalayer-for-woocommerce"),help:(0,r.__)("Enable to trigger purchase event directly via server side and stop via client web","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Purchase Event Status","datalayer-for-woocommerce"),options:d,help:(0,r.__)("Select which order status the purchase event should be triggered on","datalayer-for-woocommerce"),disabled:!0,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Order Pay Event","datalayer-for-woocommerce"),help:(0,r.__)("Enable to trigger order_pay event directly via server side","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Order Pay Status","datalayer-for-woocommerce"),options:d,help:(0,r.__)("Select which order status the order pay event should be triggered on","datalayer-for-woocommerce"),disabled:!0,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Order Refund Event","datalayer-for-woocommerce"),help:(0,r.__)("Enable to trigger refund event directly via server side","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{i(!0),await o("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_server_to_server_container_url:y.data_layer_google_tag_manager_server_to_server_container_url,data_layer_google_tag_manager_server_to_server_measurement_id:y.data_layer_google_tag_manager_server_to_server_measurement_id,data_layer_google_tag_manager_server_to_server_preview_request_header:y.data_layer_google_tag_manager_server_to_server_preview_request_header,data_layer_google_tag_manager_server_to_server_purchase_event:y.data_layer_google_tag_manager_server_to_server_purchase_event,data_layer_google_tag_manager_server_to_server_status_purchase_event:y.data_layer_google_tag_manager_server_to_server_status_purchase_event,data_layer_google_tag_manager_server_to_server_order_pay_event:y.data_layer_google_tag_manager_server_to_server_order_pay_event,data_layer_google_tag_manager_server_to_server_status_order_pay_event:y.data_layer_google_tag_manager_server_to_server_status_order_pay_event,data_layer_google_tag_manager_server_to_server_refund_event:y.data_layer_google_tag_manager_server_to_server_refund_event},f),i(!1),e((0,r.__)("Settings saved!","datalayer-for-woocommerce"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:t?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-woocommerce")]}):(0,r.__)("Save","datalayer-for-woocommerce")})})]})}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},h=window.wp.coreData,f=e=>{const{createSuccessNotice:a,createErrorNotice:o}=(0,n.useDispatch)(s.store),t=(0,n.useDispatch)(),[i,d]=(0,_.useState)(!1),{getFields:m,isLoading:p,getBrands:u}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings"),getBrands:e(h.store).getTaxonomies({type:"product"})})),[]),[y,f]=(0,_.useState)({data_layer_google_tag_manager_ecommerce_ga4:!1,data_layer_google_tag_manager_related_product_show:!1}),x=u?u.map((e=>({label:e.labels.name,value:e.slug}))):[];x.unshift({label:"Do not use",value:"none"});const v=(0,_.useCallback)(((e,a)=>{f((o=>({...o,[a]:e})))}),[]),b=(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState()));(0,_.useEffect)((()=>{m&&f(m)}),[m]);const j=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Enable to use datalayer only with ","datalayer-for-ecommerce-free"),(0,g.jsx)(l.ExternalLink,{href:"https://developers.google.com/tag-manager/ecommerce-ga4?hl=en",children:"Ecommerce (GA4)"})]}),w=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Select if product items show ID or SKU","datalayer-for-ecommerce-free")}),S=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Select the taxonomy containing Product Brands","datalayer-for-ecommerce-free")}),C=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Select when the event should be triggered","datalayer-for-ecommerce-free")}),N=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Select when the event should be triggered","datalayer-for-ecommerce-free")}),T=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Select when the view_item event should fire if its a product variable","datalayer-for-ecommerce-free")}),E=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to show variable product variants as an individual product","datalayer-for-ecommerce-free")}),k=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to show event view_item_list for related product in page product","datalayer-for-woocommerce")}),F=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Enable to show discount in ecommerce.items when product is on sale - ","datalayer-for-woocommerce"),(0,g.jsx)(l.ExternalLink,{href:"https://developers.google.com/analytics/devguides/collection/ga4/apply-discount?client_type=gtag",children:"Read more"})]});return(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Ecommerce Settings","datalayer-for-ecommerce-free")}),p?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("DataLayer for WooCommerce Ecommerce GA4","datalayer-for-ecommerce-free"),checked:y.data_layer_google_tag_manager_ecommerce_ga4,onChange:e=>v(e,"data_layer_google_tag_manager_ecommerce_ga4"),help:j}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Show view_item_list related product","datalayer-for-woocommerce"),checked:y.data_layer_google_tag_manager_related_product_show,onChange:e=>v(e,"data_layer_google_tag_manager_related_product_show"),help:k}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{d(!0),await t("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_ecommerce_ga4:y.data_layer_google_tag_manager_ecommerce_ga4,data_layer_google_tag_manager_related_product_show:y.data_layer_google_tag_manager_related_product_show},b),d(!1),a((0,r.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),o("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:i,children:i?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-ecommerce-free")]}):(0,r.__)("Save","datalayer-for-ecommerce-free")})}),(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Product Items","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_product_items,options:[{label:"ID",value:"ID"},{label:"SKU",value:"SKU"}],onChange:e=>v(e,"data_layer_google_tag_manager_product_items"),help:w}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Product Brands","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_product_brands,options:x,onChange:e=>v(e,"data_layer_google_tag_manager_product_brands"),help:S}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Event add_shipping_info","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_javascript_event_add_shipping_info,options:[{label:"Shipping selected",value:"Shipping selected"},{label:"Place order button",value:"Place order button"}],onChange:e=>v(e,"data_layer_google_tag_manager_javascript_event_add_shipping_info"),help:C}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Event add_payment_info","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_javascript_event_add_payment_info,options:[{label:"Payment selected",value:"Payment selected"},{label:"Place order button",value:"Place order button"}],onChange:e=>v(e,"data_layer_google_tag_manager_javascript_event_add_payment_info"),help:N}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Variable product event view_item","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_javascript_event_view_item,options:[{label:"Parent product page view",value:"Parent product page view"},{label:"When selecting a variation",value:"When selecting a variation"},{label:"Parent product page view and When selecting a variation",value:"Parent product page view and When selecting a variation"}],onChange:e=>v(e,"data_layer_google_tag_manager_javascript_event_view_item"),help:T}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Variable product as individual product","datalayer-for-ecommerce-free"),checked:y.data_layer_google_tag_manager_variable_product_as_individual,onChange:e=>v(e,"data_layer_google_tag_manager_variable_product_as_individual"),help:E}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Show discount in ecommerce.items when product is on sale","datalayer-for-woocommerce"),checked:y.data_layer_google_tag_manager_discount_in_items_show,onChange:e=>v(e,"data_layer_google_tag_manager_discount_in_items_show"),help:F})]})]}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},x=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,n.useDispatch)(s.store),o=(0,n.useDispatch)(),[t,i]=(0,_.useState)(!1),[d,m]=(0,_.useState)(!1),[p,u]=(0,_.useState)(null),[y,f]=(0,_.useState)(!1),x=()=>f(!1),{getFields:v,isLoading:b,getProducts:j}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings"),getProducts:e(h.store).getEntityRecords("postType","product",{per_page:-1})})),[]),[w,S]=(0,_.useState)({data_layer_google_tag_manager_promotions:[]}),[C,N]=(0,_.useState)({}),T=j?j.map((e=>({key:e.id,label:e.title.rendered,value:{id:e.id}}))):[],E=(0,_.useCallback)(((e,a)=>{N((o=>({...o,[a]:e})))}),[]),k=(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState()));return(0,_.useEffect)((()=>{v&&S(v)}),[v]),(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Ecommerce Promotions","datalayer-for-woocommerce")}),(0,g.jsxs)("div",{className:"form-legend",children:[(0,g.jsxs)(l.Tip,{children:[(0,r.__)("Create the promotions that will be used to trigger the","datalayer-for-woocommerce")," ",(0,g.jsx)("b",{children:"select_promotion"})," and ",(0,g.jsx)("b",{children:"view_promotion"})," events."," ",(0,g.jsx)(l.ExternalLink,{href:"https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?hl=en&client_type=gtm#apply_promotions",children:(0,r.__)("Read more","datalayer-for-woocommerce")})]}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{})]}),b?(0,g.jsx)(g.Fragment,{children:y?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"form-fields",children:[(0,g.jsx)(l.ToggleControl,{label:(0,r.__)("Status Promotion","datalayer-for-woocommerce"),checked:C.status,onChange:e=>E(e,"status"),help:(0,r.__)("Select promotion status","datalayer-for-woocommerce")}),(0,g.jsx)(l.TextControl,{label:(0,r.__)("Promotion ID","datalayer-for-woocommerce"),value:C.promotion_id,onChange:e=>E(e,"promotion_id"),help:(0,r.__)("The ID of the promotion associated with the event","datalayer-for-woocommerce")}),(0,g.jsx)(l.TextControl,{label:(0,r.__)("Promotion Name","datalayer-for-woocommerce"),value:C.promotion_name,onChange:e=>E(e,"promotion_name"),help:(0,r.__)("The name of the promotion associated with the event","datalayer-for-woocommerce")}),(0,g.jsx)(l.TextControl,{label:(0,r.__)("Creative Name","datalayer-for-woocommerce"),value:C.creative_name,onChange:e=>E(e,"creative_name"),help:(0,r.__)("The name of the promotional creative","datalayer-for-woocommerce")}),(0,g.jsx)(l.TextControl,{label:(0,r.__)("Creative Slot","datalayer-for-woocommerce"),value:C.creative_slot,onChange:e=>E(e,"creative_slot"),help:(0,r.__)("The name of the promotional creative slot associated with the event","datalayer-for-woocommerce")}),(0,g.jsx)("label",{className:"components-base-control__label css-1v57ksj ej5x27r2 label_external",htmlFor:"woocommerce-select-control-1",children:"Products"}),(0,g.jsx)(c.SelectControl,{label:(0,r.__)("Select products","datalayer-for-woocommerce"),help:(0,r.__)("Select the products for which the event will be triggered","datalayer-for-woocommerce"),options:T,selected:C.products,onChange:e=>E(e,"products"),isSearchable:!0,multiple:!0,showClearButton:!0,hideBeforeSearch:!0,staticList:!0}),(0,g.jsxs)("div",{className:"form-buttons",children:[(0,g.jsx)(l.Button,{onClick:x,variant:"secondary",children:(0,r.__)("Cancel","datalayer-for-woocommerce")}),(0,g.jsx)(l.Button,{onClick:async()=>{try{i(!0);const a=w.data_layer_google_tag_manager_promotions.map((e=>e.id===C.id?{...e,...C}:e));w.data_layer_google_tag_manager_promotions.find((e=>e.id===C.id))||a.push(C),S({...w,data_layer_google_tag_manager_promotions:a}),await o("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_promotions:a},k),i(!1),x(),e((0,r.__)("Promotion saved!","datalayer-for-woocommerce"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:t,children:t?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-woocommerce")]}):(0,r.__)("Save","datalayer-for-woocommerce")})]})]})}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woo.woocommerce/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsxs)("table",{className:"wp-list-table widefat fixed striped table-view-list",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{style:{width:100},children:"#"}),(0,g.jsx)("td",{children:(0,r.__)("Promotion ID","datalayer-for-woocommerce")}),(0,g.jsx)("td",{children:(0,r.__)("Promotion Name","datalayer-for-woocommerce")}),(0,g.jsx)("td",{style:{width:100},children:(0,r.__)("Status","datalayer-for-woocommerce")}),(0,g.jsx)("td",{style:{width:450},children:(0,r.__)("Actions","datalayer-for-woocommerce")})]})}),(0,g.jsx)("tbody",{})]}),(0,g.jsx)("div",{className:"form-fields-button",children:(0,g.jsx)(l.Button,{onClick:()=>{const e=w.data_layer_google_tag_manager_promotions;let a=1;e.length>0&&(a=Math.max(...e.map((e=>parseInt(e.id,10))))+1),N({id:a,status:!1,promotion_id:"",promotion_name:"",creative_name:"",creative_slot:""}),f(!0)},variant:"primary",disabled:!0,children:(0,r.__)("Create","datalayer-for-woocommerce")})})]})})}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},v=e=>{const{createSuccessNotice:a,createErrorNotice:o}=(0,n.useDispatch)(s.store),t=(0,n.useDispatch)(),[i,d]=(0,_.useState)(!1),{getFields:m,isLoading:p}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")})),[]),[u,y]=(0,_.useState)({data_layer_google_tag_manager_show_user_info:!1}),h=(0,_.useCallback)(((e,a)=>{y((o=>({...o,[a]:e})))}),[]),f=(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState()));(0,_.useEffect)((()=>{m&&y(m)}),[m]);const x=(0,g.jsx)(g.Fragment,{children:(0,r.__)("When a user refreshes the thank you page, the purchase event is not sent again. Prevent duplicate transactions in analytics","datalayer-for-ecommerce-free")}),v=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable this option if user information show when logged.","datalayer-for-ecommerce-free")}),b=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable this option via javascript as an alternative when your theme fails to load the hook add_to_cart with php.","datalayer-for-ecommerce-free")});return(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Ecommerce Advanced","datalayer-for-ecommerce-free")}),p?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Show user info","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_show_user_info,onChange:e=>h(e,"data_layer_google_tag_manager_show_user_info"),help:v}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{d(!0),await t("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_show_user_info:u.data_layer_google_tag_manager_show_user_info},f),d(!1),a((0,r.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),o("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:i,children:i?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-ecommerce-free")]}):(0,r.__)("Save","datalayer-for-ecommerce-free")})}),(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Trigger Purchase only once","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_purchase_only_once,onChange:e=>h(e,"data_layer_google_tag_manager_purchase_only_once"),help:x}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Events with Javascript","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_javascript_events,onChange:e=>h(e,"data_layer_google_tag_manager_javascript_events"),help:b})]})]}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},b=e=>{const{createSuccessNotice:a,createErrorNotice:o}=(0,n.useDispatch)(s.store),t=(0,n.useDispatch)(),[i,d]=(0,_.useState)(!1),{getFields:m,isLoading:p}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")})),[]),[u,y]=(0,_.useState)({data_layer_google_tag_manager_debug_activate:!1}),h=((0,_.useCallback)(((e,a)=>{y((o=>({...o,[a]:e})))}),[]),(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState())));(0,_.useEffect)((()=>{m&&y(m)}),[m]);const f=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Activate DEBUG BAR TEST MODE","datalayer-for-ecommerce-free")});return(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Extra Debug Bar","datalayer-for-ecommerce-free")}),p?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.ToggleControl,{disabled:!0,__nextHasNoMarginBottom:!0,label:(0,r.__)("Activate Test Debugger Bar","datalayer-for-ecommerce-free"),help:f}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{d(!0),await t("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_debug_activate:u.data_layer_google_tag_manager_debug_activate},h),d(!1),a((0,r.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),o("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:i?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-ecommerce-free")]}):(0,r.__)("Save","datalayer-for-ecommerce-free")})})]})}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},j=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,n.useDispatch)(s.store),[o,t]=((0,n.useDispatch)(),(0,_.useState)(!1)),{getFields:i,isLoading:d}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")})),[]),[m,p]=(0,_.useState)({}),u=(0,_.useCallback)(((e,a)=>{p((o=>({...o,[a]:e})))}),[]);(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState())),(0,_.useEffect)((()=>{i&&p(i)}),[i]);const y=(0,g.jsxs)(g.Fragment,{children:[(0,r.__)("Enable to trigger Popup Consent Mode. ","datalayer-for-woocommerce"),(0,g.jsx)(l.ExternalLink,{href:"https://support.google.com/tagmanager/answer/10718549",children:"Read more"})]}),h=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger ad_storage consent option","datalayer-for-woocommerce")}),f=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger ad_user_data consent option","datalayer-for-woocommerce")}),x=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger ad_personalization consent option","datalayer-for-woocommerce")}),v=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger analytics_storage consent option","datalayer-for-woocommerce")}),b=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger functionality_storage consent option","datalayer-for-woocommerce")}),j=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger personalization_storage consent option","datalayer-for-woocommerce")}),w=(0,g.jsx)(g.Fragment,{children:(0,r.__)("Enable to trigger security_storage consent option","datalayer-for-woocommerce")});return(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Popup Consent Mode","datalayer-for-woocommerce")}),d?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Popup Consent Mode","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup"),help:y}),(0,g.jsx)("div",{className:"form-subtitle",children:(0,r.__)("Consent Types","datalayer-for-woocommerce")}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Ad Storage","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_ad_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_ad_storage"),help:h,disabled:!m.data_layer_google_tag_manager_consent_mode_popup}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Active Default","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_ad_storage"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_ad_storage,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Ad Storage Text Description","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_text_ad_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_ad_storage"),help:(0,r.__)("Example: Enables storage (such as cookies) related to advertising","datalayer-for-woocommerce"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_ad_storage,className:"components-base-control-bottom-minus"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Ad User Data","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data"),help:f,disabled:!m.data_layer_google_tag_manager_consent_mode_popup}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Active Default","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_user_data,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_ad_user_data"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Ad User Data Text Description","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_text_ad_user_data,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_ad_user_data"),help:(0,r.__)("Example: Sets consent for sending user data related to advertising to Google","datalayer-for-woocommerce"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data,className:"components-base-control-bottom-minus"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Ad Personalization","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization"),help:x,disabled:!m.data_layer_google_tag_manager_consent_mode_popup}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Active Default","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_personalization,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_ad_personalization"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Ad Personalization Text Description","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_text_ad_personalization,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_ad_personalization"),help:(0,r.__)("Example: Sets consent for personalized advertising","datalayer-for-woocommerce"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization,className:"components-base-control-bottom-minus"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Analytics Storage","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage"),help:v,disabled:!m.data_layer_google_tag_manager_consent_mode_popup}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Active Default","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_default_analytics_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_analytics_storage"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Analytics Storage Text Description","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_text_analytics_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_analytics_storage"),help:(0,r.__)("Example: Enables storage (such as cookies) related to analytics e.g. visit duration","datalayer-for-woocommerce"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage,className:"components-base-control-bottom-minus"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Functionality Storage","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage"),help:b,disabled:!m.data_layer_google_tag_manager_consent_mode_popup}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Active Default","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_default_functionality_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_functionality_storage"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Functionality Storage Text Description","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_text_functionality_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_functionality_storage"),help:(0,r.__)("Example: Enables storage that supports the functionality of the website or app e.g. language settings","datalayer-for-woocommerce"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage,className:"components-base-control-bottom-minus"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Personalization Storage","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage"),help:j,disabled:!m.data_layer_google_tag_manager_consent_mode_popup}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Active Default","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_default_personalization_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_personalization_storage"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Personalization Storage Text Description","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_text_personalization_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_personalization_storage"),help:(0,r.__)("Example: Enables storage related to personalization e.g. video recommendations","datalayer-for-woocommerce"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage,className:"components-base-control-bottom-minus"}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Security Storage","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_security_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_security_storage"),help:w,disabled:!m.data_layer_google_tag_manager_consent_mode_popup}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Active Default","datalayer-for-woocommerce"),checked:m.data_layer_google_tag_manager_consent_mode_popup_active_default_security_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_security_storage"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_security_storage,className:"components-base-control-bottom-minus-active"}),(0,g.jsx)(l.TextControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Security Storage Text Description","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_text_security_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_security_storage"),help:(0,r.__)("Example: Enables storage related to security such as authentication functionality, fraud prevention, and other user protection","datalayer-for-woocommerce"),disabled:!m.data_layer_google_tag_manager_consent_mode_popup_active_security_storage,className:"components-base-control-bottom-minus"}),(0,g.jsx)("div",{className:"form-subtitle",children:(0,r.__)("Popup Style","datalayer-for-woocommerce")}),(0,g.jsx)(l.SelectControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,r.__)("Style","datalayer-for-woocommerce"),value:m.data_layer_google_tag_manager_consent_mode_popup_style,options:[{label:"BOTTOM",value:"BOTTOM"},{label:"FLOAT LEFT",value:"FLOAT LEFT"},{label:"FLOAT RIGHT",value:"FLOAT RIGHT"},{label:"CENTER",value:"CENTER"}],onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_style"),help:(0,r.__)("Select popup style","datalayer-for-woocommerce")}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{t(!0),e((0,r.__)("Settings saved!","datalayer-for-woocommerce"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:o?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-woocommerce")]}):(0,r.__)("Save","datalayer-for-woocommerce")})})]})}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},w=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,n.useDispatch)(s.store),o=(0,n.useDispatch)(),[t,i]=(0,_.useState)(!1),{getFields:d,isLoading:m}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")})),[]),[p,u]=(0,_.useState)({data_layer_google_tag_manager_post_data_active:!1,data_layer_google_tag_manager_post_data_page_title:!1,data_layer_google_tag_manager_post_data_visitor_type:!1,data_layer_google_tag_manager_post_data_page_post_type:!1,data_layer_google_tag_manager_post_data_page_post_date:!1,data_layer_google_tag_manager_post_data_page_post_author:!1,data_layer_google_tag_manager_post_data_page_post_author_id:!1,data_layer_google_tag_manager_post_data_page_category:!1,data_layer_google_tag_manager_post_data_page_tags:!1,data_layer_google_tag_manager_post_data_page_id:!1}),y=(0,_.useCallback)(((e,a)=>{u((o=>({...o,[a]:e})))}),[]),h=(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState()));return(0,_.useEffect)((()=>{d&&u(d)}),[d]),(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Post Data","datalayer-for-woocommerce")}),(0,g.jsxs)("div",{className:"form-legend",children:[(0,g.jsxs)(l.Tip,{children:[(0,r.__)("Select the post data that will be used to trigger the","datalayer-for-woocommerce")," ",(0,g.jsx)("b",{children:"Pageview"})," event."]}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{})]}),m?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Active Event Pageview","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_active"),help:(0,r.__)("Active Event Pageview","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page Title","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_title"),help:(0,r.__)("Insert pageTitle parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Visitor Type","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_visitor_type"),help:(0,r.__)("Insert visitorType parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page Post Type","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_post_type"),help:(0,r.__)("Insert pagePostType parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page Date","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_post_date"),help:(0,r.__)("Insert pagePostDate parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page Author","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_post_author"),help:(0,r.__)("Insert pagePostAuthor parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page Author ID","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_post_author_id"),help:(0,r.__)("Insert pagePostAuthorId parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page Category","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_category"),help:(0,r.__)("Insert pageCategory parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page Tags","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_tags"),help:(0,r.__)("Insert pageTags parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)(l.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,r.__)("Page ID","datalayer-for-woocommerce"),onChange:e=>y(e,"data_layer_google_tag_manager_post_data_page_id"),help:(0,r.__)("Insert pageId parameter","datalayer-for-woocommerce"),disabled:!0}),(0,g.jsx)("div",{className:"form-buttons",children:(0,g.jsx)(l.Button,{onClick:async()=>{try{i(!0),await o("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_post_data_active:p.data_layer_google_tag_manager_post_data_active,data_layer_google_tag_manager_post_data_page_title:p.data_layer_google_tag_manager_post_data_page_title,data_layer_google_tag_manager_post_data_visitor_type:p.data_layer_google_tag_manager_post_data_visitor_type,data_layer_google_tag_manager_post_data_page_post_type:p.data_layer_google_tag_manager_post_data_page_post_type,data_layer_google_tag_manager_post_data_page_post_date:p.data_layer_google_tag_manager_post_data_page_post_date,data_layer_google_tag_manager_post_data_page_post_author:p.data_layer_google_tag_manager_post_data_page_post_author,data_layer_google_tag_manager_post_data_page_post_author_id:p.data_layer_google_tag_manager_post_data_page_post_author_id,data_layer_google_tag_manager_post_data_page_category:p.data_layer_google_tag_manager_post_data_page_category,data_layer_google_tag_manager_post_data_page_tags:p.data_layer_google_tag_manager_post_data_page_tags,data_layer_google_tag_manager_post_data_page_id:p.data_layer_google_tag_manager_post_data_page_id},h),i(!1),e((0,r.__)("Settings saved!","datalayer-for-woocommerce"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:t?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Saving","datalayer-for-woocommerce")]}):(0,r.__)("Save","datalayer-for-woocommerce")})})]})}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},S=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,n.useDispatch)(s.store),o=(0,n.useDispatch)(),[t,i]=(0,_.useState)(!1),[d,m]=(0,_.useState)(!1),[p,y]=(0,_.useState)(null),[f,x]=(0,_.useState)(!1),[v,b]=(0,_.useState)(null),[j,w]=(0,_.useState)(null),{getFields:S,isLoading:C,getBrands:N}=(0,n.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings"),getBrands:e(h.store).getTaxonomies({type:"product"})})),[]),[T,E]=(0,_.useState)({data_layer_google_tag_manager_catalog_feed:[]}),[k,F]=(0,_.useState)({});(N?N.map((e=>({label:e.labels.name,value:e.slug}))):[]).unshift({label:"Do not use",value:"none"}),(0,_.useCallback)(((e,a)=>{F((o=>({...o,[a]:e})))}),[]);const B=(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getState()));return(0,_.useEffect)((()=>{S&&E(S)}),[S]),(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Catalog Feed","datalayer-for-woocommerce")}),(0,g.jsxs)("div",{className:"form-legend",children:[(0,g.jsx)(l.Tip,{children:(0,r.__)("Create a Catalog Feed files for platforms.","datalayer-for-woocommerce")}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{})]}),C?(0,g.jsx)(g.Fragment,{children:f?(0,g.jsx)(g.Fragment,{}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"premium-function",children:[(0,g.jsx)("span",{children:(0,g.jsx)(l.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,g.jsxs)("table",{className:"wp-list-table widefat fixed striped table-view-list",children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{children:[(0,g.jsx)("td",{style:{width:100},children:"#"}),(0,g.jsx)("td",{children:(0,r.__)("Catalog Name","datalayer-for-woocommerce")}),(0,g.jsx)("td",{children:(0,r.__)("Catalog Type","datalayer-for-woocommerce")}),(0,g.jsx)("td",{children:(0,r.__)("Status","datalayer-for-woocommerce")}),(0,g.jsx)("td",{style:{width:450},children:(0,r.__)("Actions","datalayer-for-woocommerce")})]})}),(0,g.jsx)("tbody",{})]}),(0,g.jsxs)("div",{className:"form-fields-button",children:[(0,g.jsx)(l.Button,{onClick:()=>{const e=T.data_layer_google_tag_manager_catalog_feed;let a=1;e.length>0&&(a=Math.max(...e.map((e=>parseInt(e.id,10))))+1),F({id:a,status:!1,name:"",type:"",feedUrl:"",idSettings:"",description:"",availability:"",brands:"",quantity_to_sell_on_facebook:"",gtin:"",mpn:"",google_product_category:[],identifier_exists:"",custom_label_0:"",custom_label_1:"",custom_label_2:"",custom_label_3:"",custom_label_4:""}),x(!0)},variant:"primary",disabled:!0,children:(0,r.__)("Create","datalayer-for-woocommerce")}),(0,g.jsx)(l.Button,{onClick:async()=>{try{i(!0);const a=await u()({method:"GET",path:"/datalayer-for-woocommerce/v1/generate-feed"});if(a){const t=T.data_layer_google_tag_manager_catalog_feed.map((e=>{const o=a.find((a=>a.id===e.id));return o?{...e,feedUrl:o.feed_url}:e}));E((e=>({...e,data_layer_google_tag_manager_catalog_feed:t}))),await o("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_catalog_feed:t},B),e((0,r.__)("Generated feed catalog!","datalayer-for-woocommerce"),{type:"snackbar"}),i(!1)}}catch(e){console.error(e),a(e.message+". Please inform your system administrator.",{explicitDismiss:!0,type:"snackbar",icon:"⛔"}),i(!1)}},variant:"secondary",style:{marginLeft:"10px"},disabled:!0,children:t?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(l.Spinner,{}),(0,r.__)("Generating","datalayer-for-woocommerce")]}):(0,r.__)("Generate Feed","datalayer-for-woocommerce")})]})]})})}):(0,g.jsx)(l.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},C=()=>(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("Help","datalayer-for-ecommerce-free")}),(0,g.jsxs)(l.Flex,{gap:"20",justify:"flex-start",children:[(0,g.jsx)(l.FlexItem,{children:(0,g.jsxs)(l.Card,{children:[(0,g.jsx)(l.CardHeader,{children:(0,g.jsx)(l.__experimentalHeading,{level:1,children:(0,r.__)("Contact us","datalayer-for-ecommerce-free")})}),(0,g.jsx)(l.CardBody,{children:(0,g.jsx)(l.Button,{variant:"secondary",href:"https://wordpress.org/support/plugin/datalayer-for-ecommerce-free/",target:"_blank",children:(0,r.__)("Create ticket","datalayer-for-ecommerce-free")})})]})}),(0,g.jsx)(l.FlexItem,{children:(0,g.jsxs)(l.Card,{children:[(0,g.jsx)(l.CardHeader,{children:(0,g.jsx)(l.__experimentalHeading,{level:1,children:(0,r.__)("Configuration","datalayer-for-ecommerce-free")})}),(0,g.jsx)(l.CardBody,{children:(0,g.jsx)(l.Button,{variant:"secondary",href:"https://wordpress.org/plugins/datalayer-for-ecommerce-free/#installation",target:"_blank",children:(0,r.__)("View documentation","datalayer-for-ecommerce-free")})})]})}),(0,g.jsx)(l.FlexItem,{children:(0,g.jsxs)(l.Card,{children:[(0,g.jsx)(l.CardHeader,{children:(0,g.jsx)(l.__experimentalHeading,{level:1,children:(0,r.__)("Review","datalayer-for-ecommerce-free")})}),(0,g.jsx)(l.CardBody,{children:(0,g.jsx)(l.Button,{variant:"secondary",href:"https://wordpress.org/support/plugin/datalayer-for-ecommerce-free/reviews/#new-post",target:"_blank",children:(0,r.__)("Send your review","datalayer-for-ecommerce-free")})})]})})]})]}),N=()=>(0,g.jsxs)("div",{className:"my-gutenberg-form",children:[(0,g.jsx)(c.SectionHeader,{title:(0,r.__)("About","datalayer-for-ecommerce-free")}),(0,g.jsxs)("p",{children:["= 4.8.0 - 2025-05-14 =",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.8.1 WC 9.8.5",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 4.6.0 - 2025-01-29 =",(0,g.jsx)("br",{}),"* Update: Packages dependencies",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.7.1 WC 9.6.0",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 4.3.0 - 2024-10-28 =",(0,g.jsx)("br",{}),"* New: Option Show view_item_list related product in product page",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.6.2 WC 9.3.3",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 4.0.0 - 2024-07-03 =",(0,g.jsx)("br",{}),"* Remove: Option DataLayer for WooCommerce Enhanced Ecommerce removed",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.5.5 WC 9.0.2",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 3.4.0 - 2024-06-10 =",(0,g.jsx)("br",{}),"* Update: Push Datalayer function without jQuery",(0,g.jsx)("br",{}),"* Update: Get Country Code Phone Number User",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.5.3 WC 8.9.2",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 3.3.0 - 2024-03-27 =",(0,g.jsx)("br",{}),"* New: Parameter item_category with multiples categories in all events",(0,g.jsx)("br",{}),"* Fix: Php 8.2 deprecated function get options",(0,g.jsx)("br",{}),"* Fix: Product tax update in item price",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.4.3 WC 8.7.0",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 3.2.0 - 2023-12-15 =",(0,g.jsx)("br",{}),"* Update: Compatibility with multicurrency WPML plugin",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.4.2 WC 8.4.0",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 3.1.0 - 2023-11-29 =",(0,g.jsx)("br",{}),"* Update: Select only one datalayer type in ecommerce settings",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.4.1 WC 8.3.1",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 3.0.0 - 2023-10-30 =",(0,g.jsx)("br",{}),"* New: Full compatibility with WooCommerce Blocks",(0,g.jsx)("br",{}),"* New: New Modern Admin Page",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.3.2 WC 8.2.1",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 2.7.0 - 2023-06-21 =",(0,g.jsx)("br",{}),"* New: Select if user information show or not when logged",(0,g.jsx)("br",{}),"* New: Full Compatibility HPOS - High-Performance order storage (COT)",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.2.2 WC 7.8.0",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 2.4.0 - 2023-03-29 =",(0,g.jsx)("br",{}),"* Support: Support -> WP 6.1.1 WC 7.5.1",(0,g.jsx)("br",{}),"* Update: optimization and improvement of the code that triggers the events",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 2.0.2 - 2022-09-21 =",(0,g.jsx)("br",{}),"* Support: WP 6.0.2 WC 6.9.3",(0,g.jsx)("br",{}),"* Fix: Multisite full support check WooCommerce Active",(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),(0,g.jsx)("br",{}),"= 2.0.0 - 2022-06-22 =",(0,g.jsx)("br",{}),"* First Release",(0,g.jsx)("br",{})]})]}),T=window.wp.primitives,E=(0,g.jsx)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(T.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),k=(0,g.jsx)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,g.jsx)(T.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})}),F=(0,g.jsxs)(T.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,g.jsx)(T.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,g.jsx)(T.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),B=({items:e,activeItem:a,onItemClick:o})=>(0,g.jsx)("div",{className:"custom-navigation",children:e.map((e=>(0,g.jsx)(l.Button,{onClick:()=>o(e.item),className:"navigation-item-button "+(a===e.item?"is-active":""),children:(0,g.jsx)("span",{className:"navigation-item-label",children:e.title})},e.item)))}),M=({onNavItemChange:e,activeNavItem:a})=>{const o=a=>{e(a)};return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(l.Panel,{children:[(0,g.jsx)(l.PanelBody,{icon:E,title:"Google Tag Manager",initialOpen:!0,children:(0,g.jsx)(l.PanelRow,{children:(0,g.jsx)(B,{activeItem:a,onItemClick:o,items:[{item:"item-1",title:(0,r.__)("Settings","datalayer-for-woocommerce")},{item:"item-2",title:(0,r.__)("Tags Synchronization","datalayer-for-woocommerce")},{item:"item-3",title:(0,r.__)("Consent Mode","datalayer-for-woocommerce")},{item:"item-4",title:(0,r.__)("Server-to-Server","datalayer-for-woocommerce")}]})})}),(0,g.jsx)(l.PanelBody,{title:"Ecommerce",icon:k,initialOpen:!0,children:(0,g.jsx)(l.PanelRow,{children:(0,g.jsx)(B,{activeItem:a,onItemClick:o,items:[{item:"item-5",title:(0,r.__)("Settings","datalayer-for-woocommerce")},{item:"item-6",title:(0,r.__)("Promotions","datalayer-for-woocommerce")},{item:"item-7",title:(0,r.__)("Advanced","datalayer-for-woocommerce")}]})})}),(0,g.jsx)(l.PanelBody,{title:"Extra",icon:F,initialOpen:!0,children:(0,g.jsx)(l.PanelRow,{children:(0,g.jsx)(B,{activeItem:a,onItemClick:o,items:[{item:"item-8",title:(0,r.__)("Debug Bar","datalayer-for-woocommerce")},{item:"item-9",title:(0,r.__)("Popup Consent Mode","datalayer-for-woocommerce")},{item:"item-10",title:(0,r.__)("Post Data","datalayer-for-woocommerce")},{item:"item-11",title:(0,r.__)("Catalog Feed","datalayer-for-woocommerce")},{item:"item-12",title:(0,r.__)("Help","datalayer-for-woocommerce")},{item:"item-13",title:(0,r.__)("About","datalayer-for-woocommerce")}]})})})]})})},P={tracking_google_tag_manager:"",data_layer_google_tag_manager_enhanced_ecommerce:!1,data_layer_google_tag_manager_ecommerce_ga4:!1,data_layer_google_tag_manager_show_user_info:!1,data_layer_google_tag_manager_related_product_show:!1},H={initSettings:e=>({type:"STATE_FROM_DATABASE",payload:{...e}}),*saveSettings(e,a){const o={...P,...a,...e};try{return yield H.saveSettingsToDatabase(o),{type:"SAVE_SETTINGS",payload:o}}catch(e){throw e}},saveSettingsToDatabase:e=>({type:"SAVE_SETTINGS_TO_DATABASE",payload:e})},D={getState:e=>({...P,...e}),getSettings(e){const{...a}=e;return a},getEcommerceData(e){const{data_layer_google_tag_manager_purchase_only_once:a,data_layer_google_tag_manager_show_user_info:o,data_layer_google_tag_manager_javascript_events:t}=e;return{data_layer_google_tag_manager_purchase_only_once:a,data_layer_google_tag_manager_show_user_info:o,data_layer_google_tag_manager_javascript_events:t}}},A={getSettings:()=>async({dispatch:e})=>{const a=await u()({path:"/wp/v2/settings"});e.initSettings(a.options_tracking_option_free)}},L={async SAVE_SETTINGS_TO_DATABASE(e){try{const a=await u()({path:"/wp/v2/settings"});if(a&&a.options_tracking_option_free)return await u()({path:"/wp/v2/settings",method:"PUT",body:JSON.stringify({options_tracking_option_free:e.payload})}),e;throw"error"}catch(e){throw e}}},I=(0,n.createReduxStore)("shop-datalayer-for-ecommerce-free",{reducer:(e=P,a)=>{switch(a.type){case"STATE_FROM_DATABASE":case"SAVE_SETTINGS":return{...e,...a.payload};default:return e}},actions:H,selectors:D,resolvers:A,controls:L});(0,n.register)(I);const z=o.p+"images/logo-datalayer-for-ecommerce-free.1980fdad.png",R=()=>{const[e,a]=(0,_.useState)("item-1");return(0,n.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings())),(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"wrap datalayer-for-ecommerce-free",children:[(0,g.jsxs)("div",{className:"content-sidebar-datalayer-for-ecommerce-free-wrap",children:[(0,g.jsx)("div",{className:"logoDatalayer",children:(0,g.jsx)("img",{src:z,width:"100",alt:"Datalayer for WooCommerce Icon"})}),(0,g.jsx)(M,{onNavItemChange:e=>{a(e)},activeNavItem:e})]}),(0,g.jsxs)("div",{className:"content-form-datalayer-for-ecommerce-free-wrap",children:["item-1"===e&&(0,g.jsx)(i,{}),"item-2"===e&&(0,g.jsx)(d,{}),"item-3"===e&&(0,g.jsx)(m,{}),"item-4"===e&&(0,g.jsx)(y,{}),"item-5"===e&&(0,g.jsx)(f,{}),"item-6"===e&&(0,g.jsx)(x,{}),"item-7"===e&&(0,g.jsx)(v,{}),"item-8"===e&&(0,g.jsx)(b,{}),"item-9"===e&&(0,g.jsx)(j,{}),"item-10"===e&&(0,g.jsx)(w,{}),"item-11"===e&&(0,g.jsx)(S,{}),"item-12"===e&&(0,g.jsx)(C,{}),"item-13"===e&&(0,g.jsx)(N,{})]})]})})};(0,t.addFilter)("woocommerce_admin_pages_list","datalayer-for-ecommerce-free",(e=>(e.push({breadcrumbs:["",wcSettings.woocommerceTranslation,(0,r.__)("Datalayer for WooCommerce FREE","datalayer-for-ecommerce-free")],capability:"manage_options",container:R,path:"/datalayer-for-ecommerce-free",wpOpenMenu:"toplevel_page_woocommerce",title:(0,r.__)("Datalayer for WooCommerce FREE","datalayer-for-ecommerce-free"),navArgs:{id:"datalayer-for-ecommerce-free"}}),e)))})();1 (()=>{"use strict";var e={n:a=>{var t=a&&a.__esModule?()=>a.default:()=>a;return e.d(t,{a:t}),t},d:(a,t)=>{for(var r in t)e.o(t,r)&&!e.o(a,r)&&Object.defineProperty(a,r,{enumerable:!0,get:t[r]})},o:(e,a)=>Object.prototype.hasOwnProperty.call(e,a)};(()=>{var a;globalThis.importScripts&&(a=globalThis.location+"");var t=globalThis.document;if(!a&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(a=t.currentScript.src),!a)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!a||!/^http(s?):/.test(a));)a=r[o--].src}if(!a)throw new Error("Automatic publicPath is not supported in this browser");a=a.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=a})();const a=window.wp.hooks,t=window.wp.i18n,r=window.wp.element,o=window.wp.data,_=window.wp.components,n=window.wp.notices,l=window.wc.components,s=window.ReactJSXRuntime,c=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),d=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),[p,f]=(0,r.useState)({tracking_google_tag_manager:"",data_layer_google_tag_manager_custom_domain_server_side:"",data_layer_google_tag_manager_custom_script_filename_server_side:"",data_layer_google_tag_manager_custom_environment_gtm_auth:"",data_layer_google_tag_manager_custom_environment_gtm_preview:""}),u=(0,r.useCallback)(((e,a)=>{f((t=>({...t,[a]:e})))}),[]);(0,r.useEffect)((()=>{d&&f((e=>({...e,...d})))}),[d]);const y=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Example: GTM-XXXXXX - ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://support.google.com/tagmanager/answer/6103696",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]}),h=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Example: https://DOMAIN-NAME.com - Send Google scripts gtm.js directly from your tagging server - ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://developers.google.com/tag-platform/tag-manager/server-side/send-data?hl=en#update_the_gtmjs_source_domain",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")}),"\n",(0,t.__)("Leave empty if you don't use GTM Server Side","datalayer-for-ecommerce-free")]}),x=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Example: filename.js - Enter a custom name for the file gtm.js","datalayer-for-ecommerce-free"),"\n",(0,t.__)("Only use for custom file loader in your GTM Server Side","datalayer-for-ecommerce-free")]}),v=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Insert gtm_auth to use a custom environment - ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://support.google.com/tagmanager/answer/6311518?hl=en",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")}),"\n",(0,t.__)("Leave empty if you don't use GTM Custom Environment","datalayer-for-ecommerce-free")]}),b=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Insert gtm_preview to use a custom environment - ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://support.google.com/tagmanager/answer/6311518?hl=en",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")}),"\n",(0,t.__)("Leave empty if you don't use GTM Custom Environment","datalayer-for-ecommerce-free")]});return(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Google Tag Manager Settings","datalayer-for-ecommerce-free")}),m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Google Tag Manager ID","datalayer-for-ecommerce-free"),value:p.tracking_google_tag_manager,onChange:e=>u(e,"tracking_google_tag_manager"),help:y}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({tracking_google_tag_manager:p.tracking_google_tag_manager},d),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:g,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})}),(0,s.jsx)("div",{className:"premium-function",children:(0,s.jsxs)("span",{children:[(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Custom domain GTM Server Side","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_custom_domain_server_side,onChange:e=>u(e,"data_layer_google_tag_manager_custom_domain_server_side"),help:h}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Custom script filename GTM Server Side","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_custom_script_filename_server_side,onChange:e=>u(e,"data_layer_google_tag_manager_custom_script_filename_server_side"),help:x}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Custom Environment gtm_auth","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_custom_environment_gtm_auth,onChange:e=>u(e,"data_layer_google_tag_manager_custom_environment_gtm_auth"),help:v}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Custom Environment gtm_preview","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_custom_environment_gtm_preview,onChange:e=>u(e,"data_layer_google_tag_manager_custom_environment_gtm_preview"),help:b})]})})]}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},g=()=>(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Google Tag Manager Tags Synchronization","datalayer-for-ecommerce-free")}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{variant:"primary",href:"https://demoshop.arrayevida.com.br/wp-content/uploads/2024/07/workspace.zip",children:(0,t.__)("Download Import File GTM","datalayer-for-ecommerce-free")})})]}),i=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),d=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),[p,f]=(0,r.useState)({data_layer_google_tag_manager_consent_mode_default:"",data_layer_google_tag_manager_consent_mode_default_ad_storage:"",data_layer_google_tag_manager_consent_mode_default_ad_user_data:"",data_layer_google_tag_manager_consent_mode_default_ad_personalization:"",data_layer_google_tag_manager_consent_mode_default_analytics_storage:"",data_layer_google_tag_manager_consent_mode_default_functionality_storage:"",data_layer_google_tag_manager_consent_mode_default_personalization_storage:"",data_layer_google_tag_manager_consent_mode_default_security_storage:""}),u=(0,r.useCallback)(((e,a)=>{f((t=>({...t,[a]:e})))}),[]);(0,r.useEffect)((()=>{d&&f((e=>({...e,...d})))}),[d]);const y=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Enable to trigger for all parameters consent to denied. ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#default-consent",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]}),h=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger ad_storage consent to granted","datalayer-for-ecommerce-free")}),x=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger ad_user_data consent to granted","datalayer-for-ecommerce-free")}),v=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger ad_personalization consent to granted","datalayer-for-ecommerce-free")}),b=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger analytics_storage consent to granted","datalayer-for-ecommerce-free")}),j=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger functionality_storage consent to granted","datalayer-for-ecommerce-free")}),S=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger personalization_storage consent to granted","datalayer-for-ecommerce-free")}),C=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger security_storage consent to granted","datalayer-for-ecommerce-free")});return p.data_layer_google_tag_manager_consent_mode_default,(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Google Tag Manager Consent Mode","datalayer-for-ecommerce-free")}),(0,s.jsxs)("div",{className:"form-legend",children:[(0,s.jsxs)(_.Tip,{children:[(0,t.__)("Use this feature to trigger DEFAULT consent before the GTM declaration.","datalayer-for-ecommerce-free"),"\n",(0,t.__)("This feature does not replace the use of a consent tool. If the consent tool already triggers a DEFAULT consent, you do not need to use this feature.","datalayer-for-ecommerce-free")," ",(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/document/datalayer-for-ecommerce-free/#consent-mode",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),m?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Google Consent Mode","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default"),help:y}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default_ad_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default_ad_storage"),help:h}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad User Data","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default_ad_user_data,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default_ad_user_data"),help:x}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad Personalization","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default_ad_personalization,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default_ad_personalization"),help:v}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Analytics Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default_analytics_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default_analytics_storage"),help:b}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Functionality Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default_functionality_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default_functionality_storage"),help:j}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Personalization Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default_personalization_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default_personalization_storage"),help:S}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Security Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_default_security_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_default_security_storage"),help:C}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_consent_mode_default:p.data_layer_google_tag_manager_consent_mode_default,data_layer_google_tag_manager_consent_mode_default_ad_storage:p.data_layer_google_tag_manager_consent_mode_default_ad_storage,data_layer_google_tag_manager_consent_mode_default_ad_user_data:p.data_layer_google_tag_manager_consent_mode_default_ad_user_data,data_layer_google_tag_manager_consent_mode_default_ad_personalization:p.data_layer_google_tag_manager_consent_mode_default_ad_personalization,data_layer_google_tag_manager_consent_mode_default_analytics_storage:p.data_layer_google_tag_manager_consent_mode_default_analytics_storage,data_layer_google_tag_manager_consent_mode_default_functionality_storage:p.data_layer_google_tag_manager_consent_mode_default_functionality_storage,data_layer_google_tag_manager_consent_mode_default_personalization_storage:p.data_layer_google_tag_manager_consent_mode_default_personalization_storage,data_layer_google_tag_manager_consent_mode_default_security_storage:p.data_layer_google_tag_manager_consent_mode_default_security_storage},p),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})})]})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},d=window.wp.apiFetch;var m=e.n(d);const p=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),[d,p]=(0,r.useState)(null),f=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),u=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),[y,h]=(0,r.useState)({data_layer_google_tag_manager_server_to_server_container_url:"",data_layer_google_tag_manager_server_to_server_measurement_id:"",data_layer_google_tag_manager_server_to_server_preview_request_header:"",data_layer_google_tag_manager_server_to_server_save_cookie_order:"",data_layer_google_tag_manager_server_to_server_purchase_event:"",data_layer_google_tag_manager_server_to_server_status_purchase_event:"",data_layer_google_tag_manager_server_to_server_order_pay_event:"",data_layer_google_tag_manager_server_to_server_status_order_pay_event:"",data_layer_google_tag_manager_server_to_server_refund_event:""}),x=(0,r.useCallback)(((e,a)=>{h((t=>({...t,[a]:e})))}),[]);(0,r.useEffect)((()=>{f&&h((e=>({...e,...f})))}),[f]);const v=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Insert preview request header to test manually send a preview request. ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/document/datalayer-for-woocommerce/#server-to-server-request-header",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]});return y.data_layer_google_tag_manager_server_to_server_purchase_event,y.data_layer_google_tag_manager_server_to_server_order_pay_event,(0,r.useEffect)((()=>{(async()=>{try{const e=await m()({method:"GET",path:"/datalayer-for-ecommerce-free/v1/get-status-order"});e.result&&p(e.result)}catch(e){console.error(e)}})()}),[]),(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Google Tag Manager Server-to-Server","datalayer-for-ecommerce-free")}),(0,s.jsxs)("div",{className:"form-legend",children:[(0,s.jsxs)(_.Tip,{children:[(0,t.__)("Use this feature to send events directly to GTM server side.","datalayer-for-ecommerce-free"),(0,s.jsx)("br",{}),(0,t.__)("Please note: This is an advanced feature. Recommended for experienced users only.","datalayer-for-ecommerce-free")," ",(0,s.jsx)(_.ExternalLink,{href:"https://developers.google.com/tag-platform/tag-manager/server-side/send-data?hl=en&option=GTM#3_optional_send_data_from_sources_other_than_websites",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),u?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Google Server Container Url","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_server_to_server_container_url,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_container_url"),help:(0,t.__)("Insert GTM Server container URL","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Measurement ID GA4","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_server_to_server_measurement_id,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_measurement_id"),help:(0,t.__)("Insert Measurement ID GA4. Example: G-G999999999","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Preview Request Header","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_server_to_server_preview_request_header,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_preview_request_header"),help:v}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Save Cookies in Order","datalayer-for-ecommerce-free"),checked:y.data_layer_google_tag_manager_server_to_server_save_cookie_order,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_save_cookie_order"),help:(0,t.__)("Enable to save user cookies in order and link web and server events","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Purchase Event","datalayer-for-ecommerce-free"),checked:y.data_layer_google_tag_manager_server_to_server_purchase_event,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_purchase_event"),help:(0,t.__)("Enable to trigger purchase event directly via server side and stop via client web","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Purchase Event Status","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_server_to_server_status_purchase_event,selected:y.data_layer_google_tag_manager_server_to_server_status_purchase_event,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_status_purchase_event"),options:d,help:(0,t.__)("Select which order status the purchase event should be triggered on","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Order Pay Event","datalayer-for-ecommerce-free"),checked:y.data_layer_google_tag_manager_server_to_server_order_pay_event,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_order_pay_event"),help:(0,t.__)("Enable to trigger order_pay event directly via server side","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Order Pay Status","datalayer-for-ecommerce-free"),value:y.data_layer_google_tag_manager_server_to_server_status_order_pay_event,selected:y.data_layer_google_tag_manager_server_to_server_status_order_pay_event,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_status_order_pay_event"),options:d,help:(0,t.__)("Select which order status the order pay event should be triggered on","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Order Refund Event","datalayer-for-ecommerce-free"),checked:y.data_layer_google_tag_manager_server_to_server_refund_event,onChange:e=>x(e,"data_layer_google_tag_manager_server_to_server_refund_event"),help:(0,t.__)("Enable to trigger refund event directly via server side","datalayer-for-ecommerce-free")}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_server_to_server_container_url:y.data_layer_google_tag_manager_server_to_server_container_url,data_layer_google_tag_manager_server_to_server_measurement_id:y.data_layer_google_tag_manager_server_to_server_measurement_id,data_layer_google_tag_manager_server_to_server_preview_request_header:y.data_layer_google_tag_manager_server_to_server_preview_request_header,data_layer_google_tag_manager_server_to_server_save_cookie_order:y.data_layer_google_tag_manager_server_to_server_save_cookie_order,data_layer_google_tag_manager_server_to_server_purchase_event:y.data_layer_google_tag_manager_server_to_server_purchase_event,data_layer_google_tag_manager_server_to_server_status_purchase_event:y.data_layer_google_tag_manager_server_to_server_status_purchase_event,data_layer_google_tag_manager_server_to_server_order_pay_event:y.data_layer_google_tag_manager_server_to_server_order_pay_event,data_layer_google_tag_manager_server_to_server_status_order_pay_event:y.data_layer_google_tag_manager_server_to_server_status_order_pay_event,data_layer_google_tag_manager_server_to_server_refund_event:y.data_layer_google_tag_manager_server_to_server_refund_event},y),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})})]})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},f=window.wp.coreData,u=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),d=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),p=(0,o.useSelect)((e=>e(f.store).getTaxonomies({type:"product"})),[]),[u,y]=(0,r.useState)({data_layer_google_tag_manager_ecommerce_ga4:!1,data_layer_google_tag_manager_related_product_show:!1}),h=p?p.map((e=>({label:e.labels.name,value:e.slug}))):[];h.unshift({label:"Do not use",value:"none"});const x=(0,r.useCallback)(((e,a)=>{y((t=>({...t,[a]:e})))}),[]);(0,r.useEffect)((()=>{d&&y((e=>({...e,...d})))}),[d]);const v=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Enable to use datalayer only with ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://developers.google.com/tag-manager/ecommerce-ga4?hl=en",children:"Ecommerce (GA4)"})]}),b=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Select if product items show ID or SKU","datalayer-for-ecommerce-free")}),j=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Select the taxonomy containing Product Brands","datalayer-for-ecommerce-free")}),S=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Select when the event should be triggered","datalayer-for-ecommerce-free")}),C=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Select when the event should be triggered","datalayer-for-ecommerce-free")}),w=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Select when the view_item event should fire if its a product variable","datalayer-for-ecommerce-free")}),N=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to show variable product variants as an individual product","datalayer-for-ecommerce-free")}),k=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to show event view_item_list for related product in page product","datalayer-for-ecommerce-free")}),T=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Enable to show discount in ecommerce.items when product is on sale - ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://developers.google.com/analytics/devguides/collection/ga4/apply-discount?client_type=gtag",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]});return(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Ecommerce Settings","datalayer-for-ecommerce-free")}),m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("DataLayer for WooCommerce Ecommerce GA4","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_ecommerce_ga4,onChange:e=>x(e,"data_layer_google_tag_manager_ecommerce_ga4"),help:v}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Show view_item_list related product","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_related_product_show,onChange:e=>x(e,"data_layer_google_tag_manager_related_product_show"),help:k}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_ecommerce_ga4:u.data_layer_google_tag_manager_ecommerce_ga4,data_layer_google_tag_manager_related_product_show:u.data_layer_google_tag_manager_related_product_show},u),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:g,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})}),(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Product Items","datalayer-for-ecommerce-free"),value:u.data_layer_google_tag_manager_product_items,options:[{label:"ID",value:"ID"},{label:"SKU",value:"SKU"}],onChange:e=>x(e,"data_layer_google_tag_manager_product_items"),help:b}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Product Brands","datalayer-for-ecommerce-free"),value:u.data_layer_google_tag_manager_product_brands,options:h,onChange:e=>x(e,"data_layer_google_tag_manager_product_brands"),help:j}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Event add_shipping_info","datalayer-for-ecommerce-free"),value:u.data_layer_google_tag_manager_javascript_event_add_shipping_info,options:[{label:"Shipping selected",value:"Shipping selected"},{label:"Place order button",value:"Place order button"}],onChange:e=>x(e,"data_layer_google_tag_manager_javascript_event_add_shipping_info"),help:S}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Event add_payment_info","datalayer-for-ecommerce-free"),value:u.data_layer_google_tag_manager_javascript_event_add_payment_info,options:[{label:"Payment selected",value:"Payment selected"},{label:"Place order button",value:"Place order button"}],onChange:e=>x(e,"data_layer_google_tag_manager_javascript_event_add_payment_info"),help:C}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Variable product event view_item","datalayer-for-ecommerce-free"),value:u.data_layer_google_tag_manager_javascript_event_view_item,options:[{label:"Parent product page view",value:"Parent product page view"},{label:"When selecting a variation",value:"When selecting a variation"},{label:"Parent product page view and When selecting a variation",value:"Parent product page view and When selecting a variation"}],onChange:e=>x(e,"data_layer_google_tag_manager_javascript_event_view_item"),help:w}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Variable product as individual product","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_variable_product_as_individual,onChange:e=>x(e,"data_layer_google_tag_manager_variable_product_as_individual"),help:N}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Show discount in ecommerce.items when product is on sale","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_discount_in_items_show,onChange:e=>x(e,"data_layer_google_tag_manager_discount_in_items_show"),help:T})]})]}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},y=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),[d,m]=(0,r.useState)(!1),[p,u]=(0,r.useState)(null),[y,h]=(0,r.useState)(!1),x=()=>h(!0),v=()=>h(!1),b=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),j=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),S=(0,o.useSelect)((e=>e(f.store).getEntityRecords("postType","product",{per_page:-1})),[]),[C,w]=(0,r.useState)({data_layer_google_tag_manager_promotions:[]}),[N,k]=(0,r.useState)({}),T=S?S.map((e=>({key:e.id,label:e.title.rendered,value:{id:e.id}}))):[],E=(0,r.useCallback)(((e,a)=>{k((t=>({...t,[a]:e})))}),[]);return(0,r.useEffect)((()=>{b&&w((e=>({...e,...b})))}),[b]),(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Ecommerce Promotions","datalayer-for-ecommerce-free")}),(0,s.jsxs)("div",{className:"form-legend",children:[(0,s.jsxs)(_.Tip,{children:[(0,t.__)("Create the promotions that will be used to trigger the","datalayer-for-ecommerce-free")," ",(0,s.jsx)("b",{children:"select_promotion"})," and ",(0,s.jsx)("b",{children:"view_promotion"})," events."," ",(0,s.jsx)(_.ExternalLink,{href:"https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?hl=en&client_type=gtm#apply_promotions",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),j?(0,s.jsx)(s.Fragment,{children:y?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"form-fields",children:[(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Status Promotion","datalayer-for-ecommerce-free"),checked:N.status,onChange:e=>E(e,"status"),help:(0,t.__)("Select promotion status","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Promotion ID","datalayer-for-ecommerce-free"),value:N.promotion_id,onChange:e=>E(e,"promotion_id"),help:(0,t.__)("The ID of the promotion associated with the event","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Promotion Name","datalayer-for-ecommerce-free"),value:N.promotion_name,onChange:e=>E(e,"promotion_name"),help:(0,t.__)("The name of the promotion associated with the event","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Creative Name","datalayer-for-ecommerce-free"),value:N.creative_name,onChange:e=>E(e,"creative_name"),help:(0,t.__)("The name of the promotional creative","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Creative Slot","datalayer-for-ecommerce-free"),value:N.creative_slot,onChange:e=>E(e,"creative_slot"),help:(0,t.__)("The name of the promotional creative slot associated with the event","datalayer-for-ecommerce-free")}),(0,s.jsx)("label",{className:"components-base-control__label css-1v57ksj ej5x27r2 label_external",htmlFor:"woocommerce-select-control-1",children:"Products"}),(0,s.jsx)(l.SelectControl,{label:(0,t.__)("Select products","datalayer-for-ecommerce-free"),help:(0,t.__)("Select the products for which the event will be triggered","datalayer-for-ecommerce-free"),options:T,selected:N.products,onChange:e=>E(e,"products"),isSearchable:!0,multiple:!0,showClearButton:!0,hideBeforeSearch:!0,staticList:!0}),(0,s.jsxs)("div",{className:"form-buttons",children:[(0,s.jsx)(_.Button,{onClick:v,variant:"secondary",children:(0,t.__)("Cancel","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0);const a=C.data_layer_google_tag_manager_promotions.map((e=>e.id===N.id?{...e,...N}:e));C.data_layer_google_tag_manager_promotions.find((e=>e.id===N.id))||a.push(N),w({...C,data_layer_google_tag_manager_promotions:a}),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_promotions:a},C),i(!1),v(),e((0,t.__)("Promotion saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:g,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})]})]})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsxs)("table",{className:"wp-list-table widefat fixed striped table-view-list",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{style:{width:100},children:"#"}),(0,s.jsx)("td",{children:(0,t.__)("Promotion ID","datalayer-for-ecommerce-free")}),(0,s.jsx)("td",{children:(0,t.__)("Promotion Name","datalayer-for-ecommerce-free")}),(0,s.jsx)("td",{style:{width:100},children:(0,t.__)("Status","datalayer-for-ecommerce-free")}),(0,s.jsx)("td",{style:{width:450},children:(0,t.__)("Actions","datalayer-for-ecommerce-free")})]})}),(0,s.jsx)("tbody",{children:C.data_layer_google_tag_manager_promotions.map(((r,o)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:r.id}),(0,s.jsx)("td",{children:r.promotion_id}),(0,s.jsx)("td",{children:r.promotion_name}),(0,s.jsx)("td",{children:(0,s.jsx)("b",{children:r.status?(0,t.__)("Active","datalayer-for-ecommerce-free"):(0,t.__)("Inactive","datalayer-for-ecommerce-free")})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:"form-buttons",children:[(0,s.jsx)(_.Button,{onClick:()=>(e=>{x();const a=C.data_layer_google_tag_manager_promotions.find((a=>a.id===e));k(a)})(r.id),variant:"secondary",children:(0,t.__)("Edit","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.Button,{onClick:()=>(async r=>{try{m(!0),u(r);const a=C.data_layer_google_tag_manager_promotions.filter((e=>e.id!==r));w({...C,data_layer_google_tag_manager_promotions:a}),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_promotions:a},C),m(!1),u(null),e((0,t.__)("Promotion deleted!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error deleting promotion:",e),u(null),a("An error occurred while deleting the promotion.",{type:"snackbar"})}})(r.id),variant:"secondary",disabled:d&&r.id===p,children:d&&r.id===p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Deleting","datalayer-for-ecommerce-free")]}):(0,t.__)("Delete","datalayer-for-ecommerce-free")})]})})]},o)))})]}),(0,s.jsx)("div",{className:"form-fields-button",children:(0,s.jsx)(_.Button,{onClick:()=>{const e=C.data_layer_google_tag_manager_promotions;let a=1;e.length>0&&(a=Math.max(...e.map((e=>parseInt(e.id,10))))+1),k({id:a,status:!1,promotion_id:"",promotion_name:"",creative_name:"",creative_slot:""}),x()},variant:"primary",disabled:!0,children:(0,t.__)("Create","datalayer-for-ecommerce-free")})})]})})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},h=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),d=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),[p,f]=(0,r.useState)({data_layer_google_tag_manager_show_user_info:!1}),u=(0,r.useCallback)(((e,a)=>{f((t=>({...t,[a]:e})))}),[]);(0,r.useEffect)((()=>{d&&f((e=>({...e,...d})))}),[d]);const y=(0,s.jsx)(s.Fragment,{children:(0,t.__)("When a user refreshes the thank you page, the purchase event is not sent again. Prevent duplicate transactions in analytics","datalayer-for-ecommerce-free")}),h=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable this option if user information show when logged","datalayer-for-ecommerce-free")}),x=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable this option via javascript as an alternative when your theme fails to load the hook add_to_cart with php","datalayer-for-ecommerce-free")});return(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Ecommerce Advanced","datalayer-for-ecommerce-free")}),m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Show user info","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_show_user_info,onChange:e=>u(e,"data_layer_google_tag_manager_show_user_info"),help:h}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_show_user_info:p.data_layer_google_tag_manager_show_user_info},p),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:g,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})}),(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Trigger Purchase only once","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_purchase_only_once,onChange:e=>u(e,"data_layer_google_tag_manager_purchase_only_once"),help:y}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Events with Javascript","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_javascript_events,onChange:e=>u(e,"data_layer_google_tag_manager_javascript_events"),help:x})]})]}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},x=e=>{const{createSuccessNotice:a,createErrorNotice:c}=(0,o.useDispatch)(n.store),g=(0,o.useDispatch)(),[i,d]=(0,r.useState)(!1),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),p=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),[f,u]=(0,r.useState)({data_layer_google_tag_manager_debug_activate:!1}),y=(0,r.useCallback)(((e,a)=>{u((t=>({...t,[a]:e})))}),[]);(0,r.useEffect)((()=>{m&&u((e=>({...e,...m})))}),[m]);const h=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Activate DEBUG BAR TEST MODE","datalayer-for-ecommerce-free")});return(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Extra Debug Bar","datalayer-for-ecommerce-free")}),p?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Activate Test Debugger Bar","datalayer-for-ecommerce-free"),checked:f.data_layer_google_tag_manager_debug_activate,onChange:e=>y(e,"data_layer_google_tag_manager_debug_activate"),help:h}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{d(!0),await g("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_debug_activate:f.data_layer_google_tag_manager_debug_activate},f),d(!1),a((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),c("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:i?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})})]})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},v=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),d=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),[p,f]=(0,r.useState)({data_layer_google_tag_manager_consent_mode_popup:"",data_layer_google_tag_manager_consent_mode_popup_active_ad_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data:"",data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization:"",data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_security_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_default_ad_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_default_ad_user_data:"",data_layer_google_tag_manager_consent_mode_popup_active_default_ad_personalization:"",data_layer_google_tag_manager_consent_mode_popup_active_default_analytics_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_default_functionality_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_default_personalization_storage:"",data_layer_google_tag_manager_consent_mode_popup_active_default_security_storage:"",data_layer_google_tag_manager_consent_mode_popup_text_ad_storage:"",data_layer_google_tag_manager_consent_mode_popup_text_ad_user_data:"",data_layer_google_tag_manager_consent_mode_popup_text_ad_personalization:"",data_layer_google_tag_manager_consent_mode_popup_text_analytics_storage:"",data_layer_google_tag_manager_consent_mode_popup_text_functionality_storage:"",data_layer_google_tag_manager_consent_mode_popup_text_personalization_storage:"",data_layer_google_tag_manager_consent_mode_popup_text_security_storage:"",data_layer_google_tag_manager_consent_mode_popup_style:""}),u=(0,r.useCallback)(((e,a)=>{f((t=>({...t,[a]:e})))}),[]);(0,r.useEffect)((()=>{d&&f((e=>({...e,...d})))}),[d]);const y=(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Enable to trigger Popup Consent Mode. ","datalayer-for-ecommerce-free"),(0,s.jsx)(_.ExternalLink,{href:"https://support.google.com/tagmanager/answer/10718549",children:(0,t.__)("Read more","datalayer-for-ecommerce-free")})]}),h=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger ad_storage consent option","datalayer-for-ecommerce-free")}),x=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger ad_user_data consent option","datalayer-for-ecommerce-free")}),v=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger ad_personalization consent option","datalayer-for-ecommerce-free")}),b=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger analytics_storage consent option","datalayer-for-ecommerce-free")}),j=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger functionality_storage consent option","datalayer-for-ecommerce-free")}),S=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger personalization_storage consent option","datalayer-for-ecommerce-free")}),C=(0,s.jsx)(s.Fragment,{children:(0,t.__)("Enable to trigger security_storage consent option","datalayer-for-ecommerce-free")});return(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Popup Consent Mode","datalayer-for-ecommerce-free")}),m?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Popup Consent Mode","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup"),help:y}),(0,s.jsx)("div",{className:"form-subtitle",children:(0,t.__)("Consent Types","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_ad_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_ad_storage"),help:h}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Default","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_ad_storage"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad Storage Text Description","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_text_ad_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_ad_storage"),help:(0,t.__)("Example: Enables storage (such as cookies) related to advertising","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad User Data","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data"),help:x}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Default","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_user_data,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_ad_user_data"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad User Data Text Description","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_text_ad_user_data,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_ad_user_data"),help:(0,t.__)("Example: Sets consent for sending user data related to advertising to Google","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad Personalization","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization"),help:v}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Default","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_personalization,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_ad_personalization"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Ad Personalization Text Description","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_text_ad_personalization,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_ad_personalization"),help:(0,t.__)("Example: Sets consent for personalized advertising","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Analytics Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage"),help:b}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Default","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_default_analytics_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_analytics_storage"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Analytics Storage Text Description","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_text_analytics_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_analytics_storage"),help:(0,t.__)("Example: Enables storage (such as cookies) related to analytics e.g. visit duration","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Functionality Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage"),help:j}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Default","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_default_functionality_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_functionality_storage"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Functionality Storage Text Description","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_text_functionality_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_functionality_storage"),help:(0,t.__)("Example: Enables storage that supports the functionality of the website or app e.g. language settings","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Personalization Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage"),help:S}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Default","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_default_personalization_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_personalization_storage"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Personalization Storage Text Description","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_text_personalization_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_personalization_storage"),help:(0,t.__)("Example: Enables storage related to personalization e.g. video recommendations","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus"}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Security Storage","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_security_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_security_storage"),help:C}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Default","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_consent_mode_popup_active_default_security_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_active_default_security_storage"),className:"components-base-control-bottom-minus-active"}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Security Storage Text Description","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_text_security_storage,onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_text_security_storage"),help:(0,t.__)("Example: Enables storage related to security such as authentication functionality, fraud prevention, and other user protection","datalayer-for-ecommerce-free"),className:"components-base-control-bottom-minus"}),(0,s.jsx)("div",{className:"form-subtitle",children:(0,t.__)("Popup Style","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Style","datalayer-for-ecommerce-free"),value:p.data_layer_google_tag_manager_consent_mode_popup_style,options:[{label:"BOTTOM",value:"BOTTOM"},{label:"FLOAT LEFT",value:"FLOAT LEFT"},{label:"FLOAT RIGHT",value:"FLOAT RIGHT"},{label:"CENTER",value:"CENTER"}],onChange:e=>u(e,"data_layer_google_tag_manager_consent_mode_popup_style"),help:(0,t.__)("Select popup style","datalayer-for-ecommerce-free")}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_consent_mode_popup:p.data_layer_google_tag_manager_consent_mode_popup,data_layer_google_tag_manager_consent_mode_popup_active_ad_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_ad_storage,data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data:p.data_layer_google_tag_manager_consent_mode_popup_active_ad_user_data,data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization:p.data_layer_google_tag_manager_consent_mode_popup_active_ad_personalization,data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_analytics_storage,data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_functionality_storage,data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_personalization_storage,data_layer_google_tag_manager_consent_mode_popup_active_security_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_security_storage,data_layer_google_tag_manager_consent_mode_popup_active_default_ad_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_storage,data_layer_google_tag_manager_consent_mode_popup_active_default_ad_user_data:p.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_user_data,data_layer_google_tag_manager_consent_mode_popup_active_default_ad_personalization:p.data_layer_google_tag_manager_consent_mode_popup_active_default_ad_personalization,data_layer_google_tag_manager_consent_mode_popup_active_default_analytics_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_default_analytics_storage,data_layer_google_tag_manager_consent_mode_popup_active_default_functionality_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_default_functionality_storage,data_layer_google_tag_manager_consent_mode_popup_active_default_personalization_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_default_personalization_storage,data_layer_google_tag_manager_consent_mode_popup_active_default_security_storage:p.data_layer_google_tag_manager_consent_mode_popup_active_default_security_storage,data_layer_google_tag_manager_consent_mode_popup_text_ad_storage:p.data_layer_google_tag_manager_consent_mode_popup_text_ad_storage,data_layer_google_tag_manager_consent_mode_popup_text_ad_user_data:p.data_layer_google_tag_manager_consent_mode_popup_text_ad_user_data,data_layer_google_tag_manager_consent_mode_popup_text_ad_personalization:p.data_layer_google_tag_manager_consent_mode_popup_text_ad_personalization,data_layer_google_tag_manager_consent_mode_popup_text_analytics_storage:p.data_layer_google_tag_manager_consent_mode_popup_text_analytics_storage,data_layer_google_tag_manager_consent_mode_popup_text_functionality_storage:p.data_layer_google_tag_manager_consent_mode_popup_text_functionality_storage,data_layer_google_tag_manager_consent_mode_popup_text_personalization_storage:p.data_layer_google_tag_manager_consent_mode_popup_text_personalization_storage,data_layer_google_tag_manager_consent_mode_popup_text_security_storage:p.data_layer_google_tag_manager_consent_mode_popup_text_security_storage,data_layer_google_tag_manager_consent_mode_popup_style:p.data_layer_google_tag_manager_consent_mode_popup_style},p),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})})]})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},b=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),d=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),[p,f]=(0,r.useState)({data_layer_google_tag_manager_post_data_active:!1,data_layer_google_tag_manager_post_data_page_title:!1,data_layer_google_tag_manager_post_data_visitor_type:!1,data_layer_google_tag_manager_post_data_page_post_type:!1,data_layer_google_tag_manager_post_data_page_post_date:!1,data_layer_google_tag_manager_post_data_page_post_author:!1,data_layer_google_tag_manager_post_data_page_post_author_id:!1,data_layer_google_tag_manager_post_data_page_category:!1,data_layer_google_tag_manager_post_data_page_tags:!1,data_layer_google_tag_manager_post_data_page_id:!1}),u=(0,r.useCallback)(((e,a)=>{f((t=>({...t,[a]:e})))}),[]);return(0,r.useEffect)((()=>{d&&f((e=>({...e,...d})))}),[d]),(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Post Data","datalayer-for-ecommerce-free")}),(0,s.jsxs)("div",{className:"form-legend",children:[(0,s.jsxs)(_.Tip,{children:[(0,t.__)("Select the post data that will be used to trigger the","datalayer-for-ecommerce-free")," ",(0,s.jsx)("b",{children:"Pageview"})," event."]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),m?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Active Event Pageview","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_active,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_active"),help:(0,t.__)("Active Event Pageview","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page Title","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_title,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_title"),help:(0,t.__)("Insert pageTitle parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Visitor Type","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_visitor_type,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_visitor_type"),help:(0,t.__)("Insert visitorType parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page Post Type","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_post_type,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_post_type"),help:(0,t.__)("Insert pagePostType parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page Date","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_post_date,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_post_date"),help:(0,t.__)("Insert pagePostDate parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page Author","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_post_author,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_post_author"),help:(0,t.__)("Insert pagePostAuthor parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page Author ID","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_post_author_id,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_post_author_id"),help:(0,t.__)("Insert pagePostAuthorId parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page Category","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_category,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_category"),help:(0,t.__)("Insert pageCategory parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page Tags","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_tags,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_tags"),help:(0,t.__)("Insert pageTags parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Page ID","datalayer-for-ecommerce-free"),checked:p.data_layer_google_tag_manager_post_data_page_id,onChange:e=>u(e,"data_layer_google_tag_manager_post_data_page_id"),help:(0,t.__)("Insert pageId parameter","datalayer-for-ecommerce-free")}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_post_data_active:p.data_layer_google_tag_manager_post_data_active,data_layer_google_tag_manager_post_data_page_title:p.data_layer_google_tag_manager_post_data_page_title,data_layer_google_tag_manager_post_data_visitor_type:p.data_layer_google_tag_manager_post_data_visitor_type,data_layer_google_tag_manager_post_data_page_post_type:p.data_layer_google_tag_manager_post_data_page_post_type,data_layer_google_tag_manager_post_data_page_post_date:p.data_layer_google_tag_manager_post_data_page_post_date,data_layer_google_tag_manager_post_data_page_post_author:p.data_layer_google_tag_manager_post_data_page_post_author,data_layer_google_tag_manager_post_data_page_post_author_id:p.data_layer_google_tag_manager_post_data_page_post_author_id,data_layer_google_tag_manager_post_data_page_category:p.data_layer_google_tag_manager_post_data_page_category,data_layer_google_tag_manager_post_data_page_tags:p.data_layer_google_tag_manager_post_data_page_tags,data_layer_google_tag_manager_post_data_page_id:p.data_layer_google_tag_manager_post_data_page_id},p),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})})]})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},j=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),[d,p]=(0,r.useState)(!1),[u,y]=(0,r.useState)(null),[h,x]=(0,r.useState)(!1),v=()=>x(!0),b=()=>x(!1),[j,S]=(0,r.useState)(null),[C,w]=(0,r.useState)(null),N=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),k=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),T=(0,o.useSelect)((e=>e(f.store).getTaxonomies({type:"product"})),[]),[E,B]=(0,r.useState)({data_layer_google_tag_manager_catalog_feed:[]}),[M,D]=(0,r.useState)({}),F=T?T.map((e=>({label:e.labels.name,value:e.slug}))):[];F.unshift({label:"Do not use",value:"none"});const H=(0,r.useCallback)(((e,a)=>{D((t=>({...t,[a]:e})))}),[]);return(0,r.useEffect)((()=>{N&&B((e=>({...e,...N})))}),[N]),(0,r.useEffect)((()=>{(async()=>{try{const e=await m()({method:"GET",path:"/datalayer-for-ecommmerce-free/v1/get-product-meta-fields"});e.result&&S(e.result)}catch(e){console.error(e)}})(),(async()=>{try{const e=await m()({method:"GET",path:"/datalayer-for-ecommmerce-free/v1/get-product-custom-labels"});e.result&&w(e.result)}catch(e){console.error(e)}})()}),[]),(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Catalog Feed","datalayer-for-ecommmerce-free")}),(0,s.jsxs)("div",{className:"form-legend",children:[(0,s.jsx)(_.Tip,{children:(0,t.__)("Create a Catalog Feed files for platforms.","datalayer-for-ecommmerce-free")}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),k?(0,s.jsx)(s.Fragment,{children:h?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"form-fields",children:[(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Status Catalog","datalayer-for-ecommmerce-free"),checked:M.status,onChange:e=>H(e,"status"),help:(0,t.__)("Select catalog status","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.TextControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Catalog Name","datalayer-for-ecommmerce-free"),value:M.name,onChange:e=>H(e,"name"),help:(0,t.__)("The name of the catalog","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Catalog Type","datalayer-for-ecommmerce-free"),help:(0,t.__)("The type of the catalog","datalayer-for-ecommmerce-free"),value:M.type,options:[{label:"Select type",value:""},{label:"Google Merchant",value:"Google Merchant"},{label:"Facebook",value:"Facebook"}],onChange:e=>H(e,"type")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("ID","datalayer-for-ecommmerce-free"),value:M.idSettings,options:[{label:"Select",value:""},{label:"ID",value:"ID"},{label:"SKU",value:"SKU"}],onChange:e=>H(e,"idSettings"),help:(0,t.__)("Select if item show ID or SKU","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Description","datalayer-for-ecommmerce-free"),value:M.description,options:[{label:"Select",value:""},{label:"Short description",value:"Short description"},{label:"Full description",value:"Full description"}],onChange:e=>H(e,"description"),help:(0,t.__)("Select what description to use for the item","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Availability","datalayer-for-ecommmerce-free"),value:M.availability,options:[{label:"Select",value:""},{label:"All products",value:"All products"},{label:"Only Stock",value:"Only Stock"}],onChange:e=>H(e,"availability"),help:(0,t.__)("Select how show the item availability","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Product Brands","datalayer-for-ecommmerce-free"),value:M.brands,options:F,onChange:e=>H(e,"brands"),help:(0,t.__)("Select the taxonomy containing Product Brands","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,t.__)("Quantity to sell on facebook","datalayer-for-ecommmerce-free"),checked:M.quantity_to_sell_on_facebook,onChange:e=>H(e,"quantity_to_sell_on_facebook"),help:(0,t.__)("Add quantity_to_sell_on_facebook with stock value","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("GTIN","datalayer-for-ecommmerce-free"),value:M.gtin,options:j,onChange:e=>H(e,"gtin"),help:(0,t.__)("Select what field represent GTIN","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("MPN","datalayer-for-ecommmerce-free"),value:M.mpn,options:j,onChange:e=>H(e,"mpn"),help:(0,t.__)("Select what field represent MPN","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Identifier exists","datalayer-for-ecommmerce-free"),value:M.identifier_exists,options:[{label:"Do not use",value:""},{label:"Yes",value:"yes"},{label:"No",value:"no"}],onChange:e=>H(e,"identifier_exists"),help:(0,t.__)("Select if item show Yes or No in parameter identifier_exists","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Custom label 0","datalayer-for-ecommmerce-free"),value:M.custom_label_0,options:C,onChange:e=>H(e,"custom_label_0"),help:(0,t.__)("Select what field represent custom_label_0","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Custom label 1","datalayer-for-ecommmerce-free"),value:M.custom_label_1,options:C,onChange:e=>H(e,"custom_label_1"),help:(0,t.__)("Select what field represent custom_label_1","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Custom label 2","datalayer-for-ecommmerce-free"),value:M.custom_label_2,options:C,onChange:e=>H(e,"custom_label_2"),help:(0,t.__)("Select what field represent custom_label_2","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Custom label 3","datalayer-for-ecommmerce-free"),value:M.custom_label_3,options:C,onChange:e=>H(e,"custom_label_3"),help:(0,t.__)("Select what field represent custom_label_3","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.SelectControl,{__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0,label:(0,t.__)("Custom label 4","datalayer-for-ecommmerce-free"),value:M.custom_label_4,options:C,onChange:e=>H(e,"custom_label_4"),help:(0,t.__)("Select what field represent custom_label_4","datalayer-for-ecommmerce-free")}),(0,s.jsxs)("div",{className:"form-buttons",children:[(0,s.jsx)(_.Button,{onClick:b,variant:"secondary",children:(0,t.__)("Cancel","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0);const a=E.data_layer_google_tag_manager_catalog_feed.map((e=>e.id===M.id?{...e,...M}:e));E.data_layer_google_tag_manager_catalog_feed.find((e=>e.id===M.id))||a.push(M),B({...E,data_layer_google_tag_manager_catalog_feed:a}),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_catalog_feed:a},E),i(!1),b(),e((0,t.__)("Catalog Feed saved!","datalayer-for-ecommmerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:g,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommmerce-free")]}):(0,t.__)("Save","datalayer-for-ecommmerce-free")})]})]})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsxs)("table",{className:"wp-list-table widefat fixed striped table-view-list",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{style:{width:100},children:"#"}),(0,s.jsx)("td",{children:(0,t.__)("Catalog Name","datalayer-for-ecommmerce-free")}),(0,s.jsx)("td",{children:(0,t.__)("Catalog Type","datalayer-for-ecommmerce-free")}),(0,s.jsx)("td",{children:(0,t.__)("Status","datalayer-for-ecommmerce-free")}),(0,s.jsx)("td",{style:{width:450},children:(0,t.__)("Actions","datalayer-for-ecommmerce-free")})]})}),(0,s.jsx)("tbody",{children:E.data_layer_google_tag_manager_catalog_feed.map(((r,o)=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:r.id}),(0,s.jsx)("td",{children:r.name}),(0,s.jsx)("td",{children:r.type}),(0,s.jsx)("td",{children:(0,s.jsx)("b",{children:r.status?(0,t.__)("Active","datalayer-for-ecommmerce-free"):(0,t.__)("Inactive","datalayer-for-ecommmerce-free")})}),(0,s.jsx)("td",{children:(0,s.jsxs)("div",{className:"form-buttons",children:[(0,s.jsx)(_.Button,{onClick:()=>(e=>{v();const a=E.data_layer_google_tag_manager_catalog_feed.find((a=>a.id===e));D(a)})(r.id),variant:"secondary",children:(0,t.__)("Edit","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.Button,{onClick:()=>(async(r,o)=>{try{p(!0),y(r),await m()({path:"/datalayer-for-ecommmerce-free/v1/delete-catalog-feed-file",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({feedUrl:o})});const a=E.data_layer_google_tag_manager_catalog_feed.filter((e=>e.id!==r));B({...E,data_layer_google_tag_manager_catalog_feed:a}),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_catalog_feed:a},E),p(!1),y(null),e((0,t.__)("Catalog Feed deleted!","datalayer-for-ecommmerce-free"),{type:"snackbar"})}catch(e){console.error("Error deleting catalog:",e),y(null),a("An error occurred while deleting the catalog.",{type:"snackbar"})}})(r.id,r.feedUrl),variant:"secondary",disabled:d&&r.id===u,children:d&&r.id===u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Deleting","datalayer-for-ecommmerce-free")]}):(0,t.__)("Delete","datalayer-for-ecommmerce-free")}),r.feedUrl?(0,s.jsx)(_.Button,{variant:"secondary",href:r.feedUrl,target:"_blank",children:(0,t.__)("View Feed","datalayer-for-ecommmerce-free")}):null]})})]},o)))})]}),(0,s.jsxs)("div",{className:"form-fields-button",children:[(0,s.jsx)(_.Button,{onClick:()=>{const e=E.data_layer_google_tag_manager_catalog_feed;let a=1;e.length>0&&(a=Math.max(...e.map((e=>parseInt(e.id,10))))+1),D({id:a,status:!1,name:"",type:"",feedUrl:"",idSettings:"",description:"",availability:"",brands:"",quantity_to_sell_on_facebook:"",gtin:"",mpn:"",google_product_category:[],identifier_exists:"",custom_label_0:"",custom_label_1:"",custom_label_2:"",custom_label_3:"",custom_label_4:""}),v()},variant:"primary",disabled:!0,children:(0,t.__)("Create","datalayer-for-ecommmerce-free")}),(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0);const a=await m()({method:"GET",path:"/datalayer-for-ecommmerce-free/v1/generate-feed"});if(a){const r=E.data_layer_google_tag_manager_catalog_feed.map((e=>{const t=a.find((a=>a.id===e.id));return t?{...e,feedUrl:t.feed_url}:e}));B((e=>({...e,data_layer_google_tag_manager_catalog_feed:r}))),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_catalog_feed:r},E),e((0,t.__)("Generated feed catalog!","datalayer-for-ecommmerce-free"),{type:"snackbar"}),i(!1)}}catch(e){console.error(e),a(e.message+". Please inform your system administrator.",{explicitDismiss:!0,type:"snackbar",icon:"⛔"}),i(!1)}},variant:"secondary",style:{marginLeft:"10px"},disabled:!0,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Generating","datalayer-for-ecommmerce-free")]}):(0,t.__)("Generate Feed","datalayer-for-ecommmerce-free")})]})]})})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},S=()=>(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Help","datalayer-for-ecommerce-free")}),(0,s.jsxs)(_.Flex,{gap:"20",justify:"flex-start",children:[(0,s.jsx)(_.FlexItem,{children:(0,s.jsxs)(_.Card,{children:[(0,s.jsx)(_.CardHeader,{children:(0,s.jsx)(_.__experimentalHeading,{level:1,children:(0,t.__)("Contact us","datalayer-for-ecommerce-free")})}),(0,s.jsx)(_.CardBody,{children:(0,s.jsx)(_.Button,{variant:"secondary",href:"https://wordpress.org/support/plugin/datalayer-for-ecommerce-free/",target:"_blank",children:(0,t.__)("Create ticket","datalayer-for-ecommerce-free")})})]})}),(0,s.jsx)(_.FlexItem,{children:(0,s.jsxs)(_.Card,{children:[(0,s.jsx)(_.CardHeader,{children:(0,s.jsx)(_.__experimentalHeading,{level:1,children:(0,t.__)("Configuration","datalayer-for-ecommerce-free")})}),(0,s.jsx)(_.CardBody,{children:(0,s.jsx)(_.Button,{variant:"secondary",href:"https://wordpress.org/plugins/datalayer-for-ecommerce-free/#installation",target:"_blank",children:(0,t.__)("View documentation","datalayer-for-ecommerce-free")})})]})}),(0,s.jsx)(_.FlexItem,{children:(0,s.jsxs)(_.Card,{children:[(0,s.jsx)(_.CardHeader,{children:(0,s.jsx)(_.__experimentalHeading,{level:1,children:(0,t.__)("Review","datalayer-for-ecommerce-free")})}),(0,s.jsx)(_.CardBody,{children:(0,s.jsx)(_.Button,{variant:"secondary",href:"https://wordpress.org/support/plugin/datalayer-for-ecommerce-free/reviews/#new-post",target:"_blank",children:(0,t.__)("Send your review","datalayer-for-ecommerce-free")})})]})})]})]}),C=()=>(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("About","datalayer-for-ecommerce-free")}),(0,s.jsxs)("p",{children:["= 5.1.0 - 2026-03-05 =",(0,s.jsx)("br",{}),"* Update: Packages dependencies",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.9 WC 10.5.3",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 4.8.0 - 2025-05-14 =",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.8.1 WC 9.8.5",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 4.6.0 - 2025-01-29 =",(0,s.jsx)("br",{}),"* Update: Packages dependencies",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.7.1 WC 9.6.0",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 4.3.0 - 2024-10-28 =",(0,s.jsx)("br",{}),"* New: Option Show view_item_list related product in product page",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.6.2 WC 9.3.3",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 4.0.0 - 2024-07-03 =",(0,s.jsx)("br",{}),"* Remove: Option DataLayer for WooCommerce Enhanced Ecommerce removed",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.5.5 WC 9.0.2",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 3.4.0 - 2024-06-10 =",(0,s.jsx)("br",{}),"* Update: Push Datalayer function without jQuery",(0,s.jsx)("br",{}),"* Update: Get Country Code Phone Number User",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.5.3 WC 8.9.2",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 3.3.0 - 2024-03-27 =",(0,s.jsx)("br",{}),"* New: Parameter item_category with multiples categories in all events",(0,s.jsx)("br",{}),"* Fix: Php 8.2 deprecated function get options",(0,s.jsx)("br",{}),"* Fix: Product tax update in item price",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.4.3 WC 8.7.0",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 3.2.0 - 2023-12-15 =",(0,s.jsx)("br",{}),"* Update: Compatibility with multicurrency WPML plugin",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.4.2 WC 8.4.0",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 3.1.0 - 2023-11-29 =",(0,s.jsx)("br",{}),"* Update: Select only one datalayer type in ecommerce settings",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.4.1 WC 8.3.1",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 3.0.0 - 2023-10-30 =",(0,s.jsx)("br",{}),"* New: Full compatibility with WooCommerce Blocks",(0,s.jsx)("br",{}),"* New: New Modern Admin Page",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.3.2 WC 8.2.1",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 2.7.0 - 2023-06-21 =",(0,s.jsx)("br",{}),"* New: Select if user information show or not when logged",(0,s.jsx)("br",{}),"* New: Full Compatibility HPOS - High-Performance order storage (COT)",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.2.2 WC 7.8.0",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 2.4.0 - 2023-03-29 =",(0,s.jsx)("br",{}),"* Support: Support -> WP 6.1.1 WC 7.5.1",(0,s.jsx)("br",{}),"* Update: optimization and improvement of the code that triggers the events",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 2.0.2 - 2022-09-21 =",(0,s.jsx)("br",{}),"* Support: WP 6.0.2 WC 6.9.3",(0,s.jsx)("br",{}),"* Fix: Multisite full support check WooCommerce Active",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"= 2.0.0 - 2022-06-22 =",(0,s.jsx)("br",{}),"* First Release",(0,s.jsx)("br",{})]})]}),w=window.wp.primitives;var N=(0,s.jsx)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(w.Path,{d:"M4.75 4a.75.75 0 0 0-.75.75v7.826c0 .2.08.39.22.53l6.72 6.716a2.313 2.313 0 0 0 3.276-.001l5.61-5.611-.531-.53.532.528a2.315 2.315 0 0 0 0-3.264L13.104 4.22a.75.75 0 0 0-.53-.22H4.75ZM19 12.576a.815.815 0 0 1-.236.574l-5.61 5.611a.814.814 0 0 1-1.153 0L5.5 12.264V5.5h6.763l6.5 6.502a.816.816 0 0 1 .237.574ZM8.75 9.75a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"})}),k=(0,s.jsx)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(w.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z"})}),T=(0,s.jsxs)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,s.jsx)(w.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,s.jsx)(w.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),E=(0,s.jsx)(w.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,s.jsx)(w.Path,{d:"M3.445 16.505a.75.75 0 001.06.05l5.005-4.55 4.024 3.521 4.716-4.715V14h1.5V8.25H14v1.5h3.19l-3.724 3.723L9.49 9.995l-5.995 5.45a.75.75 0 00-.05 1.06z"})});const B=({items:e,activeItem:a,onItemClick:t})=>(0,s.jsx)("div",{className:"custom-navigation",children:e.map((e=>(0,s.jsx)(_.Button,{onClick:()=>t(e.item),className:"navigation-item-button "+(a===e.item?"is-active":""),children:(0,s.jsx)("span",{className:"navigation-item-label",children:e.title})},e.item)))}),M=({onNavItemChange:e,activeNavItem:a})=>{const r=a=>{e(a)};return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(_.Panel,{children:[(0,s.jsx)(_.PanelBody,{icon:N,title:"Google Tag Manager",initialOpen:!0,children:(0,s.jsx)(_.PanelRow,{children:(0,s.jsx)(B,{activeItem:a,onItemClick:r,items:[{item:"item-1",title:(0,t.__)("Settings","datalayer-for-ecommerce-free")},{item:"item-2",title:(0,t.__)("Tags Synchronization","datalayer-for-ecommerce-free")},{item:"item-3",title:(0,t.__)("Consent Mode","datalayer-for-ecommerce-free")},{item:"item-4",title:(0,t.__)("Server-to-Server","datalayer-for-ecommerce-free")}]})})}),(0,s.jsx)(_.PanelBody,{title:"Ecommerce",icon:k,initialOpen:!0,children:(0,s.jsx)(_.PanelRow,{children:(0,s.jsx)(B,{activeItem:a,onItemClick:r,items:[{item:"item-5",title:(0,t.__)("Settings","datalayer-for-ecommerce-free")},{item:"item-6",title:(0,t.__)("Promotions","datalayer-for-ecommerce-free")},{item:"item-7",title:(0,t.__)("Advanced","datalayer-for-ecommerce-free")}]})})}),(0,s.jsx)(_.PanelBody,{title:"Extra",icon:T,initialOpen:!0,children:(0,s.jsx)(_.PanelRow,{children:(0,s.jsx)(B,{activeItem:a,onItemClick:r,items:[{item:"item-8",title:(0,t.__)("Debug Bar","datalayer-for-ecommerce-free")},{item:"item-9",title:(0,t.__)("Popup Consent Mode","datalayer-for-ecommerce-free")},{item:"item-10",title:(0,t.__)("Post Data","datalayer-for-ecommerce-free")},{item:"item-11",title:(0,t.__)("Catalog Feed","datalayer-for-ecommerce-free")},{item:"item-12",title:(0,t.__)("Help","datalayer-for-ecommerce-free")},{item:"item-13",title:(0,t.__)("About","datalayer-for-ecommerce-free")}]})})}),(0,s.jsx)(_.PanelBody,{title:"Datalayer Reports",icon:E,initialOpen:!0,children:(0,s.jsx)(_.PanelRow,{children:(0,s.jsx)(B,{activeItem:a,onItemClick:r,items:[{item:"item-14",title:(0,t.__)("Settings","datalayer-for-ecommerce-free")},{item:"item-15",title:(0,t.__)("Funnels","datalayer-for-ecommerce-free")},{item:"item-16",title:(0,t.__)("Insights AI","datalayer-for-ecommerce-free")}]})})})]})})},D={tracking_google_tag_manager:"",data_layer_google_tag_manager_enhanced_ecommerce:!1,data_layer_google_tag_manager_ecommerce_ga4:!1,data_layer_google_tag_manager_show_user_info:!1,data_layer_google_tag_manager_related_product_show:!1},F={initSettings:e=>({type:"STATE_FROM_DATABASE",payload:{...e}}),*saveSettings(e,a){const t={...D,...a,...e};try{return yield F.saveSettingsToDatabase(t),{type:"SAVE_SETTINGS",payload:t}}catch(e){throw e}},saveSettingsToDatabase:e=>({type:"SAVE_SETTINGS_TO_DATABASE",payload:e})},H={getState:e=>({...D,...e}),getSettings(e){const{...a}=e;return a},getEcommerceData(e){const{data_layer_google_tag_manager_purchase_only_once:a,data_layer_google_tag_manager_show_user_info:t,data_layer_google_tag_manager_javascript_events:r}=e;return{data_layer_google_tag_manager_purchase_only_once:a,data_layer_google_tag_manager_show_user_info:t,data_layer_google_tag_manager_javascript_events:r}}},P={getSettings:()=>async({dispatch:e})=>{const a=await m()({path:"/wp/v2/settings"});e.initSettings(a.options_tracking_option_free)}},z={async SAVE_SETTINGS_TO_DATABASE(e){try{const a=await m()({path:"/wp/v2/settings"});if(a&&a.options_tracking_option_free)return await m()({path:"/wp/v2/settings",method:"PUT",body:JSON.stringify({options_tracking_option_free:e.payload})}),e;throw"error"}catch(e){throw e}}},A=(0,o.createReduxStore)("shop-datalayer-for-ecommerce-free",{reducer:(e=D,a)=>{switch(a.type){case"STATE_FROM_DATABASE":case"SAVE_SETTINGS":return{...e,...a.payload};default:return e}},actions:F,selectors:H,resolvers:P,controls:z});(0,o.register)(A);const I=e.p+"images/logo-datalayer-for-ecommerce-free.1980fdad.png",R=()=>{const{createSuccessNotice:e,createErrorNotice:a}=(0,o.useDispatch)(n.store),c=(0,o.useDispatch)(),[g,i]=(0,r.useState)(!1),d=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings()),[]),m=(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings")),[]),p=(0,o.useSelect)((e=>e(f.store).getTaxonomies({type:"product"})),[]),[u,y]=(0,r.useState)({data_layer_google_tag_manager_ai_settings_activate:!1,data_layer_google_tag_manager_ai_settings_insights_activate:!1});(p?p.map((e=>({label:e.labels.name,value:e.slug}))):[]).unshift({label:"Do not use",value:"none"});const h=(0,r.useCallback)(((e,a)=>{y((t=>({...t,[a]:e})))}),[]);return(0,r.useEffect)((()=>{d&&y((e=>({...e,...d})))}),[d]),(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Datalayer Reports Settings","datalayer-for-ecommerce-free")}),m?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"premium-function",children:[(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Activate Report Funnels","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_ai_settings_activate,onChange:e=>h(e,"data_layer_google_tag_manager_ai_settings_activate"),help:(0,t.__)("Enable this option to save DataLayer events locally and generate reports directly on your website.","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.ToggleControl,{__nextHasNoMarginBottom:!0,disabled:!0,label:(0,t.__)("Activate Insights AI","datalayer-for-ecommerce-free"),checked:u.data_layer_google_tag_manager_ai_settings_insights_activate,onChange:e=>h(e,"data_layer_google_tag_manager_ai_settings_insights_activate"),help:(0,t.__)("Get automatic, human-friendly insights from your WooCommerce data","datalayer-for-ecommerce-free")}),u.data_layer_google_tag_manager_ai_settings_insights_activate&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{className:"description",style:{marginBottom:"8px"},children:(0,t.__)("AI Insights need an AI provider to work. Add your OpenAI API key to enable automatic, human-readable insights from your store data.","datalayer-for-ecommerce-free")}),(0,s.jsx)(_.TextControl,{disabled:!0,label:(0,t.__)("OpenAI API Key","datalayer-for-ecommerce-free"),type:"password",value:u.data_layer_google_tag_manager_ai_settings_insights_openai_key,onChange:e=>h(e,"data_layer_google_tag_manager_ai_settings_insights_openai_key"),help:(0,s.jsxs)(s.Fragment,{children:[(0,t.__)("Your API key is used only to generate insights and is never shared.","datalayer-for-ecommerce-free")," ",(0,s.jsx)(_.ExternalLink,{href:"https://platform.openai.com/api-keys",children:(0,t.__)("How to get your API key","datalayer-for-ecommerce-free")})]})})]}),(0,s.jsx)("div",{className:"form-buttons",children:(0,s.jsx)(_.Button,{onClick:async()=>{try{i(!0),await c("shop-datalayer-for-ecommerce-free").saveSettings({data_layer_google_tag_manager_ai_settings_activate:u.data_layer_google_tag_manager_ai_settings_activate,data_layer_google_tag_manager_ai_settings_insights_activate:u.data_layer_google_tag_manager_ai_settings_insights_activate},u),i(!1),e((0,t.__)("Settings saved!","datalayer-for-ecommerce-free"),{type:"snackbar"})}catch(e){console.error("Error saving settings:",e),a("An error occurred while saving settings.",{type:"snackbar"})}},variant:"primary",disabled:!0,children:g?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(_.Spinner,{}),(0,t.__)("Saving","datalayer-for-ecommerce-free")]}):(0,t.__)("Save","datalayer-for-ecommerce-free")})})]})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},L=()=>{const{getFields:e,isLoading:a,getBrands:r}=(0,o.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings"),getBrands:e(f.store).getTaxonomies({type:"product"})})),[]);return(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Datalayer Conversion Funnel","datalayer-for-ecommerce-free")}),a?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"premium-function",children:(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})})})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})};(0,t.__)("Insights ABOUT YOUR STORE from the last 30 days","datalayer-for-woocommerce"),(0,t.__)("Insights about Orders from the last 30 days","datalayer-for-woocommerce"),(0,t.__)("Insights about Products performance from the last 30 days","datalayer-for-woocommerce"),(0,t.__)("Insights about Payment performance from the last 30 days","datalayer-for-woocommerce"),(0,t.__)("Insights about Customers from the last 30 days","datalayer-for-woocommerce");const G=()=>{const{getFields:e,isLoading:a,getBrands:r}=(0,o.useSelect)((e=>({getFields:e("shop-datalayer-for-ecommerce-free").getState(),isLoading:e("shop-datalayer-for-ecommerce-free").hasFinishedResolution("getSettings"),getBrands:e(f.store).getTaxonomies({type:"product"})})),[]);return(0,s.jsxs)("div",{className:"my-gutenberg-form",children:[(0,s.jsx)(l.SectionHeader,{title:(0,t.__)("Datalayer Insights AI","datalayer-for-ecommerce-free")}),a?(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"premium-function",children:(0,s.jsx)("span",{children:(0,s.jsx)(_.ExternalLink,{href:"https://woocommerce.com/products/datalayer-for-woocommerce/",className:"link-premium-function",children:"Unlock with Premium"})})})}):(0,s.jsx)(_.Spinner,{style:{height:"calc(4px * 20)",width:"calc(4px * 20)"}})]})},U=()=>{const[e,a]=(0,r.useState)("item-1"),t=e=>{a(e)};return(0,o.useSelect)((e=>e("shop-datalayer-for-ecommerce-free").getSettings())),(0,r.useEffect)((()=>{const e=window.localStorage.getItem("activeComponent");e&&(t(e),window.localStorage.removeItem("activeComponent"))}),[]),(0,s.jsx)("div",{children:(0,s.jsxs)("div",{className:"wrap datalayer-for-ecommerce-free",children:[(0,s.jsxs)("div",{className:"content-sidebar-datalayer-for-ecommerce-free-wrap",children:[(0,s.jsx)("div",{className:"logoDatalayer",children:(0,s.jsx)("img",{src:I,width:"100",alt:"Datalayer for WooCommerce Icon"})}),(0,s.jsx)(M,{onNavItemChange:t,activeNavItem:e})]}),(0,s.jsxs)("div",{className:"content-form-datalayer-for-ecommerce-free-wrap",children:["item-1"===e&&(0,s.jsx)(c,{}),"item-2"===e&&(0,s.jsx)(g,{}),"item-3"===e&&(0,s.jsx)(i,{}),"item-4"===e&&(0,s.jsx)(p,{}),"item-5"===e&&(0,s.jsx)(u,{}),"item-6"===e&&(0,s.jsx)(y,{}),"item-7"===e&&(0,s.jsx)(h,{}),"item-8"===e&&(0,s.jsx)(x,{}),"item-9"===e&&(0,s.jsx)(v,{}),"item-10"===e&&(0,s.jsx)(b,{}),"item-11"===e&&(0,s.jsx)(j,{}),"item-12"===e&&(0,s.jsx)(S,{}),"item-13"===e&&(0,s.jsx)(C,{}),"item-14"===e&&(0,s.jsx)(R,{}),"item-15"===e&&(0,s.jsx)(L,{}),"item-16"===e&&(0,s.jsx)(G,{})]})]})})};(0,a.addFilter)("woocommerce_admin_pages_list","datalayer-for-ecommerce-free",(e=>(e.push({breadcrumbs:["",wcSettings.woocommerceTranslation,(0,t.__)("Datalayer for WooCommerce FREE","datalayer-for-ecommerce-free")],capability:"manage_options",container:U,path:"/datalayer-for-ecommerce-free",wpOpenMenu:"toplevel_page_woocommerce",title:(0,t.__)("Datalayer for WooCommerce FREE","datalayer-for-ecommerce-free"),navArgs:{id:"datalayer-for-ecommerce-free"}}),e)))})(); -
datalayer-for-ecommerce-free/trunk/datalayer-for-ecommerce-free.php
r3292883 r3476031 4 4 * Plugin URI: https://wordpress.org/plugins/datalayer-for-ecommerce-free/ 5 5 * Description: DataLayer is an object that makes available in real time the information that is executed by users while browsing the WooCommerce Store. 6 * Version: 4.8.06 * Version: 5.1.0 7 7 * Requires at least: 5.2.0 8 * Tested up to: 6. 8.18 * Tested up to: 6.9 9 9 * Requires PHP: 7.4 10 10 * Author: Array.codes … … 16 16 * * 17 17 * WC requires at least: 4.8.0 18 * WC tested up to: 9.8.518 * WC tested up to: 10.5.3 19 19 * 20 20 * License: GNU General Public License v3.0 -
datalayer-for-ecommerce-free/trunk/readme.txt
r3292879 r3476031 5 5 Requires at least: 5.2.0 6 6 Tested up to: 6.8.1 7 Stable tag: 4.8.07 Stable tag: 5.1.0 8 8 License: GNU General Public License v3.0 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 57 57 58 58 == Changelog == 59 = 5.1.0 - 2026-03-05 = 60 * Update: Packages dependencies 61 * Support: Support -> WP 6.9 WC 10.5.3 62 59 63 = 4.8.0 - 2025-05-14 = 60 64 * Support: Support -> WP 6.8.1 WC 9.8.5 -
datalayer-for-ecommerce-free/trunk/vendor/autoload.php
r2986436 r3476031 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
datalayer-for-ecommerce-free/trunk/vendor/composer/InstalledVersions.php
r2986436 r3476031 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
datalayer-for-ecommerce-free/trunk/vendor/composer/autoload_classmap.php
r2986436 r3476031 8 8 return array( 9 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 10 'DatalayerForWoocommerceFree\\Activate' => $baseDir . '/src/Activate.php', 11 'DatalayerForWoocommerceFree\\AdminPageReact' => $baseDir . '/src/AdminPageReact.php', 12 'DatalayerForWoocommerceFree\\Blocks\\FunctionsWoocommerceBlocks' => $baseDir . '/src/Blocks/FunctionsWoocommerceBlocks.php', 13 'DatalayerForWoocommerceFree\\DataLayer' => $baseDir . '/src/DataLayer.php', 14 'DatalayerForWoocommerceFree\\Deactivate' => $baseDir . '/src/Deactivate.php', 15 'DatalayerForWoocommerceFree\\Init' => $baseDir . '/src/Init.php', 16 'DatalayerForWoocommerceFree\\JsScriptManager\\JsQueueManager' => $baseDir . '/src/JsScriptManager/JsQueueManager.php', 17 'DatalayerForWoocommerceFree\\JsScriptManager\\JsScriptInjector' => $baseDir . '/src/JsScriptManager/JsScriptInjector.php', 18 'DatalayerForWoocommerceFree\\Notices' => $baseDir . '/src/Notices.php', 19 'DatalayerForWoocommerceFree\\RegisterTagManager' => $baseDir . '/src/RegisterTagManager.php', 20 'DatalayerForWoocommerceFree\\RenderCheckout' => $baseDir . '/src/RenderCheckout.php', 21 'DatalayerForWoocommerceFree\\RenderDataLayerPro' => $baseDir . '/src/RenderDataLayerPro.php', 22 'DatalayerForWoocommerceFree\\RenderProduct' => $baseDir . '/src/RenderProduct.php', 23 'DatalayerForWoocommerceFree\\User\\User' => $baseDir . '/src/User/User.php', 10 24 ); -
datalayer-for-ecommerce-free/trunk/vendor/composer/autoload_static.php
r2752271 r3476031 23 23 public static $classMap = array ( 24 24 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 25 'DatalayerForWoocommerceFree\\Activate' => __DIR__ . '/../..' . '/src/Activate.php', 26 'DatalayerForWoocommerceFree\\AdminPageReact' => __DIR__ . '/../..' . '/src/AdminPageReact.php', 27 'DatalayerForWoocommerceFree\\Blocks\\FunctionsWoocommerceBlocks' => __DIR__ . '/../..' . '/src/Blocks/FunctionsWoocommerceBlocks.php', 28 'DatalayerForWoocommerceFree\\DataLayer' => __DIR__ . '/../..' . '/src/DataLayer.php', 29 'DatalayerForWoocommerceFree\\Deactivate' => __DIR__ . '/../..' . '/src/Deactivate.php', 30 'DatalayerForWoocommerceFree\\Init' => __DIR__ . '/../..' . '/src/Init.php', 31 'DatalayerForWoocommerceFree\\JsScriptManager\\JsQueueManager' => __DIR__ . '/../..' . '/src/JsScriptManager/JsQueueManager.php', 32 'DatalayerForWoocommerceFree\\JsScriptManager\\JsScriptInjector' => __DIR__ . '/../..' . '/src/JsScriptManager/JsScriptInjector.php', 33 'DatalayerForWoocommerceFree\\Notices' => __DIR__ . '/../..' . '/src/Notices.php', 34 'DatalayerForWoocommerceFree\\RegisterTagManager' => __DIR__ . '/../..' . '/src/RegisterTagManager.php', 35 'DatalayerForWoocommerceFree\\RenderCheckout' => __DIR__ . '/../..' . '/src/RenderCheckout.php', 36 'DatalayerForWoocommerceFree\\RenderDataLayerPro' => __DIR__ . '/../..' . '/src/RenderDataLayerPro.php', 37 'DatalayerForWoocommerceFree\\RenderProduct' => __DIR__ . '/../..' . '/src/RenderProduct.php', 38 'DatalayerForWoocommerceFree\\User\\User' => __DIR__ . '/../..' . '/src/User/User.php', 25 39 ); 26 40 -
datalayer-for-ecommerce-free/trunk/vendor/composer/installed.php
r3235108 r3476031 4 4 'pretty_version' => 'dev-master', 5 5 'version' => 'dev-master', 6 'reference' => ' c367c46c279c1e1c5ccf0e69cd6f14f237fb4d51',6 'reference' => 'daf5b4f8b3e802df023dbfc0acf951a811a031c1', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-master', 15 15 'version' => 'dev-master', 16 'reference' => ' c367c46c279c1e1c5ccf0e69cd6f14f237fb4d51',16 'reference' => 'daf5b4f8b3e802df023dbfc0acf951a811a031c1', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../',
Note: See TracChangeset
for help on using the changeset viewer.