import{f as o}from"./file-manager-BqTxa2JX.js";import{b as n}from"./select2-kdrdsacH.js";import{$ as t}from"./jquery-BJllTr_o.js";import"./helper-DH3MvDof.js";import"./moment-BxhnadHa.js";import"./mapbox-Cpj98o6Y.js";o("file-uploader","image");n("seo_keywords");t("#extra_field_container").on("click",function(){const e=t("#row_container"),a=Date.now(),r=e.children().length;e.append(`<div class="space-y-4 border border-neutral-30 dark:border-neutral-500 p-3 rounded-lg  relative" id="meta-row-${a}">
            <div class="input-group">
                <label for="name" class="block mb-2 text-sm">Name</label>
                <input type="text" class="text-input" id="name-${a}" value="" name="meta[${r}][name]"
                        placeholder="Enter Text" />
                <span class="input-text-error"></span>
            </div>
            <div class="input-group">
                <label for="textarea" class="block mb-2 text-sm">Content</label>
                <textarea name="meta[${r}][content]" rows="4" class="text-input"
                                        placeholder="Address" id="address"></textarea>
                <span class="input-text-error"></span>
            </div>
            <button type="button" class="text-red-500 mt-2 delete-meta absolute right-0 -top-11" data-id="${a}">
                <i class="ph ph-trash"></i>
            </button>
        </div>`)});t(document).on("click",".delete-meta",function(){const e=t(this).data("id");t(`#meta-row-${e}`).remove()});
