PageSourceSearch

https://kkl-jnf.org/SVTemplate/js/prod/flowersSearchHeader.min.js

js kkl-jnf.org collected 2026-10-02 04:40:03 UTC 8,098 bytes, 1 lines download raw bytes

1var flowersSearchHeader={initialize:function(e,l){$(".stamp-search-section").length&&new Vue({el:"#flowersSearchHeader",data:{flowersWS:"",loadingData:!1,allflowers:[],tmpflowers:[],flowersToDisplay:[],flowersLookuplifeform:[],flowersLookupdistribution:[],flowersLookupFamily:[],flowersLookupcolor:[],flowersLookupLifeCount:[],flowersLookupPlantPlace:[],flowersLookupMonth:[],flowersLookupHeight:[],flowersLookupStemShape:[],flowersLookupKasut:[],flowersLookupLeafLang:[],flowersLookupLeafShape:[],alphabet:[...flowersSearchObject.alphabet],propName:"",propValue:"",userSelectedName:"",userSelectedFamily:null,userSelectedColor:null,userSelectedLifeForm:null,userSelectedDistribution:null,userSelectedLetter:null,userSelectedLeafCount:null,userSelectedFloweringMonth:null,userSelectedPlantPlace:null,userSelectedStemShape:null,userSelectedKasut:null,userSelectedLeafLang:null,userSelectedLeafShape:null,userSelectedFlowerHeight:null,numberofItemsToDisplay:12,pagerText:"",currentPage:1,totalPages:1,totalCount:0,totalCountText:"",url:""},methods:{getflowersLookup:function(){return axios.post("__svws__/AppServices.asmx/GetFlowersLookups",{}).then((function(e){if(e&&e.data&&e.data.d)return e.data.d})).catch((function(e){console.log(e)}))},applyUrlParamsToFilter:function(){let e=new URLSearchParams(window.location.search);var l=e.get("Name");null!=l&&(this.userSelectedName=l,$("#userSelectedName").parent().find("div.pio-form-field-title").addClass("choosen"));var t=e.get("Family");null!=t&&(this.userSelectedFamily=t,$("#userSelectedFamily").parent().find("div.pio-form-field-title").addClass("choosen"));var r=e.get("Color");null!=r&&(this.userSelectedColor=r,$("#userSelectedColor").parent().find("div.pio-form-field-title").addClass("choosen"));var o=e.get("Letter");null!=o&&(this.userSelectedLetter=o);var s=e.get("LifeForm");null!=s&&(this.userSelectedLifeForm=s,$("#userSelectedLifeForm").parent().find("div.pio-form-field-title").addClass("choosen"));var a=e.get("Distrib");null!=a&&(this.userSelectedDistribution=a,$("#userSelectedDistribution").parent().find("div.pio-form-field-title").addClass("choosen"));var i=e.get("Month");null!=i&&(this.userSelectedFloweringMonth=i,$("#userSelectedFloweringMonth").parent().find("div.pio-form-field-title").addClass("choosen")),this.FilterSearch()},loadData:function(){var e=this;Promise.all([e.getflowersLookup()]).then((function(l){e.applyUrlParamsToFilter();var t=l[0];if(t&&"undefined"!=t){let l=JSON.parse(t);e.flowersLookupFamily=l.families,e.flowersLookupcolor=l.colors,e.flowersLookuplifeform=l.lifeforms,e.flowersLookupdistribution=l.distributions,e.flowersLookupLifeCount=l.lifecount,e.flowersLookupPlantPlace=l.plantplace,e.flowersLookupMonth=l.month,e.flowersLookupStemShape=l.stemshape,e.flowersLookupLeafLang=l.leaflang,e.flowersLookupLeafShape=l.leafshape,e.flowersLookupHeight=l.height,e.flowersLookupKasut=l.kasut}})).catch((function(e){console.log(e)})).finally((function(){e.loadingData=!1}))},inputVisibility:function(e){var l=e.target,t=l.value,r=$(l).closest(".pio-form-field-container");""!==t&&null!==t?r.addClass("active"):r.removeClass("active")},onflowersSearch:function(){console.log(this.userSelectedFamily+","+this.userSelectedFloweringMonth+","+flowersSearchObject.SearchType),this.url="plants/";var e="?";""!=this.userSelectedName&&(e+="&Name="+this.userSelectedName),null!=this.userSelectedFamily&&"לא יודע"!=this.userSelectedFamily&&(e+="&Family="+this.userSelectedFamily),null!=this.userSelectedColor&&"לא יודע"!=this.userSelectedColor&&(e+="&Color="+this.userSelectedColor),null!=this.userSelectedLetter&&""!=this.userSelectedLetter.toLowerCase()&&(e+="&Letter="+this.userSelectedLetter.toLowerCase()),null!=this.userSelectedLifeForm&&"לא יודע"!=this.userSelectedLifeForm&&(e+="&LifeForm="+this.userSelectedLifeForm),null!=this.userSelectedDistribution&&"לא יודע"!=this.userSelectedDistribution&&(e+="&Distrib="+this.userSelectedDistribution),null!=this.userSelectedFloweringMonth&&"לא יודע"!=this.userSelectedFloweringMonth&&(e+="&Month="+this.userSelectedFloweringMonth),e.length>1&&(this.url+=e),window.location.href=this.url,this.FilterSearch()},FilterSearch:function(){var e=this;e.allflowers&&e.allflowers.length>0&&(e.tmpflowers=e.allflowers.filter(l=>
1(console.log("לא יודע"==e.userSelectedFamily),l.Title.indexOf(e.userSelectedName)>-1&&(null==e.userSelectedFamily||"לא יודע"==e.userSelectedFamily||l.Flower_Family===e.userSelectedFamily)&&(null==e.userSelectedColor||"לא יודע"==e.userSelectedColor||l.Flower_color.includes(e.userSelectedColor))&&(null==e.userSelectedLetter||l.Title.toLowerCase().charAt(0)===e.userSelectedLetter.toLowerCase())&&(null==e.userSelectedLifeForm||"לא יודע"==e.userSelectedLifeForm||l.Life_form===e.userSelectedLifeForm)&&(null==e.userSelectedDistribution||"לא יודע"==e.userSelectedDistribution||l.Country_distribution.includes(e.userSelectedDistribution))&&(null==e.userSelectedLeafCount||"לא יודע"==e.userSelectedLeafCount||l.Leaf_Count===e.userSelectedLeafCount)&&(null==e.userSelectedPlantPlace||"לא יודע"==e.userSelectedPlantPlace||l.Plant_Place===e.userSelectedPlantPlace)&&(null==e.userSelectedFloweringMonth||"לא יודע"==e.userSelectedFloweringMonth||l.Flowering_month.includes(e.userSelectedFloweringMonth))&&(null==e.userSelectedFlowerHeight||"לא יודע"==e.userSelectedFlowerHeight||l.Flower_height===e.userSelectedFlowerHeight)&&(null==e.userSelectedStemShape||"לא יודע"==e.userSelectedStemShape||l.Stem_Shape===e.userSelectedStemShape)&&(null==e.userSelectedKasut||"לא יודע"==e.userSelectedKasut||l.Kasut===e.userSelectedKasut)&&(null==e.userSelectedLeafLang||"לא יודע"==e.userSelectedLeafLang||l.Leaf_Lang===e.userSelectedLeafLang)&&(null==e.userSelectedLeafShape||"לא יודע"==e.userSelectedLeafShape||l.Leaf_Shape===e.userSelectedLeafShape))),0==e.tmpflowers.length?$(".stamp-search-noresults").show():$(".stamp-search-noresults").hide(),e.flowersToDisplay=e.tmpflowers.slice(0,e.numberofItemsToDisplay),e.currentPage=1,e.totalPages=calculatePagesCount(e.numberofItemsToDisplay,e.tmpflowers.length),e.pagerText=flowersSearchObject.LBL_PAGER_PAGE_OF_TOTAL.replace("{0}",e.currentPage).replace("{1}",e.totalPages),e.tmpflowers.length>0?e.totalCountText=flowersSearchObject.LBL_FLOWER_OF_TOTAL.replace("{0}",e.tmpflowers.length):(e.totalCountText="",$(".flowers-search-loading").hide()))},onPageChange:function(e){null!==this.tmpflowers?this.flowersToDisplay=this.tmpflowers.slice((e-1)*this.numberofItemsToDisplay,e*this.numberofItemsToDisplay):this.flowersToDisplay=[]},resetFilters:function(){$("input:radio[name='filterLetters']").prop("checked",!1),this.userSelectedName="",this.userSelectedFamily=null,this.userSelectedColor=null,this.userSelectedDistribution=null,this.userSelectedLifeForm=null,this.userSelectedLetter=null,this.userSelectedFlowerHeight=null,this.userSelectedFloweringMonth=null,this.userSelectedKasut=null,this.userSelectedLeafCount=null,this.userSelectedLeafLang=null,this.userSelectedLeafShape=null,this.userSelectedPlantPlace=null,this.userSelectedStemShape=null,$(".pio-form-field-container").removeClass("field-in-focus field-is-active active select-changed")}},mounted:function(){this.loadData()},watch:{currentPage:function(){this.onPageChange(this.currentPage),this.pagerText=flowersSearchObject.LBL_PAGER_PAGE_OF_TOTAL.replace("{0}",this.currentPage).replace("{1}",this.totalPages),that.tmpflowers.length>0?that.totalCountText=flowersSearchObject.LBL_FLOWER_OF_TOTAL.replace("{0}",that.tmpflowers.length):(that.totalCountText="",$(".flowers-search-loading").hide())}}})}};$(window).on("beforeunload",(function(){$("input:radio[name='filterLetters']").prop("checked",!1),$("#userSelectedName").val(""),$(".pio-form-field-container").removeClass("field-in-focus field-is-active active select-changed")})),$(".mobile-open-search").click((function(){$(this).toggleClass("open"),$("#flowersSearchHeader").slideToggle(),$(this).hasClass("open")?$(this).attr("aria-expanded","true"):$(this).attr("aria-expanded","false")}));

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.