Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/plugins/elementor/assets/js/packages/editor-style/editor-style.min.js
Назад
!function(){"use strict";var e={};(function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})})(e);var t=window.elementorV2.editorV1Adapters,n=window.elementorV2.schema,r=window.elementorV2.utils,o=window.elementorV2.editorResponsive;function s(){const e=window;return e.elementor?.$preview?.[0]}function i(e,t){const r=n.z.object({$$type:n.z.literal(e),value:t});function o(e){return r.safeParse(e).success}return{isValid:o,create:function(t,n){const r="function"==typeof t?t:()=>t;if(!n)return{$$type:e,value:r()};if(!o(n))throw new Error(`Cannot create prop based on invalid value: ${JSON.stringify(n)}`);return{$$type:e,value:r(n.value)}},schema:r}}var{isValid:a}=i("size",n.z.object({unit:n.z.enum(["px","em","rem","%","vw"]),size:n.z.number()})),{isValid:u}=i("array",n.z.object({array:n.z.array(n.z.any()),delimiter:n.z.string().optional()})),{isValid:c}=i("linked-dimensions",n.z.object({isLinked:n.z.boolean(),top:n.z.any(),right:n.z.any(),bottom:n.z.any(),left:n.z.any()})),l={size:e=>{if(a(e))return e.value.size+e.value.unit},array:(e,{transform:t})=>{if(u(e))return e.value.array.map((e=>t(e))).filter((e=>void 0!==e)).join(e.value.delimiter??" ")},"linked-dimensions":(e,{transform:t})=>{if(c(e)){const{top:n,right:r,bottom:o,left:s}=e.value;return`${t(n)||"unset"} ${t(r)||"unset"} ${t(o)||"unset"} ${t(s)||"unset"}`}}},d=n.z.object({$$type:n.z.string(),value:n.z.any()}),m="unset";function f(e,t){if(!function(e){return d.safeParse(e).success}(e))return e;const n=t[e.$$type];if(!n)return console.error(`Transformer not found for prop type '${e.$$type}'`),m;const r=n(e,{transform:e=>f(e,t)});return void 0===r?(console.error(`Transformer '${e.$$type}' received unsupported value`),m):f(r,t)}function p({transformers:e,styles:t,breakpoints:n}){const o=[];try{t.forEach((t=>{const r=function(e,t,n){const r=function(e){return`${{class:"."}[e.type]}${e.id}`}(e);if(!r)return"";const o=[];return Object.values(e.variants).forEach((e=>{const s=function(e,t,n,r){const o=function(e,t){return Object.entries(e).reduce(((e,[n,r])=>{const o=n.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase(),s=f(r,t);return e.push(o+":"+s),e}),[]).join(";")}(t.props,n);if(!o)return"";let s=`${`${e}${t.meta.state?`:${t.meta.state}`:""}`}{${o}}`;return t.meta.breakpoint&&(s=function(e,t,n){const r=function(e){return e.type?`${e.type}:${e.width}px`:null}(e[t]);return r?`@media(${r}){${n}}`:n}(r,t.meta.breakpoint,s)),s}(r,e,t,n);s&&o.push(s)})),o.join("")}(t,e,n);o.push(`<style data-style-id="${t.id}">${r}</style>`)}))}catch(e){console.error(`Cannot render style': ${(0,r.ensureError)(e).message}`)}return o.join("")}function y(e){const t=function(){const e=[],t=n=>{n&&n.forEach((n=>{e.push(n),n.elements&&t(n.elements)}))},n=window,r=n.elementor?.documents?.getCurrent()?.container.model?.get("elements")?.toJSON?.();return t(r||(n.elementor?.config?.document?.elements??[])),e}().reduce(((e,t)=>t.styles?{...e,...t.styles}:e),{}),n=(0,o.getBreakpoints)();e.innerHTML=p({transformers:l,styles:Object.values(t),breakpoints:n.reduce(((e,t)=>(e[t.id]=t,e)),{})}),function(e){try{e.forEach((e=>{Object.values(e.variants).forEach((e=>{const{fontFamily:t}=e.props;t&&"string"==typeof t&&((e,t="preview")=>{const n=window;n.elementor?.helpers?.enqueueFont(e,t)})(t)}))}))}catch(e){console.error(`Cannot enqueue font': ${(0,r.ensureError)(e).message}`)}}(Object.values(t))}(0,t.__privateListenTo)((0,t.v1ReadyEvent)(),(()=>{const e=function(){const e=s(),t=document.createElement("div");t.style.display="none";const n=()=>{e?.contentDocument?.body&&e?.contentDocument?.body.prepend(t)};return n(),e?.addEventListener("load",(()=>{n()})),t}(),n=s();n?.contains(e)||n?.prepend(e),y(e),(0,t.__privateListenTo)([(0,t.commandEndEvent)("editor/documents/switch"),(0,t.commandEndEvent)("document/atomic-widgets/styles")],(()=>y(e)))})),(window.elementorV2=window.elementorV2||{}).editorStyle=e}();
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка