@creaditor/newsletter-starterkit 1.0.7 → 1.0.9
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/6737.creaditor.bundle.js +4 -0
- package/dist/6737.creaditor.bundle.js.gz +0 -0
- package/dist/7988.creaditor.bundle.js +1 -1
- package/dist/7988.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +3 -2
- package/dist/creaditor.bundle.js.gz +0 -0
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.gz +0 -0
- package/package.json +1 -1
package/dist/creaditor.bundle.js
CHANGED
|
@@ -2263,7 +2263,7 @@
|
|
|
2263
2263
|
}
|
|
2264
2264
|
`),customElements.define("cdtr-inspector",ve);const xe=()=>{fe.h.get("injectEditor")(document.createElement("cdtr-inspector"))};function _e(){const t=ge.Z.getComponents().find((t=>"root"===t.type));t?ge.Z.clean().selectComponent(t):console.error("#1m56g9","root not found")}const ke=t=>(0,r.Z)("cdtr-col",(0,A.Z)({},t,{fitContent:!0}),(0,r.Z)("aside",{className:(0,k.Z)(B.root,"cdtr-plugin","no-select")},(0,r.Z)("div",{className:B.inner},(0,r.Z)("div",{className:B.advance},(0,r.Z)("paper-button",{tabindex:"0",onClick:()=>be.Z.dispatch("toggle-side-menu",{opened:!1}),className:B.toggleMenu},(0,r.Z)("cdtr-arrow-icon",{iconStyle:"fill:var(--text-dark-color)"})),(0,r.Z)("cdtr-tooltip",{delay:"500,0",content:"coming_soon"},(0,r.Z)("style",null,' #chat-button:after{\n content: attr(data-errors);\n position: absolute;\n top: 15%;\n right: 20%;\n background-color: red;\n color: white;\n border-radius: 999px;\n padding: 2px 5px;\n border-radius: 5px;\n font-size: 10px;\n background-color: red;\n display: none;\n font-weight: bold;\n min-width: 16px;\n text-align: center;\n line-height: 1.2;\n box-shadow: 0 2px 4px rgba(0,0,0,0.3);\n transform: scale(0);\n opacity: 0;\n transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);\n }\n \n #chat-button[data-errors]:not([data-errors="0"]):after {\n display: block;\n transform: scale(1);\n opacity: 1;\n animation: notificationPulse 0.6s ease-out;\n }\n \n @keyframes notificationPulse {\n 0% {\n transform: scale(0);\n opacity: 0;\n }\n 50% {\n transform: scale(1.2);\n opacity: 1;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n }\n \n #chat-button[data-errors]:not([data-errors="0"]):after:hover {\n transform: scale(1.1);\n box-shadow: 0 4px 8px rgba(0,0,0,0.4);\n }\n \n /* Shake animation for when notification value changes */\n #chat-button.shake-notification:after {\n animation: notificationShake 1.2s ease-in-out !important;\n }\n \n @keyframes notificationShake {\n 0%, 100% {\n transform: scale(1) translateX(0);\n }\n 10%, 30%, 50%, 70%, 90% {\n transform: scale(1) translateX(-2px);\n }\n 20%, 40%, 60%, 80% {\n transform: scale(1) translateX(2px);\n }\n }'),(0,r.Z)("paper-button",{tabindex:"0",id:"chat-button",ref:{onCreate:t=>{let e=0;setTimeout((()=>{ge.Z.on("detectErrors",(n=>{const r=n.buttons||[],i=n.images||[],o=n.links||[],s=r.length+i.length+o.length;s!==e&&e>0&&(t.classList.add("shake-notification"),setTimeout((()=>{t.classList.remove("shake-notification")}),500)),e=s,t.setAttribute("data-errors",s)}))}),0)}},onClick:xe},(0,r.Z)("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.Z)("g",{"clip-path":"url(#clip0_834_54)"},(0,r.Z)("path",{d:"M10.2917 4.87484L9.61466 3.38525L8.12508 2.70817L9.61466 2.03109L10.2917 0.541504L10.9688 2.03109L12.4584 2.70817L10.9688 3.38525L10.2917 4.87484ZM10.2917 12.4582L9.61466 10.9686L8.12508 10.2915L9.61466 9.61442L10.2917 8.12484L10.9688 9.61442L12.4584 10.2915L10.9688 10.9686L10.2917 12.4582ZM4.87508 10.8332L3.52091 7.854L0.541748 6.49984L3.52091 5.14567L4.87508 2.1665L6.22925 5.14567L9.20841 6.49984L6.22925 7.854L4.87508 10.8332Z",fill:"black"})),(0,r.Z)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M13.9836 7C13.9945 6.83474 14 6.66801 14 6.5C14 5.9863 13.9484 5.48466 13.85 5H23C23.5523 5 24 5.44772 24 6V20C24 20.5523 23.5523 21 23 21H8.45455L4 24.5V13.5732C4.63207 13.7966 5.30303 13.9377 6 13.9836V20.3851L7.76282 19H22V7H13.9836Z",fill:"black"}),(0,r.Z)("defs",null,(0,r.Z)("clipPath",{id:"clip0_834_54"},(0,r.Z)("rect",{width:"13",height:"13",fill:"white"})))))),(0,r.Z)("cdtr-tooltip",{delay:"500",placement:"bottom",content:"design pallete"},(0,r.Z)("paper-button",{tabindex:"0",onClick:_e,class:"add-button"},(0,r.Z)("cdtr-icon",{color:"black",icon:"design"})))),(0,r.Z)("cdtr-breadcrumbs",{style:{borderBottom:"1px solid #e9e9e9"},mainText:!0}),(0,r.Z)("design-factory",null)),(0,r.Z)(C,{style:{position:"absolute",bottom:"-15px",borderTop:"1px solid #dbdbdb"}})));var Ce=s(64110),Ee={};Ee.setAttributes=u(),Ee.insert=p().bind(null,"head"),Ee.domAPI=c(),Ee.insertStyleElement=m();o()(Ce.Z,Ee);const Se=Ce.Z&&Ce.Z.locals?Ce.Z.locals:void 0;var Be,Oe=s(19131),Me=s.n(Oe),Ie=s(98357),$e=s.n(Ie),Te=s(80594),Ne=s.n(Te),Le=s(17089),Re=s.n(Le),Pe=[],De="ResizeObserver loop completed with undelivered notifications.";!function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Be||(Be={}));var ze,He=function(t){return Object.freeze(t)},je=function(t,e){this.inlineSize=t,this.blockSize=e,He(this)},Ue=function(){function t(t,e,n,r){return this.x=t,this.y=e,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,He(this)}return t.prototype.toJSON=function(){var t=this;return{x:t.x,y:t.y,top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Ze=function(t){return t instanceof SVGElement&&"getBBox"in t},Fe=function(t){if(Ze(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,s=i.offsetHeight;return!(o||s||t.getClientRects().length)},Ve=function(t){var e;if(t instanceof Element)return!0;var n=null===(e=null==t?void 0:t.ownerDocument)||void 0===e?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Ye="undefined"!=typeof window?window:{},We=new WeakMap,qe=/auto|scroll/,Xe=/^tb|vertical/,Ge=/msie|trident/i.test(Ye.navigator&&Ye.navigator.userAgent),Ke=function(t){return parseFloat(t||"0")},Je=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new je((n?e:t)||0,(n?t:e)||0)},Qe=He({devicePixelContentBoxSize:Je(),borderBoxSize:Je(),contentBoxSize:Je(),contentRect:new Ue(0,0,0,0)}),tn=function(t,e){if(void 0===e&&(e=!1),We.has(t)&&!e)return We.get(t);if(Fe(t))return We.set(t,Qe),Qe;var n=getComputedStyle(t),r=Ze(t)&&t.ownerSVGElement&&t.getBBox(),i=!Ge&&"border-box"===n.boxSizing,o=Xe.test(n.writingMode||""),s=!r&&qe.test(n.overflowY||""),a=!r&&qe.test(n.overflowX||""),l=r?0:Ke(n.paddingTop),c=r?0:Ke(n.paddingRight),d=r?0:Ke(n.paddingBottom),p=r?0:Ke(n.paddingLeft),h=r?0:Ke(n.borderTopWidth),u=r?0:Ke(n.borderRightWidth),f=r?0:Ke(n.borderBottomWidth),m=p+c,g=l+d,b=(r?0:Ke(n.borderLeftWidth))+u,y=h+f,A=a?t.offsetHeight-y-t.clientHeight:0,w=s?t.offsetWidth-b-t.clientWidth:0,v=i?m+b:0,x=i?g+y:0,_=r?r.width:Ke(n.width)-v-w,k=r?r.height:Ke(n.height)-x-A,C=_+m+w+b,E=k+g+A+y,S=He({devicePixelContentBoxSize:Je(Math.round(_*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Je(C,E,o),contentBoxSize:Je(_,k,o),contentRect:new Ue(p,l,_,k)});return We.set(t,S),S},en=function(t,e,n){var r=tn(t,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case Be.DEVICE_PIXEL_CONTENT_BOX:return s;case Be.BORDER_BOX:return i;default:return o}},nn=function(t){var e=tn(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=He([e.borderBoxSize]),this.contentBoxSize=He([e.contentBoxSize]),this.devicePixelContentBoxSize=He([e.devicePixelContentBoxSize])},rn=function(t){if(Fe(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},on=function(){var t=1/0,e=[];Pe.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(e){var n=new nn(e.target),i=rn(e.target);r.push(n),e.lastReportedSize=en(e.target,e.observedBox),i<t&&(t=i)})),e.push((function(){n.callback.call(n.observer,r,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,r=e;n<r.length;n++){(0,r[n])()}return t},sn=function(t){Pe.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(n){n.isActive()&&(rn(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},an=function(){var t,e=0;for(sn(e);Pe.some((function(t){return t.activeTargets.length>0}));)e=on(),sn(e);return Pe.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:De}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=De),window.dispatchEvent(t)),e>0},ln=[],cn=function(t){if(!ze){var e=0,n=document.createTextNode("");new MutationObserver((function(){return ln.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),ze=function(){n.textContent="".concat(e?e--:e++)}}ln.push(t),ze()},dn=0,pn={attributes:!0,characterData:!0,childList:!0,subtree:!0},hn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],un=function(t){return void 0===t&&(t=0),Date.now()+t},fn=!1,mn=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!fn){fn=!0;var n,r=un(t);n=function(){var n=!1;try{n=an()}finally{if(fn=!1,t=r-un(),!dn)return;n?e.run(1e3):t>0?e.run(t):e.start()}},cn((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,pn)};document.body?e():Ye.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),hn.forEach((function(e){return Ye.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),hn.forEach((function(e){return Ye.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),gn=function(t){!dn&&t>0&&mn.start(),!(dn+=t)&&mn.stop()},bn=function(){function t(t,e){this.target=t,this.observedBox=e||Be.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=en(this.target,this.observedBox,!0);return t=this.target,Ze(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),yn=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},An=new WeakMap,wn=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},vn=function(){function t(){}return t.connect=function(t,e){var n=new yn(t,e);An.set(t,n)},t.observe=function(t,e,n){var r=An.get(t),i=0===r.observationTargets.length;wn(r.observationTargets,e)<0&&(i&&Pe.push(r),r.observationTargets.push(new bn(e,n&&n.box)),gn(1),mn.schedule())},t.unobserve=function(t,e){var n=An.get(t),r=wn(n.observationTargets,e),i=1===n.observationTargets.length;r>=0&&(i&&Pe.splice(Pe.indexOf(n),1),n.observationTargets.splice(r,1),gn(-1))},t.disconnect=function(t){var e=this,n=An.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),xn=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");vn.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ve(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");vn.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ve(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");vn.unobserve(this,t)},t.prototype.disconnect=function(){vn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const _n=function(t){const e=Array.prototype.reduce.call(t,((t,e)=>{const n=e.name.match(/data-amazingbar-(.+)/);if(n){const r=n[1].replace(/\W+(.)/g,((t,e)=>e.toUpperCase()));switch(e.value){case"true":t[r]=!0;break;case"false":t[r]=!1;break;case void 0:t[r]=!0;break;default:t[r]=e.value}}return t}),{});return e};function kn(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function Cn(t){return t&&t.ownerDocument?t.ownerDocument:document}let En=null,Sn=null;function Bn(t){if(null===En){const e=Cn(t);if(void 0===e)return En=0,En;const n=e.body,r=e.createElement("div");r.classList.add("amazingbar-hide-scrollbar"),n.appendChild(r);const i=r.getBoundingClientRect().right;n.removeChild(r),En=i}return En}Me()&&window.addEventListener("resize",(()=>{Sn!==window.devicePixelRatio&&(Sn=window.devicePixelRatio,En=null)}));class On{constructor(e,n){(0,t.Z)(this,"onScroll",(t=>{const e=kn(this.el);this.scrollXTicking||(e.requestAnimationFrame(this.scrollX),this.scrollXTicking=!0),this.scrollYTicking||(e.requestAnimationFrame(this.scrollY),this.scrollYTicking=!0),"function"==typeof this.options.onScroll&&this.options.onScroll(t);t=new Event("scroll");document.body.dispatchEvent(t)})),(0,t.Z)(this,"scrollX",(()=>{this.axis.x.isOverflowing&&(this.showScrollbar("x"),this.positionScrollbar("x")),this.scrollXTicking=!1})),(0,t.Z)(this,"scrollY",(()=>{this.axis.y.isOverflowing&&(this.showScrollbar("y"),this.positionScrollbar("y")),this.scrollYTicking=!1})),(0,t.Z)(this,"onMouseEnter",(()=>{this.showScrollbar("x"),this.showScrollbar("y")})),(0,t.Z)(this,"onMouseMove",(t=>{this.mouseX=t.clientX,this.mouseY=t.clientY,(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&this.onMouseMoveForAxis("x"),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&this.onMouseMoveForAxis("y")})),(0,t.Z)(this,"onMouseLeave",(()=>{this.onMouseMove.cancel(),(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&this.onMouseLeaveForAxis("x"),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&this.onMouseLeaveForAxis("y"),this.mouseX=-1,this.mouseY=-1})),(0,t.Z)(this,"onWindowResize",(()=>{this.scrollbarWidth=this.getScrollbarWidth(),this.hideNativeScrollbar()})),(0,t.Z)(this,"hideScrollbars",(()=>{this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),this.isWithinBounds(this.axis.y.track.rect)||(this.axis.y.scrollbar.el.classList.remove(this.classNames.visible),this.axis.y.isVisible=!1),this.isWithinBounds(this.axis.x.track.rect)||(this.axis.x.scrollbar.el.classList.remove(this.classNames.visible),this.axis.x.isVisible=!1)})),(0,t.Z)(this,"onPointerEvent",(t=>{let e,n;this.axis.x.track.rect=this.axis.x.track.el.getBoundingClientRect(),this.axis.y.track.rect=this.axis.y.track.el.getBoundingClientRect(),(this.axis.x.isOverflowing||this.axis.x.forceVisible)&&(e=this.isWithinBounds(this.axis.x.track.rect)),(this.axis.y.isOverflowing||this.axis.y.forceVisible)&&(n=this.isWithinBounds(this.axis.y.track.rect)),(e||n)&&(t.preventDefault(),t.stopPropagation(),"mousedown"===t.type&&(e&&(this.axis.x.scrollbar.rect=this.axis.x.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.x.scrollbar.rect)?this.onDragStart(t,"x"):this.onTrackClick(t,"x")),n&&(this.axis.y.scrollbar.rect=this.axis.y.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(this.axis.y.scrollbar.rect)?this.onDragStart(t,"y"):this.onTrackClick(t,"y"))))})),(0,t.Z)(this,"drag",(t=>{let e;const n=this.axis[this.draggedAxis].track,r=n.rect[this.axis[this.draggedAxis].sizeAttr],i=this.axis[this.draggedAxis].scrollbar,o=this.contentWrapperEl[this.axis[this.draggedAxis].scrollSizeAttr],s=parseInt(this.elStyles[this.axis[this.draggedAxis].sizeAttr],10);t.preventDefault(),t.stopPropagation(),e="y"===this.draggedAxis?t.pageY:t.pageX;let a=(e-n.rect[this.axis[this.draggedAxis].offsetAttr]-this.axis[this.draggedAxis].dragOffset)/(r-i.size)*(o-s);"x"===this.draggedAxis&&(a=this.isRtl&&On.getRtlHelpers().isRtlScrollbarInverted?a-(r+i.size):a,a=this.isRtl&&On.getRtlHelpers().isRtlScrollingInverted?-a:a),this.contentWrapperEl[this.axis[this.draggedAxis].scrollOffsetAttr]=a})),(0,t.Z)(this,"onEndDrag",(t=>{const e=Cn(this.el),n=kn(this.el);t.preventDefault(),t.stopPropagation(),this.el.classList.remove(this.classNames.dragging),e.removeEventListener("mousemove",this.drag,!0),e.removeEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId=n.setTimeout((()=>{e.removeEventListener("click",this.preventClick,!0),e.removeEventListener("dblclick",this.preventClick,!0),this.removePreventClickId=null}))})),(0,t.Z)(this,"preventClick",(t=>{t.preventDefault(),t.stopPropagation()})),this.el=e,this.minScrollbarWidth=20,this.options={...On.defaultOptions,...n},this.classNames={...On.defaultOptions.classNames,...this.options.classNames},this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,On.instances.has(this.el)||(this.recalculate=$e()(this.recalculate.bind(this),64),this.onMouseMove=$e()(this.onMouseMove.bind(this),64),this.hideScrollbars=Ne()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Ne()(this.onWindowResize.bind(this),64,{leading:!0}),On.getRtlHelpers=Re()(On.getRtlHelpers),this.init())}static getRtlHelpers(){const t=document.createElement("div");t.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';const e=t.firstElementChild;document.body.appendChild(e);const n=e.firstElementChild;e.scrollLeft=0;const r=On.getOffset(e),i=On.getOffset(n);e.scrollLeft=999;const o=On.getOffset(n);return{isRtlScrollingInverted:r.left!==i.left&&i.left-o.left!=0,isRtlScrollbarInverted:r.left!==i.left}}static getOffset(t){const e=t.getBoundingClientRect(),n=Cn(t),r=kn(t);return{top:e.top+(r.pageYOffset||n.documentElement.scrollTop),left:e.left+(r.pageXOffset||n.documentElement.scrollLeft)}}init(){On.instances.set(this.el,this),Me()&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())}initDOM(){if(Array.prototype.filter.call(this.el.children,(t=>t.classList.contains(this.classNames.wrapper))).length)this.wrapperEl=this.el.querySelector(`.${this.classNames.wrapper}`),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(`.${this.classNames.contentWrapper}`),this.contentEl=this.options.contentNode||this.el.querySelector(`.${this.classNames.contentEl}`),this.offsetEl=this.el.querySelector(`.${this.classNames.offset}`),this.maskEl=this.el.querySelector(`.${this.classNames.mask}`),this.placeholderEl=this.findChild(this.wrapperEl,`.${this.classNames.placeholder}`),this.heightAutoObserverWrapperEl=this.el.querySelector(`.${this.classNames.heightAutoObserverWrapperEl}`),this.heightAutoObserverEl=this.el.querySelector(`.${this.classNames.heightAutoObserverEl}`),this.axis.x.track.el=this.findChild(this.el,`.${this.classNames.track}.${this.classNames.horizontal}`),this.axis.y.track.el=this.findChild(this.el,`.${this.classNames.track}.${this.classNames.vertical}`);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){const t=document.createElement("div"),e=document.createElement("div");t.classList.add(this.classNames.track),e.classList.add(this.classNames.scrollbar),t.appendChild(e),this.axis.x.track.el=t.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=t.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector(`.${this.classNames.scrollbar}`),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector(`.${this.classNames.scrollbar}`),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-amazingbar","init")}setAccessibilityAttributes(){const t=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",t)}initListeners(){const t=kn(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((t=>{this.el.addEventListener(t,this.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((t=>{this.el.addEventListener(t,this.onPointerEvent,{capture:!0,passive:!0})})),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),t.addEventListener("resize",this.onWindowResize);let e=!1;const n=t.ResizeObserver||xn;this.resizeObserver=new n((()=>{e&&this.recalculate()})),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),t.requestAnimationFrame((()=>{e=!0})),this.mutationObserver=new t.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}recalculate(){const t=kn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl="rtl"===this.elStyles.direction;const e=this.heightAutoObserverEl.offsetHeight<=1,n=this.heightAutoObserverEl.offsetWidth<=1,r=this.contentEl.offsetWidth,i=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,s=this.elStyles.overflowY;this.contentEl.style.padding=`${this.elStyles.paddingTop} ${this.elStyles.paddingRight} ${this.elStyles.paddingBottom} ${this.elStyles.paddingLeft}`,this.wrapperEl.style.margin=`-${this.elStyles.paddingTop} -${this.elStyles.paddingRight} -${this.elStyles.paddingBottom} -${this.elStyles.paddingLeft}`;const a=this.contentEl.scrollHeight,l=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=e?"auto":"100%",this.placeholderEl.style.width=n?`${r}px`:"auto",this.placeholderEl.style.height=`${a}px`;const c=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=l>r,this.axis.y.isOverflowing=a>c,this.axis.x.isOverflowing="hidden"!==o&&this.axis.x.isOverflowing,this.axis.y.isOverflowing="hidden"!==s&&this.axis.y.isOverflowing,this.axis.x.forceVisible="x"===this.options.forceVisible||!0===this.options.forceVisible,this.axis.y.forceVisible="y"===this.options.forceVisible||!0===this.options.forceVisible,this.hideNativeScrollbar();let d=this.axis.x.isOverflowing?this.scrollbarWidth:0,p=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&l>i-p,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&a>c-d,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=`${this.axis.x.scrollbar.size}px`,this.axis.y.scrollbar.el.style.height=`${this.axis.y.scrollbar.size}px`,this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}getScrollbarSize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";if(!this.axis[t].isOverflowing)return 0;const e=this.contentEl[this.axis[t].scrollSizeAttr],n=this.axis[t].track.el[this.axis[t].offsetSizeAttr];let r,i=n/e;return r=Math.max(~~(i*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(r=Math.min(r,this.options.scrollbarMaxSize)),r}positionScrollbar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";if(!this.axis[t].isOverflowing)return;const e=this.contentWrapperEl[this.axis[t].scrollSizeAttr],n=this.axis[t].track.el[this.axis[t].offsetSizeAttr],r=parseInt(this.elStyles[this.axis[t].sizeAttr],10),i=this.axis[t].scrollbar;let o=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];o="x"===t&&this.isRtl&&On.getRtlHelpers().isRtlScrollingInverted?-o:o;let s=o/(e-r),a=~~((n-i.size)*s);a="x"===t&&this.isRtl&&On.getRtlHelpers().isRtlScrollbarInverted?a+(n-i.size):a,i.el.style.transform="x"===t?`translate3d(${a}px, 0, 0)`:`translate3d(0, ${a}px, 0)`}toggleTrackVisibility(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";const e=this.axis[t].track.el,n=this.axis[t].scrollbar.el;this.axis[t].isOverflowing||this.axis[t].forceVisible?(e.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll"):(e.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden"),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none"}hideNativeScrollbar(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?`-${this.scrollbarWidth}px`:0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?`-${this.scrollbarWidth}px`:0}onMouseMoveForAxis(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.rect=this.axis[t].track.el.getBoundingClientRect(),this.axis[t].scrollbar.rect=this.axis[t].scrollbar.el.getBoundingClientRect();this.isWithinBounds(this.axis[t].scrollbar.rect)?this.axis[t].scrollbar.el.classList.add(this.classNames.hover):this.axis[t].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[t].track.rect)?(this.showScrollbar(t),this.axis[t].track.el.classList.add(this.classNames.hover)):this.axis[t].track.el.classList.remove(this.classNames.hover)}onMouseLeaveForAxis(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y";this.axis[t].track.el.classList.remove(this.classNames.hover),this.axis[t].scrollbar.el.classList.remove(this.classNames.hover)}showScrollbar(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"y",e=this.axis[t].scrollbar.el;this.axis[t].isVisible||(e.classList.add(this.classNames.visible),this.axis[t].isVisible=!0),this.options.autoHide&&this.hideScrollbars()}onDragStart(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";const n=Cn(this.el),r=kn(this.el),i=this.axis[e].scrollbar,o="y"===e?t.pageY:t.pageX;this.axis[e].dragOffset=o-i.rect[this.axis[e].offsetAttr],this.draggedAxis=e,this.el.classList.add(this.classNames.dragging),n.addEventListener("mousemove",this.drag,!0),n.addEventListener("mouseup",this.onEndDrag,!0),null===this.removePreventClickId?(n.addEventListener("click",this.preventClick,!0),n.addEventListener("dblclick",this.preventClick,!0)):(r.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)}onTrackClick(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";if(!this.options.clickOnTrack)return;const n=kn(this.el);this.axis[e].scrollbar.rect=this.axis[e].scrollbar.el.getBoundingClientRect();const r=this.axis[e].scrollbar.rect[this.axis[e].offsetAttr],i=parseInt(this.elStyles[this.axis[e].sizeAttr],10);let o=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];const s=("y"===e?this.mouseY-r:this.mouseX-r)<0?-1:1,a=-1===s?o-i:o+i,l=()=>{-1===s?o>a&&(o-=this.options.clickOnTrackSpeed,this.contentWrapperEl.scrollTo({[this.axis[e].offsetAttr]:o}),n.requestAnimationFrame(l)):o<a&&(o+=this.options.clickOnTrackSpeed,this.contentWrapperEl.scrollTo({[this.axis[e].offsetAttr]:o}),n.requestAnimationFrame(l))};l()}getContentElement(){return this.contentEl}getScrollElement(){return this.contentWrapperEl}getScrollbarWidth(){try{return"none"===getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Bn(this.el)}catch(t){return Bn(this.el)}}removeListeners(){const t=kn(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach((t=>{this.el.removeEventListener(t,this.onPointerEvent,!0)})),["touchstart","touchend","touchmove"].forEach((t=>{this.el.removeEventListener(t,this.onPointerEvent,{capture:!0,passive:!0})})),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()}unMount(){this.removeListeners(),On.instances.delete(this.el)}isWithinBounds(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height}findChild(t,e){const n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,(t=>n.call(t,e)))[0]}}(0,t.Z)(On,"defaultOptions",{autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"amazingbar-content",contentWrapper:"amazingbar-content-wrapper",offset:"amazingbar-offset",mask:"amazingbar-mask",wrapper:"amazingbar-wrapper",placeholder:"amazingbar-placeholder",scrollbar:"amazingbar-scrollbar",track:"amazingbar-track",heightAutoObserverWrapperEl:"amazingbar-height-auto-observer-wrapper",heightAutoObserverEl:"amazingbar-height-auto-observer",visible:"amazingbar-visible",horizontal:"amazingbar-horizontal",vertical:"amazingbar-vertical",hover:"amazingbar-hover",dragging:"amazingbar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3}),(0,t.Z)(On,"instances",new WeakMap),On.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-amazingbar]"),(t=>{"init"===t.getAttribute("data-amazingbar")||On.instances.has(t)||new On(t,_n(t.attributes))}))},On.removeObserver=function(){this.globalObserver.disconnect()},On.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(On.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))},On.handleMutations=t=>{t.forEach((t=>{Array.prototype.forEach.call(t.addedNodes,(t=>{1===t.nodeType&&(t.hasAttribute("data-amazingbar")?!On.instances.has(t)&&document.documentElement.contains(t)&&new On(t,_n(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-amazingbar]"),(function(t){"init"!==t.getAttribute("data-amazingbar")&&!On.instances.has(t)&&document.documentElement.contains(t)&&new On(t,_n(t.attributes))})))})),Array.prototype.forEach.call(t.removedNodes,(t=>{1===t.nodeType&&("init"===t.getAttribute("data-amazingbar")?On.instances.has(t)&&!document.documentElement.contains(t)&&On.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-amazingbar="init"]'),(t=>{On.instances.has(t)&&!document.documentElement.contains(t)&&On.instances.get(t).unMount()})))}))}))},On.getOptions=_n,Me()&&On.initHtmlApi();const Mn=On;var In=s(9571);const $n=t=>{const{id:e="style-"+(0,In.Z)(),parentNode:n=document.body,isImportant:r=!0,context:i}=t;let o;function s(t,e){const n=[];return n.push(t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),n.push(":"),n.push(e||'""'),n.push(r?" !important;":";"),n.join("")}return e&&(o=document.getElementById(e)),o||(o=document.createElement("style"),o.id=e),o.innerHTML=(t=>{const e=[];for(const n in t)if(Object.hasOwnProperty.call(t,n)){const r=t[n];e.push(n),e.push("{");for(const t in r)if(Object.hasOwnProperty.call(r,t)){const n=s(t,r[t]);e.push(n)}e.push("}")}return e.join("")})(i),n.appendChild(o),e},Tn=t=>{const{children:e}=t,n=t=>{requestAnimationFrame((()=>{be.Z.dispatch("onScroll",t),ge.Z.app.dispatch("onScroll",t);var e=new Event("scroll");window.dispatchEvent(e)}))},i=(0,r.Z)("div",{className:Se.childrenHolder},e),o=()=>{const t=l.querySelector("#main-page--cdtr").getBoundingClientRect();let e=t.width;if(0===e)return setTimeout((()=>{o()}),1e3);t.width>document.body.offsetWidth&&(e=document.body.offsetWidth);document.createElement("style");$n({id:"page-max-width",context:{"[data-type='text'], [data-type='block'], [data-type='section']":{maxWidth:e+"px"}}})};window.addEventListener("resize",(()=>{requestAnimationFrame((()=>{o()}))}));const s=fe.h.get("config","pageWidth"),a=fe.h.get("config","channel"),l=(0,r.Z)("div",{style:{top:"newsletter"===a?"20px":"15px",width:s?s+"px":null,maxWidth:"100%"},id:"main-page-wrapper",onScroll:n,className:Se.root},(0,r.Z)("div",{ref:{onMount:()=>{setTimeout((()=>{o(),ge.Z.dispatch("change")}),0)}},className:Se.wrapper,id:"main-page--cdtr"},i),(0,r.Z)("noscript",null,(0,r.Z)("style",null," .amazingbar-content-wrapper {\n overflow: auto;\n }")));return setTimeout((()=>{new Mn(l,{onScroll:n,autoHide:!0,autoHideTimeout:1e3})}),500),l};var Nn=s(22401);class Ln extends me.oi{constructor(){super(),this.width=0}createRenderRoot(){return this}render(){const t=`\n .container {\n width: 100%;\n margin-right: auto;\n margin-left: auto;\n display: flex;\n flex-wrap: wrap;\n }\n \n @media (min-width: 576px) {\n .container {\n max-width: 540px;\n }\n }\n @media (min-width: 768px) {\n .container {\n max-width: 720px;\n }\n }\n @media (min-width: 992px) {\n .container {\n max-width: calc(960px - ${this.width/2}px);\n }\n }\n @media (min-width: 1200px) {\n .container {\n max-width: calc(1140px - ${this.width}px);\n }\n }\n @media (min-width: 1400px) {\n .container {\n max-width: calc(1320px - ${this.width}px);\n }\n }\n \n `;return me.dy`<style>
|
|
2265
2265
|
${t}
|
|
2266
|
-
</style>`}}(0,t.Z)(Ln,"properties",{width:{type:Number,reflect:!0}}),customElements.define("cdtr-container-style",Ln);var Rn=s(97278);var Pn=s(84817),Dn=Date.now(),zn="fnValues"+Dn,Hn="fnStyle"+ ++Dn;const jn=function(){return{onCreateRule:function(t,e,n){if("function"!=typeof e)return null;var r=(0,Pn.JH)(t,{},n);return r[Hn]=e,r},onProcessStyle:function(t,e){if(zn in e||Hn in e)return t;var n={};for(var r in t){var i=t[r];"function"==typeof i&&(delete t[r],n[r]=i)}return e[zn]=n,t},onUpdate:function(t,e,n,r){var i=e,o=i[Hn];o&&(i.style=o(t)||{});var s=i[zn];if(s)for(var a in s)i.prop(a,s[a](t),r)}}};var Un=s(7288),Zn=function(t){return t&&t[Un.Z]&&t===t[Un.Z]()};const Fn=function(t){return{onCreateRule:function(e,n,r){if(!Zn(n))return null;var i=n,o=(0,Pn.JH)(e,{},r);return i.subscribe((function(e){for(var n in e)o.prop(n,e[n],t)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var n=e,r=n.style,i=function(e){var i=r[e];if(!Zn(i))return"continue";delete r[e],i.subscribe({next:function(r){n.prop(e,r,t)}})};for(var o in r)i(o)}}}};var Vn=/;\n/,Yn=function(t){"string"==typeof t.style&&(t.style=function(t){for(var e={},n=t.split(Vn),r=0;r<n.length;r++){var i=(n[r]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();e[s]=a}}}return e}(t.style))};const Wn=function(){return{onProcessRule:Yn}};var qn="@global",Xn="@global ",Gn=function(){function t(t,e,n){for(var r in this.type="global",this.at=qn,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new Pn.RB((0,A.Z)({},n,{parent:this})),e)this.rules.add(r,e[r]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.addRule=function(t,e,n){var r=this.rules.add(t,e,n);return r&&this.options.jss.plugins.onProcessRule(r),r},e.replaceRule=function(t,e,n){var r=this.rules.replace(t,e,n);return r&&this.options.jss.plugins.onProcessRule(r),r},e.indexOf=function(t){return this.rules.indexOf(t)},e.toString=function(t){return this.rules.toString(t)},t}(),Kn=function(){function t(t,e,n){this.type="global",this.at=qn,this.isProcessed=!1,this.key=t,this.options=n;var r=t.substr(Xn.length);this.rule=n.jss.createRule(r,e,(0,A.Z)({},n,{parent:this}))}return t.prototype.toString=function(t){return this.rule?this.rule.toString(t):""},t}(),Jn=/\s*,\s*/g;function Qn(t,e){for(var n=t.split(Jn),r="",i=0;i<n.length;i++)r+=e+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const tr=function(){return{onCreateRule:function(t,e,n){if(!t)return null;if(t===qn)return new Gn(t,e,n);if("@"===t[0]&&t.substr(0,Xn.length)===Xn)return new Kn(t,e,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=t),null},onProcessRule:function(t,e){"style"===t.type&&e&&(function(t,e){var n=t.options,r=t.style,i=r?r[qn]:null;if(i){for(var o in i)e.addRule(o,i[o],(0,A.Z)({},n,{selector:Qn(o,t.selector)}));delete r[qn]}}(t,e),function(t,e){var n=t.options,r=t.style;for(var i in r)if("@"===i[0]&&i.substr(0,qn.length)===qn){var o=Qn(i.substr(qn.length),t.selector);e.addRule(o,r[i],(0,A.Z)({},n,{selector:o})),delete r[i]}}(t,e))}}};var er=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},nr="extendCurrValue"+Date.now();function rr(t,e,n,r){return void 0===r&&(r={}),function(t,e,n,r){if("string"!=typeof t.extend)if(Array.isArray(t.extend))for(var i=0;i<t.extend.length;i++){var o=t.extend[i];rr("string"==typeof o?(0,A.Z)({},t,{extend:o}):t.extend[i],e,n,r)}else for(var s in t.extend)"extend"!==s?er(t.extend[s])?(s in r||(r[s]={}),rr(t.extend[s],e,n,r[s])):r[s]=t.extend[s]:rr(t.extend.extend,e,n,r);else{if(!n)return;var a=n.getRule(t.extend);if(!a)return;if(a===e)return;var l=a.options.parent;l&&rr(l.rules.raw[t.extend],e,n,r)}}(t,e,n,r),function(t,e,n,r){for(var i in t)"extend"!==i&&(er(r[i])&&er(t[i])?rr(t[i],e,n,r[i]):er(t[i])?r[i]=rr(t[i],e,n):r[i]=t[i])}(t,e,n,r),r}const ir=function(){return{onProcessStyle:function(t,e,n){return"extend"in t?rr(t,e,n):t},onChangeValue:function(t,e,n){if("extend"!==e)return t;if(null==t||!1===t){for(var r in n[nr])n.prop(r,null);return n[nr]=null,null}if("object"==typeof t){for(var i in t)n.prop(i,t[i]);n[nr]=t}return null}}};var or=/\s*,\s*/g,sr=/&/g,ar=/\$([\w-]+)/g;const lr=function(){function t(t,e){return function(n,r){var i=t.getRule(r)||e&&e.getRule(r);return i?i.selector:r}}function e(t,e){for(var n=e.split(or),r=t.split(or),i="",o=0;o<n.length;o++)for(var s=n[o],a=0;a<r.length;a++){var l=r[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(sr,s):s+" "+l}return i}function n(t,e,n){if(n)return(0,A.Z)({},n,{index:n.index+1});var r=t.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,A.Z)({},t.options,{nestingLevel:r,index:e.indexOf(t)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var s,a,l=i,c=l.options.parent;for(var d in r){var p=-1!==d.indexOf("&"),h="@"===d[0];if(p||h){if(s=n(l,c,s),p){var u=e(d,l.selector);a||(a=t(c,o)),u=u.replace(ar,a);var f=l.key+"-"+d;"replaceRule"in c?c.replaceRule(f,r[d],(0,A.Z)({},s,{selector:u})):c.addRule(f,r[d],(0,A.Z)({},s,{selector:u}))}else h&&c.addRule(d,{},s).addRule(l.key,r[d],{selector:l.selector});delete r[d]}}return r}}};function cr(t,e){if(!e)return!0;if(Array.isArray(e)){for(var n=0;n<e.length;n++){if(!cr(t,e[n]))return!1}return!0}if(e.indexOf(" ")>-1)return cr(t,e.split(" "));var r=t.options.parent;if("$"===e[0]){var i=r.getRule(e.substr(1));return!!i&&(i!==t&&(r.classes[t.key]+=" "+r.classes[i.key],!0))}return r.classes[t.key]+=" "+e,!0}const dr=function(){return{onProcessStyle:function(t,e){return"composes"in t?(cr(e,t.composes),delete t.composes,t):t}}};var pr=s(78529),hr=Pn.HZ&&CSS?CSS.px:"px",ur=Pn.HZ&&CSS?CSS.ms:"ms",fr=Pn.HZ&&CSS?CSS.percent:"%";function mr(t){var e=/(-[a-z])/g,n=function(t){return t[1].toUpperCase()},r={};for(var i in t)r[i]=t[i],r[i.replace(e,n)]=t[i];return r}var gr=mr({"animation-delay":ur,"animation-duration":ur,"background-position":hr,"background-position-x":hr,"background-position-y":hr,"background-size":hr,border:hr,"border-bottom":hr,"border-bottom-left-radius":hr,"border-bottom-right-radius":hr,"border-bottom-width":hr,"border-left":hr,"border-left-width":hr,"border-radius":hr,"border-right":hr,"border-right-width":hr,"border-top":hr,"border-top-left-radius":hr,"border-top-right-radius":hr,"border-top-width":hr,"border-width":hr,"border-block":hr,"border-block-end":hr,"border-block-end-width":hr,"border-block-start":hr,"border-block-start-width":hr,"border-block-width":hr,"border-inline":hr,"border-inline-end":hr,"border-inline-end-width":hr,"border-inline-start":hr,"border-inline-start-width":hr,"border-inline-width":hr,"border-start-start-radius":hr,"border-start-end-radius":hr,"border-end-start-radius":hr,"border-end-end-radius":hr,margin:hr,"margin-bottom":hr,"margin-left":hr,"margin-right":hr,"margin-top":hr,"margin-block":hr,"margin-block-end":hr,"margin-block-start":hr,"margin-inline":hr,"margin-inline-end":hr,"margin-inline-start":hr,padding:hr,"padding-bottom":hr,"padding-left":hr,"padding-right":hr,"padding-top":hr,"padding-block":hr,"padding-block-end":hr,"padding-block-start":hr,"padding-inline":hr,"padding-inline-end":hr,"padding-inline-start":hr,"mask-position-x":hr,"mask-position-y":hr,"mask-size":hr,height:hr,width:hr,"min-height":hr,"max-height":hr,"min-width":hr,"max-width":hr,bottom:hr,left:hr,top:hr,right:hr,inset:hr,"inset-block":hr,"inset-block-end":hr,"inset-block-start":hr,"inset-inline":hr,"inset-inline-end":hr,"inset-inline-start":hr,"box-shadow":hr,"text-shadow":hr,"column-gap":hr,"column-rule":hr,"column-rule-width":hr,"column-width":hr,"font-size":hr,"font-size-delta":hr,"letter-spacing":hr,"text-decoration-thickness":hr,"text-indent":hr,"text-stroke":hr,"text-stroke-width":hr,"word-spacing":hr,motion:hr,"motion-offset":hr,outline:hr,"outline-offset":hr,"outline-width":hr,perspective:hr,"perspective-origin-x":fr,"perspective-origin-y":fr,"transform-origin":fr,"transform-origin-x":fr,"transform-origin-y":fr,"transform-origin-z":fr,"transition-delay":ur,"transition-duration":ur,"vertical-align":hr,"flex-basis":hr,"shape-margin":hr,size:hr,gap:hr,grid:hr,"grid-gap":hr,"row-gap":hr,"grid-row-gap":hr,"grid-column-gap":hr,"grid-template-rows":hr,"grid-template-columns":hr,"grid-auto-rows":hr,"grid-auto-columns":hr,"box-shadow-x":hr,"box-shadow-y":hr,"box-shadow-blur":hr,"box-shadow-spread":hr,"font-line-height":hr,"text-shadow-x":hr,"text-shadow-y":hr,"text-shadow-blur":hr});function br(t,e,n){if(null==e)return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=br(t,e[r],n);else if("object"==typeof e)if("fallbacks"===t)for(var i in e)e[i]=br(i,e[i],n);else for(var o in e)e[o]=br(t+"-"+o,e[o],n);else if("number"==typeof e&&!1===isNaN(e)){var s=n[t]||gr[t];return!s||0===e&&s===hr?e.toString():"function"==typeof s?s(e).toString():""+e+s}return e}const yr=function(t){void 0===t&&(t={});var e=mr(t);return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=br(r,t[r],e);return t},onChangeValue:function(t,n){return br(n,t,e)}}};var Ar={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},wr={position:!0,size:!0},vr={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},xr={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function _r(t,e,n,r){return null==n[e]?t:0===t.length?[]:Array.isArray(t[0])?_r(t[0],e,n,r):"object"==typeof t[0]?function(t,e,n){return t.map((function(t){return kr(t,e,n,!1,!0)}))}(t,e,r):[t]}function kr(t,e,n,r,i){if(!vr[e]&&!xr[e])return[];var o=[];if(xr[e]&&(t=function(t,e,n,r){for(var i in n){var o=n[i];if(void 0!==t[i]&&(r||!e.prop(o))){var s,a=Cr((s={},s[o]=t[i],s),e)[o];r?e.style.fallbacks[o]=a:e.style[o]=a}delete t[i]}return t}(t,n,xr[e],r)),Object.keys(t).length)for(var s in vr[e])t[s]?Array.isArray(t[s])?o.push(null===wr[s]?t[s]:t[s].join(" ")):o.push(t[s]):null!=vr[e][s]&&o.push(vr[e][s]);return!o.length||i?o:[o]}function Cr(t,e,n){for(var r in t){var i=t[r];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===r){for(var o=0;o<t.fallbacks.length;o++)t.fallbacks[o]=Cr(t.fallbacks[o],e,!0);continue}t[r]=_r(i,r,Ar,e),t[r].length||delete t[r]}}else if("object"==typeof i){if("fallbacks"===r){t.fallbacks=Cr(t.fallbacks,e,!0);continue}t[r]=kr(i,r,e,n),t[r].length||delete t[r]}else""===t[r]&&delete t[r]}return t}const Er=function(){return{onProcessStyle:function(t,e){if(!t||"style"!==e.type)return t;if(Array.isArray(t)){for(var n=0;n<t.length;n++)t[n]=Cr(t[n],e);return t}return Cr(t,e)}}};var Sr=s(20653);function Br(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Or(t){return function(t){if(Array.isArray(t))return Br(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Br(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Br(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mr="",Ir="",$r="",Tr="",Nr=Sr.Z&&"ontouchstart"in document.documentElement;if(Sr.Z){var Lr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rr=document.createElement("p").style;for(var Pr in Lr)if(Pr+"Transform"in Rr){Mr=Pr,Ir=Lr[Pr];break}"Webkit"===Mr&&"msHyphens"in Rr&&(Mr="ms",Ir=Lr.ms,Tr="edge"),"Webkit"===Mr&&"-apple-trailing-word"in Rr&&($r="apple")}var Dr={js:Mr,css:Ir,vendor:$r,browser:Tr,isTouch:Nr};var zr={noPrefill:["appearance"],supportedProperty:function(t){return"appearance"===t&&("ms"===Dr.js?"-webkit-"+t:Dr.css+t)}},Hr={noPrefill:["color-adjust"],supportedProperty:function(t){return"color-adjust"===t&&("Webkit"===Dr.js?Dr.css+"print-"+t:t)}},jr=/[-\s]+(.)?/g;function Ur(t,e){return e?e.toUpperCase():""}function Zr(t){return t.replace(jr,Ur)}function Fr(t){return Zr("-"+t)}var Vr,Yr={noPrefill:["mask"],supportedProperty:function(t,e){if(!/^mask/.test(t))return!1;if("Webkit"===Dr.js){var n="mask-image";if(Zr(n)in e)return t;if(Dr.js+Fr(n)in e)return Dr.css+t}return t}},Wr={noPrefill:["text-orientation"],supportedProperty:function(t){return"text-orientation"===t&&("apple"!==Dr.vendor||Dr.isTouch?t:Dr.css+t)}},qr={noPrefill:["transform"],supportedProperty:function(t,e,n){return"transform"===t&&(n.transform?t:Dr.css+t)}},Xr={noPrefill:["transition"],supportedProperty:function(t,e,n){return"transition"===t&&(n.transition?t:Dr.css+t)}},Gr={noPrefill:["writing-mode"],supportedProperty:function(t){return"writing-mode"===t&&("Webkit"===Dr.js||"ms"===Dr.js&&"edge"!==Dr.browser?Dr.css+t:t)}},Kr={noPrefill:["user-select"],supportedProperty:function(t){return"user-select"===t&&("Moz"===Dr.js||"ms"===Dr.js||"apple"===Dr.vendor?Dr.css+t:t)}},Jr={supportedProperty:function(t,e){return!!/^break-/.test(t)&&("Webkit"===Dr.js?"WebkitColumn"+Fr(t)in e&&Dr.css+"column-"+t:"Moz"===Dr.js&&("page"+Fr(t)in e&&"page-"+t))}},Qr={supportedProperty:function(t,e){if(!/^(border|margin|padding)-inline/.test(t))return!1;if("Moz"===Dr.js)return t;var n=t.replace("-inline","");return Dr.js+Fr(n)in e&&Dr.css+n}},ti={supportedProperty:function(t,e){return Zr(t)in e&&t}},ei={supportedProperty:function(t,e){var n=Fr(t);return"-"===t[0]||"-"===t[0]&&"-"===t[1]?t:Dr.js+n in e?Dr.css+t:"Webkit"!==Dr.js&&"Webkit"+n in e&&"-webkit-"+t}},ni={supportedProperty:function(t){return"scroll-snap"===t.substring(0,11)&&("ms"===Dr.js?""+Dr.css+t:t)}},ri={supportedProperty:function(t){return"overscroll-behavior"===t&&("ms"===Dr.js?Dr.css+"scroll-chaining":t)}},ii={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},oi={supportedProperty:function(t,e){var n=ii[t];return!!n&&(Dr.js+Fr(n)in e&&Dr.css+n)}},si={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ai=Object.keys(si),li=function(t){return Dr.css+t},ci={supportedProperty:function(t,e,n){var r=n.multiple;if(ai.indexOf(t)>-1){var i=si[t];if(!Array.isArray(i))return Dr.js+Fr(i)in e&&Dr.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Dr.js+Fr(i[0])in e))return!1;return i.map(li)}return!1}},di=[zr,Hr,Yr,Wr,qr,Xr,Gr,Kr,Jr,Qr,ti,ei,ni,ri,oi,ci],pi=di.filter((function(t){return t.supportedProperty})).map((function(t){return t.supportedProperty})),hi=di.filter((function(t){return t.noPrefill})).reduce((function(t,e){return t.push.apply(t,Or(e.noPrefill)),t}),[]),ui={};if(Sr.Z){Vr=document.createElement("p");var fi=window.getComputedStyle(document.documentElement,"");for(var mi in fi)isNaN(mi)||(ui[fi[mi]]=fi[mi]);hi.forEach((function(t){return delete ui[t]}))}function gi(t,e){if(void 0===e&&(e={}),!Vr)return t;if(null!=ui[t])return ui[t];"transition"!==t&&"transform"!==t||(e[t]=t in Vr.style);for(var n=0;n<pi.length&&(ui[t]=pi[n](t,Vr.style,e),!ui[t]);n++);try{Vr.style[t]=""}catch(t){return!1}return ui[t]}var bi,yi={},Ai={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},wi=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function vi(t,e,n){if("var"===e)return"var";if("all"===e)return"all";if("all"===n)return", all";var r=e?gi(e):", "+gi(n);return r||(e||n)}function xi(t,e){var n=e;if(!bi||"content"===t)return e;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=t+n;if(null!=yi[r])return yi[r];try{bi.style[t]=n}catch(t){return yi[r]=!1,!1}if(Ai[t])n=n.replace(wi,vi);else if(""===bi.style[t]&&("-ms-flex"===(n=Dr.css+n)&&(bi.style[t]="-ms-flexbox"),bi.style[t]=n,""===bi.style[t]))return yi[r]=!1,!1;return bi.style[t]="",yi[r]=n,yi[r]}Sr.Z&&(bi=document.createElement("p"));const _i=function(){function t(e){for(var n in e){var r=e[n];if("fallbacks"===n&&Array.isArray(r))e[n]=r.map(t);else{var i=!1,o=gi(n);o&&o!==n&&(i=!0);var s=!1,a=xi(o,(0,Pn.EK)(r));a&&a!==r&&(s=!0),(i||s)&&(i&&delete e[n],e[o||n]=a||r)}}return e}return{onProcessRule:function(t){if("keyframes"===t.type){var e=t;e.at=function(t){return"-"===t[1]||"ms"===Dr.js?t:"@"+Dr.css+"keyframes"+t.substr(10)}(e.at)}},onProcessStyle:function(e,n){return"style"!==n.type?e:t(e)},onChangeValue:function(t,e){return xi(e,(0,Pn.EK)(t))||t}}};const ki=function(){var t=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length};return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)r[i[o]]=e[i[o]];return r}}};const Ci=function(t){return void 0===t&&(t={}),{plugins:[jn(),Fn(t.observable),Wn(),tr(),ir(),lr(),dr(),(0,pr.Z)(),yr(t.defaultUnit),Er(),_i(),ki()]}},Ei=()=>({element:null});var Si=s(72499),Bi={};Bi.setAttributes=u(),Bi.insert=p().bind(null,"head"),Bi.domAPI=c(),Bi.insertStyleElement=m();o()(Si.Z,Bi);Si.Z&&Si.Z.locals&&Si.Z.locals;class Oi{constructor(e,n){(0,t.Z)(this,"createResizer",(t=>{const e=document.createElement("div");return e.className=t,e.classList.add("resizer"),e}));const{keepRatio:r,container:i=document.body,onResize:o,minWidth:s,rotate:a}=n;this.querySelector=e,this.keepRatio=r,this.container=i,this.isImage=!1,this.rotate=a,this.canKeepRatio=!1,this.mounted=!1,this.onResize=o,this.minimum_size=s,this.resizers=[],this.clickedResizer=null,this.element,this.isMouseDown=!1,this.original_width=0,this.original_height=0,this.original_x=0,this.original_y=0,this.original_mouse_x=0,this.original_mouse_y=0,this.onDraggable=this.onDraggable.bind(this),this.resize=this.resize.bind(this),this.stopResize=this.stopResize.bind(this),this.onClickedTarget=this.onClickedTarget.bind(this),this.rePosition=this.rePosition.bind(this),this.init=this.init.bind(this),this.onClickResizer=this.onClickResizer.bind(this),this.init()}onClickResizer(t){this.clickedResizer=t.target,t.preventDefault(),this.isMouseDown=!0;const e=this.element.getBoundingClientRect();this.original_width=parseFloat(e.width),this.original_height=parseFloat(e.height),this.original_x=this.element.getBoundingClientRect().left,this.original_y=this.element.getBoundingClientRect().top,this.original_mouse_x=t.pageX,this.original_mouse_y=t.pageY,window.addEventListener("mousemove",this.resize),window.addEventListener("mouseup",this.stopResize)}createSizePreview(){const t=document.createElement("div");return t.classList.add("size-preview"),t}createImageRatioResizer(){const t=document.createElement("div");return t.classList.add("img-ratio-resizer"),t.classList.add("bottom-right"),t}createBorder(t){const e=document.createElement("div");if(e.classList.add("resizable-border"),e.classList.add(t),"bottom"===t){const t=document.createElement("div");t.classList.add("bottom-ruler"),e.appendChild(t)}if("top"===t){const t=document.createElement("div");t.classList.add("top-ruler"),e.appendChild(t)}if("left"===t){const t=document.createElement("div");t.classList.add("left-ruler"),e.appendChild(t)}if("right"===t){const t=document.createElement("div");t.classList.add("right-ruler"),e.appendChild(t)}return e}init(){this.sizePreview=this.createSizePreview(),this.imageRatioResizer=this.createImageRatioResizer(),this.imageRatioResizer.addEventListener("mousedown",this.onClickResizer),this.borders=[this.createBorder("left"),this.createBorder("right"),this.createBorder("bottom"),this.createBorder("top")];const t=this.resizers=[this.createResizer("left-center"),this.createResizer("right-center"),this.createResizer("bottom-left"),this.createResizer("bottom-right"),this.createResizer("top-right"),this.createResizer("top-left")];this.rotate&&t.push(this.createResizer("rotate"));for(let e=0;e<t.length;e++)t[e].addEventListener("mousedown",this.onClickResizer);window.addEventListener("mousedown",this.onClickedTarget)}onDraggable(t){this.stopResize(t)}onClickedTarget(t){if(this.isMouseDown)return;let e=t.target;const n=t.path?t.path:t.composedPath&&t.composedPath();Array.isArray(n)&&n.length>0&&(e=n[0]);for(let t=0;t<this.resizers.length;t++){const n=this.resizers[t];if(e.closest("."+n.className.split(" ").join(".")))return}const r=e.closest(this.querySelector);r?(this.stopResize(t),this.mounted=!0,this.canKeepRatio=!1,this.isImage=!1,this.isImage?(document.body.appendChild(this.imageRatioResizer),this.resizers.forEach((t=>t.remove()))):(this.resizers.forEach((t=>document.body.appendChild(t))),this.imageRatioResizer.remove()),this.borders.forEach((t=>document.body.appendChild(t))),this.element=r,this.element.addEventListener("drag",this.onDraggable),this.rePosition(),this.container?.addEventListener("scroll",this.rePosition),window.addEventListener("scroll",this.rePosition),window.addEventListener("resize",this.rePosition)):this.stopResize(t)}stopResize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.borders.forEach((t=>t.classList.remove("on-resizing"))),this.isMouseDown=!1,this.sizePreview.remove(),window.removeEventListener("mouseup",this.stopResize),window.removeEventListener("mousemove",this.resize),this.mounted&&"mouseup"===t.type||(this.mounted=!1,this.borders.forEach((t=>t.remove())),this.resizers.forEach((t=>t.remove())),this.element?.removeEventListener("drag",this.onDraggable),this.imageRatioResizer.remove(),this.container?.removeEventListener("scroll",this.rePosition),window.removeEventListener("scroll",this.rePosition),window.removeEventListener("resize",this.rePosition),this.element=null)}resize(t){if(this.borders.forEach((t=>t.classList.add("on-resizing"))),document.body.appendChild(this.sizePreview),this.sizePreview.style.left=t.clientX+50+"px",this.sizePreview.style.top=t.clientY+"px",this.clickedResizer.classList.contains("left-center")){let e=this.original_width-(t.pageX-this.original_mouse_x);e+="px",this.onResize(this.element,{width:e})}else if(this.clickedResizer.classList.contains("right-center")){let e=this.original_width+(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("bottom-center")){let e=this.original_height+(t.pageY-this.original_mouse_y);e=this.keepRatio&&this.canKeepRatio?"auto":e+"px",this.onResize(this.element,{height:e})}else if(this.clickedResizer.classList.contains("bottom-right")){let e=this.original_width+(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("bottom-left")){let e=this.original_width-(t.pageX-this.original_mouse_x);e+="px",this.onResize(this.element,{width:e})}else if(this.clickedResizer.classList.contains("top-right")){let e=this.original_width+(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("top-left")){let e=this.original_width-(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("rotate")){const{clientY:e,clientX:n}=t,r=this.element.getBoundingClientRect(),i=Math.atan2(e-r.y,n-r.x);this.element.style.transform=`rotate(${i}rad)`}this.rePosition()}rePosition(){window.requestAnimationFrame((()=>{if(!this.element)return;const t=this.element.getBoundingClientRect();if(this.sizePreview&&(this.sizePreview.innerHTML=`w:${parseInt(t.width)}`),this.borders.forEach((e=>{if(e.classList.contains("left"))e.style.width="1px",e.style.left=t.left+"px",e.style.top=t.top+"px",e.style.height=t.height+"px";else if(e.classList.contains("right"))e.style.width="1px",e.style.left=t.right+"px",e.style.top=t.top+"px",e.style.height=t.height+"px";else if(e.classList.contains("top")){e.style.left=t.left+"px",e.style.top=t.top+"px",e.style.width=t.width+"px",e.style.height="1px";const n=e.querySelector(".top-ruler");n&&(n.style.top=t.top+"px")}else if(e.classList.contains("bottom")){e.style.height="1px",e.style.left=t.left+"px",e.style.top=t.bottom+"px",e.style.width=t.width+"px";const n=e.querySelector(".bottom-ruler");n&&(n.style.top=t.bottom+"px")}})),this.isImage)this.imageRatioResizer.style.left=t.left+t.width+"px",this.imageRatioResizer.style.top=t.bottom+"px";else for(let e=0;e<this.resizers.length;e++){const n=this.resizers[e];n.classList.contains("bottom-left")?(n.style.left=t.left+"px",n.style.top=t.bottom+"px"):n.classList.contains("bottom-right")?(n.style.left=t.right+"px",n.style.top=t.bottom+"px"):n.classList.contains("top-right")?(n.style.left=t.right+"px",n.style.top=t.top+"px"):n.classList.contains("top-left")?(n.style.left=t.left+"px",n.style.top=t.top+"px"):n.classList.contains("left-center")?(n.style.left=t.left+"px",n.style.top=(t.top+t.bottom)/2+"px"):n.classList.contains("right-center")?(n.style.left=t.right+"px",n.style.top=(t.top+t.bottom)/2+"px"):n.classList.contains("bottom-center")?(n.style.left=(t.left+t.right)/2+"px",n.style.top=t.bottom+"px"):n.classList.contains("rotate")&&(n.style.left=(t.left+t.right)/2+"px",n.style.top=t.top-60+"px")}}))}}var Mi=s(68905);class Ii{constructor(t,e){e||(e={}),this.querySelector=t,this.pose={initX:0,initY:0,firstX:0,firstY:0},this.onMouseMove=t=>{if(this.target){if("ghost"===e.mode){this.target.style.zIndex=-1;const n=this.getHoverElement(t);if(e.drop&&n){const t=n.closest(e.drop);t&&e.drop&&"function"==typeof e.onHover?e.onHover({drag:this.originalTarget,drop:t}):"function"==typeof e.onHoverout&&e.onHoverout()}this.target.style.zIndex=9999999}const n=this.target.getBoundingClientRect();let r=this.pose.initY+t.pageY-this.pose.firstY,i=this.pose.initX+t.pageX-this.pose.firstX;e.maxTop&&e.maxTop>r&&(r=e.maxTop),r<=0&&(r=0),r>window.innerHeight-n.height&&(r=window.innerHeight-n.height),i<=0&&(i=0),i+n.width>=window.innerWidth&&(i=window.innerWidth-n.width),this.target.style.left=i+"px",this.target.style.top=r+"px"}else window.removeEventListener("mousemove",this.onMouseMove,!1)},this.onMouseDown=t=>{if(1!==t.which)return;Array.from(document.querySelectorAll("[mode='ghost']")).forEach((t=>t.remove()));const n=t.target,r=n.closest(this.querySelector);if(!r)return null;const i=r.getAttribute("handle");if(i){if(!n.closest(i))return null}this.target=r,this.originalTarget=r;const o=r.getBoundingClientRect();"ghost"===e.mode&&(this.target=r.cloneNode(!0),this.target.mode="ghost",this.target.setAttribute("mode","ghost"),this.target.setAttribute("style",(0,Mi.o)({position:"fixed",zIndex:-1,width:o.width+"px",maxWidth:"initial",minWidth:"initial",left:o.left+"px",top:o.top+"px",opacity:.5})),document.body.appendChild(this.target)),this.pose.initX=r.offsetLeft||o.left,this.pose.initY=r.offsetTop||o.top,this.pose.firstX=t.pageX,this.pose.firstY=t.pageY,window.addEventListener("mousemove",this.onMouseMove,!1),window.addEventListener("mouseup",(t=>{const n=this.getHoverElement(t);if(e.drop){const t=n.closest(e.drop);t&&"function"==typeof e.onAcceptDrop&&e.onAcceptDrop({drag:this.originalTarget,drop:t}),"function"==typeof e.onDrop&&e.onDrop({drag:this.originalTarget})}window.removeEventListener("mousemove",this.onMouseMove,!1),"ghost"===e.mode&&this.target&&this.target.remove(),this.target=null}),{once:!0})},this.start()}getHoverElement(t){this.target&&(this.target.style.zIndex=-1);return document.elementFromPoint(t.clientX,t.clientY)}start(){document.body.addEventListener("mousedown",this.onMouseDown)}destroy(){document.body.removeEventListener("mousedown",this.onMouseDown)}}var $i=s(53415),Ti={};Ti.setAttributes=u(),Ti.insert=p().bind(null,"head"),Ti.domAPI=c(),Ti.insertStyleElement=m();o()($i.Z,Ti);const Ni=$i.Z&&$i.Z.locals?$i.Z.locals:void 0;function Li(t){if("buttons"in(t=t||window.event))return 1===t.buttons;return 1===(t.which||t.button)}const Ri=function(t,e,n){if(!t)return;let i,o;o=t.cloneNode(!0),t.parentElement?t=o.getBoundingClientRect():(document.body.appendChild(o),o.style=`\n width:${t.style.width||"100px"};\n height:${t.style.height||"100px"};\n background:var(--primary);\n opacity:.4;\n `,i={...o.getBoundingClientRect()},i.left=e,i.top=n),o.remove();const s=(0,r.Z)("div",null,o.cloneNode(!0));["cdtr-move-handle-bar","[data-mounted]"].forEach((t=>{s.querySelectorAll(t).forEach((t=>t.remove()))}));const a=s.querySelector(".selected");return a&&a.classList.remove("selected"),i&&(s.style.position="fixed",s.classList.add("mirror"),s.style.opacity=1,s.style.zIndex=999999999,s.style.overflow="hidden",s.style.transition="all 1s",s.style.width=`${i.width}px`,s.style.height=`${i.height}px`,s.style.border="1px solid #484553b3",s.style.top=`${i.top}px`,s.style.left=`${i.left}px`,s.__offsetX=e-i.left,s.__offsetY=n-i.top),document.body.appendChild(s),setTimeout((()=>{s.style.transform="rotate(10deg)"}),100),s},Pi="touchmove",Di="mousemove",zi="mouseup",Hi="mousedown",ji="touchend",Ui="touchstart",Zi="left",Fi="right",Vi="top",Yi="bottom",Wi="__sortable_draggable-guide-line";var qi=s(43214);const Xi="15PX";function Gi(t,e){if(t.closest("[data-draggable-for]")){const e=t.dataset.draggableFor;if(e){let t=ge.Z.getComponent(e);if(t){if("card"===t.type){const e=t.closest("col");e&&(t=e)}return t.element}}}let n,r=t;for(;r||!n;){let t;if(r&&(t=r.closest(e)),t){n=t;break}r=r.parentElement||r.offsetParent}return n}class Ki{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.createGuideLine(),this.onMouseUp=this.onMouseUp.bind(this),this.dragStart=this.dragStart.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.dragEnd=this.dragEnd.bind(this),this.moveY=0,this.moveX=0,this.isValid=!0,this.mouseUp=!1,this.optionsInit(t),this.init()}optionsInit(t){this.options={draggable:t.draggable,handle:t.handle,delay:"number"==typeof t.delay?t.delay:0,preventDefault:t.preventDefault,direction:t.direction,onStart:t.onStart,finally:t.finally,on:t.on,onMove:t.onMove,onClone:t.onClone,onEnd:t.onEnd,body:t.body||document.body,clone:t.clone,group:t.group,sort:t.sort}}createGuideLine(){this.guideLine=document.createElement("div"),this.guideLine.className=Wi,this.guideLine.classList.add(Ni.guideLine),this.guideLine.style.position="absolute",this.guideLine.style.opacity=1,this.guideLine.style.border="1px solid blue"}init(){this.bindDrag()}dragEnd(){if(this.dragStarted=!1,this.styles&&this.styles.remove(),this.mouseUp=!0,this.mirror&&(this.mirror.remove(),this.mirror=null),this.guideLine.remove(),this.guideLine.style.left="-9999px",this.guideLine.style.top="-9999px",document.removeEventListener(Di,this.onMouseMove),document.removeEventListener(Pi,this.onMouseMove,{passive:!1}),document.removeEventListener(zi,this.dragEnd),document.removeEventListener(ji,this.dragEnd),this.dragEl&&this.dragEl.classList.remove(Ni.whileDragging),this.options.clone&&cloneEl.remove(),this.direction&&this.dropEl){const t=!0===this.options.clone?this.dragEl.cloneNode(!0):this.dragEl;!0===this.options.clone&&"function"==typeof this.options.onClone&&this.options.onClone({clone:this.cloneEl});let e=this.direction;if("left"===e?e="beforebegin":"right"===e&&(e="afterend"),this.isValid&&"function"==typeof this.options.onEnd){this.dragEl;this.options.onEnd({item:this.dragEl,dragType:this.dragEl.getAttribute("draggable-element"),dropType:this.dropEl.getAttribute("droppable-element"),clone:t,to:this.dropEl,direction:this.direction})}this.dragEl=null,this.dropEl=null}}onMouseMove(t){if(t.preventDefault(),this.isValid=!0,t.type===Di&&!Li(t))return this.guideLine.remove(),void document.removeEventListener(Di,this.onMouseMove);const e=t.type===Pi?t.touches[0].clientY:t.clientY,n=t.type===Pi?t.touches[0].clientX:t.clientX,r=t.type===Pi?t.touches[0].pageY:t.pageY;e<this.moveY?this.mouseDirection=Vi:e>this.moveY&&(this.mouseDirection=Yi),this.moveY=e,this.moveX=n;const i=()=>{"string"==typeof this.options.body&&(this.options.body=document.querySelector(this.options.body));let t=this.options.body;this.mirror&&this.moveY<100&&this.mouseDirection===Vi?(t.scroll(0,t.scrollTop-1),setTimeout((()=>{i()}),100)):this.mirror&&window.innerHeight-this.moveY<100&&this.mouseDirection===Yi&&(t.scroll(0,t.scrollTop+1),setTimeout((()=>{i()}),100))};this.mirror&&this.dragEl&&(this.mirror.style.left=n-document.body.offsetLeft-this.mirror.__offsetX+"px",this.mirror.style.top=e-document.body.offsetTop-this.mirror.__offsetY+"px",this.mirror.style.display="none");let o,s=document.elementsFromPoint(n,e);if(this.mirror&&(this.mirror.style.display="block"),i(),s=s.map((t=>t.closest("[droppable-element]"))).filter((t=>t)),0===s.length)return;let a=0;o=s[a],this.targets=s;const l=t=>{this.dragEl.closest("[droppable-element]")?.getAttribute("droppable-element");if(t=t.closest("[droppable-element]"),this.dragEl&&this.dragEl.getAttribute("data-drop-only")){const e=t.closest(`[data-type='${this.dragEl.getAttribute("data-drop-only")}']`);e&&(t=e)}const e=t.getAttribute("droppable-element"),n=t.getAttribute("droppable-if"),i=t.getAttribute("droppable-direction")||"top,bottom,left,right",o=this.dragEl.getAttribute("draggable-direction")||"top,bottom";t.getAttribute("droppable-bottom");if("col"===this.dragEl.dataset.type&&"col"!==t.dataset.type){if(!(t=t.closest("[droppable-element='col']")))return;this.dropEl=t}let c=t.getBoundingClientRect();if("section"===e){const e=t.querySelector("[data-type='block']:last-child");if(e){const t=e.getBoundingClientRect();return this.direction=Yi,this.dropEl=e,this.guideLine.style.top=`${r-r+window.pageYOffset+t.top+t.height}px`,this.guideLine.style.left=`${t.left}px`,this.guideLine.style.height=Xi,this.guideLine.style.width=`${t.width}px`,this.guideLine.style.opacity=1,void document.body.appendChild(this.guideLine)}}if(-1===i.indexOf("bottom")&&-1===i.indexOf("top")||-1===o.indexOf("bottom")&&-1===o.indexOf("top")||(this.guideLine.style.opacity=1,this.guideLine.style.width=`${c.width}px`,this.guideLine.style.height=Xi),"none"!==i&&-1!==i.indexOf("bottom")&&-1!==o.indexOf("bottom")&&c.bottom>this.moveY&&c.bottom-c.height/2<this.moveY&&(this.direction=Yi,this.dropEl=t,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top+c.height}px`,this.guideLine.style.left=`${c.left}px`),"none"!==i&&-1!==i.indexOf("top")&&-1!==o.indexOf("top")&&c.top<this.moveY&&c.top+c.height/2>this.moveY&&(this.dropEl=t,this.direction=Vi,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top}px`,this.guideLine.style.left=`${c.left}px`),"none"!==i&&i.indexOf("left")>-1&&o.indexOf("left")>-1&&c.top<this.moveY&&c.left<this.moveX&&c.left+c.width/4>this.moveX&&(this.dropEl=t,this.direction=Zi,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=Xi,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top}px`,this.guideLine.style.left=`${c.left}px`),"none"!==i&&i.indexOf("right")>-1&&o.indexOf("right")>-1&&c.top<this.moveY&&c.right-c.width/4<this.moveX&&(this.dropEl=t,this.direction=Fi,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=Xi,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top}px`,this.guideLine.style.left=`${c.left+c.width}px`),n&&"empty"===n){this.guideLine.style.opacity=.5;const e=ge.Z.getComponent(t.dataset.id);if(!e)return console.error("compoent not founded");if(0===e.children.length){this.direction=Vi,this.dropEl=t;const e=t.getBoundingClientRect(),n=(100>e.height&&e.height,1320>e.width?e.width:1320);this.guideLine.style.width=n+"px",this.guideLine.style.top=e.top+"px",this.guideLine.style.left=e.left+e.width/2-n/2+"px",document.body.appendChild(this.guideLine)}}if("none"!==i){var d=this.direction;if(this.guideLine.classList.remove(Ni.bottomMode),-1===i.indexOf(d)){if(a<s.length-1)return a++,l(s[a])}else document.body.appendChild(this.guideLine)}};if(l(o),"function"==typeof this.options.onMove){const t=this.options.onMove({item:this.dragEl,to:this.dropEl||o,guideLine:this.guideLine,direction:this.direction,targets:this.targets,dragType:this.dragEl.getAttribute("draggable-element"),dropType:(this.dropEl||o).getAttribute("droppable-element")});if("boolean"==typeof t&&!t)return this.guideLine.remove(),this.isValid=!1,!1;this.dragStarted||(this.dragStarted=!0,"function"==typeof this.options.onStart&&this.options.onStart({item:this.dragEl,dragType:this.dragEl.getAttribute("draggable-element"),dropType:(this.dropEl||o).getAttribute("droppable-element"),direction:this.direction}))}}onMouseUp(){"function"==typeof this.options.finally&&this.options.finally(),this.mouseUp||this.dragEnd(),clearTimeout(this.pressDelay),document.removeEventListener(zi,this.onMouseUp)}dragStart(t){let e;if(this.mouseUp=!1,this.isValid=!0,t.type===Hi&&!Li(t))return;this.can=!0;const n=()=>{let n,i=window.__dragoned_selected_element||t.originalTarget||t.target;if(window.__dragoned_selected_element&&(n=window.__dragoned_selected_element,delete window.__dragoned_selected_element),t.target.for){document.querySelector(`[data-id="${t.target.for}"]`)}const o=t.path?t.path:t.composedPath&&t.composedPath();Array.isArray(o)&&o.length>0&&(i=o[0]);let s=!1;if(i instanceof HTMLElement&&(s=!0),!s)for(var a in i)i.hasOwnProperty(a)&&(s=!0);try{i.parentElement}catch(t){s=!1}if(!s)return;if(this.options.handle&&i&&"function"==typeof i.closest&&(e=i.closest(this.options.handle),!e))return this.guideLine.remove(),!1;document.body.appendChild(this.guideLine);const l=t.type===Ui?t.touches[0].clientY:t.clientY,c=t.type===Ui?t.touches[0].clientX:t.clientX;let d=t.path?t.path:t.composedPath&&t.composedPath();if(!n){Array.isArray(d)&&0===d.length&&(d=[t.originalTarget||t.target]);for(let t=0;t<d.length;t++){const e=d[t];if(n=Gi(e,"[draggable-element]"),n){this.dragEl=n;break}}}return n?(setTimeout((()=>{this.mouseUp||this.mirror||(this.mirror=Ri(n.querySelector("[element-draggable-mirror]")||n.closest("[element-draggable-mirror]")||n.closest("[draggable-element]")||n,c,l),this.dragEl.classList.add(Ni.whileDragging))}),250),this.styles=(0,r.Z)("style",null,"body{\n cursor: grabbing;\n }\n "),document.body.appendChild(this.styles),this.dragEl=n,document.addEventListener(Di,this.onMouseMove),document.addEventListener(zi,this.dragEnd),!0):(this.guideLine.remove(),!1)};document.addEventListener(zi,this.onMouseUp),this.pressDelay=setTimeout((()=>{if(!1===this.mouseUp){if(!n())return}}),this.options.delay)}bindDrag(){qi.Z.connect(qi.F.MOUSE_DOWN,this.dragStart)}destroy(){qi.Z.disconnect(qi.F.MOUSE_DOWN,this.dragStart),this.mirror&&this.mirror.remove(),this.guideLine&&this.guideLine.remove()}}var Ji=s(49721),Qi=s(7910),to=s(65329),eo=s(70538);const no=t=>{let{item:e,to:n,direction:r,isNew:i}=t;const o=[],s=fe.h.get("components",e.dataset.id),a=fe.h.get("components",n.dataset.id),l=a.parent(),c=s.parent();let d=l.children.findIndex((t=>t===a.id));"right"===r&&d++;c.children.findIndex((t=>t===s.id));if("col"!==s.type){const t={type:"col",props:{lg:0,style:{}}},e=ge.Z.createComponent({body:t,parentId:l.id,index:d});o.push(new Ji.Z({componentId:e.id,parentId:l.id,index:d,body:t}));const i=c.children.findIndex((t=>t===s.id)),a=new Qi.Z({componentId:s.id,oldParentId:c.id,newParentId:e.id,oldIndex:i,newIndex:d});o.push(a),ge.Z.moveComponent(a),"left"===r?n.parentNode.insertBefore(e.element,n):"right"===r&&n.parentNode.insertBefore(e.element,n.nextSibling),e.appendChild(s.element)}else if("col"===s.type){const t=c.children.findIndex((t=>t===s.id)),e=new Qi.Z({componentId:s.id,oldParentId:c.id,newParentId:l.id,oldIndex:t,newIndex:d});o.push(e),ge.Z.moveComponent(e)}(0,to.X)(c).forEach((t=>o.push(t)));{const t=a.closest("block");if(t){(0,eo.c)(t).forEach((t=>o.push(t)))}}{const t=c.closest("block");if(t){(0,eo.c)(t).forEach((t=>o.push(t)))}}return o};var ro=s(8441);const io=t=>{let{item:e,to:n,direction:r}=t;const i=[],o=fe.h.get("components",e.dataset.id),s=o.parent(),a=s.children.findIndex((t=>t===o.id));fe.h.get("components",n.dataset.id);let l=fe.h.get("components",n.dataset.id),c=l.parent();if(o.id===l.id)return console.warn("cant move to itself"),null;let d=c.children.findIndex((t=>t===l.id));if("bottom"!==r&&"right"!==r||d++,"bottom"===r||"top"===r){const t={type:"row",props:{},children:[]};"col"!==o.type?t.children.push({type:"col",props:{lg:12},children:[]}):i.push(new ro.Z({componentId:o.id,key:"lg",value:12}));c.parent();const e=ge.Z.createComponent({body:t,parentId:c.id,index:d});i.push(new Ji.Z({componentId:e.id,parentId:c.id,index:d,body:t}));let n=fe.h.get("components",e.children[0]);n||(n=e);const r=new Qi.Z({componentId:o.id,newParentId:n.id,oldParentId:s.id,oldIndex:a,newIndex:0});ge.Z.moveComponent(r),i.push(r)}else if("left"===r||"right"===r){const t={type:"col",props:{lg:0},children:[]};let e=c,n=d;if("col"===c.type&&(ge.Z.updateComponent(c,"lg",0),i.push(new ro.Z({componentId:c.id,key:"lg",value:0})),e=c.parent(),n=e.children.findIndex((t=>t===c.id)),-1===n))throw new Error("col not found in parent");"right"===r&&n++;const l=ge.Z.createComponent({body:t,parentId:e.id,index:n});i.push(new Ji.Z({componentId:l.id,parentId:e.id,index:n,body:t}));const p=new Qi.Z({componentId:o.id,newParentId:l.id,oldParentId:s.id,oldIndex:a,newIndex:0});ge.Z.moveComponent(p),i.push(p)}(0,to.X)(s).forEach((t=>i.push(t)));{const t=s.closest("block");if(t){(0,eo.c)(t).forEach((t=>i.push(t)))}}return i};var oo=s(67237);const so=t=>{let{item:e,to:n,direction:r}=t;const i=[],o=fe.h.get("components",e.dataset.id),s=o.parent(),a=o.closest("block"),l=fe.h.get("components",n.dataset.id),c=(l.parent(),l.closest("block")),d=c.closest("section");let p=d.children.findIndex((t=>t===c.id));const h=fe.h.get("components",d.children[p]),u={type:"block",props:{style:h?.props?.style||{}},children:[{type:"col",props:{lg:0,style:{}}}]};"bottom"===r&&p++;const f=ge.Z.createComponent({body:u,parentId:d.id,index:p});i.push(new Ji.Z({componentId:f.id,parentId:d.id,index:p,body:u}));const m=f.children[0],g=s.children.findIndex((t=>t===o.id)),b={componentId:o.id,oldParentId:s.id,newParentId:m,oldIndex:g,newIndex:0};i.push(new Qi.Z(b)),ge.Z.moveComponent(b);if((0,to.X)(s).forEach((t=>i.push(t))),a){(0,eo.c)(a).forEach((t=>i.push(t)))}const y=l.closest("block");if(y){const t=(0,eo.c)(y);(0,oo.Z)({steps:t,force:!0,update:!0})}return i};var ao=s(59320);s(35210);function lo(t,e){t&&(Array.isArray(t.children)?t.children.forEach((t=>{lo(t,e)})):t&&"object"==typeof t&&e(t))}function co(t,e){Array.isArray(t)?t.forEach((t=>{co(t,e)})):Array.isArray(t.content)?(e(t),t.content.forEach((t=>{co(t,e)}))):e(t)}const po=t=>{const e=fe.h.get("components").find((t=>"root"===t.type));if(e){const n=e?.props?.style?.fontFamily,r=e?.props?.primaryColor,i=e?.props?.primaryContrastColor;ho(t,{fontFamily:n,primaryColor:r,primaryContrastColor:i})}return t};function ho(t,e){const{fontFamily:n,primaryColor:r,primaryContrastColor:i}=e;t?.props?.style&&n&&(t.props.style.fontFamily=n),lo(t,(t=>{if(r&&"button"===t?.type&&(t.props.style.background="var(--cdtr-primary)"),i&&"button"===t?.type&&(t.props.style.color="var(--cdtr-primary-contrast)"),"logo"===t?.props?.as){const e=fe.h.get("config","user","logo");"string"==typeof e&&(t.props.src=e,t.props.style.height="auto")}if("button"===t?.type)try{const e=fe.h.get("components").find((t=>"button"===t.type&&t.isInDom()));e&&(e.props.style.background&&(t.props.style.background=e.props.style.background),e.props.text&&(t.props.text=e.props.text))}catch(t){console.log("error",t)}if("countdown"===t.type){const e=fe.h.get("components").find((t=>"countdown"===t.type&&t.isInDom()));e&&(t.props=e.props)}})),t?.props?.items&&Array.isArray(t.props.items)&&t.props.items.forEach((t=>{t?.props?.style?n&&(t.props.style.fontFamily=n):t?.style&&n&&(t.style.fontFamily=n)})),t?.props?.text?.childNodes?.content&&t?.props?.text?.childNodes?.content&&co(t?.props?.text?.childNodes?.content,(t=>{t&&Array.isArray(t.marks)&&t.marks.forEach((t=>{t&&t.attrs&&"object"==typeof t.attrs&&t.attrs.fontFamily&&n&&(t.attrs.fontFamily=n)}))})),t&&t.children&&Array.isArray(t.children)&&t.children.forEach((t=>{ho(t,e)}))}const uo=t=>{let{template:e,to:n,direction:r}=t;const i=[];fe.h.get("components",n.dataset.id);let o=fe.h.get("components",n.dataset.id),s=o.parent(),a=s.children.findIndex((t=>t===o.id));if(e.body=po(e.body),"bottom"!==r&&"right"!==r||a++,"bottom"===r||"top"===r){const t={type:"row",props:{},children:[{type:"col",props:{lg:12},children:[e.body]}]},n=(s.parent(),ge.Z.createComponent({body:t,parentId:s.id,index:a}));i.push(new Ji.Z({componentId:n.id,parentId:s.id,index:a,body:t}))}else if("left"===r||"right"===r){const t={type:"col",props:{lg:0},children:[e.body]};let n=s,o=a;if("col"===s.type&&(ge.Z.updateComponent(s,"lg",0),i.push(new ro.Z({componentId:s.id,key:"lg",value:0})),n=s.parent(),o=n.children.findIndex((t=>t===s.id)),-1===o))throw new Error("col not found in parent");"right"===r&&o++;const l=ge.Z.createComponent({body:t,parentId:n.id,index:o});i.push(new Ji.Z({componentId:l.id,parentId:n.id,index:o,body:t}))}return i},fo=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id),s=o.parent(),a=s.children.findIndex((t=>t===o.id));e.body=po(e.body),"right"===r&&a++;const l={type:"col",props:{lg:0,style:{}},children:[e.body]},c=ge.Z.createComponent({body:l,parentId:s.id,index:a});if(i.push(new Ji.Z({componentId:c.id,parentId:s.id,index:a,body:l})),s&&"block"===s.type){(0,eo.c)(s).forEach((t=>i.push(t)))}return i};var mo=s(51679);const go=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id);if(!o)throw new Error("toItemCompose is not found");if(o&&"section"===o.type){const t=o.children[o.children.length-1];o=fe.h.get("components",t)}const s=o.closest("block");let a=o.parent(),l=a.children.findIndex((t=>t===o.id));"bottom"!==r&&"left"!==r||l++,delete s.props.style.boxShadow,e.body=po(e.body);const c="block"===e.body.type?e.body:{type:"block",props:{style:s.props.style,classList:[]},children:[{type:"col",props:{lg:0},children:[e.body]}]};"menu"!==c.props.as&&(c.props.style=s.props.style),(t=>{const e=ge.Z.configure;ge.Z.globalCommands.bodyWalk(t.body,(t=>{if("form"===t.type&&e&&Array.isArray(e.plugins)){const n=e?.plugins.find((t=>"form"===t.name));n&&n.configure&&Array.isArray(n.configure.defaultFields)&&Array.isArray(n.configure.fields)&&n.configure.defaultFields.forEach((e=>{const r=n.configure.fields.find((t=>t.id===e.id));if(r&&!t.props.items.find((t=>t.id===r.id))){const e=(0,mo.Z)(r);e&&t.props.items.unshift(e)}}))}}))})({body:c});const d=ge.Z.createComponent({body:c,parentId:a.id,index:l});return i.push(new Ji.Z({componentId:d.id,parentId:a.id,index:l,body:c})),i},bo=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id),s=o;const a=s.parent().children.findIndex((t=>t===s.id));let l=a;"bottom"===r&&l++,e.body=po(e.body);let c="block"===e.body.type?e.body:{type:"block",props:{style:{padding:"10px",marginTop:"0",marginBottom:"0",marginLeft:"auto",marginRight:"auto",backgroundColor:"transparent",maxWidth:"1320px",justifyContent:"center",width:"100%"},classList:[]}};"section"===e.body.type&&(c=e.body),"block"!==e.body.type&&"section"!==e.body.type&&(c.children=[{type:"col",props:{lg:0},children:[e.body]}]);const d=fe.h.get("skeletons");if(d&&"section"!==e.body.type){const t=d.find((t=>"block"===t.body.type&&"menu"!==t.name));t&&(c.props.style=t.body.props.style),o&&o.props.background&&(c.props.style.background="#ffffff5e")}const p=ge.Z.createComponent({body:c,parentId:s.id,index:l});if(i.push(new Ji.Z({componentId:p.id,parentId:s.id,index:l,body:c})),"block"===!e.body.type){const t={type:"col",props:{lg:0,style:{}}},n=ge.Z.createComponent({body:t,parentId:p.id,index:0});i.push(new Ji.Z({componentId:n.id,parentId:p.id,index:0,body:t}));const r=ge.Z.createComponent({body:e.body,parentId:n.id,index:0});i.push(new Ji.Z({componentId:r.id,parentId:n.id,index:0}))}return i};class yo{constructor(){this.delayer=new ao.Z}start(){let t,e=[];const n=(0,r.Z)("div",{style:{padding:"10px",background:"var(--primary)",borderRadius:"2px",width:"80px",color:"#fff",fontSize:"13px",fontFamily:"Arial",position:"absolute",top:"5px",textAlign:"var(--text-align-locale)"}});new Ki({sort:!0,clone:!1,handle:".draggable-element-handle",body:".amazingbar-content-wrapper",onStart:e=>{let{item:n,dragType:i,dropType:o}=e;const s=document.querySelector(".cdtr-text-editor-plugin");s&&(s.style.display="none"),be.Z.dispatch("elements:draggable:start",{item:n,dragType:i,dropType:o});const a=ge.Z.getEditor("text-editor");a&&a.destroy({from:"design-factory"}),t=(0,r.Z)("style",null,`\n [data-name="add-new-block-v1"]{\n display:none !important;\n }\n .block-component > .sortable > .col-component > .row-of-col {\n max-width:90%; \n margin-right:auto;\n margin-left:auto;\n }w\n ${"block"===o?"":"[droppable-element='element']{\n border:1px dashed #4845542e;\n }"}\n [droppable-element='block']{\n border-top:1px dashed #484554a8;\n border-bottom:1px dashed #484554a8;\n }\n ${"block"===o?"":"[droppable-element='col']{\n border-left:1px dashed #484554a8;\n border-right:1px dashed #484554a8;\n }"}\n `),document.body.appendChild(t);const l=document.getElementById("main-page--cdtr");Array.from(l.querySelectorAll(".col-component")).forEach((t=>{n.closest(".col-component")}))},onCancel:()=>{},finally:()=>{const n=document.querySelector(".cdtr-text-editor-plugin");n&&(n.style.display=null),be.Z.dispatch("elements:draggable:end",{}),t&&t.remove(),e.forEach((t=>{t.classList.remove("move-left"),t.classList.remove("move-right"),t.classList.remove("move-top"),t.classList.remove("move-bottom"),t.classList.remove("on-moving")})),e=[]},onMove:t=>{let{item:r,to:i,direction:o,targets:s,guideLine:a,dragType:l,dropType:c}=t;i!==this.lastTarget&&(this.delayer.run((()=>{this.lastTarget=i,a.appendChild(n)}),100),n.remove());const d=s.find((t=>t.closest("[data-type='col']")));if(r===i&&d&&fe.h.get("components",d.dataset.id).children.length<1)return!1;const p=i.getAttribute("droppable-element");if(!p)return!1;const h=fe.h.get("components",r.dataset.id);if(i.classList.add("on-moving"),h){const t=h.closest("block");t&&-1===e.indexOf(t.element)&&(t.element.classList.add(".on-moving"),e.push(t.element))}e.forEach((t=>{t.classList.remove("move-left"),t.classList.remove("move-right"),t.classList.remove("move-top"),t.classList.remove("move-bottom")})),"element"===p?("left"===o?(n.innerHTML=fe.h.get("lang","left-to-element"),n.style.transform="translate(-120%, -50%)",i.classList.add("move-right")):"right"===o?(n.style.transform="translate(20%, -50%)",n.innerHTML=fe.h.get("lang","right-to-element"),i.classList.add("move-left")):"top"===o?(n.innerHTML=fe.h.get("lang","top-to-element"),i.classList.add("move-bottom")):"bottom"===o&&(i.classList.add("move-top"),n.innerHTML=fe.h.get("lang","bottom-to-element")),e.push(i)):"col"===p?"left"===o?n.innerHTML=fe.h.get("lang","open-new-cell-from-left"):"right"===o&&(n.innerHTML=fe.h.get("lang","open-new-cell-from-right")):"block"===p&&("top"===o?n.innerHTML=fe.h.get("lang","open-new-block-from-top"):"bottom"===o&&(n.innerHTMeL=fe.h.get("lang","open-new-block-from-bottom")))},onEnd:t=>{let{item:e,to:n,direction:r,dragType:i,dropType:o,autoDrop:s}=t;if(s||n.dataset.id!==e.dataset.id)try{if("create:element"===i){e.dataset.group;const t=e.dataset.id,s=fe.h.get("components_templates").find((e=>e.id===t));if(!s)throw new Error("cant find the template","#jj-vk545gh");const a=ge.Z.getTemplate(s?.body?.type);if(a&&(a.interactions=[],a.show_on_desktop=!0,a.show_on_mobile=!0,a.show_on_tablet=!0,("button"===s.body.type||"social"===s.body.type||"countdown"===s.body.type)&&(s.body.props=a)),"create:element"===i)if("element"===o)if("left"===r||"right"===r){const t=n.closest(".col-component"),e=fo({template:s,to:t,direction:r});e&&(0,oo.Z)({steps:e,force:!0,update:!0})}else{const t=uo({template:s,to:n,direction:r});t&&((0,oo.Z)({steps:t,force:!0,update:!0}),ge.Z.clean().selectComponent(fe.h.get("components",e.dataset.id)))}else if("col"!==o||"right"!==r&&"left"!==r){if("col"===o){const t=fe.h.get("components",n.dataset.id);if(t){if(t.children[t.children.length-1]){const t=uo({template:s,to:n,direction:r,update:!0});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}}else if("block"===o){const t=go({template:s,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}else if("section"===o){const t=bo({template:s,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}else{const t=fo({template:s,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}return}if("element"===i&&"block"===o){const t=fe.h.get("components",e.dataset.id);if(t.closest("block")===n)return}if("block"===o&&"element"===i){const t=fe.h.get("components",e.dataset.id).parent(),r=fe.h.get("components",n.dataset.id).closest("block"),i=r.closest("section"),o=t.closest("section");if(r&&1===r.children.length&&i===o&&r===t)return}if("col"!==o||"left"!==r&&"right"!==r){if("col"===o){if(n.dataset.id===e.dataset.id)return;const t=fe.h.get("components",n.dataset.id);if(t){const n=t.children[t.children.length-1];if(n){const t=io({item:e,to:fe.h.get("components",n).element,direction:r,update:!0});(0,oo.Z)({steps:t,force:!0,update:!0})}}}else if("element"===i&&"element"===o)if("left"===r||"right"===r){const t=n.closest(".col-component"),i=no({item:e,to:t,direction:r});i&&(0,oo.Z)({steps:i,force:!0,update:!0})}else{const t=io({item:e,to:n,direction:r,update:!0});t&&((0,oo.Z)({steps:t,force:!0,update:!0}),ge.Z.clean().selectComponent(fe.h.get("components",e.dataset.id)))}else if("element"===i&&"block"===o){const t=so({item:e,to:n,direction:r});console.log("before sync new block",t),t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}else{const t=no({item:e,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}catch(t){ge.Z.commands.goToError(),ge.Z.commands.logError({msg:t.message,error_code:"#c4111",info:{data:t.stack},s:"E"}),console.error(t)}}});const i=new Oi("[cdtr-resizable='true']",{container:document.querySelector(".amazingbar-content-wrapper"),minWidth:30,onResize(t,e){let{width:n,height:r}=e;const i=t.closest("[data-type]");if(!i)return void console.warn("element must have data-type to use resizeable functionality");n=parseInt(n);const o=fe.h.get("components",i.dataset.id);if(o&&"function"==typeof o.resize)o.resize({width:n,height:r});else if(o){const e=o.type;if("card"!==e){const e=t.closest(".card-component")||t.closest(".col-component"),r=e?e.offsetWidth:9999999;r<n&&(n=r)}if("card"===e){const e=t.closest(".block-component"),r=e?e.offsetWidth:9999999;r<n&&(n=r)}switch(e){case"button":ge.Z.store().execCommand2({transactions:[{type:"button",key:"style",value:{width:n+"px",minWidth:"10px"}}]});break;case"countdown":ge.Z.store().execCommand2({transactions:[{type:"countdown",key:"style",value:{width:n+"px",minWidth:"80px"}}]});break;case"text":ge.Z.store().execCommand2({transactions:[{type:"text",key:"style",value:{width:n+"px"}}]});break;case"card":ge.Z.store().execCommand2({transactions:[{type:"card",key:"style",value:{width:n+"px"}}]});break;case"video":ge.Z.store().execCommand("style",{width:n+"px",height:n/1.8+"px"});break;case"image":n&&ge.Z.store().execCommand("style",{width:n+"px",height:"auto"});break;case"svg":n&&ge.Z.store().execCommand("width",n+"px");default:console.warn("no type founded for resizeable")}}else{t.getAttribute("data-type");if("inline-image"===t.getAttribute("data-type")){const t=ge.Z.getSelectedComponent()[0];return void(t&&t.tiptap.chain().updateImage({width:n+"px"}))}}}});ge.Z.addEditor({type:"global",name:"draggable-window-editor",editor:new Ii(".drop-modal-draggable")}),ge.Z.addEditor({type:"images",name:"resizable",editor:i}),be.Z.subscribe("onScroll",(()=>{i&&"function"==typeof i.rePosition&&i.rePosition()})),ge.Z.on("update",(()=>{i&&"function"==typeof i.rePosition&&i.rePosition()})),be.Z.subscribe("resize-page",(()=>{i.stopResize({})}))}}class Ao extends me.oi{constructor(){super(),this.errors={},this.indicators=[],this.lang=fe.h.get("config","language"),this.scrollHandler=this.updatePositions.bind(this),this.resizeHandler=this.updatePositions.bind(this)}connectedCallback(){super.connectedCallback(),ge.Z.on("detectErrors",(t=>{this.errors=t,this.updateIndicators()})),ge.Z.on("change",(()=>{this.updateIndicators()})),window.addEventListener("scroll",this.scrollHandler,!0),window.addEventListener("resize",this.resizeHandler),this.updateIndicators()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.scrollHandler,!0),window.removeEventListener("resize",this.resizeHandler)}updateIndicators(){this.indicators=[],this.errors.buttons&&this.errors.buttons.forEach((t=>{t.element&&this.indicators.push({id:`button-${t.id}`,element:t.element,type:"button",error:t,message:this.getButtonErrorMessage()})})),this.errors.images&&this.errors.images.forEach((t=>{t.element&&this.indicators.push({id:`image-${t.id}`,element:t.element,type:"image",error:t,message:this.getImageErrorMessage()})})),this.errors.links&&this.errors.links.forEach((t=>{t.element&&this.indicators.push({id:`link-${t.id}`,element:t.element,type:"link",error:t,message:this.getLinkErrorMessage()})})),this.requestUpdate(),this.updatePositions()}updatePositions(){this.updateComplete.then((()=>{this.indicators.forEach((t=>{const e=t.element.getBoundingClientRect(),n=this.shadowRoot.querySelector(`[data-indicator-id="${t.id}"]`);n&&(n.style.left=e.right-8+"px",n.style.top=e.top-8+"px")}))}))}getButtonErrorMessage(){const t={en:{title:"Button Missing Link",content:"This button doesn't have a link attached. Click to add a link in the properties panel.",action:"Add Link"},he:{title:"כפתור חסר קישור",content:"לכפתור הזה אין קישור. לחץ כדי להוסיף קישור בלוח המאפיינים.",action:"הוסף קישור"}};return t[this.lang]||t.en}getImageErrorMessage(){const t={en:{title:"Placeholder Image",content:"This image is still using a placeholder. Click to replace it with an actual image.",action:"Replace Image"},he:{title:"תמונת ברירת מחדל",content:"התמונה הזו עדיין משתמשת בתמונת ברירת מחדל. לחץ כדי להחליף אותה בתמונה אמיתית.",action:"החלף תמונה"}};return t[this.lang]||t.en}getLinkErrorMessage(){const t={en:{title:"Invalid Link",content:"This link is invalid or broken. Click to fix the URL in the properties panel.",action:"Fix Link"},he:{title:"קישור לא תקין",content:"הקישור הזה לא תקין או שבור. לחץ כדי לתקן את הכתובת בלוח המאפיינים.",action:"תקן קישור"}};return t[this.lang]||t.en}handleIndicatorClick(t){this.closeAllPopovers();const e=this.shadowRoot.querySelector(`[data-popover-id="${t.id}"]`);e&&e.classList.add("show")}handleActionClick(t){ge.Z.clean().selectComponent(t.error),setTimeout((()=>{"button"===t.type?ge.Z.dispatch("editor-tabs",{name:"link"}):"image"===t.type?ge.Z.dispatch("editor-tabs",{name:"image"}):"link"===t.type&&ge.Z.dispatch("editor-tabs",{name:"link"})}),500),this.closeAllPopovers()}closeAllPopovers(){this.shadowRoot.querySelectorAll(".popover").forEach((t=>{t.classList.remove("show")}))}handleCloseClick(t){t.stopPropagation(),this.closeAllPopovers()}render(){return me.dy`
|
|
2266
|
+
</style>`}}(0,t.Z)(Ln,"properties",{width:{type:Number,reflect:!0}}),customElements.define("cdtr-container-style",Ln);var Rn=s(97278);var Pn=s(84817),Dn=Date.now(),zn="fnValues"+Dn,Hn="fnStyle"+ ++Dn;const jn=function(){return{onCreateRule:function(t,e,n){if("function"!=typeof e)return null;var r=(0,Pn.JH)(t,{},n);return r[Hn]=e,r},onProcessStyle:function(t,e){if(zn in e||Hn in e)return t;var n={};for(var r in t){var i=t[r];"function"==typeof i&&(delete t[r],n[r]=i)}return e[zn]=n,t},onUpdate:function(t,e,n,r){var i=e,o=i[Hn];o&&(i.style=o(t)||{});var s=i[zn];if(s)for(var a in s)i.prop(a,s[a](t),r)}}};var Un=s(7288),Zn=function(t){return t&&t[Un.Z]&&t===t[Un.Z]()};const Fn=function(t){return{onCreateRule:function(e,n,r){if(!Zn(n))return null;var i=n,o=(0,Pn.JH)(e,{},r);return i.subscribe((function(e){for(var n in e)o.prop(n,e[n],t)})),o},onProcessRule:function(e){if(!e||"style"===e.type){var n=e,r=n.style,i=function(e){var i=r[e];if(!Zn(i))return"continue";delete r[e],i.subscribe({next:function(r){n.prop(e,r,t)}})};for(var o in r)i(o)}}}};var Vn=/;\n/,Yn=function(t){"string"==typeof t.style&&(t.style=function(t){for(var e={},n=t.split(Vn),r=0;r<n.length;r++){var i=(n[r]||"").trim();if(i){var o=i.indexOf(":");if(-1!==o){var s=i.substr(0,o).trim(),a=i.substr(o+1).trim();e[s]=a}}}return e}(t.style))};const Wn=function(){return{onProcessRule:Yn}};var qn="@global",Xn="@global ",Gn=function(){function t(t,e,n){for(var r in this.type="global",this.at=qn,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new Pn.RB((0,A.Z)({},n,{parent:this})),e)this.rules.add(r,e[r]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.addRule=function(t,e,n){var r=this.rules.add(t,e,n);return r&&this.options.jss.plugins.onProcessRule(r),r},e.replaceRule=function(t,e,n){var r=this.rules.replace(t,e,n);return r&&this.options.jss.plugins.onProcessRule(r),r},e.indexOf=function(t){return this.rules.indexOf(t)},e.toString=function(t){return this.rules.toString(t)},t}(),Kn=function(){function t(t,e,n){this.type="global",this.at=qn,this.isProcessed=!1,this.key=t,this.options=n;var r=t.substr(Xn.length);this.rule=n.jss.createRule(r,e,(0,A.Z)({},n,{parent:this}))}return t.prototype.toString=function(t){return this.rule?this.rule.toString(t):""},t}(),Jn=/\s*,\s*/g;function Qn(t,e){for(var n=t.split(Jn),r="",i=0;i<n.length;i++)r+=e+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const tr=function(){return{onCreateRule:function(t,e,n){if(!t)return null;if(t===qn)return new Gn(t,e,n);if("@"===t[0]&&t.substr(0,Xn.length)===Xn)return new Kn(t,e,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=t),null},onProcessRule:function(t,e){"style"===t.type&&e&&(function(t,e){var n=t.options,r=t.style,i=r?r[qn]:null;if(i){for(var o in i)e.addRule(o,i[o],(0,A.Z)({},n,{selector:Qn(o,t.selector)}));delete r[qn]}}(t,e),function(t,e){var n=t.options,r=t.style;for(var i in r)if("@"===i[0]&&i.substr(0,qn.length)===qn){var o=Qn(i.substr(qn.length),t.selector);e.addRule(o,r[i],(0,A.Z)({},n,{selector:o})),delete r[i]}}(t,e))}}};var er=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},nr="extendCurrValue"+Date.now();function rr(t,e,n,r){return void 0===r&&(r={}),function(t,e,n,r){if("string"!=typeof t.extend)if(Array.isArray(t.extend))for(var i=0;i<t.extend.length;i++){var o=t.extend[i];rr("string"==typeof o?(0,A.Z)({},t,{extend:o}):t.extend[i],e,n,r)}else for(var s in t.extend)"extend"!==s?er(t.extend[s])?(s in r||(r[s]={}),rr(t.extend[s],e,n,r[s])):r[s]=t.extend[s]:rr(t.extend.extend,e,n,r);else{if(!n)return;var a=n.getRule(t.extend);if(!a)return;if(a===e)return;var l=a.options.parent;l&&rr(l.rules.raw[t.extend],e,n,r)}}(t,e,n,r),function(t,e,n,r){for(var i in t)"extend"!==i&&(er(r[i])&&er(t[i])?rr(t[i],e,n,r[i]):er(t[i])?r[i]=rr(t[i],e,n):r[i]=t[i])}(t,e,n,r),r}const ir=function(){return{onProcessStyle:function(t,e,n){return"extend"in t?rr(t,e,n):t},onChangeValue:function(t,e,n){if("extend"!==e)return t;if(null==t||!1===t){for(var r in n[nr])n.prop(r,null);return n[nr]=null,null}if("object"==typeof t){for(var i in t)n.prop(i,t[i]);n[nr]=t}return null}}};var or=/\s*,\s*/g,sr=/&/g,ar=/\$([\w-]+)/g;const lr=function(){function t(t,e){return function(n,r){var i=t.getRule(r)||e&&e.getRule(r);return i?i.selector:r}}function e(t,e){for(var n=e.split(or),r=t.split(or),i="",o=0;o<n.length;o++)for(var s=n[o],a=0;a<r.length;a++){var l=r[a];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(sr,s):s+" "+l}return i}function n(t,e,n){if(n)return(0,A.Z)({},n,{index:n.index+1});var r=t.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,A.Z)({},t.options,{nestingLevel:r,index:e.indexOf(t)+1});return delete i.name,i}return{onProcessStyle:function(r,i,o){if("style"!==i.type)return r;var s,a,l=i,c=l.options.parent;for(var d in r){var p=-1!==d.indexOf("&"),h="@"===d[0];if(p||h){if(s=n(l,c,s),p){var u=e(d,l.selector);a||(a=t(c,o)),u=u.replace(ar,a);var f=l.key+"-"+d;"replaceRule"in c?c.replaceRule(f,r[d],(0,A.Z)({},s,{selector:u})):c.addRule(f,r[d],(0,A.Z)({},s,{selector:u}))}else h&&c.addRule(d,{},s).addRule(l.key,r[d],{selector:l.selector});delete r[d]}}return r}}};function cr(t,e){if(!e)return!0;if(Array.isArray(e)){for(var n=0;n<e.length;n++){if(!cr(t,e[n]))return!1}return!0}if(e.indexOf(" ")>-1)return cr(t,e.split(" "));var r=t.options.parent;if("$"===e[0]){var i=r.getRule(e.substr(1));return!!i&&(i!==t&&(r.classes[t.key]+=" "+r.classes[i.key],!0))}return r.classes[t.key]+=" "+e,!0}const dr=function(){return{onProcessStyle:function(t,e){return"composes"in t?(cr(e,t.composes),delete t.composes,t):t}}};var pr=s(78529),hr=Pn.HZ&&CSS?CSS.px:"px",ur=Pn.HZ&&CSS?CSS.ms:"ms",fr=Pn.HZ&&CSS?CSS.percent:"%";function mr(t){var e=/(-[a-z])/g,n=function(t){return t[1].toUpperCase()},r={};for(var i in t)r[i]=t[i],r[i.replace(e,n)]=t[i];return r}var gr=mr({"animation-delay":ur,"animation-duration":ur,"background-position":hr,"background-position-x":hr,"background-position-y":hr,"background-size":hr,border:hr,"border-bottom":hr,"border-bottom-left-radius":hr,"border-bottom-right-radius":hr,"border-bottom-width":hr,"border-left":hr,"border-left-width":hr,"border-radius":hr,"border-right":hr,"border-right-width":hr,"border-top":hr,"border-top-left-radius":hr,"border-top-right-radius":hr,"border-top-width":hr,"border-width":hr,"border-block":hr,"border-block-end":hr,"border-block-end-width":hr,"border-block-start":hr,"border-block-start-width":hr,"border-block-width":hr,"border-inline":hr,"border-inline-end":hr,"border-inline-end-width":hr,"border-inline-start":hr,"border-inline-start-width":hr,"border-inline-width":hr,"border-start-start-radius":hr,"border-start-end-radius":hr,"border-end-start-radius":hr,"border-end-end-radius":hr,margin:hr,"margin-bottom":hr,"margin-left":hr,"margin-right":hr,"margin-top":hr,"margin-block":hr,"margin-block-end":hr,"margin-block-start":hr,"margin-inline":hr,"margin-inline-end":hr,"margin-inline-start":hr,padding:hr,"padding-bottom":hr,"padding-left":hr,"padding-right":hr,"padding-top":hr,"padding-block":hr,"padding-block-end":hr,"padding-block-start":hr,"padding-inline":hr,"padding-inline-end":hr,"padding-inline-start":hr,"mask-position-x":hr,"mask-position-y":hr,"mask-size":hr,height:hr,width:hr,"min-height":hr,"max-height":hr,"min-width":hr,"max-width":hr,bottom:hr,left:hr,top:hr,right:hr,inset:hr,"inset-block":hr,"inset-block-end":hr,"inset-block-start":hr,"inset-inline":hr,"inset-inline-end":hr,"inset-inline-start":hr,"box-shadow":hr,"text-shadow":hr,"column-gap":hr,"column-rule":hr,"column-rule-width":hr,"column-width":hr,"font-size":hr,"font-size-delta":hr,"letter-spacing":hr,"text-decoration-thickness":hr,"text-indent":hr,"text-stroke":hr,"text-stroke-width":hr,"word-spacing":hr,motion:hr,"motion-offset":hr,outline:hr,"outline-offset":hr,"outline-width":hr,perspective:hr,"perspective-origin-x":fr,"perspective-origin-y":fr,"transform-origin":fr,"transform-origin-x":fr,"transform-origin-y":fr,"transform-origin-z":fr,"transition-delay":ur,"transition-duration":ur,"vertical-align":hr,"flex-basis":hr,"shape-margin":hr,size:hr,gap:hr,grid:hr,"grid-gap":hr,"row-gap":hr,"grid-row-gap":hr,"grid-column-gap":hr,"grid-template-rows":hr,"grid-template-columns":hr,"grid-auto-rows":hr,"grid-auto-columns":hr,"box-shadow-x":hr,"box-shadow-y":hr,"box-shadow-blur":hr,"box-shadow-spread":hr,"font-line-height":hr,"text-shadow-x":hr,"text-shadow-y":hr,"text-shadow-blur":hr});function br(t,e,n){if(null==e)return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=br(t,e[r],n);else if("object"==typeof e)if("fallbacks"===t)for(var i in e)e[i]=br(i,e[i],n);else for(var o in e)e[o]=br(t+"-"+o,e[o],n);else if("number"==typeof e&&!1===isNaN(e)){var s=n[t]||gr[t];return!s||0===e&&s===hr?e.toString():"function"==typeof s?s(e).toString():""+e+s}return e}const yr=function(t){void 0===t&&(t={});var e=mr(t);return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=br(r,t[r],e);return t},onChangeValue:function(t,n){return br(n,t,e)}}};var Ar={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},wr={position:!0,size:!0},vr={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},xr={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function _r(t,e,n,r){return null==n[e]?t:0===t.length?[]:Array.isArray(t[0])?_r(t[0],e,n,r):"object"==typeof t[0]?function(t,e,n){return t.map((function(t){return kr(t,e,n,!1,!0)}))}(t,e,r):[t]}function kr(t,e,n,r,i){if(!vr[e]&&!xr[e])return[];var o=[];if(xr[e]&&(t=function(t,e,n,r){for(var i in n){var o=n[i];if(void 0!==t[i]&&(r||!e.prop(o))){var s,a=Cr((s={},s[o]=t[i],s),e)[o];r?e.style.fallbacks[o]=a:e.style[o]=a}delete t[i]}return t}(t,n,xr[e],r)),Object.keys(t).length)for(var s in vr[e])t[s]?Array.isArray(t[s])?o.push(null===wr[s]?t[s]:t[s].join(" ")):o.push(t[s]):null!=vr[e][s]&&o.push(vr[e][s]);return!o.length||i?o:[o]}function Cr(t,e,n){for(var r in t){var i=t[r];if(Array.isArray(i)){if(!Array.isArray(i[0])){if("fallbacks"===r){for(var o=0;o<t.fallbacks.length;o++)t.fallbacks[o]=Cr(t.fallbacks[o],e,!0);continue}t[r]=_r(i,r,Ar,e),t[r].length||delete t[r]}}else if("object"==typeof i){if("fallbacks"===r){t.fallbacks=Cr(t.fallbacks,e,!0);continue}t[r]=kr(i,r,e,n),t[r].length||delete t[r]}else""===t[r]&&delete t[r]}return t}const Er=function(){return{onProcessStyle:function(t,e){if(!t||"style"!==e.type)return t;if(Array.isArray(t)){for(var n=0;n<t.length;n++)t[n]=Cr(t[n],e);return t}return Cr(t,e)}}};var Sr=s(20653);function Br(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Or(t){return function(t){if(Array.isArray(t))return Br(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Br(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Br(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Mr="",Ir="",$r="",Tr="",Nr=Sr.Z&&"ontouchstart"in document.documentElement;if(Sr.Z){var Lr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Rr=document.createElement("p").style;for(var Pr in Lr)if(Pr+"Transform"in Rr){Mr=Pr,Ir=Lr[Pr];break}"Webkit"===Mr&&"msHyphens"in Rr&&(Mr="ms",Ir=Lr.ms,Tr="edge"),"Webkit"===Mr&&"-apple-trailing-word"in Rr&&($r="apple")}var Dr={js:Mr,css:Ir,vendor:$r,browser:Tr,isTouch:Nr};var zr={noPrefill:["appearance"],supportedProperty:function(t){return"appearance"===t&&("ms"===Dr.js?"-webkit-"+t:Dr.css+t)}},Hr={noPrefill:["color-adjust"],supportedProperty:function(t){return"color-adjust"===t&&("Webkit"===Dr.js?Dr.css+"print-"+t:t)}},jr=/[-\s]+(.)?/g;function Ur(t,e){return e?e.toUpperCase():""}function Zr(t){return t.replace(jr,Ur)}function Fr(t){return Zr("-"+t)}var Vr,Yr={noPrefill:["mask"],supportedProperty:function(t,e){if(!/^mask/.test(t))return!1;if("Webkit"===Dr.js){var n="mask-image";if(Zr(n)in e)return t;if(Dr.js+Fr(n)in e)return Dr.css+t}return t}},Wr={noPrefill:["text-orientation"],supportedProperty:function(t){return"text-orientation"===t&&("apple"!==Dr.vendor||Dr.isTouch?t:Dr.css+t)}},qr={noPrefill:["transform"],supportedProperty:function(t,e,n){return"transform"===t&&(n.transform?t:Dr.css+t)}},Xr={noPrefill:["transition"],supportedProperty:function(t,e,n){return"transition"===t&&(n.transition?t:Dr.css+t)}},Gr={noPrefill:["writing-mode"],supportedProperty:function(t){return"writing-mode"===t&&("Webkit"===Dr.js||"ms"===Dr.js&&"edge"!==Dr.browser?Dr.css+t:t)}},Kr={noPrefill:["user-select"],supportedProperty:function(t){return"user-select"===t&&("Moz"===Dr.js||"ms"===Dr.js||"apple"===Dr.vendor?Dr.css+t:t)}},Jr={supportedProperty:function(t,e){return!!/^break-/.test(t)&&("Webkit"===Dr.js?"WebkitColumn"+Fr(t)in e&&Dr.css+"column-"+t:"Moz"===Dr.js&&("page"+Fr(t)in e&&"page-"+t))}},Qr={supportedProperty:function(t,e){if(!/^(border|margin|padding)-inline/.test(t))return!1;if("Moz"===Dr.js)return t;var n=t.replace("-inline","");return Dr.js+Fr(n)in e&&Dr.css+n}},ti={supportedProperty:function(t,e){return Zr(t)in e&&t}},ei={supportedProperty:function(t,e){var n=Fr(t);return"-"===t[0]||"-"===t[0]&&"-"===t[1]?t:Dr.js+n in e?Dr.css+t:"Webkit"!==Dr.js&&"Webkit"+n in e&&"-webkit-"+t}},ni={supportedProperty:function(t){return"scroll-snap"===t.substring(0,11)&&("ms"===Dr.js?""+Dr.css+t:t)}},ri={supportedProperty:function(t){return"overscroll-behavior"===t&&("ms"===Dr.js?Dr.css+"scroll-chaining":t)}},ii={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},oi={supportedProperty:function(t,e){var n=ii[t];return!!n&&(Dr.js+Fr(n)in e&&Dr.css+n)}},si={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},ai=Object.keys(si),li=function(t){return Dr.css+t},ci={supportedProperty:function(t,e,n){var r=n.multiple;if(ai.indexOf(t)>-1){var i=si[t];if(!Array.isArray(i))return Dr.js+Fr(i)in e&&Dr.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Dr.js+Fr(i[0])in e))return!1;return i.map(li)}return!1}},di=[zr,Hr,Yr,Wr,qr,Xr,Gr,Kr,Jr,Qr,ti,ei,ni,ri,oi,ci],pi=di.filter((function(t){return t.supportedProperty})).map((function(t){return t.supportedProperty})),hi=di.filter((function(t){return t.noPrefill})).reduce((function(t,e){return t.push.apply(t,Or(e.noPrefill)),t}),[]),ui={};if(Sr.Z){Vr=document.createElement("p");var fi=window.getComputedStyle(document.documentElement,"");for(var mi in fi)isNaN(mi)||(ui[fi[mi]]=fi[mi]);hi.forEach((function(t){return delete ui[t]}))}function gi(t,e){if(void 0===e&&(e={}),!Vr)return t;if(null!=ui[t])return ui[t];"transition"!==t&&"transform"!==t||(e[t]=t in Vr.style);for(var n=0;n<pi.length&&(ui[t]=pi[n](t,Vr.style,e),!ui[t]);n++);try{Vr.style[t]=""}catch(t){return!1}return ui[t]}var bi,yi={},Ai={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},wi=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function vi(t,e,n){if("var"===e)return"var";if("all"===e)return"all";if("all"===n)return", all";var r=e?gi(e):", "+gi(n);return r||(e||n)}function xi(t,e){var n=e;if(!bi||"content"===t)return e;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=t+n;if(null!=yi[r])return yi[r];try{bi.style[t]=n}catch(t){return yi[r]=!1,!1}if(Ai[t])n=n.replace(wi,vi);else if(""===bi.style[t]&&("-ms-flex"===(n=Dr.css+n)&&(bi.style[t]="-ms-flexbox"),bi.style[t]=n,""===bi.style[t]))return yi[r]=!1,!1;return bi.style[t]="",yi[r]=n,yi[r]}Sr.Z&&(bi=document.createElement("p"));const _i=function(){function t(e){for(var n in e){var r=e[n];if("fallbacks"===n&&Array.isArray(r))e[n]=r.map(t);else{var i=!1,o=gi(n);o&&o!==n&&(i=!0);var s=!1,a=xi(o,(0,Pn.EK)(r));a&&a!==r&&(s=!0),(i||s)&&(i&&delete e[n],e[o||n]=a||r)}}return e}return{onProcessRule:function(t){if("keyframes"===t.type){var e=t;e.at=function(t){return"-"===t[1]||"ms"===Dr.js?t:"@"+Dr.css+"keyframes"+t.substr(10)}(e.at)}},onProcessStyle:function(e,n){return"style"!==n.type?e:t(e)},onChangeValue:function(t,e){return xi(e,(0,Pn.EK)(t))||t}}};const ki=function(){var t=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length};return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)r[i[o]]=e[i[o]];return r}}};const Ci=function(t){return void 0===t&&(t={}),{plugins:[jn(),Fn(t.observable),Wn(),tr(),ir(),lr(),dr(),(0,pr.Z)(),yr(t.defaultUnit),Er(),_i(),ki()]}},Ei=()=>({element:null});var Si=s(72499),Bi={};Bi.setAttributes=u(),Bi.insert=p().bind(null,"head"),Bi.domAPI=c(),Bi.insertStyleElement=m();o()(Si.Z,Bi);Si.Z&&Si.Z.locals&&Si.Z.locals;class Oi{constructor(e,n){(0,t.Z)(this,"createResizer",(t=>{const e=document.createElement("div");return e.className=t,e.classList.add("resizer"),e}));const{keepRatio:r,container:i=document.body,onResize:o,minWidth:s,rotate:a}=n;this.querySelector=e,this.keepRatio=r,this.container=i,this.isImage=!1,this.rotate=a,this.canKeepRatio=!1,this.mounted=!1,this.onResize=o,this.minimum_size=s,this.resizers=[],this.clickedResizer=null,this.element,this.isMouseDown=!1,this.original_width=0,this.original_height=0,this.original_x=0,this.original_y=0,this.original_mouse_x=0,this.original_mouse_y=0,this.onDraggable=this.onDraggable.bind(this),this.resize=this.resize.bind(this),this.stopResize=this.stopResize.bind(this),this.onClickedTarget=this.onClickedTarget.bind(this),this.rePosition=this.rePosition.bind(this),this.init=this.init.bind(this),this.onClickResizer=this.onClickResizer.bind(this),this.init()}onClickResizer(t){this.clickedResizer=t.target,t.preventDefault(),this.isMouseDown=!0;const e=this.element.getBoundingClientRect();this.original_width=parseFloat(e.width),this.original_height=parseFloat(e.height),this.original_x=this.element.getBoundingClientRect().left,this.original_y=this.element.getBoundingClientRect().top,this.original_mouse_x=t.pageX,this.original_mouse_y=t.pageY,window.addEventListener("mousemove",this.resize),window.addEventListener("mouseup",this.stopResize)}createSizePreview(){const t=document.createElement("div");return t.classList.add("size-preview"),t}createImageRatioResizer(){const t=document.createElement("div");return t.classList.add("img-ratio-resizer"),t.classList.add("bottom-right"),t}createBorder(t){const e=document.createElement("div");if(e.classList.add("resizable-border"),e.classList.add(t),"bottom"===t){const t=document.createElement("div");t.classList.add("bottom-ruler"),e.appendChild(t)}if("top"===t){const t=document.createElement("div");t.classList.add("top-ruler"),e.appendChild(t)}if("left"===t){const t=document.createElement("div");t.classList.add("left-ruler"),e.appendChild(t)}if("right"===t){const t=document.createElement("div");t.classList.add("right-ruler"),e.appendChild(t)}return e}init(){this.sizePreview=this.createSizePreview(),this.imageRatioResizer=this.createImageRatioResizer(),this.imageRatioResizer.addEventListener("mousedown",this.onClickResizer),this.borders=[this.createBorder("left"),this.createBorder("right"),this.createBorder("bottom"),this.createBorder("top")];const t=this.resizers=[this.createResizer("left-center"),this.createResizer("right-center"),this.createResizer("bottom-left"),this.createResizer("bottom-right"),this.createResizer("top-right"),this.createResizer("top-left")];this.rotate&&t.push(this.createResizer("rotate"));for(let e=0;e<t.length;e++)t[e].addEventListener("mousedown",this.onClickResizer);window.addEventListener("mousedown",this.onClickedTarget)}onDraggable(t){this.stopResize(t)}onClickedTarget(t){if(this.isMouseDown)return;let e=t.target;const n=t.path?t.path:t.composedPath&&t.composedPath();Array.isArray(n)&&n.length>0&&(e=n[0]);for(let t=0;t<this.resizers.length;t++){const n=this.resizers[t];if(e.closest("."+n.className.split(" ").join(".")))return}const r=e.closest(this.querySelector);r?(this.stopResize(t),this.mounted=!0,this.canKeepRatio=!1,this.isImage=!1,this.isImage?(document.body.appendChild(this.imageRatioResizer),this.resizers.forEach((t=>t.remove()))):(this.resizers.forEach((t=>document.body.appendChild(t))),this.imageRatioResizer.remove()),this.borders.forEach((t=>document.body.appendChild(t))),this.element=r,this.element.addEventListener("drag",this.onDraggable),this.rePosition(),this.container?.addEventListener("scroll",this.rePosition),window.addEventListener("scroll",this.rePosition),window.addEventListener("resize",this.rePosition)):this.stopResize(t)}stopResize(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.borders.forEach((t=>t.classList.remove("on-resizing"))),this.isMouseDown=!1,this.sizePreview.remove(),window.removeEventListener("mouseup",this.stopResize),window.removeEventListener("mousemove",this.resize),this.mounted&&"mouseup"===t.type||(this.mounted=!1,this.borders.forEach((t=>t.remove())),this.resizers.forEach((t=>t.remove())),this.element?.removeEventListener("drag",this.onDraggable),this.imageRatioResizer.remove(),this.container?.removeEventListener("scroll",this.rePosition),window.removeEventListener("scroll",this.rePosition),window.removeEventListener("resize",this.rePosition),this.element=null)}resize(t){if(this.borders.forEach((t=>t.classList.add("on-resizing"))),document.body.appendChild(this.sizePreview),this.sizePreview.style.left=t.clientX+50+"px",this.sizePreview.style.top=t.clientY+"px",this.clickedResizer.classList.contains("left-center")){let e=this.original_width-(t.pageX-this.original_mouse_x);e+="px",this.onResize(this.element,{width:e})}else if(this.clickedResizer.classList.contains("right-center")){let e=this.original_width+(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("bottom-center")){let e=this.original_height+(t.pageY-this.original_mouse_y);e=this.keepRatio&&this.canKeepRatio?"auto":e+"px",this.onResize(this.element,{height:e})}else if(this.clickedResizer.classList.contains("bottom-right")){let e=this.original_width+(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("bottom-left")){let e=this.original_width-(t.pageX-this.original_mouse_x);e+="px",this.onResize(this.element,{width:e})}else if(this.clickedResizer.classList.contains("top-right")){let e=this.original_width+(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("top-left")){let e=this.original_width-(t.pageX-this.original_mouse_x);e>this.minimum_size&&(e+="px",this.onResize(this.element,{width:e}))}else if(this.clickedResizer.classList.contains("rotate")){const{clientY:e,clientX:n}=t,r=this.element.getBoundingClientRect(),i=Math.atan2(e-r.y,n-r.x);this.element.style.transform=`rotate(${i}rad)`}this.rePosition()}rePosition(){window.requestAnimationFrame((()=>{if(!this.element)return;const t=this.element.getBoundingClientRect();if(this.sizePreview&&(this.sizePreview.innerHTML=`w:${parseInt(t.width)}`),this.borders.forEach((e=>{if(e.classList.contains("left"))e.style.width="1px",e.style.left=t.left+"px",e.style.top=t.top+"px",e.style.height=t.height+"px";else if(e.classList.contains("right"))e.style.width="1px",e.style.left=t.right+"px",e.style.top=t.top+"px",e.style.height=t.height+"px";else if(e.classList.contains("top")){e.style.left=t.left+"px",e.style.top=t.top+"px",e.style.width=t.width+"px",e.style.height="1px";const n=e.querySelector(".top-ruler");n&&(n.style.top=t.top+"px")}else if(e.classList.contains("bottom")){e.style.height="1px",e.style.left=t.left+"px",e.style.top=t.bottom+"px",e.style.width=t.width+"px";const n=e.querySelector(".bottom-ruler");n&&(n.style.top=t.bottom+"px")}})),this.isImage)this.imageRatioResizer.style.left=t.left+t.width+"px",this.imageRatioResizer.style.top=t.bottom+"px";else for(let e=0;e<this.resizers.length;e++){const n=this.resizers[e];n.classList.contains("bottom-left")?(n.style.left=t.left+"px",n.style.top=t.bottom+"px"):n.classList.contains("bottom-right")?(n.style.left=t.right+"px",n.style.top=t.bottom+"px"):n.classList.contains("top-right")?(n.style.left=t.right+"px",n.style.top=t.top+"px"):n.classList.contains("top-left")?(n.style.left=t.left+"px",n.style.top=t.top+"px"):n.classList.contains("left-center")?(n.style.left=t.left+"px",n.style.top=(t.top+t.bottom)/2+"px"):n.classList.contains("right-center")?(n.style.left=t.right+"px",n.style.top=(t.top+t.bottom)/2+"px"):n.classList.contains("bottom-center")?(n.style.left=(t.left+t.right)/2+"px",n.style.top=t.bottom+"px"):n.classList.contains("rotate")&&(n.style.left=(t.left+t.right)/2+"px",n.style.top=t.top-60+"px")}}))}}var Mi=s(68905);class Ii{constructor(t,e){e||(e={}),this.querySelector=t,this.pose={initX:0,initY:0,firstX:0,firstY:0},this.onMouseMove=t=>{if(this.target){if("ghost"===e.mode){this.target.style.zIndex=-1;const n=this.getHoverElement(t);if(e.drop&&n){const t=n.closest(e.drop);t&&e.drop&&"function"==typeof e.onHover?e.onHover({drag:this.originalTarget,drop:t}):"function"==typeof e.onHoverout&&e.onHoverout()}this.target.style.zIndex=9999999}const n=this.target.getBoundingClientRect();let r=this.pose.initY+t.pageY-this.pose.firstY,i=this.pose.initX+t.pageX-this.pose.firstX;e.maxTop&&e.maxTop>r&&(r=e.maxTop),r<=0&&(r=0),r>window.innerHeight-n.height&&(r=window.innerHeight-n.height),i<=0&&(i=0),i+n.width>=window.innerWidth&&(i=window.innerWidth-n.width),this.target.style.left=i+"px",this.target.style.top=r+"px"}else window.removeEventListener("mousemove",this.onMouseMove,!1)},this.onMouseDown=t=>{if(1!==t.which)return;Array.from(document.querySelectorAll("[mode='ghost']")).forEach((t=>t.remove()));const n=t.target,r=n.closest(this.querySelector);if(!r)return null;const i=r.getAttribute("handle");if(i){if(!n.closest(i))return null}this.target=r,this.originalTarget=r;const o=r.getBoundingClientRect();"ghost"===e.mode&&(this.target=r.cloneNode(!0),this.target.mode="ghost",this.target.setAttribute("mode","ghost"),this.target.setAttribute("style",(0,Mi.o)({position:"fixed",zIndex:-1,width:o.width+"px",maxWidth:"initial",minWidth:"initial",left:o.left+"px",top:o.top+"px",opacity:.5})),document.body.appendChild(this.target)),this.pose.initX=r.offsetLeft||o.left,this.pose.initY=r.offsetTop||o.top,this.pose.firstX=t.pageX,this.pose.firstY=t.pageY,window.addEventListener("mousemove",this.onMouseMove,!1),window.addEventListener("mouseup",(t=>{const n=this.getHoverElement(t);if(e.drop){const t=n.closest(e.drop);t&&"function"==typeof e.onAcceptDrop&&e.onAcceptDrop({drag:this.originalTarget,drop:t}),"function"==typeof e.onDrop&&e.onDrop({drag:this.originalTarget})}window.removeEventListener("mousemove",this.onMouseMove,!1),"ghost"===e.mode&&this.target&&this.target.remove(),this.target=null}),{once:!0})},this.start()}getHoverElement(t){this.target&&(this.target.style.zIndex=-1);return document.elementFromPoint(t.clientX,t.clientY)}start(){document.body.addEventListener("mousedown",this.onMouseDown)}destroy(){document.body.removeEventListener("mousedown",this.onMouseDown)}}var $i=s(53415),Ti={};Ti.setAttributes=u(),Ti.insert=p().bind(null,"head"),Ti.domAPI=c(),Ti.insertStyleElement=m();o()($i.Z,Ti);const Ni=$i.Z&&$i.Z.locals?$i.Z.locals:void 0;function Li(t){if("buttons"in(t=t||window.event))return 1===t.buttons;return 1===(t.which||t.button)}const Ri=function(t,e,n){if(!t)return;let i,o;o=t.cloneNode(!0),t.parentElement?t=o.getBoundingClientRect():(document.body.appendChild(o),o.style=`\n width:${t.style.width||"100px"};\n height:${t.style.height||"100px"};\n background:var(--primary);\n opacity:.4;\n `,i={...o.getBoundingClientRect()},i.left=e,i.top=n),o.remove();const s=(0,r.Z)("div",null,o.cloneNode(!0));["cdtr-move-handle-bar","[data-mounted]"].forEach((t=>{s.querySelectorAll(t).forEach((t=>t.remove()))}));const a=s.querySelector(".selected");return a&&a.classList.remove("selected"),i&&(s.style.position="fixed",s.classList.add("mirror"),s.style.opacity=1,s.style.zIndex=999999999,s.style.overflow="hidden",s.style.transition="all 1s",s.style.width=`${i.width}px`,s.style.height=`${i.height}px`,s.style.border="1px solid #484553b3",s.style.top=`${i.top}px`,s.style.left=`${i.left}px`,s.__offsetX=e-i.left,s.__offsetY=n-i.top),document.body.appendChild(s),setTimeout((()=>{s.style.transform="rotate(10deg)"}),100),s},Pi="touchmove",Di="mousemove",zi="mouseup",Hi="mousedown",ji="touchend",Ui="touchstart",Zi="left",Fi="right",Vi="top",Yi="bottom",Wi="__sortable_draggable-guide-line";var qi=s(43214);const Xi="15PX";function Gi(t,e){if(t.closest("[data-draggable-for]")){const e=t.dataset.draggableFor;if(e){let t=ge.Z.getComponent(e);if(t){if("card"===t.type){const e=t.closest("col");e&&(t=e)}return t.element}}}let n,r=t;for(;r||!n;){let t;if(r&&(t=r.closest(e)),t){n=t;break}r=r.parentElement||r.offsetParent}return n}class Ki{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.createGuideLine(),this.onMouseUp=this.onMouseUp.bind(this),this.dragStart=this.dragStart.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.dragEnd=this.dragEnd.bind(this),this.moveY=0,this.moveX=0,this.isValid=!0,this.mouseUp=!1,this.optionsInit(t),this.init()}optionsInit(t){this.options={draggable:t.draggable,handle:t.handle,delay:"number"==typeof t.delay?t.delay:0,preventDefault:t.preventDefault,direction:t.direction,onStart:t.onStart,finally:t.finally,on:t.on,onMove:t.onMove,onClone:t.onClone,onEnd:t.onEnd,body:t.body||document.body,clone:t.clone,group:t.group,sort:t.sort}}createGuideLine(){this.guideLine=document.createElement("div"),this.guideLine.className=Wi,this.guideLine.classList.add(Ni.guideLine),this.guideLine.style.position="absolute",this.guideLine.style.opacity=1,this.guideLine.style.border="1px solid blue"}init(){this.bindDrag()}dragEnd(){if(this.dragStarted=!1,this.styles&&this.styles.remove(),this.mouseUp=!0,this.mirror&&(this.mirror.remove(),this.mirror=null),this.guideLine.remove(),this.guideLine.style.left="-9999px",this.guideLine.style.top="-9999px",document.removeEventListener(Di,this.onMouseMove),document.removeEventListener(Pi,this.onMouseMove,{passive:!1}),document.removeEventListener(zi,this.dragEnd),document.removeEventListener(ji,this.dragEnd),this.dragEl&&this.dragEl.classList.remove(Ni.whileDragging),this.options.clone&&cloneEl.remove(),this.direction&&this.dropEl){const t=!0===this.options.clone?this.dragEl.cloneNode(!0):this.dragEl;!0===this.options.clone&&"function"==typeof this.options.onClone&&this.options.onClone({clone:this.cloneEl});let e=this.direction;if("left"===e?e="beforebegin":"right"===e&&(e="afterend"),this.isValid&&"function"==typeof this.options.onEnd){this.dragEl;this.options.onEnd({item:this.dragEl,dragType:this.dragEl.getAttribute("draggable-element"),dropType:this.dropEl.getAttribute("droppable-element"),clone:t,to:this.dropEl,direction:this.direction})}this.dragEl=null,this.dropEl=null}}onMouseMove(t){if(t.preventDefault(),this.isValid=!0,t.type===Di&&!Li(t))return this.guideLine.remove(),void document.removeEventListener(Di,this.onMouseMove);const e=t.type===Pi?t.touches[0].clientY:t.clientY,n=t.type===Pi?t.touches[0].clientX:t.clientX,r=t.type===Pi?t.touches[0].pageY:t.pageY;e<this.moveY?this.mouseDirection=Vi:e>this.moveY&&(this.mouseDirection=Yi),this.moveY=e,this.moveX=n;const i=()=>{"string"==typeof this.options.body&&(this.options.body=document.querySelector(this.options.body));let t=this.options.body;this.mirror&&this.moveY<100&&this.mouseDirection===Vi?(t.scroll(0,t.scrollTop-1),setTimeout((()=>{i()}),100)):this.mirror&&window.innerHeight-this.moveY<100&&this.mouseDirection===Yi&&(t.scroll(0,t.scrollTop+1),setTimeout((()=>{i()}),100))};this.mirror&&this.dragEl&&(this.mirror.style.left=n-document.body.offsetLeft-this.mirror.__offsetX+"px",this.mirror.style.top=e-document.body.offsetTop-this.mirror.__offsetY+"px",this.mirror.style.display="none");let o,s=document.elementsFromPoint(n,e);if(this.mirror&&(this.mirror.style.display="block"),i(),s=s.map((t=>t.closest("[droppable-element]"))).filter((t=>t)),0===s.length)return;let a=0;o=s[a],this.targets=s;const l=t=>{this.dragEl.closest("[droppable-element]")?.getAttribute("droppable-element");if(t=t.closest("[droppable-element]"),this.dragEl&&this.dragEl.getAttribute("data-drop-only")){const e=t.closest(`[data-type='${this.dragEl.getAttribute("data-drop-only")}']`);e&&(t=e)}const e=t.getAttribute("droppable-element"),n=t.getAttribute("droppable-if"),i=t.getAttribute("droppable-direction")||"top,bottom,left,right",o=this.dragEl.getAttribute("draggable-direction")||"top,bottom";t.getAttribute("droppable-bottom");if("col"===this.dragEl.dataset.type&&"col"!==t.dataset.type){if(!(t=t.closest("[droppable-element='col']")))return;this.dropEl=t}let c=t.getBoundingClientRect();if("section"===e){const e=t.querySelector("[data-type='block']:last-child");if(e){const t=e.getBoundingClientRect();return this.direction=Yi,this.dropEl=e,this.guideLine.style.top=`${r-r+window.pageYOffset+t.top+t.height}px`,this.guideLine.style.left=`${t.left}px`,this.guideLine.style.height=Xi,this.guideLine.style.width=`${t.width}px`,this.guideLine.style.opacity=1,void document.body.appendChild(this.guideLine)}}if(-1===i.indexOf("bottom")&&-1===i.indexOf("top")||-1===o.indexOf("bottom")&&-1===o.indexOf("top")||(this.guideLine.style.opacity=1,this.guideLine.style.width=`${c.width}px`,this.guideLine.style.height=Xi),"none"!==i&&-1!==i.indexOf("bottom")&&-1!==o.indexOf("bottom")&&c.bottom>this.moveY&&c.bottom-c.height/2<this.moveY&&(this.direction=Yi,this.dropEl=t,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top+c.height}px`,this.guideLine.style.left=`${c.left}px`),"none"!==i&&-1!==i.indexOf("top")&&-1!==o.indexOf("top")&&c.top<this.moveY&&c.top+c.height/2>this.moveY&&(this.dropEl=t,this.direction=Vi,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top}px`,this.guideLine.style.left=`${c.left}px`),"none"!==i&&i.indexOf("left")>-1&&o.indexOf("left")>-1&&c.top<this.moveY&&c.left<this.moveX&&c.left+c.width/4>this.moveX&&(this.dropEl=t,this.direction=Zi,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=Xi,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top}px`,this.guideLine.style.left=`${c.left}px`),"none"!==i&&i.indexOf("right")>-1&&o.indexOf("right")>-1&&c.top<this.moveY&&c.right-c.width/4<this.moveX&&(this.dropEl=t,this.direction=Fi,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=Xi,this.guideLine.style.top=`${r-r+window.pageYOffset+c.top}px`,this.guideLine.style.left=`${c.left+c.width}px`),n&&"empty"===n){this.guideLine.style.opacity=.5;const e=ge.Z.getComponent(t.dataset.id);if(!e)return console.error("compoent not founded");if(0===e.children.length){this.direction=Vi,this.dropEl=t;const e=t.getBoundingClientRect(),n=(100>e.height&&e.height,1320>e.width?e.width:1320);this.guideLine.style.width=n+"px",this.guideLine.style.top=e.top+"px",this.guideLine.style.left=e.left+e.width/2-n/2+"px",document.body.appendChild(this.guideLine)}}if("none"!==i){var d=this.direction;if(this.guideLine.classList.remove(Ni.bottomMode),-1===i.indexOf(d)){if(a<s.length-1)return a++,l(s[a])}else document.body.appendChild(this.guideLine)}};if(l(o),"function"==typeof this.options.onMove){const t=this.options.onMove({item:this.dragEl,to:this.dropEl||o,guideLine:this.guideLine,direction:this.direction,targets:this.targets,dragType:this.dragEl.getAttribute("draggable-element"),dropType:(this.dropEl||o).getAttribute("droppable-element")});if("boolean"==typeof t&&!t)return this.guideLine.remove(),this.isValid=!1,!1;this.dragStarted||(this.dragStarted=!0,"function"==typeof this.options.onStart&&this.options.onStart({item:this.dragEl,dragType:this.dragEl.getAttribute("draggable-element"),dropType:(this.dropEl||o).getAttribute("droppable-element"),direction:this.direction}))}}onMouseUp(){"function"==typeof this.options.finally&&this.options.finally(),this.mouseUp||this.dragEnd(),clearTimeout(this.pressDelay),document.removeEventListener(zi,this.onMouseUp)}dragStart(t){let e;if(this.mouseUp=!1,this.isValid=!0,t.type===Hi&&!Li(t))return;this.can=!0;const n=()=>{let n,i=window.__dragoned_selected_element||t.originalTarget||t.target;if(window.__dragoned_selected_element&&(n=window.__dragoned_selected_element,delete window.__dragoned_selected_element),t.target.for){document.querySelector(`[data-id="${t.target.for}"]`)}const o=t.path?t.path:t.composedPath&&t.composedPath();Array.isArray(o)&&o.length>0&&(i=o[0]);let s=!1;if(i instanceof HTMLElement&&(s=!0),!s)for(var a in i)i.hasOwnProperty(a)&&(s=!0);try{i.parentElement}catch(t){s=!1}if(!s)return;if(this.options.handle&&i&&"function"==typeof i.closest&&(e=i.closest(this.options.handle),!e))return this.guideLine.remove(),!1;document.body.appendChild(this.guideLine);const l=t.type===Ui?t.touches[0].clientY:t.clientY,c=t.type===Ui?t.touches[0].clientX:t.clientX;let d=t.path?t.path:t.composedPath&&t.composedPath();if(!n){Array.isArray(d)&&0===d.length&&(d=[t.originalTarget||t.target]);for(let t=0;t<d.length;t++){const e=d[t];if(n=Gi(e,"[draggable-element]"),n){this.dragEl=n;break}}}return n?(setTimeout((()=>{this.mouseUp||this.mirror||(this.mirror=Ri(n.querySelector("[element-draggable-mirror]")||n.closest("[element-draggable-mirror]")||n.closest("[draggable-element]")||n,c,l),this.dragEl.classList.add(Ni.whileDragging))}),250),this.styles=(0,r.Z)("style",null,"body{\n cursor: grabbing;\n }\n "),document.body.appendChild(this.styles),this.dragEl=n,document.addEventListener(Di,this.onMouseMove),document.addEventListener(zi,this.dragEnd),!0):(this.guideLine.remove(),!1)};document.addEventListener(zi,this.onMouseUp),this.pressDelay=setTimeout((()=>{if(!1===this.mouseUp){if(!n())return}}),this.options.delay)}bindDrag(){qi.Z.connect(qi.F.MOUSE_DOWN,this.dragStart)}destroy(){qi.Z.disconnect(qi.F.MOUSE_DOWN,this.dragStart),this.mirror&&this.mirror.remove(),this.guideLine&&this.guideLine.remove()}}var Ji=s(49721),Qi=s(7910),to=s(65329),eo=s(70538);const no=t=>{let{item:e,to:n,direction:r,isNew:i}=t;const o=[],s=fe.h.get("components",e.dataset.id),a=fe.h.get("components",n.dataset.id),l=a.parent(),c=s.parent();let d=l.children.findIndex((t=>t===a.id));"right"===r&&d++;c.children.findIndex((t=>t===s.id));if("col"!==s.type){const t={type:"col",props:{lg:0,style:{}}},e=ge.Z.createComponent({body:t,parentId:l.id,index:d});o.push(new Ji.Z({componentId:e.id,parentId:l.id,index:d,body:t}));const i=c.children.findIndex((t=>t===s.id)),a=new Qi.Z({componentId:s.id,oldParentId:c.id,newParentId:e.id,oldIndex:i,newIndex:d});o.push(a),ge.Z.moveComponent(a),"left"===r?n.parentNode.insertBefore(e.element,n):"right"===r&&n.parentNode.insertBefore(e.element,n.nextSibling),e.appendChild(s.element)}else if("col"===s.type){const t=c.children.findIndex((t=>t===s.id)),e=new Qi.Z({componentId:s.id,oldParentId:c.id,newParentId:l.id,oldIndex:t,newIndex:d});o.push(e),ge.Z.moveComponent(e)}(0,to.X)(c).forEach((t=>o.push(t)));{const t=a.closest("block");if(t){(0,eo.c)(t).forEach((t=>o.push(t)))}}{const t=c.closest("block");if(t){(0,eo.c)(t).forEach((t=>o.push(t)))}}return o};var ro=s(8441);const io=t=>{let{item:e,to:n,direction:r}=t;const i=[],o=fe.h.get("components",e.dataset.id),s=o.parent(),a=s.children.findIndex((t=>t===o.id));fe.h.get("components",n.dataset.id);let l=fe.h.get("components",n.dataset.id),c=l.parent();if(o.id===l.id)return console.warn("cant move to itself"),null;let d=c.children.findIndex((t=>t===l.id));if("bottom"!==r&&"right"!==r||d++,"bottom"===r||"top"===r){const t={type:"row",props:{},children:[]};"col"!==o.type?t.children.push({type:"col",props:{lg:12},children:[]}):i.push(new ro.Z({componentId:o.id,key:"lg",value:12}));c.parent();const e=ge.Z.createComponent({body:t,parentId:c.id,index:d});i.push(new Ji.Z({componentId:e.id,parentId:c.id,index:d,body:t}));let n=fe.h.get("components",e.children[0]);n||(n=e);const r=new Qi.Z({componentId:o.id,newParentId:n.id,oldParentId:s.id,oldIndex:a,newIndex:0});ge.Z.moveComponent(r),i.push(r)}else if("left"===r||"right"===r){const t={type:"col",props:{lg:0},children:[]};let e=c,n=d;if("col"===c.type&&(ge.Z.updateComponent(c,"lg",0),i.push(new ro.Z({componentId:c.id,key:"lg",value:0})),e=c.parent(),n=e.children.findIndex((t=>t===c.id)),-1===n))throw new Error("col not found in parent");"right"===r&&n++;const l=ge.Z.createComponent({body:t,parentId:e.id,index:n});i.push(new Ji.Z({componentId:l.id,parentId:e.id,index:n,body:t}));const p=new Qi.Z({componentId:o.id,newParentId:l.id,oldParentId:s.id,oldIndex:a,newIndex:0});ge.Z.moveComponent(p),i.push(p)}(0,to.X)(s).forEach((t=>i.push(t)));{const t=s.closest("block");if(t){(0,eo.c)(t).forEach((t=>i.push(t)))}}return i};var oo=s(67237);const so=t=>{let{item:e,to:n,direction:r}=t;const i=[],o=fe.h.get("components",e.dataset.id),s=o.parent(),a=o.closest("block"),l=fe.h.get("components",n.dataset.id),c=(l.parent(),l.closest("block")),d=c.closest("section");let p=d.children.findIndex((t=>t===c.id));const h=fe.h.get("components",d.children[p]),u={type:"block",props:{style:h?.props?.style||{}},children:[{type:"col",props:{lg:0,style:{}}}]};"bottom"===r&&p++;const f=ge.Z.createComponent({body:u,parentId:d.id,index:p});i.push(new Ji.Z({componentId:f.id,parentId:d.id,index:p,body:u}));const m=f.children[0],g=s.children.findIndex((t=>t===o.id)),b={componentId:o.id,oldParentId:s.id,newParentId:m,oldIndex:g,newIndex:0};i.push(new Qi.Z(b)),ge.Z.moveComponent(b);if((0,to.X)(s).forEach((t=>i.push(t))),a){(0,eo.c)(a).forEach((t=>i.push(t)))}const y=l.closest("block");if(y){const t=(0,eo.c)(y);(0,oo.Z)({steps:t,force:!0,update:!0})}return i};var ao=s(59320);s(35210);function lo(t,e){t&&(Array.isArray(t.children)?t.children.forEach((t=>{lo(t,e)})):t&&"object"==typeof t&&e(t))}function co(t,e){Array.isArray(t)?t.forEach((t=>{co(t,e)})):Array.isArray(t.content)?(e(t),t.content.forEach((t=>{co(t,e)}))):e(t)}const po=t=>{const e=fe.h.get("components").find((t=>"root"===t.type));if(e){const n=e?.props?.style?.fontFamily,r=e?.props?.primaryColor,i=e?.props?.primaryContrastColor;ho(t,{fontFamily:n,primaryColor:r,primaryContrastColor:i})}return t};function ho(t,e){const{fontFamily:n,primaryColor:r,primaryContrastColor:i}=e;t?.props?.style&&n&&(t.props.style.fontFamily=n),lo(t,(t=>{if(r&&"button"===t?.type&&(t.props.style.background="var(--cdtr-primary)"),i&&"button"===t?.type&&(t.props.style.color="var(--cdtr-primary-contrast)"),"logo"===t?.props?.as){const e=fe.h.get("config","user","logo");"string"==typeof e&&(t.props.src=e,t.props.style.height="auto")}if("button"===t?.type)try{const e=fe.h.get("components").find((t=>"button"===t.type&&t.isInDom()));e&&(e.props.style.background&&(t.props.style.background=e.props.style.background),e.props.text&&(t.props.text=e.props.text))}catch(t){console.log("error",t)}if("countdown"===t.type){const e=fe.h.get("components").find((t=>"countdown"===t.type&&t.isInDom()));e&&(t.props=e.props)}})),t?.props?.items&&Array.isArray(t.props.items)&&t.props.items.forEach((t=>{t?.props?.style?n&&(t.props.style.fontFamily=n):t?.style&&n&&(t.style.fontFamily=n)})),t?.props?.text?.childNodes?.content&&t?.props?.text?.childNodes?.content&&co(t?.props?.text?.childNodes?.content,(t=>{t&&Array.isArray(t.marks)&&t.marks.forEach((t=>{t&&t.attrs&&"object"==typeof t.attrs&&t.attrs.fontFamily&&n&&(t.attrs.fontFamily=n)}))})),t&&t.children&&Array.isArray(t.children)&&t.children.forEach((t=>{ho(t,e)}))}const uo=t=>{let{template:e,to:n,direction:r}=t;const i=[];fe.h.get("components",n.dataset.id);let o=fe.h.get("components",n.dataset.id),s=o.parent(),a=s.children.findIndex((t=>t===o.id));if(e.body=po(e.body),"bottom"!==r&&"right"!==r||a++,"bottom"===r||"top"===r){const t={type:"row",props:{},children:[{type:"col",props:{lg:12},children:[e.body]}]},n=(s.parent(),ge.Z.createComponent({body:t,parentId:s.id,index:a}));i.push(new Ji.Z({componentId:n.id,parentId:s.id,index:a,body:t}))}else if("left"===r||"right"===r){const t={type:"col",props:{lg:0},children:[e.body]};let n=s,o=a;if("col"===s.type&&(ge.Z.updateComponent(s,"lg",0),i.push(new ro.Z({componentId:s.id,key:"lg",value:0})),n=s.parent(),o=n.children.findIndex((t=>t===s.id)),-1===o))throw new Error("col not found in parent");"right"===r&&o++;const l=ge.Z.createComponent({body:t,parentId:n.id,index:o});i.push(new Ji.Z({componentId:l.id,parentId:n.id,index:o,body:t}))}return i},fo=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id),s=o.parent(),a=s.children.findIndex((t=>t===o.id));e.body=po(e.body),"right"===r&&a++;const l={type:"col",props:{lg:0,style:{}},children:[e.body]},c=ge.Z.createComponent({body:l,parentId:s.id,index:a});if(i.push(new Ji.Z({componentId:c.id,parentId:s.id,index:a,body:l})),s&&"block"===s.type){(0,eo.c)(s).forEach((t=>i.push(t)))}return i};var mo=s(51679);const go=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id);if(!o)throw new Error("toItemCompose is not found");if(o&&"section"===o.type){const t=o.children[o.children.length-1];o=fe.h.get("components",t)}const s=o.closest("block");let a=o.parent(),l=a.children.findIndex((t=>t===o.id));"bottom"!==r&&"left"!==r||l++,delete s.props.style.boxShadow,e.body=po(e.body);const c="block"===e.body.type?e.body:{type:"block",props:{style:s.props.style,classList:[]},children:[{type:"col",props:{lg:0},children:[e.body]}]};"menu"!==c.props.as&&(c.props.style=s.props.style),(t=>{const e=ge.Z.configure;ge.Z.globalCommands.bodyWalk(t.body,(t=>{if("form"===t.type&&e&&Array.isArray(e.plugins)){const n=e?.plugins.find((t=>"form"===t.name));n&&n.configure&&Array.isArray(n.configure.defaultFields)&&Array.isArray(n.configure.fields)&&n.configure.defaultFields.forEach((e=>{const r=n.configure.fields.find((t=>t.id===e.id));if(r&&!t.props.items.find((t=>t.id===r.id))){const e=(0,mo.Z)(r);e&&t.props.items.unshift(e)}}))}}))})({body:c});const d=ge.Z.createComponent({body:c,parentId:a.id,index:l});return i.push(new Ji.Z({componentId:d.id,parentId:a.id,index:l,body:c})),i},bo=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id),s=o;const a=s.parent().children.findIndex((t=>t===s.id));let l=a;"bottom"===r&&l++,e.body=po(e.body);let c="block"===e.body.type?e.body:{type:"block",props:{style:{padding:"10px",marginTop:"0",marginBottom:"0",marginLeft:"auto",marginRight:"auto",backgroundColor:"transparent",maxWidth:"1320px",justifyContent:"center",width:"100%"},classList:[]}};"section"===e.body.type&&(c=e.body),"block"!==e.body.type&&"section"!==e.body.type&&(c.children=[{type:"col",props:{lg:0},children:[e.body]}]);const d=fe.h.get("skeletons");if(d&&"section"!==e.body.type){const t=d.find((t=>"block"===t.body.type&&"menu"!==t.name));t&&(c.props.style=t.body.props.style),o&&o.props.background&&(c.props.style.background="#ffffff5e")}const p=ge.Z.createComponent({body:c,parentId:s.id,index:l});if(i.push(new Ji.Z({componentId:p.id,parentId:s.id,index:l,body:c})),"block"===!e.body.type){const t={type:"col",props:{lg:0,style:{}}},n=ge.Z.createComponent({body:t,parentId:p.id,index:0});i.push(new Ji.Z({componentId:n.id,parentId:p.id,index:0,body:t}));const r=ge.Z.createComponent({body:e.body,parentId:n.id,index:0});i.push(new Ji.Z({componentId:r.id,parentId:n.id,index:0}))}return i};class yo{constructor(){this.delayer=new ao.Z}start(){let t,e=[];const n=(0,r.Z)("div",{style:{padding:"10px",background:"var(--primary)",borderRadius:"2px",width:"80px",color:"#fff",fontSize:"13px",fontFamily:"Arial",position:"absolute",top:"5px",textAlign:"var(--text-align-locale)"}});new Ki({sort:!0,clone:!1,handle:".draggable-element-handle",body:".amazingbar-content-wrapper",onStart:e=>{let{item:n,dragType:i,dropType:o}=e;const s=document.querySelector(".cdtr-text-editor-plugin");s&&(s.style.display="none"),be.Z.dispatch("elements:draggable:start",{item:n,dragType:i,dropType:o});const a=ge.Z.getEditor("text-editor");a&&a.destroy({from:"design-factory"}),t=(0,r.Z)("style",null,`\n [data-name="add-new-block-v1"]{\n display:none !important;\n }\n .block-component > .sortable > .col-component > .row-of-col {\n max-width:90%; \n margin-right:auto;\n margin-left:auto;\n }w\n ${"block"===o?"":"[droppable-element='element']{\n border:1px dashed #4845542e;\n }"}\n [droppable-element='block']{\n border-top:1px dashed #484554a8;\n border-bottom:1px dashed #484554a8;\n }\n ${"block"===o?"":"[droppable-element='col']{\n border-left:1px dashed #484554a8;\n border-right:1px dashed #484554a8;\n }"}\n `),document.body.appendChild(t);const l=document.getElementById("main-page--cdtr");Array.from(l.querySelectorAll(".col-component")).forEach((t=>{n.closest(".col-component")}))},onCancel:()=>{},finally:()=>{const n=document.querySelector(".cdtr-text-editor-plugin");n&&(n.style.display=null),be.Z.dispatch("elements:draggable:end",{}),t&&t.remove(),e.forEach((t=>{t.classList.remove("move-left"),t.classList.remove("move-right"),t.classList.remove("move-top"),t.classList.remove("move-bottom"),t.classList.remove("on-moving")})),e=[]},onMove:t=>{let{item:r,to:i,direction:o,targets:s,guideLine:a,dragType:l,dropType:c}=t;i!==this.lastTarget&&(this.delayer.run((()=>{this.lastTarget=i,a.appendChild(n)}),100),n.remove());const d=s.find((t=>t.closest("[data-type='col']")));if(r===i&&d&&fe.h.get("components",d.dataset.id).children.length<1)return!1;const p=i.getAttribute("droppable-element");if(!p)return!1;const h=fe.h.get("components",r.dataset.id);if(i.classList.add("on-moving"),h){const t=h.closest("block");t&&-1===e.indexOf(t.element)&&(t.element.classList.add(".on-moving"),e.push(t.element))}e.forEach((t=>{t.classList.remove("move-left"),t.classList.remove("move-right"),t.classList.remove("move-top"),t.classList.remove("move-bottom")})),"element"===p?("left"===o?(n.innerHTML=fe.h.get("lang","left-to-element"),n.style.transform="translate(-120%, -50%)",i.classList.add("move-right")):"right"===o?(n.style.transform="translate(20%, -50%)",n.innerHTML=fe.h.get("lang","right-to-element"),i.classList.add("move-left")):"top"===o?(n.innerHTML=fe.h.get("lang","top-to-element"),i.classList.add("move-bottom")):"bottom"===o&&(i.classList.add("move-top"),n.innerHTML=fe.h.get("lang","bottom-to-element")),e.push(i)):"col"===p?"left"===o?n.innerHTML=fe.h.get("lang","open-new-cell-from-left"):"right"===o&&(n.innerHTML=fe.h.get("lang","open-new-cell-from-right")):"block"===p&&("top"===o?n.innerHTML=fe.h.get("lang","open-new-block-from-top"):"bottom"===o&&(n.innerHTMeL=fe.h.get("lang","open-new-block-from-bottom")))},onEnd:t=>{let{item:e,to:n,direction:r,dragType:i,dropType:o,autoDrop:s}=t;if(s||n.dataset.id!==e.dataset.id)try{if("create:element"===i){e.dataset.group;const t=e.dataset.id,s=fe.h.get("components_templates").find((e=>e.id===t));if(!s)throw new Error("cant find the template","#jj-vk545gh");const a=ge.Z.getTemplate(s?.body?.type);if(a&&(a.interactions=[],a.show_on_desktop=!0,a.show_on_mobile=!0,a.show_on_tablet=!0,("button"===s.body.type||"social"===s.body.type||"countdown"===s.body.type)&&(s.body.props=a)),"create:element"===i)if("element"===o)if("left"===r||"right"===r){const t=n.closest(".col-component"),e=fo({template:s,to:t,direction:r});e&&(0,oo.Z)({steps:e,force:!0,update:!0})}else{const t=uo({template:s,to:n,direction:r});t&&((0,oo.Z)({steps:t,force:!0,update:!0}),ge.Z.clean().selectComponent(fe.h.get("components",e.dataset.id)))}else if("col"!==o||"right"!==r&&"left"!==r){if("col"===o){const t=fe.h.get("components",n.dataset.id);if(t){if(t.children[t.children.length-1]){const t=uo({template:s,to:n,direction:r,update:!0});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}}else if("block"===o){const t=go({template:s,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}else if("section"===o){const t=bo({template:s,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}else{const t=fo({template:s,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}return}if("element"===i&&"block"===o){const t=fe.h.get("components",e.dataset.id);if(t.closest("block")===n)return}if("block"===o&&"element"===i){const t=fe.h.get("components",e.dataset.id).parent(),r=fe.h.get("components",n.dataset.id).closest("block"),i=r.closest("section"),o=t.closest("section");if(r&&1===r.children.length&&i===o&&r===t)return}if("col"!==o||"left"!==r&&"right"!==r){if("col"===o){if(n.dataset.id===e.dataset.id)return;const t=fe.h.get("components",n.dataset.id);if(t){const n=t.children[t.children.length-1];if(n){const t=io({item:e,to:fe.h.get("components",n).element,direction:r,update:!0});(0,oo.Z)({steps:t,force:!0,update:!0})}}}else if("element"===i&&"element"===o)if("left"===r||"right"===r){const t=n.closest(".col-component"),i=no({item:e,to:t,direction:r});i&&(0,oo.Z)({steps:i,force:!0,update:!0})}else{const t=io({item:e,to:n,direction:r,update:!0});t&&((0,oo.Z)({steps:t,force:!0,update:!0}),ge.Z.clean().selectComponent(fe.h.get("components",e.dataset.id)))}else if("element"===i&&"block"===o){const t=so({item:e,to:n,direction:r});console.log("before sync new block",t),t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}else{const t=no({item:e,to:n,direction:r});t&&(0,oo.Z)({steps:t,force:!0,update:!0})}}catch(t){ge.Z.commands.goToError(),ge.Z.commands.logError({msg:t.message,error_code:"#c4111",info:{data:t.stack},s:"E"}),console.error(t)}}});const i=new Oi("[cdtr-resizable='true']",{container:document.querySelector(".amazingbar-content-wrapper"),minWidth:30,onResize(t,e){let{width:n,height:r}=e;const i=t.closest("[data-type]");if(!i)return void console.warn("element must have data-type to use resizeable functionality");n=parseInt(n);const o=fe.h.get("components",i.dataset.id);if(o&&"function"==typeof o.resize)o.resize({width:n,height:r});else if(o){const e=o.type;if("card"!==e){const e=t.closest(".card-component")||t.closest(".col-component"),r=e?e.offsetWidth:9999999;r<n&&(n=r)}if("card"===e){const e=t.closest(".block-component"),r=e?e.offsetWidth:9999999;r<n&&(n=r)}switch(e){case"button":ge.Z.store().execCommand2({transactions:[{type:"button",key:"style",value:{width:n+"px",minWidth:"10px"}}]});break;case"countdown":ge.Z.store().execCommand2({transactions:[{type:"countdown",key:"style",value:{width:n+"px",minWidth:"80px"}}]});break;case"text":ge.Z.store().execCommand2({transactions:[{type:"text",key:"style",value:{width:n+"px"}}]});break;case"card":ge.Z.store().execCommand2({transactions:[{type:"card",key:"style",value:{width:n+"px"}}]});break;case"video":ge.Z.store().execCommand("style",{width:n+"px",height:n/1.4+"px"});break;case"image":n&&ge.Z.store().execCommand("style",{width:n+"px",height:"auto"});break;case"svg":n&&ge.Z.store().execCommand("width",n+"px");default:console.warn("no type founded for resizeable")}}else{t.getAttribute("data-type");if("inline-image"===t.getAttribute("data-type")){const t=ge.Z.getSelectedComponent()[0];return void(t&&t.tiptap.chain().updateImage({width:n+"px"}))}}}});ge.Z.addEditor({type:"global",name:"draggable-window-editor",editor:new Ii(".drop-modal-draggable")}),ge.Z.addEditor({type:"images",name:"resizable",editor:i}),be.Z.subscribe("onScroll",(()=>{i&&"function"==typeof i.rePosition&&i.rePosition()})),ge.Z.on("update",(()=>{i&&"function"==typeof i.rePosition&&i.rePosition()})),be.Z.subscribe("resize-page",(()=>{i.stopResize({})}))}}class Ao extends me.oi{constructor(){super(),this.errors={},this.indicators=[],this.lang=fe.h.get("config","language"),this.scrollHandler=this.updatePositions.bind(this),this.resizeHandler=this.updatePositions.bind(this)}connectedCallback(){super.connectedCallback(),ge.Z.on("detectErrors",(t=>{this.errors=t,this.updateIndicators()})),ge.Z.on("change",(()=>{this.updateIndicators()})),window.addEventListener("scroll",this.scrollHandler,!0),window.addEventListener("resize",this.resizeHandler),this.updateIndicators()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("scroll",this.scrollHandler,!0),window.removeEventListener("resize",this.resizeHandler)}updateIndicators(){this.indicators=[],this.errors.buttons&&this.errors.buttons.forEach((t=>{t.element&&this.indicators.push({id:`button-${t.id}`,element:t.element,type:"button",error:t,message:this.getButtonErrorMessage()})})),this.errors.images&&this.errors.images.forEach((t=>{t.element&&this.indicators.push({id:`image-${t.id}`,element:t.element,type:"image",error:t,message:this.getImageErrorMessage()})})),this.errors.links&&this.errors.links.forEach((t=>{t.element&&this.indicators.push({id:`link-${t.id}`,element:t.element,type:"link",error:t,message:this.getLinkErrorMessage()})})),this.requestUpdate(),this.updatePositions()}updatePositions(){this.updateComplete.then((()=>{this.indicators.forEach((t=>{const e=t.element.getBoundingClientRect(),n=this.shadowRoot.querySelector(`[data-indicator-id="${t.id}"]`);n&&(n.style.left=e.right-8+"px",n.style.top=e.top-8+"px")}))}))}getButtonErrorMessage(){const t={en:{title:"Button Missing Link",content:"This button doesn't have a link attached. Click to add a link in the properties panel.",action:"Add Link"},he:{title:"כפתור חסר קישור",content:"לכפתור הזה אין קישור. לחץ כדי להוסיף קישור בלוח המאפיינים.",action:"הוסף קישור"}};return t[this.lang]||t.en}getImageErrorMessage(){const t={en:{title:"Placeholder Image",content:"This image is still using a placeholder. Click to replace it with an actual image.",action:"Replace Image"},he:{title:"תמונת ברירת מחדל",content:"התמונה הזו עדיין משתמשת בתמונת ברירת מחדל. לחץ כדי להחליף אותה בתמונה אמיתית.",action:"החלף תמונה"}};return t[this.lang]||t.en}getLinkErrorMessage(){const t={en:{title:"Invalid Link",content:"This link is invalid or broken. Click to fix the URL in the properties panel.",action:"Fix Link"},he:{title:"קישור לא תקין",content:"הקישור הזה לא תקין או שבור. לחץ כדי לתקן את הכתובת בלוח המאפיינים.",action:"תקן קישור"}};return t[this.lang]||t.en}handleIndicatorClick(t){this.closeAllPopovers();const e=this.shadowRoot.querySelector(`[data-popover-id="${t.id}"]`);e&&e.classList.add("show")}handleActionClick(t){ge.Z.clean().selectComponent(t.error),setTimeout((()=>{"button"===t.type?ge.Z.dispatch("editor-tabs",{name:"link"}):"image"===t.type?ge.Z.dispatch("editor-tabs",{name:"image"}):"link"===t.type&&ge.Z.dispatch("editor-tabs",{name:"link"})}),500),this.closeAllPopovers()}closeAllPopovers(){this.shadowRoot.querySelectorAll(".popover").forEach((t=>{t.classList.remove("show")}))}handleCloseClick(t){t.stopPropagation(),this.closeAllPopovers()}render(){return me.dy`
|
|
2267
2267
|
${this.indicators.map((t=>me.dy`
|
|
2268
2268
|
<div
|
|
2269
2269
|
class="error-indicator"
|
|
@@ -4134,6 +4134,7 @@ padding-right: 10px;"
|
|
|
4134
4134
|
<cdtr-attached-files-plugin
|
|
4135
4135
|
.lazyLoad=${this.onAttachFiles?.lazyLoad}
|
|
4136
4136
|
.files="${this.onAttachFiles?.files}"
|
|
4137
|
+
@file-removed=${t=>this.onAttachFiles?.remove(t.detail)}
|
|
4137
4138
|
@file-added=${t=>this.onAttachFiles?.save(t.detail)}
|
|
4138
4139
|
iconColor="#fff"
|
|
4139
4140
|
buttonText="${fe.h.get("lang","attach_files")}"
|
|
@@ -5479,4 +5480,4 @@ padding-right: 10px;"
|
|
|
5479
5480
|
.popover-content.mobile-centered::before {
|
|
5480
5481
|
display: none;
|
|
5481
5482
|
}
|
|
5482
|
-
`;let Uc=jc;function Zc(t){if("string"!=typeof t)return!1;const e=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","prs","ps","sd","ug","ur","yi"].find((e=>e===t.toLowerCase()));return!!e}Pc([tc({type:String})],Uc.prototype,"width"),Pc([tc({type:Boolean})],Uc.prototype,"opened"),Pc([tc({type:String})],Uc.prototype,"placement"),Pc([tc({type:Boolean,attribute:!1})],Uc.prototype,"isMobileView"),customElements.get(Hc)||customElements.define(Hc,Uc),s.e(6737).then(s.bind(s,36737)),s.e(2340).then(s.bind(s,32340)),Promise.all([s.e(4050),s.e(1410)]).then(s.bind(s,1410)),Promise.resolve().then(s.bind(s,7935)),s.e(4).then(s.bind(s,70004)),s.e(3381).then(s.bind(s,63381)),s.e(6892).then(s.bind(s,6892)),Promise.all([s.e(2475),s.e(7911)]).then(s.bind(s,47911)),s.e(6588).then(s.bind(s,76588)),Promise.resolve().then(s.bind(s,71781)),s.e(9838).then(s.bind(s,19838)),s.e(1650).then(s.bind(s,81650)),Promise.all([s.e(4050),s.e(6220),s.e(1449),s.e(4159)]).then(s.bind(s,4159)),s.e(709).then(s.bind(s,20709)),s.e(8333).then(s.bind(s,48333)),Promise.resolve().then(s.bind(s,35432)),s.e(6961).then(s.bind(s,6961)),Promise.resolve().then(s.bind(s,42729)),s.e(2543).then(s.bind(s,62543)),s.e(7804).then(s.bind(s,77804)),s.e(4648).then(s.bind(s,24648)),s.e(42).then(s.bind(s,30042)),s.e(9476).then(s.bind(s,99476)),s.e(2050).then(s.bind(s,42050)),s.e(6700).then(s.bind(s,75478)),s.e(9203).then(s.bind(s,49203)),s.e(132).then(s.bind(s,90132)),s.e(3732).then(s.bind(s,43732)),s.e(3847).then(s.bind(s,13847)),s.e(4212).then(s.bind(s,14212)),s.e(6308).then(s.bind(s,36308)),s.e(6308).then(s.bind(s,36308)),s.e(185).then(s.bind(s,10185)),s.e(6052).then(s.bind(s,86052)),s.e(7490).then(s.t.bind(s,97490,23)),s.e(6430).then(s.bind(s,16430)),s.e(2416).then(s.bind(s,32416)),s.e(7837).then(s.bind(s,37837)),s.e(8724).then(s.bind(s,88724)),s.e(6236).then(s.bind(s,46236)),s.e(3622).then(s.bind(s,53622)),s.e(1790).then(s.bind(s,81790)),s.e(9001).then(s.bind(s,59001)),s.e(5848).then(s.bind(s,95848)),s.e(201).then(s.bind(s,10201)),s.e(1867).then(s.bind(s,51867)),s.e(5985).then(s.bind(s,55985)),s.e(296).then(s.bind(s,60296)),s.e(6807).then(s.bind(s,36807)),Promise.resolve().then(s.bind(s,50629)),s.e(2087).then(s.bind(s,12087)),s.e(3755).then(s.bind(s,83755)),s.e(116).then(s.bind(s,50116)),s.e(5034).then(s.bind(s,75034)),s.e(4473).then(s.bind(s,4473)),s.e(7597).then(s.bind(s,87597)),s.e(1199).then(s.bind(s,31199)),s.e(4661).then(s.bind(s,84661)),s.e(2357).then(s.bind(s,72357)),s.e(2118).then(s.bind(s,92118)),s.e(494).then(s.bind(s,10494)),s.e(4569).then(s.bind(s,4569)),s.e(3831).then(s.bind(s,73831)),s.e(966).then(s.bind(s,60966)),s.e(5581).then(s.bind(s,35581)),s.e(8251).then(s.bind(s,38251)),s.e(8290).then(s.bind(s,88290)),s.e(4900).then(s.bind(s,74900)),s.e(2022).then(s.bind(s,32022)),s.e(3794).then(s.bind(s,83794)),s.e(6046).then(s.bind(s,76046)),s.e(6593).then(s.bind(s,76593)),s.e(6883).then(s.bind(s,46883)),s.e(9050).then(s.bind(s,99050)),s.e(6479).then(s.bind(s,86479)),s.e(8522).then(s.bind(s,78522)),s.e(7149).then(s.bind(s,67149)),s.e(308).then(s.bind(s,90308)),s.e(3020).then(s.bind(s,63020)),s.e(5910).then(s.bind(s,55910)),s.e(8287).then(s.bind(s,58287)),s.e(9136).then(s.bind(s,59136)),s.e(6196).then(s.bind(s,46196)),s.e(1381).then(s.bind(s,71381)),s.e(6524).then(s.bind(s,54050)),s.e(19).then(s.bind(s,19)),s.e(5478).then(s.bind(s,35478)),s.e(1101).then(s.bind(s,31101)),s.e(2721).then(s.bind(s,2721)),s.e(2365).then(s.bind(s,82365)),s.e(2182).then(s.bind(s,12182)),s.e(8073).then(s.bind(s,18073)),Promise.all([s.e(4050),s.e(6220),s.e(1449),s.e(9628)]).then(s.bind(s,99628)),Promise.all([s.e(2609),s.e(4128)]).then(s.bind(s,14128)),Promise.all([s.e(4050),s.e(6220),s.e(9201)]).then(s.bind(s,99201)),Promise.all([s.e(4050),s.e(6220),s.e(2609),s.e(168)]).then(s.bind(s,30168)),Promise.resolve().then(s.bind(s,72743)),s.e(5246).then(s.bind(s,45246)),s.e(2397).then(s.bind(s,62397)),s.e(6993).then(s.bind(s,26993)),xo({href:"https://fonts.googleapis.com",ref:"preconnect",crossorigin:!0}),xo({href:"https://fonts.gstatic.com",ref:"preconnect",crossorigin:!0});const Fc=t=>{{const{component:e,commands:n,helpers:r}=t;return{select:t=>{let{changeTab:e,tab:n}=t;"design"!==n.text&&e("design")},tabs:t=>{const e=[{text:"design"}];return e.forEach((e=>e.selected=e.selected=e.text===t)),e},layout:t=>{let{tab:r,changeTab:i,tabs:o}=t;const s=[{type:"heading",level:6,text:"rootelement_editor_top_header"},{type:"fontFamily",text:"fontFamily",value:e.props?.style?.fontFamily,onChange:t=>{const e=t.target.value,n=(fe.h.get("components"),ge.Z.getComponents().find((t=>"root"===t.type))),r=[];ge.Z.store().execCommand("style",{fontFamily:e}),n.treeWalk((t=>{if(t&&t.props&&!["root","section","block","row","col"].find((e=>e===t.type))&&(t.props.style&&t.props.style.fontFamily!==e&&ge.Z.store().updateComponent(t,"style",{fontFamily:e}),t.type.equalWith("text")&&r.push(t.tiptap),Array.isArray(t.props.items))){const n=JSON.parse(JSON.stringify(t.props.items));n.forEach((t=>{t&&(t.style?t.style.fontFamily=e:t.props&&t.props.style&&(t.props.style.fontFamily=e),t.props&&t.props.label_field&&t.props.label_field.props&&t.props.label_field.props.style&&(t.props.label_field.props.style.fontFamily=e))})),ge.Z.store().updateComponent(t,"items",n)}})),r.forEach((t=>{t.chain().selectAll().setFontFamily({cssRule:e}).run()}))}},{type:"slider",title:"block_width",min:500,max:1200,value:(()=>{const t=e.find("section");let n=parseInt(t?.props.style.width);if(!n){const e=t?.element.getBoundingClientRect();n=e.width}return parseInt(n)})(),onInput:t=>{let n=t.target.value;n<500&&(n=500),n>1200&&(n=1200);const r=(()=>{const t=[],n=e.find("section");return n&&n.children.forEach((e=>{const n=fe.h.get("components",e);n&&"block"===n.type&&t.push(n)})),t})();ge.Z.store().execCommand2({transactions:[{key:"style",value:{width:n+"px",maxWidth:"100%"}}],update:r})}},{type:"divider"},{type:"colorpicker",alpha:!1,value:e.props.style.background||"#fff",title:"page_background",onChange:t=>{const e=t.target.value;n.execCommand("style",{background:e})}},{type:"divider"},{type:"colorpicker",alpha:!1,title:"bgColor_blocks",onChange:t=>{const e=t.target.value,n=fe.h.get("components").filter((t=>t.type.equalWith("block")));ge.Z.store().execCommand2({transactions:[{key:"style",value:{background:e}}],update:n})}},{type:"divider"},{type:"heading",level:6,text:"rootelement_editor_global_colors_heading"},{type:"heading",level:6,text:"Primary"},{type:"colorpicker",alpha:!1,title:"primaryColor",value:e.props.primaryColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("primaryColor",e)}},{type:"colorpicker",alpha:!1,title:"primaryContrastColor",value:e.props.primaryContrastColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("primaryContrastColor",e)}},{type:"divider"},{type:"heading",level:6,text:"secondary"},{type:"colorpicker",alpha:!1,title:"secondaryColor",value:e.props.secondaryColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("secondaryColor",e)}},{type:"colorpicker",alpha:!1,title:"secondaryContrastColor",value:e.props.secondaryContrastColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("secondaryContrastColor",e)}}];return s}}}},Vc=t=>{let{helpers:e,template:n,globalStylesVar:r}=t;return{set:(t,i,o)=>{switch(i){case"style":return t[i]=o,e.mergeDiff(n,{style:t[i]}),!0;case"fontFamily":case"fontSize":case"paragraphFontSize":case"headingLvlOneFontSize":return t[i]=o,!0;case"primaryColor":case"secondaryColor":case"primaryContrastColor":case"secondaryContrastColor":case"secondaryColor":return t[i]=o,r.patch(t),!0;default:return!1}}}};var Yc=s(8831),Wc={};Wc.setAttributes=u(),Wc.insert=p().bind(null,"head"),Wc.domAPI=c(),Wc.insertStyleElement=m();o()(Yc.Z,Wc);const qc=Yc.Z&&Yc.Z.locals?Yc.Z.locals:void 0,Xc=document.createElement("style");Xc.patch=function(t){let{primaryColor:e,primaryContrastColor:n,secondaryColor:r,secondaryContrastColor:i}=t;e&&(Xc.innerHTML=`:root{--cdtr-primary:${e}}`),r&&(Xc.innerHTML+=`:root{--cdtr-secondary:${r}}`),i&&(Xc.innerHTML+=`:root{--cdtr-secondary-contrast:${r}}`),n&&(Xc.innerHTML+=`:root{--cdtr-primary-contrast:${n}}`)};const Gc=()=>{const t="root";return{name:t,create:e=>{const{createElement:n,compose:i,helpers:o}=e,{children:s,backgrounds:a,commands:l}=i,{mergeDiff:c,arrayToString:d}=l;i.style||(i.style={});const p=d("root-component",i.classList,qc.root);document.head.append(Xc),Xc.patch(i.props);const h=(0,r.Z)("div",{"data-id":i.id},s),u=(0,r.Z)("div",(0,A.Z)({},i,{className:p}),h);let f,m,g=(0,r.Z)("style",null,'\n .text-component:after{\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: transparent;\n }\n ');new xc.ZP(h,{group:"section-component",animation:450,handle:".section-handle--sortable",onStart:t=>{document.body.style.position="fixed",document.body.appendChild(g);const e=t.item;f=e.previousSibling?.dataset.id,m=e.nextSibling?.dataset.id},onEnd:function(t){document.body.style.position=null,g.remove();const e=t.item,n=t.to,r=t.from,i=t.oldIndex,o=t.newIndex;t.oldDraggableIndex,t.newDraggableIndex,t.clone,t.pullMode;ge.Z.store().moveComponent({componentId:e.dataset.id,newParentId:n.dataset.id,oldParentId:r.dataset.id,oldIndex:i,newIndex:o})}});return ge.Z.on("update",(()=>{setTimeout((()=>{const t=u.querySelector(`.${qc.placeholder}`),e=h.children.length;0===e&&t||(e>0&&t?t.remove():0!==e||t||u.appendChild((0,r.Z)("div",{className:qc.placeholder},(0,r.Z)("h1",null,"זה דף ריק,לחצו כאן כדי להוסיף אלמנטים, ורקעים"),(0,r.Z)("div",null,(0,r.Z)("paper-button",{onMousedown:()=>{be.Z.dispatch("open_add_menu",{type:"section-component"})},style:"color:var(--primary)"},(0,r.Z)("lang-text",{text:"for_quike_action_click_here"}))))))}),0)})),n({name:t,id:i.id,template:u,childrenHolder:h,allowSortable:!0,defaultProps:{},validator:Vc({template:u,helpers:o,globalStylesVar:Xc}),schema:i.schema,onSelect:()=>{},onDeselect:()=>{},elementProps:i,remove:()=>{u.remove()},createEditor:Fc})}}};var Kc=s(64721);const Jc=t=>{{const{component:e,commands:n,helpers:r}=t;return{select:t=>{let{changeTab:e,tab:n}=t;"design"!==n.text&&e("design")},tabs:t=>{const e=[{text:"design"},{text:"animations"},{text:"settings"}];return e.forEach((e=>e.selected=e.selected=e.text===t)),e},layout:t=>{let{tab:r,changeTab:i,tabs:o}=t;const s=e.closest("col"),a=[{type:"colorpicker",title:"background",value:e.props.style.background,onChange:t=>{const e=t.target.value;n.execCommand("style",{background:e})}},,{type:"slider",title:"width",value:parseFloat(e.props.style.width),unit:"px",min:20,max:parseInt(window.getComputedStyle(s.element).width),onInput:t=>{const e=t.target.value;n.execCommand("style",{width:e+"px"})}},{type:"slider",title:"height",value:parseFloat(e.props.style.minHeight)||0,unit:"px",min:100,max:800,onInput:t=>{const e=t.target.value;n.execCommand("style",{minHeight:e+"px"})}}];return a}}}};s(46245);const Qc=t=>{let{helpers:e}=t;return{set:(t,n,r)=>{if("style"===n)return t[n]=e.deepMerge(t[n],r),!0}}};var td=s(77814),ed={};ed.setAttributes=u(),ed.insert=p().bind(null,"head"),ed.domAPI=c(),ed.insertStyleElement=m();o()(td.Z,ed);const nd=td.Z&&td.Z.locals?td.Z.locals:void 0,rd=t=>{let{channel:e}=t;const n="card";return{name:n,menu:t=>{let{Compose:e}=t;return new e({type:n,children:[{type:"image",props:{}}],props:{style:{width:"300px",background:"#fff"}}},{group:"col",name:n,puzzle:[{type:"article"}],tags:[n],index:null})},create:t=>{const{createElement:e,compose:r,helpers:i}=t,{arrayToString:o,mergeDiff:s}=i,{children:a}=r,l=o(nd.root,r.classList),c=document.createElement("div"),d=document.createElement("div");a[0].forEach((t=>{d.appendChild(t)})),c.append(d),c.className=l;const p=r.props.style;return delete p.border,delete p.borderWidth,delete p.borderStyle,delete p.borderColor,e({name:n,id:r.id,template:c,handleBar:!0,render:()=>{const t=p.width;if(p.height||(c.style.height="100%"),!parseInt(t)&&p.maxWidth){const t=p.padding||0;p.width=parseInt(p.maxWidth)-2*parseInt(t,10)+"px"}s(c,{style:p})},draggable:{group:"col"},childrenHolder:d,allowSortable:!0,defaultProps:{style:{background:"#fff",borderRadius:".2rem",width:"300px",maxWidth:"100%"}},validator:Qc({template:c,helpers:i,children:a}),schema:r.schema,onSelect:t=>{c.classList.add(t)},onDeselect:t=>{c.classList.remove(t)},elementProps:r,remove:()=>{c.remove()},createEditor:Jc})}}};let id;const od=class{constructor(e){let r;if((0,t.Z)(this,"site",void 0),(0,t.Z)(this,"commands",void 0),(0,t.Z)(this,"editor",void 0),e.channel||(e.channel="newsletter"),this.editor={setContent:t=>{id&&id.remove(),id=vo({target:e.target,page:{},components:t||[]},(()=>{}))}},this.commands={snackbar:t=>{be.Z.dispatch("snackbar",{text:t})},langs:()=>fe.h.get("lang"),lang:t=>fe.h.get("lang",t),injectEditor:t=>{const e=fe.h.get("injectEditor");e&&e(t)},execCommand:(t,e)=>{ge.Z.store().execCommand(t,e)},toJSON:ec.au,toHTML:ec.io},fe.h.set({commands:this.commands}),e.target)if("string"==typeof e.target){if(r=document.getElementById(e.target),!r)throw new Error("string must be valid id or htmlElement")}else e.target instanceof HTMLElement?r=e.target:(r=document.createElement("div"),document.body.appendChild(r));else r=document.createElement("div"),e.target=r;fe.h.set({editor:ge.Z});const i=e.target;i.style.maxHeight="100vh",i.style.overflow="hidden",i.style.position="relative",ge.Z.on("change",(()=>{(0,ec.au)()})),fe.h.set({app:{_id:e.appId,name:e.documentName}}),e.languageJson&&fe.h.set({lang:e.languageJson}),ge.Z.configure=e?.editor?.configure;const o=e.language;!function(){if(Zc(o)){fe.h.set({langConfig:{direction:"rtl",align:"right",justifyContent:"flex-start",justify:"start"}}),e.theme.textAlign=e.theme.textAlign?e.theme.textAlign:"right",e.theme.direction=e.theme.direction?e.theme.direction:"rtl",e.theme.justifyContent=e.theme.justifyContent?e.theme.justifyContent:"flex-start",e.theme.rowDirection=e.theme.rowDirection?e.theme.rowDirection:"row";const t=n(e.theme);fe.h.set({theme:t.theme}),i.appendChild(t.styleTag)}else{fe.h.set({langConfig:{direction:"ltr",align:"left",justifyContent:"flex-end",justify:"end"}}),e.theme.textAlign=e.theme.textAlign?e.theme.textAlign:"left",e.theme.direction=e.theme.direction?e.theme.direction:"ltr",e.theme.justifyContent=e.theme.justifyContent?e.theme.justifyContent:"flex-end",e.theme.rowDirection=e.theme.rowDirection?e.theme.rowDirection:"row-reverse";const t=n(e.theme);fe.h.set({theme:t.theme}),i.appendChild(t.styleTag)}let t=ge.Z?.configure?.plugins;Array.isArray(t)||(t=[]),t.push(Gc),t.push(Kc.Z),t.push(rd),t=t.map((t=>t({channel:e.channel||"web",languages:e.languageJson,direction:fe.h.get("langConfig").direction,textAlign:fe.h.get("langConfig").align})));const r=e;r.editor.configure.plugins=t,fe.h.set({config:r,schemes:t}),id=vo({target:e.target,page:{},components:e.components||[]},(()=>{const t=fe.h.get("components").find((t=>"root"===t.type));t&&ge.Z.clean().selectComponent(t)}))}(),e.collaborator,ge.Z.connectWithCloud(e.collaborator)}};function sd(){const t="image";return{id:"1",name:t,menu:e=>{let{Compose:n}=e;return new n((()=>{const e="400px",n="250px";return{type:t,props:{alt:"image",width:e,height:n,style:{height:"auto",width:e,maxWidth:"100%",minWidth:"30px",objectFit:"fill"},src:`https://api.creaditor.com/images/placeholder?width=${parseInt(e)||250}&height=${parseInt(n)||250}`,isOpenWithModal:!1,isFullWidthOnMobile:!1,isRatioLock:!0}}})(),{group:"elements",name:t,puzzle:[{type:"image"}],tags:[t],index:null})},lazy:t=>{s.e(7946).then(s.bind(s,7946)).then((e=>{t(e.default())}))}}}function ad(t){const{languages:e,direction:n,textAlign:r}=t,i="@paragraph/text";return{id:i,name:i,menu:t=>{let{Compose:o}=t;return new o({type:i,props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:r},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:e.generalText}]}]}}}},{group:"elements",name:"text",puzzle:[{type:"text"}],tags:[i],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(ad.data))}))}}}ad.configure=t=>{let{fontSize:e,title:n,suffix:r,prefix:i,fonts:o,direction:s,textAlign:a}=t;return ad.data={fontSize:e,title:n,suffix:r,prefix:i,fonts:o,direction:s,textAlign:a},ad};const ld="video";function cd(t){let{channel:e}=t;return"web"===e?{id:"vvidoe-4Kj^43",name:ld,menu:t=>{let{Compose:e}=t;return new e({type:ld,props:{height:"auto",width:"400px",height:"300px",playing:!1,loop:!1,light:!1,controls:!0,autoPlay:!1,muted:!1,url:"https://www.youtube.com/watch?v=04Or_U9OexU"}},{group:"elements",name:ld,puzzle:[{type:"video"}],tags:[ld],index:null})},lazy:t=>{Promise.all([s.e(3691),s.e(3585)]).then(s.bind(s,83585)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"vvidoe-4Kj^43",name:ld,menu:t=>{let{Compose:e}=t;return new e({type:ld,props:{height:"auto",width:"400px",height:"300px",playing:!1,loop:!1,light:!1,controls:!0,autoPlay:!1,muted:!1,url:"https://www.youtube.com/watch?v=04Or_U9OexU"}},{group:"elements",name:ld,puzzle:[{type:"video"}],tags:[ld],index:null})},lazy:t=>{Promise.all([s.e(3691),s.e(6069)]).then(s.bind(s,46069)).then((e=>{t(e.default())}))}}:void 0}function dd(t){const{languages:e,direction:n,textAlign:r}=t,i="text",o=`${i}/heading1`;return{id:o,name:i,menu:t=>{let{Compose:s}=t;return new s({type:i,props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:1,lineHeight:"1.4",direction:n,textAlign:r},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"62px",color:"rgb(56, 56, 56)"}}],type:"text",text:e.bigHeading}]}]}}}},{id:o,group:"elements",name:"heading 1",puzzle:[{type:"heading1"}],tags:[i],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(dd.data))}))}}}function pd(t){const e="text",{languages:n,direction:r,textAlign:i}=t;return{id:"5445",name:e,menu:t=>{let{Compose:o}=t;return new o({type:e,props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:2,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"42px",color:"rgb(56, 56, 56)"}}],type:"text",text:n.mediumHeading}]}]}}}},{id:`${e}/heading2`,group:"elements",name:"heading 2",puzzle:[{type:"heading2"}],tags:[e],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(pd.data))}))}}}function hd(t){const e="text",{languages:n,direction:r,textAlign:i}=t;return{id:"544663",name:e,menu:t=>{let{Compose:o}=t;return new o({type:e,props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:3,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"24px",color:"rgb(56, 56, 56)"}}],type:"text",text:n.smallHeading}]}]}}}},{id:`${e}/heading3`,group:"elements",name:"heading 3",puzzle:[{type:"heading3"}],tags:[e],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(hd.data))}))}}}dd.configure=t=>(dd.data=t,dd),pd.configure=t=>(pd.data=t,pd),hd.configure=t=>(hd.data=t,hd);const ud="countdown";function fd(t){let{channel:e}=t;return"web"===e?{id:"1",name:ud,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setHours(n.getMinutes()+30),{type:ud,props:{hasColons:!0,hasLabels:!0,date:n.toString(),language:"he",style:{},classList:[],containerWidth:"300px",containerBg:"transparent",containerRadius:"0",colBg:"transparent",colBorderStyle:"none",colBorderSize:"0",colBorderColor:"none",colBorderPadding:"0",colBorderRadius:"100px",numberSize:"30px",numberColor:"black",numberFontFamily:"Arial",labelSize:"14px",labelColor:"black",labelfontFamily:"Arial"}}),{id:ud,group:"elements",name:ud,puzzle:[{type:"countdown"}],tags:[ud],index:null});var n},lazy:t=>{s.e(9e3).then(s.bind(s,99e3)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"1",name:ud,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setMinutes(n.getMinutes()+30),{type:ud,props:{hasColons:!0,hasLabels:!0,date:n.toString(),language:"he",style:{},classList:[],containerWidth:"400px",containerBg:"transparent",containerRadius:"0",colBg:"transparent",colBorderStyle:"none",colBorderSize:"0",colBorderColor:"none",colBorderPadding:"0",colBorderRadius:"100px",numberSize:"30px",numberColor:"black",numberFontFamily:"Arial",labelSize:"14px",labelColor:"black",labelfontFamily:"Arial"}}),{group:"elements",name:ud,puzzle:[{type:"countdown"}],tags:[ud],index:null});var n},lazy:t=>{s.e(5204).then(s.bind(s,95204)).then((e=>{t(e.default())}))}}:void 0}function md(t){const{languages:e}=t,n="button";return{id:"button-menu",name:n,menu:t=>{let{Compose:r}=t;return new r({type:n,props:{text:e.readMore,style:{height:"auto",width:"100px",maxWidth:"100%",minWidth:"30px",background:"#000",color:"#fff"}}},{group:"elements",name:n,puzzle:[{type:"button"}],tags:[n],index:null})},lazy:t=>{s.e(9800).then(s.bind(s,29800)).then((e=>{t(e.default())}))}}}const gd="map";function bd(t){let{channel:e}=t;return"web"===e?{id:"1",name:gd,menu:t=>{let{Compose:e}=t;return new e({type:gd,props:{width:200,height:200,style:{height:"200px",width:"200px"},address:"תל אביב"}},{group:"elements",name:gd,puzzle:[{type:"map"}],tags:[gd],index:null})},lazy:t=>{s.e(9265).then(s.bind(s,59265)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"1",name:gd,menu:t=>{let{Compose:e}=t;return new e({type:gd,props:{width:200,height:200,style:{height:"200px",width:"200px"},address:"תל אביב",lang:"he"}},{group:"elements",name:gd,puzzle:[{type:"map"}],tags:[gd],index:null})},lazy:t=>{s.e(6234).then(s.bind(s,46234)).then((e=>{t(e.default())}))}}:void 0}const yd="social";function Ad(t){let{channel:e}=t;return"web"===e?{id:"1",name:yd,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setMinutes(n.getMinutes()+30),{type:yd,props:{}}),{group:"elements",name:yd,puzzle:[{type:"social"}],tags:[yd],index:null});var n},lazy:t=>{s.e(9e3).then(s.bind(s,99e3)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"1",name:yd,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setMinutes(n.getMinutes()+30),{type:yd,props:{style:{gap:"10px"},items:[{id:(0,In.Z)(),fgColor:"",bgColor:"",style:{width:"30px",height:"30px"},url:"https://youtube.com",src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/youtube.png"},{id:(0,In.Z)(),fgColor:"",bgColor:"",style:{width:"30px",height:"30px"},src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/snapchat.png"},{id:(0,In.Z)(),fgColor:"",bgColor:"",style:{width:"30px",height:"30px"},url:"https://whatsapp.com",src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/whatsapp.png"}]}}),{group:"elements",name:yd,puzzle:[{type:"social"}],tags:[yd],index:null});var n},lazy:t=>{s.e(7637).then(s.bind(s,77637)).then((e=>{t(e.default())}))}}:void 0}function wd(t){const e=t?.heading,n=t?.text,r=t?.direction,i=t?.textAlign;return{type:"card",props:{style:{width:"95%",maxWidth:"345px",padding:"10px"}},children:[{type:"col",children:[{type:"image",props:{src:"https://api.creaditor.com/images/placeholder?width=350&height=150",width:400,height:150,isFullWidthOnMobile:!0,style:{width:"100%"}}}]},{type:"col",children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:1,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"24px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:n}]}]}}}}]},{type:"col",props:{justify:"rtl"===r?"end":"start",style:{}},children:[{type:"button",props:{style:{}}}]}]}}function vd(t){const e=t?.text;return{type:"row",props:{style:{width:"300px"}},children:[{type:"col",props:{lg:12,sm:12,justify:"end"},children:[{type:"image",draggable:!1,props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/last-post-quotes.png",width:24,height:24,style:{width:"24px",height:"24px"}}}]},{type:"col",props:{lg:12,sm:12},children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:"rtl",textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",props:{lg:12,sm:12,justify:"start"},children:[{type:"image",draggable:!1,props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/last-post-quotes.png",width:24,height:24,style:{width:"24px",height:"24px"}}}]}]}}function xd(t){let{homePageText:e,direction:n,textAlign:r}=t;return{name:"contact",icon:[{type:"contact"}],tags:["image","two images"],children:[{type:"col",children:[{type:"image",props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/mail.png",width:30,height:30,style:{width:"35px",height:"35px"}}},{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:"example@example.com"}]}]}}}}]},{type:"col",children:[{type:"image",props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/website.png",width:30,height:30,style:{width:"35px",height:"35px"}}},{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",children:[{type:"image",props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/phone.png",width:30,height:30,style:{width:"35px",height:"35px"}}},{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:"0505891010"}]}]}}}}]}]}}function _d(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.width||400,n=t.height||200;return{type:"image",props:{alt:"image",width:e,height:n,style:{height:"auto",width:e,maxWidth:"100%",minWidth:"30px",objectFit:"fill"},src:`https://api.creaditor.com/images/placeholder?width=${parseInt(e)||250}&height=${parseInt(n)||250}`,isOpenWithModal:!1,isFullWidthOnMobile:!1,isRatioLock:!0}}}function kd(){const t={width:300,height:200};return{name:"two images",icon:[{type:"image"},{type:"image"}],tags:["image"],children:[_d(t),_d(t)]}}function Cd(){const t={width:200,height:200};return{name:"threeImages",icon:[{type:"image"},{type:"image"},{type:"image"}],tags:["quote"],children:[_d(t),_d(t),_d(t)]}}function Ed(){const t={width:150,height:100};return{name:"fourImages",icon:[{type:"image"},{type:"image"},{type:"image"},{type:"image"}],tags:["image"],children:[_d(t),_d(t),_d(t),_d(t)]}}function Sd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t?.text;return{type:"button",props:{style:{height:"40px",padding:"10px",borderRadius:"5px"},text:e}}}function Bd(t){const e=t?.heading,n=t?.text,r=t?.direction,i=t?.textAlign;return{type:"card",id:"card-title-txt-bton",props:{style:{width:"95%",maxWidth:"345px",background:""}},children:[{type:"col",props:{alignItems:"center"},children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:1,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"24px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",props:{alignItems:"center"},children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:n}]}]}}}}]},{type:"col",props:{justify:"rtl"===r?"end":"start",style:{}},children:[{type:"button",props:{style:{marginTop:"10px"}}}]}]}}const Od=JSON.parse('{"name":"שם","link":"קישור","secureLink":"קישור מאובטח","tel":"טלפון","email":"אימייל","items":"פריטים","confirm":"אישור","contact":"יצירת קשר","loadingMore":"טוען תמונות נוספות...","loading":"טוען...","image_in_progress":"התמונה נוצרת...","expand_image_for_outlook_description":"כדי שהתמונה תוצג ותשמור על פרופורציות - הפעילו את הצ׳קבוקס כדי לשמור על גובה התמונה.","email_600":"הפרקטיקות המומלצות לעיצוב מיילים קובעות שגודל הרוחב האידיאלי של ניוזלטר הוא 600 פיקסלים. מספר זה היה הסטנדרט במשך שנים רבות.","mergeTags":"תגיות מיזוג","simply:Scratchcard":"כרטיס גירוד","is_user_wants_https":"להחליף את הקישור לhttps?","social":"רשתות חברתיות","prompt_editor_context":"האם להתייחס לטקסט הקיים?","Enter_your_business_name":"הכניסו את שם העסק שלכם","Enter_your_business_type":"הכניסו את סוג העסק שלכם","Enter_the_URL_of_the_page":"הכניסו את כתובת הדף שלכם","secure_link":"קישור מאובטח","bulletColor":"צבע הבולט","links_with_invalid_url":"קישורים עם כתובות לא תקינות","images_without_alt":"תמונות ללא תיאור","savedLinks":"קישורים שמורים","sms_body_if_needed":"גוף ההודעה אם נדרש","whatsapp_body_if_needed":"הודעת וואטסאפ אם נדרש","twoImages":"שתי תמונות","fourImages":"ארבע תמונות","threeImages":"שלוש תמונות","threeButtons":"שלושה כפתורים","borderSize":"גודל הגבול","file":"קובץ","root":"הדף","col":"עמודה","inline-image":"תמונה פנימית","link_of_button":"לאן הכפתור מוביל ?","addedToFavorite":"התווסף למועדפים","removedFromFavorite":"נמחק מהמועדפים","choose_backgroundColor":"בחרו צבע רקע","removedSuccess":"נמחק בהצלחה","aToZ":"א-ת","zToA":"ת-א","anchorName":"שם העוגן","inputEmptyError":"יש למלא את השדה","savedSuccess":"נשמר בהצלחה","createdSuccessfully":"בוצע בהצלחה","texts":"טקסטים","numOneAsFemale":"אחת","click_here_to_add":"לחצו להוספה","heading":"כותרת","bigHeading":"כותרת גדולה","readMore":"קראו עוד","mediumHeading":"כותרת בינונית","smallHeading":"כותרת קטנה","icons":"אייקונים","divider":"קו מפריד","bullets":"בולטים","numbered":"מספור","ok":"אוקי","newImage":"תמונה חדשה","newFolder":"תיקיה חדשה","folders":"תיקיות","edit":"עריכה","article":"מאמר","videoWithArticle":"וידאו עם מאמר","fit_colors":"צבעים מתאימים","plainSection":"מקטע ריק","iamgeWithArticle":"תמונה עם מאמר","imageWithText":"תמונה עם טקסט","BulletsWithImage":"בולטים עם תמונה","BulletsWithArticle":"בולטים עם מאמר","SocialNetwork":"רשת חברתית","twoArticles":"שני מאמרים","twoButtons":"שני כפתורים","threeArticles":"שלושה מאמרים","imageWithBullets":"תמונה עם בולטים","undo":"ביטול","redo":"ביצוע מחדש","wide":"מתוח לכל האוחב","click_to_add":"","videos":"סרטונים","empty_section_info":"זהו מקטע ריק, לחצו כאן כדי להוסיף בלוקים","text:button":"מה הכפתור אומר?","video":"סרטון","images":"תמונות","image":"תמונה","weight":"עובי","buttons":"כפתורים","button":"כפתור","general":"כללי","all":"הכל","myImages":"התמונות שלי","uploadSuccess":"העלאה הושלמה","fromOldToNew":"מהישן לחדש","fromNewToOld":"מהחדש לישן","download":"הורדה","quotes":"ציטוט","recommended":"מומלץ","save_block":"שמירת בלוק","what_category":"באיזו קטגוריה?","middle":"אמצע","give_name_to_block":"תנו שם לבלוק","quote":"ציטוט","no_responsive":"ביטול רספונסיביות","home_page":"דף הבית","quote | image":"ציטוט | תמונה","image | quote":"תמונה | ציטוט","image | card":"כרטיס | תמונה","card | image":"תמונה | כרטיס","quotesWithText":"ציטוט עם טקסט","delete":"מחיקה","anchor":"עוגן","drag_section":"החליפו מיקום עם מקטע אחר","drag_block":"לחצו לבחירה או גררו לשנות את המיקום","remove_block":"הסרת בלוק","duplicate_block":"שכפול בלוק","deleteElement":"מחיקת אלמנט","deleteBlock":"מחיקת בלוק","preview":"תצוגה מקדימה","design":"עיצוב","changeName":"שינוי שם","upload":"העלאת תמונה","add":"הוספה","publish":"פרסם","addons":"תוספות","duo":"מועד","position":"מיקום","drag_to_move_click_to_options":"גרירה להזזה, לחיצה להגדרות","save":"שמירה","repeat":"חזור","autoplay":"הפעל מיד","expand_image_for_outlook":"הגדלת תמונה לאאוטלוק","errors_to_fix":"שגיאות לתיקון","buttons_without_links":"כפתורים ללא קישור","images_with_default_src":"תמונות עם כתובת דיפולטית","urlAddressToYoutVimeo":"שורת כתובת ליוטיוב, וימאו","add_urlAddress_from_media_site":"קישור חיצוני","remove_background_movie":"הסרת רקע","playInLoop":"הפעל בלופ","height_in_section":"גובה, 100 יפרס לכל גובה המסך בהתאם למכשיר","cellSpace":"ריווח תא","numbers":"מספרים","titles":"כותרות","go_to_edit_mode":"חזרה למצב עריכה","auto":"אוטומטי","search":"חיפוש","showAsImage":"הצג כתמונה","titlesStyle":"עיצוב הכותרות","delete_section":"הסרת מקטע","numbersStyle":"עיצוב המספרים","slientMode":"מצב השתק","ratioLock":"נעילת יחס","choose_your_duo_date":"בחרו את המועד הסופי","videoLink":"קישור לסרטון","openAsModal":"פתח תמונה בחלון צף","innerBackgroundColor":"רקע פנימי","radius":"רדיוס","iconsColor":"צבע האייקונים","whereIframeLink":"לאן האייפרם מכוון?","whereIsLinkTo":"?לאן הקישור מכוון","dividerColor":"צבע קו מפריד","buttonText":"טקסט הכפתור","settings":"הגדרות","counterTitle":"הצגת כותרות","foreColor":"צבע הטקסט","colors":"צבעים","marginBottom":"ריווח תחתון","color":"צבע","openGalleryImage":" גלריית תמונות","icon_gallery":"גלריית אייקונים","folderName":"שם תיקיה","addFolder":"הוספת תיקיה","newFolderAdded":"התיקיה ונוספה בהצלחה","file_moved_to_new_folder":"הקובץ הועבר לתיקיה אחרת","add_block":"הוספת בלוק","counterColor":"צבע למונה","chooseBlock":"גרור בלוק","automations":"אוטומציות","list-settings":"מתקדם","page_background":"רקע הדף","bgColor_blocks":"רקע הבלוקים","create_anchor":"צריכים עוגן? לחצו פה","copy":"העתק","uploading":"אני עובד על זה!","verifying":"רגע... כמה בדיקות קטנות","completed":"זהו... סיימתי!","timeout":"אופס! לא בטוח מה קרה פה...","copy_to_here":"העתקה לכאן","addLinks":"הוספת קישור","keep_ratio":"שמירת יחס","list-check":"אלמנטים","powered_by_pexels":"כל התמונות מאתר Pexels","image_micro_copy":"הוסיפו תמונה(אבל אחת יפה) בלחיצה על הכפתור, או לחיצה כפולה על התמונה","typography_micro_copy":"סמנו בדיוק את המילה, או בכלל לא כדאי לעצב את הטקסט","icons_list_micro_copy":"במידה ובולט לא נראה רציני במיוחד, החליפו אותו עם אייקון מעוצב ","anchor_name_micro_copy":"תנו לעוגן שם עכשיו, ותוכלו למצוא אותו בעריכת הקישורים אחר כך.","imageEditTitle":"עריכת תמונה","generate_content":"יצירת תוכן","creating_magic":"אני יוצר את התוכן שלכם...","address":"כתובת","prompt_editor_title":"יצירת תוכן","prompt_editor_textarea_placeholder":"תארו את התמונה שברצונכם לייצר","block_width":"רוחב הבלוקים","describe_image_prompt_input":"תארו את התמונה שברצונכם לייצר","image_prompt_editor_description":"אנחנו יכולים לייצר תמונה בהתאם לתיאור שתכתבו כאן, בלחיצה על כפתור הבחירה תוכלו לבחור תמונה מגלריית התמונות שלכם, או להכניס כתובת תמונה של תמונה חיצונית","insert_image":"בחירה","generate_image":"יצירת תמונה","generating":"אני עובד על זה...","creating_your_masterpiece":"אני יוצר את התמונה שלך...","he":"עברית","en":"אנגלית","ar":"ערבית","empty_state":"שקט פה.. שנתחיל שיחה?","videoEditTitle":"עריכת סרטון","backgroundColor":"צבע רקע","labels":"כותרות","add_table":"הוספת טבלה","button_design":"עיצוב הכפתור","background:form":"רקע הטופס","background:fields":"רקע השדות","width:form":"רוחב הטופס","no_editor:title":"עדיין לא יצרנו עריכה לאלמנט הזה, אנחנו עובדים על זה.","addons_menu:title":" תפריט התוספים, זה החלק המעניין, פה ניתן למצוא תוספים לשדרוג התוכן שלכם. פיצ\'רים נוספים יעלו בקרוב. בנתיים ניתן לגרור את האלמנט לבלוק או מקטע בגרירה חופשית לכל נקודה שתרצו..","sections_menu:title":"תפריט מקטעים, יצירת מקטע דורשת תשומת לב רבה לצרכים שלך, אנחנו עוד עובדים על זה, בנתיים ניתן ליצור מקטע ריק.","backgrounds_menu:title":"תפריט רקעים, בחרו רקע, אבל אחד יפה, וגררו אותו לבלוק או מקטע.","blocks_menu:title":"תפריט בלוקים, פה ניתן למצוא קומפוזציות של כמה אלמנטים שונים, ניתן לגרור אותם בין הבלוקים השונים ובין המקטעים ","elements_menu:title":"תפריט אלמנטים, גררו את האלמנט לצד אלמנט, התקרבו לפינה כדי לפתוח כתא חדש, או פשוט מתחת הבלוק ליצירת בלוק חדש","size_options":"מידות","backgrounds":"רקעים","contactForError":"דווח על שגיאה","contactForErrorDesc":"נתקלת בהתנהגות לא צפויה? \\n לחץ כאן לדיווח על תקלה","fetureRequest":"בקשה לתוספות","pastePageContent":" הדבקת תוכן מייל","titleColor":"צבע כותרת","agreeToOverride":"אני מאשר למחוק את התוכן הקיים ולהחליפו בתוכן שהועתק.","overridePageContent":"בחרת להדביק תוכן של מייל אחר לתוך הדף זה. \\n ההדבקה תמחק את התוכן הקיים בדף ותדביק במקומו את התוכן שהועתק.","fetureRequestDesc":"חסר לך פיצ\'ר כלשהו ? \\n לחץ כאן לבקשה להוספת כלים לעורך","copyPageContent":"העתקת תוכן הדף לחשבון אחר","copyPageContentDesc":"לחצו כאן כדי להעתיק את התוכן הדף לחשבון אחר שלכם בחשבון","pasteContent":"הדבקת תוכן מחשבון אחר","pasteContentDesc":"לחצו כאן כדי להדביק תוכן דף שהעתקם מחשבון אחר שלכם בחשבון","generalText":"כאן אנו נרשום את טקסט כללי כלשהו על המוצר שלנו. זהו אזור טקסט כללי כלשהו חופשי לגמרי ","longText":"כאן אנו נרשום את טקסט כללי כלשהו על המוצר שלנו. זהו אזור טקסט כללי כלשהו חופשי לגמרי, אפשר לרשום כאן מה שמתחשק לכם כל עוד מדובר בתוכן לעניין.","textBlock":"בלוק טקסט","component_selected":"נבחר בלוק","component_unselected":"בלוק לא נבחר","countdown":"מונה זמן","counterBlock":"בלוק קאונטר","bulletBlock":"בלוק בולטים","singleImage":"תמונה בודדת","allImages":"כל התמונות","add_section":"הוספת מקטע","bulletWithImageBlock":"בלוק בולטים לצד תמונה","header1block":"כותרת ראשית","bold":"הדגשה","underline":"קו תחתון","italic":"טקסט נטוי","strikeThrough":"קו חוצה","saved_links":"קישורים שמורים","forecolor":"צבע טקסט","numberColor":"צבע המספרים","threeCells":"שלושה תאים","twoCells":"שני תאים","backcolor":"רקע טקסט","fontFamily":"גופן","back":"חזור","fontSize":"גודל גופן","text_micro_copy":"כתבו ש\\"ח ואז לחיצה על רווח.. אהבתם? שתפו אותנו (: ","direction":"כיוון","right":"ימין","left":"שמאל","scroll":"גלילה","new_item":"פריט חדש","center":"מרכז","top":"למעלה","bottom":"למטה","next":"שלב הבא","twoCards":"שני כרטיסים","threeCards":"שלושה כרטיסים","justify":"מתיחה","remove":"הסרה","unLink":"הסרת קישור","appendImage":"הוספת תמונה","appendVideo":"הוספת סרטון","blocks":"בלוקים","page":"דף","section":"מקטע","block":"בלוק","pageSetting":"הגדרות הדף","home":"בית","about":"אודות","text":"טקסט","clear":"ניקוי","articleTitle":"כותרת מאמר","quick_add":"הוספה מהירה","Header1Web":"כותרת","shortText":"משהו חשוב שעל הלקוחות לדעת","articleMore":"הצג עוד","emoji":"אמוטיקון","lineHeight":"גובה שורה","two images":"שתי תמונות","heading 1":"כותרת גדולה","heading 2":"כותרת בינונית","heading 3":"כותרת קטנה","textAlign":"כיוון טקסט","sendTest":"שליחת בדיקה","Duplicate":"שכפול","DragHere":"גרור פה","imageSize":"גודל תמונה","alignImage":"מיקום תמונה","fullWidthOnMobile":"רוחב מלא במובייל","delete_bcakground":"הסרת רקע","edit_background":"עריכת רקע","altText":"טקסט חילופי","gallery":"גלרייה","padding":"ריווח פנימי","padding_top":"ריווח עליון","padding_bottom":"ריווח תחתון","margin":"ריווח חיצוני","size":"גודל","coming_soon":"מגיע בקרוב","background":"רקע","svg_color":"צבע הסמל","width":"רוחב","makeCircle":"שמירה על התמונה כעיגול","add_now":"הוספה","card":"כרטיסיה","go_back":"חזרה אחורה","add_new_element":"הוספת אלמנט חדש","what_the_anchor_name":"שם העוגן","form:manage_fields":"ניהול השדות בטופס","accessories":"תוספות","jhon_lennon":"ג\'ון לנון","jhon_lennon_qoute":"החיים זה מה שקורה בזמן שאתה עסוק בלתכנן תוכניות אחרות","headingText":"טקסט כותרת","height":"גובה","rotate":"סיבוב","dateAndTime":"תאריך ושעת סיום","hour":"שעה","is_active":"האם פעיל?","where_the_image_link":"לאן התמונה מובילה?","minutes":"דקות","alignButton":"מיקום כפתור","favorites":"מועדפים","main":"ראשי","type":"סגנון","opacity":"שקיפות","backgroundColorAndOpacity":"צבע רקע ושקיפות","mediaType":"סוגי מדיה","filter":"סינון","elements":"אלמנטים","freeImages":"תמונות בחינם","choose:":"בחירה","sendTestMail":"שליחת הודעת בדיקה","AddNewAddress":"הוספת מייל נוסף","searchImages":"חיפוש תמונות","send":"שליחה","fontNameWholePage":"פונט לכל הדף","blockMenuInfo":"לחץ על אחד התגיות לבחירה ולחיצה נוספת לביטול *","menu":"תפריט","menu_widget":"תפריט","emailAddress":"כתובת המייל","addEmoji":"הוספת אמוטיקון","addBackcolor":"הוספת צבע רקע","addForcolor":"הוספת צבע טקסט","openNewTab":"פתח בטאב חדש","stayOnSamePage":"השאר באותו הדף","desktopMode":"מצב דפדפן בלבד","lastColors":"צבעים אחרונים","colorsInPage":"צבעים בדף","getColorFromImage":"הצגת צבעים מתמונה","addressWithExample":"כתובת (דוגמא: פתח תקווה, הסיבים 18)","maps":"מפות","map":"מפה","layout":"פריסה","animations":"אנימציות","close_scheme_locked":"נעל סכימת צבעים","open_scheme_locked":"פתיחת סכימת צבעים","event":"אירוע","audio":"שמע","addNew":"הוסף חדש","delete_and_add":"הוספה והסרה","what_would_u_like_to_link":"מה תרצו להוסיף?","add_link":"הוספת קישור","name_of_nav":"שם כפתור הניווט","urlAddress":"שורת כתובת","can_Open_Gallery_With_Double_Click_On_The_Image":" פתיחת הגלרייה על ידי לחיצה כפולה על התמונה","uploadFile":"העלאה של קובץ חדש","FileSelection":"בחירת קובץ","this_is_empty_iframe_start_add_url_link":"זה אייפרם ריק, הוסיפו קישור לכתובת אינטרנט","yes,Create":"כן, צור תיקיה","letterSpacing":"ריווח בין האותיות","spacing":"ריווחים","solid":"אחיד","palletes":"פלטים","savedPalletes":"פלטים שמורים","savedToMainTab":"שמור בלשונית ראשית","dashed":"מקוקו","advanced":"מתקדם","Select_an_element_to_edit_its_properties":"בחרו אלמנט או לחצו על הוספה כדי להתחיל ליצור","maxWidth":"רוחב מקסימלי","whatTheBtnSays":"מה הכפתור אומר?","sendSms":"שליחת סמס","sendWhatsapp":"שליחת וואטסאפ","sendEmail":"שליחת מייל","what_the_url_address":"מהי שורת הכתובת שתרצו להוסיף?","add_catchy_subject":"הוסיפו נושא קליט","what_the_email_address":"לאן המייל ישלח?","what_the_phone_number":"מהו מספר הטלפון?","what_the_phone_number_to_send_msg":"מהו מספר אליו תשלח ההודעה?","email_body_if_needed":"תוכן גוף המייל","active_on-scroll":"יפעל בגלילה","active_on-hover":"יפעל במצב ריחוף עם העכבר","drag_or_click":"גרירה","heading-1":"כותרת גדולה","svg-element":"אלמנט SVG","divider-element":"קו מפריד","iframe":"אייפרם","html-code":"קוד HTML","video with text":"וידאו עם טקסט","image with text":"תמונה עם טקסט","quotes-block":"בלוק ציטוט","animation_deleted":"האנימציה נמחקה","animation_added":"האנימציה נוספה","show_on_desktop":"הצג במחשב הלוח","show_on_mobile":"הצג במכשיר נייד","show_on_tablet":"הצג במכשיר טאבלט","properties":"מאפיינים","ID_with_description":"מזהה (ID)","on_hover":"במצב ריחוף עם העכבר","on_scroll":"בגלילה","menu-widget":"תצוגת תפריט","setting_section":"הגדרות סקשן","setting_block":"הגדרות בלוק","remove_element":"הסרת אלמנט","drag_element":"גרירת אלמנט","max_width":"רוחב מקסימלי","open_gallery":"פתיחת גלריה","open_gallery_icons":"גלריית אייקונים","number_size":"גודל המספרים","large":"גדול","medium":"בינוני","small":"קטן","extra-large":"גדול מאוד","without_radius":"ללא רדיוס","design_custom_list":"עיצוב רשימה מותאמת אישית","display_mode":"מצב תצוגה","left-to-element":"שמאל לאלמנט","right-to-element":"ימין לאלמנט","bottom-to-element":"מתחת לאלמנט","top-to-element":"מעל לאלמנט","open-new-cell-from-right":"הוספה בתא חדש מימין","open-new-cell-from-left":"הוספה בתא חדש משמאל","open-new-block-from-bottom":"הוספה בבלוק חדש מתחת","open-new-block-from-top":"הוספה בבלוק חדש מעלה","description":"תיאור","title":"כותרת","keywords":"מילות מפתח","favicon":"סמל מוצא","cancel":"ביטול","standard":"סטנדרטי","ready_to_publish":"מוכן לפרסום","lets_set_some_seo":"בואו נוסיף כמה הגדרות SEO","We_are_building_your_page":"אנחנו בונים את העמוד שלך","inner_blocks":"מרכז המקטע","drag_here":"גררו לכאן","advance_options":"אפשרויות מתקדמות","duplicate_template_code":"קוד לשכפול תבנית","copied":"הועתק","click_to_copy":"Click To Copy","fade_in":"Fade in","fade_in_down":"Fade in down","back_in_down":"Back in down","back_in_right":"Back in right","bounce":"קופצני","tada":"שיקשוק","saved_theme":"עיצוב שמור","open_colorpicker":"בחירה של צבע אישי","colors_that_created_from_image":"צבעים שנוצרו מתמונה","publish_success":"פרסום בוצע בהצלחה","open_the_page":"פתיחת העמוד בדף חדש","close":"סגירה","title_size":"גודל כותרות","ilustrations":"סמלים","svg":"סמל","click_to_refresh":"לחיצה לרענון הדף","error_client_disconnected":"אופס! החיבור לשרת נותק, לחצו על רענון הדף כדי להמשיך לעבוד, בנתיים קבלנו את הנתונים ואנחנו עובדים על פתרון הבעיה, עמך סליחה והמשך עבודה מהנה","connection_error":"החיבור נותק 😱, אבל אל דאגה, התוכן נשמר","typography":"טיפוגרפיה","more_colors":"צבעים נוספים","button_submit_form":"שליחה","get_started":"התחילו עכשיו","design_form":"עיצוב טופס","form_settings":"הגדרות טופס","input":"קלט","send_mail_on_submitted":"רוצים לקבל מייל כשלקוחות נרשמים?","placeholder":"טקסט פנימי של הקלט(במצב ללא טקסט)","default_value":"ערך ברירת מחדל","required":"חובה","hidden":"מוסתר","hidden_field":"שדה מוסתר","advance_setting":"הגדרות מתקדמות","label":"כותרת","color:label":"צבע הטקסט","radio-group":"קבוצת לחצנים","items_in_radio_group":"פריטים בקבוצת לחצנים","add_item":"הוספת פריט","textarea":"טקסט ארוך","items_in_menu":"פריטים בתפריט","checkbox":"תיבת סימון","height:form_field":"גובה השדות","ready_blocks":"בלוקים מוכנים","box-shadow":"אפקט צל","add_new_field":"הוספת שדה חדש","border_design":"עיצוב מסגרת","individual_elements":"אלמנטים בודדים","number_color":"צבע המספרים","send_form_only_if_checked":"שליחת טופס תתאפשר רק אם מסומן","select_fields_to_edit":"לחצו על האלמנטים בטופס לעריכה","url_parameters":"שם פרמטר בשליחה","the_color_of_cols":"צבע מקטעי המספרים","the_radius_of_col":"רדיוס קטעי המספרים","hidden_form_field_info":"שדה שלא יופיע לגולשים בתצוגת הטופס, משמש בעיקר לקבלת ערכי REF ו UTM או פרמטרים קבועים שמעונינים שיופיעו אוטומטית בשדות של הנרשם בטופס הספציפי מבלי שהוא ממלא או רואה אותם.","required_form_field_info":"שדה שהנרשם בטופס חייב למלא/לסמן אותו על מנת לשלוח את הטופס, טופס ששדה חובה לא מולא בו לא ישלח ויקפיץ הודעה לממלא הטופס שהשדה הוא חובה","url_param":"שם פרמטר בשליחה","show_colons":"להציג נקודותיים ?","please_wait_downloading_new_version":"אנא המתינו, אנחנו מעדכנים גרסה חדשה","my_fields":"השדות שלי","allow_send_form_only_if_checked":"אפשר לשלוח טופס רק אם מסומן","field_settings":"הגדרות שדה","after_form_subscribed":"מה לעשות אחרי שהטופס נשלח?","add_user_from_mailinglist_after_subscribed":"לאיזה קבוצות דיוור נרשום את הלקוח שלנו?","remove_user_from_mailinglist_after_subscribed":"מאיזה קבוצות דיוור נסיר את הלקוח שלנו ?","available_fields":"השדות שלי","background_fields":"רקע השדות","label_color":"צבע כותרת עליונה","title_color":"צבע הכותרות","button_color":"צבע טקסט הכפתור","start":"התחלה","end":"סיום","duration":"משך","prefix":"לפני","suffix":"אחרי","separator":"מפריד","count-up":"לספר עד","pie-chart":"פיי נתונים","edit_data":"עריכת נתונים","bar-chart":"טבלת עמודות","cols_color":"צבעי עמודות","button_background":"רקע הכפתור","button_radius":"רדיוס כפתור","justifyContent":"ישור אופקי","alignItems":"ישור אנכי","design_pallete":"פלאטת הצבעים שלי","rootelement_editor_top_header":"שינוי גופן לכל האלמנטים בדף, כלל אלמנטים חדשים שתוסיפו","rootelement_editor_global_colors_heading":"צבעים שמורים לדף, בחרו צבעים לפי צבעי המותג שלכם, ואחר כך הצבעים יחכו לכם בבחירת צבע של כל אלמנט בתוך הcolorpicker","flex-start":"התחלה","primaryColor":"צבע ראשי","primaryContrastColor":"צבע ראשי נגדי","secondaryColor":"צבע משני","secondaryContrastColor":"צבע משני נגדי","flex-end":"סיום","make_it_default_value":"הפוך לערך ברירת מחדל","show_success_popup":"הצגת פופאפ בעת בהצלחה","forward_params":"להעביר פרמטרים?","user_will_redirect_to":"הלקוח יעבור לדף הבא","where_to_redirect":"לאן להעביר את הלקוח?","component_color":"צבע הרכיב","none":"ללא","my_form":"הטופס שלי","form:placeholder_color":"צבע הטקסט הפנימי","search_my_fields":"חיפוש השדות שלי","checkbox_on_right_side":"צ\'קבוקס מימין?","choose_an_option":"בחרו באחת האפשרויות הבאות","checkbox_checked_as_default":"תיבת סימון מסומנת כברירת מחדל","paragraph":"פיסקה","after_submission":"מה יקרה לאחר הרשמה?","stay_at_page":"נשארים בדף","redirect":"מועברים למקום אחר","field_background":"רקע שדות","form:heading":"בואו נדבר, הקפה עלינו!","form:subHeading":"לקביעת פגישה או רק שאלה? אשמח לסייע לכם! השאירו פרטים ואחזור אליכם בהקדם","form:background":"צבע הרקע של שדות","style":"עיצוב","connection_lost":"החיבור אבד","error_transactions_not_completed":"חלק מהפעולות לא הושלמו, בדיוק ברגעים אלה קיבלנו את המידע ואנחנו עובדים על שיפור החוויה בעורך","form":"טופס","sync_all_forms":"סנכרן את כל הטפסים","send_the_data_to":"צריכים לשלוח את הנתונים לCRM ?","horizontal_shadow_length":"מיקום האופקי של הצל","vertical_shadow_length":"מיקום האנכי של הצל","blur_radius":"טשטוש הצל","spread_radius":"פריסת הצל","open_image_editor":"עריכת תמונה","shadow_color":"צבע הצל","inset":"מיקום חיצוני ?","box_shadow:info":"Adds shadow effects around an element\'s frame.","choose":"בחירה","design_for_phone":"עיצוב לנייד","design_for_desktop":"עיצוב למחשב","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"יעד הקישור","open_in_new_tab":"פתח בטאב חדש","open_in_same_tab":"פתח באותו טאב","open_in_parent_frame":"פתח במסגרת ההורה","open_in_top_frame":"פתח במסגרת העליונה","_blank":"פתח בטאב חדש","_self":"פתח באותו טאב","_parent":"פתח במסגרת ההורה","_top":"פתח במסגרת העליונה","user_menu":"תפריט משתמש","send_test_emails":"שליחת מיילי בדיקה","attached_files":"קבצים מצורפים","make_newsletter_as_event":"הפוך ניוזלטר לאירוע","edit_block":"עריכת בלוק","add_files":"הוסף קבצים","max_files_reached":"מספר הקבצים המקסימלי הושג","make_event":"צור אירוע","name_and_subject":"שם ונושא","enter_email_addresses":"הזן כתובות מייל (פסיק או Enter להוספה)","invalid_email_error":"אנא הזן כתובת מייל תקינה","no_emails_error":"אנא הוסף לפחות כתובת מייל אחת","create_event":"צור אירוע","start_date_time":"תאריך ושעת התחלה","end_date_time":"תאריך ושעת סיום","location":"מיקום","link_optional":"קישור (אופציונלי)","save_event":"שמירת אירוע","cancel_event":"ביטול","font_color":"צבע גופן","confirm_cancel":"האם אתה בטוח שברצונך לבטל?","creating_event":"יוצר אירוע...","event_created":"האירוע נוצר!","end_after_start_error":"תאריך/שעת הסיום חייב להיות אחרי תאריך/שעת ההתחלה","enter_event_location":"הזן מיקום האירוע","enter_event_link":"הזן קישור לאירוע","logout":"יציאה מהעורך","details":"פרטים","subject":"נושא","iconDirection":"כיוון האייקון","subtitle":"כותרת משנה","hasIcon":"להפעיל אייקון?","enter_subject":"מה יהיה נושא המייל(subject)?"}'),Md=JSON.parse('{"name":"Name","link":"Link","secureLink":"https link","tel":"Tel","email":"Email","keep_ratio":"Keep ratio","recommended":"Recommended","opengalleryimage":"Open gallery","email_600":"Email design best practices peg the ideal email newsletter width size at 600 pixels. This number has been the standard for many years.","secure_link":"Secure link","items":"Items","links_with_invalid_url":"Links with invalid url","prompt_editor_title":"Create Your Content","generate_content":"Generate Content","creating_magic":"Creating Magic...","images_without_alt":"Images without alt","sms_body_if_needed":"SMS body if needed","whatsapp_body_if_needed":"WhatsApp message if needed","simply:Scratchcard":"Scratch card","image_in_progress":"Image in progress...","text_micro_copy":"Be creative, write something that will make your customers want to click on the button.","jhon_lennon":"Jhon Lennon","jhon_lennon_qoute":"Life is what happens when you\'re busy making other plans","headingText":"Heading text","title_color":"Title Color","button_color":"Color Button","button_background":"Background Button","start":"Start","end":"End","duration":"Duration","prefix":"Prefix","suffix":"Suffix","separator":"Separator","count-up":"Count up","pie-chart":"Pie chart","edit_data":"Edit Data","bar-chart":"Barchart","cols_color":"Cols Colors","button_radius":"Radius Button","accessories":"Accessories","elements":"Elements","confirm":"Accept","drag_block":"Drag block","what_the_anchor_name":"What the anchor name?","checkbox_on_right_side":"Checkbox on Right?","drag_to_move_click_to_options":"Drag to move, click to options","contact":"Contact","buttons_without_links":"Buttons without links","images_with_default_src":"Images with default src","errors_to_fix":"Errors to fix","expand_image_for_outlook":"Expand image for Outlook","social":"Social Networks","forward_params":"Forward Params?","menu_widget":"Menu widget","powered_by_pexels":"Powered by Pexels","bulletColor":"Bullet Color","makeCircle":"Make Circle","twoImages":"Two Images","component_color":"Component Color","close_scheme_locked":"Close scheme locked","open_scheme_locked":"Open scheme locked","threeImages":"Three Images","threeButtons":"Three Buttons","file":"File","auto":"auto","colors":"Colors","iconsColor":"Icon colors","slientMode":"Slient Mode","dividerColor":"Divider Color","this_is_empty_iframe_start_add_url_link":"This is empty iframe. Start adding url link","openAsModal":"Open image in modal","autoplay":"Autoplay","showAsImage":"show As Image","playInLoop":"play In Loop","addedToFavorite":"Added to Favorites","removedFromFavorite":"Deleted from favorites","removedSuccess":"Successfully deleted","aToZ":"A-Z","zToA":"Z-A","anchorName":"Anchor Name","inputEmptyError":"Fill in the field","savedSuccess":"Saved successfully","createdSuccessfully":"Done successfully","home":"Home","about":"About","position":"Position","scroll":"Scroll","repeat":"Repeat","choose":"Choose","texts":"Texts","home_page":"Home Page","numOneAsFemale":"One","heading":"Title","bigHeading":"Big Title","readMore":"Read More","quick_add":"Quick Add","click_here_to_add":"Click here to add","mediumHeading":"Medium title","smallHeading":"Small title","icons":"Icons","divider":"Divider","bullets":"Bullets","numbered":"Numbering","ok":"OK","newImage":"New Image","newFolder":"New Folder","folders":"Folders","addLinks":"Add link","edit":"editing","rootelement_editor_top_header":"Global settings","block_width":"Block width","page_background":"Page background","bgColor_blocks":"Background color","rootelement_editor_global_colors_heading":"Global colors","openGalleryImage":"Open gallery","clone_element":"Clone element","what_the_url_address":"What the url address?","videoWithArticle":"Video with article","give_name_to_block":"Give name to block","save_block":"Save block","choose_your_duo_date":"Choose your duo date","what_category":"What category?","iamgeWithArticle":"Image with article","imageWithText":"Image with text","no_responsive":"No responsive","BulletsWithImage":"Bulltes with image","SocialNetwork":"Social networks","height:form_field":"Fields height","box-shadow":"Shadow-Fx","ready_blocks":"Blocks","individual_elements":"Individual Elements","connection_lost":"Connection Lost","add_now":"Add Now","error_transactions_not_completed":"TODO:complete_text","form:manage_fields":"Manage The Form","add_new_field":"Add New Field","border_design":"Border Design","number_color":"Numbers Color","twoArticles":"Two article","the_color_of_cols":"The Color Of Cols","the_radius_of_col":"The Radius Of Cols","twoButtons":"Two buttons","show_colons":"Show Colons","my_fields":"My Fields","no_editor:title":"We will add editor to this element soon as possible.","threeArticles":"Three articles","addons_menu:title":"Addons menu, Here you can find some features that will improve your app. drag the element to block or section.","sections_menu:title":"Section menu, We didn’t find time to fill this content. Writing a new section needs a great understanding of your needs.","backgrounds_menu:title":"Backgrounds menu, choose a background, but a nice one and drag it to a block or a section.","blocks_menu:title":"Block menu, here you can find composes of multipal elements in the same block, just drag it between the blocks and the sections.","elements_menu:title":"Drag the element at the right,left.. or just drop it as a new block.","imageWithBullets":"Image With bullets","undo":"Cancel","redo":"Restore","wide":"Wide","text:button":"What The Button say?","empty_section_info":"This is empty section, Click here to add block and beatiful background.","videos":"Videos","video":"Video","images":"Images","image":"Image","weight":"Weight","buttons":"Buttons","button":"Button","general":"General","all":"All","myImages":"My Images","uploadSuccess":"Upload complete","fromOldToNew":"Old to new","fromNewToOld":"New To old","download":"Download","quotes":"A Quote","quotesWithText":"Quote with text","delete":"Deletion","anchor":"Anchor","deleteElement":"Delete element","deleteBlock":"Delete block","preview":"Preview","design":"Design","changeName":"Rename","upload":"Upload Image","uploading":"Uploading...","verifying":"Verifying...","completed":"Completed!","timeout":"Upload timeout","add":"Add","addons":"Extras","save":"Save","cellSpace":"Cell spacing","search":"Search","ratioLock":"Ratio lock","videoLink":"Video link","settings":"Settings","counterTitle":"Counter title?","folderName":"Folder name","addFolder":"Add folder","add_block":"Add block","counterColor":"Counter color","chooseBlock":"Drag a block","imageEditTitle":"Photo editing","videoEditTitle":"Edit video","size_options":"Size Options","backgroundColor":"Backgorund","backgrounds":"Backgrounds","contactForError":"Report an error","contactForErrorDesc":"Did you come across something unexpected?\\n Click here to report the error","fetureRequest":"Request for additions","pastePageContent":" Paste email content","titleColor":"Title color","agreeToOverride":"I agree to delete the existing content and replace it with copied content.","overridePageContent":"You have chosen to paste the content of another email into this page. \\n The paste will delete the existing content on the page and paste the copied content in its place.","fetureRequestDesc":"Are you missing any feature? \\n Click here to request tools to be added to the editor","copyPageContent":"Copy the contents of the page to another account","copyPageContentDesc":"Click here to copy the page content to your other account","pasteContent":"Paste content from another account","pasteContentDesc":"Click here to paste copied content","generalText":"Here we will write down some general text about our product. This is some general text area completely free","longText":"Here we will write down some general text about our product. This is some general text area that is completely free, you can write here what you feel like as long as it is relevant content.","textBlock":"Text block","timeCounter":"Time counter","counterBlock":"Counter block","bulletBlock":"Bullets block","singleImage":"Single image","allImages":"All images","bulletWithImageBlock":"Bullet with images","header1block":"Main title","bold":"Bold","underline":"Underline","italic":"Italic","strikeThrough":"Strike through","forecolor":"Forecolor","threeCells":"Three cells","twoCells":"Two cells","backcolor":"Background text","fontFamily":"Font","fontSize":"Font size","direction":"Direction","right":"Right","left":"Left","center":"Center","justify":"Justify","unLink":"Unlink","appendImage":"Add an image","appendVideo":"Add an video","blocks":"Blocks","page":"Page","block":"Block","section":"Section","pageSetting":"Page settings","text":"Text","clear":"Clear","articleTitle":"Article title","Header1Web":"Title","shortText":"Something important that customers need to know","articleMore":"Show more","emoji":"Emoji","lineHeight":"Line height","textAlign":"Text align","sendTest":"Send test","article":"Article","Duplicate":"Duplicate","component_selected":"Component selected","component_unselected":"Component unselected","add_section":"Add section","remove_block":"Remove block","duplicate_block":"Duplicate block","BulletsWithArticle":"Bullets With Article","sendTestMail":"Send Test Message","blockMenuInfo":"Click on the tag and click again to set it off *","fontNameWholePage":"Whole Page Font name","AddNewAddress":"Add new Input","send":"Send","emailAddress":"Email Address","DragHere":"Drag here","imageSize":"Image size","alignImage":"Align image","fullWidthOnMobile":"Full width on mobile","altText":"Alt text","gallery":"Gallery","padding":"Padding","size":"Size","coming_soon":"Coming Soon","width":"Width","height":"Height","dateAndTime":"Date and Time","hour":"Hour","minutes":"Minute","alignButton":"Align button","main":"Main","favorites":"Favorites","mediaType":"Media type","filter":"Filter","addEmoji":"Add Emoji","addBackcolor":"Add Backcolor","addForcolor":"Add Forecolor","lastColors":"Last Colors","colorsInPage":"Colors in page","openNewTab":"New window","stayOnSamePage":"Same window","desktopMode":"Desktop mode only","addressWithExample":"Address (Example:Petah Tikva,Sibim 18)","maps":"Maps","map":"Map","layout":"Layout","event":"Event","audio":"Audio","addNew":"Add New","animations":"Animations","urlAddress":"Url Address","can_Open_Gallery_With_Double_Click_On_The_Image":"You can open the gallery by Double click on the Image","uploadFile":"Upload File","FileSelection":"File Selection","yes,Create":"Yes, Create","letterSpacing":"Letter Spacing","spacing":"Spacing","advanced":"Advanced","Select_an_element_to_edit_its_properties":"Select an Block, Button, or Text to edit its properties","what_the_phone_number_to_send_msg_to":"What the phone number to send message to","email_body_if_needed":"Email body if needed","what_the_phone_number":"What the phone number to call to","what_the_email_address":"What the email address to send to","active_on-scroll":"Active on scroll","active_on-hover":"Active on mouse over","drag_or_click":"Drag or click","heading-1":"Heading 1","svg-element":"SVG Element","divider-element":"Divider Element","iframe":"Iframe","html-code":"Html Code","video with text":"Video with text","image with text":"Image with text","quotes-block":"quotes block","animation_deleted":"Animation deleted","animation_added":"Animation added","show_on_desktop":"Show on desktop","show_on_mobile":"Show on mobile","show_on_tablet":"Show on tablet","properties":"Properties","ID_with_description":"ID (advance)","on_hover":"On mouse over","on_scroll":"On scroll","menu-widget":"Menu widget","setting_section":"Setting section","setting_block":"Setting block","remove_element":"Remove element","drag_element":"Drag element","max_width":"Max width","open_gallery_icons":"Open gallery icons","number_size":"Number size","large":"Large","medium":"Medium","small":"Small","extra-large":"Extra Large","without_radius":"Without radius","design_custom_list":"Design custom list","display_mode":"Display mode","description":"Description","title":"Title","keywords":"Keywords","favicon":"Favicon","cancel":"Cancel","standard":"Standard","ready_to_publish":"Ready to publish","lets_set_some_seo":"Let\'s set some SEO","We_are_building_your_page":"We are building your page","fade_in":"Fade in","fade_in_down":"Fade in down","back_in_down":"Back in down","back_in_right":"Back in right","bounce":"Bounce","tada":"Tada!!","saved_theme":"Saved theme","go_back":"Go back","open_colorpicker":"Open colorpicker","colors_that_created_from_image":"Colors that created from image","publish_success":"Publish success","open_the_page":"Open the page","close":"Close","title_size":"Title size","ilustrations":"Ilustrations","svg":"SVG","click_to_refresh":"Click to refresh","error_client_disconnected":"Opps! we are disconnected from the server. Please try again later.","connection_error":"Connection error 😱 ","typography":"Typography","more_colors":"More colors","button_submit_form":"Send","get_started":"Get started","design_form":"Design form","input":"Input","placeholder":"Placeholder","default_value":"Default value","required":"Required","after_submission":"On Submission?","stay_at_page":"Nothing","redirect":"Redirect","form:background":"Placeholder Color","hidden":"Hidden","form_settings":"Form settings","hidden_field":"Hidden field","advance_setting":"Advance setting","label":"Label","radio-group":"Radio group","items_in_radio_group":"Items in radio group","add_item":"Add item","textarea":"Textarea","items_in_menu":"Items in menu","checkbox":"Checkbox","send_form_only_if_checked":"Send form only if checked","select_fields_to_edit":"Select fields to edit","url_parameters":"URL parameters","hidden_form_field_info":"text required here..","required_form_field_info":"text required here..","url_param":"URL parameter","please_wait_downloading_new_version":"Please wait downloading new version","allow_send_form_only_if_checked":"Allow send form only if checked","field_settings":"Field settings","inner_blocks":"Center","automations":"Automations","drag_here":"Drag here","advance_options":"Advance Options","copied":"Copied","duplicate_template_code":"Duplicate Template Code","click_to_copy":"Click To Copy","list-check":"Elements","drag_section":"Drag section","card":"Card","list-settings":"Advance","icons_list_micro_copy":"If a bullet doesn\'t look serious enough, you can use an icon instead.","typography_micro_copy":"Typography your text with the help of the typography settings.","anchor_name_micro_copy":"Name it now, find it later in the link editor.","create_anchor":"Need Anchor? click here","image_micro_copy":"Click on the button, or dblClick on the image to add an image(but a beautiful one).","after_form_subscribed":"What we Should do after form subscribed","add_user_from_mailinglist_after_subscribed":"Pick mailinglist the user subscribed","remove_user_from_mailinglist_after_subscribed":"Pick mailinglist the user subscribed","available_fields":"My fields","add_urlAddress_from_media_site":"Add url from media site","background_fields":"Background fields","label_color":"Label color","make_it_default_value":"Make it default value","show_success_popup":"Show success popup","user_will_redirect_to":"User will redirect to","where_to_redirect":"Where to redirect?","none":"None","my_form":"My form","search_my_fields":"Search my fields","choose_an_option":"Choose an option","checkbox_checked_as_default":"Checked as default","form":"Form","sync_all_forms":"Sync all forms","send_the_data_to":"Need to send the data to crm ?","color:label":"Color Text","field_background":"Field Background","paragraph":"Paragraph","horizontal_shadow_length":"Horizontal Shadow Length","vertical_shadow_length":"Vertical Shadow Length","blur_radius":"Blur Radius","spread_radius":"Spread Radius","shadow_color":"Shadow Color","inset":"Inset","box_shadow:info":"Adds shadow effects around an element\'s frame.","design_for_phone":"Mobile Design","design_for_desktop":"Desktop Design","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"Link Target","open_in_new_tab":"Open in new tab","open_in_same_tab":"Open in same tab","open_in_parent_frame":"Open in parent frame","open_in_top_frame":"Open in top frame","user_menu":"User Menu","send_test_emails":"Send Test Emails","attached_files":"Attached Files","make_newsletter_as_event":"Make Newsletter as Event","add_files":"Add Files","max_files_reached":"Maximum number of files reached","make_event":"Make Event","name_and_subject":"Name & Subject","enter_email_addresses":"Enter email addresses (comma or enter to add)","invalid_email_error":"Please enter a valid email address","no_emails_error":"Please add at least one email address","create_event":"Create Event","start_date_time":"Start Date & Time","end_date_time":"End Date & Time","location":"Location","link_optional":"Link (Optional)","save_event":"Save Event","cancel_event":"Cancel Event","confirm_cancel":"Are you sure you want to cancel?","creating_event":"Creating Event...","event_created":"Event Created!","end_after_start_error":"End date/time must be after start date/time","enter_event_location":"Enter event location","enter_event_link":"Enter event link","logout":"Logout","details":"Details","subject":"Subject","subtitle":"Subtitle","enter_subject":"Enter subject"}');class Id{constructor(t){return this.props=t,this.init(t)}init(t){const e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.plugins||[];let n=t.languageJson;const r=t.language||"he";n||(n="he"===r?Od:Md);const i=Zc(r)?"rtl":"ltr",o=Zc(r)?"right":"left";t.navbar||(t.navbar={}),Array.isArray(t.components)&&0===t.components.length&&(t.components=null),t.width||(t.width="650px",console.warn("using default width of 650px or 1000px.")),t.theme||(t.theme={}),t.textConfigure||(t.textConfigure={}),"object"!=typeof t?.configure&&(t.configure={}),"object"!=typeof t?.configure?.text&&(t.configure.text={}),t.configure.text={onClickMagic:t=>{const{injectEditor:e,insertContent:n,insertContentHtml:r,getJSON:i,getHTML:o,getText:s,selectAll:a}=t;a();const l=document.createElement("cdtr-text-prompt-editor");l.context=s(),l.addEventListener("text-generation-start",(t=>{a()})),l.addEventListener("text-generation-chunk",(t=>{n(t.detail.chunk)})),l.addEventListener("text-generation-complete",(t=>{a(),r(t.detail.text)})),l.addEventListener("text-generation-error",(t=>{console.error("Text generation error:",t.detail.error)})),e(l)}};const s={documentName:t.documentName,editable:t.editable,mode:t.mode,user:t.user,collaborator:t.collaborator,components:t.components||[{_id:"0-root",type:"root",props:{style:{background:"#fff"}},children:["0-section"]},{_id:"0-section",type:"section",props:{style:{width:t.width,margin:"auto",height:"100%"}},children:[]}],channel:"newsletter",userMenu:{onLogout:()=>{"function"==typeof t?.userMenu?.onLogout&&t?.userMenu?.onLogout()}},onNextStep:e=>{"function"==typeof t.onNextStep&&t.onNextStep(e)},onSendTestEmail:t?.onSendTestEmail?e=>{"function"==typeof t.onSendTestEmail&&t.onSendTestEmail(e)}:null,attachFiles:t?.attachFiles?{files:t?.attachFiles?.files||[],lazyLoad:t?.attachFiles?.lazyLoad||null,maxFiles:t?.attachFiles?.maxFiles||1,maxFileSizeMB:t?.attachFiles?.maxFileSizeMB||"0.5",save:e=>{"function"==typeof t.attachFiles.save&&t.attachFiles.save(e)}}:null,makeEvent:t?.makeEvent?{initialStartDate:t?.makeEvent?.initialStartDate||"",initialStartTime:t?.makeEvent?.initialStartTime||"",initialEndDate:t?.makeEvent?.initialEndDate||"",initialEndTime:t?.makeEvent?.initialEndTime||"",initialLocation:t?.makeEvent?.initialLocation||"",initialLink:t?.makeEvent?.initialLink||"",save:e=>{"function"==typeof t.makeEvent.save&&t.makeEvent.save(e)},cancel:()=>{"function"==typeof t.makeEvent.cancel&&t.makeEvent.cancel()}}:null,subjectAndName:t?.subjectAndName?{name:t?.subjectAndName?.name||"",subject:t?.subjectAndName?.subject||"",subtitle:t?.subjectAndName?.subtitle||"",save:e=>{"function"==typeof t.subjectAndName.save&&t.subjectAndName.save(e)}}:null,savedDebounce:t.savedDebounce||1e3,target:t.target||function(){const t=document.createElement("div");return t.id="root",document.body.appendChild(t),t}(),theme:{},language:r,languageJson:n,editor:{props:{onSave:e=>{console.log("%csync completed","color:green;font-size:20px;",e),"function"==typeof t.onSave&&t.onSave(e)},onChange:()=>{}},configure:{text:t?.configure?.text,editorProps:{fonts:t.fonts||[{id:"Arial",cssRule:"Arial, Helvetica, sans-serif",name:"Arial",language:["en","he"],url:null},{id:"Times New Roman",cssRule:"Times New Roman, Times, Beskerville, Georgia, serif",name:"Times New Roman",language:["en","he"],url:null},{id:"Courier New",cssRule:"Courier New, Courier, monospace",name:"Courier New"},{id:"Tahoma",cssRule:"Tahoma, Geneva, sans-serif",name:"Tahoma"},{id:"Verdana",cssRule:"Verdana, Geneva, sans-serif",name:"Verdana"},{id:"Roboto",cssRule:"Roboto, sans-serif",name:"Roboto (google)",url:"https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap"}],menu:{},mergeTags:t.mergeTags||{},linkPicker:t.linkPicker||{}},onSaveBlock:t.onSaveBlock,onDeleteBlock:t.onDeleteBlock,blocksCategories:t.blocksCategories,customBlocks:t.customBlocks,mediaGalleryManager:t.mediaGalleryManager||function(){},blocks:[Tc(kd()),Tc(Cd()),Tc(Ed()),Tc({name:"twoButtons",id:"2 button",icon:[{type:"button"},{type:"button"}],tags:["button"],children:[Sd({text:n.readMore}),Sd({text:n.readMore})]}),Tc({name:"threeButtons",id:"3 button",icon:[{type:"button"},{type:"button"},{type:"button"}],tags:["button"],children:[Sd({text:n.readMore}),Sd({text:n.readMore}),Sd({text:n.readMore})]}),Tc(xd({direction:i,textAlign:o,homePageText:Od.home_page})),Tc((a={text:n.generalText},{name:"quote",icon:[{type:"quote"}],tags:["quote"],children:[vd(a)]})),Tc({name:"image | quote",icon:[{type:"image"},{type:"quote"}],tags:[],children:[vd({text:n.generalText,direction:i,textAlign:o}),_d({width:200,height:150})]}),Tc({name:"quote | image",icon:[{type:"quote"},{type:"image"}],tags:[],children:[_d({width:200,height:150}),vd({text:n.generalText,direction:i,textAlign:o})]}),Tc({name:"twoCards",icon:[{type:"article"},{type:"article"}],tags:["article","card"],children:[wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o})]}),Tc({name:"threeCards",icon:[{type:"article"},{type:"article"},{type:"article"}],tags:["article","card"],children:[wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o})]}),Tc({name:"card | image",icon:[{type:"image"},{type:"article"}],tags:["article","card","image","readmore"],children:[Bd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),_d({width:300,height:150})]}),Tc({name:"image | card",icon:[{type:"article"},{type:"image"}],tags:["article","card","image","readmore"],children:[_d({width:300,height:150}),Bd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o})]})],plugins:[sd,cd,hd.configure(t.textConfigure),pd.configure(t.textConfigure),dd.configure(t.textConfigure),ad.configure(t.textConfigure),fd,md,bd,Ad,...e]},navbar:{components:t.navbar.components}}};var a;return new od(s)}(t);return e}}"undefined"!=typeof window&&(window.cdtrStarter=Id)})(),a})()));
|
|
5483
|
+
`;let Uc=jc;function Zc(t){if("string"!=typeof t)return!1;const e=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","prs","ps","sd","ug","ur","yi"].find((e=>e===t.toLowerCase()));return!!e}Pc([tc({type:String})],Uc.prototype,"width"),Pc([tc({type:Boolean})],Uc.prototype,"opened"),Pc([tc({type:String})],Uc.prototype,"placement"),Pc([tc({type:Boolean,attribute:!1})],Uc.prototype,"isMobileView"),customElements.get(Hc)||customElements.define(Hc,Uc),s.e(6737).then(s.bind(s,36737)),s.e(2340).then(s.bind(s,32340)),Promise.all([s.e(4050),s.e(1410)]).then(s.bind(s,1410)),Promise.resolve().then(s.bind(s,7935)),s.e(4).then(s.bind(s,70004)),s.e(3381).then(s.bind(s,63381)),s.e(6892).then(s.bind(s,6892)),Promise.all([s.e(2475),s.e(7911)]).then(s.bind(s,47911)),s.e(6588).then(s.bind(s,76588)),Promise.resolve().then(s.bind(s,71781)),s.e(9838).then(s.bind(s,19838)),s.e(1650).then(s.bind(s,81650)),Promise.all([s.e(4050),s.e(6220),s.e(1449),s.e(4159)]).then(s.bind(s,4159)),s.e(709).then(s.bind(s,20709)),s.e(8333).then(s.bind(s,48333)),Promise.resolve().then(s.bind(s,35432)),s.e(6961).then(s.bind(s,6961)),Promise.resolve().then(s.bind(s,42729)),s.e(2543).then(s.bind(s,62543)),s.e(7804).then(s.bind(s,77804)),s.e(4648).then(s.bind(s,24648)),s.e(42).then(s.bind(s,30042)),s.e(9476).then(s.bind(s,99476)),s.e(2050).then(s.bind(s,42050)),s.e(6700).then(s.bind(s,75478)),s.e(9203).then(s.bind(s,49203)),s.e(132).then(s.bind(s,90132)),s.e(3732).then(s.bind(s,43732)),s.e(3847).then(s.bind(s,13847)),s.e(4212).then(s.bind(s,14212)),s.e(6308).then(s.bind(s,36308)),s.e(6308).then(s.bind(s,36308)),s.e(185).then(s.bind(s,10185)),s.e(6052).then(s.bind(s,86052)),s.e(7490).then(s.t.bind(s,97490,23)),s.e(6430).then(s.bind(s,16430)),s.e(2416).then(s.bind(s,32416)),s.e(7837).then(s.bind(s,37837)),s.e(8724).then(s.bind(s,88724)),s.e(6236).then(s.bind(s,46236)),s.e(3622).then(s.bind(s,53622)),s.e(1790).then(s.bind(s,81790)),s.e(9001).then(s.bind(s,59001)),s.e(5848).then(s.bind(s,95848)),s.e(201).then(s.bind(s,10201)),s.e(1867).then(s.bind(s,51867)),s.e(5985).then(s.bind(s,55985)),s.e(296).then(s.bind(s,60296)),s.e(6807).then(s.bind(s,36807)),Promise.resolve().then(s.bind(s,50629)),s.e(2087).then(s.bind(s,12087)),s.e(3755).then(s.bind(s,83755)),s.e(116).then(s.bind(s,50116)),s.e(5034).then(s.bind(s,75034)),s.e(4473).then(s.bind(s,4473)),s.e(7597).then(s.bind(s,87597)),s.e(1199).then(s.bind(s,31199)),s.e(4661).then(s.bind(s,84661)),s.e(2357).then(s.bind(s,72357)),s.e(2118).then(s.bind(s,92118)),s.e(494).then(s.bind(s,10494)),s.e(4569).then(s.bind(s,4569)),s.e(3831).then(s.bind(s,73831)),s.e(966).then(s.bind(s,60966)),s.e(5581).then(s.bind(s,35581)),s.e(8251).then(s.bind(s,38251)),s.e(8290).then(s.bind(s,88290)),s.e(4900).then(s.bind(s,74900)),s.e(2022).then(s.bind(s,32022)),s.e(3794).then(s.bind(s,83794)),s.e(6046).then(s.bind(s,76046)),s.e(6593).then(s.bind(s,76593)),s.e(6883).then(s.bind(s,46883)),s.e(9050).then(s.bind(s,99050)),s.e(6479).then(s.bind(s,86479)),s.e(8522).then(s.bind(s,78522)),s.e(7149).then(s.bind(s,67149)),s.e(308).then(s.bind(s,90308)),s.e(3020).then(s.bind(s,63020)),s.e(5910).then(s.bind(s,55910)),s.e(8287).then(s.bind(s,58287)),s.e(9136).then(s.bind(s,59136)),s.e(6196).then(s.bind(s,46196)),s.e(1381).then(s.bind(s,71381)),s.e(6524).then(s.bind(s,54050)),s.e(19).then(s.bind(s,19)),s.e(5478).then(s.bind(s,35478)),s.e(1101).then(s.bind(s,31101)),s.e(2721).then(s.bind(s,2721)),s.e(2365).then(s.bind(s,82365)),s.e(2182).then(s.bind(s,12182)),s.e(8073).then(s.bind(s,18073)),Promise.all([s.e(4050),s.e(6220),s.e(1449),s.e(9628)]).then(s.bind(s,99628)),Promise.all([s.e(2609),s.e(4128)]).then(s.bind(s,14128)),Promise.all([s.e(4050),s.e(6220),s.e(9201)]).then(s.bind(s,99201)),Promise.all([s.e(4050),s.e(6220),s.e(2609),s.e(168)]).then(s.bind(s,30168)),Promise.resolve().then(s.bind(s,72743)),s.e(5246).then(s.bind(s,45246)),s.e(2397).then(s.bind(s,62397)),s.e(6993).then(s.bind(s,26993)),xo({href:"https://fonts.googleapis.com",ref:"preconnect",crossorigin:!0}),xo({href:"https://fonts.gstatic.com",ref:"preconnect",crossorigin:!0});const Fc=t=>{{const{component:e,commands:n,helpers:r}=t;return{select:t=>{let{changeTab:e,tab:n}=t;"design"!==n.text&&e("design")},tabs:t=>{const e=[{text:"design"}];return e.forEach((e=>e.selected=e.selected=e.text===t)),e},layout:t=>{let{tab:r,changeTab:i,tabs:o}=t;const s=[{type:"heading",level:6,text:"rootelement_editor_top_header"},{type:"fontFamily",text:"fontFamily",value:e.props?.style?.fontFamily,onChange:t=>{const e=t.target.value,n=(fe.h.get("components"),ge.Z.getComponents().find((t=>"root"===t.type))),r=[];ge.Z.store().execCommand("style",{fontFamily:e}),n.treeWalk((t=>{if(t&&t.props&&!["root","section","block","row","col"].find((e=>e===t.type))&&(t.props.style&&t.props.style.fontFamily!==e&&ge.Z.store().updateComponent(t,"style",{fontFamily:e}),t.type.equalWith("text")&&r.push(t.tiptap),Array.isArray(t.props.items))){const n=JSON.parse(JSON.stringify(t.props.items));n.forEach((t=>{t&&(t.style?t.style.fontFamily=e:t.props&&t.props.style&&(t.props.style.fontFamily=e),t.props&&t.props.label_field&&t.props.label_field.props&&t.props.label_field.props.style&&(t.props.label_field.props.style.fontFamily=e))})),ge.Z.store().updateComponent(t,"items",n)}})),r.forEach((t=>{t.chain().selectAll().setFontFamily({cssRule:e}).run()}))}},{type:"slider",title:"block_width",min:500,max:1200,value:(()=>{const t=e.find("section").find("block");return parseInt(t?.props.style.width)})(),onInput:t=>{let n=t.target.value;n<500&&(n=500),n>1200&&(n=1200);const r=(()=>{const t=[],n=e.find("section");return n&&n.children.forEach((e=>{const n=fe.h.get("components",e);n&&"block"===n.type&&t.push(n)})),t})();ge.Z.store().execCommand2({transactions:[{key:"style",value:{width:n+"px",maxWidth:"100%"}}],update:r})}},{type:"divider"},{type:"colorpicker",alpha:!1,value:e.props.style.background||"#fff",title:"page_background",onChange:t=>{const e=t.target.value;n.execCommand("style",{background:e})}},{type:"divider"},{type:"colorpicker",alpha:!1,title:"bgColor_blocks",onChange:t=>{const e=t.target.value,n=fe.h.get("components").filter((t=>t.type.equalWith("block")));ge.Z.store().execCommand2({transactions:[{key:"style",value:{background:e}}],update:n})}},{type:"divider"},{type:"heading",level:6,text:"rootelement_editor_global_colors_heading"},{type:"heading",level:6,text:"Primary"},{type:"colorpicker",alpha:!1,title:"primaryColor",value:e.props.primaryColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("primaryColor",e)}},{type:"colorpicker",alpha:!1,title:"primaryContrastColor",value:e.props.primaryContrastColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("primaryContrastColor",e)}},{type:"divider"},{type:"heading",level:6,text:"secondary"},{type:"colorpicker",alpha:!1,title:"secondaryColor",value:e.props.secondaryColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("secondaryColor",e)}},{type:"colorpicker",alpha:!1,title:"secondaryContrastColor",value:e.props.secondaryContrastColor||"#fff",onChange:t=>{const e=t.target.value;n.execCommand("secondaryContrastColor",e)}}];return s}}}},Vc=t=>{let{helpers:e,template:n,globalStylesVar:r}=t;return{set:(t,i,o)=>{switch(i){case"style":return t[i]=o,e.mergeDiff(n,{style:t[i]}),!0;case"fontFamily":case"fontSize":case"paragraphFontSize":case"headingLvlOneFontSize":return t[i]=o,!0;case"primaryColor":case"secondaryColor":case"primaryContrastColor":case"secondaryContrastColor":case"secondaryColor":return t[i]=o,r.patch(t),!0;default:return!1}}}};var Yc=s(8831),Wc={};Wc.setAttributes=u(),Wc.insert=p().bind(null,"head"),Wc.domAPI=c(),Wc.insertStyleElement=m();o()(Yc.Z,Wc);const qc=Yc.Z&&Yc.Z.locals?Yc.Z.locals:void 0,Xc=document.createElement("style");Xc.patch=function(t){let{primaryColor:e,primaryContrastColor:n,secondaryColor:r,secondaryContrastColor:i}=t;e&&(Xc.innerHTML=`:root{--cdtr-primary:${e}}`),r&&(Xc.innerHTML+=`:root{--cdtr-secondary:${r}}`),i&&(Xc.innerHTML+=`:root{--cdtr-secondary-contrast:${r}}`),n&&(Xc.innerHTML+=`:root{--cdtr-primary-contrast:${n}}`)};const Gc=()=>{const t="root";return{name:t,create:e=>{const{createElement:n,compose:i,helpers:o}=e,{children:s,backgrounds:a,commands:l}=i,{mergeDiff:c,arrayToString:d}=l;i.style||(i.style={});const p=d("root-component",i.classList,qc.root);document.head.append(Xc),Xc.patch(i.props);const h=(0,r.Z)("div",{"data-id":i.id},s),u=(0,r.Z)("div",(0,A.Z)({},i,{className:p}),h);let f,m,g=(0,r.Z)("style",null,'\n .text-component:after{\n content: "";\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: transparent;\n }\n ');new xc.ZP(h,{group:"section-component",animation:450,handle:".section-handle--sortable",onStart:t=>{document.body.style.position="fixed",document.body.appendChild(g);const e=t.item;f=e.previousSibling?.dataset.id,m=e.nextSibling?.dataset.id},onEnd:function(t){document.body.style.position=null,g.remove();const e=t.item,n=t.to,r=t.from,i=t.oldIndex,o=t.newIndex;t.oldDraggableIndex,t.newDraggableIndex,t.clone,t.pullMode;ge.Z.store().moveComponent({componentId:e.dataset.id,newParentId:n.dataset.id,oldParentId:r.dataset.id,oldIndex:i,newIndex:o})}});return ge.Z.on("update",(()=>{setTimeout((()=>{const t=u.querySelector(`.${qc.placeholder}`),e=h.children.length;0===e&&t||(e>0&&t?t.remove():0!==e||t||u.appendChild((0,r.Z)("div",{className:qc.placeholder},(0,r.Z)("h1",null,"זה דף ריק,לחצו כאן כדי להוסיף אלמנטים, ורקעים"),(0,r.Z)("div",null,(0,r.Z)("paper-button",{onMousedown:()=>{be.Z.dispatch("open_add_menu",{type:"section-component"})},style:"color:var(--primary)"},(0,r.Z)("lang-text",{text:"for_quike_action_click_here"}))))))}),0)})),n({name:t,id:i.id,template:u,childrenHolder:h,allowSortable:!0,defaultProps:{},validator:Vc({template:u,helpers:o,globalStylesVar:Xc}),schema:i.schema,onSelect:()=>{},onDeselect:()=>{},elementProps:i,remove:()=>{u.remove()},createEditor:Fc})}}};var Kc=s(64721);const Jc=t=>{{const{component:e,commands:n,helpers:r}=t;return{select:t=>{let{changeTab:e,tab:n}=t;"design"!==n.text&&e("design")},tabs:t=>{const e=[{text:"design"},{text:"animations"},{text:"settings"}];return e.forEach((e=>e.selected=e.selected=e.text===t)),e},layout:t=>{let{tab:r,changeTab:i,tabs:o}=t;const s=e.closest("col"),a=[{type:"colorpicker",title:"background",value:e.props.style.background,onChange:t=>{const e=t.target.value;n.execCommand("style",{background:e})}},,{type:"slider",title:"width",value:parseFloat(e.props.style.width),unit:"px",min:20,max:parseInt(window.getComputedStyle(s.element).width),onInput:t=>{const e=t.target.value;n.execCommand("style",{width:e+"px"})}},{type:"slider",title:"height",value:parseFloat(e.props.style.minHeight)||0,unit:"px",min:100,max:800,onInput:t=>{const e=t.target.value;n.execCommand("style",{minHeight:e+"px"})}}];return a}}}};s(46245);const Qc=t=>{let{helpers:e}=t;return{set:(t,n,r)=>{if("style"===n)return t[n]=e.deepMerge(t[n],r),!0}}};var td=s(77814),ed={};ed.setAttributes=u(),ed.insert=p().bind(null,"head"),ed.domAPI=c(),ed.insertStyleElement=m();o()(td.Z,ed);const nd=td.Z&&td.Z.locals?td.Z.locals:void 0,rd=t=>{let{channel:e}=t;const n="card";return{name:n,menu:t=>{let{Compose:e}=t;return new e({type:n,children:[{type:"image",props:{}}],props:{style:{width:"300px",background:"#fff"}}},{group:"col",name:n,puzzle:[{type:"article"}],tags:[n],index:null})},create:t=>{const{createElement:e,compose:r,helpers:i}=t,{arrayToString:o,mergeDiff:s}=i,{children:a}=r,l=o(nd.root,r.classList),c=document.createElement("div"),d=document.createElement("div");a[0].forEach((t=>{d.appendChild(t)})),c.append(d),c.className=l;const p=r.props.style;return delete p.border,delete p.borderWidth,delete p.borderStyle,delete p.borderColor,e({name:n,id:r.id,template:c,handleBar:!0,render:()=>{const t=p.width;if(p.height||(c.style.height="100%"),!parseInt(t)&&p.maxWidth){const t=p.padding||0;p.width=parseInt(p.maxWidth)-2*parseInt(t,10)+"px"}s(c,{style:p})},draggable:{group:"col"},childrenHolder:d,allowSortable:!0,defaultProps:{style:{background:"#fff",borderRadius:".2rem",width:"300px",maxWidth:"100%"}},validator:Qc({template:c,helpers:i,children:a}),schema:r.schema,onSelect:t=>{c.classList.add(t)},onDeselect:t=>{c.classList.remove(t)},elementProps:r,remove:()=>{c.remove()},createEditor:Jc})}}};let id;const od=class{constructor(e){let r;if((0,t.Z)(this,"site",void 0),(0,t.Z)(this,"commands",void 0),(0,t.Z)(this,"editor",void 0),e.channel||(e.channel="newsletter"),this.editor={setContent:t=>{id&&id.remove(),id=vo({target:e.target,page:{},components:t||[]},(()=>{}))}},this.commands={snackbar:t=>{be.Z.dispatch("snackbar",{text:t})},langs:()=>fe.h.get("lang"),lang:t=>fe.h.get("lang",t),injectEditor:t=>{const e=fe.h.get("injectEditor");e&&e(t)},execCommand:(t,e)=>{ge.Z.store().execCommand(t,e)},toJSON:ec.au,toHTML:ec.io},fe.h.set({commands:this.commands}),e.target)if("string"==typeof e.target){if(r=document.getElementById(e.target),!r)throw new Error("string must be valid id or htmlElement")}else e.target instanceof HTMLElement?r=e.target:(r=document.createElement("div"),document.body.appendChild(r));else r=document.createElement("div"),e.target=r;fe.h.set({editor:ge.Z});const i=e.target;i.style.maxHeight="100vh",i.style.overflow="hidden",i.style.position="relative",ge.Z.on("change",(()=>{(0,ec.au)()})),fe.h.set({app:{_id:e.appId,name:e.documentName}}),e.languageJson&&fe.h.set({lang:e.languageJson}),ge.Z.configure=e?.editor?.configure;const o=e.language;!function(){if(Zc(o)){fe.h.set({langConfig:{direction:"rtl",align:"right",justifyContent:"flex-start",justify:"start"}}),e.theme.textAlign=e.theme.textAlign?e.theme.textAlign:"right",e.theme.direction=e.theme.direction?e.theme.direction:"rtl",e.theme.justifyContent=e.theme.justifyContent?e.theme.justifyContent:"flex-start",e.theme.rowDirection=e.theme.rowDirection?e.theme.rowDirection:"row";const t=n(e.theme);fe.h.set({theme:t.theme}),i.appendChild(t.styleTag)}else{fe.h.set({langConfig:{direction:"ltr",align:"left",justifyContent:"flex-end",justify:"end"}}),e.theme.textAlign=e.theme.textAlign?e.theme.textAlign:"left",e.theme.direction=e.theme.direction?e.theme.direction:"ltr",e.theme.justifyContent=e.theme.justifyContent?e.theme.justifyContent:"flex-end",e.theme.rowDirection=e.theme.rowDirection?e.theme.rowDirection:"row-reverse";const t=n(e.theme);fe.h.set({theme:t.theme}),i.appendChild(t.styleTag)}let t=ge.Z?.configure?.plugins;Array.isArray(t)||(t=[]),t.push(Gc),t.push(Kc.Z),t.push(rd),t=t.map((t=>t({channel:e.channel||"web",languages:e.languageJson,direction:fe.h.get("langConfig").direction,textAlign:fe.h.get("langConfig").align})));const r=e;r.editor.configure.plugins=t,fe.h.set({config:r,schemes:t}),id=vo({target:e.target,page:{},components:e.components||[]},(()=>{const t=fe.h.get("components").find((t=>"root"===t.type));t&&ge.Z.clean().selectComponent(t)}))}(),e.collaborator,ge.Z.connectWithCloud(e.collaborator)}};function sd(){const t="image";return{id:"1",name:t,menu:e=>{let{Compose:n}=e;return new n((()=>{const e="400px",n="250px";return{type:t,props:{alt:"image",width:e,height:n,style:{height:"auto",width:e,maxWidth:"100%",minWidth:"30px",objectFit:"fill"},src:`https://api.creaditor.com/images/placeholder?width=${parseInt(e)||250}&height=${parseInt(n)||250}`,isOpenWithModal:!1,isFullWidthOnMobile:!1,isRatioLock:!0}}})(),{group:"elements",name:t,puzzle:[{type:"image"}],tags:[t],index:null})},lazy:t=>{s.e(7946).then(s.bind(s,7946)).then((e=>{t(e.default())}))}}}function ad(t){const{languages:e,direction:n,textAlign:r}=t,i="@paragraph/text";return{id:i,name:i,menu:t=>{let{Compose:o}=t;return new o({type:i,props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:r},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:e.generalText}]}]}}}},{group:"elements",name:"text",puzzle:[{type:"text"}],tags:[i],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(ad.data))}))}}}ad.configure=t=>{let{fontSize:e,title:n,suffix:r,prefix:i,fonts:o,direction:s,textAlign:a}=t;return ad.data={fontSize:e,title:n,suffix:r,prefix:i,fonts:o,direction:s,textAlign:a},ad};const ld="video";function cd(t){let{channel:e}=t;return"web"===e?{id:"vvidoe-4Kj^43",name:ld,menu:t=>{let{Compose:e}=t;return new e({type:ld,props:{height:"auto",width:"400px",height:"300px",playing:!1,loop:!1,light:!1,controls:!0,autoPlay:!1,muted:!1,url:"https://www.youtube.com/watch?v=04Or_U9OexU"}},{group:"elements",name:ld,puzzle:[{type:"video"}],tags:[ld],index:null})},lazy:t=>{Promise.all([s.e(3691),s.e(3585)]).then(s.bind(s,83585)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"vvidoe-4Kj^43",name:ld,menu:t=>{let{Compose:e}=t;return new e({type:ld,props:{height:"auto",width:"400px",height:"300px",playing:!1,loop:!1,light:!1,controls:!0,autoPlay:!1,muted:!1,url:"https://www.youtube.com/watch?v=04Or_U9OexU"}},{group:"elements",name:ld,puzzle:[{type:"video"}],tags:[ld],index:null})},lazy:t=>{Promise.all([s.e(3691),s.e(6069)]).then(s.bind(s,46069)).then((e=>{t(e.default())}))}}:void 0}function dd(t){const{languages:e,direction:n,textAlign:r}=t,i="text",o=`${i}/heading1`;return{id:o,name:i,menu:t=>{let{Compose:s}=t;return new s({type:i,props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:1,lineHeight:"1.4",direction:n,textAlign:r},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"62px",color:"rgb(56, 56, 56)"}}],type:"text",text:e.bigHeading}]}]}}}},{id:o,group:"elements",name:"heading 1",puzzle:[{type:"heading1"}],tags:[i],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(dd.data))}))}}}function pd(t){const e="text",{languages:n,direction:r,textAlign:i}=t;return{id:"5445",name:e,menu:t=>{let{Compose:o}=t;return new o({type:e,props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:2,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"42px",color:"rgb(56, 56, 56)"}}],type:"text",text:n.mediumHeading}]}]}}}},{id:`${e}/heading2`,group:"elements",name:"heading 2",puzzle:[{type:"heading2"}],tags:[e],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(pd.data))}))}}}function hd(t){const e="text",{languages:n,direction:r,textAlign:i}=t;return{id:"544663",name:e,menu:t=>{let{Compose:o}=t;return new o({type:e,props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:3,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"24px",color:"rgb(56, 56, 56)"}}],type:"text",text:n.smallHeading}]}]}}}},{id:`${e}/heading3`,group:"elements",name:"heading 3",puzzle:[{type:"heading3"}],tags:[e],index:0})},lazy:t=>{s.e(7988).then(s.bind(s,87988)).then((e=>{t(e.default(hd.data))}))}}}dd.configure=t=>(dd.data=t,dd),pd.configure=t=>(pd.data=t,pd),hd.configure=t=>(hd.data=t,hd);const ud="countdown";function fd(t){let{channel:e}=t;return"web"===e?{id:"1",name:ud,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setHours(n.getMinutes()+30),{type:ud,props:{hasColons:!0,hasLabels:!0,date:n.toString(),language:"he",style:{},classList:[],containerWidth:"300px",containerBg:"transparent",containerRadius:"0",colBg:"transparent",colBorderStyle:"none",colBorderSize:"0",colBorderColor:"none",colBorderPadding:"0",colBorderRadius:"100px",numberSize:"30px",numberColor:"black",numberFontFamily:"Arial",labelSize:"14px",labelColor:"black",labelfontFamily:"Arial"}}),{id:ud,group:"elements",name:ud,puzzle:[{type:"countdown"}],tags:[ud],index:null});var n},lazy:t=>{s.e(9e3).then(s.bind(s,99e3)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"1",name:ud,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setMinutes(n.getMinutes()+30),{type:ud,props:{hasColons:!0,hasLabels:!0,date:n.toString(),language:"he",style:{},classList:[],containerWidth:"400px",containerBg:"transparent",containerRadius:"0",colBg:"transparent",colBorderStyle:"none",colBorderSize:"0",colBorderColor:"none",colBorderPadding:"0",colBorderRadius:"100px",numberSize:"30px",numberColor:"black",numberFontFamily:"Arial",labelSize:"14px",labelColor:"black",labelfontFamily:"Arial"}}),{group:"elements",name:ud,puzzle:[{type:"countdown"}],tags:[ud],index:null});var n},lazy:t=>{s.e(5204).then(s.bind(s,95204)).then((e=>{t(e.default())}))}}:void 0}function md(t){const{languages:e}=t,n="button";return{id:"button-menu",name:n,menu:t=>{let{Compose:r}=t;return new r({type:n,props:{text:e.readMore,style:{height:"auto",width:"100px",maxWidth:"100%",minWidth:"30px",background:"#000",color:"#fff"}}},{group:"elements",name:n,puzzle:[{type:"button"}],tags:[n],index:null})},lazy:t=>{s.e(9800).then(s.bind(s,29800)).then((e=>{t(e.default())}))}}}const gd="map";function bd(t){let{channel:e}=t;return"web"===e?{id:"1",name:gd,menu:t=>{let{Compose:e}=t;return new e({type:gd,props:{width:200,height:200,style:{height:"200px",width:"200px"},address:"תל אביב"}},{group:"elements",name:gd,puzzle:[{type:"map"}],tags:[gd],index:null})},lazy:t=>{s.e(9265).then(s.bind(s,59265)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"1",name:gd,menu:t=>{let{Compose:e}=t;return new e({type:gd,props:{width:200,height:200,style:{height:"200px",width:"200px"},address:"תל אביב",lang:"he"}},{group:"elements",name:gd,puzzle:[{type:"map"}],tags:[gd],index:null})},lazy:t=>{s.e(6234).then(s.bind(s,46234)).then((e=>{t(e.default())}))}}:void 0}const yd="social";function Ad(t){let{channel:e}=t;return"web"===e?{id:"1",name:yd,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setMinutes(n.getMinutes()+30),{type:yd,props:{}}),{group:"elements",name:yd,puzzle:[{type:"social"}],tags:[yd],index:null});var n},lazy:t=>{s.e(9e3).then(s.bind(s,99e3)).then((e=>{t(e.default())}))}}:"newsletter"===e?{id:"1",name:yd,menu:t=>{let{Compose:e}=t;return new e(((n=new Date).setMinutes(n.getMinutes()+30),{type:yd,props:{style:{gap:"10px"},items:[{id:(0,In.Z)(),fgColor:"",bgColor:"",style:{width:"30px",height:"30px"},url:"https://youtube.com",src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/youtube.png"},{id:(0,In.Z)(),fgColor:"",bgColor:"",style:{width:"30px",height:"30px"},src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/snapchat.png"},{id:(0,In.Z)(),fgColor:"",bgColor:"",style:{width:"30px",height:"30px"},url:"https://whatsapp.com",src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/whatsapp.png"}]}}),{group:"elements",name:yd,puzzle:[{type:"social"}],tags:[yd],index:null});var n},lazy:t=>{s.e(7637).then(s.bind(s,77637)).then((e=>{t(e.default())}))}}:void 0}function wd(t){const e=t?.heading,n=t?.text,r=t?.direction,i=t?.textAlign;return{type:"card",props:{style:{width:"95%",maxWidth:"345px",padding:"10px"}},children:[{type:"col",children:[{type:"image",props:{src:"https://api.creaditor.com/images/placeholder?width=350&height=150",width:400,height:150,isFullWidthOnMobile:!0,style:{width:"100%"}}}]},{type:"col",children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:1,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"24px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:n}]}]}}}}]},{type:"col",props:{justify:"rtl"===r?"end":"start",style:{}},children:[{type:"button",props:{style:{}}}]}]}}function vd(t){const e=t?.text;return{type:"row",props:{style:{width:"300px"}},children:[{type:"col",props:{lg:12,sm:12,justify:"end"},children:[{type:"image",draggable:!1,props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/last-post-quotes.png",width:24,height:24,style:{width:"24px",height:"24px"}}}]},{type:"col",props:{lg:12,sm:12},children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:"rtl",textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",props:{lg:12,sm:12,justify:"start"},children:[{type:"image",draggable:!1,props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/last-post-quotes.png",width:24,height:24,style:{width:"24px",height:"24px"}}}]}]}}function xd(t){let{homePageText:e,direction:n,textAlign:r}=t;return{name:"contact",icon:[{type:"contact"}],tags:["image","two images"],children:[{type:"col",children:[{type:"image",props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/mail.png",width:30,height:30,style:{width:"35px",height:"35px"}}},{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:"example@example.com"}]}]}}}}]},{type:"col",children:[{type:"image",props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/website.png",width:30,height:30,style:{width:"35px",height:"35px"}}},{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",children:[{type:"image",props:{src:"https://panel.sendmsg.co.il/templateContentImages/images/CreaditorGeneral/phone.png",width:30,height:30,style:{width:"35px",height:"35px"}}},{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:n,textAlign:"center"},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:"0505891010"}]}]}}}}]}]}}function _d(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.width||400,n=t.height||200;return{type:"image",props:{alt:"image",width:e,height:n,style:{height:"auto",width:e,maxWidth:"100%",minWidth:"30px",objectFit:"fill"},src:`https://api.creaditor.com/images/placeholder?width=${parseInt(e)||250}&height=${parseInt(n)||250}`,isOpenWithModal:!1,isFullWidthOnMobile:!1,isRatioLock:!0}}}function kd(){const t={width:300,height:200};return{name:"two images",icon:[{type:"image"},{type:"image"}],tags:["image"],children:[_d(t),_d(t)]}}function Cd(){const t={width:200,height:200};return{name:"threeImages",icon:[{type:"image"},{type:"image"},{type:"image"}],tags:["quote"],children:[_d(t),_d(t),_d(t)]}}function Ed(){const t={width:150,height:100};return{name:"fourImages",icon:[{type:"image"},{type:"image"},{type:"image"},{type:"image"}],tags:["image"],children:[_d(t),_d(t),_d(t),_d(t)]}}function Sd(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t?.text;return{type:"button",props:{style:{height:"40px",padding:"10px",borderRadius:"5px"},text:e}}}function Bd(t){const e=t?.heading,n=t?.text,r=t?.direction,i=t?.textAlign;return{type:"card",id:"card-title-txt-bton",props:{style:{width:"95%",maxWidth:"345px",background:""}},children:[{type:"col",props:{alignItems:"center"},children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"heading",attrs:{level:1,lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"24px",color:"rgb(56, 56, 56)"}}],type:"text",text:e}]}]}}}}]},{type:"col",props:{alignItems:"center"},children:[{type:"text",props:{text:{childNodes:{type:"doc",content:[{type:"paragraph",attrs:{lineHeight:"1.4",direction:r,textAlign:i},content:[{marks:[{type:"textStyle",attrs:{fontFamily:"Arial",fontSize:"14px",color:"rgb(56, 56, 56)"}}],type:"text",text:n}]}]}}}}]},{type:"col",props:{justify:"rtl"===r?"end":"start",style:{}},children:[{type:"button",props:{style:{marginTop:"10px"}}}]}]}}const Od=JSON.parse('{"name":"שם","link":"קישור","secureLink":"קישור מאובטח","tel":"טלפון","email":"אימייל","items":"פריטים","confirm":"אישור","contact":"יצירת קשר","loadingMore":"טוען תמונות נוספות...","loading":"טוען...","image_in_progress":"התמונה נוצרת...","expand_image_for_outlook_description":"כדי שהתמונה תוצג ותשמור על פרופורציות - הפעילו את הצ׳קבוקס כדי לשמור על גובה התמונה.","email_600":"הפרקטיקות המומלצות לעיצוב מיילים קובעות שגודל הרוחב האידיאלי של ניוזלטר הוא 600 פיקסלים. מספר זה היה הסטנדרט במשך שנים רבות.","mergeTags":"תגיות מיזוג","simply:Scratchcard":"כרטיס גירוד","is_user_wants_https":"להחליף את הקישור לhttps?","social":"רשתות חברתיות","prompt_editor_context":"האם להתייחס לטקסט הקיים?","Enter_your_business_name":"הכניסו את שם העסק שלכם","Enter_your_business_type":"הכניסו את סוג העסק שלכם","Enter_the_URL_of_the_page":"הכניסו את כתובת הדף שלכם","secure_link":"קישור מאובטח","bulletColor":"צבע הבולט","links_with_invalid_url":"קישורים עם כתובות לא תקינות","images_without_alt":"תמונות ללא תיאור","savedLinks":"קישורים שמורים","sms_body_if_needed":"גוף ההודעה אם נדרש","whatsapp_body_if_needed":"הודעת וואטסאפ אם נדרש","twoImages":"שתי תמונות","fourImages":"ארבע תמונות","threeImages":"שלוש תמונות","threeButtons":"שלושה כפתורים","borderSize":"גודל הגבול","file":"קובץ","root":"הדף","col":"עמודה","inline-image":"תמונה פנימית","link_of_button":"לאן הכפתור מוביל ?","addedToFavorite":"התווסף למועדפים","removedFromFavorite":"נמחק מהמועדפים","choose_backgroundColor":"בחרו צבע רקע","removedSuccess":"נמחק בהצלחה","aToZ":"א-ת","zToA":"ת-א","anchorName":"שם העוגן","inputEmptyError":"יש למלא את השדה","savedSuccess":"נשמר בהצלחה","createdSuccessfully":"בוצע בהצלחה","texts":"טקסטים","numOneAsFemale":"אחת","click_here_to_add":"לחצו להוספה","heading":"כותרת","bigHeading":"כותרת גדולה","readMore":"קראו עוד","mediumHeading":"כותרת בינונית","smallHeading":"כותרת קטנה","icons":"אייקונים","divider":"קו מפריד","bullets":"בולטים","numbered":"מספור","ok":"אוקי","newImage":"תמונה חדשה","newFolder":"תיקיה חדשה","folders":"תיקיות","edit":"עריכה","article":"מאמר","videoWithArticle":"וידאו עם מאמר","fit_colors":"צבעים מתאימים","plainSection":"מקטע ריק","iamgeWithArticle":"תמונה עם מאמר","imageWithText":"תמונה עם טקסט","BulletsWithImage":"בולטים עם תמונה","BulletsWithArticle":"בולטים עם מאמר","SocialNetwork":"רשת חברתית","twoArticles":"שני מאמרים","twoButtons":"שני כפתורים","threeArticles":"שלושה מאמרים","imageWithBullets":"תמונה עם בולטים","undo":"ביטול","redo":"ביצוע מחדש","wide":"מתוח לכל האוחב","click_to_add":"","videos":"סרטונים","empty_section_info":"זהו מקטע ריק, לחצו כאן כדי להוסיף בלוקים","text:button":"מה הכפתור אומר?","video":"סרטון","images":"תמונות","image":"תמונה","weight":"עובי","buttons":"כפתורים","button":"כפתור","general":"כללי","all":"הכל","myImages":"התמונות שלי","uploadSuccess":"העלאה הושלמה","fromOldToNew":"מהישן לחדש","fromNewToOld":"מהחדש לישן","download":"הורדה","quotes":"ציטוט","recommended":"מומלץ","save_block":"שמירת בלוק","what_category":"באיזו קטגוריה?","middle":"אמצע","give_name_to_block":"תנו שם לבלוק","quote":"ציטוט","no_responsive":"ביטול רספונסיביות","home_page":"דף הבית","quote | image":"ציטוט | תמונה","image | quote":"תמונה | ציטוט","image | card":"כרטיס | תמונה","card | image":"תמונה | כרטיס","quotesWithText":"ציטוט עם טקסט","delete":"מחיקה","anchor":"עוגן","drag_section":"החליפו מיקום עם מקטע אחר","drag_block":"לחצו לבחירה או גררו לשנות את המיקום","remove_block":"הסרת בלוק","duplicate_block":"שכפול בלוק","deleteElement":"מחיקת אלמנט","deleteBlock":"מחיקת בלוק","preview":"תצוגה מקדימה","design":"עיצוב","changeName":"שינוי שם","upload":"העלאת תמונה","add":"הוספה","publish":"פרסם","addons":"תוספות","duo":"מועד","position":"מיקום","drag_to_move_click_to_options":"גרירה להזזה, לחיצה להגדרות","save":"שמירה","repeat":"חזור","autoplay":"הפעל מיד","expand_image_for_outlook":"הגדלת תמונה לאאוטלוק","errors_to_fix":"שגיאות לתיקון","buttons_without_links":"כפתורים ללא קישור","images_with_default_src":"תמונות עם כתובת דיפולטית","urlAddressToYoutVimeo":"שורת כתובת ליוטיוב, וימאו","add_urlAddress_from_media_site":"קישור חיצוני","remove_background_movie":"הסרת רקע","playInLoop":"הפעל בלופ","height_in_section":"גובה, 100 יפרס לכל גובה המסך בהתאם למכשיר","cellSpace":"ריווח תא","numbers":"מספרים","titles":"כותרות","go_to_edit_mode":"חזרה למצב עריכה","auto":"אוטומטי","search":"חיפוש","showAsImage":"הצג כתמונה","titlesStyle":"עיצוב הכותרות","delete_section":"הסרת מקטע","numbersStyle":"עיצוב המספרים","slientMode":"מצב השתק","ratioLock":"נעילת יחס","choose_your_duo_date":"בחרו את המועד הסופי","videoLink":"קישור לסרטון","openAsModal":"פתח תמונה בחלון צף","innerBackgroundColor":"רקע פנימי","radius":"רדיוס","iconsColor":"צבע האייקונים","whereIframeLink":"לאן האייפרם מכוון?","whereIsLinkTo":"?לאן הקישור מכוון","dividerColor":"צבע קו מפריד","buttonText":"טקסט הכפתור","settings":"הגדרות","counterTitle":"הצגת כותרות","foreColor":"צבע הטקסט","colors":"צבעים","marginBottom":"ריווח תחתון","color":"צבע","openGalleryImage":" גלריית תמונות","icon_gallery":"גלריית אייקונים","folderName":"שם תיקיה","addFolder":"הוספת תיקיה","newFolderAdded":"התיקיה ונוספה בהצלחה","file_moved_to_new_folder":"הקובץ הועבר לתיקיה אחרת","add_block":"הוספת בלוק","counterColor":"צבע למונה","chooseBlock":"גרור בלוק","automations":"אוטומציות","list-settings":"מתקדם","page_background":"רקע הדף","bgColor_blocks":"רקע הבלוקים","create_anchor":"צריכים עוגן? לחצו פה","copy":"העתק","uploading":"אני עובד על זה!","verifying":"רגע... כמה בדיקות קטנות","completed":"זהו... סיימתי!","timeout":"אופס! לא בטוח מה קרה פה...","copy_to_here":"העתקה לכאן","addLinks":"הוספת קישור","keep_ratio":"שמירת יחס","list-check":"אלמנטים","powered_by_pexels":"כל התמונות מאתר Pexels","image_micro_copy":"הוסיפו תמונה(אבל אחת יפה) בלחיצה על הכפתור, או לחיצה כפולה על התמונה","typography_micro_copy":"סמנו בדיוק את המילה, או בכלל לא כדאי לעצב את הטקסט","icons_list_micro_copy":"במידה ובולט לא נראה רציני במיוחד, החליפו אותו עם אייקון מעוצב ","anchor_name_micro_copy":"תנו לעוגן שם עכשיו, ותוכלו למצוא אותו בעריכת הקישורים אחר כך.","imageEditTitle":"עריכת תמונה","generate_content":"יצירת תוכן","creating_magic":"אני יוצר את התוכן שלכם...","address":"כתובת","prompt_editor_title":"יצירת תוכן","prompt_editor_textarea_placeholder":"תארו את התמונה שברצונכם לייצר","block_width":"רוחב הבלוקים","describe_image_prompt_input":"תארו את התמונה שברצונכם לייצר","image_prompt_editor_description":"אנחנו יכולים לייצר תמונה בהתאם לתיאור שתכתבו כאן, בלחיצה על כפתור הבחירה תוכלו לבחור תמונה מגלריית התמונות שלכם, או להכניס כתובת תמונה של תמונה חיצונית","insert_image":"בחירה","generate_image":"יצירת תמונה","generating":"אני עובד על זה...","creating_your_masterpiece":"אני יוצר את התמונה שלך...","he":"עברית","en":"אנגלית","ar":"ערבית","empty_state":"שקט פה.. שנתחיל שיחה?","videoEditTitle":"עריכת סרטון","backgroundColor":"צבע רקע","labels":"כותרות","add_table":"הוספת טבלה","button_design":"עיצוב הכפתור","background:form":"רקע הטופס","background:fields":"רקע השדות","width:form":"רוחב הטופס","no_editor:title":"עדיין לא יצרנו עריכה לאלמנט הזה, אנחנו עובדים על זה.","addons_menu:title":" תפריט התוספים, זה החלק המעניין, פה ניתן למצוא תוספים לשדרוג התוכן שלכם. פיצ\'רים נוספים יעלו בקרוב. בנתיים ניתן לגרור את האלמנט לבלוק או מקטע בגרירה חופשית לכל נקודה שתרצו..","sections_menu:title":"תפריט מקטעים, יצירת מקטע דורשת תשומת לב רבה לצרכים שלך, אנחנו עוד עובדים על זה, בנתיים ניתן ליצור מקטע ריק.","backgrounds_menu:title":"תפריט רקעים, בחרו רקע, אבל אחד יפה, וגררו אותו לבלוק או מקטע.","blocks_menu:title":"תפריט בלוקים, פה ניתן למצוא קומפוזציות של כמה אלמנטים שונים, ניתן לגרור אותם בין הבלוקים השונים ובין המקטעים ","elements_menu:title":"תפריט אלמנטים, גררו את האלמנט לצד אלמנט, התקרבו לפינה כדי לפתוח כתא חדש, או פשוט מתחת הבלוק ליצירת בלוק חדש","size_options":"מידות","backgrounds":"רקעים","contactForError":"דווח על שגיאה","contactForErrorDesc":"נתקלת בהתנהגות לא צפויה? \\n לחץ כאן לדיווח על תקלה","fetureRequest":"בקשה לתוספות","pastePageContent":" הדבקת תוכן מייל","titleColor":"צבע כותרת","agreeToOverride":"אני מאשר למחוק את התוכן הקיים ולהחליפו בתוכן שהועתק.","overridePageContent":"בחרת להדביק תוכן של מייל אחר לתוך הדף זה. \\n ההדבקה תמחק את התוכן הקיים בדף ותדביק במקומו את התוכן שהועתק.","fetureRequestDesc":"חסר לך פיצ\'ר כלשהו ? \\n לחץ כאן לבקשה להוספת כלים לעורך","copyPageContent":"העתקת תוכן הדף לחשבון אחר","copyPageContentDesc":"לחצו כאן כדי להעתיק את התוכן הדף לחשבון אחר שלכם בחשבון","pasteContent":"הדבקת תוכן מחשבון אחר","pasteContentDesc":"לחצו כאן כדי להדביק תוכן דף שהעתקם מחשבון אחר שלכם בחשבון","generalText":"כאן אנו נרשום את טקסט כללי כלשהו על המוצר שלנו. זהו אזור טקסט כללי כלשהו חופשי לגמרי ","longText":"כאן אנו נרשום את טקסט כללי כלשהו על המוצר שלנו. זהו אזור טקסט כללי כלשהו חופשי לגמרי, אפשר לרשום כאן מה שמתחשק לכם כל עוד מדובר בתוכן לעניין.","textBlock":"בלוק טקסט","component_selected":"נבחר בלוק","component_unselected":"בלוק לא נבחר","countdown":"מונה זמן","counterBlock":"בלוק קאונטר","bulletBlock":"בלוק בולטים","singleImage":"תמונה בודדת","allImages":"כל התמונות","add_section":"הוספת מקטע","bulletWithImageBlock":"בלוק בולטים לצד תמונה","header1block":"כותרת ראשית","bold":"הדגשה","underline":"קו תחתון","italic":"טקסט נטוי","strikeThrough":"קו חוצה","saved_links":"קישורים שמורים","forecolor":"צבע טקסט","numberColor":"צבע המספרים","threeCells":"שלושה תאים","twoCells":"שני תאים","backcolor":"רקע טקסט","fontFamily":"גופן","back":"חזור","fontSize":"גודל גופן","text_micro_copy":"כתבו ש\\"ח ואז לחיצה על רווח.. אהבתם? שתפו אותנו (: ","direction":"כיוון","right":"ימין","left":"שמאל","scroll":"גלילה","new_item":"פריט חדש","center":"מרכז","top":"למעלה","bottom":"למטה","next":"שלב הבא","twoCards":"שני כרטיסים","threeCards":"שלושה כרטיסים","justify":"מתיחה","remove":"הסרה","unLink":"הסרת קישור","appendImage":"הוספת תמונה","appendVideo":"הוספת סרטון","blocks":"בלוקים","page":"דף","section":"מקטע","block":"בלוק","pageSetting":"הגדרות הדף","home":"בית","about":"אודות","text":"טקסט","clear":"ניקוי","articleTitle":"כותרת מאמר","quick_add":"הוספה מהירה","Header1Web":"כותרת","shortText":"משהו חשוב שעל הלקוחות לדעת","articleMore":"הצג עוד","emoji":"אמוטיקון","lineHeight":"גובה שורה","two images":"שתי תמונות","heading 1":"כותרת גדולה","heading 2":"כותרת בינונית","heading 3":"כותרת קטנה","textAlign":"כיוון טקסט","sendTest":"שליחת בדיקה","Duplicate":"שכפול","DragHere":"גרור פה","imageSize":"גודל תמונה","alignImage":"מיקום תמונה","fullWidthOnMobile":"רוחב מלא במובייל","delete_bcakground":"הסרת רקע","edit_background":"עריכת רקע","altText":"טקסט חילופי","gallery":"גלרייה","padding":"ריווח פנימי","padding_top":"ריווח עליון","padding_bottom":"ריווח תחתון","margin":"ריווח חיצוני","size":"גודל","coming_soon":"מגיע בקרוב","background":"רקע","svg_color":"צבע הסמל","width":"רוחב","makeCircle":"שמירה על התמונה כעיגול","add_now":"הוספה","card":"כרטיסיה","go_back":"חזרה אחורה","add_new_element":"הוספת אלמנט חדש","what_the_anchor_name":"שם העוגן","form:manage_fields":"ניהול השדות בטופס","accessories":"תוספות","jhon_lennon":"ג\'ון לנון","jhon_lennon_qoute":"החיים זה מה שקורה בזמן שאתה עסוק בלתכנן תוכניות אחרות","headingText":"טקסט כותרת","height":"גובה","rotate":"סיבוב","dateAndTime":"תאריך ושעת סיום","hour":"שעה","is_active":"האם פעיל?","where_the_image_link":"לאן התמונה מובילה?","minutes":"דקות","alignButton":"מיקום כפתור","favorites":"מועדפים","main":"ראשי","type":"סגנון","opacity":"שקיפות","backgroundColorAndOpacity":"צבע רקע ושקיפות","mediaType":"סוגי מדיה","filter":"סינון","elements":"אלמנטים","freeImages":"תמונות בחינם","choose:":"בחירה","sendTestMail":"שליחת הודעת בדיקה","AddNewAddress":"הוספת מייל נוסף","searchImages":"חיפוש תמונות","send":"שליחה","fontNameWholePage":"פונט לכל הדף","blockMenuInfo":"לחץ על אחד התגיות לבחירה ולחיצה נוספת לביטול *","menu":"תפריט","menu_widget":"תפריט","emailAddress":"כתובת המייל","addEmoji":"הוספת אמוטיקון","addBackcolor":"הוספת צבע רקע","addForcolor":"הוספת צבע טקסט","openNewTab":"פתח בטאב חדש","stayOnSamePage":"השאר באותו הדף","desktopMode":"מצב דפדפן בלבד","lastColors":"צבעים אחרונים","colorsInPage":"צבעים בדף","getColorFromImage":"הצגת צבעים מתמונה","addressWithExample":"כתובת (דוגמא: פתח תקווה, הסיבים 18)","maps":"מפות","map":"מפה","layout":"פריסה","animations":"אנימציות","close_scheme_locked":"נעל סכימת צבעים","open_scheme_locked":"פתיחת סכימת צבעים","event":"אירוע","audio":"שמע","addNew":"הוסף חדש","delete_and_add":"הוספה והסרה","what_would_u_like_to_link":"מה תרצו להוסיף?","add_link":"הוספת קישור","name_of_nav":"שם כפתור הניווט","urlAddress":"שורת כתובת","can_Open_Gallery_With_Double_Click_On_The_Image":" פתיחת הגלרייה על ידי לחיצה כפולה על התמונה","uploadFile":"העלאה של קובץ חדש","FileSelection":"בחירת קובץ","this_is_empty_iframe_start_add_url_link":"זה אייפרם ריק, הוסיפו קישור לכתובת אינטרנט","yes,Create":"כן, צור תיקיה","letterSpacing":"ריווח בין האותיות","spacing":"ריווחים","solid":"אחיד","palletes":"פלטים","savedPalletes":"פלטים שמורים","savedToMainTab":"שמור בלשונית ראשית","dashed":"מקוקו","advanced":"מתקדם","Select_an_element_to_edit_its_properties":"בחרו אלמנט או לחצו על הוספה כדי להתחיל ליצור","maxWidth":"רוחב מקסימלי","whatTheBtnSays":"מה הכפתור אומר?","sendSms":"שליחת סמס","sendWhatsapp":"שליחת וואטסאפ","sendEmail":"שליחת מייל","what_the_url_address":"מהי שורת הכתובת שתרצו להוסיף?","add_catchy_subject":"הוסיפו נושא קליט","what_the_email_address":"לאן המייל ישלח?","what_the_phone_number":"מהו מספר הטלפון?","what_the_phone_number_to_send_msg":"מהו מספר אליו תשלח ההודעה?","email_body_if_needed":"תוכן גוף המייל","active_on-scroll":"יפעל בגלילה","active_on-hover":"יפעל במצב ריחוף עם העכבר","drag_or_click":"גרירה","heading-1":"כותרת גדולה","svg-element":"אלמנט SVG","divider-element":"קו מפריד","iframe":"אייפרם","html-code":"קוד HTML","video with text":"וידאו עם טקסט","image with text":"תמונה עם טקסט","quotes-block":"בלוק ציטוט","animation_deleted":"האנימציה נמחקה","animation_added":"האנימציה נוספה","show_on_desktop":"הצג במחשב הלוח","show_on_mobile":"הצג במכשיר נייד","show_on_tablet":"הצג במכשיר טאבלט","properties":"מאפיינים","ID_with_description":"מזהה (ID)","on_hover":"במצב ריחוף עם העכבר","on_scroll":"בגלילה","menu-widget":"תצוגת תפריט","setting_section":"הגדרות סקשן","setting_block":"הגדרות בלוק","remove_element":"הסרת אלמנט","drag_element":"גרירת אלמנט","max_width":"רוחב מקסימלי","open_gallery":"פתיחת גלריה","open_gallery_icons":"גלריית אייקונים","number_size":"גודל המספרים","large":"גדול","medium":"בינוני","small":"קטן","extra-large":"גדול מאוד","without_radius":"ללא רדיוס","design_custom_list":"עיצוב רשימה מותאמת אישית","display_mode":"מצב תצוגה","left-to-element":"שמאל לאלמנט","right-to-element":"ימין לאלמנט","bottom-to-element":"מתחת לאלמנט","top-to-element":"מעל לאלמנט","open-new-cell-from-right":"הוספה בתא חדש מימין","open-new-cell-from-left":"הוספה בתא חדש משמאל","open-new-block-from-bottom":"הוספה בבלוק חדש מתחת","open-new-block-from-top":"הוספה בבלוק חדש מעלה","description":"תיאור","title":"כותרת","keywords":"מילות מפתח","favicon":"סמל מוצא","cancel":"ביטול","standard":"סטנדרטי","ready_to_publish":"מוכן לפרסום","lets_set_some_seo":"בואו נוסיף כמה הגדרות SEO","We_are_building_your_page":"אנחנו בונים את העמוד שלך","inner_blocks":"מרכז המקטע","drag_here":"גררו לכאן","advance_options":"אפשרויות מתקדמות","duplicate_template_code":"קוד לשכפול תבנית","copied":"הועתק","click_to_copy":"Click To Copy","fade_in":"Fade in","fade_in_down":"Fade in down","back_in_down":"Back in down","back_in_right":"Back in right","bounce":"קופצני","tada":"שיקשוק","saved_theme":"עיצוב שמור","open_colorpicker":"בחירה של צבע אישי","colors_that_created_from_image":"צבעים שנוצרו מתמונה","publish_success":"פרסום בוצע בהצלחה","open_the_page":"פתיחת העמוד בדף חדש","close":"סגירה","title_size":"גודל כותרות","ilustrations":"סמלים","svg":"סמל","click_to_refresh":"לחיצה לרענון הדף","error_client_disconnected":"אופס! החיבור לשרת נותק, לחצו על רענון הדף כדי להמשיך לעבוד, בנתיים קבלנו את הנתונים ואנחנו עובדים על פתרון הבעיה, עמך סליחה והמשך עבודה מהנה","connection_error":"החיבור נותק 😱, אבל אל דאגה, התוכן נשמר","typography":"טיפוגרפיה","more_colors":"צבעים נוספים","button_submit_form":"שליחה","get_started":"התחילו עכשיו","design_form":"עיצוב טופס","form_settings":"הגדרות טופס","input":"קלט","send_mail_on_submitted":"רוצים לקבל מייל כשלקוחות נרשמים?","placeholder":"טקסט פנימי של הקלט(במצב ללא טקסט)","default_value":"ערך ברירת מחדל","required":"חובה","hidden":"מוסתר","hidden_field":"שדה מוסתר","advance_setting":"הגדרות מתקדמות","label":"כותרת","color:label":"צבע הטקסט","radio-group":"קבוצת לחצנים","items_in_radio_group":"פריטים בקבוצת לחצנים","add_item":"הוספת פריט","textarea":"טקסט ארוך","items_in_menu":"פריטים בתפריט","checkbox":"תיבת סימון","height:form_field":"גובה השדות","ready_blocks":"בלוקים מוכנים","box-shadow":"אפקט צל","add_new_field":"הוספת שדה חדש","border_design":"עיצוב מסגרת","individual_elements":"אלמנטים בודדים","number_color":"צבע המספרים","send_form_only_if_checked":"שליחת טופס תתאפשר רק אם מסומן","select_fields_to_edit":"לחצו על האלמנטים בטופס לעריכה","url_parameters":"שם פרמטר בשליחה","the_color_of_cols":"צבע מקטעי המספרים","the_radius_of_col":"רדיוס קטעי המספרים","hidden_form_field_info":"שדה שלא יופיע לגולשים בתצוגת הטופס, משמש בעיקר לקבלת ערכי REF ו UTM או פרמטרים קבועים שמעונינים שיופיעו אוטומטית בשדות של הנרשם בטופס הספציפי מבלי שהוא ממלא או רואה אותם.","required_form_field_info":"שדה שהנרשם בטופס חייב למלא/לסמן אותו על מנת לשלוח את הטופס, טופס ששדה חובה לא מולא בו לא ישלח ויקפיץ הודעה לממלא הטופס שהשדה הוא חובה","url_param":"שם פרמטר בשליחה","show_colons":"להציג נקודותיים ?","please_wait_downloading_new_version":"אנא המתינו, אנחנו מעדכנים גרסה חדשה","my_fields":"השדות שלי","allow_send_form_only_if_checked":"אפשר לשלוח טופס רק אם מסומן","field_settings":"הגדרות שדה","after_form_subscribed":"מה לעשות אחרי שהטופס נשלח?","add_user_from_mailinglist_after_subscribed":"לאיזה קבוצות דיוור נרשום את הלקוח שלנו?","remove_user_from_mailinglist_after_subscribed":"מאיזה קבוצות דיוור נסיר את הלקוח שלנו ?","available_fields":"השדות שלי","background_fields":"רקע השדות","label_color":"צבע כותרת עליונה","title_color":"צבע הכותרות","button_color":"צבע טקסט הכפתור","start":"התחלה","end":"סיום","duration":"משך","prefix":"לפני","suffix":"אחרי","separator":"מפריד","count-up":"לספר עד","pie-chart":"פיי נתונים","edit_data":"עריכת נתונים","border_editor":"עריכת מסגרת","bar-chart":"טבלת עמודות","cols_color":"צבעי עמודות","button_background":"רקע הכפתור","button_radius":"רדיוס כפתור","justifyContent":"ישור אופקי","alignItems":"ישור אנכי","design_pallete":"פלאטת הצבעים שלי","rootelement_editor_top_header":"שינוי גופן לכל האלמנטים בדף, כלל אלמנטים חדשים שתוסיפו","rootelement_editor_global_colors_heading":"צבעים שמורים לדף, בחרו צבעים לפי צבעי המותג שלכם, ואחר כך הצבעים יחכו לכם בבחירת צבע של כל אלמנט בתוך הcolorpicker","flex-start":"התחלה","primaryColor":"צבע ראשי","primaryContrastColor":"צבע ראשי נגדי","secondaryColor":"צבע משני","secondaryContrastColor":"צבע משני נגדי","flex-end":"סיום","make_it_default_value":"הפוך לערך ברירת מחדל","show_success_popup":"הצגת פופאפ בעת בהצלחה","forward_params":"להעביר פרמטרים?","user_will_redirect_to":"הלקוח יעבור לדף הבא","where_to_redirect":"לאן להעביר את הלקוח?","component_color":"צבע הרכיב","none":"ללא","my_form":"הטופס שלי","form:placeholder_color":"צבע הטקסט הפנימי","search_my_fields":"חיפוש השדות שלי","checkbox_on_right_side":"צ\'קבוקס מימין?","choose_an_option":"בחרו באחת האפשרויות הבאות","checkbox_checked_as_default":"תיבת סימון מסומנת כברירת מחדל","paragraph":"פיסקה","after_submission":"מה יקרה לאחר הרשמה?","stay_at_page":"נשארים בדף","redirect":"מועברים למקום אחר","field_background":"רקע שדות","form:heading":"בואו נדבר, הקפה עלינו!","form:subHeading":"לקביעת פגישה או רק שאלה? אשמח לסייע לכם! השאירו פרטים ואחזור אליכם בהקדם","form:background":"צבע הרקע של שדות","style":"עיצוב","connection_lost":"החיבור אבד","error_transactions_not_completed":"חלק מהפעולות לא הושלמו, בדיוק ברגעים אלה קיבלנו את המידע ואנחנו עובדים על שיפור החוויה בעורך","form":"טופס","sync_all_forms":"סנכרן את כל הטפסים","send_the_data_to":"צריכים לשלוח את הנתונים לCRM ?","horizontal_shadow_length":"מיקום האופקי של הצל","vertical_shadow_length":"מיקום האנכי של הצל","blur_radius":"טשטוש הצל","spread_radius":"פריסת הצל","open_image_editor":"עריכת תמונה","shadow_color":"צבע הצל","inset":"מיקום חיצוני ?","box_shadow:info":"Adds shadow effects around an element\'s frame.","choose":"בחירה","design_for_phone":"עיצוב לנייד","design_for_desktop":"עיצוב למחשב","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"יעד הקישור","open_in_new_tab":"פתח בטאב חדש","open_in_same_tab":"פתח באותו טאב","open_in_parent_frame":"פתח במסגרת ההורה","open_in_top_frame":"פתח במסגרת העליונה","_blank":"פתח בטאב חדש","_self":"פתח באותו טאב","_parent":"פתח במסגרת ההורה","_top":"פתח במסגרת העליונה","user_menu":"תפריט משתמש","send_test_emails":"שליחת מיילי בדיקה","attached_files":"קבצים מצורפים","make_newsletter_as_event":"הפוך ניוזלטר לאירוע","edit_block":"עריכת בלוק","add_files":"הוסף קבצים","max_files_reached":"מספר הקבצים המקסימלי הושג","make_event":"צור אירוע","name_and_subject":"שם ונושא","enter_email_addresses":"הזן כתובות מייל (פסיק או Enter להוספה)","invalid_email_error":"אנא הזן כתובת מייל תקינה","no_emails_error":"אנא הוסף לפחות כתובת מייל אחת","create_event":"צור אירוע","start_date_time":"תאריך ושעת התחלה","end_date_time":"תאריך ושעת סיום","location":"מיקום","link_optional":"קישור (אופציונלי)","save_event":"שמירת אירוע","cancel_event":"ביטול","font_color":"צבע גופן","confirm_cancel":"האם אתה בטוח שברצונך לבטל?","creating_event":"יוצר אירוע...","event_created":"האירוע נוצר!","end_after_start_error":"תאריך/שעת הסיום חייב להיות אחרי תאריך/שעת ההתחלה","enter_event_location":"הזן מיקום האירוע","enter_event_link":"הזן קישור לאירוע","logout":"יציאה מהעורך","details":"פרטים","subject":"נושא","iconDirection":"כיוון האייקון","subtitle":"כותרת משנה","hasIcon":"להפעיל אייקון?","enter_subject":"מה יהיה נושא המייל(subject)?"}'),Md=JSON.parse('{"name":"Name","link":"Link","secureLink":"https link","tel":"Tel","email":"Email","keep_ratio":"Keep ratio","recommended":"Recommended","opengalleryimage":"Open gallery","email_600":"Email design best practices peg the ideal email newsletter width size at 600 pixels. This number has been the standard for many years.","secure_link":"Secure link","items":"Items","links_with_invalid_url":"Links with invalid url","prompt_editor_title":"Create Your Content","generate_content":"Generate Content","creating_magic":"Creating Magic...","images_without_alt":"Images without alt","sms_body_if_needed":"SMS body if needed","whatsapp_body_if_needed":"WhatsApp message if needed","simply:Scratchcard":"Scratch card","image_in_progress":"Image in progress...","text_micro_copy":"Be creative, write something that will make your customers want to click on the button.","jhon_lennon":"Jhon Lennon","jhon_lennon_qoute":"Life is what happens when you\'re busy making other plans","headingText":"Heading text","title_color":"Title Color","button_color":"Color Button","button_background":"Background Button","start":"Start","end":"End","duration":"Duration","prefix":"Prefix","suffix":"Suffix","separator":"Separator","count-up":"Count up","pie-chart":"Pie chart","edit_data":"Edit Data","bar-chart":"Barchart","cols_color":"Cols Colors","button_radius":"Radius Button","accessories":"Accessories","elements":"Elements","confirm":"Accept","drag_block":"Drag block","what_the_anchor_name":"What the anchor name?","checkbox_on_right_side":"Checkbox on Right?","drag_to_move_click_to_options":"Drag to move, click to options","contact":"Contact","buttons_without_links":"Buttons without links","images_with_default_src":"Images with default src","errors_to_fix":"Errors to fix","expand_image_for_outlook":"Expand image for Outlook","social":"Social Networks","forward_params":"Forward Params?","menu_widget":"Menu widget","powered_by_pexels":"Powered by Pexels","bulletColor":"Bullet Color","makeCircle":"Make Circle","twoImages":"Two Images","component_color":"Component Color","close_scheme_locked":"Close scheme locked","open_scheme_locked":"Open scheme locked","threeImages":"Three Images","threeButtons":"Three Buttons","file":"File","auto":"auto","colors":"Colors","iconsColor":"Icon colors","slientMode":"Slient Mode","dividerColor":"Divider Color","this_is_empty_iframe_start_add_url_link":"This is empty iframe. Start adding url link","openAsModal":"Open image in modal","autoplay":"Autoplay","showAsImage":"show As Image","playInLoop":"play In Loop","addedToFavorite":"Added to Favorites","removedFromFavorite":"Deleted from favorites","removedSuccess":"Successfully deleted","aToZ":"A-Z","zToA":"Z-A","anchorName":"Anchor Name","inputEmptyError":"Fill in the field","savedSuccess":"Saved successfully","createdSuccessfully":"Done successfully","home":"Home","about":"About","position":"Position","scroll":"Scroll","repeat":"Repeat","choose":"Choose","texts":"Texts","home_page":"Home Page","numOneAsFemale":"One","heading":"Title","bigHeading":"Big Title","readMore":"Read More","quick_add":"Quick Add","click_here_to_add":"Click here to add","mediumHeading":"Medium title","smallHeading":"Small title","icons":"Icons","divider":"Divider","bullets":"Bullets","numbered":"Numbering","ok":"OK","newImage":"New Image","newFolder":"New Folder","folders":"Folders","addLinks":"Add link","edit":"editing","rootelement_editor_top_header":"Global settings","block_width":"Block width","page_background":"Page background","bgColor_blocks":"Background color","rootelement_editor_global_colors_heading":"Global colors","openGalleryImage":"Open gallery","clone_element":"Clone element","what_the_url_address":"What the url address?","videoWithArticle":"Video with article","give_name_to_block":"Give name to block","save_block":"Save block","choose_your_duo_date":"Choose your duo date","what_category":"What category?","iamgeWithArticle":"Image with article","imageWithText":"Image with text","no_responsive":"No responsive","BulletsWithImage":"Bulltes with image","SocialNetwork":"Social networks","height:form_field":"Fields height","box-shadow":"Shadow-Fx","ready_blocks":"Blocks","individual_elements":"Individual Elements","connection_lost":"Connection Lost","add_now":"Add Now","error_transactions_not_completed":"TODO:complete_text","form:manage_fields":"Manage The Form","add_new_field":"Add New Field","border_design":"Border Design","number_color":"Numbers Color","twoArticles":"Two article","the_color_of_cols":"The Color Of Cols","the_radius_of_col":"The Radius Of Cols","twoButtons":"Two buttons","show_colons":"Show Colons","my_fields":"My Fields","no_editor:title":"We will add editor to this element soon as possible.","threeArticles":"Three articles","addons_menu:title":"Addons menu, Here you can find some features that will improve your app. drag the element to block or section.","sections_menu:title":"Section menu, We didn’t find time to fill this content. Writing a new section needs a great understanding of your needs.","backgrounds_menu:title":"Backgrounds menu, choose a background, but a nice one and drag it to a block or a section.","blocks_menu:title":"Block menu, here you can find composes of multipal elements in the same block, just drag it between the blocks and the sections.","elements_menu:title":"Drag the element at the right,left.. or just drop it as a new block.","imageWithBullets":"Image With bullets","undo":"Cancel","redo":"Restore","wide":"Wide","text:button":"What The Button say?","empty_section_info":"This is empty section, Click here to add block and beatiful background.","videos":"Videos","video":"Video","images":"Images","image":"Image","weight":"Weight","buttons":"Buttons","button":"Button","general":"General","all":"All","myImages":"My Images","uploadSuccess":"Upload complete","fromOldToNew":"Old to new","fromNewToOld":"New To old","download":"Download","quotes":"A Quote","quotesWithText":"Quote with text","delete":"Deletion","anchor":"Anchor","deleteElement":"Delete element","deleteBlock":"Delete block","preview":"Preview","design":"Design","changeName":"Rename","upload":"Upload Image","uploading":"Uploading...","verifying":"Verifying...","completed":"Completed!","timeout":"Upload timeout","add":"Add","addons":"Extras","save":"Save","cellSpace":"Cell spacing","search":"Search","ratioLock":"Ratio lock","videoLink":"Video link","settings":"Settings","counterTitle":"Counter title?","folderName":"Folder name","addFolder":"Add folder","add_block":"Add block","counterColor":"Counter color","chooseBlock":"Drag a block","imageEditTitle":"Photo editing","videoEditTitle":"Edit video","size_options":"Size Options","backgroundColor":"Backgorund","backgrounds":"Backgrounds","contactForError":"Report an error","contactForErrorDesc":"Did you come across something unexpected?\\n Click here to report the error","fetureRequest":"Request for additions","pastePageContent":" Paste email content","titleColor":"Title color","agreeToOverride":"I agree to delete the existing content and replace it with copied content.","overridePageContent":"You have chosen to paste the content of another email into this page. \\n The paste will delete the existing content on the page and paste the copied content in its place.","fetureRequestDesc":"Are you missing any feature? \\n Click here to request tools to be added to the editor","copyPageContent":"Copy the contents of the page to another account","copyPageContentDesc":"Click here to copy the page content to your other account","pasteContent":"Paste content from another account","pasteContentDesc":"Click here to paste copied content","generalText":"Here we will write down some general text about our product. This is some general text area completely free","longText":"Here we will write down some general text about our product. This is some general text area that is completely free, you can write here what you feel like as long as it is relevant content.","textBlock":"Text block","timeCounter":"Time counter","counterBlock":"Counter block","bulletBlock":"Bullets block","singleImage":"Single image","allImages":"All images","bulletWithImageBlock":"Bullet with images","header1block":"Main title","bold":"Bold","underline":"Underline","italic":"Italic","strikeThrough":"Strike through","forecolor":"Forecolor","threeCells":"Three cells","twoCells":"Two cells","backcolor":"Background text","fontFamily":"Font","fontSize":"Font size","direction":"Direction","right":"Right","left":"Left","center":"Center","justify":"Justify","unLink":"Unlink","appendImage":"Add an image","appendVideo":"Add an video","blocks":"Blocks","page":"Page","block":"Block","section":"Section","pageSetting":"Page settings","text":"Text","clear":"Clear","articleTitle":"Article title","Header1Web":"Title","shortText":"Something important that customers need to know","articleMore":"Show more","emoji":"Emoji","lineHeight":"Line height","textAlign":"Text align","sendTest":"Send test","article":"Article","Duplicate":"Duplicate","component_selected":"Component selected","component_unselected":"Component unselected","add_section":"Add section","remove_block":"Remove block","duplicate_block":"Duplicate block","BulletsWithArticle":"Bullets With Article","sendTestMail":"Send Test Message","blockMenuInfo":"Click on the tag and click again to set it off *","fontNameWholePage":"Whole Page Font name","AddNewAddress":"Add new Input","send":"Send","emailAddress":"Email Address","DragHere":"Drag here","imageSize":"Image size","alignImage":"Align image","fullWidthOnMobile":"Full width on mobile","altText":"Alt text","gallery":"Gallery","padding":"Padding","size":"Size","coming_soon":"Coming Soon","width":"Width","height":"Height","dateAndTime":"Date and Time","hour":"Hour","minutes":"Minute","alignButton":"Align button","main":"Main","favorites":"Favorites","mediaType":"Media type","filter":"Filter","addEmoji":"Add Emoji","addBackcolor":"Add Backcolor","addForcolor":"Add Forecolor","lastColors":"Last Colors","colorsInPage":"Colors in page","openNewTab":"New window","stayOnSamePage":"Same window","desktopMode":"Desktop mode only","addressWithExample":"Address (Example:Petah Tikva,Sibim 18)","maps":"Maps","map":"Map","layout":"Layout","event":"Event","audio":"Audio","addNew":"Add New","animations":"Animations","urlAddress":"Url Address","can_Open_Gallery_With_Double_Click_On_The_Image":"You can open the gallery by Double click on the Image","uploadFile":"Upload File","FileSelection":"File Selection","yes,Create":"Yes, Create","letterSpacing":"Letter Spacing","spacing":"Spacing","advanced":"Advanced","Select_an_element_to_edit_its_properties":"Select an Block, Button, or Text to edit its properties","what_the_phone_number_to_send_msg_to":"What the phone number to send message to","email_body_if_needed":"Email body if needed","what_the_phone_number":"What the phone number to call to","what_the_email_address":"What the email address to send to","active_on-scroll":"Active on scroll","active_on-hover":"Active on mouse over","drag_or_click":"Drag or click","heading-1":"Heading 1","svg-element":"SVG Element","divider-element":"Divider Element","iframe":"Iframe","html-code":"Html Code","video with text":"Video with text","image with text":"Image with text","quotes-block":"quotes block","animation_deleted":"Animation deleted","animation_added":"Animation added","show_on_desktop":"Show on desktop","show_on_mobile":"Show on mobile","show_on_tablet":"Show on tablet","properties":"Properties","ID_with_description":"ID (advance)","on_hover":"On mouse over","on_scroll":"On scroll","menu-widget":"Menu widget","setting_section":"Setting section","setting_block":"Setting block","remove_element":"Remove element","drag_element":"Drag element","max_width":"Max width","open_gallery_icons":"Open gallery icons","number_size":"Number size","large":"Large","medium":"Medium","small":"Small","extra-large":"Extra Large","without_radius":"Without radius","design_custom_list":"Design custom list","display_mode":"Display mode","description":"Description","title":"Title","keywords":"Keywords","favicon":"Favicon","cancel":"Cancel","standard":"Standard","ready_to_publish":"Ready to publish","lets_set_some_seo":"Let\'s set some SEO","We_are_building_your_page":"We are building your page","fade_in":"Fade in","fade_in_down":"Fade in down","back_in_down":"Back in down","back_in_right":"Back in right","bounce":"Bounce","tada":"Tada!!","saved_theme":"Saved theme","go_back":"Go back","open_colorpicker":"Open colorpicker","colors_that_created_from_image":"Colors that created from image","publish_success":"Publish success","open_the_page":"Open the page","close":"Close","title_size":"Title size","ilustrations":"Ilustrations","svg":"SVG","click_to_refresh":"Click to refresh","error_client_disconnected":"Opps! we are disconnected from the server. Please try again later.","connection_error":"Connection error 😱 ","typography":"Typography","more_colors":"More colors","button_submit_form":"Send","get_started":"Get started","design_form":"Design form","input":"Input","placeholder":"Placeholder","default_value":"Default value","required":"Required","after_submission":"On Submission?","stay_at_page":"Nothing","redirect":"Redirect","form:background":"Placeholder Color","hidden":"Hidden","form_settings":"Form settings","hidden_field":"Hidden field","advance_setting":"Advance setting","label":"Label","radio-group":"Radio group","items_in_radio_group":"Items in radio group","add_item":"Add item","textarea":"Textarea","items_in_menu":"Items in menu","checkbox":"Checkbox","send_form_only_if_checked":"Send form only if checked","select_fields_to_edit":"Select fields to edit","url_parameters":"URL parameters","hidden_form_field_info":"text required here..","required_form_field_info":"text required here..","url_param":"URL parameter","please_wait_downloading_new_version":"Please wait downloading new version","allow_send_form_only_if_checked":"Allow send form only if checked","field_settings":"Field settings","inner_blocks":"Center","automations":"Automations","drag_here":"Drag here","advance_options":"Advance Options","copied":"Copied","duplicate_template_code":"Duplicate Template Code","click_to_copy":"Click To Copy","list-check":"Elements","drag_section":"Drag section","card":"Card","list-settings":"Advance","icons_list_micro_copy":"If a bullet doesn\'t look serious enough, you can use an icon instead.","typography_micro_copy":"Typography your text with the help of the typography settings.","anchor_name_micro_copy":"Name it now, find it later in the link editor.","create_anchor":"Need Anchor? click here","image_micro_copy":"Click on the button, or dblClick on the image to add an image(but a beautiful one).","after_form_subscribed":"What we Should do after form subscribed","add_user_from_mailinglist_after_subscribed":"Pick mailinglist the user subscribed","remove_user_from_mailinglist_after_subscribed":"Pick mailinglist the user subscribed","available_fields":"My fields","add_urlAddress_from_media_site":"Add url from media site","background_fields":"Background fields","label_color":"Label color","make_it_default_value":"Make it default value","show_success_popup":"Show success popup","user_will_redirect_to":"User will redirect to","where_to_redirect":"Where to redirect?","none":"None","my_form":"My form","search_my_fields":"Search my fields","choose_an_option":"Choose an option","checkbox_checked_as_default":"Checked as default","form":"Form","sync_all_forms":"Sync all forms","send_the_data_to":"Need to send the data to crm ?","color:label":"Color Text","field_background":"Field Background","paragraph":"Paragraph","horizontal_shadow_length":"Horizontal Shadow Length","vertical_shadow_length":"Vertical Shadow Length","blur_radius":"Blur Radius","spread_radius":"Spread Radius","shadow_color":"Shadow Color","inset":"Inset","box_shadow:info":"Adds shadow effects around an element\'s frame.","design_for_phone":"Mobile Design","design_for_desktop":"Desktop Design","number_example":"05000000","website_example":"www.example.com","email_example":"example@example.com","link_target":"Link Target","open_in_new_tab":"Open in new tab","open_in_same_tab":"Open in same tab","open_in_parent_frame":"Open in parent frame","open_in_top_frame":"Open in top frame","user_menu":"User Menu","send_test_emails":"Send Test Emails","attached_files":"Attached Files","make_newsletter_as_event":"Make Newsletter as Event","add_files":"Add Files","max_files_reached":"Maximum number of files reached","make_event":"Make Event","name_and_subject":"Name & Subject","enter_email_addresses":"Enter email addresses (comma or enter to add)","invalid_email_error":"Please enter a valid email address","no_emails_error":"Please add at least one email address","create_event":"Create Event","start_date_time":"Start Date & Time","end_date_time":"End Date & Time","location":"Location","link_optional":"Link (Optional)","save_event":"Save Event","cancel_event":"Cancel Event","confirm_cancel":"Are you sure you want to cancel?","creating_event":"Creating Event...","event_created":"Event Created!","end_after_start_error":"End date/time must be after start date/time","enter_event_location":"Enter event location","enter_event_link":"Enter event link","logout":"Logout","details":"Details","subject":"Subject","subtitle":"Subtitle","enter_subject":"Enter subject"}');class Id{constructor(t){return this.props=t,this.init(t)}init(t){const e=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.plugins||[];let n=t.languageJson;const r=t.language||"he";n||(n="he"===r?Od:Md);const i=Zc(r)?"rtl":"ltr",o=Zc(r)?"right":"left";t.navbar||(t.navbar={}),Array.isArray(t.components)&&0===t.components.length&&(t.components=null),t.width||(t.width="650px",console.warn("using default width of 650px or 1000px.")),t.theme||(t.theme={}),t.textConfigure||(t.textConfigure={}),"object"!=typeof t?.configure&&(t.configure={}),"object"!=typeof t?.configure?.text&&(t.configure.text={}),t.configure.text={onClickMagic:t=>{const{injectEditor:e,insertContent:n,insertContentHtml:r,getJSON:i,getHTML:o,getText:s,selectAll:a}=t;a();const l=document.createElement("cdtr-text-prompt-editor");l.context=s(),l.addEventListener("text-generation-start",(t=>{a()})),l.addEventListener("text-generation-chunk",(t=>{n(t.detail.chunk)})),l.addEventListener("text-generation-complete",(t=>{a(),r(t.detail.text)})),l.addEventListener("text-generation-error",(t=>{console.error("Text generation error:",t.detail.error)})),e(l)}};const s={documentName:t.documentName,editable:t.editable,mode:t.mode,user:t.user,collaborator:t.collaborator,components:t.components||[{_id:"0-root",type:"root",props:{style:{background:"#fff"}},children:["0-section"]},{_id:"0-section",type:"section",props:{style:{width:t.width,margin:"auto",height:"100%"}},children:[]}],channel:"newsletter",userMenu:{onLogout:()=>{"function"==typeof t?.userMenu?.onLogout&&t?.userMenu?.onLogout()}},onNextStep:e=>{"function"==typeof t.onNextStep&&t.onNextStep(e)},onSendTestEmail:t?.onSendTestEmail?e=>{"function"==typeof t.onSendTestEmail&&t.onSendTestEmail(e)}:null,attachFiles:t?.attachFiles?{files:t?.attachFiles?.files||[],lazyLoad:t?.attachFiles?.lazyLoad||null,maxFiles:t?.attachFiles?.maxFiles||1,maxFileSizeMB:t?.attachFiles?.maxFileSizeMB||"0.5",save:e=>{"function"==typeof t.attachFiles.save&&t.attachFiles.save(e)},remove:e=>{"function"==typeof t.attachFiles.remove&&t.attachFiles.remove(e)}}:null,makeEvent:t?.makeEvent?{initialStartDate:t?.makeEvent?.initialStartDate||"",initialStartTime:t?.makeEvent?.initialStartTime||"",initialEndDate:t?.makeEvent?.initialEndDate||"",initialEndTime:t?.makeEvent?.initialEndTime||"",initialLocation:t?.makeEvent?.initialLocation||"",initialLink:t?.makeEvent?.initialLink||"",save:e=>{"function"==typeof t.makeEvent.save&&t.makeEvent.save(e)},cancel:()=>{"function"==typeof t.makeEvent.cancel&&t.makeEvent.cancel()}}:null,subjectAndName:t?.subjectAndName?{name:t?.subjectAndName?.name||"",subject:t?.subjectAndName?.subject||"",subtitle:t?.subjectAndName?.subtitle||"",save:e=>{"function"==typeof t.subjectAndName.save&&t.subjectAndName.save(e)}}:null,savedDebounce:t.savedDebounce||1e3,target:t.target||function(){const t=document.createElement("div");return t.id="root",document.body.appendChild(t),t}(),theme:{},language:r,languageJson:n,editor:{props:{onSave:e=>{console.log("%csync completed","color:green;font-size:20px;",e),"function"==typeof t.onSave&&t.onSave(e)},onChange:()=>{}},configure:{text:t?.configure?.text,editorProps:{fonts:t.fonts||[{id:"Arial",cssRule:"Arial, Helvetica, sans-serif",name:"Arial",language:["en","he"],url:null},{id:"Times New Roman",cssRule:"Times New Roman, Times, Beskerville, Georgia, serif",name:"Times New Roman",language:["en","he"],url:null},{id:"Courier New",cssRule:"Courier New, Courier, monospace",name:"Courier New"},{id:"Tahoma",cssRule:"Tahoma, Geneva, sans-serif",name:"Tahoma"},{id:"Verdana",cssRule:"Verdana, Geneva, sans-serif",name:"Verdana"},{id:"Roboto",cssRule:"Roboto, sans-serif",name:"Roboto (google)",url:"https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap"}],menu:{},mergeTags:t.mergeTags||{},linkPicker:t.linkPicker||{}},onSaveBlock:t.onSaveBlock,onDeleteBlock:t.onDeleteBlock,blocksCategories:t.blocksCategories,customBlocks:t.customBlocks,mediaGalleryManager:t.mediaGalleryManager||function(){},blocks:[Tc(kd()),Tc(Cd()),Tc(Ed()),Tc({name:"twoButtons",id:"2 button",icon:[{type:"button"},{type:"button"}],tags:["button"],children:[Sd({text:n.readMore}),Sd({text:n.readMore})]}),Tc({name:"threeButtons",id:"3 button",icon:[{type:"button"},{type:"button"},{type:"button"}],tags:["button"],children:[Sd({text:n.readMore}),Sd({text:n.readMore}),Sd({text:n.readMore})]}),Tc(xd({direction:i,textAlign:o,homePageText:Od.home_page})),Tc((a={text:n.generalText},{name:"quote",icon:[{type:"quote"}],tags:["quote"],children:[vd(a)]})),Tc({name:"image | quote",icon:[{type:"image"},{type:"quote"}],tags:[],children:[vd({text:n.generalText,direction:i,textAlign:o}),_d({width:200,height:150})]}),Tc({name:"quote | image",icon:[{type:"quote"},{type:"image"}],tags:[],children:[_d({width:200,height:150}),vd({text:n.generalText,direction:i,textAlign:o})]}),Tc({name:"twoCards",icon:[{type:"article"},{type:"article"}],tags:["article","card"],children:[wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o})]}),Tc({name:"threeCards",icon:[{type:"article"},{type:"article"},{type:"article"}],tags:["article","card"],children:[wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),wd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o})]}),Tc({name:"card | image",icon:[{type:"image"},{type:"article"}],tags:["article","card","image","readmore"],children:[Bd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o}),_d({width:300,height:150})]}),Tc({name:"image | card",icon:[{type:"article"},{type:"image"}],tags:["article","card","image","readmore"],children:[_d({width:300,height:150}),Bd({heading:n.header1block,text:n.shortText,direction:i,textAlign:o})]})],plugins:[sd,cd,hd.configure(t.textConfigure),pd.configure(t.textConfigure),dd.configure(t.textConfigure),ad.configure(t.textConfigure),fd,md,bd,Ad,...e]},navbar:{components:t.navbar.components}}};var a;return new od(s)}(t);return e}}"undefined"!=typeof window&&(window.cdtrStarter=Id)})(),a})()));
|