(()=>{var e={7607(){jQuery(document).ready(function(e){let t,n=!1;elementor.hooks.addAction("panel/open_editor/widget/wpcode-snippet",function(a,r,l){n=!1,t=e(document.getElementById("elementor-controls"));var c=r.get("settings");t.on("input",".wpcode-dynamic-attribute",function(){o()}),c.on("change:snippet_id",function(t,n){e.post({url:ajaxurl,data:{action:"wpcode_get_snippet_shortcode_attributes",snippet_id:n,_wpnonce:wpcode_integrations.nonce}}).success(function(e){if(e.data.attributes){var t=e.data.attributes;i(t),o()}})});const d=c.get("attributes");d&&i(JSON.parse(d))});const o=function(){const n={};e(".wpcode-dynamic-attribute").each(function(t,o){const i=e(o);n[i.data("attribute")]=i.val()}),t.find(".elementor-control-attributes input").val(JSON.stringify(n)).trigger("input")},i=function(o){if(e(".wpcode-dynamic-attribute-element").remove(),!n){const o=e("<div />").addClass("elementor-control elementor-label-inline"),i=e("<div />").addClass("elementor-panel-heading wpcode-attributes-title");i.appendTo(o),e("<div />").addClass("elementor-panel-heading-title elementor-section-title").text("Attributes").appendTo(i),o.appendTo(t),n=!0}e.each(o,function(n,o){const i=e('<div class="wpcode-dynamic-attribute-element elementor-control elementor-control-type-text elementor-label-inline"><div class="elementor-control-content"><div class="elementor-control-field"><label class="element-control-title">'+n+'</label><div class="elementor-control-input-wrapper"><input type="text" data-attribute="'+n+'" class="wpcode-dynamic-attribute" value="'+o+'" /></div></div></div></div>');t.append(i)})}})}},t={};function n(o){var i=t[o];if(void 0!==i)return i.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";n(7607)})()})();