PATH:
home
/
lab2454c
/
gemition.com
/
wp-content
/
plugins
/
woocommerce
/
assets
/
client
/
admin
/
wp-admin-scripts
(()=>{"use strict";var e={};(e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);const t=window.wc.tracks;function c(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;o>6||setTimeout((()=>{document.querySelector(e)?t():c(e,t,++o)}),500)}productScreen&&"list"===productScreen.name&&(()=>{const e=document.querySelectorAll(".row-actions span"),c=document.querySelector("#bulk-action-selector-top"),o=document.querySelector("#doaction"),r=document.querySelector("#bulk-edit .cancel"),n=document.querySelector("#bulk_edit"),d=document.querySelectorAll("#the-list .featured a"),l=document.querySelector("#post-query-submit"),u=document.querySelector("#product_cat"),i=document.querySelector("#dropdown_product_type"),a=document.querySelector("#search-submit"),s=document.querySelector("#post-search-input"),v=document.querySelectorAll(".wp-list-table.posts thead .sortable a, .wp-list-table.posts thead .sorted a"),_=document.querySelector('[name="stock_status"]'),m=e=>{const t=document.querySelector(e);return!!t&&""!==t.value&&"-1"!==t.value};null==l||l.addEventListener("click",(function(){(0,t.recordEvent)("products_list_filter_click",{search_string_length:null==s?void 0:s.value.length,filter_category:""!==u.value,filter_product_type:i.value,filter_stock_status:_.value})})),null==o||o.addEventListener("click",(function(){const e=document.querySelectorAll('[name="post[]"]:checked').length;(0,t.recordEvent)("products_list_bulk_actions_click",{selected_action:c.value,product_number:e})})),null==n||n.addEventListener("click",(function(){var e,c;(0,t.recordEvent)("products_list_bulk_edit_update",{product_number:null===(e=document.querySelector("#bulk-titles"))||void 0===e?void 0:e.children.length,product_categories:(null===(c=document.querySelectorAll('[name="tax_input[product_cat][]"]:checked'))||void 0===c?void 0:c.length)>0,comments:m('[name="comment_status"]'),status:m('[name="_status"]'),product_tags:m('[name="tax_input[product_tag]"]'),price:m('[name="change_regular_price"]'),sale:m('[name="change_sale_price"]'),tax_status:m('[name="_tax_status"]'),tax_class:m('[name="_tax_class"]'),weight:m('[name="change_weight"]'),dimensions:m('[name="change_dimensions"]'),shipping_class:m('[name="_shipping_class"]'),visibility:m('[name="_visibility"]'),featured:m('[name="_featured"]'),stock_status:m('[name="_stock_status"]'),manage_stock:m('[name="_manage_stock"]'),stock_quantity:m('[name="change_stock"]'),backorders:m('[name="_backorders"]'),sold_individually:m('[name="_sold_individually"]')})})),null==r||r.addEventListener("click",(function(){(0,t.recordEvent)("products_list_bulk_edit_cancel")})),e.forEach((e=>{e.addEventListener("click",(function(e){var c,o;const r=null===(c=e.target)||void 0===c||null===(o=c.parentElement)||void 0===o?void 0:o.classList[0],n={edit:"edit",inline:"quick_edit",trash:"trash",view:"preview",duplicate:"duplicate"};r&&n[r]&&(0,t.recordEvent)("products_list_product_action_click",{selected_action:n[r]})}))})),d.forEach((e=>{e.addEventListener("click",(function(e){const c=e.target.classList.contains("not-featured");(0,t.recordEvent)("products_list_featured_click",{featured:c?"yes":"no"})}))})),null==a||a.addEventListener("click",(function(){(0,t.recordEvent)("products_search",{search_string_length:s.value.length,filter_category:""!==u.value,filter_product_type:i.value,filter_stock_status:_.value})})),v.forEach((e=>{e.addEventListener("click",(function(e){const c=e.target.closest("th");if(!c)return;const o=c.classList.contains("asc");(0,t.recordEvent)("products_list_column_header_click",{field_slug:c.id,order:o?"desc":"asc"})}))}))})();const o=()=>{var e,t,c,o,r;return{product_id:null===(e=document.querySelector("#post_ID"))||void 0===e?void 0:e.value,product_type:null===(t=document.querySelector("#product-type"))||void 0===t?void 0:t.value,is_downloadable:null===(c=document.querySelector("#_downloadable"))||void 0===c?void 0:c.value,is_virtual:null===(o=document.querySelector("#_virtual"))||void 0===o?void 0:o.value,manage_stock:null===(r=document.querySelector("#_manage_stock"))||void 0===r?void 0:r.value}},r=function(){var e,t,c,o,r;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const d=null===(e=document.querySelector(`#${n}mm`))||void 0===e?void 0:e.value,l=null===(t=document.querySelector(`#${n}jj`))||void 0===t?void 0:t.value,u=null===(c=document.querySelector(`#${n}aa`))||void 0===c?void 0:c.value,i=null===(o=document.querySelector(`#${n}hh`))||void 0===o?void 0:o.value,a=null===(r=document.querySelector(`#${n}mn`))||void 0===r?void 0:r.value;return`${d}-${l}-${u} ${i}:${a}`},n=()=>{var e,t,c,o;return{status:null===(e=document.querySelector("#post_status"))||void 0===e?void 0:e.value,visibility:null===(t=document.querySelector('input[name="visibility"]:checked'))||void 0===t?void 0:t.value,date:r()!==r("hidden_")?"yes":"no",catalog_visibility:null===(c=document.querySelector('input[name="_visibility"]:checked'))||void 0===c?void 0:c.value,featured:null===(o=document.querySelector("#_featured"))||void 0===o?void 0:o.checked}},d=(e,t)=>Object.fromEntries(Object.entries(e).map((e=>{let[c,o]=e;return[`${t}${c}`,o]}))),l=()=>{var e,r,l,u,i,a,s,v,_;const m=n();function p(e){var c;(0,t.recordEvent)("product_tags_delete",{page:"product",tag_list_size:(null===(c=document.querySelector(".tagchecklist"))||void 0===c?void 0:c.children.length)||0})}function g(){document.querySelectorAll("#product_tag .ntdelbutton").forEach((e=>{e.removeEventListener("click",p),e.addEventListener("click",p)}))}function y(e){var c,o;(0,t.recordEvent)("product_tags_add",{page:"product",tag_string_length:null===(c=e.target.textContent)||void 0===c?void 0:c.length,tag_list_size:(null===(o=document.querySelector(".tagchecklist"))||void 0===o?void 0:o.children.length)||0,most_used:!0}),g()}function h(){document.querySelectorAll("#tagcloud-product_tag .tag-cloud-link").forEach((e=>{e.removeEventListener("click",y),e.addEventListener("click",y)}))}function k(){(0,t.recordEvent)("product_attributes_add_term",{page:"product"})}function E(){document.querySelectorAll(".woocommerce_attribute .add_new_attribute").forEach((e=>{e.removeEventListener("click",k),e.addEventListener("click",k)}))}null===(e=document.querySelector("#post-preview"))||void 0===e||e.addEventListener("click",(()=>{(0,t.recordEvent)("product_preview_changes")})),null===(r=document.querySelector(".submitduplicate"))||void 0===r||r.addEventListener("click",(()=>{(0,t.recordEvent)("product_copy",o())})),null===(l=document.querySelector(".submitdelete"))||void 0===l||l.addEventListener("click",(()=>{(0,t.recordEvent)("product_delete",o())})),document.querySelectorAll(".edit-post-status, .edit-visibility, .edit-timestamp, .edit-catalog-visibility").forEach((e=>{e.addEventListener("click",(()=>{(0,t.recordEvent)("product_publish_widget_edit",{...n(),...o()})}))})),document.querySelectorAll(".save-post-status, .save-post-visibility, .save-timestamp, .save-post-visibility").forEach((e=>{e.addEventListener("click",(()=>{(0,t.recordEvent)("product_publish_widget_save",{...d(n(),"new_"),...d(m,"current_"),...o()})}))})),document.querySelectorAll(".handle-order-lower, .handle-order-higher").forEach((e=>{e.addEventListener("click",(e=>{const c=e.target.closest(".postbox");c&&(0,t.recordEvent)("product_widget_order_change",{widget:c.id})}))})),null===(u=document.querySelector("#show-settings-link"))||void 0===u||u.addEventListener("click",(()=>{(0,t.recordEvent)("product_screen_options_open")})),document.querySelectorAll("#adv-settings .metabox-prefs input[type=checkbox]").forEach((e=>{e.addEventListener("change",(()=>{(0,t.recordEvent)("product_screen_elements",{selected_element:e.value,checkbox:e.checked})}))})),document.querySelectorAll('input[name="screen_columns"]').forEach((e=>{e.addEventListener("change",(()=>{(0,t.recordEvent)("product_layout",{selected_layout:e.value})}))})),null===(i=document.querySelector("#editor-expand-toggle"))||void 0===i||i.addEventListener("change",(e=>{(0,t.recordEvent)("product_additional_settings",{checkbox:e.target.checked})})),c("#product_tag .tagchecklist",g),null===(a=document.querySelector(".tagadd"))||void 0===a||a.addEventListener("click",(e=>{const c=document.querySelector("#new-tag-product_tag");var o;c&&c.value&&c.value.length>0&&((0,t.recordEvent)("product_tags_add",{page:"product",tag_string_length:c.value.length,tag_list_size:((null===(o=document.querySelector(".tagchecklist"))||void 0===o?void 0:o.children.length)||0)+1,most_used:!1}),setTimeout((()=>{g()}),500))})),null===(s=document.querySelector(".tagcloud-link"))||void 0===s||s.addEventListener("click",(()=>{c("#tagcloud-product_tag",h)})),E(),null===(v=document.querySelector(".add_attribute"))||void 0===v||v.addEventListener("click",(()=>{setTimeout((()=>{E()}),1e3)}));const S=document.querySelectorAll(".woocommerce_attribute").length;null===(_=document.querySelector(".save_attributes"))||void 0===_||_.addEventListener("click",(()=>{document.querySelectorAll(".woocommerce_attribute").length>S&&(0,t.recordEvent)("product_attributes_add",{page:"product",enable_archive:"",default_sort_order:""})}))};productScreen&&"edit"===productScreen.name&&((0,t.recordEvent)("product_edit_view"),l()),productScreen&&"new"===productScreen.name&&((0,t.recordEvent)("product_add_view"),l()),(window.wc=window.wc||{}).productTracking=e})();
[-] onboarding-tax-notice.js
[edit]
[-] product-tour.js
[edit]
[-] category-tracking.js
[edit]
[-] tags-tracking.asset.php
[edit]
[-] marketing-coupons.js
[edit]
[-] add-term-tracking.asset.php
[edit]
[-] print-shipping-label-banner.asset.php
[edit]
[+]
..
[-] print-shipping-label-banner.js
[edit]
[-] marketing-coupons.asset.php
[edit]
[-] product-tour.asset.php
[edit]
[-] category-tracking.asset.php
[edit]
[-] tags-tracking.js
[edit]
[-] onboarding-product-notice.asset.php
[edit]
[-] payment-method-promotions.js
[edit]
[-] marketing-coupons.js.LICENSE.txt
[edit]
[-] onboarding-load-sample-products-notice.js
[edit]
[-] attributes-tracking.asset.php
[edit]
[-] beta-features-tracking-modal.js
[edit]
[-] navigation-opt-out.asset.php
[edit]
[-] attributes-tracking.js
[edit]
[-] onboarding-product-notice.js
[edit]
[-] onboarding-product-import-notice.js
[edit]
[-] add-term-tracking.js
[edit]
[-] onboarding-load-sample-products-notice.asset.php
[edit]
[-] product-tracking.asset.php
[edit]
[-] payment-method-promotions.asset.php
[edit]
[-] payment-method-promotions.js.LICENSE.txt
[edit]
[-] onboarding-product-import-notice.asset.php
[edit]
[-] onboarding-homepage-notice.asset.php
[edit]
[-] onboarding-homepage-notice.js
[edit]
[-] onboarding-tax-notice.asset.php
[edit]
[-] product-tracking.js
[edit]
[-] beta-features-tracking-modal.asset.php
[edit]
[-] navigation-opt-out.js
[edit]