PageSourceSearch

https://fitomag.ro/frontend/views/general/js/uis_js_extended_framework.min.js?v=1790747317

js fitomag.ro collected 2026-10-02 22:18:20 UTC 24,210 bytes, 1 lines download raw bytes

1Object.keys||(Object.keys=function(){"use strict";var r=Object.prototype.hasOwnProperty,o=!{toString:null}.propertyIsEnumerable("toString"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],a=s.length;return function(e){if("function"!=typeof e&&("object"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,n,i=[];for(t in e)r.call(e,t)&&i.push(t);if(o)for(n=0;n<a;n++)r.call(e,s[n])&&i.push(s[n]);return i}}()),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var i=Object(this),r=i.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1<arguments.length&&(t=arguments[1]),n=0;n<r;){var o;n in i&&(o=i[n],e.call(t,o,n,i)),n++}}),Array.prototype.some||(Array.prototype.some=function(e,t){"use strict";if(null==this)throw new TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof e)throw new TypeError;for(var n=Object(this),i=n.length>>>0,r=0;r<i;r++)if(r in n&&e.call(t,n[r],r,n))return!0;return!1}),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},r=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),r.prototype=new i,r}),function(e){var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{};t.Extended=function(e,f,d){"use strict";var t=function(t){return function(e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},s=function(e){var t=f.fn;if(e){var n=e.split(".");n.some(function(e){if(!t.hasOwnProperty(e))return!(t=!1);t=t[e]})}return t},a=function(e,t,n){var i=e.length;null==n?n=0:n<0&&(n=Math.max(0,i+n));for(var r=n;r<i;r++)if(e[r]===t)return!0;return!1},c=/^(\S+)\s*(.*)$/,n=0,i=function(e){var t=++n+"";return e&&(t=e+t),t};f.version="1.0.4",f.name="Extended JS Framework",f.$data={},f.$data.modals={},f.$data.modals.current_modal=null,f.$data.editors={},f.$data.components={},f.Components={},f.fn={};var l=f.error_messages={E_FUNCTIE_INEXISTENTA:"Functia invocata nu exista ! ",E_FUNCTIE_INREGISTRATA:"Exista deja o functie cu acest nume ! ",E_PACHET_INEXISTENT:"Pachetul specificat pentru functie nu exista ! ",E_PACHET_INREGISTRAT:"Exista deja un pachet cu acest nume ! ",E_VIEW_INREGISTRAT:"Exista deja un view cu acest id/nume ! ",E_VIEW_INVALID:"View-ul specificat nu contine toate proprietatile necesare ! ",E_VIEW_INVALID_NAME:"Pentru a inregistra un view este nevoie de un nume ! ",E_PARAM_INREGISTRARE_VIEW:"Pentru a inregistra un view trebuie specificat obiectul de configurare !",E_CONSTANTA_INREGISTRATA:"Exista deja o constanta cu acest nume ! ",E_MESAJ_INREGISTRAT:"Mesajul a fost deja inregistrat ! ",E_CALLBACK_INVALID:"Callback-ul specificat este invalid ! ",E_DOMEVENTS_INVALID:"Constructorul DOMEvents trebuie sa primeasca un obiect de configurare ! ",E_MODAL_PRELOADER_INVALID_ARGS:"Constructorul ModalPreloader trebuie sa primeasca un obiect de configurare !",E_MODAL_INVALID_ARGS:"Constructorul EXT_Modal trebuie sa primeasca un obiect de configurare !",E_MODAL_INREGISTRAT:"Exista deja un modal cu acest nume !",E_COMPONENTA_INREGISTRATA:"Exista deja o componenta cu acest nume !",E_COMPONENTA_INEXISTENTA:"Acest tip de componenta nu exista !",E_CONTAINER_INEXISTENT:"Containerul specificat nu exista !",E_COMPONENTA_FARA_ID:"O componenta trebuie sa aiba un id specificat !",E_COMPONENTA_FARA_CONTAINER:"O componenta trebuie sa aiba un container specificat !"},r=f._C$={LEVEL_ALL:1,LEVEL_LOG:2,LEVEL_WARNING:3,LEVEL_ERROR:4,LEVEL_NONE:5},_=f._M$={},o=f.base_fn={},h=1,u=(o.isNumber=t("Number"),o.isObject=t("Object")),p=o.isArray=t("Array"),v=o.isFunction=t("Function"),E=o.isString=t("String");f.Console={level:1},f.Console.debug=function(e){if(this.level!=f._C$.LEVEL_NONE){var t=Array.prototype.slice.call(arguments,1
1);console&&("log"==e&&this.level<=f._C$.LEVEL_LOG?console.log.apply(null,t):"warn"==e&&this.level<=f._C$.LEVEL_WARNING?console.warn.apply(null,t):"error"==e&&this.level<=f._C$.LEVEL_ERROR&&console.error.apply(null,t))}},f.Console.level=f._C$.LEVEL_NONE,o.add_constant=function(e,t){if(e){if(r.hasOwnProperty(e))throw new Error(l.E_CONSTANTA_INREGISTRATA+"["+e+"]");r[e]=t||h++}},o.add_constants=function(e){p(e)&&e.forEach(function(e){if(u(e)){if(r.hasOwnProperty(e.name))throw new Error(l.E_CONSTANTA_INREGISTRATA+"["+e.name+"]");r[e.name]=e.value?e.value:h++}})},o.add_message=function(n,i){if(n&&i)if(-1<n.indexOf(".")){var r,e=n.split("."),o=e.length;e.forEach(function(e,t){if(t<o-1)r=_.hasOwnProperty(e)?_[e]:_[e]={};else{if(r.hasOwnProperty(e))throw new Error(l.E_MESAJ_INREGISTRAT+"["+n+"]");r[e]=i}})}else{if(_.hasOwnProperty(n))throw new Error(l.E_MESAJ_INREGISTRAT+"["+n+"]");_[n]=i}},o._c=function(e){return!(!e||!r.hasOwnProperty(e))&&r[e]},o._m=function(e){if(-1<e.indexOf("."))for(var t=e.split("."),n=t.length,i=_,r=0;r<n;r++){var o=t[r];if(!i.hasOwnProperty(o))break;if(r<n-1&&i.hasOwnProperty(o))i=i[o];else if(i)return i[o]}else if(e&&_.hasOwnProperty(e))return _[e]+"";return!1},f.fn_exists=function(e){var t=e.split("."),n=t.pop();e=t.join(".");var i=s(e);return!!(i&&n in i)&&i[n]},f.fn_call=function(e){for(var t=Object.keys(arguments),n=[],i=1,r=t.length;i<r;i++)n.push(arguments[i]);var o=this.fn_exists(e);if(!o||"function"!=typeof o)throw new Error(this.error_messages.E_FUNCTIE_INEXISTENTA+"["+e+"]");o.apply(f,n)},f.fn_extend=function(e,t){if(f.fn_exists(e))throw new Error(f.error_messages.E_FUNCTIE_INREGISTRATA+"["+e+"]");var n=e,i=e.split("."),r=i.pop();e=i.join(".");var o=s(e);if(!o)throw new Error(f.error_messages.E_PACHET_INEXISTENT+"["+n+"]");o[r]=t},f.fn_add_namespace=function(e){var t=f.fn,n=e.split(".");n.forEach(function(e){t=void 0===t[e]?t[e]={}:t[e]})};var m=f.Events={};m.clearEvents=function(){this._events={},this._listeners={}},m.eventsRegistered=function(){var e=Object.keys(this._events);return e.length},m.trigger=function(e){if(!this._events)return this;for(var t=arguments.length,n=new Array(t-1),i=1;i<t;i++)n[i-1]=arguments[i];var r=[];if(this._events&&(r=this._events[e]),r)for(var o,s=r.length,i=0;i<s;i++)(o=r[i]).callback.apply(o.context,n);return this},m.on=function(e,t,n){if(n=n||this,E(t)&&n.hasOwnProperty(t)&&(t=n[t]),!v(t))throw new Error(f.error_messages.E_CALLBACK_INVALID);this._events||(this._events={});var i=this._events[e]||(this._events[e]=[]);return i.push({callback:t,context:n}),this},m.listenOn=function(e,t,n){return e.on(t,n,this),this};var g=f.DOMEvents=function(e){this.id=i("eventobj_"),this.$container=null,this.events={},e&&this.set_container(e)};d.extend(g.prototype,{register:function(e,t,n,i){e&&(this.events[e]={event:t,selector:n,callback:null})},set_callback:function(e,t,n){({}).hasOwnProperty.call(this.events,e)&&f.base_fn.isFunction(t)&&(n&&f.base_fn.isObject(n)&&(t=t.bind(n)),this.events[e].callback=t)},set_container:function(e){e instanceof jQuery?this.$container=e:f.base_fn.isString(e)&&(0!==e.indexOf("#")&&(e="#"+e),this.$container=d(e)),0==this.$container.length&&console.error(f.error_messages.E_CONTAINER_INEXISTENT,"["+e+"]")},attach:function(){if(this.$container&&this.$container.length)for(var e in this.events){var t=this.events[e],n=t.callback;if(f.base_fn.isFunction(n)){var i=t.selector;i=i.split(",");for(var r=0,o=i.length;r<o;++r)this.$container&&this.$container.on(t.event+".attachedEvents_"+this.id,i[r],n)}}},detach:function(e){if(this.$container&&this.$container.length){var t=this.events[e];t&&this.$container.off(t.event+".attachedEvents_"+this.id)}}});var w=f.Components.EXT_Component=function(e){this.uid="",this.$component_root=null,this.component_config=[],this.config=Object.create(null),this.events=new g,this.init_config(e)};d.extend(w.prototype,{TYPE_NAME:"EXT_Component",component_default_config:Object.create(null),component_config:["id","container"],init_config:function(e){for(var t=Object.getPrototypeOf(this),n=t.component_config||[],i=t.component_default_config||[],r=t;r&&{}.hasOwnProperty.call(r,"TYPE_NAME");)this.component_config=n.concat(r.component_config),r=Object.getPrototypeOf(r);for(var o in i)-1<this.component_config.indexOf(o)&&this.set_config(o,i[o]);if(f.base_fn.isObject(e))for(var o in e)-1<this.component_config.indexOf(o)&&this.set_config(o,e[o
1]);if(!this.config.id)throw new Error(f.error_messages.E_COMPONENTA_FARA_ID);if(!this.config.container)throw new Error(f.error_messages.E_COMPONENTA_FARA_CONTAINER)},get_selector:function(e){var t=this.get_config("id");return"#"+t+" "+e},find:function(e){return d(this.get_selector(e))},register_event:function(e,t,n){var i=this.get_config("id"),r=this.get_config("container");i!=r&&(n=this.get_selector(n)),this.events.register(e,t,n)},set_event_callback:function(e,t){this.events.set_callback(e,t,this)},register_events:function(e){if(f.base_fn.isArray(e)){var t=this;e.forEach(function(e){({}).hasOwnProperty.call(e,"name")&&{}.hasOwnProperty.call(e,"event")&&{}.hasOwnProperty.call(e,"selector")&&t.register_event(e.name,e.event,e.selector)})}},init_events:function(e){if(f.base_fn.isObject(e))for(var t in e)this.events.set_callback(t,e[t],this)},attach_events:function(){var e=this.get_config("container");if(f.base_fn.isString(e)){var t=f.Modals.getModal(e);t&&(f.base_fn.isObject(t)?(this._modal_=t,e=t.id):console.error(f.error_messages.E_CONTAINER_INEXISTENT,"["+this.container+"]"))}null!=e&&f.base_fn.isString(e)&&(this._eventContainer_=e,this.events.set_container(e),this.events.attach())},get_config:function(e){return this.config[e]||null},set_config:function(e,t){this.config[e]=t},startup:function(){}}),w.extend=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e)._Parent=t.prototype},f.Components.registerComponent=function(e,t,n){if(!Object.prototype.hasOwnProperty.call(f.Components,t))throw new Error(f.error_messages.E_COMPONENTA_INEXISTENTA+" ["+t+"]");if(!Object.prototype.hasOwnProperty.call(f.$data.components,e)){var i=f.Components[t];f.$data.components[e]=new i(n.config);var r=f.$data.components[e];n.registered_events&&r.register_events(n.registered_events),n.events&&r.init_events(n.events),r.attach_events()}var o=f.$data.components[e];o.startup()},f.Components.unregisterComponent=function(e){if(Object.prototype.hasOwnProperty.call(f.$data.components,e)){var t=f.$data.components[e];t._domEvents_.detach(),delete t._domEvents_,delete f.$data.components[e]}},f.Modals={},f.FrontendModals={};var b=f.FrontendModals.EXT_Frontend_Modal=function(e,t,n){f.FrontendModals.current&&f.FrontendModals.current.close(),this.id=e,this.url=t,this.modal_type=n,f.FrontendModals.current=this};d.extend(b,{close:function(){}}),f.FrontendModals.attachEvent=function(e,t,n){f.FrontendModals.current&&f.FrontendModals.current};var y=f.Modals.EXT_Modal=function(e){if(!f.base_fn.isObject(e))throw new Error(f.error_messages.E_MODAL_PRELOADER_INVALID_ARGS);this.id=e.id||"extended-modal-box",this.url=e.url||"",this.urlsterge=e.urlsterge||"",this.width=e.width||"",this.height=e.height||"",this.inchide_din_x=e.inchide_din_x||"",this.filtre=e.filtre||"",this.upload=e.upload||!1,this.events=e.events||!1,this.hooks=e.hooks||{},this.export_download_url=e.export_download_url||!1,this.export_check_url=e.export_check_url||!1,this.editors=e.editors||!1,this.submit_button_selector=".ext-btn.v3.stil-1",f.base_fn.isFunction(e.init)&&(this.init=e.init),this.preloader=new f.Components.EXT_ModalPreloader({})};d.extend(y.prototype,{open:function(e){e.preventDefault();var t=this,n=d(e.currentTarget),i=n.data(),r={};if(i&&f.base_fn.isObject(i)){Object.keys(i);for(var o in i)if(0==o.indexOf("placeholders_")){var s=o.replace("placeholders_","");r[s]=i[o],this.url=this.url.replace("##"+s+"##",i[o]),this.urlsterge=this.urlsterge.replace("##"+s+"##",i[o])}}this.filtre&&(this.filtre=filtru_general_href(this.url,"1",!0));var a=d("body").width();"undefined"==typeof this.urlsterge&&this.url.indexOf("manager/mesaje/")<0&&a<501&&(this.url=calesite+"mesaje/modal_mobile",this.height=166),this.url+="?new_modal=true";var l="|"+this.url+"|"+this.urlsterge;if(this.editors){var l="editor|"+this.url+"|"+this.height+"|"+this.inchide_din_x+"|"+this.width;this.width&&this.width;if(this.inchide_din_x);}modalBox('<div id="'+this.id+'" class="window vizibil" style="width: 100%; max-width: 800px;"><a href="javascript:void(0);" class="btn-inchide" title="Inchide" onclick="modalBox();return false;"></a>\n            <div id="frame"></div></div>',800,130,l);d("#frame");
1var c=d("#"+this.id);if(this.events&&f.base_fn.isObject(this.events)){for(var _ in this.events)f.base_fn.isFunction(this.events[_])&&(this.events[_]=this.events[_].bind(this));this.modalDOMEvents=new f.DOMEvents(this.id,this.events),this.modalDOMEvents.attach()}c.on("click",t.submit_button_selector,function(e){t.formSubmit()}),1==this.upload&&(c.on("change",".ext-file-choose-js",function(e){var t=d(this).val(),n=d("input[name=modal_new_template_select_multiple]").val();if(/^\s*$/.test(t))d(this).parents(".ext-file-js").find(".ext-input-file-js").val("Nici un fisier selectat.");else if("1"==n&&void 0!==t){for(var i=[],r=0;r<d(this).get(0).files.length;++r)i.push(d(this).get(0).files[r].name);1==i.length?d(this).parents(".ext-file-js").find(".ext-input-file-js").val(t.replace("C:\\fakepath\\","")):1<i.length&&d(this).parents(".ext-file-js").find(".ext-input-file-js").val(i.length+" fişiere selectate")}else d(this).parents(".ext-file-js").find(".ext-input-file-js").val(t.replace("C:\\fakepath\\",""))}),c.on("click tap",".ext-input-file-js",function(e){d(this).parents(".ext-file-js").find(".ext-file-choose-js").click()})),d.get(this.url,function(e){t.refresh(e)})},init:function(){},close:function(e){},callHook:function(e,t){var n=!0;return f.base_fn.isObject(this.hooks)&&this.hooks[e]&&f.base_fn.isArray(this.hooks[e])&&this.hooks[e].forEach(function(e){f.base_fn.isFunction(e)&&(n=n&&e.apply(null,t))}),n},formSubmit:function(){var i=this,e=d("#frame"),t=e.find("form");if(t.length){var n=new FormData(t[0]);if(n.append("new_modal",!0),f.base_fn.isObject(i.editors))for(var r in i.editors){var o=f.$data.editors[i.editors[r]];n.append(r,o.value)}if(i.filtre&&f.base_fn.isObject(i.filtre))for(var r in i.filtre)n.append(r,i.filtre[r]);if(i.callHook("preSubmit",[n]))if(i.preloader.addPreloader(i.submit_button_selector),i.export_download_url){i.export_check_url?(d.ajax({url:i.export_check_url,type:"post",contentType:!1,processData:!1,data:n,complete:function(e,t){i.preloader.removePreloader(),400==e.status?(!1,i.refresh(e.responseText)):i.downloadFile(i.export_download_url,n)}}),!1):i.downloadFile(i.export_download_url,n)}else d.ajax({url:t.attr("action"),type:"post",contentType:!1,processData:!1,data:n,success:function(e,t,n){i.preloader.removePreloader(),i.refresh(e)}})}},downloadFile:function(e,t){var l=this,c=new XMLHttpRequest;c.open("POST",e),c.responseType="blob",c.send(t),c.onload=function(e){if(c.readyState===c.DONE&&200==c.status){l.preloader.removePreloader();var t=c.getResponseHeader("Content-Type"),n=c.getResponseHeader("Content-Disposition"),i="export_file.txt",r=n.match(/filename="([a-zA-Z0-9_.]+)"/);r&&r[1]&&(i=r[1]);var o=new Blob([c.response],{type:t}),s=window.URL.createObjectURL(o);d("body").find("#file-download").remove();var a=document.createElement("a");a.id="file-download",a.style="display: none",document.body.appendChild(a),a.href=s,a.download=i,a.click(),window.URL.revokeObjectURL(s)}}},refresh:function(e){if(e){var t=d("#frame");t.html(e),this.urlsterge&&t.find("#iframe_href").attr("href","javascript:modalNone('"+this.urlsterge+"');"),this.init(),d("#frame .ext-calendar-js.ext-calendar-range-js").each(function(){f.fn.callbacks.callback_datepicker.call(this,!0)}),d("#frame .ext-calendar-js:not(.ext-calendar-range-js)").each(function(){f.fn.callbacks.callback_datepicker.call(this)})}}}),f.Modals.registerModal=function(e,t){if(Object.prototype.hasOwnProperty.call(f.$data.modals,e))throw new Error(f.error_messages.E_MODAL_INREGISTRAT+" ["+e+"]");f.$data.modals[e]=new y(t)},f.Modals.getModal=function(e){var t=null;return Object.prototype.hasOwnProperty.call(f.$data.modals,e)&&(t=f.$data.modals[e]),t},f.Modals.openModal=function(e){var t=d(e.currentTarget),n=t.data("modal-name");if(Object.prototype.hasOwnProperty.call(f.$data.modals,n)){var i=f.$data.modals[n];(f.$data.modals.current_modal=i).open(e)}},f.Modals.closeModal=function(e){var t=d(e.currentTarget),n=t.data("modal-name");if(Object.prototype.hasOwnProperty.call(f.$data.modals,n)){var i=f.$data.modals[n];f.$data.modals.current_modal=null,i.close(e)}},f.Views={};var O=!1,I=f.Views.viewNames=[],A=f.Views.viewList={},T=["name","nameId","elId","el","$el","events","params","initializeaza"],x=f.Views.EXT_View=function(e){if(this.vid=i("_v"),this.name="Basic View",this.nameId="",this.elId="container",this.el=null,this.$el=null,this.events={},this.debug=!1,this.params={},f.base_fn.isObject(e))for(var t in e){var n=e[t];(v(n)||a(T,t))&&(this[t]=n)}this._initialize(e)};d.extend(x.prototype,m,{_initialize:function(e){this.$el||(this.el||(this.el=document.getElementById(this.elId),this.el||(this.el=document.createElement("div"),this.el.id=this.elId)),this.$el=d(this.el)),this.initializeaza&&this.initializeaza();var t=this.events;for(var n in t){var i=null,r=t[n];if(e.hasOwnProperty(r)&&(i=e[r]),f.base_fn.isFunction(i)){var o=n.match(c),s=o[2];s=s.split(",");for(var a=0,l=s.length;a<l;++a)this._attachEvents(o[1],s[a],i.bind(this))}}O?O=!1:(e.hasOwnProperty("name")||(e.name=this.name),f.Views.registerView(e,this))},_attachEvents:function(e,t,n){this.$el&&this.$el.on(e+".attachedEvents_"+this.vid,t,n)},_unattachEvents:function(e){this.$el&&this.$el.off(e+".attachedEvents_"+this.vid)}}),f.Views.getViewById=function(e){if(A.hasOwnProperty(e))return A[e]},f.Views.getView=function(e){return e=(e=e.replaceAll(/[\W]/g,"_")).toLowerCase(),f.Views.getViewById(e)},f.Views.registerView=function(e,t){O=!0;var n=null,i=null;if(!f.base_fn.isObject(e))throw new Error(f.error_messages.E_PARAM_INREGISTRARE_VIEW);var r=document.getElementById(e.elId);if(e.debug||r){if(!e.hasOwnProperty("name")||""==e.name.trim())throw new Error(f.error_messages.E_VIEW_INVALID_
1NAME);if(e.nameId||(e.nameId=e.name.replaceAll(/[\W]/g,"_"),e.nameId=e.nameId.toLowerCase()),t&&(t.nameId=e.nameId),A.hasOwnProperty(e.nameId))throw new Error(f.error_messages.E_VIEW_INREGISTRAT+"["+e.name+"]");i=t||new x(e),A[i.nameId]=i,n=i}return n};var N=f.views={};return N.register_view=function(e,t){return t.hasOwnProperty(e)||(t.name=e),f.Views.registerView(t)},N.register_view_old=function(e,t){if(arguments.length<2)throw new Error(f.error_messages.E_PARAM_INREGISTRARE_VIEW);if(e&&t){for(var n=!1,i=0,r=I.length;i<r;i++)if(e==I[i])throw new Error(f.error_messages.E_VIEW_INREGISTRAT+"["+e+"]");if(t&&"[object Object]"==Object.prototype.toString.call(t)){var o=0;for(var s in t)a(_view_mandatory_props,s)&&o++;if(o<_view_mandatory_props.length)throw n=!0,new Error(f.error_messages.E_VIEW_INVALID+"["+e+"]")}n||(I.push(e),t=d.extend(t,m),A[e]=t)}},f}(0,{},t.jQuery||t.$)}(),function(){var e=Extended.Components.EXT_Component,t=Extended.Components.EXT_ModalPreloader=function(e){if(!Extended.base_fn.isObject(e))throw new Error(Extended.error_messages.E_MODAL_PRELOADER_INVALID_ARGS);this.enabled=0!=e.preloader,this.id="#modals-mask-preloader",this.text=e.preloader_message||"Se salveaza",this.events=e.events||{}};$.extend(t.prototype,{addPreloader:function(e){if(this.enabled){var t=$(this.id),n=add_preloader_on_modals(this.text);t.html(n)}else{var i=!1;$("#fromSelectBox").length&&$("#toSelectBox").length&&(i=!0),0==i&&add_field_preloader(e,3e3,!0,"submit")}},removePreloader:function(){if(this.enabled){var e=$(this.id);""!=e.html()&&e.html("")}}});var n=Extended.Components.EXT_SelectorProdus=function(e){n._Parent.constructor.call(this,e),this.register_event("select_tip_produs","click","input.select-tip-produse[type=radio]"),this.set_event_callback("select_tip_produs",this.e_click_tip_produse)};e.extend(n,e),$.extend(n.prototype,{TYPE_NAME:"EXT_SelectorProdus",startup:function(){select_gproduse(3,"",!0)},e_click_tip_produse:function(e){var t=$(e.target).val();select_gproduse(t,"",!0)}});var i=Extended.Components.EXT_SelectorImagine=function(e){i._Parent.constructor.call(this,e),this.register_event("vizualizeaza_imagine","click","#"+this.get_config("id_view_link")),this.register_event("sterge_imagine","click","#"+this.get_config("id_delete_link")),this.set_event_callback("vizualizeaza_imagine",this.e_click_view_link),this.set_event_callback("sterge_imagine",this.e_click_delete_link)};e.extend(i,e),$.extend(i.prototype,{TYPE_NAME:"EXT_SelectorImagine",component_config:["id_preloader","id_view_link","id_delete_link","mesaj_confirmare"],component_default_config:{id_preloader:"default_preloader",id_view_link:"view_link",id_delete_link:"delete_link",mesaj_confirmare:"Sunteti sigur ca doriti sa stergeti imaginea ?"},e_click_view_link:function(e){},e_click_delete_link:function(e){e.preventDefault();var n=this,t=$(e.target);confirm(this.get_config("mesaj_confirmare"))&&(add_field_preloader(this.get_config("id_preloader"),2e3),this._modal_&&this._modal_.preloader.addPreloader(),$.ajax({url:t.attr("href"),type:"get",complete:function(e,t){if(n._modal_.preloader.removePreloader(),200==e.status){e.responseText;n.find(".linkbar").hide(),n.find(".ext-col:first-child").removeClass("with-padd-b")}}}))}});var r=Extended.Components.EXT_UploadFisier=function(e,t){r._Parent.constructor.call(this,e),this.input_count=1;var n=this.find(".ext-input-file-js:first"),i=this.find(".ext-file-choose-js:first");n.off("click tap"),i.off("change"),this.register_event("file_browser_open","click tap",".ext-input-file-js"),this.register_event("file_browser_change","change",".ext-file-choose-js"),this.register_event("adauga_fisier","click tap","#uf_buton_adauga_fisier"),this.set_event_callback("file_browser_open",this.e_file_browser_open),this.set_event_callback("file_browser_change",this.e_file_browser_change),this.set_event_callback("adauga_fisier",this.e_add_file)};e.extend(r,e),$.extend(r.prototype,{TYPE_NAME:"EXT_UploadFisier",component_config:["max_files"],component_default_config:{max_files:10},e_file_browser_open:function(e){e.preventDefault(),$(e.target).parents(".ext-file-js").find(".ext-file-choose-js").click()},e_file_browser_change:function(e){e.preventDefault();var t=$(e.target),n=t.val();n=n.trim()?n.replace("C:\\fakepath\\",""):"Nici un fisier selectat.",t.parents(".ext-file-js").find(".ext-input-file-js").val(n)},e_add_file:function(e){e.preventDefault();var t=this.find("div.ext-file.ext-file-js:first"),n=this.find("#input-box"),i=this.get_config("max_files");n.length&&t.length&&this.input_count+1<=i&&(n.append("<br/>"+t[0].outerHTML),this.input_count++)},e_delete_file:function(e){e.preventDefault()}})}
1(),function(){var e=Extended.Components.EXT_Component,t=Extended.Components.EXT_FloatingNotification=function(e){t._Parent.constructor.call(this,e),this.register_event("inchide_notificare","click","a.close.buton"),this.set_event_callback("inchide_notificare",this.e_close)};e.extend(t,e),$.extend(t.prototype,{TYPE_NAME:"EXT_FloatingNotification",component_config:["url_inchide_notificare"],e_close:function(e){e.preventDefault();var t=$("#"+this.get_config("id")),n=t.data("notificare-id"),i=this.get_config("url_inchide_notificare");$.ajax({url:i+"/",type:"post",data:{id_notificare:n},success:function(){t.remove()}})}})}(),Extended.fn_extend("link_cupon",function(e,t){var n=$("#"+e),i=Extended.base_fn._c("url_salveaza_cupon_promotional");n.on("click",function(e){e.preventDefault(),$.ajax({url:i,type:"post",data:{cod_voucher:t},dataType:"json",complete:function(e,t){var n="";e.responseJSON&&(n=e.responseJSON),403==e.status?open_modal("autentificare"):400==e.status?open_modal("confirmari",n.mesaj,1):200==e.status&&n.mesaj&&open_modal("confirmari",n.mesaj,0)}})})});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.