"use strict";(self.webpackChunk_brizy_builder_free=self.webpackChunk_brizy_builder_free||[]).push([["604"],{4199(e,n,d){d.r(n),d.d(n,{default:()=>t});var i=d(1669),r=d.n(i);function t(e){e.find(".brz-input__upload").each(function(){let e=r()(this),n=e.children(".brz-input"),d=e.find(".brz-button"),i=e.find(".brz-span");n.on("change",function(){let r=n[0].files[0],t=e.find(".brz-input__upload-delete");r&&r.name?(i.text(r.name),d.addClass("brz-hidden"),t.removeClass("brz-hidden"),n.prop("disabled",!0)):l(e),t.on("click",()=>l(e))})})}function l(e){let n=e.children(".brz-input");e.find(".brz-span").text(n.data("brz-placeholder")),n.val(""),e.find(".brz-button").removeClass("brz-hidden"),e.find(".brz-input__upload-delete").addClass("brz-hidden"),setTimeout(function(){n.prop("disabled",!1)},500)}}}]);