jodit-pro 1.3.34 → 1.3.35
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/build/config.js +1 -0
- package/build/jodit.es5.css +1 -1
- package/build/jodit.es5.js +1 -1
- package/build/jodit.fat.css +1 -1
- package/build/jodit.fat.es5.css +1 -1
- package/build/jodit.fat.es5.js +1 -1
- package/build/jodit.fat.js +1 -1
- package/build/jodit.js +1 -1
- package/build/plugins/autocomplete/autocomplete.es5.js +1 -1
- package/build/plugins/autocomplete/autocomplete.js +1 -1
- package/build/plugins/backup/backup.es5.js +1 -1
- package/build/plugins/backup/backup.js +1 -1
- package/build/plugins/button-generator/button-generator.es5.js +1 -1
- package/build/plugins/button-generator/button-generator.js +1 -1
- package/build/plugins/change-case/change-case.es5.js +1 -1
- package/build/plugins/change-case/change-case.js +1 -1
- package/build/plugins/color-picker/color-picker.es5.js +1 -1
- package/build/plugins/color-picker/color-picker.js +1 -1
- package/build/plugins/emoji/emoji.es5.js +1 -1
- package/build/plugins/emoji/emoji.js +1 -1
- package/build/plugins/export-docs/export-docs.es5.js +1 -1
- package/build/plugins/export-docs/export-docs.js +1 -1
- package/build/plugins/finder/finder.es5.js +1 -1
- package/build/plugins/finder/finder.js +1 -1
- package/build/plugins/google-maps/google-maps.es5.js +1 -1
- package/build/plugins/google-maps/google-maps.js +1 -1
- package/build/plugins/google-search/google-search.es5.js +1 -1
- package/build/plugins/google-search/google-search.js +1 -1
- package/build/plugins/highlight-signature/highlight-signature.es5.js +1 -1
- package/build/plugins/highlight-signature/highlight-signature.js +1 -1
- package/build/plugins/iframe-editor/iframe-editor.es5.js +1 -1
- package/build/plugins/iframe-editor/iframe-editor.js +1 -1
- package/build/plugins/keyboard/keyboard.es5.js +1 -1
- package/build/plugins/keyboard/keyboard.js +1 -1
- package/build/plugins/mobile-view/mobile-view.es5.js +1 -1
- package/build/plugins/mobile-view/mobile-view.js +1 -1
- package/build/plugins/page-break/page-break.es5.js +1 -1
- package/build/plugins/page-break/page-break.js +1 -1
- package/build/plugins/paste-code/paste-code.es5.js +1 -1
- package/build/plugins/paste-code/paste-code.js +1 -1
- package/build/plugins/paste-from-word/paste-from-word.es5.js +1 -1
- package/build/plugins/paste-from-word/paste-from-word.js +1 -1
- package/build/plugins/show-blocks/show-blocks.es5.js +1 -1
- package/build/plugins/show-blocks/show-blocks.js +1 -1
- package/build/plugins/todo-list/todo-list.css +1 -0
- package/build/plugins/todo-list/todo-list.es5.css +1 -0
- package/build/plugins/todo-list/todo-list.es5.js +1 -0
- package/build/plugins/todo-list/todo-list.js +1 -0
- package/build/plugins/translate/translate.es5.js +1 -1
- package/build/plugins/translate/translate.js +1 -1
- package/build/plugins/tune-block/tune-block.es5.js +1 -1
- package/build/plugins/tune-block/tune-block.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var a in o)("object"==typeof exports?exports:t)[a]=o[a]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[917],{43746(t){"undefined"!=typeof self&&self,t.exports=(t=>{var e={};function o(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=(t,e,a)=>{o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=(t,e)=>{if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(a,i,(e=>t[e]).bind(null,i));return a},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,"a",e),e},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.p="",o(o.s=1)})([(t,e,o)=>{"use strict";var a=o(3);function i(t){return!0===a(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=t=>{var e,o;return!1!==i(t)&&"function"==typeof(e=t.constructor)&&!1!==i(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=e.getLuminance=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.parseColorToRgba=e.parseColorToRgb=e.from=e.createPicker=void 0;var a=(()=>{function t(t,e){for(var o=0;e.length>o;o++){var a=e[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return(e,o,a)=>(o&&t(e.prototype,o),a&&t(e,a),e)})(),i=(t,e)=>{if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return((t,e)=>{var o=[],a=!0,i=!1,s=void 0;try{for(var r,n=t[Symbol.iterator]();!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){i=!0,s=t}finally{try{!a&&n.return&&n.return()}finally{if(i)throw s}}return o})(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=o(2),r=l(o(0)),n=l(o(4));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var h="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,u="undefined"!=typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,d={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},g="COLOR",m="RGBA_USER",y="HSLA_USER";function f(t,e,o){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):o?e:null:e}function v(t){var e=t.getContext("2d"),o=+t.width,a=+t.height,r=e.createLinearGradient(1,1,1,a-1);return r.addColorStop(0,"white"),r.addColorStop(1,"black"),{setHue(t){var i=e.createLinearGradient(1,0,o-1,0);i.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),i.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),e.fillStyle=r,e.fillRect(0,0,o,a),e.fillStyle=i,e.globalCompositeOperation="multiply",e.fillRect(0,0,o,a),e.globalCompositeOperation="source-over"},grabColor(t,o){return e.getImageData(t,o,1,1).data},findColor(t,e,r){var n=(0,s.rgbToHsv)(t,e,r),l=i(n,3);return[l[1]*o,a-l[2]*a]}}}function b(t,e,o){return null===t?e:/^\s*$/.test(t)?o:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&e}function C(t,e,o){if(null===t)return e;if(/^\s*$/.test(t))return o;var a=t.split(",").map(Number);return 2===a.length&&a[0]&&a[1]?a:e}var k=function(){function t(e,o){if(c(this,t),o?(e=f(e),this.options=Object.assign({},d,o)):e&&(0,r.default)(e)?(this.options=Object.assign({},d,e),e=f(this.options.attachTo)):(this.options=Object.assign({},d),e=f((0,s.nvl)(e,this.options.attachTo))),!e)throw Error("Container not found: "+this.options.attachTo);!function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(e.hasAttribute(o+"show-hsl")&&(t.showHSL=b(e.getAttribute(o+"show-hsl"),d.showHSL,!0)),e.hasAttribute(o+"show-rgb")&&(t.showRGB=b(e.getAttribute(o+"show-rgb"),d.showRGB,!0)),e.hasAttribute(o+"show-hex")&&(t.showHEX=b(e.getAttribute(o+"show-hex"),d.showHEX,!0)),e.hasAttribute(o+"show-alpha")&&(t.showAlpha=b(e.getAttribute(o+"show-alpha"),d.showAlpha,!0)),e.hasAttribute(o+"palette-editable")&&(t.paletteEditable=b(e.getAttribute(o+"palette-editable"),d.paletteEditable,!0)),e.hasAttribute(o+"sl-bar-size")&&(t.slBarSize=C(e.getAttribute(o+"sl-bar-size"),d.slBarSize,[232,150])),e.hasAttribute(o+"hue-bar-size")&&(t.hueBarSize=C(e.getAttribute(o+"hue-bar-size"),d.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),e.hasAttribute(o+"palette")){var a=e.getAttribute(o+"palette");switch(a){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=a.split(/[;|]/)}}e.hasAttribute(o+"color")&&(t.color=e.getAttribute(o+"color"))}(this.options,e),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=n.default,e.appendChild(this.element);var a=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(a),this.hueBarHelper=v(a),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var i=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(i),this.slBarHelper=v(i),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(g,this.options.color)}return a(t,[{key:"setupHueCanvas",value(t){var e=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var o=t.getContext("2d"),a=o.createLinearGradient(0,0,this.options.hueBarSize[0],0),i=0;1>=i;i+=1/360)a.addColorStop(i,"hsl("+360*i+", 100%, 50%)");o.fillStyle=a,o.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var r=o=>{var a=(0,s.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.hueBarSize[0]),i=Math.round(360*a/e.options.hueBarSize[0]);e.huePointer.style.left=a-7+"px",e.onValueChanged("H",i)},n=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(t=>{r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",n)}))}},{key:"setupSlCanvas",value(t){var e=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var o=o=>{var a=(0,s.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.slBarSize[0]-1),i=(0,s.limit)(o.clientY-t.getBoundingClientRect().top,0,e.options.slBarSize[1]-1),r=e.slBarHelper.grabColor(a,i);e.slPointer.style.left=a-7+"px",e.slPointer.style.top=i-7+"px",e.onValueChanged("RGB",r)},a=function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(t=>{o(t),document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)}))}},{key:"setupAlphaCanvas",value(t){var e=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var o=t.getContext("2d"),a=o.createLinearGradient(0,0,t.width-1,0);a.addColorStop(0,"hsla(0, 0%, 50%, 0)"),a.addColorStop(1,"hsla(0, 0%, 50%, 1)"),o.fillStyle=a,o.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var i=o=>{var a=(0,s.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.alphaBarSize[0]),i=+(a/e.options.alphaBarSize[0]).toFixed(2);e.alphaPointer.style.left=a-7+"px",e.onValueChanged("ALPHA",i)},r=function t(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(t=>{i(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",r)}))}},{key:"setupInput",value(t){var e=this,o=+t.min,a=+t.max,i=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",(()=>{t.select()})),"text"===t.type?t.addEventListener("change",(()=>{e.onValueChanged(i,t.value)})):((h||u)&&t.addEventListener("keydown",(r=>{"Up"===r.key?(t.value=(0,s.limit)(+t.value+1,o,a),e.onValueChanged(i,t.value),r.returnValue=!1):"Down"===r.key&&(t.value=(0,s.limit)(+t.value-1,o,a),e.onValueChanged(i,t.value),r.returnValue=!1)})),t.addEventListener("change",(()=>{e.onValueChanged(i,(0,s.limit)(+t.value,o,a))})))}},{key:"setupClipboard",value(t){var e=this;t.title="click to copy",t.addEventListener("click",(()=>{t.value=(0,s.parseColor)([e.R,e.G,e.B,e.A],"hexcss4"),t.select(),document.execCommand("copy")}))}},{key:"setPalette",value(t){var e=this,o="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,a=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":a=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":a=s.PALETTE_MATERIAL_CHROME;break;default:a=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||a.length>0){var i=(o,a,i)=>{var s=t.querySelector('.a-color-picker-palette-color[data-color="'+o+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=o,s.setAttribute("data-color",o),s.title=o,t.insertBefore(s,a),e.palette[o]=!0,i&&e.onPaletteColorAdd(o)},r=(o,a)=>{o?(t.removeChild(o),e.palette[o.getAttribute("data-color")]=!1,a&&e.onPaletteColorRemove(o.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach((e=>{t.removeChild(e)})),Object.keys(e.palette).forEach((t=>{e.palette[t]=!1})),a&&e.onPaletteColorRemove())};if(a.map((t=>(0,s.parseColor)(t,o?"rgbcss4":"hex"))).filter((t=>!!t)).forEach((t=>i(t))),this.options.paletteEditable){var n=document.createElement("div");n.className="a-color-picker-palette-color a-color-picker-palette-add",n.innerHTML="+",t.appendChild(n),t.addEventListener("click",(t=>{/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?r(null,!0):i(o?(0,s.parseColor)([e.R,e.G,e.B,e.A],"rgbcss4"):(0,s.rgbToHex)(e.R,e.G,e.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?r(t.target,!0):e.onValueChanged(g,t.target.getAttribute("data-color")))}))}else t.addEventListener("click",(t=>{/a-color-picker-palette-color/.test(t.target.className)&&e.onValueChanged(g,t.target.getAttribute("data-color"))}))}else t.style.display="none"}},{key:"updatePalette",value(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=e;var a=(0,s.hslToRgb)(this.H,this.S,this.L),r=i(a,3);this.R=r[0],this.G=r[1],this.B=r[2],this.slBarHelper.setHue(e),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=e;var n=(0,s.hslToRgb)(this.H,this.S,this.L),l=i(n,3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=e;var c=(0,s.hslToRgb)(this.H,this.S,this.L),p=i(c,3);this.R=p[0],this.G=p[1],this.B=p[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=e;var h=(0,s.rgbToHsl)(this.R,this.G,this.B),u=i(h,3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=e;var d=(0,s.rgbToHsl)(this.R,this.G,this.B),f=i(d,3);this.H=f[0],this.S=f[1],this.L=f[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=e;var v=(0,s.rgbToHsl)(this.R,this.G,this.B),b=i(v,3);this.H=b[0],this.S=b[1],this.L=b[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var C=i(e,3);this.R=C[0],this.G=C[1],this.B=C[2];var k=(0,s.rgbToHsl)(this.R,this.G,this.B),w=i(k,3);this.H=w[0],this.S=w[1],this.L=w[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case m:var E=i(e,4);this.R=E[0],this.G=E[1],this.B=E[2],this.A=E[3];var x=(0,s.rgbToHsl)(this.R,this.G,this.B),A=i(x,3);this.H=A[0],this.S=A[1],this.L=A[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case y:var F=i(e,4);this.H=F[0],this.S=F[1],this.L=F[2],this.A=F[3];var S=(0,s.hslToRgb)(this.H,this.S,this.L),L=i(S,3);this.R=L[0],this.G=L[1],this.B=L[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var B=(0,s.cssColorToRgb)(e)||[this.R,this.G,this.B],R=i(B,3);this.R=R[0],this.G=R[1],this.B=R[2];var H=(0,s.rgbToHsl)(this.R,this.G,this.B),M=i(H,3);this.H=M[0],this.S=M[1],this.L=M[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case g:var T=(0,s.parseColor)(e,"rgba")||[0,0,0,1],I=i(T,4);this.R=I[0],this.G=I[1],this.B=I[2],this.A=I[3];var j=(0,s.rgbToHsl)(this.R,this.G,this.B),P=i(j,3);this.H=P[0],this.S=P[1],this.L=P[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=e}this.preview.style.backgroundColor=1===this.A?"rgb("+this.R+","+this.G+","+this.B+")":"rgba("+this.R+","+this.G+","+this.B+","+this.A+")",o&&o.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value(t,e,o){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=e,this.inputL.value=o)}},{key:"updateInputRGB",value(t,e,o){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=e,this.inputB.value=o)}},{key:"updateInputRGBHEX",value(t,e,o){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,e,o))}},{key:"updatePointerH",value(t){this.huePointer.style.left=this.options.hueBarSize[0]*t/360-7+"px"}},{key:"updatePointerSL",value(t,e,o){var a=(0,s.hslToRgb)(t,e,o),r=i(a,3),n=this.slBarHelper.findColor(r[0],r[1],r[2]),l=i(n,2),c=l[0],p=l[1];c>=0&&(this.slPointer.style.left=c-7+"px",this.slPointer.style.top=p-7+"px")}},{key:"updatePointerA",value(t){this.options.showAlpha&&(this.alphaPointer.style.left=this.options.alphaBarSize[0]*t-7+"px")}}]),t}(),w=function(){function t(e){c(this,t),this.name=e,this.listeners=[]}return a(t,[{key:"on",value(t){t&&this.listeners.push(t)}},{key:"off",value(t){this.listeners=t?this.listeners.filter((e=>e!==t)):[]}},{key:"emit",value(t,e){for(var o=this.listeners.slice(0),a=0;o.length>a;a++)o[a].apply(e,t)}}]),t}();function E(t,e){var o=new k(t,e),a={change:new w("change"),coloradd:new w("coloradd"),colorremove:new w("colorremove")},r=!0,n={},l={get element(){return o.element},get rgb(){return[o.R,o.G,o.B]},set rgb(t){var e=i(t,3),a=e[0],r=e[1],n=e[2],l=[(0,s.limit)(a,0,255),(0,s.limit)(r,0,255),(0,s.limit)(n,0,255)];o.onValueChanged(m,[a=l[0],r=l[1],n=l[2],1])},get hsl(){return[o.H,o.S,o.L]},set hsl(t){var e=i(t,3),a=e[0],r=e[1],n=e[2],l=[(0,s.limit)(a,0,360),(0,s.limit)(r,0,100),(0,s.limit)(n,0,100)];o.onValueChanged(y,[a=l[0],r=l[1],n=l[2],1])},get rgbhex(){return this.all.hex},get rgba(){return[o.R,o.G,o.B,o.A]},set rgba(t){var e=i(t,4),a=e[0],r=e[1],n=e[2],l=e[3],c=[(0,s.limit)(a,0,255),(0,s.limit)(r,0,255),(0,s.limit)(n,0,255),(0,s.limit)(l,0,1)];o.onValueChanged(m,[a=c[0],r=c[1],n=c[2],l=c[3]])},get hsla(){return[o.H,o.S,o.L,o.A]},set hsla(t){var e=i(t,4),a=e[0],r=e[1],n=e[2],l=e[3],c=[(0,s.limit)(a,0,360),(0,s.limit)(r,0,100),(0,s.limit)(n,0,100),(0,s.limit)(l,0,1)];o.onValueChanged(y,[a=c[0],r=c[1],n=c[2],l=c[3]])},get color(){return""+this.all},set color(t){o.onValueChanged(g,t)},setColor(t){o.onValueChanged(g,t,{silent:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},get all(){if(r){var t=[o.R,o.G,o.B,o.A],e=1>o.A?"rgba("+o.R+","+o.G+","+o.B+","+o.A+")":s.rgbToHex.apply(void 0,t);(n=(0,s.parseColor)(t,n)).toString=()=>e,r=!1}return Object.assign({},n)},get onchange(){return a.change&&a.change.listeners[0]},set onchange(t){this.off("change").on("change",t)},get oncoloradd(){return a.coloradd&&a.coloradd.listeners[0]},set oncoloradd(t){this.off("coloradd").on("coloradd",t)},get oncolorremove(){return a.colorremove&&a.colorremove.listeners[0]},set oncolorremove(t){this.off("colorremove").on("colorremove",t)},get palette(){return Object.keys(o.palette).filter((t=>o.palette[t]))},set palette(t){o.updatePalette(t)},show(){o.element.classList.remove("hidden")},hide(){o.element.classList.add("hidden")},toggle(){o.element.classList.toggle("hidden")},on(t,e){return t&&a[t]&&a[t].on(e),this},off(t,e){return t&&a[t]&&a[t].off(e),this},destroy(){a.change.off(),a.coloradd.off(),a.colorremove.off(),o.element.remove(),a=null,o=null}};return o.onchange=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];r=!0,a.change.emit([l].concat(e),l)},o.oncoloradd=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];a.coloradd.emit([l].concat(e),l)},o.oncolorremove=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];a.colorremove.emit([l].concat(e),l)},o.element.ctrl=l,l}if("undefined"!=typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=""+o(5),A=document.createElement("style");A.setAttribute("type","text/css"),A.setAttribute("data-source","a-color-picker"),A.innerHTML=x,document.querySelector("head").appendChild(A)}e.createPicker=E,e.from=function(t,e){var o=(t=>t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(p(t)):"string"==typeof t?[].concat(p(document.querySelectorAll(t))):t.jquery?t.get():[]:[])(t).map(((t,o)=>{var a=E(t,e);return a.index=o,a}));return o.on=function(t,e){return o.forEach((o=>o.on(t,e))),this},o.off=function(t){return o.forEach((e=>e.off(t))),this},o},e.parseColorToRgb=s.parseColorToRgb,e.parseColorToRgba=s.parseColorToRgba,e.parseColorToHsl=s.parseColorToHsl,e.parseColorToHsla=s.parseColorToHsla,e.parseColor=s.parseColor,e.rgbToHex=s.rgbToHex,e.hslToRgb=s.hslToRgb,e.rgbToHsl=s.rgbToHsl,e.rgbToHsv=s.rgbToHsv,e.rgbToInt=s.rgbToInt,e.intToRgb=s.intToRgb,e.getLuminance=s.getLuminance,e.COLOR_NAMES=s.COLOR_NAMES,e.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,e.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,e.VERSION="1.2.1"},(t,e,o)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nvl=e.ensureArray=e.limit=e.getLuminance=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.cssHslaToHsla=e.cssHslToHsl=e.parseColorToRgba=e.parseColorToRgb=e.cssRgbaToRgba=e.cssRgbToRgb=e.cssColorToRgba=e.cssColorToRgb=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=void 0;var a=(t,e)=>{if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return((t,e)=>{var o=[],a=!0,i=!1,s=void 0;try{for(var r,n=t[Symbol.iterator]();!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){i=!0,s=t}finally{try{!a&&n.return&&n.return()}finally{if(i)throw s}}return o})(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=(t=>t&&t.__esModule?t:{default:t})(o(0));function s(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var r={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function n(t,e,o){return isNaN(t=+t)||e>t?e:t>o?o:t}function l(t,e){return null==t?e:t}function c(t,e,o){var a=[n(t,0,255),n(e,0,255),n(o,0,255)];return"#"+("000000"+((t=a[0])<<16|(e=a[1])<<8|(o=a[2])).toString(16)).slice(-6)}function p(t,e,o){var a=void 0,i=void 0,s=void 0,r=[n(t,0,360)/360,n(e,0,100)/100,n(o,0,100)/100];if(t=r[0],o=r[2],0==(e=r[1]))a=i=s=o;else{var l=(t,e,o)=>(0>o&&(o+=1),o>1&&(o-=1),1/6>o?t+6*(e-t)*o:.5>o?e:2/3>o?t+(e-t)*(2/3-o)*6:t),c=.5>o?o*(1+e):o+e-o*e,p=2*o-c;a=l(p,c,t+1/3),i=l(p,c,t),s=l(p,c,t-1/3)}return[255*a,255*i,255*s].map(Math.round)}function h(t,e,o){var a=[n(t,0,255)/255,n(e,0,255)/255,n(o,0,255)/255],i=Math.max(t=a[0],e=a[1],o=a[2]),s=Math.min(t,e,o),r=void 0,l=void 0,c=(i+s)/2;if(i==s)r=l=0;else{var p=i-s;switch(l=c>.5?p/(2-i-s):p/(i+s),i){case t:r=(e-o)/p+(o>e?6:0);break;case e:r=(o-t)/p+2;break;case o:r=(t-e)/p+4}r/=6}return[360*r,100*l,100*c].map(Math.round)}function u(t,e,o){return t<<16|e<<8|o}function d(t){if(t){var e=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(r[(""+t).toLowerCase()]||t)||[],o=a(e,10),i=o[3],s=o[4],n=o[5],l=o[7],c=o[8],p=o[9];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(n+n,16)];if(void 0!==l)return[parseInt(l,16),parseInt(c,16),parseInt(p,16)]}}function g(t){if(t){var e=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(r[(""+t).toLowerCase()]||t)||[],o=a(e,12),i=o[3],s=o[4],n=o[5],l=o[6],c=o[8],p=o[9],h=o[10],u=o[11];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(n+n,16),l?+(parseInt(l+l,16)/255).toFixed(2):1];if(void 0!==c)return[parseInt(c,16),parseInt(p,16),parseInt(h,16),u?+(parseInt(u,16)/255).toFixed(2):1]}}function m(t){if(t){var e=/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=a(e,4),i=o[2],s=o[3];return o[0]?[n(o[1],0,255),n(i,0,255),n(s,0,255)]:void 0}}function y(t){if(t){var e=/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=a(e,6),i=o[2],s=o[3],r=o[5];return o[0]?[n(o[1],0,255),n(i,0,255),n(s,0,255),n(l(r,1),0,1)]:void 0}}function f(t){if(Array.isArray(t))return[n(t[0],0,255),n(t[1],0,255),n(t[2],0,255),n(l(t[3],1),0,1)];var e=g(t)||y(t);return e&&3===e.length&&e.push(1),e}function v(t){if(t){var e=/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=a(e,4),i=o[2],s=o[3];return o[0]?[n(o[1],0,360),n(i,0,100),n(s,0,100)]:void 0}}function b(t){if(t){var e=/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=a(e,6),i=o[2],s=o[3],r=o[5];return o[0]?[n(o[1],0,255),n(i,0,255),n(s,0,255),n(l(r,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[n(t[0],0,360),n(t[1],0,100),n(t[2],0,100),n(l(t[3],1),0,1)];var e=b(t);return e&&3===e.length&&e.push(1),e}function k(t,e){switch(e){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return h.apply(void 0,s(t));case"hslcss":return"hsl("+(t=h.apply(void 0,s(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var o=h.apply(void 0,s(t));return"hsl("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hsla":return[].concat(s(h.apply(void 0,s(t))),[t[3]]);case"hslacss":var a=h.apply(void 0,s(t));return"hsla("+a[0]+", "+a[1]+", "+a[2]+", "+t[3]+")";case"hex":return c.apply(void 0,s(t));case"hexcss4":return c.apply(void 0,s(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return u.apply(void 0,s(t))}}e.COLOR_NAMES=r,e.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],e.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],e.rgbToHex=c,e.hslToRgb=p,e.rgbToHsl=h,e.rgbToHsv=(t,e,o)=>{var a,i=[n(t,0,255)/255,n(e,0,255)/255,n(o,0,255)/255],s=Math.max(t=i[0],e=i[1],o=i[2]),r=Math.min(t,e,o),l=void 0,c=s,p=s-r;if(a=0===s?0:p/s,s==r)l=0;else{switch(s){case t:l=(e-o)/p+(o>e?6:0);break;case e:l=(o-t)/p+2;break;case o:l=(t-e)/p+4}l/=6}return[l,a,c]},e.rgbToInt=u,e.intToRgb=t=>[t>>16&255,t>>8&255,255&t],e.cssColorToRgb=d,e.cssColorToRgba=g,e.cssRgbToRgb=m,e.cssRgbaToRgba=y,e.parseColorToRgb=t=>Array.isArray(t)?t=[n(t[0],0,255),n(t[1],0,255),n(t[2],0,255)]:d(t)||m(t),e.parseColorToRgba=f,e.cssHslToHsl=v,e.cssHslaToHsla=b,e.parseColorToHsl=t=>Array.isArray(t)?t=[n(t[0],0,360),n(t[1],0,100),n(t[2],0,100)]:v(t),e.parseColorToHsla=C,e.parseColor=(t,e)=>{if(e=e||"rgb",null!=t){var o=void 0;if((o=f(t))||(o=C(t))&&(o=[].concat(s(p.apply(void 0,s(o))),[o[3]])))return(0,i.default)(e)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(((t,e)=>(t[e]=k(o,e),t)),e||{}):k(o,(""+e).toLowerCase())}},e.getLuminance=(t,e,o)=>.2126*(t=.03928>(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e=.03928>(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(.03928>(o/=255)?o/12.92:Math.pow((o+.055)/1.055,2.4)),e.limit=n,e.ensureArray=t=>t?Array.from(t):[],e.nvl=l},(t,e,o)=>{"use strict";t.exports=t=>null!=t&&"object"==typeof t&&!1===Array.isArray(t)},(t,e)=>{t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},(t,e,o)=>{var a=o(6);t.exports="string"==typeof a?a:""+a},(t,e,o)=>{(t.exports=o(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((e=>{var o=((t,e)=>{var o=t[1]||"",a=t[3];if(!a)return o;if(e&&"function"==typeof btoa){var i=(t=>"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */")(a),s=a.sources.map((t=>"/*# sourceURL="+a.sourceRoot+t+" */"));return[o].concat(s).concat([i]).join("\n")}return""+o})(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;this.length>i;i++){var s=this[i][0];"number"==typeof s&&(a[s]=!0)}for(i=0;t.length>i;i++){var r=t[i];"number"==typeof r[0]&&a[r[0]]||(o&&!r[2]?r[2]=o:o&&(r[2]="("+r[2]+") and ("+o+")"),e.push(r))}},e}}])},88572(t,e,o){"use strict";function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,a(t)}function i(t,e,o){var i=o.value;if("function"!=typeof i)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(a(i)));var s=!1;return{configurable:!0,get(){if(s||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof i)return i;var o=i.bind(this);return s=!0,Object.defineProperty(this,e,{configurable:!0,get(){return o},set(t){i=t,delete this[e]}}),s=!1,o},set(t){i=t}}}function s(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof o.value&&Object.defineProperty(t.prototype,e,i(t,e,o))}})),t}function r(){return 1===arguments.length?s.apply(void 0,arguments):i.apply(void 0,arguments)}o.d(e,{ZP(){return r}})},27618(t,e,o){"use strict";o.d(e,{W(){return l}});var a=o(70655),i=o(33993),s=o(98422),r=o(16892),n=o(88572);let l=class t extends i.u3{className(){return"UIRange"}constructor(t,e){super(t,{...e,type:"hidden"}),this.state={...i.u3.defaultState,min:0,max:100},this.startValue=0,this.startX=0,this.width=100,Object.assign(this.state,e),this.appendUIRange(),this.onChangeSelfValue()}appendUIRange(){const t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);const e=this.j.create.div(this.getFullElName("handle"));t.appendChild(e);const o=this.j.create.div(this.getFullElName("log")),a=this.getElm("label");(0,r.assert)(null!=a,"label element does not exists"),a.appendChild(o)}onDragStart(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;const e=this.getElm("slider");(0,r.assert)(null!=e,"slider element does not exists"),this.width=e.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(t){const{min:e,max:o}=this.state;let a=this.startValue+(t.clientX-this.startX)/this.width*(this.state.max-this.state.min);e>a&&(a=e),a>o&&(a=o),this.value=""+a}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){const t=this.getElm("handle"),e=parseFloat(this.value)||0;(0,r.assert)(null!=t,"Handle element does not exist"),(0,r.css)(t,{left:(e-this.state.min)/(this.state.max-this.state.min)*100+"%"});const o=this.getElm("log");(0,r.assert)(null!=o,"log element does not exist"),o.innerText=""+e}destruct(){return this.onDragEnd(),super.destruct()}};(0,a.gn)([(0,s.watch)(["handle:mousedown","handle:touchstart"])],l.prototype,"onDragStart",null),(0,a.gn)([n.ZP],l.prototype,"onDrag",null),(0,a.gn)([(0,s.watch)(["j.ow:mouseup","j.ow:touchend"])],l.prototype,"onDragEnd",null),(0,a.gn)([(0,s.watch)(":change")],l.prototype,"onChangeSelfValue",null),l=(0,a.gn)([s.component],l)},6626(t,e,o){"use strict";o.d(e,{T(){return p}});var a=o(70655),i=o(33993),s=o(98422),r=o(16892),n=o(43746),l=o(47611),c=o(49940);let p=class t extends i.u3{className(){return"ColorInput"}constructor(t,e){super(t,e);const o=new i.GI(t);this.popup=o,this.trigger=(0,i.zx)(this.j,"ok");const a=this.getElm("wrapper");(0,r.assert)(null!=a,"wrapper element does not exist"),a.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction((()=>{var t,e;null===(e=(t=this.state).onChange)||void 0===e||e.call(t,this.value),o.close()})),o.setMod("padding",!1).setMod("max-height",!1);const s=this.j.create.div(this.getFullElName("picker")),c=n.createPicker(s,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",((t,e)=>{this.isFocused||(this.value=n.parseColor(e||"","hex"))}));this.j.e.on(this,"change",(()=>{n.parseColor(this.value,"hex")!==c.color&&(c.color=this.value)})),o.setContent(s),this.j.e.on(this.nativeInput,"click",(()=>{o.parentElement=this,this.jodit instanceof l.Dialog&&o.setZIndex(this.jodit.getZIndex()+1),o.open((()=>(0,r.position)(this.container)))})),this.onChangeValue(),this.onChangeSelfValue()}afterSetMode(t,e){"slim"===t&&e&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){var e;t.key===c.KEY_ESC&&(null===(e=this.popup)||void 0===e||e.close())}};(0,a.gn)([(0,s.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,a.gn)([(0,s.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,a.gn)([s.component],p)},88943(t,e,o){"use strict";o.r(e),o.d(e,{googleMaps(){return q}});var a=o(70655),i=o(43464),s=o(62195),r=o(733);const n="googleMapsState",l="googleMapsDialog";r.D.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.D.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:l};const c=t=>({icon:"edit-"+t,isActive(e){return e.buffer.get("createMode.gm")===t},exec(e){e.e.fire("changeCreateMode.gm",t)}});r.D.prototype.controls.gm={hand:c("hand"),marker:c("marker"),polyline:c("polyline"),polygon:c("polygon"),circle:c("circle"),text:c("text")};var p=o(33993);p.JO.set("map",o(32207)).set("edit-hand",o(40767)).set("edit-polygon",o(26929)).set("edit-marker",o(22657)).set("edit-text",o(98576)).set("edit-polyline",o(87526)).set("edit-circle",o(88862));var h=o(24740),u=o(7351),d=o(16892),g=o(49940),m=o(98422),y=o(48310),f=o(47611);let v=!1;const b=[];function C(t,e=!1){const o=[];if(Array.isArray(t)){if(!Array.isArray(t[0])&&!Array.isArray(t[1]))return e?{lat:t[0],lng:t[1]}:new google.maps.LatLng(t[0],t[1]);t.forEach((t=>{o.push(C(t,e))}))}return o}function k(t){return t.getArray().map((t=>[t.lat(),t.lng()]))}function w(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")}function E(){return"undefined"!=typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}function x(t,e,o=!1){const a=this.mapElements[e];if(a.state===t||a.state.type!==t.type)return;const i=a.state;if(!o){let e;for(e in t){const o=t[e],s=i[e];if(null!=o&&(null==s||""+o!=""+s))switch(e){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(a.type){case"polyline":case"circle":case"polygon":a.gme.setOptions({[e]:o})}break;case"coordinates":switch(a.type){case"polygon":case"polyline":a.gme.setPath(C(o))}}}}a.state=t,this.state.elements[e]=t}var A=o(58706);function F(t,e){var o,a,i,s;switch(t.type){case"polyline":case"polygon":{const o=k(t.gme.getPath()),a={...t.state,coordinates:o};x.call(this,a,e,!0);break}case"marker":{const i=t.gme.getPosition(),s={...t.state,coordinates:[null!==(o=null==i?void 0:i.lat())&&void 0!==o?o:0,null!==(a=null==i?void 0:i.lng())&&void 0!==a?a:0]};x.call(this,s,e,!0);break}case"circle":{const o=t.gme.getCenter(),a={...t.state,radius:t.gme.getRadius(),coordinates:[null!==(i=null==o?void 0:o.lat())&&void 0!==i?i:0,null!==(s=null==o?void 0:o.lng())&&void 0!==s?s:0]};x.call(this,a,e,!0);break}}}let S=class t extends p.u1{className(){return"UIWysiwyg"}constructor(t,e,o,a){super(t);const i=this.getElm("editor");(0,d.assert)(null!=i,"editor element does not exist");const r=s.Jodit.make(i,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...e});r.value=o,r.e.on("change",(()=>a(r.value)))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};S=(0,a.gn)([m.component],S);class L extends p.qe{className(){return"UIBaseEditor"}render(){return"<div>\n\t\t\t<div class='&__header'></div>\n\t\t\t<div class='&__form'></div>\n\t\t\t<div class='&__buttons'></div>\n\t\t</div>"}onReady(){const t=(0,p.zx)(this.j,"bin").onAction((()=>this.j.e.fire(this,"bin")));this.append(t,"buttons")}constructor(t,e,o){super(t),this.state=e,this.options=o}}let B=class t extends L{onReady(){var t;super.onReady();const e=new S(this.j,this.options.googleMaps.inlineEditorOptions,null!==(t=this.state.text)&&void 0!==t?t:"",(t=>this.j.e.fire(this,"change","text",t)));this.append(e,"form")}};(0,a.gn)([(0,m.hook)("ready")],B.prototype,"onReady",null),B=(0,a.gn)([m.component],B);var R=o(6626);let H=class t extends L{onReady(){var t,e;super.onReady(),this.append([new p.u3(this.j,{label:"Stroke weight",value:null!==(t=this.state.strokeWeight)&&void 0!==t?t:1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new R.T(this.j,{label:"Stroke color",value:null!==(e=this.state.strokeColor)&&void 0!==e?e:"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}};(0,a.gn)([(0,m.hook)("ready")],H.prototype,"onReady",null),H=(0,a.gn)([m.component],H);var M=o(27618);let T=class t extends H{onReady(){var t,e;this.append([new R.T(this.j,{label:"Fill color",value:null!==(t=this.state.fillColor)&&void 0!==t?t:"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new M.W(this.j,{label:"Opacity",min:0,max:1,value:null!==(e=this.state.fillOpacity)&&void 0!==e?e:1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}};function I(t){const e=this.mapElements.indexOf(t);-1!==e&&(this.mapElements[e].gme.setMap(null),this.mapElements.splice(e,1),this.state.elements.splice(e,1),this.state.elements=[...this.state.elements])}function j(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",(()=>{this.setMod("info-opened",!0)})),t.addListener("closeclick",(()=>{this.setMod("info-opened",!1)})),t}function P(t,e){let o;switch(this.state.mode="hand",t.type){case"polyline":o=new H(this.jodit,t.state,this.options);break;case"marker":o=new B(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new T(this.jodit,t.state,this.options)}if(!o)return;this.append(o),this.j.e.on(o,"bin",(()=>{I.call(this,t)})).on(o,"change",((o,a)=>{x.call(this,{...t.state,[o]:a},e)}));const a=j.call(this);if("polygon"===t.type||"polyline"===t.type){const e=t.gme.getPath().getAt(0);a.setPosition(e)}"circle"===t.type&&a.setPosition(t.gme.getCenter()),a.setContent(o.container),a.open(this.map,t.gme),a.addListener("closeclick",(()=>{o&&(this.remove(o),o.destruct())}))}function z(t,e){var o;const a=this.mapElements[e];if(a){if(a.state.type===t.type)return x.call(this,t,e);a.gme.setMap(null)}let i;switch(t.type){case"text":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?p.JO.get(t.icon):null,map:this.map});break;case"polyline":case"polygon":{const e=C(t.coordinates);i=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:e,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":i=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!==(o=t.fillOpacity)&&void 0!==o?o:1})}const s={type:t.type,uid:(0,A.fe)(),state:t,gme:i};"dragend radius_changed center_changed".split(" ").forEach((t=>i.addListener(t,(()=>F.call(this,s,e))))),"polygon"!==s.type&&"polyline"!==s.type||"insert_at set_at remove_at".split(" ").forEach((t=>s.gme.getPath().addListener(t,(()=>F.call(this,s,e))))),i.addListener("click",(()=>P.call(this,s,e))),this.mapElements[e]=s}function O(t){var e,o,a,i,s,r,n,l;switch(this.state.mode){case"polyline":case"polygon":{const{mode:e}=this.state;this.state.elements=[...this.state.elements,{type:e,coordinates:k(t.getPath()),...this.options.googleMaps.map.defaultStates[e]}];break}case"circle":{const s=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(o=null===(e=s.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:0,null!==(i=null===(a=s.getCenter())||void 0===a?void 0:a.lng())&&void 0!==i?i:0],radius:s.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break}case"marker":{const e=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(r=null===(s=e.getPosition())||void 0===s?void 0:s.lat())&&void 0!==r?r:0,null!==(l=null===(n=e.getPosition())||void 0===n?void 0:n.lng())&&void 0!==l?l:0],...this.options.googleMaps.map.defaultStates.marker}];break}}}(0,a.gn)([(0,m.hook)("ready")],T.prototype,"onReady",null),T=(0,a.gn)([m.component],T);class G extends p.qe{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");(0,d.assert)(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(()=>{var t;this.state.zoom=null!==(t=this.map.getZoom())&&void 0!==t?t:10})),this.map.addListener("center_changed",(()=>{var t,e,o,a,i,s;this.state.center=[null!==(o=null===(e=null===(t=this.map)||void 0===t?void 0:t.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:55,null!==(s=null===(i=null===(a=this.map)||void 0===a?void 0:a.getCenter())||void 0===i?void 0:i.lng())&&void 0!==s?s:34]})),this.map.addListener("maptypeid_changed",(()=>{const t=this.map.getMapTypeId();t&&(this.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((()=>{this.j.e.fire(this,"GoogleMapsIsReady")}))}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",(t=>{t.overlay&&(O.call(this,t.overlay),t.overlay.setMap(null))}))}catch(t){}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null===(t=this.drawingManager)||void 0===t||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;e.length>t.length&&e.slice(t.length).forEach((t=>{t.gme.setMap(null)})),e.length=t.length,t.forEach(((t,e)=>z.call(this,t,e)))}onChangeCenter(){const t=this.map.getCenter();(null==t?void 0:t.lat())===this.state.center[0]&&(null==t?void 0:t.lng())===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;null===(t=this.map)||void 0===t||t.setZoom(this.state.zoom)}onChangeControls(){var t;let e;for(e in this.state.controls)null===(t=this.map)||void 0===t||t.set(e,this.state.controls[e])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(n,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");(0,d.assert)(null!=t,"map-size element does not exists"),(0,d.css)(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach((t=>t.setMap(null))),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((t=>t.setMap(this.map)))}render(){return"<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>"}appendChildToContainer(){}constructor(t,e,o){super(t),this.options=o,this.toolbar=new f.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,A.fe)()+(""+new Date).replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const a=this.getElm("map-palette");(0,d.assert)(null!=a,"palette element does not exists"),a.appendChild(this.toolbar.container)}}(0,a.gn)([(0,m.hook)("ready")],G.prototype,"onReady",null),(0,a.gn)([(0,m.watch)("?:changeCreateMode.gm")],G.prototype,"changeCreateMode",null),(0,a.gn)([(0,m.watch)("state.mode")],G.prototype,"onChangeMode",null),(0,a.gn)([(0,m.watch)("state.elements")],G.prototype,"onChangeElementsList",null),(0,a.gn)([(0,m.watch)("state.center"),(0,m.wait)((t=>t.mapInitialized)),(0,m.debounce)()],G.prototype,"onChangeCenter",null),(0,a.gn)([(0,m.watch)("state.zoom"),(0,m.debounce)()],G.prototype,"onChangeZoom",null),(0,a.gn)([(0,m.watch)("state.controls")],G.prototype,"onChangeControls",null),(0,a.gn)([(0,m.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,m.wait)((t=>t.mapInitialized)),(0,m.debounce)()],G.prototype,"onChangeBound",null),(0,a.gn)([(0,m.watch)("state.size"),(0,m.debounce)()],G.prototype,"onChangeSize",null),(0,a.gn)([(0,m.watch)("state.type")],G.prototype,"onChangeMapType",null),(0,a.gn)([(0,m.watch)("state.layer")],G.prototype,"onChangeLayer",null);let D=class t extends p.x4{className(){return"UIMapsPropsForm"}constructor(t,e){var o;super(t),this.state=e;const[a,i]=e.size,[s,r]=e.center;this.append([new p.u3(t,{label:"Width",name:"width",value:a,type:"number",onChange:this.onChangeSize}),new p.u3(t,{label:"Height",name:"height",value:i,type:"number",onChange:this.onChangeSize}),new p.u3(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new p.u3(t,{label:"Longitude",name:"lng",value:r,onChange:this.onChangeCenter}),new p.Cj(t,{label:"Map type",value:e.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange(t){e.type=t}}),new p.Cj(t,{label:"Layer",value:null!==(o=e.layer)&&void 0!==o?o:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange(t){e.layer=t}})])}onChangeSize(){const{width:t,height:e}=(0,d.refs)(this);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==e?void 0:e.value,10)||0]}onExternalChangeSize(){const{width:t,height:e}=(0,d.refs)(this),[o,a]=this.state.size;""+o!==t.value&&(t.value=""+o),""+a!==e.value&&(e.value=""+a)}onChangeCenter(){const{lat:t,lng:e}=(0,d.refs)(this);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==e?void 0:e.value)||0]}onExternalChangeCenter(){const{lat:t,lng:e}=(0,d.refs)(this),[o,a]=this.state.center;""+o!==t.value&&(t.value=""+o),""+a!==e.value&&(e.value=""+a)}onExternalChangeType(){const{mapType:t}=(0,d.refs)(this);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){const{layer:t}=(0,d.refs)(this);this.state.layer!==t.value&&(t.value=this.state.layer)}};(0,a.gn)([m.autobind],D.prototype,"onChangeSize",null),(0,a.gn)([(0,m.watch)("state.size")],D.prototype,"onExternalChangeSize",null),(0,a.gn)([m.autobind],D.prototype,"onChangeCenter",null),(0,a.gn)([(0,m.watch)(["state.center"])],D.prototype,"onExternalChangeCenter",null),(0,a.gn)([(0,m.watch)(["state.type"])],D.prototype,"onExternalChangeType",null),(0,a.gn)([(0,m.watch)(["state.layer"])],D.prototype,"onExternalChangeLayer",null),D=(0,a.gn)([m.component],D);let _=class t extends p.x4{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const o={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"};this.append(Object.keys(o).map((e=>new p.mA(t,{label:o[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};function V(t){const{state:e}=t;return"https://maps.googleapis.com/maps/api/staticmap?center="+e.center.join(",")+"&zoom="+e.zoom+"&size="+e.size.join("x")+"&maptype="+e.type+"&key="+t.options.googleMaps.API_KEY+(t=>t.state.elements.map((t=>{var e,o,a,i,s,r;switch(t.type){case"polygon":return`&path=fillcolor:${w(null!==(e=t.fillColor)&&void 0!==e?e:"#fff")}%7Cweight:${null!==(o=t.strokeWeight)&&void 0!==o?o:1}%7Ccolor:${w(null!==(a=t.strokeColor)&&void 0!==a?a:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(C(t.coordinates))}`;case"polyline":return`&path=weight:${null!==(i=t.strokeWeight)&&void 0!==i?i:1}%7Ccolor:${w(null!==(s=t.strokeColor)&&void 0!==s?s:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(C(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,d.stripTags)(null!==(r=t.text)&&void 0!==r?r:"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""})).join(""))(t)}_=(0,a.gn)([m.component],_);class N extends p.u3{className(){return"UIComboBox"}onReady(){const t=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});t.addListener("place_changed",(()=>{var e,o;const a=t.getPlace();this.j.e.fire(this,"select",null===(e=a.geometry)||void 0===e?void 0:e.location,null===(o=a.geometry)||void 0===o?void 0:o.viewport)}))}async onInput(){}}(0,a.gn)([(0,m.hook)("ready")],N.prototype,"onReady",null),(0,a.gn)([(0,m.watch)("nativeInput:input"),(0,m.debounce)()],N.prototype,"onInput",null),window.JoditGoogleReadyHandler=()=>{v=!0,b&&b.forEach((t=>t()))};class q extends i.S{constructor(){super(...arguments),this.requires=["license","color-picker"],this.buttons=[{group:"media",name:"googleMaps"}],this.dialog=null}className(){return"google-maps"}afterInit(t){t.registerCommand(l,(()=>{this.openMapEditor(null,{})}))}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let e;try{e=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,e),!1}}async openMapEditor(t,e){const o=this.j,a=this.getDialog(),i=this.j.o.googleMaps.saveStateInStorage?a.storage.get(n):void 0,{apiUrl:s}=this.jodit.o.googleMaps;E()||(0,d.appendScriptAsync)(this.jodit,s.replace(/\${([^}]+)}/g,((t,e)=>{var o;return null!==(o=this.get(e))&&void 0!==o?o:""})));const r={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...i,...e},l=new G(a,r,this.j.options);l.container.classList.add(a.getFullElName("map"));const c=new N(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);c.container.classList.add(a.getFullElName("search")),this.j.async.promise((t=>{if(E())return void t(0);const e=()=>{E()?t(0):this.j.async.setTimeout(e,100)};var o;e(),o=t,v?o():b.push(o)})).then((()=>{l.setStatus("ready"),c.setStatus("ready")})),this.j.e.on(c,"select",((t,e)=>{e?l.map.fitBounds(e):t&&(l.state.center=[t.lat(),t.lng()])})),i||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((t=>{l.state.center=[t.coords.latitude,t.coords.longitude]}),(()=>{l.state.center=this.j.o.googleMaps.map.defaultCenter})):l.state.center=this.j.o.googleMaps.map.center),a.setSize(...o.o.googleMaps.dialog.size).setHeader([c," ",(0,u.zx)(o,"eye").onAction((()=>{const t=this.jodit.createInside.element("img");t.src=V(l),t.dataset.googleMaps=btoa(l.json());const e={value:t.outerHTML};this.onAfterGetValueFromEditor(e),o.execCommand("preview",null,e.value)}))]).setContent((0,h.IL)(o,[{name:"Map",icon:"map",content:l},{name:"Settings",content:new D(o,l.state)},{name:"Controls",icon:"menu",content:new _(o,l.state)}])).setFooter([(0,u.zx)(o,"cancel","Cancel","default").onAction((()=>a.close())),(0,u.zx)(o,"ok",t?"Save":"Insert","primary").onAction((()=>{l.destruct(),c.destruct(),a.e.off("beforeClose",p),a.close(),this.insertMap(t,l)}))]).open();const p=()=>{if(l.state.elements.length&&JSON.stringify(l.state.elements)!==JSON.stringify(r.elements)&&!confirm(this.i18n("Are you sure?")))return!1;l.destruct(),c.destruct(),a.e.off("beforeClose",p)};a.e.on("beforeClose",p)}getDialog(){if(!this.dialog){const t=new y.V({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,e){const o=null!=t?t:this.jodit.createInside.element("img");o.src=V(e),o.dataset.googleMaps=btoa(e.json()),t||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,e){this.j.o.googleMaps.useStaticImage||e===g.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,((t,e,o,a,i,s)=>{let r={};try{r=JSON.parse(this.j.ow.atob(i))}catch(t){}return`${e} id="${r.uid}" ${o}data-google-maps${o}=${a}${i}${a}${s}${n=this.j,l=r,`<script class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById('${l.uid}'),\n\t\t\tbox = document.createElement('div'),\n\t\t\tmapBox = document.createElement('div'),\n\t\t\tparentBox = imgMap && imgMap.parentNode,\n\t\t\tassign = Object.assign || function (a, b) {\n\t\t\t\treturn Object.keys(b).reduce(function(acc, key) {\n\t\t\t\t\tacc[key] = b[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, a)\n\t\t\t};\n\n\t\tbox.id = 'b${l.uid}';\n\t\tparentBox ? parentBox.insertBefore(box, imgMap) : document.body.appendChild(box);\n\t\timgMap && box.appendChild(imgMap);\n\t\tbox.appendChild(mapBox);\n\n\t\tif (parentBox && parentBox.style.textAlign === 'center') {\n\t\t\tparentBox.style.margin = '0 auto';\n\t\t}\n\n\t\tbox.style.cssText = imgMap.style.cssText;\n\t\tbox.className = imgMap.className;\n\n\t\tvar w = (imgMap && imgMap.offsetWidth) || ${l.size[0]},\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ${l.size[1]};\n\n\t\tassign(box.style, {\n\t\t\tdisplay: !imgMap.style.cssText ? 'inline-block' : undefined,\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'relative'\n\t\t});\n\n\t\tassign(mapBox.style, {\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'absolute',\n\t\t\tleft: 0,\n\t\t\ttop: 0\n\t\t});\n\n\t\tfunction CreateGMap${l.uid}() {\n\t\t\tif (!mapBox) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = new google.maps.Map(mapBox, assign({\n\t\t\t\tzoom: ${l.zoom},\n\t\t\t\tcenter: { lat: ${l.center[0]}, lng: ${l.center[1]}},\n\t\t\t\tmapType: '${l.type}'\n\t\t\t}, ${JSON.stringify(l.controls)}));\n\n\t\t\tif (${"default"!==l.layer}) {\n\t\t\t\tnew google.maps.${(0,d.ucfirst)(l.layer)}Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t${JSON.stringify(l.elements)}.forEach(function (elm) {\n\t\t\t\tswitch (elm.type) {\n\t\t\t\t\tcase 'marker': {\n\t\t\t\t\t\tvar obj = (new google.maps.Marker({\n\t\t\t\t\t\t\tposition: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\ttitle: elm.title\n\t\t\t\t\t\t}));\n\n\t\t\t\t\t\telm.text && obj.addListener('click', function () {\n\t\t\t\t\t\t\tinfoWindow.setContent(elm.text);\n\t\t\t\t\t\t\tinfoWindow.open(map, this);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'circle': {\n\t\t\t\t\t\t(new google.maps.Circle({\n\t\t\t\t\t\t\tcenter: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tradius: elm.radius,\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'polygon':\n\t\t\t\t\tcase 'polyline': {\n\t\t\t\t\t\tfunction toPath(array) {\n\t\t\t\t\t\t\treturn array.map(function (item) {\n\t\t\t\t\t\t\t\tif (Array.isArray(item[0])) {\n\t\t\t\t\t\t\t\t\treturn toPath(item);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {lat: item[0], lng: item[1]};\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(new google.maps[elm.type === 'polyline' ? 'Polyline' : 'Polygon']({\n\t\t\t\t\t\t\tpath: toPath(elm.coordinates),\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tif (typeof google !== 'undefined' && typeof google.maps !=='undefined' && typeof google.maps.Map !== 'undefined') {\n\t\t\tCreateGMap${l.uid}();\n\t\t} else {\n\t\t\tvar scr = document.createElement('script');\n\t\t\tscr.src = 'https://maps.googleapis.com/maps/api/js?key=${n.o.googleMaps.API_KEY}&language=${n.o.language}&callback=CreateGMap${l.uid}';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/<\/script>`.replace(/[\n\t]+/g,"")}`;var n,l})))}}(0,a.gn)([(0,m.watch)("?:openOnDblClick")],q.prototype,"onOpenOnDblClick",null),(0,a.gn)([(0,m.watch)(":beforeSetNativeEditorValue")],q.prototype,"onBeforeSetNativeEditorValue",null),(0,a.gn)([(0,m.watch)(":afterGetValueFromEditor")],q.prototype,"onAfterGetValueFromEditor",null),s.Jodit.plugins.add("google-maps",q)},70655(t,e,o){"use strict";function a(t,e,o,a){var i,s=arguments.length,r=3>s?e:null===a?a=Object.getOwnPropertyDescriptor(e,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(r=(3>s?i(r):s>3?i(e,o,r):i(e,o))||r);return s>3&&r&&Object.defineProperty(e,o,r),r}o.d(e,{gn(){return a}})},88862(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},40767(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},32207(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},22657(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},26929(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},87526(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},98576(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'}},t=>t(t.s=88943)])}));
|
|
1
|
+
((t,e)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var a in o)("object"==typeof exports?exports:t)[a]=o[a]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[917],{43746(t){"undefined"!=typeof self&&self,t.exports=(t=>{var e={};function o(a){if(e[a])return e[a].exports;var i=e[a]={i:a,l:!1,exports:{}};return t[a].call(i.exports,i,i.exports,o),i.l=!0,i.exports}return o.m=t,o.c=e,o.d=(t,e,a)=>{o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=(t,e)=>{if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(o.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)o.d(a,i,(e=>t[e]).bind(null,i));return a},o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,"a",e),e},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.p="",o(o.s=1)})([(t,e,o)=>{"use strict";var a=o(3);function i(t){return!0===a(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=t=>{var e,o;return!1!==i(t)&&"function"==typeof(e=t.constructor)&&!1!==i(o=e.prototype)&&!1!==o.hasOwnProperty("isPrototypeOf")}},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=e.getLuminance=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.parseColorToRgba=e.parseColorToRgb=e.from=e.createPicker=void 0;var a=(()=>{function t(t,e){for(var o=0;e.length>o;o++){var a=e[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return(e,o,a)=>(o&&t(e.prototype,o),a&&t(e,a),e)})(),i=(t,e)=>{if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return((t,e)=>{var o=[],a=!0,i=!1,s=void 0;try{for(var r,n=t[Symbol.iterator]();!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){i=!0,s=t}finally{try{!a&&n.return&&n.return()}finally{if(i)throw s}}return o})(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=o(2),r=l(o(0)),n=l(o(4));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var h="undefined"!=typeof window&&window.navigator.userAgent.indexOf("Edge")>-1,u="undefined"!=typeof window&&window.navigator.userAgent.indexOf("rv:")>-1,d={id:null,attachTo:"body",showHSL:!0,showRGB:!0,showHEX:!0,showAlpha:!1,color:"#ff0000",palette:null,paletteEditable:!1,useAlphaInPalette:"auto",slBarSize:[232,150],hueBarSize:[150,11],alphaBarSize:[150,11]},g="COLOR",m="RGBA_USER",y="HSLA_USER";function f(t,e,o){return t?t instanceof HTMLElement?t:t instanceof NodeList?t[0]:"string"==typeof t?document.querySelector(t):t.jquery?t.get(0):o?e:null:e}function v(t){var e=t.getContext("2d"),o=+t.width,a=+t.height,r=e.createLinearGradient(1,1,1,a-1);return r.addColorStop(0,"white"),r.addColorStop(1,"black"),{setHue(t){var i=e.createLinearGradient(1,0,o-1,0);i.addColorStop(0,"hsla("+t+", 100%, 50%, 0)"),i.addColorStop(1,"hsla("+t+", 100%, 50%, 1)"),e.fillStyle=r,e.fillRect(0,0,o,a),e.fillStyle=i,e.globalCompositeOperation="multiply",e.fillRect(0,0,o,a),e.globalCompositeOperation="source-over"},grabColor(t,o){return e.getImageData(t,o,1,1).data},findColor(t,e,r){var n=(0,s.rgbToHsv)(t,e,r),l=i(n,3);return[l[1]*o,a-l[2]*a]}}}function b(t,e,o){return null===t?e:/^\s*$/.test(t)?o:!!/true|yes|1/i.test(t)||!/false|no|0/i.test(t)&&e}function C(t,e,o){if(null===t)return e;if(/^\s*$/.test(t))return o;var a=t.split(",").map(Number);return 2===a.length&&a[0]&&a[1]?a:e}var k=function(){function t(e,o){if(c(this,t),o?(e=f(e),this.options=Object.assign({},d,o)):e&&(0,r.default)(e)?(this.options=Object.assign({},d,e),e=f(this.options.attachTo)):(this.options=Object.assign({},d),e=f((0,s.nvl)(e,this.options.attachTo))),!e)throw Error("Container not found: "+this.options.attachTo);!function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"acp-";if(e.hasAttribute(o+"show-hsl")&&(t.showHSL=b(e.getAttribute(o+"show-hsl"),d.showHSL,!0)),e.hasAttribute(o+"show-rgb")&&(t.showRGB=b(e.getAttribute(o+"show-rgb"),d.showRGB,!0)),e.hasAttribute(o+"show-hex")&&(t.showHEX=b(e.getAttribute(o+"show-hex"),d.showHEX,!0)),e.hasAttribute(o+"show-alpha")&&(t.showAlpha=b(e.getAttribute(o+"show-alpha"),d.showAlpha,!0)),e.hasAttribute(o+"palette-editable")&&(t.paletteEditable=b(e.getAttribute(o+"palette-editable"),d.paletteEditable,!0)),e.hasAttribute(o+"sl-bar-size")&&(t.slBarSize=C(e.getAttribute(o+"sl-bar-size"),d.slBarSize,[232,150])),e.hasAttribute(o+"hue-bar-size")&&(t.hueBarSize=C(e.getAttribute(o+"hue-bar-size"),d.hueBarSize,[150,11]),t.alphaBarSize=t.hueBarSize),e.hasAttribute(o+"palette")){var a=e.getAttribute(o+"palette");switch(a){case"PALETTE_MATERIAL_500":t.palette=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":case"":t.palette=s.PALETTE_MATERIAL_CHROME;break;default:t.palette=a.split(/[;|]/)}}e.hasAttribute(o+"color")&&(t.color=e.getAttribute(o+"color"))}(this.options,e),this.H=0,this.S=0,this.L=0,this.R=0,this.G=0,this.B=0,this.A=1,this.palette={},this.element=document.createElement("div"),this.options.id&&(this.element.id=this.options.id),this.element.className="a-color-picker",this.element.innerHTML=n.default,e.appendChild(this.element);var a=this.element.querySelector(".a-color-picker-h");this.setupHueCanvas(a),this.hueBarHelper=v(a),this.huePointer=this.element.querySelector(".a-color-picker-h+.a-color-picker-dot");var i=this.element.querySelector(".a-color-picker-sl");this.setupSlCanvas(i),this.slBarHelper=v(i),this.slPointer=this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"),this.preview=this.element.querySelector(".a-color-picker-preview"),this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")),this.options.showHSL?(this.setupInput(this.inputH=this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")),this.setupInput(this.inputS=this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")),this.setupInput(this.inputL=this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))):this.element.querySelector(".a-color-picker-hsl").remove(),this.options.showRGB?(this.setupInput(this.inputR=this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")),this.setupInput(this.inputG=this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")),this.setupInput(this.inputB=this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))):this.element.querySelector(".a-color-picker-rgb").remove(),this.options.showHEX?this.setupInput(this.inputRGBHEX=this.element.querySelector("input[nameref=RGBHEX]")):this.element.querySelector(".a-color-picker-rgbhex").remove(),this.options.paletteEditable||this.options.palette&&this.options.palette.length>0?this.setPalette(this.paletteRow=this.element.querySelector(".a-color-picker-palette")):(this.paletteRow=this.element.querySelector(".a-color-picker-palette"),this.paletteRow.remove()),this.options.showAlpha?(this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")),this.alphaPointer=this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")):this.element.querySelector(".a-color-picker-alpha").remove(),this.element.style.width=this.options.slBarSize[0]+"px",this.onValueChanged(g,this.options.color)}return a(t,[{key:"setupHueCanvas",value(t){var e=this;t.width=this.options.hueBarSize[0],t.height=this.options.hueBarSize[1];for(var o=t.getContext("2d"),a=o.createLinearGradient(0,0,this.options.hueBarSize[0],0),i=0;1>=i;i+=1/360)a.addColorStop(i,"hsl("+360*i+", 100%, 50%)");o.fillStyle=a,o.fillRect(0,0,this.options.hueBarSize[0],this.options.hueBarSize[1]);var r=o=>{var a=(0,s.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.hueBarSize[0]),i=Math.round(360*a/e.options.hueBarSize[0]);e.huePointer.style.left=a-7+"px",e.onValueChanged("H",i)},n=function t(){document.removeEventListener("mousemove",r),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(t=>{r(t),document.addEventListener("mousemove",r),document.addEventListener("mouseup",n)}))}},{key:"setupSlCanvas",value(t){var e=this;t.width=this.options.slBarSize[0],t.height=this.options.slBarSize[1];var o=o=>{var a=(0,s.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.slBarSize[0]-1),i=(0,s.limit)(o.clientY-t.getBoundingClientRect().top,0,e.options.slBarSize[1]-1),r=e.slBarHelper.grabColor(a,i);e.slPointer.style.left=a-7+"px",e.slPointer.style.top=i-7+"px",e.onValueChanged("RGB",r)},a=function t(){document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(t=>{o(t),document.addEventListener("mousemove",o),document.addEventListener("mouseup",a)}))}},{key:"setupAlphaCanvas",value(t){var e=this;t.width=this.options.alphaBarSize[0],t.height=this.options.alphaBarSize[1];var o=t.getContext("2d"),a=o.createLinearGradient(0,0,t.width-1,0);a.addColorStop(0,"hsla(0, 0%, 50%, 0)"),a.addColorStop(1,"hsla(0, 0%, 50%, 1)"),o.fillStyle=a,o.fillRect(0,0,this.options.alphaBarSize[0],this.options.alphaBarSize[1]);var i=o=>{var a=(0,s.limit)(o.clientX-t.getBoundingClientRect().left,0,e.options.alphaBarSize[0]),i=+(a/e.options.alphaBarSize[0]).toFixed(2);e.alphaPointer.style.left=a-7+"px",e.onValueChanged("ALPHA",i)},r=function t(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",t)};t.addEventListener("mousedown",(t=>{i(t),document.addEventListener("mousemove",i),document.addEventListener("mouseup",r)}))}},{key:"setupInput",value(t){var e=this,o=+t.min,a=+t.max,i=t.getAttribute("nameref");t.hasAttribute("select-on-focus")&&t.addEventListener("focus",(()=>{t.select()})),"text"===t.type?t.addEventListener("change",(()=>{e.onValueChanged(i,t.value)})):((h||u)&&t.addEventListener("keydown",(r=>{"Up"===r.key?(t.value=(0,s.limit)(+t.value+1,o,a),e.onValueChanged(i,t.value),r.returnValue=!1):"Down"===r.key&&(t.value=(0,s.limit)(+t.value-1,o,a),e.onValueChanged(i,t.value),r.returnValue=!1)})),t.addEventListener("change",(()=>{e.onValueChanged(i,(0,s.limit)(+t.value,o,a))})))}},{key:"setupClipboard",value(t){var e=this;t.title="click to copy",t.addEventListener("click",(()=>{t.value=(0,s.parseColor)([e.R,e.G,e.B,e.A],"hexcss4"),t.select(),document.execCommand("copy")}))}},{key:"setPalette",value(t){var e=this,o="auto"===this.options.useAlphaInPalette?this.options.showAlpha:this.options.useAlphaInPalette,a=null;switch(this.options.palette){case"PALETTE_MATERIAL_500":a=s.PALETTE_MATERIAL_500;break;case"PALETTE_MATERIAL_CHROME":a=s.PALETTE_MATERIAL_CHROME;break;default:a=(0,s.ensureArray)(this.options.palette)}if(this.options.paletteEditable||a.length>0){var i=(o,a,i)=>{var s=t.querySelector('.a-color-picker-palette-color[data-color="'+o+'"]')||document.createElement("div");s.className="a-color-picker-palette-color",s.style.backgroundColor=o,s.setAttribute("data-color",o),s.title=o,t.insertBefore(s,a),e.palette[o]=!0,i&&e.onPaletteColorAdd(o)},r=(o,a)=>{o?(t.removeChild(o),e.palette[o.getAttribute("data-color")]=!1,a&&e.onPaletteColorRemove(o.getAttribute("data-color"))):(t.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach((e=>{t.removeChild(e)})),Object.keys(e.palette).forEach((t=>{e.palette[t]=!1})),a&&e.onPaletteColorRemove())};if(a.map((t=>(0,s.parseColor)(t,o?"rgbcss4":"hex"))).filter((t=>!!t)).forEach((t=>i(t))),this.options.paletteEditable){var n=document.createElement("div");n.className="a-color-picker-palette-color a-color-picker-palette-add",n.innerHTML="+",t.appendChild(n),t.addEventListener("click",(t=>{/a-color-picker-palette-add/.test(t.target.className)?t.shiftKey?r(null,!0):i(o?(0,s.parseColor)([e.R,e.G,e.B,e.A],"rgbcss4"):(0,s.rgbToHex)(e.R,e.G,e.B),t.target,!0):/a-color-picker-palette-color/.test(t.target.className)&&(t.shiftKey?r(t.target,!0):e.onValueChanged(g,t.target.getAttribute("data-color")))}))}else t.addEventListener("click",(t=>{/a-color-picker-palette-color/.test(t.target.className)&&e.onValueChanged(g,t.target.getAttribute("data-color"))}))}else t.style.display="none"}},{key:"updatePalette",value(t){this.paletteRow.innerHTML="",this.palette={},this.paletteRow.parentElement||this.element.appendChild(this.paletteRow),this.options.palette=t,this.setPalette(this.paletteRow)}},{key:"onValueChanged",value(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{silent:!1};switch(t){case"H":this.H=e;var a=(0,s.hslToRgb)(this.H,this.S,this.L),r=i(a,3);this.R=r[0],this.G=r[1],this.B=r[2],this.slBarHelper.setHue(e),this.updatePointerH(this.H),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"S":this.S=e;var n=(0,s.hslToRgb)(this.H,this.S,this.L),l=i(n,3);this.R=l[0],this.G=l[1],this.B=l[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"L":this.L=e;var c=(0,s.hslToRgb)(this.H,this.S,this.L),p=i(c,3);this.R=p[0],this.G=p[1],this.B=p[2],this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"R":this.R=e;var h=(0,s.rgbToHsl)(this.R,this.G,this.B),u=i(h,3);this.H=u[0],this.S=u[1],this.L=u[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"G":this.G=e;var d=(0,s.rgbToHsl)(this.R,this.G,this.B),f=i(d,3);this.H=f[0],this.S=f[1],this.L=f[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"B":this.B=e;var v=(0,s.rgbToHsl)(this.R,this.G,this.B),b=i(v,3);this.H=b[0],this.S=b[1],this.L=b[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGBHEX(this.R,this.G,this.B);break;case"RGB":var C=i(e,3);this.R=C[0],this.G=C[1],this.B=C[2];var k=(0,s.rgbToHsl)(this.R,this.G,this.B),w=i(k,3);this.H=w[0],this.S=w[1],this.L=w[2],this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B);break;case m:var E=i(e,4);this.R=E[0],this.G=E[1],this.B=E[2],this.A=E[3];var x=(0,s.rgbToHsl)(this.R,this.G,this.B),A=i(x,3);this.H=A[0],this.S=A[1],this.L=A[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case y:var F=i(e,4);this.H=F[0],this.S=F[1],this.L=F[2],this.A=F[3];var S=(0,s.hslToRgb)(this.H,this.S,this.L),L=i(S,3);this.R=L[0],this.G=L[1],this.B=L[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"RGBHEX":var B=(0,s.cssColorToRgb)(e)||[this.R,this.G,this.B],R=i(B,3);this.R=R[0],this.G=R[1],this.B=R[2];var H=(0,s.rgbToHsl)(this.R,this.G,this.B),M=i(H,3);this.H=M[0],this.S=M[1],this.L=M[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B);break;case g:var T=(0,s.parseColor)(e,"rgba")||[0,0,0,1],I=i(T,4);this.R=I[0],this.G=I[1],this.B=I[2],this.A=I[3];var j=(0,s.rgbToHsl)(this.R,this.G,this.B),P=i(j,3);this.H=P[0],this.S=P[1],this.L=P[2],this.slBarHelper.setHue(this.H),this.updatePointerH(this.H),this.updatePointerSL(this.H,this.S,this.L),this.updateInputHSL(this.H,this.S,this.L),this.updateInputRGB(this.R,this.G,this.B),this.updateInputRGBHEX(this.R,this.G,this.B),this.updatePointerA(this.A);break;case"ALPHA":this.A=e}this.preview.style.backgroundColor=1===this.A?"rgb("+this.R+","+this.G+","+this.B+")":"rgba("+this.R+","+this.G+","+this.B+","+this.A+")",o&&o.silent||this.onchange&&this.onchange(this.preview.style.backgroundColor)}},{key:"onPaletteColorAdd",value(t){this.oncoloradd&&this.oncoloradd(t)}},{key:"onPaletteColorRemove",value(t){this.oncolorremove&&this.oncolorremove(t)}},{key:"updateInputHSL",value(t,e,o){this.options.showHSL&&(this.inputH.value=t,this.inputS.value=e,this.inputL.value=o)}},{key:"updateInputRGB",value(t,e,o){this.options.showRGB&&(this.inputR.value=t,this.inputG.value=e,this.inputB.value=o)}},{key:"updateInputRGBHEX",value(t,e,o){this.options.showHEX&&(this.inputRGBHEX.value=(0,s.rgbToHex)(t,e,o))}},{key:"updatePointerH",value(t){this.huePointer.style.left=this.options.hueBarSize[0]*t/360-7+"px"}},{key:"updatePointerSL",value(t,e,o){var a=(0,s.hslToRgb)(t,e,o),r=i(a,3),n=this.slBarHelper.findColor(r[0],r[1],r[2]),l=i(n,2),c=l[0],p=l[1];c>=0&&(this.slPointer.style.left=c-7+"px",this.slPointer.style.top=p-7+"px")}},{key:"updatePointerA",value(t){this.options.showAlpha&&(this.alphaPointer.style.left=this.options.alphaBarSize[0]*t-7+"px")}}]),t}(),w=function(){function t(e){c(this,t),this.name=e,this.listeners=[]}return a(t,[{key:"on",value(t){t&&this.listeners.push(t)}},{key:"off",value(t){this.listeners=t?this.listeners.filter((e=>e!==t)):[]}},{key:"emit",value(t,e){for(var o=this.listeners.slice(0),a=0;o.length>a;a++)o[a].apply(e,t)}}]),t}();function E(t,e){var o=new k(t,e),a={change:new w("change"),coloradd:new w("coloradd"),colorremove:new w("colorremove")},r=!0,n={},l={get element(){return o.element},get rgb(){return[o.R,o.G,o.B]},set rgb(t){var e=i(t,3),a=e[0],r=e[1],n=e[2],l=[(0,s.limit)(a,0,255),(0,s.limit)(r,0,255),(0,s.limit)(n,0,255)];o.onValueChanged(m,[a=l[0],r=l[1],n=l[2],1])},get hsl(){return[o.H,o.S,o.L]},set hsl(t){var e=i(t,3),a=e[0],r=e[1],n=e[2],l=[(0,s.limit)(a,0,360),(0,s.limit)(r,0,100),(0,s.limit)(n,0,100)];o.onValueChanged(y,[a=l[0],r=l[1],n=l[2],1])},get rgbhex(){return this.all.hex},get rgba(){return[o.R,o.G,o.B,o.A]},set rgba(t){var e=i(t,4),a=e[0],r=e[1],n=e[2],l=e[3],c=[(0,s.limit)(a,0,255),(0,s.limit)(r,0,255),(0,s.limit)(n,0,255),(0,s.limit)(l,0,1)];o.onValueChanged(m,[a=c[0],r=c[1],n=c[2],l=c[3]])},get hsla(){return[o.H,o.S,o.L,o.A]},set hsla(t){var e=i(t,4),a=e[0],r=e[1],n=e[2],l=e[3],c=[(0,s.limit)(a,0,360),(0,s.limit)(r,0,100),(0,s.limit)(n,0,100),(0,s.limit)(l,0,1)];o.onValueChanged(y,[a=c[0],r=c[1],n=c[2],l=c[3]])},get color(){return""+this.all},set color(t){o.onValueChanged(g,t)},setColor(t){o.onValueChanged(g,t,{silent:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},get all(){if(r){var t=[o.R,o.G,o.B,o.A],e=1>o.A?"rgba("+o.R+","+o.G+","+o.B+","+o.A+")":s.rgbToHex.apply(void 0,t);(n=(0,s.parseColor)(t,n)).toString=()=>e,r=!1}return Object.assign({},n)},get onchange(){return a.change&&a.change.listeners[0]},set onchange(t){this.off("change").on("change",t)},get oncoloradd(){return a.coloradd&&a.coloradd.listeners[0]},set oncoloradd(t){this.off("coloradd").on("coloradd",t)},get oncolorremove(){return a.colorremove&&a.colorremove.listeners[0]},set oncolorremove(t){this.off("colorremove").on("colorremove",t)},get palette(){return Object.keys(o.palette).filter((t=>o.palette[t]))},set palette(t){o.updatePalette(t)},show(){o.element.classList.remove("hidden")},hide(){o.element.classList.add("hidden")},toggle(){o.element.classList.toggle("hidden")},on(t,e){return t&&a[t]&&a[t].on(e),this},off(t,e){return t&&a[t]&&a[t].off(e),this},destroy(){a.change.off(),a.coloradd.off(),a.colorremove.off(),o.element.remove(),a=null,o=null}};return o.onchange=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];r=!0,a.change.emit([l].concat(e),l)},o.oncoloradd=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];a.coloradd.emit([l].concat(e),l)},o.oncolorremove=function(){for(var t=arguments.length,e=Array(t),o=0;t>o;o++)e[o]=arguments[o];a.colorremove.emit([l].concat(e),l)},o.element.ctrl=l,l}if("undefined"!=typeof window&&!document.querySelector('head>style[data-source="a-color-picker"]')){var x=""+o(5),A=document.createElement("style");A.setAttribute("type","text/css"),A.setAttribute("data-source","a-color-picker"),A.innerHTML=x,document.querySelector("head").appendChild(A)}e.createPicker=E,e.from=function(t,e){var o=(t=>t?Array.isArray(t)?t:t instanceof HTMLElement?[t]:t instanceof NodeList?[].concat(p(t)):"string"==typeof t?[].concat(p(document.querySelectorAll(t))):t.jquery?t.get():[]:[])(t).map(((t,o)=>{var a=E(t,e);return a.index=o,a}));return o.on=function(t,e){return o.forEach((o=>o.on(t,e))),this},o.off=function(t){return o.forEach((e=>e.off(t))),this},o},e.parseColorToRgb=s.parseColorToRgb,e.parseColorToRgba=s.parseColorToRgba,e.parseColorToHsl=s.parseColorToHsl,e.parseColorToHsla=s.parseColorToHsla,e.parseColor=s.parseColor,e.rgbToHex=s.rgbToHex,e.hslToRgb=s.hslToRgb,e.rgbToHsl=s.rgbToHsl,e.rgbToHsv=s.rgbToHsv,e.rgbToInt=s.rgbToInt,e.intToRgb=s.intToRgb,e.getLuminance=s.getLuminance,e.COLOR_NAMES=s.COLOR_NAMES,e.PALETTE_MATERIAL_500=s.PALETTE_MATERIAL_500,e.PALETTE_MATERIAL_CHROME=s.PALETTE_MATERIAL_CHROME,e.VERSION="1.2.1"},(t,e,o)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nvl=e.ensureArray=e.limit=e.getLuminance=e.parseColor=e.parseColorToHsla=e.parseColorToHsl=e.cssHslaToHsla=e.cssHslToHsl=e.parseColorToRgba=e.parseColorToRgb=e.cssRgbaToRgba=e.cssRgbToRgb=e.cssColorToRgba=e.cssColorToRgb=e.intToRgb=e.rgbToInt=e.rgbToHsv=e.rgbToHsl=e.hslToRgb=e.rgbToHex=e.PALETTE_MATERIAL_CHROME=e.PALETTE_MATERIAL_500=e.COLOR_NAMES=void 0;var a=(t,e)=>{if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return((t,e)=>{var o=[],a=!0,i=!1,s=void 0;try{for(var r,n=t[Symbol.iterator]();!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){i=!0,s=t}finally{try{!a&&n.return&&n.return()}finally{if(i)throw s}}return o})(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=(t=>t&&t.__esModule?t:{default:t})(o(0));function s(t){if(Array.isArray(t)){for(var e=0,o=Array(t.length);t.length>e;e++)o[e]=t[e];return o}return Array.from(t)}var r={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4","indianred ":"#CD5C5C","indigo ":"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function n(t,e,o){return isNaN(t=+t)||e>t?e:t>o?o:t}function l(t,e){return null==t?e:t}function c(t,e,o){var a=[n(t,0,255),n(e,0,255),n(o,0,255)];return"#"+("000000"+((t=a[0])<<16|(e=a[1])<<8|(o=a[2])).toString(16)).slice(-6)}function p(t,e,o){var a=void 0,i=void 0,s=void 0,r=[n(t,0,360)/360,n(e,0,100)/100,n(o,0,100)/100];if(t=r[0],o=r[2],0==(e=r[1]))a=i=s=o;else{var l=(t,e,o)=>(0>o&&(o+=1),o>1&&(o-=1),1/6>o?t+6*(e-t)*o:.5>o?e:2/3>o?t+(e-t)*(2/3-o)*6:t),c=.5>o?o*(1+e):o+e-o*e,p=2*o-c;a=l(p,c,t+1/3),i=l(p,c,t),s=l(p,c,t-1/3)}return[255*a,255*i,255*s].map(Math.round)}function h(t,e,o){var a=[n(t,0,255)/255,n(e,0,255)/255,n(o,0,255)/255],i=Math.max(t=a[0],e=a[1],o=a[2]),s=Math.min(t,e,o),r=void 0,l=void 0,c=(i+s)/2;if(i==s)r=l=0;else{var p=i-s;switch(l=c>.5?p/(2-i-s):p/(i+s),i){case t:r=(e-o)/p+(o>e?6:0);break;case e:r=(o-t)/p+2;break;case o:r=(t-e)/p+4}r/=6}return[360*r,100*l,100*c].map(Math.round)}function u(t,e,o){return t<<16|e<<8|o}function d(t){if(t){var e=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(r[(""+t).toLowerCase()]||t)||[],o=a(e,10),i=o[3],s=o[4],n=o[5],l=o[7],c=o[8],p=o[9];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(n+n,16)];if(void 0!==l)return[parseInt(l,16),parseInt(c,16),parseInt(p,16)]}}function g(t){if(t){var e=/^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(r[(""+t).toLowerCase()]||t)||[],o=a(e,12),i=o[3],s=o[4],n=o[5],l=o[6],c=o[8],p=o[9],h=o[10],u=o[11];if(void 0!==i)return[parseInt(i+i,16),parseInt(s+s,16),parseInt(n+n,16),l?+(parseInt(l+l,16)/255).toFixed(2):1];if(void 0!==c)return[parseInt(c,16),parseInt(p,16),parseInt(h,16),u?+(parseInt(u,16)/255).toFixed(2):1]}}function m(t){if(t){var e=/^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=a(e,4),i=o[2],s=o[3];return o[0]?[n(o[1],0,255),n(i,0,255),n(s,0,255)]:void 0}}function y(t){if(t){var e=/^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=a(e,6),i=o[2],s=o[3],r=o[5];return o[0]?[n(o[1],0,255),n(i,0,255),n(s,0,255),n(l(r,1),0,1)]:void 0}}function f(t){if(Array.isArray(t))return[n(t[0],0,255),n(t[1],0,255),n(t[2],0,255),n(l(t[3],1),0,1)];var e=g(t)||y(t);return e&&3===e.length&&e.push(1),e}function v(t){if(t){var e=/^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(t)||[],o=a(e,4),i=o[2],s=o[3];return o[0]?[n(o[1],0,360),n(i,0,100),n(s,0,100)]:void 0}}function b(t){if(t){var e=/^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(t)||[],o=a(e,6),i=o[2],s=o[3],r=o[5];return o[0]?[n(o[1],0,255),n(i,0,255),n(s,0,255),n(l(r,1),0,1)]:void 0}}function C(t){if(Array.isArray(t))return[n(t[0],0,360),n(t[1],0,100),n(t[2],0,100),n(l(t[3],1),0,1)];var e=b(t);return e&&3===e.length&&e.push(1),e}function k(t,e){switch(e){case"rgb":default:return t.slice(0,3);case"rgbcss":return"rgb("+t[0]+", "+t[1]+", "+t[2]+")";case"rgbcss4":return"rgb("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"rgba":return t;case"rgbacss":return"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")";case"hsl":return h.apply(void 0,s(t));case"hslcss":return"hsl("+(t=h.apply(void 0,s(t)))[0]+", "+t[1]+", "+t[2]+")";case"hslcss4":var o=h.apply(void 0,s(t));return"hsl("+o[0]+", "+o[1]+", "+o[2]+", "+t[3]+")";case"hsla":return[].concat(s(h.apply(void 0,s(t))),[t[3]]);case"hslacss":var a=h.apply(void 0,s(t));return"hsla("+a[0]+", "+a[1]+", "+a[2]+", "+t[3]+")";case"hex":return c.apply(void 0,s(t));case"hexcss4":return c.apply(void 0,s(t))+("00"+parseInt(255*t[3]).toString(16)).slice(-2);case"int":return u.apply(void 0,s(t))}}e.COLOR_NAMES=r,e.PALETTE_MATERIAL_500=["#F44336","#E91E63","#E91E63","#9C27B0","#9C27B0","#673AB7","#673AB7","#3F51B5","#3F51B5","#2196F3","#2196F3","#03A9F4","#03A9F4","#00BCD4","#00BCD4","#009688","#009688","#4CAF50","#4CAF50","#8BC34A","#8BC34A","#CDDC39","#CDDC39","#FFEB3B","#FFEB3B","#FFC107","#FFC107","#FF9800","#FF9800","#FF5722","#FF5722","#795548","#795548","#9E9E9E","#9E9E9E","#607D8B","#607D8B"],e.PALETTE_MATERIAL_CHROME=["#f44336","#e91e63","#9c27b0","#673ab7","#3f51b5","#2196f3","#03a9f4","#00bcd4","#009688","#4caf50","#8bc34a","#cddc39","#ffeb3b","#ffc107","#ff9800","#ff5722","#795548","#9e9e9e","#607d8b"],e.rgbToHex=c,e.hslToRgb=p,e.rgbToHsl=h,e.rgbToHsv=(t,e,o)=>{var a,i=[n(t,0,255)/255,n(e,0,255)/255,n(o,0,255)/255],s=Math.max(t=i[0],e=i[1],o=i[2]),r=Math.min(t,e,o),l=void 0,c=s,p=s-r;if(a=0===s?0:p/s,s==r)l=0;else{switch(s){case t:l=(e-o)/p+(o>e?6:0);break;case e:l=(o-t)/p+2;break;case o:l=(t-e)/p+4}l/=6}return[l,a,c]},e.rgbToInt=u,e.intToRgb=t=>[t>>16&255,t>>8&255,255&t],e.cssColorToRgb=d,e.cssColorToRgba=g,e.cssRgbToRgb=m,e.cssRgbaToRgba=y,e.parseColorToRgb=t=>Array.isArray(t)?t=[n(t[0],0,255),n(t[1],0,255),n(t[2],0,255)]:d(t)||m(t),e.parseColorToRgba=f,e.cssHslToHsl=v,e.cssHslaToHsla=b,e.parseColorToHsl=t=>Array.isArray(t)?t=[n(t[0],0,360),n(t[1],0,100),n(t[2],0,100)]:v(t),e.parseColorToHsla=C,e.parseColor=(t,e)=>{if(e=e||"rgb",null!=t){var o=void 0;if((o=f(t))||(o=C(t))&&(o=[].concat(s(p.apply(void 0,s(o))),[o[3]])))return(0,i.default)(e)?["rgb","rgbcss","rgbcss4","rgba","rgbacss","hsl","hslcss","hslcss4","hsla","hslacss","hex","hexcss4","int"].reduce(((t,e)=>(t[e]=k(o,e),t)),e||{}):k(o,(""+e).toLowerCase())}},e.getLuminance=(t,e,o)=>.2126*(t=.03928>(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(e=.03928>(e/=255)?e/12.92:Math.pow((e+.055)/1.055,2.4))+.0722*(.03928>(o/=255)?o/12.92:Math.pow((o+.055)/1.055,2.4)),e.limit=n,e.ensureArray=t=>t?Array.from(t):[],e.nvl=l},(t,e,o)=>{"use strict";t.exports=t=>null!=t&&"object"==typeof t&&!1===Array.isArray(t)},(t,e)=>{t.exports='<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'},(t,e,o)=>{var a=o(6);t.exports="string"==typeof a?a:""+a},(t,e,o)=>{(t.exports=o(7)(!1)).push([t.i,"/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}",""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((e=>{var o=((t,e)=>{var o=t[1]||"",a=t[3];if(!a)return o;if(e&&"function"==typeof btoa){var i=(t=>"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */")(a),s=a.sources.map((t=>"/*# sourceURL="+a.sourceRoot+t+" */"));return[o].concat(s).concat([i]).join("\n")}return""+o})(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o})).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var a={},i=0;this.length>i;i++){var s=this[i][0];"number"==typeof s&&(a[s]=!0)}for(i=0;t.length>i;i++){var r=t[i];"number"==typeof r[0]&&a[r[0]]||(o&&!r[2]?r[2]=o:o&&(r[2]="("+r[2]+") and ("+o+")"),e.push(r))}},e}}])},88572(t,e,o){"use strict";function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=>typeof t:t=>t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t,a(t)}function i(t,e,o){var i=o.value;if("function"!=typeof i)throw new TypeError("@boundMethod decorator can only be applied to methods not: ".concat(a(i)));var s=!1;return{configurable:!0,get(){if(s||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof i)return i;var o=i.bind(this);return s=!0,Object.defineProperty(this,e,{configurable:!0,get(){return o},set(t){i=t,delete this[e]}}),s=!1,o},set(t){i=t}}}function s(t){var e;return"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype)))),e.forEach((e=>{if("constructor"!==e){var o=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof o.value&&Object.defineProperty(t.prototype,e,i(t,e,o))}})),t}function r(){return 1===arguments.length?s.apply(void 0,arguments):i.apply(void 0,arguments)}o.d(e,{ZP(){return r}})},27618(t,e,o){"use strict";o.d(e,{W(){return l}});var a=o(70655),i=o(86673),s=o(51663),r=o(47643),n=o(88572);let l=class t extends i.u3{className(){return"UIRange"}constructor(t,e){super(t,{...e,type:"hidden"}),this.state={...i.u3.defaultState,min:0,max:100},this.startValue=0,this.startX=0,this.width=100,Object.assign(this.state,e),this.appendUIRange(),this.onChangeSelfValue()}appendUIRange(){const t=this.j.create.div(this.getFullElName("slider"));this.container.appendChild(t);const e=this.j.create.div(this.getFullElName("handle"));t.appendChild(e);const o=this.j.create.div(this.getFullElName("log")),a=this.getElm("label");(0,r.assert)(null!=a,"label element does not exists"),a.appendChild(o)}onDragStart(t){this.startValue=parseFloat(this.value)||0,this.startX=t.clientX;const e=this.getElm("slider");(0,r.assert)(null!=e,"slider element does not exists"),this.width=e.offsetWidth,this.j.e.on(this.j.ow,"mousemove",this.onDrag)}onDrag(t){const{min:e,max:o}=this.state;let a=this.startValue+(t.clientX-this.startX)/this.width*(this.state.max-this.state.min);e>a&&(a=e),a>o&&(a=o),this.value=""+a}onDragEnd(){this.j.e.off(this.j.ow,"mousemove",this.onDrag)}onChangeSelfValue(){const t=this.getElm("handle"),e=parseFloat(this.value)||0;(0,r.assert)(null!=t,"Handle element does not exist"),(0,r.css)(t,{left:(e-this.state.min)/(this.state.max-this.state.min)*100+"%"});const o=this.getElm("log");(0,r.assert)(null!=o,"log element does not exist"),o.innerText=""+e}destruct(){return this.onDragEnd(),super.destruct()}};(0,a.gn)([(0,s.watch)(["handle:mousedown","handle:touchstart"])],l.prototype,"onDragStart",null),(0,a.gn)([n.ZP],l.prototype,"onDrag",null),(0,a.gn)([(0,s.watch)(["j.ow:mouseup","j.ow:touchend"])],l.prototype,"onDragEnd",null),(0,a.gn)([(0,s.watch)(":change")],l.prototype,"onChangeSelfValue",null),l=(0,a.gn)([s.component],l)},6626(t,e,o){"use strict";o.d(e,{T(){return p}});var a=o(70655),i=o(86673),s=o(51663),r=o(47643),n=o(43746),l=o(6293),c=o(36257);let p=class t extends i.u3{className(){return"ColorInput"}constructor(t,e){super(t,e);const o=new i.GI(t);this.popup=o,this.trigger=(0,i.zx)(this.j,"ok");const a=this.getElm("wrapper");(0,r.assert)(null!=a,"wrapper element does not exist"),a.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction((()=>{var t,e;null===(e=(t=this.state).onChange)||void 0===e||e.call(t,this.value),o.close()})),o.setMod("padding",!1).setMod("max-height",!1);const s=this.j.create.div(this.getFullElName("picker")),c=n.createPicker(s,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",((t,e)=>{this.isFocused||(this.value=n.parseColor(e||"","hex"))}));this.j.e.on(this,"change",(()=>{n.parseColor(this.value,"hex")!==c.color&&(c.color=this.value)})),o.setContent(s),this.j.e.on(this.nativeInput,"click",(()=>{o.parentElement=this,this.jodit instanceof l.Dialog&&o.setZIndex(this.jodit.getZIndex()+1),o.open((()=>(0,r.position)(this.container)))})),this.onChangeValue(),this.onChangeSelfValue()}afterSetMode(t,e){"slim"===t&&e&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(t){var e;t.key===c.KEY_ESC&&(null===(e=this.popup)||void 0===e||e.close())}};(0,a.gn)([(0,s.watch)(":change")],p.prototype,"onChangeSelfValue",null),(0,a.gn)([(0,s.watch)("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=(0,a.gn)([s.component],p)},88943(t,e,o){"use strict";o.r(e),o.d(e,{googleMaps(){return q}});var a=o(70655),i=o(10818),s=o(1120),r=o(43854);const n="googleMapsState",l="googleMapsDialog";r.D.prototype.googleMaps={saveStateInStorage:!0,useStaticImage:!1,apiUrl:"https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler",API_KEY:"AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY",dialog:{size:[700,700]},inlineEditorOptions:{buttons:["bold","italic","link","brush","fontsize","image"]},map:{type:"roadmap",layer:"default",center:"auto",defaultCenter:[-34.397,150.644],defaultZoom:10,zoom:10,size:[500,400],defaultStates:{polyline:{strokeColor:"#5ba4f3",strokeWeight:3},polygon:{strokeColor:"#417706",fillColor:"#5b9302",strokeWeight:1,fillOpacity:.5},marker:{},text:{},circle:{strokeColor:"#da767c",fillColor:"#f34ca8",strokeWeight:1,fillOpacity:.5}}}},r.D.prototype.controls.googleMaps={tooltip:"Google Maps",icon:"map",command:l};const c=t=>({icon:"edit-"+t,isActive(e){return e.buffer.get("createMode.gm")===t},exec(e){e.e.fire("changeCreateMode.gm",t)}});r.D.prototype.controls.gm={hand:c("hand"),marker:c("marker"),polyline:c("polyline"),polygon:c("polygon"),circle:c("circle"),text:c("text")};var p=o(86673);p.JO.set("map",o(32207)).set("edit-hand",o(40767)).set("edit-polygon",o(26929)).set("edit-marker",o(22657)).set("edit-text",o(98576)).set("edit-polyline",o(87526)).set("edit-circle",o(88862));var h=o(23963),u=o(18095),d=o(47643),g=o(36257),m=o(51663),y=o(81650),f=o(6293);let v=!1;const b=[];function C(t,e=!1){const o=[];if(Array.isArray(t)){if(!Array.isArray(t[0])&&!Array.isArray(t[1]))return e?{lat:t[0],lng:t[1]}:new google.maps.LatLng(t[0],t[1]);t.forEach((t=>{o.push(C(t,e))}))}return o}function k(t){return t.getArray().map((t=>[t.lat(),t.lng()]))}function w(t){return t.toUpperCase().replace("#","0x").padEnd(10,"F")}function E(){return"undefined"!=typeof google&&void 0!==google.maps&&void 0!==google.maps.Map}function x(t,e,o=!1){const a=this.mapElements[e];if(a.state===t||a.state.type!==t.type)return;const i=a.state;if(!o){let e;for(e in t){const o=t[e],s=i[e];if(null!=o&&(null==s||""+o!=""+s))switch(e){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(a.type){case"polyline":case"circle":case"polygon":a.gme.setOptions({[e]:o})}break;case"coordinates":switch(a.type){case"polygon":case"polyline":a.gme.setPath(C(o))}}}}a.state=t,this.state.elements[e]=t}var A=o(78855);function F(t,e){var o,a,i,s;switch(t.type){case"polyline":case"polygon":{const o=k(t.gme.getPath()),a={...t.state,coordinates:o};x.call(this,a,e,!0);break}case"marker":{const i=t.gme.getPosition(),s={...t.state,coordinates:[null!==(o=null==i?void 0:i.lat())&&void 0!==o?o:0,null!==(a=null==i?void 0:i.lng())&&void 0!==a?a:0]};x.call(this,s,e,!0);break}case"circle":{const o=t.gme.getCenter(),a={...t.state,radius:t.gme.getRadius(),coordinates:[null!==(i=null==o?void 0:o.lat())&&void 0!==i?i:0,null!==(s=null==o?void 0:o.lng())&&void 0!==s?s:0]};x.call(this,a,e,!0);break}}}let S=class t extends p.u1{className(){return"UIWysiwyg"}constructor(t,e,o,a){super(t);const i=this.getElm("editor");(0,d.assert)(null!=i,"editor element does not exist");const r=s.Jodit.make(i,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:t.o.language,direction:t.o.direction,theme:t.o.theme,statusbar:!1,...e});r.value=o,r.e.on("change",(()=>a(r.value)))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};S=(0,a.gn)([m.component],S);class L extends p.qe{className(){return"UIBaseEditor"}render(){return"<div>\n\t\t\t<div class='&__header'></div>\n\t\t\t<div class='&__form'></div>\n\t\t\t<div class='&__buttons'></div>\n\t\t</div>"}onReady(){const t=(0,p.zx)(this.j,"bin").onAction((()=>this.j.e.fire(this,"bin")));this.append(t,"buttons")}constructor(t,e,o){super(t),this.state=e,this.options=o}}let B=class t extends L{onReady(){var t;super.onReady();const e=new S(this.j,this.options.googleMaps.inlineEditorOptions,null!==(t=this.state.text)&&void 0!==t?t:"",(t=>this.j.e.fire(this,"change","text",t)));this.append(e,"form")}};(0,a.gn)([(0,m.hook)("ready")],B.prototype,"onReady",null),B=(0,a.gn)([m.component],B);var R=o(6626);let H=class t extends L{onReady(){var t,e;super.onReady(),this.append([new p.u3(this.j,{label:"Stroke weight",value:null!==(t=this.state.strokeWeight)&&void 0!==t?t:1,type:"number",onChange:t=>this.j.e.fire(this,"change","strokeWeight",t)}),new R.T(this.j,{label:"Stroke color",value:null!==(e=this.state.strokeColor)&&void 0!==e?e:"#000",onChange:t=>this.j.e.fire(this,"change","strokeColor",t)}).setMod("trigger",!1)],"form")}};(0,a.gn)([(0,m.hook)("ready")],H.prototype,"onReady",null),H=(0,a.gn)([m.component],H);var M=o(27618);let T=class t extends H{onReady(){var t,e;this.append([new R.T(this.j,{label:"Fill color",value:null!==(t=this.state.fillColor)&&void 0!==t?t:"#000",onChange:t=>this.j.e.fire(this,"change","fillColor",t)}).setMod("trigger",!1),new M.W(this.j,{label:"Opacity",min:0,max:1,value:null!==(e=this.state.fillOpacity)&&void 0!==e?e:1,onChange:t=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(t)||0)}}).setMod("log",!1)],"form")}};function I(t){const e=this.mapElements.indexOf(t);-1!==e&&(this.mapElements[e].gme.setMap(null),this.mapElements.splice(e,1),this.state.elements.splice(e,1),this.state.elements=[...this.state.elements])}function j(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",(()=>{this.setMod("info-opened",!0)})),t.addListener("closeclick",(()=>{this.setMod("info-opened",!1)})),t}function P(t,e){let o;switch(this.state.mode="hand",t.type){case"polyline":o=new H(this.jodit,t.state,this.options);break;case"marker":o=new B(this.jodit,t.state,this.options);break;case"circle":case"polygon":o=new T(this.jodit,t.state,this.options)}if(!o)return;this.append(o),this.j.e.on(o,"bin",(()=>{I.call(this,t)})).on(o,"change",((o,a)=>{x.call(this,{...t.state,[o]:a},e)}));const a=j.call(this);if("polygon"===t.type||"polyline"===t.type){const e=t.gme.getPath().getAt(0);a.setPosition(e)}"circle"===t.type&&a.setPosition(t.gme.getCenter()),a.setContent(o.container),a.open(this.map,t.gme),a.addListener("closeclick",(()=>{o&&(this.remove(o),o.destruct())}))}function z(t,e){var o;const a=this.mapElements[e];if(a){if(a.state.type===t.type)return x.call(this,t,e);a.gme.setMap(null)}let i;switch(t.type){case"text":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,title:t.text,map:this.map});break;case"marker":i=new google.maps.Marker({position:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),draggable:!0,label:t.showCaption?t.title:"",title:t.title,icon:t.icon?p.JO.get(t.icon):null,map:this.map});break;case"polyline":case"polygon":{const e=C(t.coordinates);i=new google.maps["polygon"===t.type?"Polygon":"Polyline"]({path:e,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===t.type?t.fillOpacity:1})}break;case"circle":i=new google.maps.Circle({center:new google.maps.LatLng(t.coordinates[0],t.coordinates[1]),radius:t.radius,strokeColor:t.strokeColor,fillColor:t.fillColor,strokeWeight:t.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:null!==(o=t.fillOpacity)&&void 0!==o?o:1})}const s={type:t.type,uid:(0,A.fe)(),state:t,gme:i};"dragend radius_changed center_changed".split(" ").forEach((t=>i.addListener(t,(()=>F.call(this,s,e))))),"polygon"!==s.type&&"polyline"!==s.type||"insert_at set_at remove_at".split(" ").forEach((t=>s.gme.getPath().addListener(t,(()=>F.call(this,s,e))))),i.addListener("click",(()=>P.call(this,s,e))),this.mapElements[e]=s}function O(t){var e,o,a,i,s,r,n,l;switch(this.state.mode){case"polyline":case"polygon":{const{mode:e}=this.state;this.state.elements=[...this.state.elements,{type:e,coordinates:k(t.getPath()),...this.options.googleMaps.map.defaultStates[e]}];break}case"circle":{const s=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(o=null===(e=s.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:0,null!==(i=null===(a=s.getCenter())||void 0===a?void 0:a.lng())&&void 0!==i?i:0],radius:s.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break}case"marker":{const e=t;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[null!==(r=null===(s=e.getPosition())||void 0===s?void 0:s.lat())&&void 0!==r?r:0,null!==(l=null===(n=e.getPosition())||void 0===n?void 0:n.lng())&&void 0!==l?l:0],...this.options.googleMaps.map.defaultStates.marker}];break}}}(0,a.gn)([(0,m.hook)("ready")],T.prototype,"onReady",null),T=(0,a.gn)([m.component],T);class G extends p.qe{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");(0,d.assert)(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(()=>{var t;this.state.zoom=null!==(t=this.map.getZoom())&&void 0!==t?t:10})),this.map.addListener("center_changed",(()=>{var t,e,o,a,i,s;this.state.center=[null!==(o=null===(e=null===(t=this.map)||void 0===t?void 0:t.getCenter())||void 0===e?void 0:e.lat())&&void 0!==o?o:55,null!==(s=null===(i=null===(a=this.map)||void 0===a?void 0:a.getCenter())||void 0===i?void 0:i.lng())&&void 0!==s?s:34]})),this.map.addListener("maptypeid_changed",(()=>{const t=this.map.getMapTypeId();t&&(this.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((()=>{this.j.e.fire(this,"GoogleMapsIsReady")}))}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",(t=>{t.overlay&&(O.call(this,t.overlay),t.overlay.setMap(null))}))}catch(t){}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){var t;this.j.buffer.set("createMode.gm",this.state.mode),null===(t=this.drawingManager)||void 0===t||t.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;e.length>t.length&&e.slice(t.length).forEach((t=>{t.gme.setMap(null)})),e.length=t.length,t.forEach(((t,e)=>z.call(this,t,e)))}onChangeCenter(){const t=this.map.getCenter();(null==t?void 0:t.lat())===this.state.center[0]&&(null==t?void 0:t.lng())===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){var t;null===(t=this.map)||void 0===t||t.setZoom(this.state.zoom)}onChangeControls(){var t;let e;for(e in this.state.controls)null===(t=this.map)||void 0===t||t.set(e,this.state.controls[e])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(n,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");(0,d.assert)(null!=t,"map-size element does not exists"),(0,d.css)(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach((t=>t.setMap(null))),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((t=>t.setMap(this.map)))}render(){return"<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>"}appendChildToContainer(){}constructor(t,e,o){super(t),this.options=o,this.toolbar=new f.ToolbarCollection(this.jodit),this.state={uid:"jd"+(0,A.fe)()+(""+new Date).replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const a=this.getElm("map-palette");(0,d.assert)(null!=a,"palette element does not exists"),a.appendChild(this.toolbar.container)}}(0,a.gn)([(0,m.hook)("ready")],G.prototype,"onReady",null),(0,a.gn)([(0,m.watch)("?:changeCreateMode.gm")],G.prototype,"changeCreateMode",null),(0,a.gn)([(0,m.watch)("state.mode")],G.prototype,"onChangeMode",null),(0,a.gn)([(0,m.watch)("state.elements")],G.prototype,"onChangeElementsList",null),(0,a.gn)([(0,m.watch)("state.center"),(0,m.wait)((t=>t.mapInitialized)),(0,m.debounce)()],G.prototype,"onChangeCenter",null),(0,a.gn)([(0,m.watch)("state.zoom"),(0,m.debounce)()],G.prototype,"onChangeZoom",null),(0,a.gn)([(0,m.watch)("state.controls")],G.prototype,"onChangeControls",null),(0,a.gn)([(0,m.watch)(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),(0,m.wait)((t=>t.mapInitialized)),(0,m.debounce)()],G.prototype,"onChangeBound",null),(0,a.gn)([(0,m.watch)("state.size"),(0,m.debounce)()],G.prototype,"onChangeSize",null),(0,a.gn)([(0,m.watch)("state.type")],G.prototype,"onChangeMapType",null),(0,a.gn)([(0,m.watch)("state.layer")],G.prototype,"onChangeLayer",null);let D=class t extends p.x4{className(){return"UIMapsPropsForm"}constructor(t,e){var o;super(t),this.state=e;const[a,i]=e.size,[s,r]=e.center;this.append([new p.u3(t,{label:"Width",name:"width",value:a,type:"number",onChange:this.onChangeSize}),new p.u3(t,{label:"Height",name:"height",value:i,type:"number",onChange:this.onChangeSize}),new p.u3(t,{label:"Latitude",name:"lat",value:s,onChange:this.onChangeCenter}),new p.u3(t,{label:"Longitude",name:"lng",value:r,onChange:this.onChangeCenter}),new p.Cj(t,{label:"Map type",value:e.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange(t){e.type=t}}),new p.Cj(t,{label:"Layer",value:null!==(o=e.layer)&&void 0!==o?o:"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange(t){e.layer=t}})])}onChangeSize(){const{width:t,height:e}=(0,d.refs)(this);this.state.size=[parseInt(null==t?void 0:t.value,10)||0,parseInt(null==e?void 0:e.value,10)||0]}onExternalChangeSize(){const{width:t,height:e}=(0,d.refs)(this),[o,a]=this.state.size;""+o!==t.value&&(t.value=""+o),""+a!==e.value&&(e.value=""+a)}onChangeCenter(){const{lat:t,lng:e}=(0,d.refs)(this);this.state.center=[parseFloat(null==t?void 0:t.value)||0,parseFloat(null==e?void 0:e.value)||0]}onExternalChangeCenter(){const{lat:t,lng:e}=(0,d.refs)(this),[o,a]=this.state.center;""+o!==t.value&&(t.value=""+o),""+a!==e.value&&(e.value=""+a)}onExternalChangeType(){const{mapType:t}=(0,d.refs)(this);this.state.type!==t.value&&(t.value=this.state.type)}onExternalChangeLayer(){const{layer:t}=(0,d.refs)(this);this.state.layer!==t.value&&(t.value=this.state.layer)}};(0,a.gn)([m.autobind],D.prototype,"onChangeSize",null),(0,a.gn)([(0,m.watch)("state.size")],D.prototype,"onExternalChangeSize",null),(0,a.gn)([m.autobind],D.prototype,"onChangeCenter",null),(0,a.gn)([(0,m.watch)(["state.center"])],D.prototype,"onExternalChangeCenter",null),(0,a.gn)([(0,m.watch)(["state.type"])],D.prototype,"onExternalChangeType",null),(0,a.gn)([(0,m.watch)(["state.layer"])],D.prototype,"onExternalChangeLayer",null),D=(0,a.gn)([m.component],D);let _=class t extends p.x4{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const o={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"};this.append(Object.keys(o).map((e=>new p.mA(t,{label:o[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};function V(t){const{state:e}=t;return"https://maps.googleapis.com/maps/api/staticmap?center="+e.center.join(",")+"&zoom="+e.zoom+"&size="+e.size.join("x")+"&maptype="+e.type+"&key="+t.options.googleMaps.API_KEY+(t=>t.state.elements.map((t=>{var e,o,a,i,s,r;switch(t.type){case"polygon":return`&path=fillcolor:${w(null!==(e=t.fillColor)&&void 0!==e?e:"#fff")}%7Cweight:${null!==(o=t.strokeWeight)&&void 0!==o?o:1}%7Ccolor:${w(null!==(a=t.strokeColor)&&void 0!==a?a:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(C(t.coordinates))}`;case"polyline":return`&path=weight:${null!==(i=t.strokeWeight)&&void 0!==i?i:1}%7Ccolor:${w(null!==(s=t.strokeColor)&&void 0!==s?s:"#fff")}%7Cenc:${google.maps.geometry.encoding.encodePath(C(t.coordinates))}`;case"marker":return`&markers=color:blue%7Clabel:${encodeURIComponent((0,d.stripTags)(null!==(r=t.text)&&void 0!==r?r:"").charAt(0).toUpperCase())}%7C${t.coordinates}`}return""})).join(""))(t)}_=(0,a.gn)([m.component],_);class N extends p.u3{className(){return"UIComboBox"}onReady(){const t=new google.maps.places.Autocomplete(this.nativeInput,{fields:["address_components","geometry","name"],types:["geocode"]});t.addListener("place_changed",(()=>{var e,o;const a=t.getPlace();this.j.e.fire(this,"select",null===(e=a.geometry)||void 0===e?void 0:e.location,null===(o=a.geometry)||void 0===o?void 0:o.viewport)}))}async onInput(){}}(0,a.gn)([(0,m.hook)("ready")],N.prototype,"onReady",null),(0,a.gn)([(0,m.watch)("nativeInput:input"),(0,m.debounce)()],N.prototype,"onInput",null),window.JoditGoogleReadyHandler=()=>{v=!0,b&&b.forEach((t=>t()))};class q extends i.S{constructor(){super(...arguments),this.requires=["license","color-picker"],this.buttons=[{group:"media",name:"googleMaps"}],this.dialog=null}className(){return"google-maps"}afterInit(t){t.registerCommand(l,(()=>{this.openMapEditor(null,{})}))}beforeDestruct(t){}onOpenOnDblClick(t){if(t.dataset.googleMaps){let e;try{e=JSON.parse(this.j.ow.atob(t.dataset.googleMaps))}catch(t){}return this.openMapEditor(t,e),!1}}async openMapEditor(t,e){const o=this.j,a=this.getDialog(),i=this.j.o.googleMaps.saveStateInStorage?a.storage.get(n):void 0,{apiUrl:s}=this.jodit.o.googleMaps;E()||(0,d.appendScriptAsync)(this.jodit,s.replace(/\${([^}]+)}/g,((t,e)=>{var o;return null!==(o=this.get(e))&&void 0!==o?o:""})));const r={type:this.j.o.googleMaps.map.type,layer:this.j.o.googleMaps.map.layer,size:this.j.o.googleMaps.map.size,...i,...e},l=new G(a,r,this.j.options);l.container.classList.add(a.getFullElName("map"));const c=new N(o,{icon:"search",placeholder:"Search",clearButton:!0}).setMod("in-header",!0);c.container.classList.add(a.getFullElName("search")),this.j.async.promise((t=>{if(E())return void t(0);const e=()=>{E()?t(0):this.j.async.setTimeout(e,100)};var o;e(),o=t,v?o():b.push(o)})).then((()=>{l.setStatus("ready"),c.setStatus("ready")})),this.j.e.on(c,"select",((t,e)=>{e?l.map.fitBounds(e):t&&(l.state.center=[t.lat(),t.lng()])})),i||("auto"===this.j.o.googleMaps.map.center?navigator.geolocation.getCurrentPosition((t=>{l.state.center=[t.coords.latitude,t.coords.longitude]}),(()=>{l.state.center=this.j.o.googleMaps.map.defaultCenter})):l.state.center=this.j.o.googleMaps.map.center),a.setSize(...o.o.googleMaps.dialog.size).setHeader([c," ",(0,u.zx)(o,"eye").onAction((()=>{const t=this.jodit.createInside.element("img");t.src=V(l),t.dataset.googleMaps=btoa(l.json());const e={value:t.outerHTML};this.onAfterGetValueFromEditor(e),o.execCommand("preview",null,e.value)}))]).setContent((0,h.IL)(o,[{name:"Map",icon:"map",content:l},{name:"Settings",content:new D(o,l.state)},{name:"Controls",icon:"menu",content:new _(o,l.state)}])).setFooter([(0,u.zx)(o,"cancel","Cancel","default").onAction((()=>a.close())),(0,u.zx)(o,"ok",t?"Save":"Insert","primary").onAction((()=>{l.destruct(),c.destruct(),a.e.off("beforeClose",p),a.close(),this.insertMap(t,l)}))]).open();const p=()=>{if(l.state.elements.length&&JSON.stringify(l.state.elements)!==JSON.stringify(r.elements)&&!confirm(this.i18n("Are you sure?")))return!1;l.destruct(),c.destruct(),a.e.off("beforeClose",p)};a.e.on("beforeClose",p)}getDialog(){if(!this.dialog){const t=new y.V({language:this.j.o.language});t.container.classList.add(this.getFullElName("")),this.dialog=t}return this.dialog}insertMap(t,e){const o=null!=t?t:this.jodit.createInside.element("img");o.src=V(e),o.dataset.googleMaps=btoa(e.json()),t||this.jodit.s.insertImage(o)}onBeforeSetNativeEditorValue(t){t.value=t.value.replace(/<script[^>]+jodit-google-maps-init[^>]+>.*?<\/script>/gs,"")}onAfterGetValueFromEditor(t,e){this.j.o.googleMaps.useStaticImage||e===g.SOURCE_CONSUMER||(t.value=t.value.replace(/(<img[^>]+)(["']?)data-google-maps\2\s*=(["'])([^"']+)\3([^>]*>)/gs,((t,e,o,a,i,s)=>{let r={};try{r=JSON.parse(this.j.ow.atob(i))}catch(t){}return`${e} id="${r.uid}" ${o}data-google-maps${o}=${a}${i}${a}${s}${n=this.j,l=r,`<script class="jodit-google-maps-init" type="text/javascript">\n\t\tvar imgMap = document.getElementById('${l.uid}'),\n\t\t\tbox = document.createElement('div'),\n\t\t\tmapBox = document.createElement('div'),\n\t\t\tparentBox = imgMap && imgMap.parentNode,\n\t\t\tassign = Object.assign || function (a, b) {\n\t\t\t\treturn Object.keys(b).reduce(function(acc, key) {\n\t\t\t\t\tacc[key] = b[key];\n\t\t\t\t\treturn acc;\n\t\t\t\t}, a)\n\t\t\t};\n\n\t\tbox.id = 'b${l.uid}';\n\t\tparentBox ? parentBox.insertBefore(box, imgMap) : document.body.appendChild(box);\n\t\timgMap && box.appendChild(imgMap);\n\t\tbox.appendChild(mapBox);\n\n\t\tif (parentBox && parentBox.style.textAlign === 'center') {\n\t\t\tparentBox.style.margin = '0 auto';\n\t\t}\n\n\t\tbox.style.cssText = imgMap.style.cssText;\n\t\tbox.className = imgMap.className;\n\n\t\tvar w = (imgMap && imgMap.offsetWidth) || ${l.size[0]},\n\t\t\t\th = (imgMap && imgMap.offsetHeight) || ${l.size[1]};\n\n\t\tassign(box.style, {\n\t\t\tdisplay: !imgMap.style.cssText ? 'inline-block' : undefined,\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'relative'\n\t\t});\n\n\t\tassign(mapBox.style, {\n\t\t\twidth: w + 'px',\n\t\t\theight: h + 'px',\n\t\t\tposition: 'absolute',\n\t\t\tleft: 0,\n\t\t\ttop: 0\n\t\t});\n\n\t\tfunction CreateGMap${l.uid}() {\n\t\t\tif (!mapBox) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar map = new google.maps.Map(mapBox, assign({\n\t\t\t\tzoom: ${l.zoom},\n\t\t\t\tcenter: { lat: ${l.center[0]}, lng: ${l.center[1]}},\n\t\t\t\tmapType: '${l.type}'\n\t\t\t}, ${JSON.stringify(l.controls)}));\n\n\t\t\tif (${"default"!==l.layer}) {\n\t\t\t\tnew google.maps.${(0,d.ucfirst)(l.layer)}Layer().setMap(map);\n\t\t\t}\n\n\t\t\tvar infoWindow = new google.maps.InfoWindow();\n\n\t\t\t${JSON.stringify(l.elements)}.forEach(function (elm) {\n\t\t\t\tswitch (elm.type) {\n\t\t\t\t\tcase 'marker': {\n\t\t\t\t\t\tvar obj = (new google.maps.Marker({\n\t\t\t\t\t\t\tposition: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t\ttitle: elm.title\n\t\t\t\t\t\t}));\n\n\t\t\t\t\t\telm.text && obj.addListener('click', function () {\n\t\t\t\t\t\t\tinfoWindow.setContent(elm.text);\n\t\t\t\t\t\t\tinfoWindow.open(map, this);\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'circle': {\n\t\t\t\t\t\t(new google.maps.Circle({\n\t\t\t\t\t\t\tcenter: {lat: elm.coordinates[0], lng: elm.coordinates[1]},\n\t\t\t\t\t\t\tradius: elm.radius,\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\t\t\t\t\tcase 'polygon':\n\t\t\t\t\tcase 'polyline': {\n\t\t\t\t\t\tfunction toPath(array) {\n\t\t\t\t\t\t\treturn array.map(function (item) {\n\t\t\t\t\t\t\t\tif (Array.isArray(item[0])) {\n\t\t\t\t\t\t\t\t\treturn toPath(item);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treturn {lat: item[0], lng: item[1]};\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t(new google.maps[elm.type === 'polyline' ? 'Polyline' : 'Polygon']({\n\t\t\t\t\t\t\tpath: toPath(elm.coordinates),\n\t\t\t\t\t\t\tstrokeColor: elm.strokeColor,\n\t\t\t\t\t\t\tfillColor: elm.fillColor,\n\t\t\t\t\t\t\tstrokeWeight: elm.strokeWeight,\n\t\t\t\t\t\t\tfillOpacity: elm.fillOpacity,\n\t\t\t\t\t\t\tmap: map,\n\t\t\t\t\t\t}));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t})\n\t\t}\n\n\t\tif (typeof google !== 'undefined' && typeof google.maps !=='undefined' && typeof google.maps.Map !== 'undefined') {\n\t\t\tCreateGMap${l.uid}();\n\t\t} else {\n\t\t\tvar scr = document.createElement('script');\n\t\t\tscr.src = 'https://maps.googleapis.com/maps/api/js?key=${n.o.googleMaps.API_KEY}&language=${n.o.language}&callback=CreateGMap${l.uid}';\n\t\t\tdocument.appendChild(scr);\n\t\t}\n\t\t/*]]>*/<\/script>`.replace(/[\n\t]+/g,"")}`;var n,l})))}}(0,a.gn)([(0,m.watch)("?:openOnDblClick")],q.prototype,"onOpenOnDblClick",null),(0,a.gn)([(0,m.watch)(":beforeSetNativeEditorValue")],q.prototype,"onBeforeSetNativeEditorValue",null),(0,a.gn)([(0,m.watch)(":afterGetValueFromEditor")],q.prototype,"onAfterGetValueFromEditor",null),s.Jodit.plugins.add("google-maps",q)},70655(t,e,o){"use strict";function a(t,e,o,a){var i,s=arguments.length,r=3>s?e:null===a?a=Object.getOwnPropertyDescriptor(e,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,o,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(r=(3>s?i(r):s>3?i(e,o,r):i(e,o))||r);return s>3&&r&&Object.defineProperty(e,o,r),r}o.d(e,{gn(){return a}})},88862(t){t.exports='<svg viewBox="0 0 83 84" fill="none" xmlns="http://www.w3.org/2000/svg"> <circle cx="40" cy="44" r="37" stroke="black" stroke-width="6"/> <path d="M40 4V44H79" stroke="black" stroke-width="5"/> <circle cx="40" cy="6" r="6" fill="#C8C8C8"/> <circle cx="40" cy="43" r="6" fill="#C8C8C8"/> <circle cx="77" cy="44" r="6" fill="#C8C8C8"/> </svg>'},40767(t){t.exports='<svg viewBox="0 0 76 76" xmlns="http://www.w3.org/2000/svg"> <path d="M38 6.90909C36.2517 6.90909 34.7591 7.58381 33.5221 8.93324C32.2852 10.2827 31.6667 11.911 31.6667 13.8182V20.7273H30.0833V15.7074C30.0833 13.9801 29.5556 12.5137 28.5 11.3082C27.4444 10.1027 26.125 9.5 24.5417 9.5C23.0243 9.5 21.7214 10.0938 20.6328 11.2813C19.5443 12.4688 19 13.8902 19 15.5455V38.7017L17.4167 37.0824V27.7983C17.4167 26.071 16.8889 24.6046 15.8333 23.3991C14.7778 22.1937 13.4583 21.5909 11.875 21.5909C10.3576 21.5909 9.05469 22.1847 7.96615 23.3722C6.8776 24.5597 6.33333 25.9811 6.33333 27.6364V39.7273C6.33333 41.4186 6.91059 42.8939 8.0651 44.1534L23.4036 60.1307C24.6901 61.5341 25.3333 63.3693 25.3333 65.6364C25.3333 66.572 25.6467 67.3816 26.2734 68.0653C26.9002 68.7491 27.6424 69.0909 28.5 69.0909H60.1667C61.0243 69.0909 61.7665 68.7491 62.3932 68.0653C63.02 67.3816 63.3333 66.572 63.3333 65.6364V64.2869C63.3333 62.8116 63.4983 61.4261 63.8281 60.1307L69.1719 36.5966C69.5017 35.3011 69.6667 33.9157 69.6667 32.4403V19.1619C69.6667 17.4347 69.1389 15.9683 68.0833 14.7628C67.0278 13.5573 65.7083 12.9545 64.125 12.9545C62.6076 12.9545 61.3047 13.5483 60.2161 14.7358C59.1276 15.9233 58.5833 17.3447 58.5833 19V20.7273H57V13.9801C57 12.5407 56.5877 11.2363 55.763 10.0668C54.9384 8.89725 53.8828 8.16856 52.5964 7.88068C52.1345 7.80871 51.7552 7.77273 51.4583 7.77273C49.941 7.77273 48.638 8.36648 47.5495 9.55398C46.4609 10.7415 45.9167 12.1629 45.9167 13.8182V20.7273H44.3333V14.142C44.3333 12.3068 43.7973 10.6965 42.7253 9.31108C41.6532 7.92566 40.2925 7.14299 38.6432 6.96307C38.4783 6.92708 38.2639 6.90909 38 6.90909ZM38 0C40.7708 0 43.2283 0.899621 45.3724 2.69886C47.2526 1.47538 49.2813 0.863636 51.4583 0.863636C53.4045 0.863636 55.2352 1.34943 56.9505 2.32102C58.6658 3.29261 60.0842 4.66004 61.2057 6.4233C62.0964 6.1714 63.0694 6.04545 64.125 6.04545C67.4236 6.04545 70.2274 7.33191 72.5365 9.90483C74.8455 12.4777 76 15.5634 76 19.1619V32.4403C76 34.2756 75.7856 36.2188 75.3568 38.2699L69.9635 61.804C69.7656 62.6676 69.6667 63.9451 69.6667 65.6364C69.6667 68.5152 68.7431 70.9621 66.8958 72.9773C65.0486 74.9924 62.8056 76 60.1667 76H28.5C25.7292 76 23.4531 74.9474 21.6719 72.8423C19.8906 70.7372 19 68.1733 19 65.1506L3.76042 49.1733C1.25347 46.5464 0 43.3977 0 39.7273V27.6364C0 24.0739 1.16276 21.0241 3.48828 18.4872C5.8138 15.9503 8.60938 14.6818 11.875 14.6818C12.2378 14.6818 12.5017 14.6998 12.6667 14.7358C12.8646 11.3172 14.1098 8.43845 16.4023 6.09943C18.6949 3.76042 21.408 2.59091 24.5417 2.59091C26.2569 2.59091 27.8733 2.96875 29.3906 3.72443C31.7656 1.24148 34.6354 0 38 0Z"/> </svg>'},32207(t){t.exports='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M23,13.6l5,5V4c0-0.6-0.4-1-1-1h-4V13.6z"/> <polygon points="12.4,3 16.7,7.3 19.7,10.3 21,11.6 21,3"/> <path d="M14.6,8l-5-5H5C4.4,3,4,3.4,4,4v14.6L14.6,8z"/> </g> <path d="M28.8,29.2L26,26.4c0.7-1,1-2.1,1-3.4c0-3.3-2.7-6-6-6s-6,2.7-6,6s2.7,6,6,6c1.2,0,2.4-0.4,3.4-1l2.8,2.8 c0.4,0.4,1.2,0.4,1.6,0C29.2,30.4,29.2,29.6,28.8,29.2z"/> <path d="M13,23c0-4.4,3.6-8,8-8c0.2,0,0.4,0,0.6,0l-0.3-0.3c0,0,0,0,0,0l-3-3L16,9.4l-12,12V26c0,0.6,0.4,1,1,1h9.1 C13.4,25.8,13,24.5,13,23z"/> </svg>'},22657(t){t.exports='<svg viewBox="0 0 88 88" fill="none" xmlns="http://www.w3.org/2000/svg"> <g> <path d="M44 0.513519C27.2931 0.513519 13.75 13.8981 13.75 30.4095C13.75 46.9208 44 87.4835 44 87.4835C44 87.4835 74.25 46.9208 74.25 30.4095C74.25 13.8981 60.7069 0.513519 44 0.513519ZM19.25 30.4095C19.25 16.921 30.3518 5.94914 44 5.94914C57.6482 5.94914 68.75 16.921 68.75 30.4095C68.75 39.8049 54.9945 62.4871 44 78.1329C33.0055 62.4871 19.25 39.8049 19.25 30.4095ZM44 16.8204C36.4052 16.8204 30.25 22.9035 30.25 30.4095C30.25 37.9154 36.4052 43.9985 44 43.9985C51.5948 43.9985 57.75 37.9154 57.75 30.4095C57.75 22.9035 51.5948 16.8204 44 16.8204ZM44 38.5629C39.4508 38.5629 35.75 34.9054 35.75 30.4095C35.75 25.9135 39.4508 22.256 44 22.256C48.5492 22.256 52.25 25.9135 52.25 30.4095C52.25 34.9054 48.5492 38.5629 44 38.5629Z" fill="#404040"/> </g> <defs> <rect width="88" height="86.97" fill="white" transform="translate(0 0.513519)"/> </defs> </svg>'},26929(t){t.exports='<svg viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M7 38.6056L33.1367 7.96263L69.5477 45.7058L36.2444 72.166L7 76.9673V38.6056Z" stroke="black" stroke-width="6"/> <circle cx="71" cy="45" r="6" fill="#C8C8C8"/> <circle cx="35" cy="73" r="6" fill="#C8C8C8"/> <circle cx="6" cy="79" r="6" fill="#C8C8C8"/> <circle cx="6" cy="39" r="6" fill="#C8C8C8"/> <circle cx="33" cy="6" r="6" fill="#C8C8C8"/> </svg>'},87526(t){t.exports='<svg width="72" height="86" viewBox="0 0 72 86" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M17.1832 79.1351L13.6833 45.0811L49.6832 58.4595L47.6832 5.35135" stroke="black" stroke-width="6"/> <circle cx="13" cy="44" r="6" fill="#C8C8C8"/> <circle cx="17" cy="77" r="6" fill="#C8C8C8"/> <circle cx="51" cy="59" r="6" fill="#C8C8C8"/> <circle cx="48" cy="6" r="6" fill="#C8C8C8"/> </svg>'},98576(t){t.exports='<svg viewBox="0 0 47 61" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M46.7671 7.12793H27.3433V61H19.416V7.12793H0.0336914V0.570312H46.7671V7.12793Z" fill="black"/> </svg>'}},t=>t(t.s=88943)])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{41520:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.googleSearch=void 0;var n=t(70655),r=t(
|
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var n in t)("object"==typeof exports?exports:e)[n]=t[n]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{41520:function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.googleSearch=void 0;var n=t(70655),r=t(10818),i=t(43854),s=t(47643),l=t(13576),c=t(97029);i.Config.prototype.controls.google={tooltip:"Google search",icon:t(27769),isDisabled:function(e){return(0,l.isEditorEmpty)(e.editor)},command:"startSearch"};var u=function(e){function o(){var o=null!==e&&e.apply(this,arguments)||this;return o.requires=["license"],o.buttons=[{name:"google",group:"search"}],o}return n.__extends(o,e),o.prototype.afterInit=function(e){e.registerCommand("startSearch",{exec:function(){var o,t,n,r,i=e.s;if(r=i.isCollapsed()?null===(t=null===(o=i.current())||void 0===o?void 0:o.parentElement)||void 0===t?void 0:t.innerText:null===(n=i.sel)||void 0===n?void 0:n.toString()){var l="https://www.google.com/search?q="+encodeURIComponent((0,s.trim)(r));window.open(l,"_blank")}}})},o.prototype.beforeDestruct=function(e){},o}(r.Plugin);o.googleSearch=u,c.Jodit.plugins.add("google-search",u)},27769:function(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'}},function(e){return e(e.s=41520)}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
((e,o)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{41520(e,o,t){"use strict";t.r(o),t.d(o,{googleSearch(){return c}});var r=t(
|
|
1
|
+
((e,o)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=o();else if("function"==typeof define&&define.amd)define([],o);else{var t=o();for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[799],{41520(e,o,t){"use strict";t.r(o),t.d(o,{googleSearch(){return c}});var r=t(10818),s=t(43854),n=t(47643),i=t(93549),l=t(1120);s.D.prototype.controls.google={tooltip:"Google search",icon:t(27769),isDisabled:e=>(0,i.u)(e.editor),command:"startSearch"};class c extends r.S{constructor(){super(...arguments),this.requires=["license"],this.buttons=[{name:"google",group:"search"}]}afterInit(e){e.registerCommand("startSearch",{exec(){var o,t,r;let s;const{s:i}=e;if(s=i.isCollapsed()?null===(t=null===(o=i.current())||void 0===o?void 0:o.parentElement)||void 0===t?void 0:t.innerText:null===(r=i.sel)||void 0===r?void 0:""+r,s){const e="https://www.google.com/search?q="+encodeURIComponent((0,n.trim)(s));window.open(e,"_blank")}}})}beforeDestruct(e){}}l.Jodit.plugins.add("google-search",c)},27769(e){e.exports='<svg width="11" height="15" viewBox="0 0 11 15" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M10.925 7.122V14H9.747L9.462 13.164C9.044 13.4933 8.55 13.7467 7.98 13.924C7.42267 14.1013 6.82733 14.19 6.194 14.19C5.054 14.19 4.066 13.9177 3.23 13.373C2.394 12.8157 1.75433 12.024 1.311 10.998C0.867667 9.972 0.646 8.756 0.646 7.35C0.646 5.96933 0.880333 4.766 1.349 3.74C1.83033 2.714 2.50167 1.92233 3.363 1.365C4.237 0.794999 5.25667 0.509999 6.422 0.509999C7.41 0.509999 8.284 0.693666 9.044 1.061C9.804 1.42833 10.3613 1.935 10.716 2.581L9.747 3.55C9.41767 3.03067 8.968 2.638 8.398 2.372C7.84067 2.09333 7.18833 1.954 6.441 1.954C5.17433 1.954 4.18633 2.429 3.477 3.379C2.76767 4.329 2.413 5.65267 2.413 7.35C2.413 9.07267 2.755 10.4153 3.439 11.378C4.13567 12.3407 5.10467 12.822 6.346 12.822C6.92867 12.822 7.46067 12.7397 7.942 12.575C8.436 12.4103 8.854 12.1697 9.196 11.853V8.414H6.023V7.122H10.925Z" fill="black"/> </svg>'}},e=>e(e.s=41520)])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{70269:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.highlightSignature=void 0;var o=r(70655),i=r(
|
|
1
|
+
"use strict";!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{70269:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.highlightSignature=void 0;var o=r(70655),i=r(10818),n=r(11975),a=r(38886),s=r(25916),l=r(97029);r(43854).Config.prototype.highlightSignature={schema:{},excludeTags:["pre"]};var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license"],t.idleId=0,t}return o.__extends(t,e),t.prototype.afterInit=function(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",t.removeUtilWrappers)},t.prototype.beforeDestruct=function(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",t.removeUtilWrappers)},t.prototype.walkNodes=function(){if(this.j.isEditorMode()){this.checkUtilsBoxToSchema();var e=this.j,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}},t.prototype.runWorker=function(e,t){var r;this.j.e.mute();try{do{if(!(r=t.nextNode()))return;if(this.checkNormalizing(r))return;this.checkReplaceSchemas(r)}while(r&&e.timeRemaining()>0)}finally{this.j.e.unmute()}this.workLoop(t)},t.prototype.workLoop=function(e){var t=this;this.idleId=this.j.async.requestIdleCallback((function(r){t.runWorker(r,e)}),{timeout:this.j.defaultTimeout})},t.prototype.checkNormalizing=function(e){return!!a.Dom.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)},t.prototype.checkReplaceSchemas=function(e){if(!t.hasUtilWrapper(e)){var r=e.nodeValue;if(null!=r){var o=this.j.o.highlightSignature;for(var i in o.schema){var n=RegExp(i);if(n.test(r)){var s=r.match(n);if(!s||void 0===s.index)continue;var l=o.schema[i](this.j,s);if(l)return a.Dom.markTemporary(l,{dataHighlightSchema:i}),void this.replaceMatchedTextToElm(e,r,s,l)}}}}},t.prototype.replaceMatchedTextToElm=function(e,t,r,o){var i,n=this.j,s=n.s.range,l=s.startContainer===e,h=s.startOffset,u=null!==(i=r.index)&&void 0!==i?i:0;e.nodeValue=t.substring(0,u);var c=t.substring(u+r[0].length);if(c.length){var f=n.createInside.text(c);a.Dom.after(e,f)}o.innerText=r[0],a.Dom.after(e,o),l&&this.restoreCursorPosition(h,e,o.firstChild,o.nextSibling)},t.hasUtilWrapper=function(e){return a.Dom.isTemporary(e.parentElement)},t.removeUtilWrappers=function(e){e.value=a.Dom.replaceTemporaryFromString(e.value)},t.prototype.restoreCursorPosition=function(e){for(var t,r,i=[],n=1;arguments.length>n;n++)i[n-1]=arguments[n];try{for(var a=o.__values(i),s=a.next();!s.done;s=a.next()){var l=s.value;if(l&&l.nodeValue){var h=l.nodeValue;if(h.length>=e){var u=this.j.s.createRange();u.setStart(l,e),this.j.s.selectRange(u,!1);break}e-=h.length}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}},t.prototype.checkUtilsBoxToSchema=function(){var e=this;a.Dom.temporaryList(this.j.editor).forEach((function(t){var r,o=(0,s.attr)(t,"dataHighlightSchema");if(o){var i=RegExp(o),n=null!==(r=t.innerText)&&void 0!==r?r:"";i.test(n)&&!n.replace(i,"").length||(e.j.s.save(),a.Dom.unwrap(t),e.j.s.restore())}}))},o.__decorate([(0,n.debounce)()],t.prototype,"walkNodes",null),o.__decorate([n.autobind],t.prototype,"runWorker",null),t}(i.Plugin);t.highlightSignature=h,l.Jodit.plugins.add("highlight-signature",h)}},function(e){return e(e.s=70269)}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{70269(e,t,r){r.r(t),r.d(t,{highlightSignature(){return c}});var i=r(70655),o=r(
|
|
1
|
+
"use strict";((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var i in r)("object"==typeof exports?exports:e)[i]=r[i]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[10],{70269(e,t,r){r.r(t),r.d(t,{highlightSignature(){return c}});var i=r(70655),o=r(10818),s=r(51663),n=r(38886),a=r(25916),l=r(1120);r(43854).D.prototype.highlightSignature={schema:{},excludeTags:["pre"]};class c extends o.S{constructor(){super(...arguments),this.requires=["license"],this.idleId=0}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",c.removeUtilWrappers)}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",c.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:e}=this,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}runWorker(e,t){let r;this.j.e.mute();try{do{if(r=t.nextNode(),!r)return;if(this.checkNormalizing(r))return;this.checkReplaceSchemas(r)}while(r&&e.timeRemaining()>0)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(e){this.idleId=this.j.async.requestIdleCallback((t=>{this.runWorker(t,e)}),{timeout:this.j.defaultTimeout})}checkNormalizing(e){return!!n.i.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(e){if(c.hasUtilWrapper(e))return;const t=e.nodeValue;if(null==t)return;const{j:r}=this,i=r.o.highlightSignature;for(const r in i.schema){const o=RegExp(r);if(o.test(t)){const s=t.match(o);if(!s||void 0===s.index)continue;const a=i.schema[r](this.j,s);if(a)return n.i.markTemporary(a,{dataHighlightSchema:r}),void this.replaceMatchedTextToElm(e,t,s,a)}}}replaceMatchedTextToElm(e,t,r,i){var o;const{j:s}=this,{range:a}=s.s,l=a.startContainer===e,c=a.startOffset,h=null!==(o=r.index)&&void 0!==o?o:0;e.nodeValue=t.substring(0,h);const u=t.substring(h+r[0].length);if(u.length){const t=s.createInside.text(u);n.i.after(e,t)}i.innerText=r[0],n.i.after(e,i),l&&this.restoreCursorPosition(c,e,i.firstChild,i.nextSibling)}static hasUtilWrapper(e){return n.i.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=n.i.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const r of t)if(r&&r.nodeValue){const t=r.nodeValue;if(t.length>=e){const t=this.j.s.createRange();t.setStart(r,e),this.j.s.selectRange(t,!1);break}e-=t.length}}checkUtilsBoxToSchema(){n.i.temporaryList(this.j.editor).forEach((e=>{var t;const r=(0,a.attr)(e,"dataHighlightSchema");if(!r)return;const i=RegExp(r),o=null!==(t=e.innerText)&&void 0!==t?t:"";i.test(o)&&!o.replace(i,"").length||(this.j.s.save(),n.i.unwrap(e),this.j.s.restore())}))}}(0,i.gn)([(0,s.debounce)()],c.prototype,"walkNodes",null),(0,i.gn)([s.autobind],c.prototype,"runWorker",null),l.Jodit.plugins.add("highlight-signature",c)},70655(e,t,r){function i(e,t,r,i){var o,s=arguments.length,n=3>s?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(n=(3>s?o(n):s>3?o(t,r,n):o(t,r))||n);return s>3&&n&&Object.defineProperty(t,r,n),n}r.d(t,{gn(){return i}})}},e=>e(e.s=70269)])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[382],{99282:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[382],{99282:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(43854),r=o(97039),n=o(47643);i.Config.prototype.controls.iframeEditor={icon:o(18755),tooltip:"Iframe Editor",exec:function(e,t){r.Dom.isTag(t,"jodit")&&r.Dom.isTag(t.firstElementChild,"iframe")&&(t=t.firstElementChild),e.e.fire("toggleIframeEditor",r.Dom.isTag(t,"iframe")?t:null)}},(0,n.isArray)(i.Config.prototype.popup.iframe)&&i.Config.prototype.popup.iframe.push("iframeEditor")},90920:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IframeEditor=void 0;var i=o(70655),r=o(10818),n=o(27830),a=o(11054),l=o(11975),s=o(97039),d=o(97029),u=o(56727),c=o(47643);o(99282);var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.requires=["license","color-picker"],t.buttons=[{group:"form",name:"iframeEditor"}],t}return i.__extends(t,e),t.prototype.afterInit=function(e){e.e.on("toggleIframeEditor",this.toggleEditor)},t.prototype.toggleEditor=function(e){var t,o,i,r,l,d=this;this.__dialog||(this.__dialog=new n.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),e&&!s.Dom.isTag(e,["iframe"])&&(e=void 0);var f=new a.UIIframeEditor(this.__dialog,{src:null!==(t=null==e?void 0:e.src)&&void 0!==t?t:"",name:null!==(o=null==e?void 0:e.name)&&void 0!==o?o:"",title:null!==(i=null==e?void 0:e.title)&&void 0!==i?i:"",frameBorder:"1"===(null==e?void 0:e.frameBorder)||"yes"===(null==e?void 0:e.frameBorder),width:null!==(r=null==e?void 0:e.offsetWidth)&&void 0!==r?r:700,height:null!==(l=null==e?void 0:e.offsetHeight)&&void 0!==l?l:400});this.__dialog.setContent(f);var p=this.__dialog;p.isOpened?p.close():(p.setFooter([(0,u.Button)(p,"cancel","Cancel","default").onAction((function(){return p.close()})),(0,u.Button)(p,"ok",e?"Update":"Insert","primary").onAction((function(){if(!f.srcField.value)return f.srcField.validate(),void f.srcField.focus();e||(e=d.j.createInside.element("iframe"),d.j.s.insertNode(e,!0,!1)),e.className=f.state.className||"",(0,c.attr)(e,{src:f.state.src,title:f.state.title,name:f.state.name,frameborder:f.state.frameBorder?"1":"0",width:f.state.width,height:f.state.height}),s.Dom.isTag(e.parentElement,"jodit")&&(0,c.css)(e.parentElement,{width:f.state.width,height:f.state.height}),d.jodit.e.fire("synchro"),p.close()}))]).open(),this.jodit.async.requestIdleCallback((function(){f.srcField.focus()})))},t.prototype.onDblClick=function(e){s.Dom.isTag(e.target,"iframe")&&this.toggleEditor(e.target)},t.prototype.beforeDestruct=function(e){var t;null===(t=this.__dialog)||void 0===t||t.destruct()},i.__decorate([l.autobind],t.prototype,"toggleEditor",null),i.__decorate([(0,l.watch)(":dblclick")],t.prototype,"onDblClick",null),t}(r.Plugin);t.IframeEditor=f,d.Jodit.plugins.add("iframe-editor",f)},11054:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UIIframeEditor=void 0;var i=o(70655);o(50667);var r=o(98813),n=o(11975),a=function(e){function t(t,o){var i=e.call(this,t)||this;return i.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(i.state,o),i.srcField=new r.UIInput(t,{label:"URL",type:"url",required:!0,value:i.state.src,onChange:function(e){i.state.src=e}}),i.append([i.srcField,new r.UIBlock(t,[new r.UIInput(t,{label:"Width",type:"number",value:i.state.width,onChange:function(e){i.state.width=parseInt(e,10)||0}}),new r.UIInput(t,{label:"Height",type:"number",value:i.state.height,onChange:function(e){i.state.height=parseInt(e,10)||0}})],{className:i.getFullElName("block"),align:"center"}),new r.UIBlock(t,[new r.UICheckbox(t,{label:"Show frame border",checked:Boolean(o.frameBorder),onChange:function(e){i.state.frameBorder="true"===e}})]),new r.UIInput(t,{label:"Name",value:i.state.name,type:"text",onChange:function(e){i.state.name=e}}),new r.UIInput(t,{label:"Title",value:i.state.title,type:"text",onChange:function(e){i.state.title=e}})]),i}return i.__extends(t,e),t.prototype.className=function(){return"UIIframeEditor"},i.__decorate([n.component],t)}(r.UIGroup);t.UIIframeEditor=a},18755:function(e){e.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'},50667:function(e,t,o){"use strict";o.r(t)}},function(e){return e(e.s=90920)}])}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[382],{60540(e,t,i){"use strict";i.r(t),i.d(t,{IframeEditor(){return g}});var r=i(70655),s=i(
|
|
1
|
+
((e,t)=>{if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var r in i)("object"==typeof exports?exports:e)[r]=i[r]}})(self,(function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[382],{60540(e,t,i){"use strict";i.r(t),i.d(t,{IframeEditor(){return g}});var r=i(70655),s=i(10818),o=i(6293),a=i(86673),l=i(51663);let n=class e extends a.qe{className(){return"UIIframeEditor"}constructor(e,t){super(e),this.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(this.state,t),this.srcField=new a.u3(e,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:e=>{this.state.src=e}}),this.append([this.srcField,new a.eC(e,[new a.u3(e,{label:"Width",type:"number",value:this.state.width,onChange:e=>{this.state.width=parseInt(e,10)||0}}),new a.u3(e,{label:"Height",type:"number",value:this.state.height,onChange:e=>{this.state.height=parseInt(e,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a.eC(e,[new a.mA(e,{label:"Show frame border",checked:!!t.frameBorder,onChange:e=>{this.state.frameBorder="true"===e}})]),new a.u3(e,{label:"Name",value:this.state.name,type:"text",onChange:e=>{this.state.name=e}}),new a.u3(e,{label:"Title",value:this.state.title,type:"text",onChange:e=>{this.state.title=e}})])}};n=(0,r.gn)([l.component],n);var d=i(97039),h=i(1120),c=i(18095),u=i(47643),f=i(43854);f.D.prototype.controls.iframeEditor={icon:i(18755),tooltip:"Iframe Editor",exec(e,t){d.i.isTag(t,"jodit")&&d.i.isTag(t.firstElementChild,"iframe")&&(t=t.firstElementChild),e.e.fire("toggleIframeEditor",d.i.isTag(t,"iframe")?t:null)}},(0,u.isArray)(f.D.prototype.popup.iframe)&&f.D.prototype.popup.iframe.push("iframeEditor");class g extends s.S{constructor(){super(...arguments),this.requires=["license","color-picker"],this.buttons=[{group:"form",name:"iframeEditor"}]}afterInit(e){e.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(e){var t,i,r,s,a;this.__dialog||(this.__dialog=new o.Dialog({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),e&&!d.i.isTag(e,["iframe"])&&(e=void 0);const l=new n(this.__dialog,{src:null!==(t=null==e?void 0:e.src)&&void 0!==t?t:"",name:null!==(i=null==e?void 0:e.name)&&void 0!==i?i:"",title:null!==(r=null==e?void 0:e.title)&&void 0!==r?r:"",frameBorder:"1"===(null==e?void 0:e.frameBorder)||"yes"===(null==e?void 0:e.frameBorder),width:null!==(s=null==e?void 0:e.offsetWidth)&&void 0!==s?s:700,height:null!==(a=null==e?void 0:e.offsetHeight)&&void 0!==a?a:400});this.__dialog.setContent(l);const h=this.__dialog;h.isOpened?h.close():(h.setFooter([(0,c.zx)(h,"cancel","Cancel","default").onAction((()=>h.close())),(0,c.zx)(h,"ok",e?"Update":"Insert","primary").onAction((()=>{if(!l.srcField.value)return l.srcField.validate(),void l.srcField.focus();e||(e=this.j.createInside.element("iframe"),this.j.s.insertNode(e,!0,!1)),e.className=l.state.className||"",(0,u.attr)(e,{src:l.state.src,title:l.state.title,name:l.state.name,frameborder:l.state.frameBorder?"1":"0",width:l.state.width,height:l.state.height}),d.i.isTag(e.parentElement,"jodit")&&(0,u.css)(e.parentElement,{width:l.state.width,height:l.state.height}),this.jodit.e.fire("synchro"),h.close()}))]).open(),this.jodit.async.requestIdleCallback((()=>{l.srcField.focus()})))}onDblClick(e){d.i.isTag(e.target,"iframe")&&this.toggleEditor(e.target)}beforeDestruct(e){var t;null===(t=this.__dialog)||void 0===t||t.destruct()}}(0,r.gn)([l.autobind],g.prototype,"toggleEditor",null),(0,r.gn)([(0,l.watch)(":dblclick")],g.prototype,"onDblClick",null),h.Jodit.plugins.add("iframe-editor",g)},70655(e,t,i){"use strict";function r(e,t,i,r){var s,o=arguments.length,a=3>o?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(a=(3>o?s(a):o>3?s(t,i,a):s(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a}i.d(t,{gn(){return r}})},18755(e){e.exports='<svg viewBox="0 0 32 32" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <rect fill="none" height="32" width="32"/> <path d="M28,14H18v2h10V14z M28,18H18v2h10V18z M24,22h-6v2h6V22z M14,14H4v10h10V14z M0,6v26h32V6H0z M30,30H2l0.08-20H30V30z"/> </svg>'}},e=>e(e.s=60540)])}));
|