HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/variable-product-tour.js.tar
wp-content/plugins/woocommerce/assets/client/admin/wp-admin-scripts/variable-product-tour.js000064400000003527151551676700036617 0ustar00var/www/vhosts/uyarreklam.com.tr/httpdocs(()=>{"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.wp.element,o=window.wp.i18n,r=window.wc.components,n=window.wc.data,a=window.wc.tracks;function i(e,t){var o,r;return null===(o=e[t])||void 0===o||null===(r=o.meta)||void 0===r?void 0:r.name}const c=document.createElement("div");c.setAttribute("id","variable-product-tour-root"),(0,t.render)((0,t.createElement)((()=>{const[e,c]=(0,t.useState)(!1),{updateUserPreferences:d,variable_product_tour_shown:s}=(0,n.useUserPreferences)(),u={steps:[{referenceElements:{desktop:".attribute_tab"},focusElement:{desktop:".attribute_tab"},meta:{name:"attributes",heading:(0,o.__)("Start by adding attributes","woocommerce"),descriptions:{desktop:(0,o.__)("Add attributes like size and color for customers to choose from on the product page. We will use them to generate product variations.","woocommerce")},primaryButton:{text:(0,o.__)("Got it","woocommerce")}}}],options:{effects:{spotlight:{interactivity:{enabled:!0,rootElementSelector:"#wpwrap"}},arrowIndicator:!0,liveResize:{mutation:!0,resize:!0,rootElementSelector:"#wpwrap"}}},closeHandler:(e,t)=>{d({variable_product_tour_shown:"yes"}),c(!1),t===e.length-1?(0,a.recordEvent)("variable_product_tour_completed",{step:i(e,t)}):(0,a.recordEvent)("variable_product_tour_dismissed",{step:i(e,t)})}};return(0,t.useEffect)((()=>{const e=document.querySelector("#product-type");if("yes"!==s&&e)return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)};function t(){"variable"===e.value&&(c(!0),(0,a.recordEvent)("variable_product_tour_started",{step:i(u.steps,0)}))}})),e?(0,t.createElement)(r.TourKit,{config:u}):null}),null),document.body.appendChild(c)),(window.wc=window.wc||{}).variableProductTour=e})();woocommerce/assets/client/admin/product-editor/blocks/variation-items/variable-product-tour.js000064400000004217151560212360042733 0ustar00var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.VariableProductTour=void 0;const element_1=require("@wordpress/element"),i18n_1=require("@wordpress/i18n"),components_1=require("@woocommerce/components"),data_1=require("@woocommerce/data"),tracks_1=require("@woocommerce/tracks"),data_2=require("@wordpress/data"),core_data_1=require("@wordpress/core-data"),constants_1=require("../../constants"),VariableProductTour=()=>{const[e,o]=(0,element_1.useState)(!1),r=(0,core_data_1.useEntityId)("postType","product"),t=(0,element_1.useRef)(),a=(0,element_1.useMemo)((()=>({product_id:r,page:1,per_page:constants_1.DEFAULT_VARIATION_PER_PAGE_OPTION,order:"asc",orderby:"menu_order"})),[r]),{totalCount:n}=(0,data_2.useSelect)((e=>{const{getProductVariationsTotalCount:o}=e(data_1.EXPERIMENTAL_PRODUCT_VARIATIONS_STORE_NAME);return{totalCount:o(a)}}),[r]),{updateUserPreferences:c,variable_product_block_tour_shown:s}=(0,data_1.useUserPreferences)(),i={placement:"top",steps:[{referenceElements:{desktop:".wp-block-woocommerce-product-variation-items-field"},focusElement:{desktop:".wp-block-woocommerce-product-variation-items-field"},meta:{name:"product-variations-2",heading:(0,i18n_1.__)("⚡️ This product now has variations","woocommerce"),descriptions:{desktop:(0,i18n_1.__)("From now on, you’ll manage pricing, shipping, and inventory for each variation individually—just like any other product in your store.","woocommerce")},primaryButton:{text:(0,i18n_1.__)("Got it","woocommerce")}}}],options:{classNames:["variation-items-product-tour"],effects:{arrowIndicator:!0,spotlight:{interactivity:{enabled:!0}}},callbacks:{onStepViewOnce:()=>{(0,tracks_1.recordEvent)("variable_product_block_tour_shown",{variable_count:n})}},popperModifiers:[{name:"offset",options:{offset:[0,32]}}]},closeHandler:()=>{c({variable_product_block_tour_shown:"yes"}),o(!1),(0,tracks_1.recordEvent)("variable_product_block_tour_dismissed")}};return(0,element_1.useEffect)((()=>{const r=t.current!==n&&n>0&&0===t.current;t.current=n,r&&!e&&o(!0)}),[n]),"yes"!==s&&e?(0,element_1.createElement)(components_1.TourKit,{config:i}):null};exports.VariableProductTour=VariableProductTour;