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/variation-options.tar
block.json000064400000001336151555520660006546 0ustar00{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 2,
    "name": "woocommerce/product-variations-options-field",
    "title": "Product variations options",
    "category": "woocommerce",
    "description": "The product variations options.",
    "keywords": ["products", "variations"],
    "textdomain": "default",
    "attributes": {
        "description": {
            "type": "string",
            "__experimentalRole": "content"
        }
    },
    "supports": {
        "align": false,
        "html": false,
        "multiple": false,
        "reusable": false,
        "inserter": false,
        "lock": false,
        "__experimentalToolbar": false
    },
    "editorStyle": "file:./editor.css"
}
edit.js000064400000005707151555520660006052 0ustar00"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const i18n_1=require("@wordpress/i18n"),block_editor_1=require("@wordpress/block-editor"),element_1=require("@wordpress/element"),data_1=require("@woocommerce/data"),components_1=require("@woocommerce/components"),core_data_1=require("@wordpress/core-data"),use_product_attributes_1=require("../../hooks/use-product-attributes"),attribute_control_1=require("../../components/attribute-control"),use_product_variations_helper_1=require("../../hooks/use-product-variations-helper");function Edit(){const e=(0,block_editor_1.useBlockProps)(),{generateProductVariations:t}=(0,use_product_variations_helper_1.useProductVariationsHelper)(),{updateUserPreferences:o,product_block_variable_options_notice_dismissed:r}=(0,data_1.useUserPreferences)(),[i,a]=(0,core_data_1.useEntityProp)("postType","product","attributes"),[n,s]=(0,core_data_1.useEntityProp)("postType","product","default_attributes"),{attributes:u,handleChange:c}=(0,use_product_attributes_1.useProductAttributes)({allAttributes:i,isVariationAttributes:!0,productId:(0,core_data_1.useEntityId)("postType","product"),onChange(e,o){a(e),s(o),t(e,o)}}),l=u.filter((e=>0===e.id)).map((e=>e.name));let d="";return l.length>0&&"yes"!==r&&(d=(0,element_1.createInterpolateElement)((0,i18n_1.__)("Buyers can’t search or filter by <attributeNames /> to find the variations. Consider adding them again as <globalAttributeLink>global attributes</globalAttributeLink> to make them easier to discover.","woocommerce"),{attributeNames:(0,element_1.createElement)("span",null,2===l.length?l.join((0,i18n_1.__)(" and ","woocommerce")):l.join(", ")),globalAttributeLink:(0,element_1.createElement)(components_1.Link,{href:"https://woocommerce.com/document/variable-product/#add-attributes-to-use-for-variations",type:"external",target:"_blank"})})),(0,element_1.createElement)("div",{...e},(0,element_1.createElement)(attribute_control_1.AttributeControl,{value:(0,element_1.useMemo)((function(){return u.map((e=>({...e,isDefault:n.some((t=>t.id===e.id||t.name===e.name))})))}),[u,n]),onChange:c,createNewAttributesAsGlobal:!0,useRemoveConfirmationModal:!0,onNoticeDismiss:()=>o({product_block_variable_options_notice_dismissed:"yes"}),disabledAttributeIds:i.filter((e=>!e.variation)).map((e=>e.id)),termsAutoSelection:"all",uiStrings:{notice:d,globalAttributeHelperMessage:"",customAttributeHelperMessage:"",newAttributeModalNotice:"",newAttributeModalTitle:(0,i18n_1.__)("Add variation options","woocommerce"),newAttributeModalDescription:(0,i18n_1.__)("Select from existing attributes or create new ones to add new variations for your product. You can change the order later.","woocommerce"),attributeRemoveLabel:(0,i18n_1.__)("Remove variation option","woocommerce"),attributeRemoveConfirmationModalMessage:(0,i18n_1.__)("If you continue, some variations of this product will be deleted and customers will no longer be able to purchase them.","woocommerce")}}))}exports.Edit=Edit;index.js000064400000001136151555520660006224 0ustar00"use strict";var __importDefault=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.init=exports.settings=exports.name=exports.metadata=void 0;const init_block_1=require("../../utils/init-block"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,init_block_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;types.js000064400000000104151555520660006253 0ustar00"use strict";Object.defineProperty(exports,"__esModule",{value:!0});