{"version":3,"sources":["pages/Pages.SearchScripts.js"],"names":["Searches","councilDisplayName","useDefaultSearchPeriod","eventTypeMap","0","1","2","3","4","5","7","eventFormatMap","6","8","9","10","11","12","13","14","DiaryFormatsDisplayName","buildSearch","uniqueEvents","search","IgnoreEventIds","ignoreEventIds","IgnoreEventKeys","ignoreEventKeys","WhatText","$","val","LocationID","searchDefaults","Latitude","Longitude","GeographyID","CalendarDisplay","WhenIndex","length","SearchFrom","createDateTime","SearchTo","today","Date","formattedDate","String","getDate","padStart","getMonth","getFullYear","PageNo","PageSize","DiaryTypeID","CouncilID","StateCode","DiaryCategories","KeyWords","DiaryAudienceID","DiaryFormatID","UniqueEvents","IncludeDeletedAndUnpublished","AffiliateSiteID","ViewableBy","CustomTagID","SearchOrganisationID","LocationOutletID","RadiusKM","ManagedOutletID","dateVal","hour","min","sec","ms","parts","split","toISOString","hideLoading","hide","ScrollLoading","aria","Utils","AriaAlert","ariaGrid","OnClickGetGeographyResults","empty","GetGeographyResults","options","_searchOptions","opts","currentDate","PAGE_NO","MAX_PAGE_SIZE","geographyId","searchOptions","diaryTypeIDs","DiaryTypeIDs","diaryFormatID","whenIndex","searchTo","date","slice","ajax","type","url","window","AppSettings","ApiUrl","data","beforeSend","show","eventTypeText","text","success","events","Data","append","template","render","DiaryUrl","replace","ResultPanelClass","html","shave","off","on","newOptions","extend","currentPage","this","error","complete","getResults","post","contentType","JSON","stringify","DiaryTypeId","isNaN","parseInt","EventFormatId","DiaryType","EventFormat","displayPeriod","manipulateTopEventHeader","attr","forEach","e","DataProviderKey","push","EventID","$template","removeAttr","FinishedAutoScroll","isFocused","findFocusedItem","document","activeElement","x","y","focusedRow","focusedCol","Grid","getElementById","setFocusPointer","showResults","err","console","log","BottomMarginTrigger","PagesToAutoScroll","displayCouncilDetails","council","template2","$template2","hideAdvancedFilter","removeClass","hideEventFormats","url_type_num","displayEventFormats","totalEventFormats","hiddenArray","filter","indexOf","TaggedEventsSearch","specialEventPeriods","find","collapse","each","eventPeriodTagIds","eventPeriodId","eventPeriodTagId","toString","map","tag","period","tags","eventPeriod","CustomTagIDs","periodSelector","resultsSelector","InitSearch","state","What","Where","DisplayName","Name","State","typeValues","dataType","sort","slick","slidesToShow","slide","autoplay","addClass","get","IncludeExpiredEvents","DiaryTypeIds","done","res","click","change","fail","preventDefault","toggleClass","hasClass","url_type","url_format","hostName","location","origin","stateName","LongUrl","regionName","urlParam_type","urlParam_format","councilName","metaTagTitle","metaTagDescription","metaTagKeywords","sidebarDiaryType","metaTitle","metaDescription","metaKeywords","remove","history","replaceState","is","fullCalendar","width","l","header","left","center","right","height","startParam","endParam","nowIndicator","fixedWeekCount","eventDataTransform","event","eventDisplayColour","id","ID","title","EventName","start","StartsAt","end","EndsAt","InstanceUrl","allDay","StartTime","diaryElement","color","eventRender","element","qtip","content","position","target","adjust","my","at","style","api","t","str","len","substring","truncateString","loading","isLoading","view","selectedArray","sourceObj","filteredDiaryFormats","Object","keys","key","Number","reduce","obj","$select","value","evnt","format","whatText","whereText","path","pathname","params","trim","encodeURIComponent","join","href"],"mappings":"AAAA,IAAIA,SAAW,WACX,IAAIC,EACAC,GAAyB,EAEzBC,EAAe,CACfC,EAAG,MACHC,EAAG,iBACHC,EAAG,WACHC,EAAG,eACHC,EAAG,cACHC,EAAG,mBACHC,EAAG,iCAEHC,EAAiB,CACjBP,EAAG,MACHC,EAAG,QACHC,EAAG,aACHC,EAAG,WACHC,EAAG,SACHC,EAAG,UACHG,EAAG,QACHF,EAAG,WACHG,EAAG,YACHC,EAAG,OACHC,GAAI,OACJC,GAAI,SACJC,GAAI,eACJC,GAAI,yBACJC,GAAI,sBAGJC,EAA0B,CAC1Bf,EAAG,wCACHC,EAAG,uBACHC,EAAG,6BACHC,EAAG,UACHC,EAAG,yBACHG,EAAG,kBACHF,EAAG,iBACHG,EAAG,kBACHC,EAAG,gBACHC,GAAI,OACJC,GAAI,SACJC,GAAI,gBACJC,GAAI,2BACJC,GAAI,wBA4BR,SAASE,EAAYC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AAiBqR,EAAO,MAAM5F,SAAS,eAAeA,SAAS,kBACjEzL,EAAE,iBAAmBsR,EAAS,MAAM7F,SAAS,eAAeA,SAAS,kBAMrEzL,EAAE,UAAU+F,GAAG,QAAS,WACpB/F,EAAE,sCAAsCkJ,YAAY,eAAeuC,SAAS,iBAC5EzL,EAAE,wCAAwCkJ,YAAY,eAAeuC,SAAS,iBAC9EzL,EAAE,cAAcC,IAAI,IACpBD,EAAE,gBAAgBC,IAAI,IACtBD,EAAE,kBAAkBC,IAAI,IACxBD,EAAE,aAAaC,IAAI,IACnBD,EAAE,cAAcC,IAAI,OACpBE,EAAekB,OAAS,EACxBlB,EAAewH,oBAAqB,EACpC3H,EAAE,4BAA4BgD,OAC9BhD,EAAE,YAAY4F,KAAK,IACnBU,MAGJtG,EAAE,mBAAmB+F,GAAG,QAAS,WAC7B,IAAIwL,EAAWvR,EAAE,4BAA4BC,MACzCuR,EAAYxR,EAAE,6BAA6BC,MAAMyF,QAAQ,OAAQ,KAEjE+L,EAAO9M,OAAO6H,SAASC,OAAS9H,OAAO6H,SAASkF,SAChDC,EAAS,GAGW,KAApBJ,EAASK,QACTD,EAAOpK,KAAK,QAAUsK,mBAAmBN,IAIpB,KAArBC,EAAUI,QACVD,EAAOpK,KAAK,SAAWsK,mBAAmBL,IAI1B,EAAhBG,EAAOlR,SACPgR,GAAQ,IAAME,EAAOG,KAAK,MAG9BnN,OAAO6H,SAASuF,KAAON,MAp0CxB","file":"Pages.SearchScripts.min.js","sourcesContent":["var Searches = function () {\r\n var councilDisplayName;\r\n var useDefaultSearchPeriod = true; // default is next 30 days, WhenIndex:All\r\n var isTaggedEventsPage = false;\r\n var eventTypeMap = {\r\n 0: 'All',\r\n 1: 'CommunityDiary',\r\n 2: 'Training',\r\n 3: 'Inter_Agency',\r\n 4: 'Clubs_Group',\r\n 5: 'Outreach_Service',\r\n 7: 'Queensland_Mental_Health_Week'\r\n };\r\n var eventFormatMap = {\r\n 0: 'All',\r\n 1: 'Class',\r\n 2: 'Exhibition',\r\n 3: 'Festival',\r\n 4: 'Market',\r\n 5: 'Concert',\r\n 6: 'Sport',\r\n 7: 'Business',\r\n 8: 'Community',\r\n 9: 'Food',\r\n 10: 'Vaks',\r\n 11: 'Health',\r\n 12: 'TransportHub',\r\n 13: 'CovidVaccinationClinic',\r\n 14: 'CovidTestingClinic'\r\n };\r\n\r\n var DiaryFormatsDisplayName = {\r\n 1: \"Classes, Lessons, Workshops and Talks\",\r\n 2: \"Exhibition and Shows\",\r\n 3: \"Festivals and Celebrations\",\r\n 4: \"Markets\",\r\n 5: \"Concert or Performance\",\r\n 6: \"Sporting Events\",\r\n 7: \"Business Event\",\r\n 8: \"Community Event\",\r\n 9: \"Food and Wine\",\r\n 10: \"VAKS\",\r\n 11: \"Health\",\r\n 12: \"Transport Hub\",\r\n 13: \"COVID Vaccination Clinic\",\r\n 14: \"COVID Testing Clinic\"\r\n }\r\n\r\n function truncateString(str, len) {\r\n if (str.length <= len) {\r\n return;\r\n }\r\n return str.substring(0, len - 4) + ' ...';\r\n }\r\n function populateSearch(data) {\r\n if (data === null || typeof data !== \"object\") return;\r\n\r\n if (data.What) $(\"#SearchCriteria_WhatText\").val(data.What);\r\n if (data.Where) $(\"#SearchCriteria_WhereText\").val(data.Where);\r\n if (data.LocationID) $(\"#SearchCriteria_LocationID\").val(data.LocationID);\r\n if (data.What) $(\"#SearchCriteria_WhatText\").val(data.What);\r\n if (data.WhenIndex) $(\"#WhenIndex\").val(data.WhenIndex);\r\n if (data.SearchFrom) $(\"#SearchFrom\").val(data.SearchFrom);\r\n if (data.SearchTo) $(\"#SearchTo\").val(data.SearchTo);\r\n if (data.ViewableBy) $(\"#SearchCriteria_ViewableBy\").val(data.ViewableBy);\r\n if (data.DiaryTypeID) $(\"#DiaryType\").val(data.DiaryTypeID);\r\n if (data.KeyWords) $(\"#KeyWords\").val(data.KeyWords);\r\n if (data.DiaryAudienceID) $(\"#DiaryAudience\").val(data.DiaryAudienceID);\r\n if (data.DiaryFormatID) $(\"#DiaryFormat\").val(data.DiaryFormatID);\r\n if (data.LocationOutletID) $(\"#SearchCriteria_LocationOutletID\").val(data.LocationOutletID);\r\n if (data.ManagedOutletID) $(\"#SearchCriteria_ManagedOutletID\").val(data.ManagedOutletID);\r\n }\r\n\r\n function buildSearch(uniqueEvents) {\r\n var search = {};\r\n search.IgnoreEventIds = ignoreEventIds;\r\n search.IgnoreEventKeys = ignoreEventKeys;\r\n search.WhatText = $(\"#SearchCriteria_WhatText\").val();\r\n //search.WhereText = $(\"#SearchCriteria_WhereText\").val();\r\n search.LocationID = $(\"#SearchCriteria_LocationID\").val();\r\n searchDefaults.Latitude = $(\"#SearchCriteria_Latitude\").val();\r\n searchDefaults.Longitude = $(\"#SearchCriteria_Longitude\").val();\r\n searchDefaults.GeographyID = $('#SessionGeographyId').val();\r\n\r\n if (searchDefaults.CalendarDisplay) {\r\n search.WhenIndex = \"5\";\r\n }\r\n else {\r\n if ($(\"#WhenIndex\").length > 0) {\r\n search.WhenIndex = $(\"#WhenIndex\").val();\r\n } else {\r\n search.WhenIndex = \"All\";\r\n }\r\n if ($(\"#SearchFrom\").length > 0 && $(\"#SearchTo\").length > 0) {\r\n search.SearchFrom = createDateTime($(\"#SearchFrom\").val(), 0, 0, 0, 0);\r\n search.SearchTo = createDateTime($(\"#SearchTo\").val(), 23, 59, 59, 999);\r\n } else {\r\n var today = new Date();\r\n // Get the day, month, and year\r\n var day = String(today.getDate()).padStart(2, '0'); // Day of the month (ensure 2 digits)\r\n var month = String(today.getMonth() + 1).padStart(2, '0'); // Month (0-11), add 1 to make it 1-12, ensure 2 digits\r\n var year = today.getFullYear(); // Full year (e.g., 2024)\r\n // Format in d/MM/yyyy format\r\n var formattedDate = day + '/' + month + '/' + year;\r\n search.SearchFrom = createDateTime(formattedDate, 0, 0, 0, 0);\r\n search.SearchTo = \"\";\r\n }\r\n search.PageNo = searchDefaults.PageNo;\r\n search.PageSize = searchDefaults.PageSize;\r\n }\r\n\r\n search.DiaryTypeID = $(\"#DiaryType\").val();\r\n search.CouncilID = searchDefaults.CouncilID;\r\n search.StateCode = searchDefaults.StateCode;\r\n\r\n if (searchDefaults.DiaryCategories) search.DiaryCategories = searchDefaults.DiaryCategories;\r\n\r\n search.KeyWords = $(\"#KeyWords\").val();\r\n search.DiaryAudienceID = $(\"#DiaryAudience\").val();\r\n search.DiaryFormatID = $(\"#DiaryFormat\").val();\r\n search.UniqueEvents = uniqueEvents;\r\n search.IncludeDeletedAndUnpublished = false;\r\n\r\n if (searchDefaults.AffiliateSiteID) search.AffiliateSiteID = searchDefaults.AffiliateSiteID;\r\n\r\n search.ViewableBy = $(\"#SearchCriteria_ViewableBy\").val() !== \"\" ? $(\"#SearchCriteria_ViewableBy\").val() : \"0\";\r\n\r\n if (searchDefaults.GeographyID) search.GeographyID = searchDefaults.GeographyID;\r\n if (searchDefaults.CustomTagID) search.CustomTagID = searchDefaults.CustomTagID;\r\n if (searchDefaults.SearchOrganisationID) search.SearchOrganisationID = searchDefaults.SearchOrganisationID;\r\n if (searchDefaults.LocationOutletID) search.LocationOutletID = searchDefaults.LocationOutletID;\r\n\r\n if (searchDefaults.Latitude && searchDefaults.Longitude) {\r\n search.Latitude = searchDefaults.Latitude;\r\n search.Longitude = searchDefaults.Longitude;\r\n search.RadiusKM = 5;\r\n }\r\n \r\n if (searchDefaults.ManagedOutletID) search.ManagedOutletID = searchDefaults.ManagedOutletID;\r\n return search;\r\n }\r\n\r\n function createDateTime(dateVal, hour, min, sec, ms) {\r\n var parts = dateVal.split(\" \");\r\n if (0 === parts.length || \"\" === parts[0]) {\r\n return \"\";\r\n }\r\n parts = parts[0].split(\"/\");\r\n if (parts.length >= 3) {\r\n return new Date(parts[2], parts[1] - 1, parts[0], hour, min, sec, ms).toISOString();\r\n }\r\n return \"\";\r\n }\r\n\r\n function showLoading() {\r\n searchDefaults.ScrollLoading = true;\r\n $(\"#resultsPanel .waiting\").show();\r\n aria.Utils.AriaAlert(\"Getting results...\");\r\n }\r\n\r\n function hideLoading() {\r\n $(\"#resultsPanel .waiting\").hide();\r\n searchDefaults.ScrollLoading = false;\r\n aria.Utils.AriaAlert(\"Showing results...\");\r\n }\r\n\r\n // Switching to different DiaryType or DiaryFormat must clear ignoreEventIds, ignoreEventKeys\r\n var ignoreEventIds = [0];\r\n var ignoreEventKeys = [''];\r\n\r\n function GetGeographyResults(options, _searchOptions) {\r\n var opts = options || {};\r\n var currentDate = opts.currentDate || null;\r\n var PAGE_NO = opts.PAGE_NO || 1;\r\n var MAX_PAGE_SIZE = opts.MAX_PAGE_SIZE || 20;\r\n var PAGE_CONTENT_SIZE = opts.PAGE_CONTENT_SIZE || 20;\r\n var geographyId = opts.geographyId || null;\r\n\r\n var searchOptions = _searchOptions || {};\r\n var diaryTypeIDs = searchOptions.DiaryTypeIDs || [1, 4, 5];\r\n var diaryFormatID = searchOptions.DiaryFormatID || 0;\r\n var whenIndex = searchOptions.WhenIndex || 'All';\r\n var searchTo = searchOptions.SearchTo || \"\";\r\n\r\n if (!geographyId || $('#SearchCriteria_WhereText').val() == \"\") return;\r\n\r\n if (!currentDate) {\r\n var date = new Date();\r\n var year = date.getFullYear();\r\n var month = ('0' + (date.getMonth() + 1)).slice(-2);\r\n var day = ('0' + date.getDate()).slice(-2);\r\n currentDate = year + '-' + month + '-' + day;\r\n }\r\n\r\n $.ajax({\r\n type: \"GET\",\r\n url: window.AppSettings.ApiUrl + '/api/v1/search/diary/GetResponse',\r\n data: {\r\n WhenIndex: whenIndex,\r\n SearchFrom: currentDate,\r\n SearchTo: searchTo,\r\n PageNo: PAGE_NO,\r\n PageSize: MAX_PAGE_SIZE, // Page Size for calculating total pages\r\n UniqueEvents: true,\r\n IncludeDeletedAndUnpublished: false,\r\n //CouncilID: councilId,\r\n //IsCommunityOrganisation: false,\r\n //IsATDW: false,\r\n //IsEventFinda: false,\r\n //IsCheckup: false,\r\n //IsCATS: false,\r\n //IsPrivate: false,\r\n //Latitude: latitude,\r\n //Longitude: longitude,\r\n //RadiusKM: searchRadius,\r\n GeographyID: geographyId,\r\n DiaryFormatID: diaryFormatID,\r\n DiaryTypeIDs: diaryTypeIDs,\r\n //IgnoreEventIds: ignoreEventIds,\r\n //IgnoreEventKeys: ignoreEventKeys\r\n },\r\n beforeSend: function () {\r\n $('#resultsPanelUCL .waiting').show();\r\n $(\"#resultsUCL\").show();\r\n var eventTypeText = '';\r\n switch (diaryTypeIDs.length) {\r\n case 1:\r\n switch (diaryTypeIDs[0]) {\r\n case 1:\r\n case '1':\r\n eventTypeText = 'Community Diary';\r\n break;\r\n case 4:\r\n case '4':\r\n eventTypeText = 'Clubs & Groups Diary';\r\n break;\r\n case 5:\r\n case '5':\r\n eventTypeText = 'Outreach Services Diary';\r\n break;\r\n }\r\n break;\r\n case 0:\r\n default:\r\n break;\r\n }\r\n $('#topEventsHeaderUCL .eventType').text(eventTypeText);\r\n $('#resultsPanelUCL .show-more').hide();\r\n },\r\n success: function (events) {\r\n var data = events.Data;\r\n if (data && data.length > 0) {\r\n var template = $(\"#resultTemplate\").render(data, { DiaryUrl: window.AppSettings.DiaryUrl }).replace(/col-lg-3/g, \"col-lg-\" + searchDefaults.ResultPanelClass);\r\n var $template = $(\"
\").html(template);\r\n //$(\".nofollow\", $template).removeAttr(\"rel\");\r\n template = $template.html();\r\n\r\n $(\"#resultsUCL\").append(template);\r\n $(\"#resultsUCL .card-description\").shave(48);\r\n\r\n $('#resultsPanelUCL .show-more').show();\r\n $('#resultsPanelUCL .show-more').off('click').on('click', function () {\r\n var newOptions = $.extend({}, options);\r\n var currentPage = $(this).data('page');\r\n currentPage += 1;\r\n newOptions.PAGE_NO = currentPage;\r\n $(this).data('page', currentPage);\r\n GetGeographyResults(newOptions, diaryTypeIDs);\r\n });\r\n }\r\n else\r\n {\r\n $('#resultsPanelUCL .show-more').hide();\r\n $(\"#resultsUCL\").append($(\"