| 1 |
!function(){"use strict";var r={d:function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},r:function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})}},e={};r.r(e),r.d(e,{CLASSES_PROP_KEY:function(){return c},backgroundColorOverlayPropTypeUtil:function(){return U},backgroundGradientOverlayPropTypeUtil:function(){return k},backgroundImageOverlayPropTypeUtil:function(){return h},backgroundImagePositionOffsetPropTypeUtil:function(){return $},backgroundImageSizeScalePropTypeUtil:function(){return E},backgroundOverlayPropTypeUtil:function(){return S},backgroundPropTypeUtil:function(){return j},booleanPropTypeUtil:function(){return A},borderRadiusPropTypeUtil:function(){return l},borderWidthPropTypeUtil:function(){return u},boxShadowPropTypeUtil:function(){return a},classesPropTypeUtil:function(){return s},colorPropTypeUtil:function(){return p},colorStopPropTypeUtil:function(){return V},createPropUtils:function(){return n},dimensionsPropTypeUtil:function(){return y},filterEmptyValues:function(){return M},gradientColorStopPropTypeUtil:function(){return x},imageAttachmentIdPropType:function(){return d},imagePropTypeUtil:function(){return b},imageSrcPropTypeUtil:function(){return f},isEmpty:function(){return R},isTransformable:function(){return I},layoutDirectionPropTypeUtil:function(){return T},linkPropTypeUtil:function(){return v},mergeProps:function(){return C},numberPropTypeUtil:function(){return z},shadowPropTypeUtil:function(){return i},sizePropTypeUtil:function(){return m},stringPropTypeUtil:function(){return g},strokePropTypeUtil:function(){return P},urlPropTypeUtil:function(){return O}});var t=window.elementorV2.schema;function n(r,e){const n=t.z.strictObject({$$type:t.z.literal(r),value:e,disabled:t.z.boolean().optional()});function o(r){return n.safeParse(r).success}return{extract:function(r){return o(r)?r.value:null},isValid:o,create:function(e,t){const n="function"==typeof e?e:()=>e,{base:i,disabled:a}=t||{};if(!i)return{$$type:r,value:n(),...a&&{disabled:a}};if(!o(i))throw new Error(`Cannot create prop based on invalid value: ${JSON.stringify(i)}`);return{$$type:r,value:n(i.value),...a&&{disabled:a}}},schema:n,key:r}}var o=t.z.any().nullable(),i=n("shadow",t.z.strictObject({position:o,hOffset:o,vOffset:o,blur:o,spread:o,color:o})),a=n("box-shadow",t.z.array(i.schema)),l=n("border-radius",t.z.strictObject({"start-start":o,"start-end":o,"end-start":o,"end-end":o})),u=n("border-width",t.z.strictObject({"block-start":o,"block-end":o,"inline-start":o,"inline-end":o})),c="classes",s=n(c,t.z.array(t.z.string().regex(/^[a-z][a-z-_0-9]*$/i))),p=n("color",t.z.string()),b=n("image",t.z.strictObject({src:o,size:o})),d=n("image-attachment-id",t.z.number()),f=n("image-src",t.z.strictObject({id:o,url:t.z.null()}).or(t.z.strictObject({id:t.z.null(),url:o}))),y=n("dimensions",t.z.strictObject({"block-start":o,"block-end":o,"inline-start":o,"inline-end":o})),z=n("number",t.z.number().nullable()),m=n("size",t.z.strictObject({unit:t.z.enum(["px","em","rem","%","vw","vh"]),size:t.z.number()}).or(t.z.strictObject({unit:t.z.literal("auto"),size:t.z.literal("")})).or(t.z.strictObject({unit:t.z.literal("custom"),size:t.z.string()}))),g=n("string",t.z.string().nullable()),P=n("stroke",t.z.strictObject({color:o,width:o})),O=n("url",t.z.string().nullable()),T=n("layout-direction",t.z.object({row:t.z.any(),column:t.z.any()})),v=n("link",t.z.strictObject({destination:o,label:o,isTargetBlank:o})),j=n("background",t.z.strictObject({color:o,"background-overlay":o})),U=n("background-color-overlay",o),k=n("background-gradient-overlay",o),h=n("background-image-overlay",o),w=U.schema.or(k.schema).or(h.schema),S=n("background-overlay",t.z.array(w)),$=n("background-image-position-offset",o),E=n("background-image-size-scale",o),A=n("boolean",t.z.boolean().nullable()),V=n("color-stop",t.z.strictObject({color:o,offset:o})),x=n("gradient-color-stop",t.z.array(V.schema));function C(r,e){const t=structuredClone(r);return Object.entries(e).forEach((([r,e])=>{null==e?delete t[r]:t[r]=e})),t}var _=t.z.object({$$type:t.z.string(),value:t.z.any(),disabled:t.z.boolean().optional()}),I=r=>_.safeParse(r).success,M=r=>R(r)?null:Array.isArray(r)?r.map(M).filter((r=>!R(r))):"object"==typeof r?Object.fromEntries(Object.entries(r).map((([r,e])=>[r,M(e)])).filter((([,r])=>!R(r)))):r,R=r=>r&&I(r)?R(r.value):B(r)||D(r)||G(r),B=r=>null==r||""===r,D=r=>Array.isArray(r)&&r.every(R),G=r=>"object"==typeof r&&D(Object.values(r));(window.elementorV2=window.elementorV2||{}).editorProps=e}(),window.elementorV2.editorProps?.init?.(); |