Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/wp-content/plugins/elementor/assets/js/packages/editor-style/editor-style.min.js
Arrière
!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()})),c={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??" ")}},l=n.z.object({$$type:n.z.string(),value:n.z.any()}),d="unset";function f(e,t){if(!function(e){return l.safeParse(e).success}(e))return e;const n=t[e.$$type];if(!n)return console.error(`Transformer not found for prop type '${e.$$type}'`),d;const r=n(e,{transform:e=>f(e,t)});return void 0===r?(console.error(`Transformer '${e.$$type}' received unsupported value`),d):f(r,t)}function m({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("")}(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=()=>{const t=function(){const e=[],t=n=>{n&&n.forEach((n=>{e.push(n),n.elements&&t(n.elements)}))},n=window;return t(n.elementor?.config?.document?.elements),e}().reduce(((e,t)=>t.styles?{...e,...t.styles}:e),{}),n=(0,o.getBreakpoints)();e.innerHTML=m({transformers:c,styles:Object.values(t),breakpoints:n.reduce(((e,t)=>(e[t.id]=t,e)),{})})},r=s();r?.contains(e)||r?.prepend(e),n(),(0,t.__privateListenTo)([(0,t.commandEndEvent)("editor/documents/switch"),(0,t.commandEndEvent)("document/atomic-widgets/styles")],n)})),(window.elementorV2=window.elementorV2||{}).editorStyle=e}();
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.21 |
proxy
|
phpinfo
|
Réglages