@grapesjs/studio-sdk-plugins 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvasScreenshot/index.cjs.d.ts +3 -0
- package/dist/canvasScreenshot/index.cjs.js +1 -0
- package/dist/canvasScreenshot/index.d.ts +3 -0
- package/dist/canvasScreenshot/index.es.d.ts +3 -0
- package/dist/canvasScreenshot/index.es.js +212 -0
- package/dist/canvasScreenshot/index.umd.js +1 -0
- package/dist/canvasScreenshot/shared.d.ts +3 -0
- package/dist/canvasScreenshot/types.d.ts +61 -0
- package/dist/canvasScreenshot/typesSchema.d.ts +17 -0
- package/dist/canvasScreenshot/utils.d.ts +3 -0
- package/dist/index.cjs.d.ts +1 -0
- package/dist/index.cjs.js +48 -48
- package/dist/index.d.ts +1 -0
- package/dist/index.es.d.ts +1 -0
- package/dist/index.es.js +2400 -2302
- package/dist/index.umd.js +50 -50
- package/dist/layoutSidebarButtons/index.cjs.js +1 -1
- package/dist/layoutSidebarButtons/index.es.js +173 -171
- package/dist/layoutSidebarButtons/index.umd.js +1 -1
- package/dist/layoutSidebarButtons/types.d.ts +29 -6
- package/dist/layoutSidebarButtons/typesSchema.d.ts +16 -0
- package/dist/prosemirror/index.cjs.js +9 -9
- package/dist/prosemirror/index.es.js +894 -885
- package/dist/prosemirror/index.umd.js +8 -8
- package/dist/prosemirror/utils.d.ts +4 -1
- package/dist/rteTinyMce/index.cjs.js +2 -2
- package/dist/rteTinyMce/index.es.js +96 -96
- package/dist/rteTinyMce/index.umd.js +2 -2
- package/dist/swiperComponent/index.cjs.js +5 -5
- package/dist/swiperComponent/index.es.js +103 -101
- package/dist/swiperComponent/index.umd.js +5 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Q="app.grapesjs.com",ee="app-stage.grapesjs.com",ae="app2.grapesjs.com",le="app-stage2.grapesjs.com",H=[Q,ae,ee,le,"localhost","127.0.0.1",".local-credentialless.webcontainer.io",".local.webcontainer.io","-sandpack.codesandbox.io"],se="license:check:start",ie="license:check:end",ne=()=>typeof window<"u",oe=({isDev:e,isStage:l})=>`${e?"":`https://${l?ee:Q}`}/api`,re=()=>{const e=ne()&&window.location.hostname;return!!e&&(H.includes(e)||H.some(l=>e.endsWith(l)))},ce=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(l,a)=>(a?"-":"")+l.toLowerCase()),de=e=>typeof e<"u";async function pe({path:e,baseApiUrl:l,method:a="GET",headers:s={},params:n,body:b}){const f=`${l||oe({isDev:!1,isStage:!1})}${e}`,d={method:a,headers:{"Content-Type":"application/json",...s}};b&&(d.body=JSON.stringify(b));const u=n?new URLSearchParams(n).toString():"",o=u?`?${u}`:"",h=await fetch(`${f}${o}`,d);if(!h.ok)throw new Error(`HTTP error! status: ${h.status}`);return h.json()}var
|
|
1
|
+
"use strict";const Q="app.grapesjs.com",ee="app-stage.grapesjs.com",ae="app2.grapesjs.com",le="app-stage2.grapesjs.com",H=[Q,ae,ee,le,"localhost","127.0.0.1",".local-credentialless.webcontainer.io",".local.webcontainer.io","-sandpack.codesandbox.io"],se="license:check:start",ie="license:check:end",ne=()=>typeof window<"u",oe=({isDev:e,isStage:l})=>`${e?"":`https://${l?ee:Q}`}/api`,re=()=>{const e=ne()&&window.location.hostname;return!!e&&(H.includes(e)||H.some(l=>e.endsWith(l)))},ce=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(l,a)=>(a?"-":"")+l.toLowerCase()),de=e=>typeof e<"u";async function pe({path:e,baseApiUrl:l,method:a="GET",headers:s={},params:n,body:b}){const f=`${l||oe({isDev:!1,isStage:!1})}${e}`,d={method:a,headers:{"Content-Type":"application/json",...s}};b&&(d.body=JSON.stringify(b));const u=n?new URLSearchParams(n).toString():"",o=u?`?${u}`:"",h=await fetch(`${f}${o}`,d);if(!h.ok)throw new Error(`HTTP error! status: ${h.status}`);return h.json()}var L=(e=>(e.free="free",e.startup="startup",e.business="business",e.enterprise="enterprise",e))(L||{});const G={[L.free]:0,[L.startup]:10,[L.business]:20,[L.enterprise]:30};function ue(e){const l=e;return l.init=a=>s=>e(s,a),l}const be=e=>ue(e);async function fe({editor:e,plan:l,pluginName:a,licenseKey:s,cleanup:n}){let b="",c=!1;const f=re(),d=o=>{console.warn("Cleanup plugin:",a,"Reason:",o),n()},u=(o={})=>{var w;const{error:h,sdkLicense:t}=o,i=(w=o.plan)==null?void 0:w.category;if(!(t||o.license)||h)d(h||"Invalid license");else if(i){const O=G[l],R=G[i];O>R&&d({pluginRequiredPlan:l,licensePlan:i})}};e.on(se,o=>{b=o==null?void 0:o.baseApiUrl,c=!0}),e.on(ie,o=>{u(o)}),setTimeout(async()=>{if(!c){if(f)return;if(s){const o=await he({licenseKey:s,pluginName:a,baseApiUrl:b});o&&u(o)}else d("The `licenseKey` option not provided")}},2e3)}async function he(e){const{licenseKey:l,pluginName:a,baseApiUrl:s}=e;try{return(await pe({baseApiUrl:s,path:`/sdk/${l||"na"}`,method:"POST",params:{d:window.location.hostname,pn:a}})).result||{}}catch(n){return console.error("Error during SDK license check:",n),!1}}const E=(e,l)=>{var a;return!!((a=e==null?void 0:e.classList)!=null&&a.contains(l))},ve=(e,l={})=>{var b;const a={},s=[],n=[];for(const c in e){const{value:f,...d}=e[c];s.push({id:c,name:c,changeProp:!0,category:l.category,...d}),a[c]=f,!de(f)&&n.push(c);const{subTraits:u={}}=d;for(const o in d.subTraits)(b=u[o])==null||b.forEach(h=>{const t=h.id||h.name;a[t]=h.value})}return{propKeys:Object.keys(a),propsNoValues:n,props:a,traits:s}},me=(e,l)=>{l.forEach(a=>{if(a.subTraits){const s=`${a.id||a.name}`,n=a.changeProp?`change:${s}`:`change:attributes:${s}`;e.on(n,()=>U(e,s)),U(e,s)}})},U=(e,l)=>{const a=e.getTrait(l),s=a.get("category"),n=a.get("subTraits")||{},c=(Object.values(n).flat()||[]).map(u=>u.id||u.name);e.removeTrait(c);const f=n[a.getValue()],d=e.getTraitIndex(l)+1;f&&e.addTrait(f.map(u=>({category:s,...u})),{at:d})},ge=(e,l)=>{l.forEach(a=>{const s=ce(a);s!==a&&e.has(s)&&e.set({[a]:e.get(s),[s]:void 0})})},m="swiper",M=`${m}-slide`,k=`${m}-wrapper`,A=`${m}-nav-prev`,D=`${m}-nav-next`,_=`${m}-pagination`,C=`${m}-scrollbar`,p={slider:`<svg viewBox="0 0 24 24">
|
|
2
2
|
<path d="M22 7.6c0-1-.5-1.6-1.3-1.6H3.4C2.5 6 2 6.7 2 7.6v9.8c0 1 .5 1.6 1.3 1.6h17.4c.8 0 1.3-.6 1.3-1.6V7.6zM21 18H3V7h18v11z" fill-rule="nonzero"/>
|
|
3
3
|
<path d="M4 12.5L6 14v-3zM20 12.5L18 14v-3z"/>
|
|
4
4
|
</svg>`,effect:`<svg viewBox="0 0 24 24">
|
|
@@ -21,25 +21,25 @@
|
|
|
21
21
|
<path d="M2 12c0 5 4 9 9 9 2.4 0 4.7-1 6.4-2.6l-1.5-1.5A6.7 6.7 0 0 1 11 19a7 7 0 1 1 7-7h-3l4 4h.1l3.9-4h-3a9 9 0 0 0-18 0Z"/>
|
|
22
22
|
</svg>`,prev:'<svg viewBox="0 0 24 24"><path d="M15.4 16.6 10.8 12l4.6-4.6L14 6l-6 6 6 6 1.4-1.4Z"/></svg>',next:'<svg viewBox="0 0 24 24"><path d="m8.6 16.6 4.6-4.6-4.6-4.6L10 6l6 6-6 6-1.4-1.4Z"/></svg>',add:`<svg viewBox="0 0 24 24">
|
|
23
23
|
<path d="M12 20a8 8 0 1 1 0-16 8 8 0 0 1 0 16m0-18A10 10 0 0 0 2 12a10 10 0 0 0 10 10 10 10 0 0 0 10-10A10 10 0 0 0 12 2m1 5h-2v4H7v2h4v4h2v-4h4v-2h-4V7Z"/>
|
|
24
|
-
</svg>`},j={id:"swiper-responsive",label:"Responsive",icon:p.responsive},K={id:"swiper-extra",label:"Extra",icon:p.extra},ye={actions:{type:"radio",label:!1,labelToTitle:!0,options:[{id:"r",label:"Reload slider",icon:p.reload},{id:"p",label:"Previous slide",icon:p.prev},{id:"n",label:"Next slide",icon:p.next},{id:"a",label:"Add new slide",icon:p.add}],setValue:({component:e,value:l})=>{var s;const a=(s=e.getView())==null?void 0:s.getSwiper();switch(l){case"r":e.reloadSlider();break;case"p":a==null||a.slidePrev();break;case"n":a==null||a.slideNext();break;case"a":e.addSlide();break}}},vertical:{type:"checkbox",label:"Vertical",value:!1},loop:{type:"checkbox",label:"Loop",value:!1},freeMode:{type:"checkbox",label:"Free mode",value:!1},autoHeight:{type:"checkbox",label:"Auto height",value:!1},navigation:{type:"checkbox",label:"Navigation",getValue:({component:e})=>!!e.findFirstType(k),setValue:({component:e,value:l})=>{var a,s;l?e.append([{type:k},{type:D}]):((a=e.findFirstType(k))==null||a.remove(),(s=e.findFirstType(D))==null||s.remove()),e.set({navigation:l})}},initialSlide:{type:"number",label:"Initial slide",min:0,value:"0"},speed:{type:"number",label:"Speed",tip:"Transition duration (in ms)",step:500,min:0,value:300},effect:{category:{id:"swiper-effect",label:"Effects",icon:p.effect},type:"select",label:"Effect Type",value:"slide",options:[{id:"slide",label:"Slide"},{id:"fade",label:"Fade"},{id:"cube",label:"Cube"},{id:"coverflow",label:"Coverflow"},{id:"flip",label:"Flip"},{id:"cards",label:"Cards"}],subTraits:{slide:[{type:"number",name:"slidesPerView",label:"Slides per view",changeProp:!0,min:1,value:1},{type:"number",name:"slidesPerGroup",label:"Slides per group",tip:"Numbers of slides for group sliding",changeProp:!0,min:1,value:1},{type:"number",name:"spaceBetween",label:"Space between",tip:"Distance between slides in px",changeProp:!0,min:0,value:0},{type:"number",name:"slidesOffsetBefore",label:"Slides offset before",tip:"Add additional slide offset in the beginning of the container (in px, before all slides)",changeProp:!0,min:0,value:0},{type:"number",name:"slidesOffsetAfter",label:"Slides offset after",tip:"Add additional slide offset in the end of the container (in px, after all slides)",changeProp:!0,min:0,value:0},{type:"checkbox",name:"centeredSlides",label:"Centered slides",tip:"If enabled, the active slide will be centered",changeProp:!0,value:!1}],fade:[{type:"checkbox",name:"crossFade",tip:"Enables slides cross fade",label:"Cross fade",changeProp:!0,value:!1}],cube:[{type:"checkbox",name:"cubeEffectShadow",label:"Shadow",changeProp:!0,value:!0},{type:"checkbox",name:"cubeEffectSlideShadows",label:"Slide shadows",changeProp:!0,value:!0},{type:"number",name:"cubeEffectShadowOffset",label:"Shadow offset",changeProp:!0,value:20},{type:"number",name:"cubeEffectShadowScale",label:"Shadow scale",changeProp:!0,value:.94}],coverflow:[{type:"number",name:"coverflowEffectDepth",tip:"Depth offset in px (slides translate in Z axis)",label:"Depth",changeProp:!0,min:0,value:100},{type:"number",name:"coverflowEffectModifier",tip:"Effect multiplier",label:"Modifier",changeProp:!0,step:.1,min:0,value:1},{type:"number",name:"coverflowEffectRotate",tip:"Slide rotate in degrees",label:"Rotate",changeProp:!0,min:0,value:50},{type:"number",name:"coverflowEffectScale",tip:"Slide scale effect",label:"Scale",changeProp:!0,min:0,step:.1,value:1},{type:"number",name:"coverflowEffectStretch",tip:"Stretch space between slides (in px)",label:"Stretch",changeProp:!0,min:0,value:0},{type:"checkbox",name:"coverflowEffectSlideShadows",tip:"Enables slides shadows",label:"Slide shadow",changeProp:!0,value:!0}],flip:[{type:"checkbox",name:"flipEffectLimitRotation",tip:"Limit edge slides rotation",label:"Limit rotation",changeProp:!0,value:!0},{type:"checkbox",name:"flipEffectSlideShadows",tip:"Enables slides shadows",label:"Slide shadows",changeProp:!0,value:!0}],cards:[{type:"number",name:"cardsEffectPerSlideOffset",tip:"Offset distance per slide (in px)",label:"Slide offset",changeProp:!0,min:0,value:8},{type:"number",name:"cardsEffectPerSlideRotate",tip:"Rotate angle per slide (in degrees)",label:"Slide rotate",changeProp:!0,min:0,value:2},{type:"checkbox",name:"cardsEffectRotate",tip:"Enables cards rotation",label:"Rotate",changeProp:!0,value:!0},{type:"checkbox",name:"cardsEffectSlideShadows",tip:"Enables slides shadows",label:"Slide shadows",changeProp:!0,value:!0}]}},autoplay:{category:{id:"swiper-autoplay",label:"Autoplay",icon:p.autoplay},type:"checkbox",label:"Enable Autoplay",value:!1,subTraits:{true:[{type:"checkbox",name:"autoplayEditor",label:"Autoplay in editor",tip:"Allow autoplay to run while editing in the canvas. Note: this may make selecting and editing slides difficult as they will automatically change.",changeProp:!0,value:!1},{type:"number",name:"autoplayDelay",label:"Delay",changeProp:!0,value:3e3},{type:"checkbox",name:"autoplayDisableOnInteraction",label:"Disable on interaction",changeProp:!0,value:!0},{type:"checkbox",name:"autoplayWaitForTransition",label:"Wait for transition",changeProp:!0,value:!0},{type:"checkbox",name:"autoplayPauseOnMouseEnter",label:"Pause on mouse enter",changeProp:!0,value:!1},{type:"checkbox",name:"autoplayReverseDirection",label:"Reverse direction",changeProp:!0,value:!1},{type:"checkbox",name:"autoplayStopOnLastSlide",label:"Stop on last slide",changeProp:!0,value:!1}]}},pagination:{category:{id:"swiper-pagination",label:"Pagination",icon:p.pagination},type:"select",label:"Pagination Type",options:[{id:"none",label:"None"},{id:"bullets",label:"Bullets"},{id:"progressbar",label:"Progressbar"},{id:"fraction",label:"Fraction"}],getValue:({component:e})=>e.findFirstType(A)?e.get("pagination")||"bullets":"none",setValue:({component:e,value:l})=>{const a=e.findFirstType(A);a==null||a.remove(),l!=="none"&&e.append({type:A}),e.set({pagination:l})},subTraits:{bullets:[{type:"checkbox",name:"dynamicBullets",label:"Dynamic bullets",changeProp:!0,value:!1},{type:"checkbox",name:"clickableBullets",label:"Clickable bullets",changeProp:!0,value:!0}],progressbar:[{type:"checkbox",name:"progressbarOpposite",label:"Progress opposite",changeProp:!0,value:!1}]}},scrollbar:{category:{id:"swiper-scrollbar",label:"Scrollbar",icon:p.scrollbar},type:"checkbox",label:"Enable Scrollbar",getValue:({component:e})=>!!e.findFirstType(N),setValue:({component:e,value:l})=>{const a=e.findFirstType(N);a==null||a.remove(),l&&e.append({type:N}),e.set({scrollbar:l})},subTraits:{false:[],true:[{type:"checkbox",name:"scrollbarDraggable",label:"Draggable",changeProp:!0,value:!1},{type:"checkbox",name:"scrollbarHide",label:"Hide",tip:"Hide scrollbar automatically after user interaction",changeProp:!0,value:!0}]}},parallax:{category:{id:"swiper-parallax",label:"Parallax",icon:p.parallax},type:"checkbox",label:"Enable Parallax",value:!1},mobile:{category:j,type:"checkbox",label:"Enable mobile breakpoint",value:!1,subTraits:{true:[{type:"number",name:"mobileBreakpoint",label:"Mobile breakpoint",tip:"Slide values below will be applied when the screen width is greater than this value",changeProp:!0,min:1,value:460},{type:"number",name:"mobileSlidesPerView",label:"Slides per view",changeProp:!0,min:1,value:1},{type:"number",name:"mobileSlidesPerGroup",label:"Slides per group",changeProp:!0,min:1,value:1},{type:"number",name:"mobileSpaceBetween",label:"Space between",changeProp:!0,min:0,value:0}]}},tablet:{category:j,type:"checkbox",label:"Enable tablet breakpoint",value:!1,subTraits:{true:[{type:"number",name:"tabletBreakpoint",label:"Tablet breakpoint",tip:"Slide values below will be applied when the screen width is greater than this value",changeProp:!0,min:1,value:991},{type:"number",name:"tabletSlidesPerView",label:"Slides per view",changeProp:!0,min:1,value:1},{type:"number",name:"tabletSlidesPerGroup",label:"Slides per group",changeProp:!0,min:1,value:1},{type:"number",name:"tabletSpaceBetween",label:"Space between",changeProp:!0,min:0,value:0}]}},allowTouchMove:{category:K,type:"checkbox",label:"Allow touch move",tip:"Allow touch interactions",value:!0},grabCursor:{category:K,type:"checkbox",label:"Grab cursor",tip:'If enabled, the user will see the "grab" cursor when hover the slider',value:!1}},Z="Slider",q="swiper",_=`${q}-`,Se=(e,l)=>{const{Components:a,Blocks:s,Commands:n}=e,{block:b}=l,c=ve(ye),f="core:preview",d=n.events,u=function(t){const i=this,E=window,S=i.__onLoad,O=i.__activeSlide,R=i.__inPreview,te=E._isEditor&&!R?t.autoplayEditor:!0,{cdnScript:$,cdnStyle:I,slidesPerView:F}=t||{},r=v=>isNaN(v)?void 0:parseFloat(v),z=()=>{const v={loop:t.loop,speed:t.speed,initialSlide:t.initialSlide,direction:t.vertical?"vertical":"horizontal",effect:t.effect,freeMode:t.freeMode,parallax:t.parallax,autoHeight:t.autoHeight,allowTouchMove:t.allowTouchMove,grabCursor:t.grabCursor,simulateTouch:!0,breakpoints:{},slidesPerView:isNaN(F)?F:r(F),slidesPerGroup:r(t.slidesPerGroup),spaceBetween:r(t.spaceBetween),slidesOffsetBefore:r(t.slidesOffsetBefore),slidesOffsetAfter:r(t.slidesOffsetAfter),centeredSlides:t.centeredSlides,fadeEffect:{crossFade:t.crossFade},cubeEffect:{shadow:t.cubeEffectShadow,slideShadows:t.cubeEffectSlideShadows,shadowOffset:r(t.cubeEffectShadowOffset),shadowScale:r(t.cubeEffectShadowScale)},coverflowEffect:{depth:r(t.coverflowEffectDepth),modifier:r(t.coverflowEffectModifier),rotate:r(t.coverflowEffectRotate),scale:r(t.coverflowEffectScale),stretch:r(t.coverflowEffectStretch),slideShadows:t.coverflowEffectSlideShadows},flipEffect:{limitRotation:t.flipEffectLimitRotation,slideShadows:t.flipEffectSlideShadows},cardsEffect:{perSlideOffset:r(t.cardsEffectPerSlideOffset),perSlideRotate:r(t.cardsEffectPerSlideRotate),rotate:t.cardsEffectRotate,slideShadows:t.cardsEffectSlideShadows},navigation:{nextEl:i.querySelector(".swiper-button-next"),prevEl:i.querySelector(".swiper-button-prev")},pagination:{type:t.pagination||"bullets",dynamicBullets:t.dynamicBullets,clickable:t.clickableBullets,progressbarOpposite:t.progressbarOpposite,el:i.querySelector(".swiper-pagination")},scrollbar:{el:i.querySelector(".swiper-scrollbar"),draggable:t.scrollbarDraggable,hide:t.scrollbarHide},autoplay:t.autoplay&&te&&{delay:t.autoplayDelay,disableOnInteraction:t.autoplayDisableOnInteraction,pauseOnMouseEnter:t.autoplayPauseOnMouseEnter,reverseDirection:t.autoplayReverseDirection,stopOnLastSlide:t.autoplayStopOnLastSlide,waitForTransition:t.autoplayWaitForTransition}};if(t.tablet){const{tabletBreakpoint:C,tabletSlidesPerView:g}=t,T=r(C);v.breakpoints[T]={slidesPerView:isNaN(g)?g:r(g),slidesPerGroup:r(t.tabletSlidesPerGroup),spaceBetween:r(t.tabletSpaceBetween)}}if(t.mobile){const{mobileBreakpoint:C,mobileSlidesPerView:g}=t,T=r(C);v.breakpoints[T]={slidesPerView:isNaN(g)?g:r(g),slidesPerGroup:r(t.mobileSlidesPerGroup),spaceBetween:r(t.mobileSpaceBetween)}}S&&!R&&(v.simulateTouch=!1),O&&(v.initialSlide=O);const W=new E.Swiper(i,v);S==null||S(W)};if(E.Swiper)z();else{const{head:v}=document,W=Array.isArray($)?[...$]:[$],C=Array.isArray(I)?[...I]:[I],g=w=>{if(w.length){const y=document.createElement("link");y.href=w.shift(),y.rel="stylesheet",v.appendChild(y),g(w)}},T=w=>{if(w.length){const y=document.createElement("script");y.src=w.shift(),y.onerror=y.onload=T.bind(null,w),v.appendChild(y)}else z()};g(C),T(W)}},o=(t=0)=>({type:M,style:{padding:"50px"},components:{type:"text",components:{type:"textnode",content:`Slide ${t}`}}}),h=a.getType("default").model;return a.addType(m,{block:b&&{label:Z,media:p.slider,category:"Extra",select:!0,...l.block},isComponent:t=>P(t,q),model:{defaults:()=>({name:Z,icon:p.slider,classes:q,draggable:(t,i)=>!i.is(m),components:[{type:L,components:[o(1),o(2),o(3)]},{type:A}],script:u,cdnScript:l.cdnScript,cdnStyle:l.cdnStyle,"script-props":["cdnScript","cdnStyle",...c.propKeys],...c.props,traits:[...c.traits]}),init(){const{em:t}=this;me(this,c.traits),ge(this,c.propKeys),this.listenTo(t,`${d.runCommand}${f}`,this.onPreviewOn),this.listenTo(t,`${d.stopCommand}${f}`,this.onPreviewOff)},onPreviewOn(){this.__inPreview=!0,this.reloadSlider()},onPreviewOff(){this.__inPreview=!1,this.reloadSlider()},reloadSlider(){this.trigger("rerender")},addSlide(){const t=this.findFirstType(L);t==null||t.append(this.getNewSlideComponentDef())},getNewSlideComponentDef(){var i;const t=((i=this.findFirstType(L))==null?void 0:i.components().length)||0;return{type:M,components:{type:"text",components:{type:"textnode",content:`Slide ${t+1}`}}}},toJSON(...t){const i=h.prototype.toJSON.apply(this,t);return c.propsNoValues.forEach(E=>delete i[E]),delete i["script-props"],i}},view:{init(){this.listenTo(this.model,a.events.scriptUnmount,this.destroySwiper)},getSwiper(){return this.el.swiper},destroySwiper(){var t;(t=this.getSwiper())==null||t.destroy()},onRender(){const t=this.el;t.__onLoad=i=>i.on("slideChange",()=>this.__activeSlide=i.activeIndex),t.__activeSlide=this.__activeSlide,t.__inPreview=this.model.__inPreview}}}),()=>{a.removeType(m),s.remove(m)}},we="Nav Prev",Pe="Nav Next",B=`${_}button-prev`,V=`${_}button-next`,Ee=e=>{const{Components:l}=e,a=s=>({type:"svg",selectable:!1,hoverable:!1,attributes:{viewBox:"0 0 27 44"},components:{type:"svg-in",tagName:"path",attributes:{d:s,fill:"currentColor"}}});return l.addType(k,{isComponent:s=>P(s,B),model:{defaults:{name:we,classes:B,copyable:!1,highlightable:!1,droppable:!1,draggable:!1,selectable:!1,hoverable:!1,layerable:!1,components:a("M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z"),styles:`
|
|
24
|
+
</svg>`},j={id:"swiper-responsive",label:"Responsive",icon:p.responsive},K={id:"swiper-extra",label:"Extra",icon:p.extra},ye={actions:{type:"radio",label:!1,labelToTitle:!0,options:[{id:"r",label:"Reload slider",icon:p.reload},{id:"p",label:"Previous slide",icon:p.prev},{id:"n",label:"Next slide",icon:p.next},{id:"a",label:"Add new slide",icon:p.add}],setValue:({component:e,value:l})=>{var s;const a=(s=e.getView())==null?void 0:s.getSwiper();switch(l){case"r":e.reloadSlider();break;case"p":a==null||a.slidePrev();break;case"n":a==null||a.slideNext();break;case"a":e.addSlide();break}}},vertical:{type:"checkbox",label:"Vertical",value:!1},loop:{type:"checkbox",label:"Loop",value:!1},freeMode:{type:"checkbox",label:"Free mode",value:!1},autoHeight:{type:"checkbox",label:"Auto height",value:!1},navigation:{type:"checkbox",label:"Navigation",getValue:({component:e})=>!!e.findFirstType(A),setValue:({component:e,value:l})=>{var a,s;l?e.append([{type:A},{type:D}]):((a=e.findFirstType(A))==null||a.remove(),(s=e.findFirstType(D))==null||s.remove()),e.set({navigation:l})}},initialSlide:{type:"number",label:"Initial slide",min:0,value:"0"},speed:{type:"number",label:"Speed",tip:"Transition duration (in ms)",step:500,min:0,value:300},effect:{category:{id:"swiper-effect",label:"Effects",icon:p.effect},type:"select",label:"Effect Type",value:"slide",options:[{id:"slide",label:"Slide"},{id:"fade",label:"Fade"},{id:"cube",label:"Cube"},{id:"coverflow",label:"Coverflow"},{id:"flip",label:"Flip"},{id:"cards",label:"Cards"}],subTraits:{slide:[{type:"number",name:"slidesPerView",label:"Slides per view",changeProp:!0,min:1,value:1},{type:"number",name:"slidesPerGroup",label:"Slides per group",tip:"Numbers of slides for group sliding",changeProp:!0,min:1,value:1},{type:"number",name:"spaceBetween",label:"Space between",tip:"Distance between slides in px",changeProp:!0,min:0,value:0},{type:"number",name:"slidesOffsetBefore",label:"Slides offset before",tip:"Add additional slide offset in the beginning of the container (in px, before all slides)",changeProp:!0,min:0,value:0},{type:"number",name:"slidesOffsetAfter",label:"Slides offset after",tip:"Add additional slide offset in the end of the container (in px, after all slides)",changeProp:!0,min:0,value:0},{type:"checkbox",name:"centeredSlides",label:"Centered slides",tip:"If enabled, the active slide will be centered",changeProp:!0,value:!1}],fade:[{type:"checkbox",name:"crossFade",tip:"Enables slides cross fade",label:"Cross fade",changeProp:!0,value:!1}],cube:[{type:"checkbox",name:"cubeEffectShadow",label:"Shadow",changeProp:!0,value:!0},{type:"checkbox",name:"cubeEffectSlideShadows",label:"Slide shadows",changeProp:!0,value:!0},{type:"number",name:"cubeEffectShadowOffset",label:"Shadow offset",changeProp:!0,value:20},{type:"number",name:"cubeEffectShadowScale",label:"Shadow scale",changeProp:!0,value:.94}],coverflow:[{type:"number",name:"coverflowEffectDepth",tip:"Depth offset in px (slides translate in Z axis)",label:"Depth",changeProp:!0,min:0,value:100},{type:"number",name:"coverflowEffectModifier",tip:"Effect multiplier",label:"Modifier",changeProp:!0,step:.1,min:0,value:1},{type:"number",name:"coverflowEffectRotate",tip:"Slide rotate in degrees",label:"Rotate",changeProp:!0,min:0,value:50},{type:"number",name:"coverflowEffectScale",tip:"Slide scale effect",label:"Scale",changeProp:!0,min:0,step:.1,value:1},{type:"number",name:"coverflowEffectStretch",tip:"Stretch space between slides (in px)",label:"Stretch",changeProp:!0,min:0,value:0},{type:"checkbox",name:"coverflowEffectSlideShadows",tip:"Enables slides shadows",label:"Slide shadow",changeProp:!0,value:!0}],flip:[{type:"checkbox",name:"flipEffectLimitRotation",tip:"Limit edge slides rotation",label:"Limit rotation",changeProp:!0,value:!0},{type:"checkbox",name:"flipEffectSlideShadows",tip:"Enables slides shadows",label:"Slide shadows",changeProp:!0,value:!0}],cards:[{type:"number",name:"cardsEffectPerSlideOffset",tip:"Offset distance per slide (in px)",label:"Slide offset",changeProp:!0,min:0,value:8},{type:"number",name:"cardsEffectPerSlideRotate",tip:"Rotate angle per slide (in degrees)",label:"Slide rotate",changeProp:!0,min:0,value:2},{type:"checkbox",name:"cardsEffectRotate",tip:"Enables cards rotation",label:"Rotate",changeProp:!0,value:!0},{type:"checkbox",name:"cardsEffectSlideShadows",tip:"Enables slides shadows",label:"Slide shadows",changeProp:!0,value:!0}]}},autoplay:{category:{id:"swiper-autoplay",label:"Autoplay",icon:p.autoplay},type:"checkbox",label:"Enable Autoplay",value:!1,subTraits:{true:[{type:"checkbox",name:"autoplayEditor",label:"Autoplay in editor",tip:"Allow autoplay to run while editing in the canvas. Note: this may make selecting and editing slides difficult as they will automatically change.",changeProp:!0,value:!1},{type:"number",name:"autoplayDelay",label:"Delay",changeProp:!0,value:3e3},{type:"checkbox",name:"autoplayDisableOnInteraction",label:"Disable on interaction",changeProp:!0,value:!0},{type:"checkbox",name:"autoplayWaitForTransition",label:"Wait for transition",changeProp:!0,value:!0},{type:"checkbox",name:"autoplayPauseOnMouseEnter",label:"Pause on mouse enter",changeProp:!0,value:!1},{type:"checkbox",name:"autoplayReverseDirection",label:"Reverse direction",changeProp:!0,value:!1},{type:"checkbox",name:"autoplayStopOnLastSlide",label:"Stop on last slide",changeProp:!0,value:!1}]}},pagination:{category:{id:"swiper-pagination",label:"Pagination",icon:p.pagination},type:"select",label:"Pagination Type",options:[{id:"none",label:"None"},{id:"bullets",label:"Bullets"},{id:"progressbar",label:"Progressbar"},{id:"fraction",label:"Fraction"}],getValue:({component:e})=>e.findFirstType(_)?e.get("pagination")||"bullets":"none",setValue:({component:e,value:l})=>{const a=e.findFirstType(_);a==null||a.remove(),l!=="none"&&e.append({type:_}),e.set({pagination:l})},subTraits:{bullets:[{type:"checkbox",name:"dynamicBullets",label:"Dynamic bullets",changeProp:!0,value:!1},{type:"checkbox",name:"clickableBullets",label:"Clickable bullets",changeProp:!0,value:!0}],progressbar:[{type:"checkbox",name:"progressbarOpposite",label:"Progress opposite",changeProp:!0,value:!1}]}},scrollbar:{category:{id:"swiper-scrollbar",label:"Scrollbar",icon:p.scrollbar},type:"checkbox",label:"Enable Scrollbar",getValue:({component:e})=>!!e.findFirstType(C),setValue:({component:e,value:l})=>{const a=e.findFirstType(C);a==null||a.remove(),l&&e.append({type:C}),e.set({scrollbar:l})},subTraits:{false:[],true:[{type:"checkbox",name:"scrollbarDraggable",label:"Draggable",changeProp:!0,value:!1},{type:"checkbox",name:"scrollbarHide",label:"Hide",tip:"Hide scrollbar automatically after user interaction",changeProp:!0,value:!0}]}},parallax:{category:{id:"swiper-parallax",label:"Parallax",icon:p.parallax},type:"checkbox",label:"Enable Parallax",value:!1},mobile:{category:j,type:"checkbox",label:"Enable mobile breakpoint",value:!1,subTraits:{true:[{type:"number",name:"mobileBreakpoint",label:"Mobile breakpoint",tip:"Slide values below will be applied when the screen width is greater than this value",changeProp:!0,min:1,value:460},{type:"number",name:"mobileSlidesPerView",label:"Slides per view",changeProp:!0,min:1,value:1},{type:"number",name:"mobileSlidesPerGroup",label:"Slides per group",changeProp:!0,min:1,value:1},{type:"number",name:"mobileSpaceBetween",label:"Space between",changeProp:!0,min:0,value:0}]}},tablet:{category:j,type:"checkbox",label:"Enable tablet breakpoint",value:!1,subTraits:{true:[{type:"number",name:"tabletBreakpoint",label:"Tablet breakpoint",tip:"Slide values below will be applied when the screen width is greater than this value",changeProp:!0,min:1,value:991},{type:"number",name:"tabletSlidesPerView",label:"Slides per view",changeProp:!0,min:1,value:1},{type:"number",name:"tabletSlidesPerGroup",label:"Slides per group",changeProp:!0,min:1,value:1},{type:"number",name:"tabletSpaceBetween",label:"Space between",changeProp:!0,min:0,value:0}]}},allowTouchMove:{category:K,type:"checkbox",label:"Allow touch move",tip:"Allow touch interactions",value:!0},grabCursor:{category:K,type:"checkbox",label:"Grab cursor",tip:'If enabled, the user will see the "grab" cursor when hover the slider',value:!1}},Z="Slider",q="swiper",N=`${q}-`,Se=(e,l)=>{const{Components:a,Blocks:s,Commands:n}=e,{block:b}=l,c=ve(ye),f="core:preview",d=n.events,u=function(t){const i=this,T=window,w=i.__onLoad,O=i.__activeSlide,R=i.__inPreview,te=T._isEditor&&!R?t.autoplayEditor:!0,{cdnScript:$,cdnStyle:I,slidesPerView:W}=t||{},r=y=>isNaN(y)?void 0:parseFloat(y),z=()=>{const y=i.parentElement;y&&(y.style.minWidth="0");const P={loop:t.loop,speed:t.speed,initialSlide:t.initialSlide,direction:t.vertical?"vertical":"horizontal",effect:t.effect,freeMode:t.freeMode,parallax:t.parallax,autoHeight:t.autoHeight,allowTouchMove:t.allowTouchMove,grabCursor:t.grabCursor,simulateTouch:!0,breakpoints:{},slidesPerView:isNaN(W)?W:r(W),slidesPerGroup:r(t.slidesPerGroup),spaceBetween:r(t.spaceBetween),slidesOffsetBefore:r(t.slidesOffsetBefore),slidesOffsetAfter:r(t.slidesOffsetAfter),centeredSlides:t.centeredSlides,fadeEffect:{crossFade:t.crossFade},cubeEffect:{shadow:t.cubeEffectShadow,slideShadows:t.cubeEffectSlideShadows,shadowOffset:r(t.cubeEffectShadowOffset),shadowScale:r(t.cubeEffectShadowScale)},coverflowEffect:{depth:r(t.coverflowEffectDepth),modifier:r(t.coverflowEffectModifier),rotate:r(t.coverflowEffectRotate),scale:r(t.coverflowEffectScale),stretch:r(t.coverflowEffectStretch),slideShadows:t.coverflowEffectSlideShadows},flipEffect:{limitRotation:t.flipEffectLimitRotation,slideShadows:t.flipEffectSlideShadows},cardsEffect:{perSlideOffset:r(t.cardsEffectPerSlideOffset),perSlideRotate:r(t.cardsEffectPerSlideRotate),rotate:t.cardsEffectRotate,slideShadows:t.cardsEffectSlideShadows},navigation:{nextEl:i.querySelector(".swiper-button-next"),prevEl:i.querySelector(".swiper-button-prev")},pagination:{type:t.pagination||"bullets",dynamicBullets:t.dynamicBullets,clickable:t.clickableBullets,progressbarOpposite:t.progressbarOpposite,el:i.querySelector(".swiper-pagination")},scrollbar:{el:i.querySelector(".swiper-scrollbar"),draggable:t.scrollbarDraggable,hide:t.scrollbarHide},autoplay:t.autoplay&&te&&{delay:t.autoplayDelay,disableOnInteraction:t.autoplayDisableOnInteraction,pauseOnMouseEnter:t.autoplayPauseOnMouseEnter,reverseDirection:t.autoplayReverseDirection,stopOnLastSlide:t.autoplayStopOnLastSlide,waitForTransition:t.autoplayWaitForTransition}};if(t.tablet){const{tabletBreakpoint:x,tabletSlidesPerView:g}=t,v=r(x);P.breakpoints[v]={slidesPerView:isNaN(g)?g:r(g),slidesPerGroup:r(t.tabletSlidesPerGroup),spaceBetween:r(t.tabletSpaceBetween)}}if(t.mobile){const{mobileBreakpoint:x,mobileSlidesPerView:g}=t,v=r(x);P.breakpoints[v]={slidesPerView:isNaN(g)?g:r(g),slidesPerGroup:r(t.mobileSlidesPerGroup),spaceBetween:r(t.mobileSpaceBetween)}}w&&!R&&(P.simulateTouch=!1),O&&(P.initialSlide=O);const F=new T.Swiper(i,P);w==null||w(F)};if(T.Swiper)z();else{const{head:y}=document,P=Array.isArray($)?[...$]:[$],F=Array.isArray(I)?[...I]:[I],x=v=>{if(v.length){const S=document.createElement("link");S.href=v.shift(),S.rel="stylesheet",y.prepend(S),x(v)}},g=v=>{if(v.length){const S=document.createElement("script");S.src=v.shift(),S.onerror=S.onload=g.bind(null,v),y.appendChild(S)}else z()};x(F),g(P)}},o=(t=0)=>({type:M,style:{padding:"50px"},components:{type:"text",components:{type:"textnode",content:`Slide ${t}`}}}),h=a.getType("default").model;return a.addType(m,{block:b&&{label:Z,media:p.slider,category:"Extra",select:!0,...l.block},isComponent:t=>E(t,q),model:{defaults:()=>({name:Z,icon:p.slider,classes:q,draggable:(t,i)=>!i.is(m),components:[{type:k,components:[o(1),o(2),o(3)]},{type:_}],script:u,cdnScript:l.cdnScript,cdnStyle:l.cdnStyle,"script-props":["cdnScript","cdnStyle",...c.propKeys],...c.props,traits:[...c.traits]}),init(){const{em:t}=this;me(this,c.traits),ge(this,c.propKeys),this.listenTo(t,`${d.runCommand}${f}`,this.onPreviewOn),this.listenTo(t,`${d.stopCommand}${f}`,this.onPreviewOff)},onPreviewOn(){this.__inPreview=!0,this.reloadSlider()},onPreviewOff(){this.__inPreview=!1,this.reloadSlider()},reloadSlider(){this.trigger("rerender")},addSlide(){const t=this.findFirstType(k);t==null||t.append(this.getNewSlideComponentDef())},getNewSlideComponentDef(){var i;const t=((i=this.findFirstType(k))==null?void 0:i.components().length)||0;return{type:M,components:{type:"text",components:{type:"textnode",content:`Slide ${t+1}`}}}},toJSON(...t){const i=h.prototype.toJSON.apply(this,t);return c.propsNoValues.forEach(T=>delete i[T]),delete i["script-props"],i}},view:{init(){this.listenTo(this.model,a.events.scriptUnmount,this.destroySwiper)},getSwiper(){return this.el.swiper},destroySwiper(){var t;(t=this.getSwiper())==null||t.destroy()},onRender(){const t=this.el;t.__onLoad=i=>i.on("slideChange",()=>this.__activeSlide=i.activeIndex),t.__activeSlide=this.__activeSlide,t.__inPreview=this.model.__inPreview}}}),()=>{a.removeType(m),s.remove(m)}},we="Nav Prev",Pe="Nav Next",B=`${N}button-prev`,V=`${N}button-next`,Ee=e=>{const{Components:l}=e,a=s=>({type:"svg",selectable:!1,hoverable:!1,attributes:{viewBox:"0 0 27 44"},components:{type:"svg-in",tagName:"path",attributes:{d:s,fill:"currentColor"}}});return l.addType(A,{isComponent:s=>E(s,B),model:{defaults:{name:we,classes:B,copyable:!1,highlightable:!1,droppable:!1,draggable:!1,selectable:!1,hoverable:!1,layerable:!1,components:a("M0,22L22,0l2.1,2.1L4.2,22l19.9,19.9L22,44L0,22L0,22L0,22z"),styles:`
|
|
25
25
|
.${B} {
|
|
26
26
|
color: inherit;
|
|
27
27
|
}
|
|
28
28
|
.${B}:after {
|
|
29
29
|
content: none;
|
|
30
30
|
}
|
|
31
|
-
`}}}),l.addType(D,{extend:
|
|
31
|
+
`}}}),l.addType(D,{extend:A,isComponent:s=>E(s,V),model:{defaults:{name:Pe,classes:V,components:a("M27,22L27,22L5,44l-2.1-2.1L22.8,22L2.9,2.1L5,0L27,22L27,22z"),styles:`
|
|
32
32
|
.${V} {
|
|
33
33
|
color: inherit;
|
|
34
34
|
}
|
|
35
35
|
.${V}:after {
|
|
36
36
|
content: none;
|
|
37
37
|
}
|
|
38
|
-
`}}}),()=>{l.removeType(
|
|
38
|
+
`}}}),()=>{l.removeType(A),l.removeType(D)}},Te=e=>{const{Components:l}=e,a=`${N}pagination`;return l.addType(_,{isComponent:s=>E(s,a),model:{defaults:{name:"Pagination",classes:a,copyable:!1,highlightable:!1,droppable:!1,draggable:!1,selectable:!1,hoverable:!1,layerable:!1,styles:`
|
|
39
39
|
.${a}-bullet-active {
|
|
40
40
|
background-color: currentColor;
|
|
41
41
|
}
|
|
42
42
|
.${a}-progressbar-fill {
|
|
43
43
|
--swiper-pagination-color: currentColor;
|
|
44
44
|
}
|
|
45
|
-
`}}}),()=>{l.removeType(
|
|
45
|
+
`}}}),()=>{l.removeType(_)}},xe="Scrollbar",Y=`${N}scrollbar`,Le=e=>{const{Components:l}=e;return l.addType(C,{isComponent:a=>E(a,Y),model:{defaults:{name:xe,classes:Y,copyable:!1,highlightable:!1,removable:!1,selectable:!1,hoverable:!1,layerable:!1,droppable:!1,draggable:!1}}}),()=>{l.removeType(C)}},ke="Slide",X=`${N}slide`,Ae=e=>{const{Components:l}=e;return l.addType(M,{isComponent:a=>E(a,X),model:{defaults:{name:ke,classes:X,icon:p.slider,draggable:(a,s)=>s.is(k)}}}),()=>{l.removeType(M)}},_e="Wrapper",J=`${N}wrapper`,Ne=e=>{const{Components:l}=e,{events:a}=l;return l.addType(k,{isComponent:s=>E(s,J),model:{defaults:{name:_e,icon:p.slider,classes:J,copyable:!1,removable:!1,draggable:!1,highlightable:!1,droppable:s=>s.is(M)},init(){const s=this.components();this.listenTo(s,"add remove",this.updateSlider)},updateSlider(s){const n=this.closestType(m);if(n){const b=n.getView();n.reloadSlider(),this.em.once(a.scriptMount,()=>{setTimeout(()=>{var c;return(c=b.getSwiper())==null?void 0:c.slideTo(s.index())},100)})}}}}),()=>{l.removeType(k)}},Ce="swiperComponent",Me=L.startup,Oe=function(e,l={}){const a={block:{},cdnScript:"https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js",cdnStyle:"https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css",...l},s=[Se(e,a),Ee(e),Ne(e),Ae(e),Te(e),Le(e)];fe({editor:e,plan:Me,licenseKey:a.licenseKey,pluginName:Ce,cleanup:()=>{s.forEach(n=>n())}})},Re=be(Oe);module.exports=Re;
|
|
@@ -11,8 +11,8 @@ const Q = "app.grapesjs.com", ee = "app-stage.grapesjs.com", ae = "app2.grapesjs
|
|
|
11
11
|
// For stackblitz.com demos
|
|
12
12
|
"-sandpack.codesandbox.io"
|
|
13
13
|
// For Sandpack demos
|
|
14
|
-
], se = "license:check:start",
|
|
15
|
-
const e =
|
|
14
|
+
], se = "license:check:start", ne = "license:check:end", ie = () => typeof window < "u", oe = ({ isDev: e, isStage: l }) => `${e ? "" : `https://${l ? ee : Q}`}/api`, re = () => {
|
|
15
|
+
const e = ie() && window.location.hostname;
|
|
16
16
|
return !!e && (H.includes(e) || H.some((l) => e.endsWith(l)));
|
|
17
17
|
}, ce = (e) => e.replace(/[A-Z]+(?![a-z])|[A-Z]/g, (l, a) => (a ? "-" : "") + l.toLowerCase()), de = (e) => typeof e < "u";
|
|
18
18
|
async function pe({
|
|
@@ -20,7 +20,7 @@ async function pe({
|
|
|
20
20
|
baseApiUrl: l,
|
|
21
21
|
method: a = "GET",
|
|
22
22
|
headers: s = {},
|
|
23
|
-
params:
|
|
23
|
+
params: i,
|
|
24
24
|
body: b
|
|
25
25
|
}) {
|
|
26
26
|
const f = `${l || oe({ isDev: !1, isStage: !1 })}${e}`, d = {
|
|
@@ -31,17 +31,17 @@ async function pe({
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
b && (d.body = JSON.stringify(b));
|
|
34
|
-
const u =
|
|
34
|
+
const u = i ? new URLSearchParams(i).toString() : "", o = u ? `?${u}` : "", h = await fetch(`${f}${o}`, d);
|
|
35
35
|
if (!h.ok)
|
|
36
36
|
throw new Error(`HTTP error! status: ${h.status}`);
|
|
37
37
|
return h.json();
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var L = /* @__PURE__ */ ((e) => (e.free = "free", e.startup = "startup", e.business = "business", e.enterprise = "enterprise", e))(L || {});
|
|
40
40
|
const G = {
|
|
41
|
-
[
|
|
42
|
-
[
|
|
43
|
-
[
|
|
44
|
-
[
|
|
41
|
+
[L.free]: 0,
|
|
42
|
+
[L.startup]: 10,
|
|
43
|
+
[L.business]: 20,
|
|
44
|
+
[L.enterprise]: 30
|
|
45
45
|
};
|
|
46
46
|
function ue(e) {
|
|
47
47
|
const l = e;
|
|
@@ -53,24 +53,24 @@ async function fe({
|
|
|
53
53
|
plan: l,
|
|
54
54
|
pluginName: a,
|
|
55
55
|
licenseKey: s,
|
|
56
|
-
cleanup:
|
|
56
|
+
cleanup: i
|
|
57
57
|
}) {
|
|
58
58
|
let b = "", c = !1;
|
|
59
59
|
const f = re(), d = (o) => {
|
|
60
|
-
console.warn("Cleanup plugin:", a, "Reason:", o),
|
|
60
|
+
console.warn("Cleanup plugin:", a, "Reason:", o), i();
|
|
61
61
|
}, u = (o = {}) => {
|
|
62
|
-
var
|
|
63
|
-
const { error: h, sdkLicense: t } = o,
|
|
62
|
+
var w;
|
|
63
|
+
const { error: h, sdkLicense: t } = o, n = (w = o.plan) == null ? void 0 : w.category;
|
|
64
64
|
if (!(t || o.license) || h)
|
|
65
65
|
d(h || "Invalid license");
|
|
66
|
-
else if (
|
|
67
|
-
const O = G[l], R = G[
|
|
68
|
-
O > R && d({ pluginRequiredPlan: l, licensePlan:
|
|
66
|
+
else if (n) {
|
|
67
|
+
const O = G[l], R = G[n];
|
|
68
|
+
O > R && d({ pluginRequiredPlan: l, licensePlan: n });
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
e.on(se, (o) => {
|
|
72
72
|
b = o == null ? void 0 : o.baseApiUrl, c = !0;
|
|
73
|
-
}), e.on(
|
|
73
|
+
}), e.on(ne, (o) => {
|
|
74
74
|
u(o);
|
|
75
75
|
}), setTimeout(async () => {
|
|
76
76
|
if (!c) {
|
|
@@ -95,19 +95,19 @@ async function he(e) {
|
|
|
95
95
|
pn: a
|
|
96
96
|
}
|
|
97
97
|
})).result || {};
|
|
98
|
-
} catch (
|
|
99
|
-
return console.error("Error during SDK license check:",
|
|
98
|
+
} catch (i) {
|
|
99
|
+
return console.error("Error during SDK license check:", i), !1;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const E = (e, l) => {
|
|
103
103
|
var a;
|
|
104
104
|
return !!((a = e == null ? void 0 : e.classList) != null && a.contains(l));
|
|
105
105
|
}, ve = (e, l = {}) => {
|
|
106
106
|
var b;
|
|
107
|
-
const a = {}, s = [],
|
|
107
|
+
const a = {}, s = [], i = [];
|
|
108
108
|
for (const c in e) {
|
|
109
109
|
const { value: f, ...d } = e[c];
|
|
110
|
-
s.push({ id: c, name: c, changeProp: !0, category: l.category, ...d }), a[c] = f, !de(f) &&
|
|
110
|
+
s.push({ id: c, name: c, changeProp: !0, category: l.category, ...d }), a[c] = f, !de(f) && i.push(c);
|
|
111
111
|
const { subTraits: u = {} } = d;
|
|
112
112
|
for (const o in d.subTraits)
|
|
113
113
|
(b = u[o]) == null || b.forEach((h) => {
|
|
@@ -117,21 +117,21 @@ const P = (e, l) => {
|
|
|
117
117
|
}
|
|
118
118
|
return {
|
|
119
119
|
propKeys: Object.keys(a),
|
|
120
|
-
propsNoValues:
|
|
120
|
+
propsNoValues: i,
|
|
121
121
|
props: a,
|
|
122
122
|
traits: s
|
|
123
123
|
};
|
|
124
124
|
}, me = (e, l) => {
|
|
125
125
|
l.forEach((a) => {
|
|
126
126
|
if (a.subTraits) {
|
|
127
|
-
const s = `${a.id || a.name}`,
|
|
128
|
-
e.on(
|
|
127
|
+
const s = `${a.id || a.name}`, i = a.changeProp ? `change:${s}` : `change:attributes:${s}`;
|
|
128
|
+
e.on(i, () => U(e, s)), U(e, s);
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
}, U = (e, l) => {
|
|
132
|
-
const a = e.getTrait(l), s = a.get("category"),
|
|
132
|
+
const a = e.getTrait(l), s = a.get("category"), i = a.get("subTraits") || {}, c = (Object.values(i).flat() || []).map((u) => u.id || u.name);
|
|
133
133
|
e.removeTrait(c);
|
|
134
|
-
const f =
|
|
134
|
+
const f = i[a.getValue()], d = e.getTraitIndex(l) + 1;
|
|
135
135
|
f && e.addTrait(
|
|
136
136
|
f.map((u) => ({ category: s, ...u })),
|
|
137
137
|
{ at: d }
|
|
@@ -141,7 +141,7 @@ const P = (e, l) => {
|
|
|
141
141
|
const s = ce(a);
|
|
142
142
|
s !== a && e.has(s) && e.set({ [a]: e.get(s), [s]: void 0 });
|
|
143
143
|
});
|
|
144
|
-
}, m = "swiper", M = `${m}-slide`,
|
|
144
|
+
}, m = "swiper", M = `${m}-slide`, k = `${m}-wrapper`, A = `${m}-nav-prev`, D = `${m}-nav-next`, _ = `${m}-pagination`, C = `${m}-scrollbar`, p = {
|
|
145
145
|
slider: `<svg viewBox="0 0 24 24">
|
|
146
146
|
<path d="M22 7.6c0-1-.5-1.6-1.3-1.6H3.4C2.5 6 2 6.7 2 7.6v9.8c0 1 .5 1.6 1.3 1.6h17.4c.8 0 1.3-.6 1.3-1.6V7.6zM21 18H3V7h18v11z" fill-rule="nonzero"/>
|
|
147
147
|
<path d="M4 12.5L6 14v-3zM20 12.5L18 14v-3z"/>
|
|
@@ -230,10 +230,10 @@ const P = (e, l) => {
|
|
|
230
230
|
navigation: {
|
|
231
231
|
type: "checkbox",
|
|
232
232
|
label: "Navigation",
|
|
233
|
-
getValue: ({ component: e }) => !!e.findFirstType(
|
|
233
|
+
getValue: ({ component: e }) => !!e.findFirstType(A),
|
|
234
234
|
setValue: ({ component: e, value: l }) => {
|
|
235
235
|
var a, s;
|
|
236
|
-
l ? e.append([{ type:
|
|
236
|
+
l ? e.append([{ type: A }, { type: D }]) : ((a = e.findFirstType(A)) == null || a.remove(), (s = e.findFirstType(D)) == null || s.remove()), e.set({ navigation: l });
|
|
237
237
|
}
|
|
238
238
|
},
|
|
239
239
|
initialSlide: {
|
|
@@ -541,10 +541,10 @@ const P = (e, l) => {
|
|
|
541
541
|
{ id: "progressbar", label: "Progressbar" },
|
|
542
542
|
{ id: "fraction", label: "Fraction" }
|
|
543
543
|
],
|
|
544
|
-
getValue: ({ component: e }) => e.findFirstType(
|
|
544
|
+
getValue: ({ component: e }) => e.findFirstType(_) ? e.get("pagination") || "bullets" : "none",
|
|
545
545
|
setValue: ({ component: e, value: l }) => {
|
|
546
|
-
const a = e.findFirstType(
|
|
547
|
-
a == null || a.remove(), l !== "none" && e.append({ type:
|
|
546
|
+
const a = e.findFirstType(_);
|
|
547
|
+
a == null || a.remove(), l !== "none" && e.append({ type: _ }), e.set({ pagination: l });
|
|
548
548
|
},
|
|
549
549
|
subTraits: {
|
|
550
550
|
bullets: [
|
|
@@ -578,10 +578,10 @@ const P = (e, l) => {
|
|
|
578
578
|
category: { id: "swiper-scrollbar", label: "Scrollbar", icon: p.scrollbar },
|
|
579
579
|
type: "checkbox",
|
|
580
580
|
label: "Enable Scrollbar",
|
|
581
|
-
getValue: ({ component: e }) => !!e.findFirstType(
|
|
581
|
+
getValue: ({ component: e }) => !!e.findFirstType(C),
|
|
582
582
|
setValue: ({ component: e, value: l }) => {
|
|
583
|
-
const a = e.findFirstType(
|
|
584
|
-
a == null || a.remove(), l && e.append({ type:
|
|
583
|
+
const a = e.findFirstType(C);
|
|
584
|
+
a == null || a.remove(), l && e.append({ type: C }), e.set({ scrollbar: l });
|
|
585
585
|
},
|
|
586
586
|
subTraits: {
|
|
587
587
|
false: [],
|
|
@@ -710,10 +710,12 @@ const P = (e, l) => {
|
|
|
710
710
|
tip: 'If enabled, the user will see the "grab" cursor when hover the slider',
|
|
711
711
|
value: !1
|
|
712
712
|
}
|
|
713
|
-
}, Z = "Slider", q = "swiper",
|
|
714
|
-
const { Components: a, Blocks: s, Commands:
|
|
715
|
-
const
|
|
716
|
-
const
|
|
713
|
+
}, Z = "Slider", q = "swiper", N = `${q}-`, Se = (e, l) => {
|
|
714
|
+
const { Components: a, Blocks: s, Commands: i } = e, { block: b } = l, c = ve(ye), f = "core:preview", d = i.events, u = function(t) {
|
|
715
|
+
const n = this, T = window, w = n.__onLoad, O = n.__activeSlide, R = n.__inPreview, te = T._isEditor && !R ? t.autoplayEditor : !0, { cdnScript: $, cdnStyle: I, slidesPerView: W } = t || {}, r = (y) => isNaN(y) ? void 0 : parseFloat(y), z = () => {
|
|
716
|
+
const y = n.parentElement;
|
|
717
|
+
y && (y.style.minWidth = "0");
|
|
718
|
+
const P = {
|
|
717
719
|
loop: t.loop,
|
|
718
720
|
speed: t.speed,
|
|
719
721
|
initialSlide: t.initialSlide,
|
|
@@ -726,7 +728,7 @@ const P = (e, l) => {
|
|
|
726
728
|
grabCursor: t.grabCursor,
|
|
727
729
|
simulateTouch: !0,
|
|
728
730
|
breakpoints: {},
|
|
729
|
-
slidesPerView: isNaN(
|
|
731
|
+
slidesPerView: isNaN(W) ? W : r(W),
|
|
730
732
|
slidesPerGroup: r(t.slidesPerGroup),
|
|
731
733
|
spaceBetween: r(t.spaceBetween),
|
|
732
734
|
slidesOffsetBefore: r(t.slidesOffsetBefore),
|
|
@@ -758,18 +760,18 @@ const P = (e, l) => {
|
|
|
758
760
|
slideShadows: t.cardsEffectSlideShadows
|
|
759
761
|
},
|
|
760
762
|
navigation: {
|
|
761
|
-
nextEl:
|
|
762
|
-
prevEl:
|
|
763
|
+
nextEl: n.querySelector(".swiper-button-next"),
|
|
764
|
+
prevEl: n.querySelector(".swiper-button-prev")
|
|
763
765
|
},
|
|
764
766
|
pagination: {
|
|
765
767
|
type: t.pagination || "bullets",
|
|
766
768
|
dynamicBullets: t.dynamicBullets,
|
|
767
769
|
clickable: t.clickableBullets,
|
|
768
770
|
progressbarOpposite: t.progressbarOpposite,
|
|
769
|
-
el:
|
|
771
|
+
el: n.querySelector(".swiper-pagination")
|
|
770
772
|
},
|
|
771
773
|
scrollbar: {
|
|
772
|
-
el:
|
|
774
|
+
el: n.querySelector(".swiper-scrollbar"),
|
|
773
775
|
draggable: t.scrollbarDraggable,
|
|
774
776
|
hide: t.scrollbarHide
|
|
775
777
|
},
|
|
@@ -783,41 +785,41 @@ const P = (e, l) => {
|
|
|
783
785
|
}
|
|
784
786
|
};
|
|
785
787
|
if (t.tablet) {
|
|
786
|
-
const { tabletBreakpoint:
|
|
787
|
-
|
|
788
|
+
const { tabletBreakpoint: x, tabletSlidesPerView: g } = t, v = r(x);
|
|
789
|
+
P.breakpoints[v] = {
|
|
788
790
|
slidesPerView: isNaN(g) ? g : r(g),
|
|
789
791
|
slidesPerGroup: r(t.tabletSlidesPerGroup),
|
|
790
792
|
spaceBetween: r(t.tabletSpaceBetween)
|
|
791
793
|
};
|
|
792
794
|
}
|
|
793
795
|
if (t.mobile) {
|
|
794
|
-
const { mobileBreakpoint:
|
|
795
|
-
|
|
796
|
+
const { mobileBreakpoint: x, mobileSlidesPerView: g } = t, v = r(x);
|
|
797
|
+
P.breakpoints[v] = {
|
|
796
798
|
slidesPerView: isNaN(g) ? g : r(g),
|
|
797
799
|
slidesPerGroup: r(t.mobileSlidesPerGroup),
|
|
798
800
|
spaceBetween: r(t.mobileSpaceBetween)
|
|
799
801
|
};
|
|
800
802
|
}
|
|
801
|
-
|
|
802
|
-
const
|
|
803
|
-
|
|
803
|
+
w && !R && (P.simulateTouch = !1), O && (P.initialSlide = O);
|
|
804
|
+
const F = new T.Swiper(n, P);
|
|
805
|
+
w == null || w(F);
|
|
804
806
|
};
|
|
805
|
-
if (
|
|
807
|
+
if (T.Swiper)
|
|
806
808
|
z();
|
|
807
809
|
else {
|
|
808
|
-
const { head:
|
|
809
|
-
if (
|
|
810
|
-
const
|
|
811
|
-
|
|
810
|
+
const { head: y } = document, P = Array.isArray($) ? [...$] : [$], F = Array.isArray(I) ? [...I] : [I], x = (v) => {
|
|
811
|
+
if (v.length) {
|
|
812
|
+
const S = document.createElement("link");
|
|
813
|
+
S.href = v.shift(), S.rel = "stylesheet", y.prepend(S), x(v);
|
|
812
814
|
}
|
|
813
|
-
},
|
|
814
|
-
if (
|
|
815
|
-
const
|
|
816
|
-
|
|
815
|
+
}, g = (v) => {
|
|
816
|
+
if (v.length) {
|
|
817
|
+
const S = document.createElement("script");
|
|
818
|
+
S.src = v.shift(), S.onerror = S.onload = g.bind(null, v), y.appendChild(S);
|
|
817
819
|
} else
|
|
818
820
|
z();
|
|
819
821
|
};
|
|
820
|
-
|
|
822
|
+
x(F), g(P);
|
|
821
823
|
}
|
|
822
824
|
}, o = (t = 0) => ({
|
|
823
825
|
type: M,
|
|
@@ -832,19 +834,19 @@ const P = (e, l) => {
|
|
|
832
834
|
select: !0,
|
|
833
835
|
...l.block
|
|
834
836
|
},
|
|
835
|
-
isComponent: (t) =>
|
|
837
|
+
isComponent: (t) => E(t, q),
|
|
836
838
|
model: {
|
|
837
839
|
defaults: () => ({
|
|
838
840
|
name: Z,
|
|
839
841
|
icon: p.slider,
|
|
840
842
|
classes: q,
|
|
841
|
-
draggable: (t,
|
|
843
|
+
draggable: (t, n) => !n.is(m),
|
|
842
844
|
components: [
|
|
843
845
|
{
|
|
844
|
-
type:
|
|
846
|
+
type: k,
|
|
845
847
|
components: [o(1), o(2), o(3)]
|
|
846
848
|
},
|
|
847
|
-
{ type:
|
|
849
|
+
{ type: _ }
|
|
848
850
|
],
|
|
849
851
|
script: u,
|
|
850
852
|
cdnScript: l.cdnScript,
|
|
@@ -867,20 +869,20 @@ const P = (e, l) => {
|
|
|
867
869
|
this.trigger("rerender");
|
|
868
870
|
},
|
|
869
871
|
addSlide() {
|
|
870
|
-
const t = this.findFirstType(
|
|
872
|
+
const t = this.findFirstType(k);
|
|
871
873
|
t == null || t.append(this.getNewSlideComponentDef());
|
|
872
874
|
},
|
|
873
875
|
getNewSlideComponentDef() {
|
|
874
|
-
var
|
|
875
|
-
const t = ((
|
|
876
|
+
var n;
|
|
877
|
+
const t = ((n = this.findFirstType(k)) == null ? void 0 : n.components().length) || 0;
|
|
876
878
|
return {
|
|
877
879
|
type: M,
|
|
878
880
|
components: { type: "text", components: { type: "textnode", content: `Slide ${t + 1}` } }
|
|
879
881
|
};
|
|
880
882
|
},
|
|
881
883
|
toJSON(...t) {
|
|
882
|
-
const
|
|
883
|
-
return c.propsNoValues.forEach((
|
|
884
|
+
const n = h.prototype.toJSON.apply(this, t);
|
|
885
|
+
return c.propsNoValues.forEach((T) => delete n[T]), delete n["script-props"], n;
|
|
884
886
|
}
|
|
885
887
|
},
|
|
886
888
|
view: {
|
|
@@ -896,13 +898,13 @@ const P = (e, l) => {
|
|
|
896
898
|
},
|
|
897
899
|
onRender() {
|
|
898
900
|
const t = this.el;
|
|
899
|
-
t.__onLoad = (
|
|
901
|
+
t.__onLoad = (n) => n.on("slideChange", () => this.__activeSlide = n.activeIndex), t.__activeSlide = this.__activeSlide, t.__inPreview = this.model.__inPreview;
|
|
900
902
|
}
|
|
901
903
|
}
|
|
902
904
|
}), () => {
|
|
903
905
|
a.removeType(m), s.remove(m);
|
|
904
906
|
};
|
|
905
|
-
}, we = "Nav Prev", Pe = "Nav Next", B = `${
|
|
907
|
+
}, we = "Nav Prev", Pe = "Nav Next", B = `${N}button-prev`, V = `${N}button-next`, Ee = (e) => {
|
|
906
908
|
const { Components: l } = e, a = (s) => ({
|
|
907
909
|
type: "svg",
|
|
908
910
|
selectable: !1,
|
|
@@ -914,8 +916,8 @@ const P = (e, l) => {
|
|
|
914
916
|
attributes: { d: s, fill: "currentColor" }
|
|
915
917
|
}
|
|
916
918
|
});
|
|
917
|
-
return l.addType(
|
|
918
|
-
isComponent: (s) =>
|
|
919
|
+
return l.addType(A, {
|
|
920
|
+
isComponent: (s) => E(s, B),
|
|
919
921
|
model: {
|
|
920
922
|
defaults: {
|
|
921
923
|
name: we,
|
|
@@ -939,8 +941,8 @@ const P = (e, l) => {
|
|
|
939
941
|
}
|
|
940
942
|
}
|
|
941
943
|
}), l.addType(D, {
|
|
942
|
-
extend:
|
|
943
|
-
isComponent: (s) =>
|
|
944
|
+
extend: A,
|
|
945
|
+
isComponent: (s) => E(s, V),
|
|
944
946
|
model: {
|
|
945
947
|
defaults: {
|
|
946
948
|
name: Pe,
|
|
@@ -957,12 +959,12 @@ const P = (e, l) => {
|
|
|
957
959
|
}
|
|
958
960
|
}
|
|
959
961
|
}), () => {
|
|
960
|
-
l.removeType(
|
|
962
|
+
l.removeType(A), l.removeType(D);
|
|
961
963
|
};
|
|
962
964
|
}, Te = (e) => {
|
|
963
|
-
const { Components: l } = e, a = `${
|
|
964
|
-
return l.addType(
|
|
965
|
-
isComponent: (s) =>
|
|
965
|
+
const { Components: l } = e, a = `${N}pagination`;
|
|
966
|
+
return l.addType(_, {
|
|
967
|
+
isComponent: (s) => E(s, a),
|
|
966
968
|
model: {
|
|
967
969
|
defaults: {
|
|
968
970
|
name: "Pagination",
|
|
@@ -985,12 +987,12 @@ const P = (e, l) => {
|
|
|
985
987
|
}
|
|
986
988
|
}
|
|
987
989
|
}), () => {
|
|
988
|
-
l.removeType(
|
|
990
|
+
l.removeType(_);
|
|
989
991
|
};
|
|
990
|
-
}, xe = "Scrollbar", Y = `${
|
|
992
|
+
}, xe = "Scrollbar", Y = `${N}scrollbar`, Le = (e) => {
|
|
991
993
|
const { Components: l } = e;
|
|
992
|
-
return l.addType(
|
|
993
|
-
isComponent: (a) =>
|
|
994
|
+
return l.addType(C, {
|
|
995
|
+
isComponent: (a) => E(a, Y),
|
|
994
996
|
model: {
|
|
995
997
|
defaults: {
|
|
996
998
|
name: xe,
|
|
@@ -1006,28 +1008,28 @@ const P = (e, l) => {
|
|
|
1006
1008
|
}
|
|
1007
1009
|
}
|
|
1008
1010
|
}), () => {
|
|
1009
|
-
l.removeType(
|
|
1011
|
+
l.removeType(C);
|
|
1010
1012
|
};
|
|
1011
|
-
}, ke = "Slide", X = `${
|
|
1013
|
+
}, ke = "Slide", X = `${N}slide`, Ae = (e) => {
|
|
1012
1014
|
const { Components: l } = e;
|
|
1013
1015
|
return l.addType(M, {
|
|
1014
|
-
isComponent: (a) =>
|
|
1016
|
+
isComponent: (a) => E(a, X),
|
|
1015
1017
|
model: {
|
|
1016
1018
|
defaults: {
|
|
1017
1019
|
name: ke,
|
|
1018
1020
|
classes: X,
|
|
1019
1021
|
icon: p.slider,
|
|
1020
|
-
draggable: (a, s) => s.is(
|
|
1022
|
+
draggable: (a, s) => s.is(k)
|
|
1021
1023
|
}
|
|
1022
1024
|
// TODO VIEW slide to this slide when selected
|
|
1023
1025
|
}
|
|
1024
1026
|
}), () => {
|
|
1025
1027
|
l.removeType(M);
|
|
1026
1028
|
};
|
|
1027
|
-
}, _e = "Wrapper", J = `${
|
|
1029
|
+
}, _e = "Wrapper", J = `${N}wrapper`, Ne = (e) => {
|
|
1028
1030
|
const { Components: l } = e, { events: a } = l;
|
|
1029
|
-
return l.addType(
|
|
1030
|
-
isComponent: (s) =>
|
|
1031
|
+
return l.addType(k, {
|
|
1032
|
+
isComponent: (s) => E(s, J),
|
|
1031
1033
|
model: {
|
|
1032
1034
|
defaults: {
|
|
1033
1035
|
name: _e,
|
|
@@ -1044,10 +1046,10 @@ const P = (e, l) => {
|
|
|
1044
1046
|
this.listenTo(s, "add remove", this.updateSlider);
|
|
1045
1047
|
},
|
|
1046
1048
|
updateSlider(s) {
|
|
1047
|
-
const
|
|
1048
|
-
if (
|
|
1049
|
-
const b =
|
|
1050
|
-
|
|
1049
|
+
const i = this.closestType(m);
|
|
1050
|
+
if (i) {
|
|
1051
|
+
const b = i.getView();
|
|
1052
|
+
i.reloadSlider(), this.em.once(a.scriptMount, () => {
|
|
1051
1053
|
setTimeout(() => {
|
|
1052
1054
|
var c;
|
|
1053
1055
|
return (c = b.getSwiper()) == null ? void 0 : c.slideTo(s.index());
|
|
@@ -1057,9 +1059,9 @@ const P = (e, l) => {
|
|
|
1057
1059
|
}
|
|
1058
1060
|
}
|
|
1059
1061
|
}), () => {
|
|
1060
|
-
l.removeType(
|
|
1062
|
+
l.removeType(k);
|
|
1061
1063
|
};
|
|
1062
|
-
},
|
|
1064
|
+
}, Ce = "swiperComponent", Me = L.startup, Oe = function(e, l = {}) {
|
|
1063
1065
|
const a = {
|
|
1064
1066
|
block: {},
|
|
1065
1067
|
cdnScript: "https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.js",
|
|
@@ -1068,7 +1070,7 @@ const P = (e, l) => {
|
|
|
1068
1070
|
}, s = [
|
|
1069
1071
|
Se(e, a),
|
|
1070
1072
|
Ee(e),
|
|
1071
|
-
|
|
1073
|
+
Ne(e),
|
|
1072
1074
|
Ae(e),
|
|
1073
1075
|
Te(e),
|
|
1074
1076
|
Le(e)
|
|
@@ -1077,9 +1079,9 @@ const P = (e, l) => {
|
|
|
1077
1079
|
editor: e,
|
|
1078
1080
|
plan: Me,
|
|
1079
1081
|
licenseKey: a.licenseKey,
|
|
1080
|
-
pluginName:
|
|
1082
|
+
pluginName: Ce,
|
|
1081
1083
|
cleanup: () => {
|
|
1082
|
-
s.forEach((
|
|
1084
|
+
s.forEach((i) => i());
|
|
1083
1085
|
}
|
|
1084
1086
|
});
|
|
1085
1087
|
}, Re = be(Oe);
|