text: app.factory("RicercaService",["$http","$q","GeneralService",function(C,i,I){var G=I.getBaseURL();self=this;var ah=[];var am=[];var y=[];var e=[];var s=[];var aa="active";var ab="";var J="";var k=[];var aq=[];var H=[];var o=[];var E=null;var ac=null;var t=null;var ae=[];var d=[];var aj="";var ad=[{contentName:"Pagamento della TARI",category:"Pagamenti"},{contentName:"Pagamento tassa di circolazione",category:"Pagamenti"},{contentName:"Modulo pagamento tasse universitarie",category:"Modulistica"},{contentName:"Pagamento tributi a Pirri",category:"Pagamenti"},{contentName:"Concorso ragioniere - Ufficio pagamenti",category:"Concorsi"},{contentName:"Modulistica pagamento TARSU",category:"Modulistica"}];var L={Init:ai,setArgomenti:q,setCategorie:U,toggle:P,exists:b,ammins_isIndeterminate:m,ammins_isChecked:D,ammins_toggleAll:af,servizi_isIndeterminate:K,servizi_isChecked:W,servizi_toggleAll:ap,novita_isIndeterminate:T,novita_isChecked:a,novita_toggleAll:B,docs_isIndeterminate:S,docs_isChecked:p,docs_toggleAll:R,toggleAll:M,class_tutti:n,class_categorie:r,unchk:X,clean_date:F,setActive:Q,setArgsSelected:O,setCatSelected:g,get_ammins_selected:l,get_servizi_selected:x,get_novita_selected:ak,get_docs_selected:N,get_args_selected:al,get_categoriaTab:Y,get_argomentoTab:Z,get_opzioniTab:z,get_ammins_chk:h,get_servizi_chk:j,get_novita_chk:w,get_docs_chk:A,get_active_chk:u,set_active_chk:f,get_data_inizio:an,get_data_fine:v,get_argomenti:ag,get_categorie:c,getRisultatiRicerca:ao,selectedRicercaTxtItemChanged:V};return L;function ai(ar){ar.RicercaService=this}function q(ar){if(ar!="Argomenti"){ae.push(ar.replace("%","'"))}}function U(at,ar){switch(ar){case"Amministrazione":k.push(at);break;case"Novità":H.push(at);break;case"Servizi":aq.push(at);break;case"Documenti e dati":o.push(at);break}}function P(at,au){var ar=au.indexOf(at);if(ar>-1){au.splice(ar,1)}else{au.push(at)}}function b(ar,at){return at.indexOf(ar)>-1}function m(){return(ah.length!==0&&ah.length!==k.length)}function D(){return ah.length===k.length}function af(){if(ah.length===k.length){ah=[]}else{if(ah.length===0||ah.length>0){ah=k.slice(0)}}}function K(){return(am.length!==0&&am.length!==aq.length)}function W(){return am.length===aq.length}function ap(){if(am.length===aq.length){am=[]}else{if(am.length===0||am.length>0){am=aq.slice(0)}}}function T(){return(y.length!==0&&y.length!==H.length)}function a(){return y.length===H.length}function B(){if(y.length===H.length){y=[]}else{if(y.length===0||y.length>0){y=H.slice(0)}}}function S(){return(e.length!==0&&e.length!==o.length)}function p(){return e.length===o.length}function R(){if(e.length===o.length){e=[]}else{if(e.length===0||e.length>0){e=o.slice(0)}}}function M(ar){if(ar=="categorie"){ah=[];am=[];y=[];e=[]}if(ar=="argomenti"){s=[]}switch(ar){case"categorie":ah=[];am=[];y=[];e=[];break;case"argomenti":s=[];break;default:ah=[];am=[];y=[];e=[];s=[];E=null;F()}}function n(ar){switch(ar){case"categorie":if(ah.length!==0||am.length!==0||y.length!==0||e.length!==0){return""}else{return"active"}break;default:if(ah.length!==0||am.length!==0||y.length!==0||e.length!==0||s.length!==0||this.active_chk!=null||this.data_inizio!=null||this.data_fine!=null){return""}else{return"active"}break}}function r(ar,at){if(ar.length!==0&&ar.length!==at.length){return"active"}else{if(ar.length===at.length){return"active"}else{return""}}}function X(at,au){var ar=au.indexOf(at);if(ar>-1){au.splice(ar,1)}}function F(){this.data_inizio=null;this.data_fine=null}function Q(ar){switch(ar){case"argomenti":aa="";ab="active";J="";break;case"opzioni":aa="";ab="";J="active";break;default:aa="active";ab="";J=""}}function O(ar){if(ar!=""){s=ar.split(",")}}function g(ar,at){if(at!=""){switch(ar){case"amministrazione":ah=at.split(",");break;case"servizi":am=at.split(",");break;case"novita":y=at.split(",");break;case"documenti":e=at.split(",");break;default:}}}function l(){return ah}function x(){return am}function ak(){return y}function N(){return e}function al(){return s}function Y(){return aa}function Z(){return ab}function z(){return J}function h(){return k}function j(){return aq}function w(){return H}function A(){return o}function u(){return this.active_chk}function f(ar){this.active_chk=ar}function an(){return this.data_inizio}function v(){return this.data_fine}function ag(){return ae}function c(){return d}function ao(at){var ar=i.defer();ar.resolve(ad);return ar.promise}function V(ar){if(ar!==undefined&&ar.contentName!==undefined){aj=ar.contentName}if(ar===undefined){aj=""}}}]);