HEX
Server: Apache
System: Linux uws7-179.cafe24.com 3.10.0-1160.119.1p.el7.x86_64 #1 SMP Thu Sep 11 14:15:01 KST 2025 x86_64
User: medikors (1589)
PHP: 7.3.1p1
Disabled: mysql_pconnect
Upload Files
File: /medikors/www/eng/wp-content/plugins/happy-elementor-addons-pro/assets/admin/js/marvin-new.min.js
!function(){"use strict";function e(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function t(t,n){if(!e(t,n))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}var a=function(){function e(){t(this,e)}return i(e,null,[{key:"prepare",value:function(e,t,n){return e.push({name:"x-domain",actions:[{name:"x-copy",title:"X Copy",shortcut:'<i class="hm hm-happyaddons"></i>',callback:function(){n.copy(t)}},{name:"x-paste",title:"X Paste",shortcut:'<i class="hm hm-happyaddons"></i>',callback:function(){n.paste(t)}},{name:"live-paste",title:"Live Paste",shortcut:'<i class="hm hm-happyaddons"></i>',callback:function(){n.paste(t)}}]}),e}},{key:"prepareForBlankColumn",value:function(e,t,n){return e[0].actions.push({name:"x-paste",title:"X Paste",shortcut:'<i class="hm hm-happyaddons"></i>',callback:function(){n.paste(t)},isEnabled:function(){return!0}}),e[0].actions.push({name:"live-paste",title:"Live Paste",shortcut:'<i class="hm hm-happyaddons"></i>',callback:function(){n.paste(t)},isEnabled:function(){return!0}}),e}}]),e}(),o=function(){function e(n,i){t(this,e),this.widgetType=n,this.widgetCode=i}return i(e,[{key:"getWidgetType",value:function(){return this.widgetType}},{key:"getWidgetCode",value:function(){return this.widgetCode}},{key:"toJSON",value:function(){return{widgetType:this.widgetType,widgetCode:this.widgetCode}}}]),e}(),r=function(){function e(n,i){t(this,e),this.widgetStorage=n,this.assetRetainer=i}return i(e,[{key:"copy",value:function(e){var t=new o(e.model.get("widgetType"),e.model.toJSON());this.widgetStorage.save(t)}},{key:"paste",value:function(e){var t=this;this.widgetStorage.fetch(function(n){var i=JSON.stringify(n.widgetCode).replace('.png","id":','.png","id":xLock').replace('.jpg","id":','.jpg","id":xLock').replace('.gif","id":','.gif","id":xLock').replace('.jpeg","id":','.jpeg","id":xLock').replace('.svg","id":','.svg","id":xLock').replace(/xLock([\d]+)/g,'"$1"');i=i.replace(/"id":([\d]+),"url":"([a-z\-_0-9#\/\:\.]*\.(jpg|jpeg|png|gif|svg))"/gi,'"url":"$2","id":"$1"'),i=JSON.parse(i),n.widgetCode=i,t.assetRetainer.retain(n,function(t){i=t.widgetCode;var n=e.model.get("elType"),a=i.elType,o={elType:a,settings:i.settings},r=null,s={at:0};"section"===a?(o.elements=i.elements,r=elementor.getPreviewContainer(),"widget"===n?s.at=e.getContainer().parent.parent.view.getOption("_index")+1:"column"===n?s.at=e.getContainer().parent.view.getOption("_index")+1:"section"===n&&(s.at=e.getOption("_index")+1)):"column"===a?(o.elements=i.elements,"widget"===n?(r=e.getContainer().parent.parent,s.at=e.getContainer().parent.view.getOption("_index")+1):"column"===n?(r=e.getContainer().parent,s.at=e.getOption("_index")+1):r=e.getContainer()):(o.widgetType=i.widgetType,r=e.getContainer(),"widget"===n?(r=e.getContainer().parent,s.at=e.getOption("_index")+1):r="column"===n?e.getContainer():e.children.findByIndex(0).getContainer()),$e.run("document/elements/create",{model:o,container:r,options:s})})})}}]),e}(),s=function(){function e(n){t(this,e),this.storageKey=n,xdLocalStorage.init({iframeUrl:"https://happyaddons.com/marvin/index.html",initCallback:function(){}})}return i(e,[{key:"save",value:function(e){xdLocalStorage.setItem(this.storageKey,JSON.stringify(e))}},{key:"fetch",value:function(e){return xdLocalStorage.getItem(this.storageKey,function(t){var n=JSON.parse(t.value),i=new o(n.widgetType,n.widgetCode);e(i)})}}]),e}(),p=function(){function e(n,i,a){t(this,e),this.storageKey=n,this.storageEndpoint=i,this.$=a}return i(e,[{key:"save",value:function(e){this.$.post(this.storageEndpoint,{key:this.storageKey,data:JSON.stringify(e)})}},{key:"fetch",value:function(e){this.$.get(this.storageEndpoint,{key:this.storageKey},function(t){var n=JSON.parse(t),i=new o(n.widgetType,n.widgetCode);e(i)})}}]),e}(),u=function(){function e(n){t(this,e),this.$=n}return i(e,[{key:"retain",value:function(e,t){var n=JSON.stringify(e).match(/"url":"([a-z\-_0-9#\/\:\.]*\.(jpg|jpeg|png|gif|svg))","id":"([\d]+)"/gi);if(n){var i,a=[];for(i in n){var o=n[i].split(",")[1].split(":")[1].replace(/"/gi,""),r=n[i].split(",")[0].split('"url":')[1].replace(/"/g,"");a.push({id:o,url:r})}this.$.post(marvin.serviceEndpoint,{action:"ha-retainer",data:a,identifier:marvin.identifier},function(n){n=JSON.parse(n);var i,a=JSON.stringify(e);for(i in n)a=a.replace('"id":"'+n[i].old+'"','"id":"'+n[i].new+'"');t(JSON.parse(a))})}else t(e)}}]),e}();window.HWidgetStorage=s,window.HSWidgetStorage=p,window.HClipBoard=r,window.HWidget=o,window.HAssetRetainer=u;var c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),l=elementor.hooks.addFilter,d=c?new p(marvin.storagekey,"https://happymonster.dev/storage/safari.php",$):new s(marvin.storagekey),g=new u(jQuery),f=new r(d,g);l("elements/widget/contextMenuGroups",function(e,t){return a.prepare(e,t,f)}),l("elements/section/contextMenuGroups",function(e,t){return a.prepare(e,t,f)}),l("elements/column/contextMenuGroups",function(e,t){return a.prepare(e,t,f)}),l("element/view",function(e,t){var n;return"column"===t.get("elType")?e.extend({initialize:function(){e.prototype.initialize.apply(this,arguments),n=this},emptyView:e.prototype.emptyView.extend({getContextMenuGroups:function(){var t=e.prototype.emptyView.prototype.getContextMenuGroups.apply(this,arguments);return a.prepareForBlankColumn(t,n,f)}})}):e})}();