@creaditor/newsletter-starterkit 1.0.15-test.2 → 1.0.15-test.4
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/7911.creaditor.bundle.js +2 -2
- package/dist/7911.creaditor.bundle.js.gz +0 -0
- package/dist/901.creaditor.bundle.js +1 -1
- package/dist/901.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +2 -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
|
@@ -239,10 +239,10 @@ max-height: 90vh;max-width:500px;"
|
|
|
239
239
|
<cdtr-width-editor
|
|
240
240
|
text="${t.title}"
|
|
241
241
|
unit="${t.unit}"
|
|
242
|
-
|
|
242
|
+
step="${t.step||1}"
|
|
243
243
|
max="${t.max||100}"
|
|
244
244
|
min="${t.min||0}"
|
|
245
|
-
.value
|
|
245
|
+
.value="${t.value||0}"
|
|
246
246
|
@input=${t.onInput}
|
|
247
247
|
@change=${t.onChange}
|
|
248
248
|
.sizes=${t.sizes||[]}
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[901],{20901:(e,t,r)=>{r.r(t),r.d(t,{PexelsGallery:()=>n});var o=r(56666),a=r(8427),s=(r(70235),r(9085)),l=(r(36351),r(61828),r(59051)),i=r(76828);function c(e){e||(e={query:"nature",per_page:1});const t=`${i.W7.agent_url}pexels/search/?query=${e.query||"marketing"}&per_page=${e.per_page||1}`;return fetch(t).then((e=>e.json())).then((e=>{if("success"===e.status&&e.data)return e.data;throw new Error("Invalid response from backend")})).catch((e=>{throw console.error("Error fetching images:",e),e}))}class n extends a.oi{constructor(){super(),this.images=[],this.loading=!1,this.searchQuery="",this.page=1,this.hasMore=!0,this.perPage=20,this.multi=!0,this.selectedColor="",this.defaultSearchTerms=["nature","landscape","city","people","technology","food","architecture","travel","business","art"],this.colorOptions=[{name:"Red",value:"red",hex:"#ff0000"},{name:"Orange",value:"orange",hex:"#ff8000"},{name:"Yellow",value:"yellow",hex:"#ffff00"},{name:"Green",value:"green",hex:"#00ff00"},{name:"Blue",value:"blue",hex:"#0000ff"},{name:"Purple",value:"purple",hex:"#8000ff"},{name:"Pink",value:"pink",hex:"#ff0080"},{name:"Brown",value:"brown",hex:"#8b4513"},{name:"Black",value:"black",hex:"#000000"},{name:"White",value:"white",hex:"#ffffff"},{name:"Gray",value:"gray",hex:"#808080"},{name:"Teal",value:"teal",hex:"#008080"},{name:"Navy",value:"navy",hex:"#000080"},{name:"Maroon",value:"maroon",hex:"#800000"},{name:"Olive",value:"olive",hex:"#808000"},{name:"Lime",value:"lime",hex:"#00ff00"},{name:"Aqua",value:"aqua",hex:"#00ffff"},{name:"Silver",value:"silver",hex:"#c0c0c0"},{name:"Fuchsia",value:"fuchsia",hex:"#ff00ff"},{name:"Coral",value:"coral",hex:"#ff7f50"},{name:"Gold",value:"gold",hex:"#ffd700"},{name:"Indigo",value:"indigo",hex:"#4b0082"},{name:"Violet",value:"violet",hex:"#ee82ee"},{name:"Cyan",value:"cyan",hex:"#00ffff"},{name:"Magenta",value:"magenta",hex:"#ff00ff"}],this.cacheKey="pexels-gallery-cache",this.cacheExpiry=864e5,this.isTyping=!1,this.lastSearchQuery="",this.searchTimeout=null}connectedCallback(){super.connectedCallback(),this.loadFromCache()}getCacheData(){try{const e=localStorage.getItem(this.cacheKey);if(!e)return null;const t=JSON.parse(e),r=Date.now();return t.timestamp&&r-t.timestamp>this.cacheExpiry?(localStorage.removeItem(this.cacheKey),null):t}catch(e){return console.error("Error reading cache:",e),null}}saveToCache(){if(!this.isTyping)try{const e={images:this.images,searchQuery:this.searchQuery,selectedColor:this.selectedColor,page:this.page,hasMore:this.hasMore,timestamp:Date.now()};localStorage.setItem(this.cacheKey,JSON.stringify(e))}catch(e){console.error("Error saving to cache:",e)}}loadFromCache(){const e=this.getCacheData();e?(this.images=e.images||[],this.searchQuery=e.searchQuery||"",this.selectedColor=e.selectedColor||"",this.page=e.page||1,this.hasMore=void 0===e.hasMore||e.hasMore,console.log("Gallery state restored from cache"),this.requestUpdate(),this.updateComplete.then((()=>{this.updateSearchInput()}))):this.loadRandomImages()}updateSearchInput(){const e=this.shadowRoot?.querySelector('cdtr-input[type="search"]');e&&(e.value=this.searchQuery)}async loadRandomImages(){this.loading=!0;try{const e=this.defaultSearchTerms[Math.floor(Math.random()*this.defaultSearchTerms.length)],t=await c(e,this.perPage);
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[901],{20901:(e,t,r)=>{r.r(t),r.d(t,{PexelsGallery:()=>n});var o=r(56666),a=r(8427),s=(r(70235),r(9085)),l=(r(36351),r(61828),r(59051)),i=r(76828);function c(e){e||(e={query:"nature",per_page:1});const t=`${i.W7.agent_url}pexels/search/?query=${e.query||"marketing"}&per_page=${e.per_page||1}`;return fetch(t).then((e=>e.json())).then((e=>{if("success"===e.status&&e.data)return e.data.photos;throw new Error("Invalid response from backend")})).catch((e=>{throw console.error("Error fetching images:",e),e}))}class n extends a.oi{constructor(){super(),this.images=[],this.loading=!1,this.searchQuery="",this.page=1,this.hasMore=!0,this.perPage=20,this.multi=!0,this.selectedColor="",this.defaultSearchTerms=["nature","landscape","city","people","technology","food","architecture","travel","business","art"],this.colorOptions=[{name:"Red",value:"red",hex:"#ff0000"},{name:"Orange",value:"orange",hex:"#ff8000"},{name:"Yellow",value:"yellow",hex:"#ffff00"},{name:"Green",value:"green",hex:"#00ff00"},{name:"Blue",value:"blue",hex:"#0000ff"},{name:"Purple",value:"purple",hex:"#8000ff"},{name:"Pink",value:"pink",hex:"#ff0080"},{name:"Brown",value:"brown",hex:"#8b4513"},{name:"Black",value:"black",hex:"#000000"},{name:"White",value:"white",hex:"#ffffff"},{name:"Gray",value:"gray",hex:"#808080"},{name:"Teal",value:"teal",hex:"#008080"},{name:"Navy",value:"navy",hex:"#000080"},{name:"Maroon",value:"maroon",hex:"#800000"},{name:"Olive",value:"olive",hex:"#808000"},{name:"Lime",value:"lime",hex:"#00ff00"},{name:"Aqua",value:"aqua",hex:"#00ffff"},{name:"Silver",value:"silver",hex:"#c0c0c0"},{name:"Fuchsia",value:"fuchsia",hex:"#ff00ff"},{name:"Coral",value:"coral",hex:"#ff7f50"},{name:"Gold",value:"gold",hex:"#ffd700"},{name:"Indigo",value:"indigo",hex:"#4b0082"},{name:"Violet",value:"violet",hex:"#ee82ee"},{name:"Cyan",value:"cyan",hex:"#00ffff"},{name:"Magenta",value:"magenta",hex:"#ff00ff"}],this.cacheKey="pexels-gallery-cache",this.cacheExpiry=864e5,this.isTyping=!1,this.lastSearchQuery="",this.searchTimeout=null}connectedCallback(){super.connectedCallback(),this.loadFromCache()}getCacheData(){try{const e=localStorage.getItem(this.cacheKey);if(!e)return null;const t=JSON.parse(e),r=Date.now();return t.timestamp&&r-t.timestamp>this.cacheExpiry?(localStorage.removeItem(this.cacheKey),null):t}catch(e){return console.error("Error reading cache:",e),null}}saveToCache(){if(!this.isTyping)try{const e={images:this.images,searchQuery:this.searchQuery,selectedColor:this.selectedColor,page:this.page,hasMore:this.hasMore,timestamp:Date.now()};localStorage.setItem(this.cacheKey,JSON.stringify(e))}catch(e){console.error("Error saving to cache:",e)}}loadFromCache(){const e=this.getCacheData();e?(this.images=e.images||[],this.searchQuery=e.searchQuery||"",this.selectedColor=e.selectedColor||"",this.page=e.page||1,this.hasMore=void 0===e.hasMore||e.hasMore,console.log("Gallery state restored from cache"),this.requestUpdate(),this.updateComplete.then((()=>{this.updateSearchInput()}))):this.loadRandomImages()}updateSearchInput(){const e=this.shadowRoot?.querySelector('cdtr-input[type="search"]');e&&(e.value=this.searchQuery)}async loadRandomImages(){this.loading=!0;try{const e=this.defaultSearchTerms[Math.floor(Math.random()*this.defaultSearchTerms.length)],t=await c({query:e,per_page:this.perPage});t?(this.images=t||[],this.hasMore=t&&t.length===this.perPage,this.searchQuery="",this.selectedColor="",this.page=1,this.saveToCache()):(console.error("Failed to load images from Pexels"),this.images=[])}catch(e){console.error("Error loading images:",e),this.images=[]}finally{this.loading=!1}}async searchImages(e){if(!e.trim())return this.loadRandomImages();this.loading=!0,this.searchQuery=e,this.page=1;try{const t=await c({query:e,per_page:this.perPage});t?(this.images=t||[],this.hasMore=t&&t.length===this.perPage,this.saveToCache()):(console.error("Failed to search images from Pexels"),this.images=[])}catch(e){console.error("Error searching images:",e),this.images=[]}finally{this.loading=!1}}async loadMoreImages(){if(!this.loading&&this.hasMore){this.loading=!0,this.page++;try{let e;if(this.selectedColor&&"all"!==this.selectedColor){let t=this.removeColorFilters(this.searchQuery);e=t.trim()?`${t} ${this.selectedColor}`:this.selectedColor}else{e=this.removeColorFilters(this.searchQuery)||this.defaultSearchTerms[Math.floor(Math.random()*this.defaultSearchTerms.length)]}const t=await c({query:e,per_page:this.perPage});if(t.ok){const e=(await t.json()).photos||[];this.images=[...this.images,...e],this.hasMore=e.length===this.perPage,this.saveToCache()}}catch(e){console.error("Error loading more images:",e)}finally{this.loading=!1}}}onSearch(e){const t=e.target.value;this.isTyping=!0,t!==this.lastSearchQuery&&(this.lastSearchQuery=t,this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>{this.isTyping=!1,this.searchWithColor(t,this.selectedColor)}),500))}onSelectImage(e){const t=`Photo by ${e.photographer} on Pexels`,r=`Photo by <a href="${e.photographer_url}" target="_blank" rel="noopener noreferrer">${e.photographer}</a> on <a href="${e.url}" target="_blank" rel="noopener noreferrer">Pexels</a>`,o={detail:{id:e.id,src:e.src.medium||e.src.large||e.src.original,name:`Pexels Image ${e.id}`,size:`${e.width}x${e.height}`,photographer:e.photographer,photographerUrl:e.photographer_url,pexelsUrl:e.url,alt:e.alt||`Photo by ${e.photographer} on Pexels`,attributionText:t,attributionHtml:r},bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",o))}sendSelectedImages(){const e={detail:this.images.filter((e=>e.selected)).map((e=>{const t=`Photo by ${e.photographer} on Pexels`,r=`Photo by <a href="${e.photographer_url}" target="_blank" rel="noopener noreferrer">${e.photographer}</a> on <a href="${e.url}" target="_blank" rel="noopener noreferrer">Pexels</a>`;return{id:e.id,src:e.src.medium||e.src.large||e.src.original,name:`Pexels Image ${e.id}`,size:`${e.width}x${e.height}`,photographer:e.photographer,photographerUrl:e.photographer_url,pexelsUrl:e.url,alt:e.alt||`Photo by ${e.photographer} on Pexels`,attributionText:t,attributionHtml:r}})),bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",e))}onScroll(e){const t=e.target;t.scrollTop+t.offsetHeight>=t.scrollHeight-50&&this.loadMoreImages()}clearCache(){localStorage.removeItem(this.cacheKey),console.log("Gallery cache cleared")}onColorChange(e){console.log("Color change event:",e);const t=e.target.value;console.log("Selected color:",t),this.selectedColor="all"===t?"":t;const r=this.searchQuery||"";this.searchWithColor(r,this.selectedColor)}searchWithColor(e,t){if(t&&"all"!==t){let r=this.removeColorFilters(e),o=r.trim()?`${r} ${t}`:t;this.searchImages(o)}else{let t=this.removeColorFilters(e);this.searchImages(t)}}removeColorFilters(e){if(!e)return"";const t=this.colorOptions.map((e=>e.value));return e.split(" ").filter((e=>{const r=e.toLowerCase().trim();return!t.includes(r)})).join(" ").trim()}getSelectedColorName(){if(!this.selectedColor)return"Filter by color";const e=this.colorOptions.find((e=>e.value===this.selectedColor));return e?e.name:"Filter by color"}getSelectedColorHex(){if(!this.selectedColor)return"#666";const e=this.colorOptions.find((e=>e.value===this.selectedColor));return e?e.hex:"#666"}render(){return a.dy`
|
|
2
2
|
<div class="gallery-container">
|
|
3
3
|
<cdtr-row alignItems="center">
|
|
4
4
|
<cdtr-input
|
|
Binary file
|
package/dist/creaditor.bundle.js
CHANGED
|
@@ -2477,7 +2477,7 @@
|
|
|
2477
2477
|
background-color: rgba(152, 128, 255, 0.2);
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
`),customElements.define("cdtr-chat-ai",ue);var fe=s(70235),me=s(21293),ge=s(45607),be=s(58860),ye=s(80287);s(4164);const Ae=()=>{fe.h.get("config","language");const t={buttons:[],images:[],links:[],social:[],socialLinks:[]};Array.from(document.querySelectorAll('[data-type="button"]')).forEach((e=>{const n=fe.h.get("components",e.dataset.id);if(n){let e=!1;n.props.onClick&&n.props.onClick.link&&n.props.onClick.link.href&&(e=!0),e||t.buttons.push(n)}}));Array.from(document.querySelectorAll('[data-type="image"]')).forEach((e=>{const n=fe.h.get("components",e.dataset.id);n&&n.props.src&&-1!==n.props.src.indexOf("/placeholder")&&t.images.push(n)}));return Array.from(document.querySelectorAll('[data-type="social"]')).forEach((e=>{const n=fe.h.get("components",e.dataset.id);n&&n.props.items&&Array.isArray(n.props.items)&&n.props.items.forEach(((e,r)=>{e.url||t.social.push({compose:n,itemIndex:r,item:e})}))})),ge.Z.dispatch("detectErrors",t),t};setTimeout((()=>{Ae()}),1e3),ge.Z.on("
|
|
2480
|
+
`),customElements.define("cdtr-chat-ai",ue);var fe=s(70235),me=s(21293),ge=s(45607),be=s(58860),ye=s(80287);s(4164);const Ae=()=>{fe.h.get("config","language");const t={buttons:[],images:[],links:[],social:[],socialLinks:[]};Array.from(document.querySelectorAll('[data-type="button"]')).forEach((e=>{const n=fe.h.get("components",e.dataset.id);if(n){let e=!1;n.props.onClick&&n.props.onClick.link&&n.props.onClick.link.href&&(e=!0),e||t.buttons.push(n)}}));Array.from(document.querySelectorAll('[data-type="image"]')).forEach((e=>{const n=fe.h.get("components",e.dataset.id);n&&n.props.src&&-1!==n.props.src.indexOf("/placeholder")&&t.images.push(n)}));return Array.from(document.querySelectorAll('[data-type="social"]')).forEach((e=>{const n=fe.h.get("components",e.dataset.id);n&&n.props.items&&Array.isArray(n.props.items)&&n.props.items.forEach(((e,r)=>{e.url||t.social.push({compose:n,itemIndex:r,item:e})}))})),ge.Z.dispatch("detectErrors",t),t};setTimeout((()=>{Ae()}),1e3),ge.Z.on("update",(()=>{Ae()})),window.addEventListener("keydown",(()=>{Ae()}));class we extends me.oi{constructor(){super(),this.lang=fe.h.get("config","language")}connectedCallback(){super.connectedCallback(),ge.Z.on("change",(()=>{this.errors=Ae(),this.scrollToBottom()})),this.errors=Ae(),this.scrollToBottom()}scrollToBottom(){this.updateComplete.then((()=>{const t=this.shadowRoot.querySelector(".chat-container");t&&(t.scrollTop=t.scrollHeight)}))}getMessages(){return{welcome:{en:"👋 Hi! I'm your design assistant. I'll help you review your page and point out any areas that need attention.",he:"👋 היי! אני העוזר שלך לעיצוב. אני אעזור לך לבדוק את הדף שלך ולהצביע על אזורים שדורשים תשומת לב."},buttonsFound:{en:t=>`🔍 I found ${t} button${t>1?"s":""} that need attention:`,he:t=>`🔍 מצאתי ${t} כפתור${t>1?"ים":""} שדורשים תשומת לב:`},buttonsHelp:{en:"These buttons don't have any links attached. Click on any button above to select it and add a link in the properties panel. You can also drag and drop the button to reposition it.",he:"לכפתורים האלה אין קישורים. לחץ על כל כפתור למעלה כדי לבחור אותו ולהוסיף קישור בלוח המאפיינים. אתה יכול גם לגרור ולשחרר את הכפתור כדי לשנות את מיקומו."},imagesFound:{en:t=>`🖼️ I found ${t} image${t>1?"s":""} that still have placeholder sources:`,he:t=>`🖼️ מצאתי ${t} תמונה${t>1?"ות":""} שעדיין משתמשות בתמונות ברירת מחדל:`},imagesHelp:{en:"Click on any image above to select it and replace the placeholder with an actual image in the properties panel. You can also resize and reposition the image as needed.",he:"לחץ על כל תמונה למעלה כדי לבחור אותה ולהחליף את תמונת ברירת המחדל בתמונה אמיתית בלוח המאפיינים. אתה יכול גם לשנות את גודל התמונה ולשנות את מיקומה לפי הצורך."},linksFound:{en:t=>`🔗 I found ${t} button${t>1?"s":""} with invalid links:`,he:t=>`🔗 מצאתי ${t} כפתור${t>1?"ים":""} עם קישורים לא תקינים:`},linksHelp:{en:"These buttons have links that are invalid or broken. Click on any button above to select it and fix the link in the properties panel.",he:"לכפתורים האלה יש קישורים לא תקינים או שבורים. לחץ על כל כפתור למעלה כדי לבחור אותו ולתקן את הקישור בלוח המאפיינים."},socialFound:{en:t=>`📱 I found ${t} social icon${t>1?"s":""} without links:`,he:t=>`📱 מצאתי ${t} אייקון${t>1?"ים":""} חברתיים ללא קישורים:`},socialHelp:{en:"These social icons don't have links attached. Click on any icon above to select the social element and add a link in the properties panel.",he:"לאייקונים החברתיים האלה אין קישורים. לחץ על כל אייקון למעלה כדי לבחור את האלמנט החברתי ולהוסיף קישור בלוח המאפיינים."},socialLinksFound:{en:t=>`🔗 I found ${t} social icon${t>1?"s":""} with invalid links:`,he:t=>`🔗 מצאתי ${t} אייקון${t>1?"ים":""} חברתיים עם קישורים לא תקינים:`},socialLinksHelp:{en:"These social icons have links that are invalid or broken. Click on any icon above to select the social element and fix the link in the properties panel.",he:"לאייקונים החברתיים האלה יש קישורים לא תקינים או שבורים. לחץ על כל אייקון למעלה כדי לבחור את האלמנט החברתי ולתקן את הקישור בלוח המאפיינים."},allGood:{en:"✨ Great job! I don't see any issues that need attention. Your page looks perfect! 🎉",he:"✨איזה כייף! הכל נראה טוב ואין לי המלצות לשיפור. עבודה טובה 🎉"}}}render(){const t=this.getMessages(),e="he"===this.lang;return me.dy`
|
|
2481
2481
|
<div class="chat-container" dir="${e?"rtl":"ltr"}">
|
|
2482
2482
|
<div class="message ai-message">
|
|
2483
2483
|
<div class="avatar">AI</div>
|
|
@@ -2770,7 +2770,7 @@
|
|
|
2770
2770
|
}
|
|
2771
2771
|
`),customElements.define("cdtr-inspector",we);const ve=()=>{fe.h.get("injectEditor")(document.createElement("cdtr-inspector"))};function xe(){const t=ge.Z.getComponents().find((t=>"root"===t.type));t?ge.Z.clean().selectComponent(t):console.error("#1m56g9","root not found")}const _e=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=n.social||[],a=n.socialLinks||[],l=r.length+i.length+o.length+s.length+a.length;l!==e&&e>0&&(t.classList.add("shake-notification"),setTimeout((()=>{t.classList.remove("shake-notification")}),500)),e=l,t.setAttribute("data-errors",l)}))}),0)}},onClick:ve},(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:xe,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 ke=s(64110),Ce={};Ce.setAttributes=u(),Ce.insert=p().bind(null,"head"),Ce.domAPI=c(),Ce.insertStyleElement=m();o()(ke.Z,Ce);const Ee=ke.Z&&ke.Z.locals?ke.Z.locals:void 0;var Se,Be=s(19131),Oe=s.n(Be),Me=s(98357),Ie=s.n(Me),$e=s(80594),Te=s.n($e),Le=s(17089),Ne=s.n(Le),Re=[],Pe="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"}(Se||(Se={}));var De,ze=function(t){return Object.freeze(t)},He=function(t,e){this.inlineSize=t,this.blockSize=e,ze(this)},je=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,ze(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}(),Ue=function(t){return t instanceof SVGElement&&"getBBox"in t},Ze=function(t){if(Ue(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)},Fe=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)},Ve="undefined"!=typeof window?window:{},Ye=new WeakMap,We=/auto|scroll/,qe=/^tb|vertical/,Xe=/msie|trident/i.test(Ve.navigator&&Ve.navigator.userAgent),Ge=function(t){return parseFloat(t||"0")},Ke=function(t,e,n){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=!1),new He((n?e:t)||0,(n?t:e)||0)},Je=ze({devicePixelContentBoxSize:Ke(),borderBoxSize:Ke(),contentBoxSize:Ke(),contentRect:new je(0,0,0,0)}),Qe=function(t,e){if(void 0===e&&(e=!1),Ye.has(t)&&!e)return Ye.get(t);if(Ze(t))return Ye.set(t,Je),Je;var n=getComputedStyle(t),r=Ue(t)&&t.ownerSVGElement&&t.getBBox(),i=!Xe&&"border-box"===n.boxSizing,o=qe.test(n.writingMode||""),s=!r&&We.test(n.overflowY||""),a=!r&&We.test(n.overflowX||""),l=r?0:Ge(n.paddingTop),c=r?0:Ge(n.paddingRight),d=r?0:Ge(n.paddingBottom),p=r?0:Ge(n.paddingLeft),h=r?0:Ge(n.borderTopWidth),u=r?0:Ge(n.borderRightWidth),f=r?0:Ge(n.borderBottomWidth),m=p+c,g=l+d,b=(r?0:Ge(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:Ge(n.width)-v-w,k=r?r.height:Ge(n.height)-x-A,C=_+m+w+b,E=k+g+A+y,S=ze({devicePixelContentBoxSize:Ke(Math.round(_*devicePixelRatio),Math.round(k*devicePixelRatio),o),borderBoxSize:Ke(C,E,o),contentBoxSize:Ke(_,k,o),contentRect:new je(p,l,_,k)});return Ye.set(t,S),S},tn=function(t,e,n){var r=Qe(t,n),i=r.borderBoxSize,o=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case Se.DEVICE_PIXEL_CONTENT_BOX:return s;case Se.BORDER_BOX:return i;default:return o}},en=function(t){var e=Qe(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=ze([e.borderBoxSize]),this.contentBoxSize=ze([e.contentBoxSize]),this.devicePixelContentBoxSize=ze([e.devicePixelContentBoxSize])},nn=function(t){if(Ze(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},rn=function(){var t=1/0,e=[];Re.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(e){var n=new en(e.target),i=nn(e.target);r.push(n),e.lastReportedSize=tn(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},on=function(t){Re.forEach((function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach((function(n){n.isActive()&&(nn(n.target)>t?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},sn=function(){var t,e=0;for(on(e);Re.some((function(t){return t.activeTargets.length>0}));)e=rn(),on(e);return Re.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:Pe}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=Pe),window.dispatchEvent(t)),e>0},an=[],ln=function(t){if(!De){var e=0,n=document.createTextNode("");new MutationObserver((function(){return an.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),De=function(){n.textContent="".concat(e?e--:e++)}}an.push(t),De()},cn=0,dn={attributes:!0,characterData:!0,childList:!0,subtree:!0},pn=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],hn=function(t){return void 0===t&&(t=0),Date.now()+t},un=!1,fn=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),!un){un=!0;var n,r=hn(t);n=function(){var n=!1;try{n=sn()}finally{if(un=!1,t=r-hn(),!cn)return;n?e.run(1e3):t>0?e.run(t):e.start()}},ln((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,dn)};document.body?e():Ve.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),pn.forEach((function(e){return Ve.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),pn.forEach((function(e){return Ve.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),mn=function(t){!cn&&t>0&&fn.start(),!(cn+=t)&&fn.stop()},gn=function(){function t(t,e){this.target=t,this.observedBox=e||Se.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=tn(this.target,this.observedBox,!0);return t=this.target,Ue(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}(),bn=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},yn=new WeakMap,An=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},wn=function(){function t(){}return t.connect=function(t,e){var n=new bn(t,e);yn.set(t,n)},t.observe=function(t,e,n){var r=yn.get(t),i=0===r.observationTargets.length;An(r.observationTargets,e)<0&&(i&&Re.push(r),r.observationTargets.push(new gn(e,n&&n.box)),mn(1),fn.schedule())},t.unobserve=function(t,e){var n=yn.get(t),r=An(n.observationTargets,e),i=1===n.observationTargets.length;r>=0&&(i&&Re.splice(Re.indexOf(n),1),n.observationTargets.splice(r,1),mn(-1))},t.disconnect=function(t){var e=this,n=yn.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),vn=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.");wn.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(!Fe(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wn.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(!Fe(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wn.unobserve(this,t)},t.prototype.disconnect=function(){wn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const xn=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 _n(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:window}function kn(t){return t&&t.ownerDocument?t.ownerDocument:document}let Cn=null,En=null;function Sn(t){if(null===Cn){const e=kn(t);if(void 0===e)return Cn=0,Cn;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),Cn=i}return Cn}Oe()&&window.addEventListener("resize",(()=>{En!==window.devicePixelRatio&&(En=window.devicePixelRatio,Cn=null)}));class Bn{constructor(e,n){(0,t.Z)(this,"onScroll",(t=>{const e=_n(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&&Bn.getRtlHelpers().isRtlScrollbarInverted?a-(r+i.size):a,a=this.isRtl&&Bn.getRtlHelpers().isRtlScrollingInverted?-a:a),this.contentWrapperEl[this.axis[this.draggedAxis].scrollOffsetAttr]=a})),(0,t.Z)(this,"onEndDrag",(t=>{const e=kn(this.el),n=_n(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={...Bn.defaultOptions,...n},this.classNames={...Bn.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,Bn.instances.has(this.el)||(this.recalculate=Ie()(this.recalculate.bind(this),64),this.onMouseMove=Ie()(this.onMouseMove.bind(this),64),this.hideScrollbars=Te()(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=Te()(this.onWindowResize.bind(this),64,{leading:!0}),Bn.getRtlHelpers=Ne()(Bn.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=Bn.getOffset(e),i=Bn.getOffset(n);e.scrollLeft=999;const o=Bn.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=kn(t),r=_n(t);return{top:e.top+(r.pageYOffset||n.documentElement.scrollTop),left:e.left+(r.pageXOffset||n.documentElement.scrollLeft)}}init(){Bn.instances.set(this.el,this),Oe()&&(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=_n(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||vn;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=_n(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&&Bn.getRtlHelpers().isRtlScrollingInverted?-o:o;let s=o/(e-r),a=~~((n-i.size)*s);a="x"===t&&this.isRtl&&Bn.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=kn(this.el),r=_n(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=_n(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:Sn(this.el)}catch(t){return Sn(this.el)}}removeListeners(){const t=_n(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(),Bn.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)(Bn,"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)(Bn,"instances",new WeakMap),Bn.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")||Bn.instances.has(t)||new Bn(t,xn(t.attributes))}))},Bn.removeObserver=function(){this.globalObserver.disconnect()},Bn.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),"undefined"!=typeof MutationObserver&&(this.globalObserver=new MutationObserver(Bn.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))},Bn.handleMutations=t=>{t.forEach((t=>{Array.prototype.forEach.call(t.addedNodes,(t=>{1===t.nodeType&&(t.hasAttribute("data-amazingbar")?!Bn.instances.has(t)&&document.documentElement.contains(t)&&new Bn(t,xn(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-amazingbar]"),(function(t){"init"!==t.getAttribute("data-amazingbar")&&!Bn.instances.has(t)&&document.documentElement.contains(t)&&new Bn(t,xn(t.attributes))})))})),Array.prototype.forEach.call(t.removedNodes,(t=>{1===t.nodeType&&("init"===t.getAttribute("data-amazingbar")?Bn.instances.has(t)&&!document.documentElement.contains(t)&&Bn.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-amazingbar="init"]'),(t=>{Bn.instances.has(t)&&!document.documentElement.contains(t)&&Bn.instances.get(t).unMount()})))}))}))},Bn.getOptions=xn,Oe()&&Bn.initHtmlApi();const On=Bn;var Mn=s(9571);const In=t=>{const{id:e="style-"+(0,Mn.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},$n=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:Ee.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");In({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:Ee.root},(0,r.Z)("div",{ref:{onMount:()=>{setTimeout((()=>{o(),ge.Z.dispatch("change",{})}),0)}},className:Ee.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 On(l,{onScroll:n,autoHide:!0,autoHideTimeout:1e3})}),500),l};var Tn=s(1434);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>
|
|
2772
2772
|
${t}
|
|
2773
|
-
</style>`}}(0,t.Z)(Ln,"properties",{width:{type:Number,reflect:!0}}),customElements.define("cdtr-container-style",Ln);var Nn=s(97278);var Rn=s(84817),Pn=Date.now(),Dn="fnValues"+Pn,zn="fnStyle"+ ++Pn;const Hn=function(){return{onCreateRule:function(t,e,n){if("function"!=typeof e)return null;var r=(0,Rn.JH)(t,{},n);return r[zn]=e,r},onProcessStyle:function(t,e){if(Dn in e||zn 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[Dn]=n,t},onUpdate:function(t,e,n,r){var i=e,o=i[zn];o&&(i.style=o(t)||{});var s=i[Dn];if(s)for(var a in s)i.prop(a,s[a](t),r)}}};var jn=s(7288),Un=function(t){return t&&t[jn.Z]&&t===t[jn.Z]()};const Zn=function(t){return{onCreateRule:function(e,n,r){if(!Un(n))return null;var i=n,o=(0,Rn.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(!Un(i))return"continue";delete r[e],i.subscribe({next:function(r){n.prop(e,r,t)}})};for(var o in r)i(o)}}}};var Fn=/;\n/,Vn=function(t){"string"==typeof t.style&&(t.style=function(t){for(var e={},n=t.split(Fn),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 Yn=function(){return{onProcessRule:Vn}};var Wn="@global",qn="@global ",Xn=function(){function t(t,e,n){for(var r in this.type="global",this.at=Wn,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new Rn.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}(),Gn=function(){function t(t,e,n){this.type="global",this.at=Wn,this.isProcessed=!1,this.key=t,this.options=n;var r=t.substr(qn.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}(),Kn=/\s*,\s*/g;function Jn(t,e){for(var n=t.split(Kn),r="",i=0;i<n.length;i++)r+=e+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const Qn=function(){return{onCreateRule:function(t,e,n){if(!t)return null;if(t===Wn)return new Xn(t,e,n);if("@"===t[0]&&t.substr(0,qn.length)===qn)return new Gn(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[Wn]:null;if(i){for(var o in i)e.addRule(o,i[o],(0,A.Z)({},n,{selector:Jn(o,t.selector)}));delete r[Wn]}}(t,e),function(t,e){var n=t.options,r=t.style;for(var i in r)if("@"===i[0]&&i.substr(0,Wn.length)===Wn){var o=Jn(i.substr(Wn.length),t.selector);e.addRule(o,r[i],(0,A.Z)({},n,{selector:o})),delete r[i]}}(t,e))}}};var tr=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},er="extendCurrValue"+Date.now();function nr(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];nr("string"==typeof o?(0,A.Z)({},t,{extend:o}):t.extend[i],e,n,r)}else for(var s in t.extend)"extend"!==s?tr(t.extend[s])?(s in r||(r[s]={}),nr(t.extend[s],e,n,r[s])):r[s]=t.extend[s]:nr(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&&nr(l.rules.raw[t.extend],e,n,r)}}(t,e,n,r),function(t,e,n,r){for(var i in t)"extend"!==i&&(tr(r[i])&&tr(t[i])?nr(t[i],e,n,r[i]):tr(t[i])?r[i]=nr(t[i],e,n):r[i]=t[i])}(t,e,n,r),r}const rr=function(){return{onProcessStyle:function(t,e,n){return"extend"in t?nr(t,e,n):t},onChangeValue:function(t,e,n){if("extend"!==e)return t;if(null==t||!1===t){for(var r in n[er])n.prop(r,null);return n[er]=null,null}if("object"==typeof t){for(var i in t)n.prop(i,t[i]);n[er]=t}return null}}};var ir=/\s*,\s*/g,or=/&/g,sr=/\$([\w-]+)/g;const ar=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(ir),r=t.split(ir),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(or,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(sr,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 lr(t,e){if(!e)return!0;if(Array.isArray(e)){for(var n=0;n<e.length;n++){if(!lr(t,e[n]))return!1}return!0}if(e.indexOf(" ")>-1)return lr(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 cr=function(){return{onProcessStyle:function(t,e){return"composes"in t?(lr(e,t.composes),delete t.composes,t):t}}};var dr=s(78529),pr=Rn.HZ&&CSS?CSS.px:"px",hr=Rn.HZ&&CSS?CSS.ms:"ms",ur=Rn.HZ&&CSS?CSS.percent:"%";function fr(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 mr=fr({"animation-delay":hr,"animation-duration":hr,"background-position":pr,"background-position-x":pr,"background-position-y":pr,"background-size":pr,border:pr,"border-bottom":pr,"border-bottom-left-radius":pr,"border-bottom-right-radius":pr,"border-bottom-width":pr,"border-left":pr,"border-left-width":pr,"border-radius":pr,"border-right":pr,"border-right-width":pr,"border-top":pr,"border-top-left-radius":pr,"border-top-right-radius":pr,"border-top-width":pr,"border-width":pr,"border-block":pr,"border-block-end":pr,"border-block-end-width":pr,"border-block-start":pr,"border-block-start-width":pr,"border-block-width":pr,"border-inline":pr,"border-inline-end":pr,"border-inline-end-width":pr,"border-inline-start":pr,"border-inline-start-width":pr,"border-inline-width":pr,"border-start-start-radius":pr,"border-start-end-radius":pr,"border-end-start-radius":pr,"border-end-end-radius":pr,margin:pr,"margin-bottom":pr,"margin-left":pr,"margin-right":pr,"margin-top":pr,"margin-block":pr,"margin-block-end":pr,"margin-block-start":pr,"margin-inline":pr,"margin-inline-end":pr,"margin-inline-start":pr,padding:pr,"padding-bottom":pr,"padding-left":pr,"padding-right":pr,"padding-top":pr,"padding-block":pr,"padding-block-end":pr,"padding-block-start":pr,"padding-inline":pr,"padding-inline-end":pr,"padding-inline-start":pr,"mask-position-x":pr,"mask-position-y":pr,"mask-size":pr,height:pr,width:pr,"min-height":pr,"max-height":pr,"min-width":pr,"max-width":pr,bottom:pr,left:pr,top:pr,right:pr,inset:pr,"inset-block":pr,"inset-block-end":pr,"inset-block-start":pr,"inset-inline":pr,"inset-inline-end":pr,"inset-inline-start":pr,"box-shadow":pr,"text-shadow":pr,"column-gap":pr,"column-rule":pr,"column-rule-width":pr,"column-width":pr,"font-size":pr,"font-size-delta":pr,"letter-spacing":pr,"text-decoration-thickness":pr,"text-indent":pr,"text-stroke":pr,"text-stroke-width":pr,"word-spacing":pr,motion:pr,"motion-offset":pr,outline:pr,"outline-offset":pr,"outline-width":pr,perspective:pr,"perspective-origin-x":ur,"perspective-origin-y":ur,"transform-origin":ur,"transform-origin-x":ur,"transform-origin-y":ur,"transform-origin-z":ur,"transition-delay":hr,"transition-duration":hr,"vertical-align":pr,"flex-basis":pr,"shape-margin":pr,size:pr,gap:pr,grid:pr,"grid-gap":pr,"row-gap":pr,"grid-row-gap":pr,"grid-column-gap":pr,"grid-template-rows":pr,"grid-template-columns":pr,"grid-auto-rows":pr,"grid-auto-columns":pr,"box-shadow-x":pr,"box-shadow-y":pr,"box-shadow-blur":pr,"box-shadow-spread":pr,"font-line-height":pr,"text-shadow-x":pr,"text-shadow-y":pr,"text-shadow-blur":pr});function gr(t,e,n){if(null==e)return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=gr(t,e[r],n);else if("object"==typeof e)if("fallbacks"===t)for(var i in e)e[i]=gr(i,e[i],n);else for(var o in e)e[o]=gr(t+"-"+o,e[o],n);else if("number"==typeof e&&!1===isNaN(e)){var s=n[t]||mr[t];return!s||0===e&&s===pr?e.toString():"function"==typeof s?s(e).toString():""+e+s}return e}const br=function(t){void 0===t&&(t={});var e=fr(t);return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=gr(r,t[r],e);return t},onChangeValue:function(t,n){return gr(n,t,e)}}};var yr={"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},Ar={position:!0,size:!0},wr={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}},vr={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 xr(t,e,n,r){return null==n[e]?t:0===t.length?[]:Array.isArray(t[0])?xr(t[0],e,n,r):"object"==typeof t[0]?function(t,e,n){return t.map((function(t){return _r(t,e,n,!1,!0)}))}(t,e,r):[t]}function _r(t,e,n,r,i){if(!wr[e]&&!vr[e])return[];var o=[];if(vr[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=kr((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,vr[e],r)),Object.keys(t).length)for(var s in wr[e])t[s]?Array.isArray(t[s])?o.push(null===Ar[s]?t[s]:t[s].join(" ")):o.push(t[s]):null!=wr[e][s]&&o.push(wr[e][s]);return!o.length||i?o:[o]}function kr(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]=kr(t.fallbacks[o],e,!0);continue}t[r]=xr(i,r,yr,e),t[r].length||delete t[r]}}else if("object"==typeof i){if("fallbacks"===r){t.fallbacks=kr(t.fallbacks,e,!0);continue}t[r]=_r(i,r,e,n),t[r].length||delete t[r]}else""===t[r]&&delete t[r]}return t}const Cr=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]=kr(t[n],e);return t}return kr(t,e)}}};var Er=s(20653);function Sr(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 Br(t){return function(t){if(Array.isArray(t))return Sr(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 Sr(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)?Sr(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 Or="",Mr="",Ir="",$r="",Tr=Er.Z&&"ontouchstart"in document.documentElement;if(Er.Z){var Lr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Nr=document.createElement("p").style;for(var Rr in Lr)if(Rr+"Transform"in Nr){Or=Rr,Mr=Lr[Rr];break}"Webkit"===Or&&"msHyphens"in Nr&&(Or="ms",Mr=Lr.ms,$r="edge"),"Webkit"===Or&&"-apple-trailing-word"in Nr&&(Ir="apple")}var Pr={js:Or,css:Mr,vendor:Ir,browser:$r,isTouch:Tr};var Dr={noPrefill:["appearance"],supportedProperty:function(t){return"appearance"===t&&("ms"===Pr.js?"-webkit-"+t:Pr.css+t)}},zr={noPrefill:["color-adjust"],supportedProperty:function(t){return"color-adjust"===t&&("Webkit"===Pr.js?Pr.css+"print-"+t:t)}},Hr=/[-\s]+(.)?/g;function jr(t,e){return e?e.toUpperCase():""}function Ur(t){return t.replace(Hr,jr)}function Zr(t){return Ur("-"+t)}var Fr,Vr={noPrefill:["mask"],supportedProperty:function(t,e){if(!/^mask/.test(t))return!1;if("Webkit"===Pr.js){var n="mask-image";if(Ur(n)in e)return t;if(Pr.js+Zr(n)in e)return Pr.css+t}return t}},Yr={noPrefill:["text-orientation"],supportedProperty:function(t){return"text-orientation"===t&&("apple"!==Pr.vendor||Pr.isTouch?t:Pr.css+t)}},Wr={noPrefill:["transform"],supportedProperty:function(t,e,n){return"transform"===t&&(n.transform?t:Pr.css+t)}},qr={noPrefill:["transition"],supportedProperty:function(t,e,n){return"transition"===t&&(n.transition?t:Pr.css+t)}},Xr={noPrefill:["writing-mode"],supportedProperty:function(t){return"writing-mode"===t&&("Webkit"===Pr.js||"ms"===Pr.js&&"edge"!==Pr.browser?Pr.css+t:t)}},Gr={noPrefill:["user-select"],supportedProperty:function(t){return"user-select"===t&&("Moz"===Pr.js||"ms"===Pr.js||"apple"===Pr.vendor?Pr.css+t:t)}},Kr={supportedProperty:function(t,e){return!!/^break-/.test(t)&&("Webkit"===Pr.js?"WebkitColumn"+Zr(t)in e&&Pr.css+"column-"+t:"Moz"===Pr.js&&("page"+Zr(t)in e&&"page-"+t))}},Jr={supportedProperty:function(t,e){if(!/^(border|margin|padding)-inline/.test(t))return!1;if("Moz"===Pr.js)return t;var n=t.replace("-inline","");return Pr.js+Zr(n)in e&&Pr.css+n}},Qr={supportedProperty:function(t,e){return Ur(t)in e&&t}},ti={supportedProperty:function(t,e){var n=Zr(t);return"-"===t[0]||"-"===t[0]&&"-"===t[1]?t:Pr.js+n in e?Pr.css+t:"Webkit"!==Pr.js&&"Webkit"+n in e&&"-webkit-"+t}},ei={supportedProperty:function(t){return"scroll-snap"===t.substring(0,11)&&("ms"===Pr.js?""+Pr.css+t:t)}},ni={supportedProperty:function(t){return"overscroll-behavior"===t&&("ms"===Pr.js?Pr.css+"scroll-chaining":t)}},ri={"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"},ii={supportedProperty:function(t,e){var n=ri[t];return!!n&&(Pr.js+Zr(n)in e&&Pr.css+n)}},oi={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"},si=Object.keys(oi),ai=function(t){return Pr.css+t},li={supportedProperty:function(t,e,n){var r=n.multiple;if(si.indexOf(t)>-1){var i=oi[t];if(!Array.isArray(i))return Pr.js+Zr(i)in e&&Pr.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Pr.js+Zr(i[0])in e))return!1;return i.map(ai)}return!1}},ci=[Dr,zr,Vr,Yr,Wr,qr,Xr,Gr,Kr,Jr,Qr,ti,ei,ni,ii,li],di=ci.filter((function(t){return t.supportedProperty})).map((function(t){return t.supportedProperty})),pi=ci.filter((function(t){return t.noPrefill})).reduce((function(t,e){return t.push.apply(t,Br(e.noPrefill)),t}),[]),hi={};if(Er.Z){Fr=document.createElement("p");var ui=window.getComputedStyle(document.documentElement,"");for(var fi in ui)isNaN(fi)||(hi[ui[fi]]=ui[fi]);pi.forEach((function(t){return delete hi[t]}))}function mi(t,e){if(void 0===e&&(e={}),!Fr)return t;if(null!=hi[t])return hi[t];"transition"!==t&&"transform"!==t||(e[t]=t in Fr.style);for(var n=0;n<di.length&&(hi[t]=di[n](t,Fr.style,e),!hi[t]);n++);try{Fr.style[t]=""}catch(t){return!1}return hi[t]}var gi,bi={},yi={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ai=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function wi(t,e,n){if("var"===e)return"var";if("all"===e)return"all";if("all"===n)return", all";var r=e?mi(e):", "+mi(n);return r||(e||n)}function vi(t,e){var n=e;if(!gi||"content"===t)return e;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=t+n;if(null!=bi[r])return bi[r];try{gi.style[t]=n}catch(t){return bi[r]=!1,!1}if(yi[t])n=n.replace(Ai,wi);else if(""===gi.style[t]&&("-ms-flex"===(n=Pr.css+n)&&(gi.style[t]="-ms-flexbox"),gi.style[t]=n,""===gi.style[t]))return bi[r]=!1,!1;return gi.style[t]="",bi[r]=n,bi[r]}Er.Z&&(gi=document.createElement("p"));const xi=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=mi(n);o&&o!==n&&(i=!0);var s=!1,a=vi(o,(0,Rn.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"===Pr.js?t:"@"+Pr.css+"keyframes"+t.substr(10)}(e.at)}},onProcessStyle:function(e,n){return"style"!==n.type?e:t(e)},onChangeValue:function(t,e){return vi(e,(0,Rn.EK)(t))||t}}};const _i=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 ki=function(t){return void 0===t&&(t={}),{plugins:[Hn(),Zn(t.observable),Yn(),Qn(),rr(),ar(),cr(),(0,dr.Z)(),br(t.defaultUnit),Cr(),xi(),_i()]}},Ci=()=>({element:null});var Ei=s(72499),Si={};Si.setAttributes=u(),Si.insert=p().bind(null,"head"),Si.domAPI=c(),Si.insertStyleElement=m();o()(Ei.Z,Si);Ei.Z&&Ei.Z.locals&&Ei.Z.locals;class Bi{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 Oi=s(68905);class Mi{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,Oi.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 Ii=s(53415),$i={};$i.setAttributes=u(),$i.insert=p().bind(null,"head"),$i.domAPI=c(),$i.insertStyleElement=m();o()(Ii.Z,$i);const Ti=Ii.Z&&Ii.Z.locals?Ii.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 Ni=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},Ri="touchmove",Pi="mousemove",Di="mouseup",zi="mousedown",Hi="touchend",ji="touchstart",Ui="left",Zi="right",Fi="top",Vi="bottom",Yi="__sortable_draggable-guide-line";var Wi=s(43214);const qi="15PX";function Xi(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 Gi{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=Yi,this.guideLine.classList.add(Ti.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(Pi,this.onMouseMove),document.removeEventListener(Ri,this.onMouseMove,{passive:!1}),document.removeEventListener(Di,this.dragEnd),document.removeEventListener(Hi,this.dragEnd),this.dragEl&&this.dragEl.classList.remove(Ti.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===Pi&&!Li(t))return this.guideLine.remove(),void document.removeEventListener(Pi,this.onMouseMove);const e=t.type===Ri?t.touches[0].clientY:t.clientY,n=t.type===Ri?t.touches[0].clientX:t.clientX,r=t.type===Ri?t.touches[0].pageY:t.pageY;e<this.moveY?this.mouseDirection=Fi:e>this.moveY&&(this.mouseDirection=Vi),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===Fi?(t.scroll(0,t.scrollTop-1),setTimeout((()=>{i()}),100)):this.mirror&&window.innerHeight-this.moveY<100&&this.mouseDirection===Vi&&(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&&"section"!==this.dragEl.dataset.dropOnly){const e=t.querySelector("[data-type='block']:last-child");if(e){const t=e.getBoundingClientRect();return this.direction=Vi,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=qi,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=qi),"none"!==i&&-1!==i.indexOf("bottom")&&-1!==o.indexOf("bottom")&&c.bottom>this.moveY&&c.bottom-c.height/2<this.moveY&&(this.direction=Vi,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=Fi,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=Ui,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=qi,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=Zi,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=qi,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=Fi,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(Ti.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(Di,this.onMouseUp)}dragStart(t){let e;if(this.mouseUp=!1,this.isValid=!0,t.type===zi&&!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===ji?t.touches[0].clientY:t.clientY,c=t.type===ji?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=Xi(e,"[draggable-element]"),n){this.dragEl=n;break}}}return n?(setTimeout((()=>{this.mouseUp||this.mirror||(this.mirror=Ni(n.querySelector("[element-draggable-mirror]")||n.closest("[element-draggable-mirror]")||n.closest("[draggable-element]")||n,c,l),this.dragEl.classList.add(Ti.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(Pi,this.onMouseMove),document.addEventListener(Di,this.dragEnd),!0):(this.guideLine.remove(),!1)};document.addEventListener(Di,this.onMouseUp),this.pressDelay=setTimeout((()=>{if(!1===this.mouseUp){if(!n())return}}),this.options.delay)}bindDrag(){Wi.Z.connect(Wi.F.MOUSE_DOWN,this.dragStart)}destroy(){Wi.Z.disconnect(Wi.F.MOUSE_DOWN,this.dragStart),this.mirror&&this.mirror.remove(),this.guideLine&&this.guideLine.remove()}}var Ki=s(49721),Ji=s(7910),Qi=s(65329),to=s(70538);const eo=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 Ki.Z({componentId:e.id,parentId:l.id,index:d,body:t}));const i=c.children.findIndex((t=>t===s.id)),a=new Ji.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 Ji.Z({componentId:s.id,oldParentId:c.id,newParentId:l.id,oldIndex:t,newIndex:d});o.push(e),ge.Z.moveComponent(e)}(0,Qi.X)(c).forEach((t=>o.push(t)));{const t=a.closest("block");if(t){(0,to.c)(t).forEach((t=>o.push(t)))}}{const t=c.closest("block");if(t){(0,to.c)(t).forEach((t=>o.push(t)))}}return o};var no=s(8441);const ro=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 no.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 Ki.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 Ji.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 no.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 Ki.Z({componentId:l.id,parentId:e.id,index:n,body:t}));const p=new Ji.Z({componentId:o.id,newParentId:l.id,oldParentId:s.id,oldIndex:a,newIndex:0});ge.Z.moveComponent(p),i.push(p)}(0,Qi.X)(s).forEach((t=>i.push(t)));{const t=s.closest("block");if(t){(0,to.c)(t).forEach((t=>i.push(t)))}}return i};var io=s(67237);const oo=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 Ki.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 Ji.Z(b)),ge.Z.moveComponent(b);if((0,Qi.X)(s).forEach((t=>i.push(t))),a){(0,to.c)(a).forEach((t=>i.push(t)))}const y=l.closest("block");if(y){const t=(0,to.c)(y);(0,io.Z)({steps:t,force:!0,update:!0})}return i};var so=s(59320);s(35210);function ao(t,e){t&&(Array.isArray(t.children)?t.children.forEach((t=>{ao(t,e)})):t&&"object"==typeof t&&e(t))}function lo(t,e){Array.isArray(t)?t.forEach((t=>{lo(t,e)})):Array.isArray(t.content)?(e(t),t.content.forEach((t=>{lo(t,e)}))):e(t)}const co=t=>{const e=fe.h.get("components").find((t=>"root"===t.type)),n=e?.props?.style?.fontFamily,r=e?.props?.primaryColor,i=e?.props?.primaryContrastColor;return po(t,{fontFamily:n,primaryColor:r,primaryContrastColor:i}),t};function po(t,e){const{fontFamily:n,primaryColor:r,primaryContrastColor:i}=e;if(t?.props?.style&&(n&&(t.props.style.fontFamily=n),"image"===t.type&&("logo"===t.props.alt?.toLowerCase()||"logo"===t.props.as))){const e=fe.h.get("config","user","logo");"string"==typeof e&&(t.props.src=e,t.props.style.height="auto")}ao(t,(t=>{r&&"button"===t?.type&&(t.props.style.background="var(--cdtr-primary)"),i&&"button"===t?.type&&(t.props.style.color="var(--cdtr-primary-contrast)");const e=fe.h.get("config","user","logo");if("string"==typeof e&&"image"===t?.type&&(t.props.src=e,t.props.style.height="auto"),"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&&lo(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=>{po(t,e)}))}const ho=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=co(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 Ki.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 no.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 Ki.Z({componentId:l.id,parentId:n.id,index:o,body:t}))}return i},uo=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=co(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 Ki.Z({componentId:c.id,parentId:s.id,index:a,body:l})),s&&"block"===s.type){(0,to.c)(s).forEach((t=>i.push(t)))}return i};var fo=s(51679);const mo=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=co(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,fo.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 Ki.Z({componentId:d.id,parentId:a.id,index:l,body:c})),i},go=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id);const s=o.parent().children.findIndex((t=>t===o.id));let a;if(e.components){const t=new Map;e.components.forEach((e=>{const n=e.id||e._id;if(n){const r=`${e.type}-${Math.random().toString(36).substr(2,9)}`;t.set(n,r)}})),e.components.forEach((e=>{const n=e.id||e._id;if(n&&t.has(n)){const r=t.get(n);e.id=r,e._id=r}Array.isArray(e.children)&&(e.children=e.children.map((e=>t.get(e)||e))),Array.isArray(e.elements)&&(e.elements=e.elements.map((e=>t.get(e)||e)))})),a=(0,Tn.u)(e.components||[]),e.body=a}"section"===e.body.type&&(o=o.closest("root"));let l=s;"bottom"===r&&l++,e.body=co(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=ge.Z.createComponent({body:c,parentId:o.id,index:l});if(i.push(new Ki.Z({componentId:d.id,parentId:o.id,index:l,body:c})),"block"===!e.body.type){const t={type:"col",props:{lg:0,style:{}}},n=ge.Z.createComponent({body:t,parentId:d.id,index:0});i.push(new Ki.Z({componentId:n.id,parentId:d.id,index:0,body:t}));const r=ge.Z.createComponent({body:e.body,parentId:n.id,index:0});i.push(new Ki.Z({componentId:r.id,parentId:n.id,index:0}))}return i};class bo{constructor(){this.delayer=new so.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 Gi({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=uo({template:s,to:t,direction:r});e&&(0,io.Z)({steps:e,force:!0,update:!0})}else{const t=ho({template:s,to:n,direction:r});t&&((0,io.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=ho({template:s,to:n,direction:r,update:!0});t&&(0,io.Z)({steps:t,force:!0,update:!0})}}}else if("block"===o){const t=mo({template:s,to:n,direction:r});t&&(0,io.Z)({steps:t,force:!0,update:!0})}else if("section"===o){const t=go({template:s,to:n,direction:r});t&&(0,io.Z)({steps:t,force:!0,update:!0})}}else{const t=uo({template:s,to:n,direction:r});t&&(0,io.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=ro({item:e,to:fe.h.get("components",n).element,direction:r,update:!0});(0,io.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=eo({item:e,to:t,direction:r});i&&(0,io.Z)({steps:i,force:!0,update:!0})}else{const t=ro({item:e,to:n,direction:r,update:!0});t&&((0,io.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=oo({item:e,to:n,direction:r});console.log("before sync new block",t),t&&(0,io.Z)({steps:t,force:!0,update:!0})}}else{const t=eo({item:e,to:n,direction:r});t&&(0,io.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 Bi("[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 Mi(".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 yo 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.errors.social&&this.errors.social.forEach((t=>{t.compose&&t.compose.element&&this.indicators.push({id:`social-${t.compose.id}-${t.itemIndex}`,element:t.compose.element,type:"social",error:t,message:this.getSocialErrorMessage()})})),this.errors.socialLinks&&this.errors.socialLinks.forEach((t=>{t.compose&&t.compose.element&&this.indicators.push({id:`social-link-${t.compose.id}-${t.itemIndex}`,element:t.compose.element,type:"socialLink",error:t,message:this.getSocialLinkErrorMessage()})})),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}getSocialErrorMessage(){const t={en:{title:"Social Icon Missing Link",content:"This social icon 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}getSocialLinkErrorMessage(){const t={en:{title:"Invalid Social Link",content:"This social icon has an invalid or broken link. 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){let e;e=(t.type="social")?t.error.compose:t.error,ge.Z.clean().selectComponent(e),setTimeout((()=>{"button"===t.type?ge.Z.dispatch("editor-tabs",{name:"link"}):"image"===t.type?ge.Z.dispatch("editor-tabs",{name:"image"}):("link"===t.type||"social"===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`
|
|
2773
|
+
</style>`}}(0,t.Z)(Ln,"properties",{width:{type:Number,reflect:!0}}),customElements.define("cdtr-container-style",Ln);var Nn=s(97278);var Rn=s(84817),Pn=Date.now(),Dn="fnValues"+Pn,zn="fnStyle"+ ++Pn;const Hn=function(){return{onCreateRule:function(t,e,n){if("function"!=typeof e)return null;var r=(0,Rn.JH)(t,{},n);return r[zn]=e,r},onProcessStyle:function(t,e){if(Dn in e||zn 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[Dn]=n,t},onUpdate:function(t,e,n,r){var i=e,o=i[zn];o&&(i.style=o(t)||{});var s=i[Dn];if(s)for(var a in s)i.prop(a,s[a](t),r)}}};var jn=s(7288),Un=function(t){return t&&t[jn.Z]&&t===t[jn.Z]()};const Zn=function(t){return{onCreateRule:function(e,n,r){if(!Un(n))return null;var i=n,o=(0,Rn.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(!Un(i))return"continue";delete r[e],i.subscribe({next:function(r){n.prop(e,r,t)}})};for(var o in r)i(o)}}}};var Fn=/;\n/,Vn=function(t){"string"==typeof t.style&&(t.style=function(t){for(var e={},n=t.split(Fn),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 Yn=function(){return{onProcessRule:Vn}};var Wn="@global",qn="@global ",Xn=function(){function t(t,e,n){for(var r in this.type="global",this.at=Wn,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new Rn.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}(),Gn=function(){function t(t,e,n){this.type="global",this.at=Wn,this.isProcessed=!1,this.key=t,this.options=n;var r=t.substr(qn.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}(),Kn=/\s*,\s*/g;function Jn(t,e){for(var n=t.split(Kn),r="",i=0;i<n.length;i++)r+=e+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}const Qn=function(){return{onCreateRule:function(t,e,n){if(!t)return null;if(t===Wn)return new Xn(t,e,n);if("@"===t[0]&&t.substr(0,qn.length)===qn)return new Gn(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[Wn]:null;if(i){for(var o in i)e.addRule(o,i[o],(0,A.Z)({},n,{selector:Jn(o,t.selector)}));delete r[Wn]}}(t,e),function(t,e){var n=t.options,r=t.style;for(var i in r)if("@"===i[0]&&i.substr(0,Wn.length)===Wn){var o=Jn(i.substr(Wn.length),t.selector);e.addRule(o,r[i],(0,A.Z)({},n,{selector:o})),delete r[i]}}(t,e))}}};var tr=function(t){return t&&"object"==typeof t&&!Array.isArray(t)},er="extendCurrValue"+Date.now();function nr(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];nr("string"==typeof o?(0,A.Z)({},t,{extend:o}):t.extend[i],e,n,r)}else for(var s in t.extend)"extend"!==s?tr(t.extend[s])?(s in r||(r[s]={}),nr(t.extend[s],e,n,r[s])):r[s]=t.extend[s]:nr(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&&nr(l.rules.raw[t.extend],e,n,r)}}(t,e,n,r),function(t,e,n,r){for(var i in t)"extend"!==i&&(tr(r[i])&&tr(t[i])?nr(t[i],e,n,r[i]):tr(t[i])?r[i]=nr(t[i],e,n):r[i]=t[i])}(t,e,n,r),r}const rr=function(){return{onProcessStyle:function(t,e,n){return"extend"in t?nr(t,e,n):t},onChangeValue:function(t,e,n){if("extend"!==e)return t;if(null==t||!1===t){for(var r in n[er])n.prop(r,null);return n[er]=null,null}if("object"==typeof t){for(var i in t)n.prop(i,t[i]);n[er]=t}return null}}};var ir=/\s*,\s*/g,or=/&/g,sr=/\$([\w-]+)/g;const ar=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(ir),r=t.split(ir),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(or,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(sr,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 lr(t,e){if(!e)return!0;if(Array.isArray(e)){for(var n=0;n<e.length;n++){if(!lr(t,e[n]))return!1}return!0}if(e.indexOf(" ")>-1)return lr(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 cr=function(){return{onProcessStyle:function(t,e){return"composes"in t?(lr(e,t.composes),delete t.composes,t):t}}};var dr=s(78529),pr=Rn.HZ&&CSS?CSS.px:"px",hr=Rn.HZ&&CSS?CSS.ms:"ms",ur=Rn.HZ&&CSS?CSS.percent:"%";function fr(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 mr=fr({"animation-delay":hr,"animation-duration":hr,"background-position":pr,"background-position-x":pr,"background-position-y":pr,"background-size":pr,border:pr,"border-bottom":pr,"border-bottom-left-radius":pr,"border-bottom-right-radius":pr,"border-bottom-width":pr,"border-left":pr,"border-left-width":pr,"border-radius":pr,"border-right":pr,"border-right-width":pr,"border-top":pr,"border-top-left-radius":pr,"border-top-right-radius":pr,"border-top-width":pr,"border-width":pr,"border-block":pr,"border-block-end":pr,"border-block-end-width":pr,"border-block-start":pr,"border-block-start-width":pr,"border-block-width":pr,"border-inline":pr,"border-inline-end":pr,"border-inline-end-width":pr,"border-inline-start":pr,"border-inline-start-width":pr,"border-inline-width":pr,"border-start-start-radius":pr,"border-start-end-radius":pr,"border-end-start-radius":pr,"border-end-end-radius":pr,margin:pr,"margin-bottom":pr,"margin-left":pr,"margin-right":pr,"margin-top":pr,"margin-block":pr,"margin-block-end":pr,"margin-block-start":pr,"margin-inline":pr,"margin-inline-end":pr,"margin-inline-start":pr,padding:pr,"padding-bottom":pr,"padding-left":pr,"padding-right":pr,"padding-top":pr,"padding-block":pr,"padding-block-end":pr,"padding-block-start":pr,"padding-inline":pr,"padding-inline-end":pr,"padding-inline-start":pr,"mask-position-x":pr,"mask-position-y":pr,"mask-size":pr,height:pr,width:pr,"min-height":pr,"max-height":pr,"min-width":pr,"max-width":pr,bottom:pr,left:pr,top:pr,right:pr,inset:pr,"inset-block":pr,"inset-block-end":pr,"inset-block-start":pr,"inset-inline":pr,"inset-inline-end":pr,"inset-inline-start":pr,"box-shadow":pr,"text-shadow":pr,"column-gap":pr,"column-rule":pr,"column-rule-width":pr,"column-width":pr,"font-size":pr,"font-size-delta":pr,"letter-spacing":pr,"text-decoration-thickness":pr,"text-indent":pr,"text-stroke":pr,"text-stroke-width":pr,"word-spacing":pr,motion:pr,"motion-offset":pr,outline:pr,"outline-offset":pr,"outline-width":pr,perspective:pr,"perspective-origin-x":ur,"perspective-origin-y":ur,"transform-origin":ur,"transform-origin-x":ur,"transform-origin-y":ur,"transform-origin-z":ur,"transition-delay":hr,"transition-duration":hr,"vertical-align":pr,"flex-basis":pr,"shape-margin":pr,size:pr,gap:pr,grid:pr,"grid-gap":pr,"row-gap":pr,"grid-row-gap":pr,"grid-column-gap":pr,"grid-template-rows":pr,"grid-template-columns":pr,"grid-auto-rows":pr,"grid-auto-columns":pr,"box-shadow-x":pr,"box-shadow-y":pr,"box-shadow-blur":pr,"box-shadow-spread":pr,"font-line-height":pr,"text-shadow-x":pr,"text-shadow-y":pr,"text-shadow-blur":pr});function gr(t,e,n){if(null==e)return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=gr(t,e[r],n);else if("object"==typeof e)if("fallbacks"===t)for(var i in e)e[i]=gr(i,e[i],n);else for(var o in e)e[o]=gr(t+"-"+o,e[o],n);else if("number"==typeof e&&!1===isNaN(e)){var s=n[t]||mr[t];return!s||0===e&&s===pr?e.toString():"function"==typeof s?s(e).toString():""+e+s}return e}const br=function(t){void 0===t&&(t={});var e=fr(t);return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=gr(r,t[r],e);return t},onChangeValue:function(t,n){return gr(n,t,e)}}};var yr={"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},Ar={position:!0,size:!0},wr={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}},vr={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 xr(t,e,n,r){return null==n[e]?t:0===t.length?[]:Array.isArray(t[0])?xr(t[0],e,n,r):"object"==typeof t[0]?function(t,e,n){return t.map((function(t){return _r(t,e,n,!1,!0)}))}(t,e,r):[t]}function _r(t,e,n,r,i){if(!wr[e]&&!vr[e])return[];var o=[];if(vr[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=kr((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,vr[e],r)),Object.keys(t).length)for(var s in wr[e])t[s]?Array.isArray(t[s])?o.push(null===Ar[s]?t[s]:t[s].join(" ")):o.push(t[s]):null!=wr[e][s]&&o.push(wr[e][s]);return!o.length||i?o:[o]}function kr(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]=kr(t.fallbacks[o],e,!0);continue}t[r]=xr(i,r,yr,e),t[r].length||delete t[r]}}else if("object"==typeof i){if("fallbacks"===r){t.fallbacks=kr(t.fallbacks,e,!0);continue}t[r]=_r(i,r,e,n),t[r].length||delete t[r]}else""===t[r]&&delete t[r]}return t}const Cr=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]=kr(t[n],e);return t}return kr(t,e)}}};var Er=s(20653);function Sr(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 Br(t){return function(t){if(Array.isArray(t))return Sr(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 Sr(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)?Sr(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 Or="",Mr="",Ir="",$r="",Tr=Er.Z&&"ontouchstart"in document.documentElement;if(Er.Z){var Lr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Nr=document.createElement("p").style;for(var Rr in Lr)if(Rr+"Transform"in Nr){Or=Rr,Mr=Lr[Rr];break}"Webkit"===Or&&"msHyphens"in Nr&&(Or="ms",Mr=Lr.ms,$r="edge"),"Webkit"===Or&&"-apple-trailing-word"in Nr&&(Ir="apple")}var Pr={js:Or,css:Mr,vendor:Ir,browser:$r,isTouch:Tr};var Dr={noPrefill:["appearance"],supportedProperty:function(t){return"appearance"===t&&("ms"===Pr.js?"-webkit-"+t:Pr.css+t)}},zr={noPrefill:["color-adjust"],supportedProperty:function(t){return"color-adjust"===t&&("Webkit"===Pr.js?Pr.css+"print-"+t:t)}},Hr=/[-\s]+(.)?/g;function jr(t,e){return e?e.toUpperCase():""}function Ur(t){return t.replace(Hr,jr)}function Zr(t){return Ur("-"+t)}var Fr,Vr={noPrefill:["mask"],supportedProperty:function(t,e){if(!/^mask/.test(t))return!1;if("Webkit"===Pr.js){var n="mask-image";if(Ur(n)in e)return t;if(Pr.js+Zr(n)in e)return Pr.css+t}return t}},Yr={noPrefill:["text-orientation"],supportedProperty:function(t){return"text-orientation"===t&&("apple"!==Pr.vendor||Pr.isTouch?t:Pr.css+t)}},Wr={noPrefill:["transform"],supportedProperty:function(t,e,n){return"transform"===t&&(n.transform?t:Pr.css+t)}},qr={noPrefill:["transition"],supportedProperty:function(t,e,n){return"transition"===t&&(n.transition?t:Pr.css+t)}},Xr={noPrefill:["writing-mode"],supportedProperty:function(t){return"writing-mode"===t&&("Webkit"===Pr.js||"ms"===Pr.js&&"edge"!==Pr.browser?Pr.css+t:t)}},Gr={noPrefill:["user-select"],supportedProperty:function(t){return"user-select"===t&&("Moz"===Pr.js||"ms"===Pr.js||"apple"===Pr.vendor?Pr.css+t:t)}},Kr={supportedProperty:function(t,e){return!!/^break-/.test(t)&&("Webkit"===Pr.js?"WebkitColumn"+Zr(t)in e&&Pr.css+"column-"+t:"Moz"===Pr.js&&("page"+Zr(t)in e&&"page-"+t))}},Jr={supportedProperty:function(t,e){if(!/^(border|margin|padding)-inline/.test(t))return!1;if("Moz"===Pr.js)return t;var n=t.replace("-inline","");return Pr.js+Zr(n)in e&&Pr.css+n}},Qr={supportedProperty:function(t,e){return Ur(t)in e&&t}},ti={supportedProperty:function(t,e){var n=Zr(t);return"-"===t[0]||"-"===t[0]&&"-"===t[1]?t:Pr.js+n in e?Pr.css+t:"Webkit"!==Pr.js&&"Webkit"+n in e&&"-webkit-"+t}},ei={supportedProperty:function(t){return"scroll-snap"===t.substring(0,11)&&("ms"===Pr.js?""+Pr.css+t:t)}},ni={supportedProperty:function(t){return"overscroll-behavior"===t&&("ms"===Pr.js?Pr.css+"scroll-chaining":t)}},ri={"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"},ii={supportedProperty:function(t,e){var n=ri[t];return!!n&&(Pr.js+Zr(n)in e&&Pr.css+n)}},oi={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"},si=Object.keys(oi),ai=function(t){return Pr.css+t},li={supportedProperty:function(t,e,n){var r=n.multiple;if(si.indexOf(t)>-1){var i=oi[t];if(!Array.isArray(i))return Pr.js+Zr(i)in e&&Pr.css+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(Pr.js+Zr(i[0])in e))return!1;return i.map(ai)}return!1}},ci=[Dr,zr,Vr,Yr,Wr,qr,Xr,Gr,Kr,Jr,Qr,ti,ei,ni,ii,li],di=ci.filter((function(t){return t.supportedProperty})).map((function(t){return t.supportedProperty})),pi=ci.filter((function(t){return t.noPrefill})).reduce((function(t,e){return t.push.apply(t,Br(e.noPrefill)),t}),[]),hi={};if(Er.Z){Fr=document.createElement("p");var ui=window.getComputedStyle(document.documentElement,"");for(var fi in ui)isNaN(fi)||(hi[ui[fi]]=ui[fi]);pi.forEach((function(t){return delete hi[t]}))}function mi(t,e){if(void 0===e&&(e={}),!Fr)return t;if(null!=hi[t])return hi[t];"transition"!==t&&"transform"!==t||(e[t]=t in Fr.style);for(var n=0;n<di.length&&(hi[t]=di[n](t,Fr.style,e),!hi[t]);n++);try{Fr.style[t]=""}catch(t){return!1}return hi[t]}var gi,bi={},yi={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ai=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function wi(t,e,n){if("var"===e)return"var";if("all"===e)return"all";if("all"===n)return", all";var r=e?mi(e):", "+mi(n);return r||(e||n)}function vi(t,e){var n=e;if(!gi||"content"===t)return e;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=t+n;if(null!=bi[r])return bi[r];try{gi.style[t]=n}catch(t){return bi[r]=!1,!1}if(yi[t])n=n.replace(Ai,wi);else if(""===gi.style[t]&&("-ms-flex"===(n=Pr.css+n)&&(gi.style[t]="-ms-flexbox"),gi.style[t]=n,""===gi.style[t]))return bi[r]=!1,!1;return gi.style[t]="",bi[r]=n,bi[r]}Er.Z&&(gi=document.createElement("p"));const xi=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=mi(n);o&&o!==n&&(i=!0);var s=!1,a=vi(o,(0,Rn.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"===Pr.js?t:"@"+Pr.css+"keyframes"+t.substr(10)}(e.at)}},onProcessStyle:function(e,n){return"style"!==n.type?e:t(e)},onChangeValue:function(t,e){return vi(e,(0,Rn.EK)(t))||t}}};const _i=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 ki=function(t){return void 0===t&&(t={}),{plugins:[Hn(),Zn(t.observable),Yn(),Qn(),rr(),ar(),cr(),(0,dr.Z)(),br(t.defaultUnit),Cr(),xi(),_i()]}},Ci=()=>({element:null});var Ei=s(72499),Si={};Si.setAttributes=u(),Si.insert=p().bind(null,"head"),Si.domAPI=c(),Si.insertStyleElement=m();o()(Ei.Z,Si);Ei.Z&&Ei.Z.locals&&Ei.Z.locals;class Bi{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 Oi=s(68905);class Mi{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,Oi.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 Ii=s(53415),$i={};$i.setAttributes=u(),$i.insert=p().bind(null,"head"),$i.domAPI=c(),$i.insertStyleElement=m();o()(Ii.Z,$i);const Ti=Ii.Z&&Ii.Z.locals?Ii.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 Ni=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},Ri="touchmove",Pi="mousemove",Di="mouseup",zi="mousedown",Hi="touchend",ji="touchstart",Ui="left",Zi="right",Fi="top",Vi="bottom",Yi="__sortable_draggable-guide-line";var Wi=s(43214);const qi="15PX";function Xi(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 Gi{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=Yi,this.guideLine.classList.add(Ti.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(Pi,this.onMouseMove),document.removeEventListener(Ri,this.onMouseMove,{passive:!1}),document.removeEventListener(Di,this.dragEnd),document.removeEventListener(Hi,this.dragEnd),this.dragEl&&this.dragEl.classList.remove(Ti.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===Pi&&!Li(t))return this.guideLine.remove(),void document.removeEventListener(Pi,this.onMouseMove);const e=t.type===Ri?t.touches[0].clientY:t.clientY,n=t.type===Ri?t.touches[0].clientX:t.clientX,r=t.type===Ri?t.touches[0].pageY:t.pageY;e<this.moveY?this.mouseDirection=Fi:e>this.moveY&&(this.mouseDirection=Vi),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===Fi?(t.scroll(0,t.scrollTop-1),setTimeout((()=>{i()}),100)):this.mirror&&window.innerHeight-this.moveY<100&&this.mouseDirection===Vi&&(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&&"section"!==this.dragEl.dataset.dropOnly){const e=t.querySelector("[data-type='block']:last-child");if(e){const t=e.getBoundingClientRect();return this.direction=Vi,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=qi,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=qi),"none"!==i&&-1!==i.indexOf("bottom")&&-1!==o.indexOf("bottom")&&c.bottom>this.moveY&&c.bottom-c.height/2<this.moveY&&(this.direction=Vi,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=Fi,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=Ui,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=qi,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=Zi,this.guideLine.style.height=c.height+"px",this.guideLine.style.width=qi,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=Fi,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(Ti.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(Di,this.onMouseUp)}dragStart(t){let e;if(this.mouseUp=!1,this.isValid=!0,t.type===zi&&!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===ji?t.touches[0].clientY:t.clientY,c=t.type===ji?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=Xi(e,"[draggable-element]"),n){this.dragEl=n;break}}}return n?(setTimeout((()=>{this.mouseUp||this.mirror||(this.mirror=Ni(n.querySelector("[element-draggable-mirror]")||n.closest("[element-draggable-mirror]")||n.closest("[draggable-element]")||n,c,l),this.dragEl.classList.add(Ti.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(Pi,this.onMouseMove),document.addEventListener(Di,this.dragEnd),!0):(this.guideLine.remove(),!1)};document.addEventListener(Di,this.onMouseUp),this.pressDelay=setTimeout((()=>{if(!1===this.mouseUp){if(!n())return}}),this.options.delay)}bindDrag(){Wi.Z.connect(Wi.F.MOUSE_DOWN,this.dragStart)}destroy(){Wi.Z.disconnect(Wi.F.MOUSE_DOWN,this.dragStart),this.mirror&&this.mirror.remove(),this.guideLine&&this.guideLine.remove()}}var Ki=s(49721),Ji=s(7910),Qi=s(65329),to=s(70538);const eo=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 Ki.Z({componentId:e.id,parentId:l.id,index:d,body:t}));const i=c.children.findIndex((t=>t===s.id)),a=new Ji.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 Ji.Z({componentId:s.id,oldParentId:c.id,newParentId:l.id,oldIndex:t,newIndex:d});o.push(e),ge.Z.moveComponent(e)}(0,Qi.X)(c).forEach((t=>o.push(t)));{const t=a.closest("block");if(t){(0,to.c)(t).forEach((t=>o.push(t)))}}{const t=c.closest("block");if(t){(0,to.c)(t).forEach((t=>o.push(t)))}}return o};var no=s(8441);const ro=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 no.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 Ki.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 Ji.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 no.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 Ki.Z({componentId:l.id,parentId:e.id,index:n,body:t}));const p=new Ji.Z({componentId:o.id,newParentId:l.id,oldParentId:s.id,oldIndex:a,newIndex:0});ge.Z.moveComponent(p),i.push(p)}(0,Qi.X)(s).forEach((t=>i.push(t)));{const t=s.closest("block");if(t){(0,to.c)(t).forEach((t=>i.push(t)))}}return i};var io=s(67237);const oo=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 Ki.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 Ji.Z(b)),ge.Z.moveComponent(b);if((0,Qi.X)(s).forEach((t=>i.push(t))),a){(0,to.c)(a).forEach((t=>i.push(t)))}const y=l.closest("block");if(y){const t=(0,to.c)(y);(0,io.Z)({steps:t,force:!0,update:!0})}return i};var so=s(59320);s(35210);function ao(t,e){t&&(Array.isArray(t.children)?t.children.forEach((t=>{ao(t,e)})):t&&"object"==typeof t&&e(t))}function lo(t,e){Array.isArray(t)?t.forEach((t=>{lo(t,e)})):Array.isArray(t.content)?(e(t),t.content.forEach((t=>{lo(t,e)}))):e(t)}const co=t=>{const e=fe.h.get("components").find((t=>"root"===t.type)),n=e?.props?.style?.fontFamily,r=e?.props?.primaryColor,i=e?.props?.primaryContrastColor;return po(t,{fontFamily:n,primaryColor:r,primaryContrastColor:i}),t};function po(t,e){const{fontFamily:n,primaryColor:r,primaryContrastColor:i}=e;if(t?.props?.style&&(n&&(t.props.style.fontFamily=n),"image"===t.type&&("logo"===t.props.alt?.toLowerCase()||"logo"===t.props.as))){const e=fe.h.get("config","user","logo");"string"==typeof e&&(t.props.src=e,t.props.style.height="auto")}ao(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)"),"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&&lo(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=>{po(t,e)}))}const ho=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=co(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 Ki.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 no.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 Ki.Z({componentId:l.id,parentId:n.id,index:o,body:t}))}return i},uo=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=co(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 Ki.Z({componentId:c.id,parentId:s.id,index:a,body:l})),s&&"block"===s.type){(0,to.c)(s).forEach((t=>i.push(t)))}return i};var fo=s(51679);const mo=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=co(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,fo.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 Ki.Z({componentId:d.id,parentId:a.id,index:l,body:c})),i},go=t=>{let{template:e,to:n,direction:r}=t;const i=[];let o=fe.h.get("components",n.dataset.id);const s=o.parent().children.findIndex((t=>t===o.id));let a;if(e.components){const t=new Map;e.components.forEach((e=>{const n=e.id||e._id;if(n){const r=`${e.type}-${Math.random().toString(36).substr(2,9)}`;t.set(n,r)}})),e.components.forEach((e=>{const n=e.id||e._id;if(n&&t.has(n)){const r=t.get(n);e.id=r,e._id=r}Array.isArray(e.children)&&(e.children=e.children.map((e=>t.get(e)||e))),Array.isArray(e.elements)&&(e.elements=e.elements.map((e=>t.get(e)||e)))})),a=(0,Tn.u)(e.components||[]),e.body=a}"section"===e.body.type&&(o=o.closest("root"));let l=s;"bottom"===r&&l++,e.body=co(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=ge.Z.createComponent({body:c,parentId:o.id,index:l});if(i.push(new Ki.Z({componentId:d.id,parentId:o.id,index:l,body:c})),"block"===!e.body.type){const t={type:"col",props:{lg:0,style:{}}},n=ge.Z.createComponent({body:t,parentId:d.id,index:0});i.push(new Ki.Z({componentId:n.id,parentId:d.id,index:0,body:t}));const r=ge.Z.createComponent({body:e.body,parentId:n.id,index:0});i.push(new Ki.Z({componentId:r.id,parentId:n.id,index:0}))}return i};class bo{constructor(){this.delayer=new so.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 Gi({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=uo({template:s,to:t,direction:r});e&&(0,io.Z)({steps:e,force:!0,update:!0})}else{const t=ho({template:s,to:n,direction:r});t&&((0,io.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=ho({template:s,to:n,direction:r,update:!0});t&&(0,io.Z)({steps:t,force:!0,update:!0})}}}else if("block"===o){const t=mo({template:s,to:n,direction:r});t&&(0,io.Z)({steps:t,force:!0,update:!0})}else if("section"===o){const t=go({template:s,to:n,direction:r});t&&(0,io.Z)({steps:t,force:!0,update:!0})}}else{const t=uo({template:s,to:n,direction:r});t&&(0,io.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=ro({item:e,to:fe.h.get("components",n).element,direction:r,update:!0});(0,io.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=eo({item:e,to:t,direction:r});i&&(0,io.Z)({steps:i,force:!0,update:!0})}else{const t=ro({item:e,to:n,direction:r,update:!0});t&&((0,io.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=oo({item:e,to:n,direction:r});console.log("before sync new block",t),t&&(0,io.Z)({steps:t,force:!0,update:!0})}}else{const t=eo({item:e,to:n,direction:r});t&&(0,io.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 Bi("[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 Mi(".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 yo 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.errors.social&&this.errors.social.forEach((t=>{t.compose&&t.compose.element&&this.indicators.push({id:`social-${t.compose.id}-${t.itemIndex}`,element:t.compose.element,type:"social",error:t,message:this.getSocialErrorMessage()})})),this.errors.socialLinks&&this.errors.socialLinks.forEach((t=>{t.compose&&t.compose.element&&this.indicators.push({id:`social-link-${t.compose.id}-${t.itemIndex}`,element:t.compose.element,type:"socialLink",error:t,message:this.getSocialLinkErrorMessage()})})),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}getSocialErrorMessage(){const t={en:{title:"Social Icon Missing Link",content:"This social icon 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}getSocialLinkErrorMessage(){const t={en:{title:"Invalid Social Link",content:"This social icon has an invalid or broken link. 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){let e;e=(t.type="social")?t.error.compose:t.error,ge.Z.clean().selectComponent(e),setTimeout((()=>{"button"===t.type?ge.Z.dispatch("editor-tabs",{name:"link"}):"image"===t.type?ge.Z.dispatch("editor-tabs",{name:"image"}):("link"===t.type||"social"===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`
|
|
2774
2774
|
${this.indicators.map((t=>me.dy`
|
|
2775
2775
|
<div
|
|
2776
2776
|
class="error-indicator"
|
|
Binary file
|
package/dist/service-worker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let e,d={};const r=(r,c)=>(r=new URL(r+".js",c).href,d[r]||new Promise((d=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=d,document.head.appendChild(e)}else e=r,importScripts(r),d()})).then((()=>{let e=d[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(c,i)=>{const a=e||("document"in self?document.currentScript.src:"")||location.href;if(d[a])return;let b={};const o=e=>r(e,a),n={module:{uri:a},exports:b,require:o};d[a]=Promise.all(c.map((e=>n[e]||o(e)))).then((e=>(i(...e),b)))}}define(["./workbox-e24b9bdc"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"1030.creaditor.bundle.js",revision:"54792a145b52866fc870357d272a6c70"},{url:"1030.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"1101.creaditor.bundle.js",revision:"dfbbf74b898c347db605bf4b756142e1"},{url:"116.creaditor.bundle.js",revision:"b88d3b2612bad175c30072ec7f8120db"},{url:"1199.creaditor.bundle.js",revision:"a1f65b99346f29764f4a1d0a51d176d5"},{url:"1290.creaditor.bundle.js",revision:"6c9ec16069c301e26bf2aebe2d95b714"},{url:"132.creaditor.bundle.js",revision:"e18ce6088a02e8564a6c5d7f38eecae8"},{url:"1366.creaditor.bundle.js",revision:"e14ff87a79d38ef9b02a9e3d81401da6"},{url:"1366.creaditor.bundle.js.LICENSE.txt",revision:"b3c39454dd7f7b16f15ece15e423c1ac"},{url:"1381.creaditor.bundle.js",revision:"d896fdf6b3ef7cad14fdc8995795aea8"},{url:"1410.creaditor.bundle.js",revision:"d23e281e208f7b9a892aa8344e8ac68c"},{url:"1410.creaditor.bundle.js.LICENSE.txt",revision:"b3c39454dd7f7b16f15ece15e423c1ac"},{url:"1449.creaditor.bundle.js",revision:"c4971a6506c567533ceb39cad14aebad"},{url:"1449.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"1582.creaditor.bundle.js",revision:"c3d32a358020d698a768aa2b3dd7e771"},{url:"1650.creaditor.bundle.js",revision:"5212dc7e87d2b849052987114535b308"},{url:"168.creaditor.bundle.js",revision:"f650d146d030eab362b779768e6c646f"},{url:"168.creaditor.bundle.js.LICENSE.txt",revision:"c8a750975849f68cc5261bff5b7597b4"},{url:"1731.creaditor.bundle.js",revision:"54830555f3619f0a96d1b6912d66bd4c"},{url:"1790.creaditor.bundle.js",revision:"a6916b149f4b434443c5dd324a58fe9b"},{url:"185.creaditor.bundle.js",revision:"4b6d1fdf5ce74b0757b31ddbada48cca"},{url:"1867.creaditor.bundle.js",revision:"084498399b48665a624792c024c8a171"},{url:"19.creaditor.bundle.js",revision:"eb1adc28d8e4e80de2eb12288891aeef"},{url:"201.creaditor.bundle.js",revision:"dc399c511ecd9636fcb6bbf93430fe24"},{url:"2022.creaditor.bundle.js",revision:"9c2c947a913f630a9ef4508af8e796f8"},{url:"2050.creaditor.bundle.js",revision:"9f6ca2c0da8ca3e7c5bab05ae9e86885"},{url:"2087.creaditor.bundle.js",revision:"6513d3d4191a9217f126f15e09d577c9"},{url:"2111.creaditor.bundle.js",revision:"8d9114f95ee4adea3c7919655eeb863c"},{url:"2118.creaditor.bundle.js",revision:"d77906b69e7cc05e882c819103a01016"},{url:"2182.creaditor.bundle.js",revision:"8f85e631642657747bb2d71d54e472a2"},{url:"2340.creaditor.bundle.js",revision:"8d03721faff4ef7bd260a69a5c570f31"},{url:"2340.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"2357.creaditor.bundle.js",revision:"5b39088f16207cd7db15f7f74c766e64"},{url:"2365.creaditor.bundle.js",revision:"c8d9b3221887e4382551bae2e201810c"},{url:"2397.creaditor.bundle.js",revision:"e08d7de538a07addc1a591a4c3eddd3d"},{url:"2397.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"2416.creaditor.bundle.js",revision:"d0b888f7ecd19eb1d500617d5c621457"},{url:"2455.creaditor.bundle.js",revision:"4272236775668b4acc0cd308f1b96fb2"},{url:"2455.creaditor.bundle.js.LICENSE.txt",revision:"1299004e20f2ce6cb16d4370129c3cec"},{url:"2475.creaditor.bundle.js",revision:"753a2d97bc98d3de3343182d8a377483"},{url:"2475.creaditor.bundle.js.LICENSE.txt",revision:"6f156c7d527c536bb4f8a593352ef266"},{url:"2543.creaditor.bundle.js",revision:"0aba0853983ed39ed3ff12e4103c9a6a"},{url:"2605.creaditor.bundle.js",revision:"f6edb18055ee1d310d19ecfe7cedf4f2"},{url:"2605.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"2609.creaditor.bundle.js",revision:"e339c390fd304c687d5df7b305c42ed2"},{url:"2609.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"2721.creaditor.bundle.js",revision:"80da865e5a220deeb50ba946faf92e15"},{url:"2757.creaditor.bundle.js",revision:"cd5fa695815c184726395eeabf1d2a09"},{url:"296.creaditor.bundle.js",revision:"29a00bed9d7944beec5f2a35bdc72b81"},{url:"296.creaditor.bundle.js.LICENSE.txt",revision:"84fe8bdc5c4b68e5077b1eaf59e7cd4f"},{url:"2977.creaditor.bundle.js",revision:"0c05c37016889bb616ba7209e1b04e27"},{url:"3020.creaditor.bundle.js",revision:"cf7a014c4f9a080993a177698baa2063"},{url:"308.creaditor.bundle.js",revision:"7354b7b9cd04025feccc4e8ff2125466"},{url:"315.creaditor.bundle.js",revision:"f0da8d3d83748297fea1109cabd96589"},{url:"315.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"335.creaditor.bundle.js",revision:"d496c3cc4634541302fd476779310bd2"},{url:"3381.creaditor.bundle.js",revision:"908e24787acdb9ecd1e67048f8f05796"},{url:"3453.creaditor.bundle.js",revision:"714059aac74889fbb195cca744a18cce"},{url:"3585.creaditor.bundle.js",revision:"fda19ea89112e6bbd48e617dfb1a268f"},{url:"3614.creaditor.bundle.js",revision:"40f768cd94686ea24c98999cd2a9217e"},{url:"3622.creaditor.bundle.js",revision:"1f60c7bd183da348cdd5ae25419b0d0b"},{url:"3691.creaditor.bundle.js",revision:"0f3cb07f1e2147056cfdf1e3b974a560"},{url:"3691.creaditor.bundle.js.LICENSE.txt",revision:"e6c501582fc5069d08decdc04d4ea11f"},{url:"3727.creaditor.bundle.js",revision:"72eb81faf1d9cf41f3d3d26aefa7cbd5"},{url:"3732.creaditor.bundle.js",revision:"514f3dc1baf1954c6d596d64366b3c88"},{url:"3755.creaditor.bundle.js",revision:"caa22e253c7e7eb4bd23bb6706e7e9ae"},{url:"3778.creaditor.bundle.js",revision:"fd37f216e7bc1d1e08ae7b5dd6547695"},{url:"3794.creaditor.bundle.js",revision:"7be9c3d381521a433671cfc210ad07bd"},{url:"3831.creaditor.bundle.js",revision:"e0c5acd1a335cf97389a02298e978c6f"},{url:"3847.creaditor.bundle.js",revision:"79fb234e591ec141819457829246bf11"},{url:"4.creaditor.bundle.js",revision:"b3806c24e2991ad3580a0a43197f2145"},{url:"4050.creaditor.bundle.js",revision:"b2ad83fe7ac38dd490a05809aa11bdc9"},{url:"4050.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"4128.creaditor.bundle.js",revision:"84e3b91b3f6574e98df2d9a904d065b4"},{url:"4128.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"4159.creaditor.bundle.js",revision:"017b844f4d3c77337ef1ae80a3c7dcc8"},{url:"4159.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"42.creaditor.bundle.js",revision:"8eaa2a7970d1da14f1f0b1ceeae4872e"},{url:"4212.creaditor.bundle.js",revision:"a7aca990b6d85d7ef2db7b063af7ea27"},{url:"4455.creaditor.bundle.js",revision:"50045ef54a22f290d0a7e39e6fdc5531"},{url:"4473.creaditor.bundle.js",revision:"b264b767c4dbde1d6c3dfc21e76b1c1a"},{url:"4569.creaditor.bundle.js",revision:"b6053cbfee67146bc464f3ba1b96ad20"},{url:"4648.creaditor.bundle.js",revision:"530e79e20401348bc5fc52a5ee0e1808"},{url:"4661.creaditor.bundle.js",revision:"43e2fb4611a7a224a874947bffd80986"},{url:"4807.creaditor.bundle.js",revision:"bd84ef38c1013868485f146b10d0c489"},{url:"4900.creaditor.bundle.js",revision:"6f0eda7be31b44969a86f68538f49bca"},{url:"494.creaditor.bundle.js",revision:"2f46da031878620434dfcead1b40c771"},{url:"5034.creaditor.bundle.js",revision:"b6ed74d8fb492f8e7b20e43171fadd6c"},{url:"5090.creaditor.bundle.js",revision:"e1553054d4146695ff3b2633e1860da0"},{url:"5204.creaditor.bundle.js",revision:"b8e34de6cee25833fa4e1262880b3f7d"},{url:"5246.creaditor.bundle.js",revision:"cb9bbfd64378d6e1c1527457fcaf7a86"},{url:"5246.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"5320.creaditor.bundle.js",revision:"60412e43abd553a3aa31fbb2bacc79f0"},{url:"5320.creaditor.bundle.js.LICENSE.txt",revision:"84fe8bdc5c4b68e5077b1eaf59e7cd4f"},{url:"5349.creaditor.bundle.js",revision:"bd28672b5860e0c49d93e84666d773a3"},{url:"5349.creaditor.bundle.js.LICENSE.txt",revision:"07b9ce85d65b059fc522aa29a4819489"},{url:"5478.creaditor.bundle.js",revision:"efbff05ab0ee086083d26ea1a74e2c49"},{url:"5581.creaditor.bundle.js",revision:"a3416fd1cf31c0ed3dcf5a042bdaaa37"},{url:"5848.creaditor.bundle.js",revision:"f3886b649145fdb6849608d571175613"},{url:"5848.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"5910.creaditor.bundle.js",revision:"459d5f8f77844b6d330c829e25cc5e42"},{url:"5936.creaditor.bundle.js",revision:"4e1e7324a6687789cd3441528c14f46a"},{url:"5978.creaditor.bundle.js",revision:"76bdd1ed800f9cb34d1a597a0e4af57f"},{url:"5985.creaditor.bundle.js",revision:"c1c1386130e6a51ff4fe34c0a002a533"},{url:"6046.creaditor.bundle.js",revision:"5f503fb1a25b6b89dce07d699ca79d16"},{url:"6052.creaditor.bundle.js",revision:"10af8827b34aab6d081616865e14980b"},{url:"6069.creaditor.bundle.js",revision:"8b44ba85a7dc082012597a7103caf253"},{url:"6080.creaditor.bundle.js",revision:"7adce69532b0f2a8f0031d6d365762ea"},{url:"6178.creaditor.bundle.js",revision:"106d7ae0755e51a1b1abb361001a5f86"},{url:"6196.creaditor.bundle.js",revision:"389ca32d0897fccdd3ba72f9ca405ca6"},{url:"6220.creaditor.bundle.js",revision:"632905808278e0a2aa15011b29899d2e"},{url:"6220.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"6234.creaditor.bundle.js",revision:"a920366edec0c7ae8b77f433bfa52400"},{url:"6236.creaditor.bundle.js",revision:"0205252551c673a931adab733cf3c32d"},{url:"6308.creaditor.bundle.js",revision:"8c45da3fc6449877d54d04ee80e79934"},{url:"6354.creaditor.bundle.js",revision:"ea39c595875408181550db4e0d08a7c9"},{url:"6354.creaditor.bundle.js.LICENSE.txt",revision:"7e87622d8f6027cbd50a87a2a0160d32"},{url:"6430.creaditor.bundle.js",revision:"36cb508f1003a3243209ba026ce83584"},{url:"6479.creaditor.bundle.js",revision:"35806e07ade560941e53b333f03c9259"},{url:"6491.creaditor.bundle.js",revision:"f2725c84a3372c098a48c378ba0bbf91"},{url:"6524.creaditor.bundle.js",revision:"df3a0c9b3c6444fb73d68fccfda07f5c"},{url:"6577.creaditor.bundle.js",revision:"cad958590652bca6dafa1479e9ad0571"},{url:"6588.creaditor.bundle.js",revision:"a7d4b8e401a111f22bab75b1021ba448"},{url:"6593.creaditor.bundle.js",revision:"dc2272eca5b545c053a5b38ac8012aa5"},{url:"6652.creaditor.bundle.js",revision:"e756de46e3c265e4f65f1875e7db50b6"},{url:"6700.creaditor.bundle.js",revision:"e080ade6e34abac09076fcdd4e14c5b6"},{url:"6724.creaditor.bundle.js",revision:"50af97d5b9329a5303024a27ee99261a"},{url:"6724.creaditor.bundle.js.LICENSE.txt",revision:"e6c501582fc5069d08decdc04d4ea11f"},{url:"6737.creaditor.bundle.js",revision:"3e66cdc0fb50a7c46c32795c4ea7ea22"},{url:"6807.creaditor.bundle.js",revision:"c729cfbae7690bedbab2217aaa6cfb4d"},{url:"6826.creaditor.bundle.js",revision:"8f382aec0ad2c498545f769173e7d335"},{url:"6848.creaditor.bundle.js",revision:"b12f2376348abcef3cb4d0be87a7ae69"},{url:"6883.creaditor.bundle.js",revision:"ff0a12e6911e4351e2c8e19596ca5136"},{url:"6892.creaditor.bundle.js",revision:"8e8aef585fcad89b28f9fa0a18c39839"},{url:"6892.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"6961.creaditor.bundle.js",revision:"1408df6f810bef1df7e35851cafd8872"},{url:"6961.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"6964.creaditor.bundle.js",revision:"55f1b3618ae205f5435eae06f7d1357c"},{url:"6964.creaditor.bundle.js.LICENSE.txt",revision:"07b9ce85d65b059fc522aa29a4819489"},{url:"6993.creaditor.bundle.js",revision:"a2e277d142750319665b5544c42ccd37"},{url:"7035.creaditor.bundle.js",revision:"d8fe1a1355efc77490ef25d064075f3c"},{url:"709.creaditor.bundle.js",revision:"0e0c2601acbfd65ca9f6842bddd00e36"},{url:"7149.creaditor.bundle.js",revision:"f08f4b7d8e8e35e951d9c03fa18d794d"},{url:"7302.creaditor.bundle.js",revision:"09947b263ddc96c5c73d813f7ecfbd7c"},{url:"7302.creaditor.bundle.js.LICENSE.txt",revision:"e6c501582fc5069d08decdc04d4ea11f"},{url:"7490.creaditor.bundle.js",revision:"5b7cd6e9507864586ac0b4b4f5dd8a15"},{url:"7511.creaditor.bundle.js",revision:"d3d4b89bd81b214beeaf8767cd1c5f3f"},{url:"7511.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"7576.creaditor.bundle.js",revision:"3f278aedb58792552cdfbbccbad9a74c"},{url:"7597.creaditor.bundle.js",revision:"ef3b591c2eeb2696f6d22e3f2b1e8fb4"},{url:"7637.creaditor.bundle.js",revision:"79c764bd232fe7063b7f095c34a538e9"},{url:"7804.creaditor.bundle.js",revision:"2a705db726a052d89469edcb3a2d6802"},{url:"7837.creaditor.bundle.js",revision:"e62dccd457b6109017dbbfa4ae92c482"},{url:"7946.creaditor.bundle.js",revision:"5f77f285317b199fce1f27339ba352b6"},{url:"7988.creaditor.bundle.js",revision:"467a6f9c67122fe5f0c6ef6737b133c1"},{url:"7988.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"8073.creaditor.bundle.js",revision:"defcc603647c0e585f17791027e8dd2f"},{url:"8251.creaditor.bundle.js",revision:"ece708eb16a0b1691128f3ac18fdc8be"},{url:"8287.creaditor.bundle.js",revision:"1bbbde1d3218bd9968aa115984396ae1"},{url:"8290.creaditor.bundle.js",revision:"69b416e2f0005d86e84e15c71f17699b"},{url:"8312.creaditor.bundle.js",revision:"6d87cb31694084366831c5c43617953f"},{url:"8333.creaditor.bundle.js",revision:"9f9628131d3d6f03140dd9d35d920ef1"},{url:"8522.creaditor.bundle.js",revision:"c0581423035fd901c25120d1a2b5c3b7"},{url:"8550.creaditor.bundle.js",revision:"6465daa5d1f3d6937190ca9eba47b139"},{url:"8550.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"8642.creaditor.bundle.js",revision:"472a317daff6a8b14ce1ee76a9d880af"},{url:"865.creaditor.bundle.js",revision:"177fdbe008a3091e506023784ec0111d"},{url:"8718.creaditor.bundle.js",revision:"c289979f20977bca58ac409e4493a5ed"},{url:"8724.creaditor.bundle.js",revision:"60d7fee2023d3d9866aa21b5ef3f237b"},{url:"8885.creaditor.bundle.js",revision:"9dde7e5cb98c084fc87debed57810172"},{url:"9000.creaditor.bundle.js",revision:"7f76a5f0531cb6b8108e35253fd2ca29"},{url:"9001.creaditor.bundle.js",revision:"8def7852f7caa8ac2f80c112e8633752"},{url:"901.creaditor.bundle.js",revision:"8342c4e80d404a36fe37b7e4666c4a54"},{url:"9050.creaditor.bundle.js",revision:"76586387b720c175b4ddbfc29ffa92a3"},{url:"9113.creaditor.bundle.js",revision:"d025513e4cbafbcda7a6415ff3fc46ed"},{url:"9136.creaditor.bundle.js",revision:"9dceefe62440ab0ba6fe9306fe8e8950"},{url:"9201.creaditor.bundle.js",revision:"33641b93545606c25cd30f03638fda8d"},{url:"9201.creaditor.bundle.js.LICENSE.txt",revision:"c8a750975849f68cc5261bff5b7597b4"},{url:"9203.creaditor.bundle.js",revision:"f9c0c5c8ec2afbaad29c0b1f0b4fdb22"},{url:"9203.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"9265.creaditor.bundle.js",revision:"a12ad31794e374aa88ade70946ce74eb"},{url:"9394.creaditor.bundle.js",revision:"3c042457e8c572a85d5ec097a785e0dc"},{url:"9476.creaditor.bundle.js",revision:"e2f9bfeb2defc197257e194b960ce776"},{url:"9476.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"9530.creaditor.bundle.js",revision:"7384587a690e5876c2a9ad134b108c2f"},{url:"9628.creaditor.bundle.js",revision:"5b3f2c542c531daeb6aede2cb067f182"},{url:"9628.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"966.creaditor.bundle.js",revision:"66a0cfe2851742f9203663279c579993"},{url:"9766.creaditor.bundle.js",revision:"01bc24f692ed11fddeef702ea7e7601d"},{url:"9800.creaditor.bundle.js",revision:"62911ea3cfaaa5c18dbcf4a91f34ccac"},{url:"9838.creaditor.bundle.js",revision:"ffeb655d6145213112a740f63aef4016"},{url:"9838.creaditor.bundle.js.LICENSE.txt",revision:"07b9ce85d65b059fc522aa29a4819489"},{url:"9928.creaditor.bundle.js",revision:"3fa7c63297ed8eb26e53eb97191dd525"},{url:"creaditor.bundle.js",revision:"b5731297b064de97123c5a4444621f6f"},{url:"creaditor.bundle.js.LICENSE.txt",revision:"ff2947ebba9bc5ce84782cdb6be447dc"},{url:"index.html",revision:"633997b83db73351ce2c09a40bc5dd2f"}],{})}));
|
|
1
|
+
if(!self.define){let e,d={};const r=(r,c)=>(r=new URL(r+".js",c).href,d[r]||new Promise((d=>{if("document"in self){const e=document.createElement("script");e.src=r,e.onload=d,document.head.appendChild(e)}else e=r,importScripts(r),d()})).then((()=>{let e=d[r];if(!e)throw new Error(`Module ${r} didn’t register its module`);return e})));self.define=(c,i)=>{const a=e||("document"in self?document.currentScript.src:"")||location.href;if(d[a])return;let b={};const o=e=>r(e,a),n={module:{uri:a},exports:b,require:o};d[a]=Promise.all(c.map((e=>n[e]||o(e)))).then((e=>(i(...e),b)))}}define(["./workbox-e24b9bdc"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"1030.creaditor.bundle.js",revision:"54792a145b52866fc870357d272a6c70"},{url:"1030.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"1101.creaditor.bundle.js",revision:"dfbbf74b898c347db605bf4b756142e1"},{url:"116.creaditor.bundle.js",revision:"b88d3b2612bad175c30072ec7f8120db"},{url:"1199.creaditor.bundle.js",revision:"a1f65b99346f29764f4a1d0a51d176d5"},{url:"1290.creaditor.bundle.js",revision:"6c9ec16069c301e26bf2aebe2d95b714"},{url:"132.creaditor.bundle.js",revision:"e18ce6088a02e8564a6c5d7f38eecae8"},{url:"1366.creaditor.bundle.js",revision:"e14ff87a79d38ef9b02a9e3d81401da6"},{url:"1366.creaditor.bundle.js.LICENSE.txt",revision:"b3c39454dd7f7b16f15ece15e423c1ac"},{url:"1381.creaditor.bundle.js",revision:"d896fdf6b3ef7cad14fdc8995795aea8"},{url:"1410.creaditor.bundle.js",revision:"d23e281e208f7b9a892aa8344e8ac68c"},{url:"1410.creaditor.bundle.js.LICENSE.txt",revision:"b3c39454dd7f7b16f15ece15e423c1ac"},{url:"1449.creaditor.bundle.js",revision:"c4971a6506c567533ceb39cad14aebad"},{url:"1449.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"1582.creaditor.bundle.js",revision:"c3d32a358020d698a768aa2b3dd7e771"},{url:"1650.creaditor.bundle.js",revision:"5212dc7e87d2b849052987114535b308"},{url:"168.creaditor.bundle.js",revision:"f650d146d030eab362b779768e6c646f"},{url:"168.creaditor.bundle.js.LICENSE.txt",revision:"c8a750975849f68cc5261bff5b7597b4"},{url:"1731.creaditor.bundle.js",revision:"54830555f3619f0a96d1b6912d66bd4c"},{url:"1790.creaditor.bundle.js",revision:"a6916b149f4b434443c5dd324a58fe9b"},{url:"185.creaditor.bundle.js",revision:"4b6d1fdf5ce74b0757b31ddbada48cca"},{url:"1867.creaditor.bundle.js",revision:"084498399b48665a624792c024c8a171"},{url:"19.creaditor.bundle.js",revision:"eb1adc28d8e4e80de2eb12288891aeef"},{url:"201.creaditor.bundle.js",revision:"dc399c511ecd9636fcb6bbf93430fe24"},{url:"2022.creaditor.bundle.js",revision:"9c2c947a913f630a9ef4508af8e796f8"},{url:"2050.creaditor.bundle.js",revision:"9f6ca2c0da8ca3e7c5bab05ae9e86885"},{url:"2087.creaditor.bundle.js",revision:"6513d3d4191a9217f126f15e09d577c9"},{url:"2111.creaditor.bundle.js",revision:"8d9114f95ee4adea3c7919655eeb863c"},{url:"2118.creaditor.bundle.js",revision:"d77906b69e7cc05e882c819103a01016"},{url:"2182.creaditor.bundle.js",revision:"8f85e631642657747bb2d71d54e472a2"},{url:"2340.creaditor.bundle.js",revision:"8d03721faff4ef7bd260a69a5c570f31"},{url:"2340.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"2357.creaditor.bundle.js",revision:"5b39088f16207cd7db15f7f74c766e64"},{url:"2365.creaditor.bundle.js",revision:"c8d9b3221887e4382551bae2e201810c"},{url:"2397.creaditor.bundle.js",revision:"e08d7de538a07addc1a591a4c3eddd3d"},{url:"2397.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"2416.creaditor.bundle.js",revision:"d0b888f7ecd19eb1d500617d5c621457"},{url:"2455.creaditor.bundle.js",revision:"4272236775668b4acc0cd308f1b96fb2"},{url:"2455.creaditor.bundle.js.LICENSE.txt",revision:"1299004e20f2ce6cb16d4370129c3cec"},{url:"2475.creaditor.bundle.js",revision:"753a2d97bc98d3de3343182d8a377483"},{url:"2475.creaditor.bundle.js.LICENSE.txt",revision:"6f156c7d527c536bb4f8a593352ef266"},{url:"2543.creaditor.bundle.js",revision:"0aba0853983ed39ed3ff12e4103c9a6a"},{url:"2605.creaditor.bundle.js",revision:"f6edb18055ee1d310d19ecfe7cedf4f2"},{url:"2605.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"2609.creaditor.bundle.js",revision:"e339c390fd304c687d5df7b305c42ed2"},{url:"2609.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"2721.creaditor.bundle.js",revision:"80da865e5a220deeb50ba946faf92e15"},{url:"2757.creaditor.bundle.js",revision:"cd5fa695815c184726395eeabf1d2a09"},{url:"296.creaditor.bundle.js",revision:"29a00bed9d7944beec5f2a35bdc72b81"},{url:"296.creaditor.bundle.js.LICENSE.txt",revision:"84fe8bdc5c4b68e5077b1eaf59e7cd4f"},{url:"2977.creaditor.bundle.js",revision:"0c05c37016889bb616ba7209e1b04e27"},{url:"3020.creaditor.bundle.js",revision:"cf7a014c4f9a080993a177698baa2063"},{url:"308.creaditor.bundle.js",revision:"7354b7b9cd04025feccc4e8ff2125466"},{url:"315.creaditor.bundle.js",revision:"f0da8d3d83748297fea1109cabd96589"},{url:"315.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"335.creaditor.bundle.js",revision:"d496c3cc4634541302fd476779310bd2"},{url:"3381.creaditor.bundle.js",revision:"908e24787acdb9ecd1e67048f8f05796"},{url:"3453.creaditor.bundle.js",revision:"714059aac74889fbb195cca744a18cce"},{url:"3585.creaditor.bundle.js",revision:"fda19ea89112e6bbd48e617dfb1a268f"},{url:"3614.creaditor.bundle.js",revision:"40f768cd94686ea24c98999cd2a9217e"},{url:"3622.creaditor.bundle.js",revision:"1f60c7bd183da348cdd5ae25419b0d0b"},{url:"3691.creaditor.bundle.js",revision:"0f3cb07f1e2147056cfdf1e3b974a560"},{url:"3691.creaditor.bundle.js.LICENSE.txt",revision:"e6c501582fc5069d08decdc04d4ea11f"},{url:"3727.creaditor.bundle.js",revision:"72eb81faf1d9cf41f3d3d26aefa7cbd5"},{url:"3732.creaditor.bundle.js",revision:"514f3dc1baf1954c6d596d64366b3c88"},{url:"3755.creaditor.bundle.js",revision:"caa22e253c7e7eb4bd23bb6706e7e9ae"},{url:"3778.creaditor.bundle.js",revision:"fd37f216e7bc1d1e08ae7b5dd6547695"},{url:"3794.creaditor.bundle.js",revision:"7be9c3d381521a433671cfc210ad07bd"},{url:"3831.creaditor.bundle.js",revision:"e0c5acd1a335cf97389a02298e978c6f"},{url:"3847.creaditor.bundle.js",revision:"79fb234e591ec141819457829246bf11"},{url:"4.creaditor.bundle.js",revision:"b3806c24e2991ad3580a0a43197f2145"},{url:"4050.creaditor.bundle.js",revision:"b2ad83fe7ac38dd490a05809aa11bdc9"},{url:"4050.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"4128.creaditor.bundle.js",revision:"84e3b91b3f6574e98df2d9a904d065b4"},{url:"4128.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"4159.creaditor.bundle.js",revision:"017b844f4d3c77337ef1ae80a3c7dcc8"},{url:"4159.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"42.creaditor.bundle.js",revision:"8eaa2a7970d1da14f1f0b1ceeae4872e"},{url:"4212.creaditor.bundle.js",revision:"a7aca990b6d85d7ef2db7b063af7ea27"},{url:"4455.creaditor.bundle.js",revision:"50045ef54a22f290d0a7e39e6fdc5531"},{url:"4473.creaditor.bundle.js",revision:"b264b767c4dbde1d6c3dfc21e76b1c1a"},{url:"4569.creaditor.bundle.js",revision:"b6053cbfee67146bc464f3ba1b96ad20"},{url:"4648.creaditor.bundle.js",revision:"530e79e20401348bc5fc52a5ee0e1808"},{url:"4661.creaditor.bundle.js",revision:"43e2fb4611a7a224a874947bffd80986"},{url:"4807.creaditor.bundle.js",revision:"bd84ef38c1013868485f146b10d0c489"},{url:"4900.creaditor.bundle.js",revision:"6f0eda7be31b44969a86f68538f49bca"},{url:"494.creaditor.bundle.js",revision:"2f46da031878620434dfcead1b40c771"},{url:"5034.creaditor.bundle.js",revision:"b6ed74d8fb492f8e7b20e43171fadd6c"},{url:"5090.creaditor.bundle.js",revision:"e1553054d4146695ff3b2633e1860da0"},{url:"5204.creaditor.bundle.js",revision:"b8e34de6cee25833fa4e1262880b3f7d"},{url:"5246.creaditor.bundle.js",revision:"cb9bbfd64378d6e1c1527457fcaf7a86"},{url:"5246.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"5320.creaditor.bundle.js",revision:"60412e43abd553a3aa31fbb2bacc79f0"},{url:"5320.creaditor.bundle.js.LICENSE.txt",revision:"84fe8bdc5c4b68e5077b1eaf59e7cd4f"},{url:"5349.creaditor.bundle.js",revision:"bd28672b5860e0c49d93e84666d773a3"},{url:"5349.creaditor.bundle.js.LICENSE.txt",revision:"07b9ce85d65b059fc522aa29a4819489"},{url:"5478.creaditor.bundle.js",revision:"efbff05ab0ee086083d26ea1a74e2c49"},{url:"5581.creaditor.bundle.js",revision:"a3416fd1cf31c0ed3dcf5a042bdaaa37"},{url:"5848.creaditor.bundle.js",revision:"f3886b649145fdb6849608d571175613"},{url:"5848.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"5910.creaditor.bundle.js",revision:"459d5f8f77844b6d330c829e25cc5e42"},{url:"5936.creaditor.bundle.js",revision:"4e1e7324a6687789cd3441528c14f46a"},{url:"5978.creaditor.bundle.js",revision:"76bdd1ed800f9cb34d1a597a0e4af57f"},{url:"5985.creaditor.bundle.js",revision:"c1c1386130e6a51ff4fe34c0a002a533"},{url:"6046.creaditor.bundle.js",revision:"5f503fb1a25b6b89dce07d699ca79d16"},{url:"6052.creaditor.bundle.js",revision:"10af8827b34aab6d081616865e14980b"},{url:"6069.creaditor.bundle.js",revision:"8b44ba85a7dc082012597a7103caf253"},{url:"6080.creaditor.bundle.js",revision:"7adce69532b0f2a8f0031d6d365762ea"},{url:"6178.creaditor.bundle.js",revision:"106d7ae0755e51a1b1abb361001a5f86"},{url:"6196.creaditor.bundle.js",revision:"389ca32d0897fccdd3ba72f9ca405ca6"},{url:"6220.creaditor.bundle.js",revision:"632905808278e0a2aa15011b29899d2e"},{url:"6220.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"6234.creaditor.bundle.js",revision:"a920366edec0c7ae8b77f433bfa52400"},{url:"6236.creaditor.bundle.js",revision:"0205252551c673a931adab733cf3c32d"},{url:"6308.creaditor.bundle.js",revision:"8c45da3fc6449877d54d04ee80e79934"},{url:"6354.creaditor.bundle.js",revision:"ea39c595875408181550db4e0d08a7c9"},{url:"6354.creaditor.bundle.js.LICENSE.txt",revision:"7e87622d8f6027cbd50a87a2a0160d32"},{url:"6430.creaditor.bundle.js",revision:"36cb508f1003a3243209ba026ce83584"},{url:"6479.creaditor.bundle.js",revision:"35806e07ade560941e53b333f03c9259"},{url:"6491.creaditor.bundle.js",revision:"f2725c84a3372c098a48c378ba0bbf91"},{url:"6524.creaditor.bundle.js",revision:"df3a0c9b3c6444fb73d68fccfda07f5c"},{url:"6577.creaditor.bundle.js",revision:"cad958590652bca6dafa1479e9ad0571"},{url:"6588.creaditor.bundle.js",revision:"a7d4b8e401a111f22bab75b1021ba448"},{url:"6593.creaditor.bundle.js",revision:"dc2272eca5b545c053a5b38ac8012aa5"},{url:"6652.creaditor.bundle.js",revision:"e756de46e3c265e4f65f1875e7db50b6"},{url:"6700.creaditor.bundle.js",revision:"e080ade6e34abac09076fcdd4e14c5b6"},{url:"6724.creaditor.bundle.js",revision:"50af97d5b9329a5303024a27ee99261a"},{url:"6724.creaditor.bundle.js.LICENSE.txt",revision:"e6c501582fc5069d08decdc04d4ea11f"},{url:"6737.creaditor.bundle.js",revision:"3e66cdc0fb50a7c46c32795c4ea7ea22"},{url:"6807.creaditor.bundle.js",revision:"c729cfbae7690bedbab2217aaa6cfb4d"},{url:"6826.creaditor.bundle.js",revision:"8f382aec0ad2c498545f769173e7d335"},{url:"6848.creaditor.bundle.js",revision:"b12f2376348abcef3cb4d0be87a7ae69"},{url:"6883.creaditor.bundle.js",revision:"ff0a12e6911e4351e2c8e19596ca5136"},{url:"6892.creaditor.bundle.js",revision:"8e8aef585fcad89b28f9fa0a18c39839"},{url:"6892.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"6961.creaditor.bundle.js",revision:"1408df6f810bef1df7e35851cafd8872"},{url:"6961.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"6964.creaditor.bundle.js",revision:"55f1b3618ae205f5435eae06f7d1357c"},{url:"6964.creaditor.bundle.js.LICENSE.txt",revision:"07b9ce85d65b059fc522aa29a4819489"},{url:"6993.creaditor.bundle.js",revision:"a2e277d142750319665b5544c42ccd37"},{url:"7035.creaditor.bundle.js",revision:"d8fe1a1355efc77490ef25d064075f3c"},{url:"709.creaditor.bundle.js",revision:"0e0c2601acbfd65ca9f6842bddd00e36"},{url:"7149.creaditor.bundle.js",revision:"f08f4b7d8e8e35e951d9c03fa18d794d"},{url:"7302.creaditor.bundle.js",revision:"09947b263ddc96c5c73d813f7ecfbd7c"},{url:"7302.creaditor.bundle.js.LICENSE.txt",revision:"e6c501582fc5069d08decdc04d4ea11f"},{url:"7490.creaditor.bundle.js",revision:"5b7cd6e9507864586ac0b4b4f5dd8a15"},{url:"7511.creaditor.bundle.js",revision:"d3d4b89bd81b214beeaf8767cd1c5f3f"},{url:"7511.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"7576.creaditor.bundle.js",revision:"3f278aedb58792552cdfbbccbad9a74c"},{url:"7597.creaditor.bundle.js",revision:"ef3b591c2eeb2696f6d22e3f2b1e8fb4"},{url:"7637.creaditor.bundle.js",revision:"79c764bd232fe7063b7f095c34a538e9"},{url:"7804.creaditor.bundle.js",revision:"2a705db726a052d89469edcb3a2d6802"},{url:"7837.creaditor.bundle.js",revision:"e62dccd457b6109017dbbfa4ae92c482"},{url:"7946.creaditor.bundle.js",revision:"5f77f285317b199fce1f27339ba352b6"},{url:"7988.creaditor.bundle.js",revision:"467a6f9c67122fe5f0c6ef6737b133c1"},{url:"7988.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"8073.creaditor.bundle.js",revision:"defcc603647c0e585f17791027e8dd2f"},{url:"8251.creaditor.bundle.js",revision:"ece708eb16a0b1691128f3ac18fdc8be"},{url:"8287.creaditor.bundle.js",revision:"1bbbde1d3218bd9968aa115984396ae1"},{url:"8290.creaditor.bundle.js",revision:"69b416e2f0005d86e84e15c71f17699b"},{url:"8312.creaditor.bundle.js",revision:"6d87cb31694084366831c5c43617953f"},{url:"8333.creaditor.bundle.js",revision:"9f9628131d3d6f03140dd9d35d920ef1"},{url:"8522.creaditor.bundle.js",revision:"c0581423035fd901c25120d1a2b5c3b7"},{url:"8550.creaditor.bundle.js",revision:"6465daa5d1f3d6937190ca9eba47b139"},{url:"8550.creaditor.bundle.js.LICENSE.txt",revision:"ddaef1761da9718367006e6a051e587c"},{url:"8642.creaditor.bundle.js",revision:"472a317daff6a8b14ce1ee76a9d880af"},{url:"865.creaditor.bundle.js",revision:"177fdbe008a3091e506023784ec0111d"},{url:"8718.creaditor.bundle.js",revision:"c289979f20977bca58ac409e4493a5ed"},{url:"8724.creaditor.bundle.js",revision:"60d7fee2023d3d9866aa21b5ef3f237b"},{url:"8885.creaditor.bundle.js",revision:"9dde7e5cb98c084fc87debed57810172"},{url:"9000.creaditor.bundle.js",revision:"7f76a5f0531cb6b8108e35253fd2ca29"},{url:"9001.creaditor.bundle.js",revision:"8def7852f7caa8ac2f80c112e8633752"},{url:"901.creaditor.bundle.js",revision:"df9ef41889502847f821111c5db60a1b"},{url:"9050.creaditor.bundle.js",revision:"76586387b720c175b4ddbfc29ffa92a3"},{url:"9113.creaditor.bundle.js",revision:"d025513e4cbafbcda7a6415ff3fc46ed"},{url:"9136.creaditor.bundle.js",revision:"9dceefe62440ab0ba6fe9306fe8e8950"},{url:"9201.creaditor.bundle.js",revision:"33641b93545606c25cd30f03638fda8d"},{url:"9201.creaditor.bundle.js.LICENSE.txt",revision:"c8a750975849f68cc5261bff5b7597b4"},{url:"9203.creaditor.bundle.js",revision:"f9c0c5c8ec2afbaad29c0b1f0b4fdb22"},{url:"9203.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"9265.creaditor.bundle.js",revision:"a12ad31794e374aa88ade70946ce74eb"},{url:"9394.creaditor.bundle.js",revision:"3c042457e8c572a85d5ec097a785e0dc"},{url:"9476.creaditor.bundle.js",revision:"e2f9bfeb2defc197257e194b960ce776"},{url:"9476.creaditor.bundle.js.LICENSE.txt",revision:"c11bb1d2d38962df13da3ce4dec84c31"},{url:"9530.creaditor.bundle.js",revision:"7384587a690e5876c2a9ad134b108c2f"},{url:"9628.creaditor.bundle.js",revision:"5b3f2c542c531daeb6aede2cb067f182"},{url:"9628.creaditor.bundle.js.LICENSE.txt",revision:"bdcb4366d129e6ce322401c2c0a6f680"},{url:"966.creaditor.bundle.js",revision:"66a0cfe2851742f9203663279c579993"},{url:"9766.creaditor.bundle.js",revision:"01bc24f692ed11fddeef702ea7e7601d"},{url:"9800.creaditor.bundle.js",revision:"62911ea3cfaaa5c18dbcf4a91f34ccac"},{url:"9838.creaditor.bundle.js",revision:"ffeb655d6145213112a740f63aef4016"},{url:"9838.creaditor.bundle.js.LICENSE.txt",revision:"07b9ce85d65b059fc522aa29a4819489"},{url:"9928.creaditor.bundle.js",revision:"3fa7c63297ed8eb26e53eb97191dd525"},{url:"creaditor.bundle.js",revision:"9dba45634597c5d3bcc947eeb68ea81b"},{url:"creaditor.bundle.js.LICENSE.txt",revision:"ff2947ebba9bc5ce84782cdb6be447dc"},{url:"index.html",revision:"633997b83db73351ce2c09a40bc5dd2f"}],{})}));
|
|
Binary file
|
package/package.json
CHANGED