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/summary.tar
block.json000064400000002437151556663060006554 0ustar00{
    "$schema": "https://schemas.wp.org/trunk/block.json",
    "apiVersion": 2,
    "name": "woocommerce/product-summary-field",
    "title": "Product summary",
    "category": "widgets",
    "description": "The product summary.",
    "keywords": ["products", "summary", "excerpt"],
    "textdomain": "default",
    "attributes": {
        "align": {
            "type": "string"
        },
        "allowedFormats": {
            "type": "array",
            "default": [
                "core/bold",
                "core/code",
                "core/italic",
                "core/link",
                "core/strikethrough",
                "core/underline",
                "core/text-color",
                "core/subscript",
                "core/superscript",
                "core/unknown"
            ]
        },
        "direction": {
            "type": "string",
            "enum": ["ltr", "rtl"]
        },
        "label": {
            "type": "string"
        },
        "content": {
            "type": "string",
            "__experimentalRole": "content"
        }
    },
    "supports": {
        "align": false,
        "html": false,
        "multiple": false,
        "reusable": false,
        "inserter": false,
        "lock": false
    },
    "editorStyle": "file:./editor.css"
}
constants.js000064400000001115151556663060007131 0ustar00"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ALIGNMENT_CONTROLS=void 0;const i18n_1=require("@wordpress/i18n"),icons_1=require("@wordpress/icons");exports.ALIGNMENT_CONTROLS=[{icon:icons_1.alignLeft,title:(0,i18n_1.__)("Align text left","woocommerce"),align:"left"},{icon:icons_1.alignCenter,title:(0,i18n_1.__)("Align text center","woocommerce"),align:"center"},{icon:icons_1.alignRight,title:(0,i18n_1.__)("Align text right","woocommerce"),align:"right"},{icon:icons_1.alignJustify,title:(0,i18n_1.__)("Align text justify","woocommerce"),align:"justify"}];edit.js000064400000004211151556663060006042 0ustar00"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Edit=void 0;const i18n_1=require("@wordpress/i18n"),element_1=require("@wordpress/element"),components_1=require("@wordpress/components"),data_1=require("@wordpress/data"),core_data_1=require("@wordpress/core-data"),compose_1=require("@wordpress/compose"),classnames_1=__importDefault(require("classnames")),block_editor_1=require("@wordpress/block-editor"),paragraph_rtl_control_1=require("./paragraph-rtl-control"),constants_1=require("./constants");function Edit({attributes:e,setAttributes:t}){const{align:o,allowedFormats:r,direction:n,label:a}=e,l=(0,block_editor_1.useBlockProps)({style:{direction:n}}),s=(0,compose_1.useInstanceId)(Edit,"wp-block-woocommerce-product-summary-field__content"),[c,i]=(0,core_data_1.useEntityProp)("postType","product","short_description"),{clearSelectedBlock:_}=(0,data_1.useDispatch)(block_editor_1.store);return(0,element_1.createElement)("div",{className:"wp-block wp-block-woocommerce-product-summary-field-wrapper"},(0,element_1.createElement)(block_editor_1.BlockControls,{group:"block"},(0,element_1.createElement)(block_editor_1.AlignmentControl,{alignmentControls:constants_1.ALIGNMENT_CONTROLS,value:o,onChange:function(e){t({align:e})}}),(0,element_1.createElement)(paragraph_rtl_control_1.ParagraphRTLControl,{direction:n,onChange:function(e){t({direction:e})}})),(0,element_1.createElement)(components_1.BaseControl,{id:s.toString(),label:a||(0,i18n_1.__)("Summary","woocommerce"),help:(0,i18n_1.__)("Summarize this product in 1-2 short sentences. We'll show it at the top of the page.","woocommerce")},(0,element_1.createElement)("div",{...l},(0,element_1.createElement)(block_editor_1.RichText,{id:s.toString(),identifier:"content",tagName:"p",value:c,onChange:i,"data-empty":Boolean(c),className:(0,classnames_1.default)("components-summary-control",{[`has-text-align-${o}`]:o}),dir:n,allowedFormats:r,onBlur:function(e){var t;(null===(t=e.relatedTarget)||void 0===t?void 0:t.closest(".block-editor-block-contextual-toolbar"))||_()}}))))}exports.Edit=Edit;index.js000064400000001111151556663060006220 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.metadata=exports.name=void 0;const utils_1=require("../../utils"),block_json_1=__importDefault(require("./block.json")),edit_1=require("./edit"),{name,...metadata}=block_json_1.default;function init(){return(0,utils_1.initBlock)({name,metadata,settings:exports.settings})}exports.name=name,exports.metadata=metadata,exports.settings={example:{},edit:edit_1.Edit},exports.init=init;paragraph-rtl-control/index.js000064400000001201151556663060012442 0ustar00"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,o)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),__exportStar=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||__createBinding(t,e,r)};Object.defineProperty(exports,"__esModule",{value:!0}),__exportStar(require("./paragraph-rtl-control"),exports),__exportStar(require("./types"),exports);paragraph-rtl-control/paragraph-rtl-control.js000064400000001252151556663060015563 0ustar00"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ParagraphRTLControl=void 0;const element_1=require("@wordpress/element"),components_1=require("@wordpress/components"),i18n_1=require("@wordpress/i18n"),icons_1=require("@wordpress/icons");function ParagraphRTLControl({direction:e,onChange:r}){return(0,element_1.createElement)(element_1.Fragment,null,(0,i18n_1.isRTL)()&&(0,element_1.createElement)(components_1.ToolbarButton,{icon:icons_1.formatLtr,title:(0,i18n_1._x)("Left to right","editor button","woocommerce"),isActive:"ltr"===e,onClick:function(){"function"==typeof r&&r("ltr"===e?void 0:"ltr")}}))}exports.ParagraphRTLControl=ParagraphRTLControl;paragraph-rtl-control/types.js000064400000000104151556663060012500 0ustar00"use strict";Object.defineProperty(exports,"__esModule",{value:!0});types.js000064400000000104151556663060006256 0ustar00"use strict";Object.defineProperty(exports,"__esModule",{value:!0});