PageSourceSearch

https://theartssociety.org/civicrm/asset/builder?an=crm-l10n.js&ad…MEhYfEE8QVG1g-x4Uf-9aBBX995RqC2ccGXVhtgQaI4

js theartssociety.org collected 2026-10-02 07:19:40 UTC 7,822 bytes, 120 lines download raw bytes

1// http://civicrm.org/licensing
2// <script> Generated 02 Oct 2026 08:19:40
3(function($) {
4  // Config settings
5  CRM.config.userFramework = "Drupal";
6    CRM.config.resourceBase = "https:\/\/theartssociety.org\/sites\/all\/modules\/civicrm\/";
7    CRM.config.packagesBase = "https:\/\/theartssociety.org\/sites\/all\/modules\/civicrm\/packages\/";
8  CRM.config.lcMessages = "en_GB";
9  CRM.config.locale = "en_GB";
10  CRM.config.cid = 0;
11  $.datepicker._defaults.dateFormat = CRM.config.dateInputFormat = "dd\/mm\/yy";
12  CRM.config.timeIs24Hr = false;
13  CRM.config.ajaxPopupsEnabled = true;
14  CRM.config.allowAlertAutodismissal = true;
15  CRM.config.resourceCacheCode = "cOxN2en_GB";
16  CRM.config.quickAdd = [];
17
18  // Merge entityRef settings
19  CRM.config.entityRef = $.extend({}, {"filters":{"Activity":[{"key":"activity_type_id","value":"Activity Type"},{"key":"status_id","value":"Activity Status"}],"Contact":[{"key":"contact_type","value":"Contact Type"},{"key":"email","value":"Email","entity":"Email","type":"text"},{"key":"group","value":"Group","entity":"GroupContact"},{"key":"tag","value":"Tag","entity":"EntityTag"},{"key":"city","value":"County","type":"text","entity":"Address"},{"key":"postal_code","value":"Postal Code","type":"text","entity":"Address"},{"key":"state_province","value":"State\/Province\/County","entity":"Address"},{"key":"country","value":"Country","entity":"Address"},{"key":"first_name","value":"First Name","type":"text","condition":{"contact_type":"Individual"}},{"key":"last_name","value":"Last Name","type":"text","condition":{"contact_type":"Individual"}},{"key":"nick_name","value":"Nick Name","type":"text","condition":{"contact_type":"Individual"}},{"key":"organization_name","value":"Employer name","type":"text","condition":{"contact_type":"Individual"}},{"key":"gender_id","value":"Gender","condition":{"contact_type":"Individual"}},{"key":"is_deceased","value":"Deceased","condition":{"contact_type":"Individual"}},{"key":"external_identifier","value":"External ID","type":"text"},{"key":"source","value":"Contact Source","type":"text"}],"Email":{"0":{"key":"contact_id.contact_type","value":"Contact Type","entity":"Contact"},"8":{"key":"contact_id.first_name","value":"First Name","type":"text","condition":{"contact_type":"Individual"},"entity":"Contact"},"9":{"key":"contact_id.last_name","value":"Last Name","type":"text","condition":{"contact_type":"Individual"},"entity":"Contact"},"10":{"key":"contact_id.nick_name","value":"Nick Name","type":"text","condition":{"contact_type":"Individual"},"entity":"Contact"},"11":{"key":"contact_id.organization_name","value":"Employer name","type":"text","condition":{"contact_type":"Individual"},"entity":"Contact"},"12":{"key":"contact_id.gender_id","value":"Gender","condition":{"contact_type":"Individual"},"entity":"Contact"},"13":{"key":"contact_id.is_deceased","value":"Deceased","condition":{"contact_type":"Individual"},"entity":"Contact"},"14":{"key":"contact_id.external_identifier","value":"External ID","type":"text","entity":"Contact"},"15":{"key":"contact_id.source","value":"Contact Source","type":"text","entity":"Contact"}},"Event":[{"key":"event_type_id","value":"Event Type"},{"key":"start_date","value":"Start Date","options":[{"key":"{\">\":\"now\"}","value":"Upcoming"},{"key":"{\"BETWEEN\":[\"now - 3 month\",\"now\"]}","value":"Past 3 Months"},{"key":"{\"BETWEEN\":[\"now - 6 month\",\"now\"]}","value":"Past 6 Months"},{"key":"{\"BETWEEN\":[\"now - 1 year\",\"now\"]}","value":"Past Year"}]}]},"links":{"Contact":[{"label":"New Individual","url":"\/civicrm\/profile\/create?reset=1&context=dialog&gid=4","type":"Individual","icon":"fa-user"},{"label":"New Organization","url":"\/civicrm\/profile\/create?reset=1&context=dialog&gid=5","type":"Organization","icon":"fa-building"},{"label":"New Household","url":"\/civicrm\/profile\/create?reset=1&context=dialog&gid=6","type":"Household","icon":"fa-home"}]}}, CRM.config.entityRef || {});
20
21  // Initialize CRM.url and CRM.formatMoney
22  CRM.url({back: '/civicrm/crmajax-placeholder-url-path?civicrm-placeholder-url-query=1', front: '/civicrm/crmajax-placeholder-url-path?civicrm-placeholder-url-query=1'});
23  CRM.formatMoney('init', false, "\u00a3 1,234.56");
24
25  // Localize select2
26  $.fn.select2.defaults.formatNoMatches = "None found.";
27  $.fn.select2.defaults.formatLoadMore = "Loading...";
28  $.fn.select2.defaults.formatSearching = "Searching...";
29  $.fn.select2.defaults.formatInputTooShort = function() {
30    return ($(this).data('api-entity') === 'contact' || $(this).data('api-entity') === 'Contact') ? "Search by name or id..." : "Enter search term or id...";
31  };
32
33  // Localize jQuery UI
34  $.ui.dialog.prototype.options.closeText = "Close";
35
36  // Localize jQuery DataTables
37  // Note the first two defaults set here aren't localization related,
38  // but need to be set globally for all DataTables.
39  $.extend( $.fn.dataTable.defaults, {
40    "searching": false,
41    "jQueryUI": true,
42    "language": {
43      "emptyTable": "None found.",
44      "info":  "Showing _START_ to _END_ of _TOTAL_ entries",
45      "infoEmpty": "Showing 0 to 0 of 0 entries",
46      "infoFiltered": "(filtered from _MAX_ total entries)",
47      "infoPostFix": "",
48      "thousands": ",",
49      "lengthMenu": "Show _MENU_ entries",
50      "loadingRecords": " ",
51      "processing": " ",
52      "zeroRecords": "None found.",
53      "paginate": {
54        "first": "First",
55        "last": "Last",
56        "next": "Next",
57        "previous": "Previous"
58      }
59    }
60  });
61
62  // Localize strings for jQuery.validate
63  var messages = {
64    required: "This field is required.",
65    remote: "Please fix this field.",
66    email: "Please enter a valid email address.",
67    url: "Please enter a valid URL.",
68    date: "Please enter a valid date.",
69    dateISO: "Please enter a valid date (YYYY-MM-DD).",
70    number: "Please enter a valid number.",
71    digits: "Please enter only digits.",
72    creditcard: "Please enter a valid credit card number.",
73    equalTo: "Please enter the same value again.",
74    accept: "Please enter a value with a valid extension.",
75    maxlength: $.validator.format("Please enter no more than {0} characters."),
76    minlength: $.validator.format("Please enter at least {0} characters."),
77    rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."),
78    range: $.validator.format("Please enter a value between {0} and {1}."),
79    max: $.validator.format("Please enter a value less than or equal to {0}."),
80    min: $.validator.format("Please enter a value greater than or equal to {0}.")
81  };
82  $.extend($.validator.messages, messages);
83  
84
85  var params = {
86    errorClass: 'crm-inline-error alert-danger',
87    messages: {},
88    ignore: '.select2-offscreen, [readonly], :hidden:not(.crm-select2), .crm-no-vali
88date',
89    ignoreTitle: true,
90    errorPlacement: function(error, element) {
91      if (element.prop('type') === 'radio') {
92        error.appendTo(element.parents('div.content')[0]);
93      }
94      else {
95        error.insertAfter(element);
96      }
97    }
98  };
99
100  // use civicrm notifications when there are errors
101  params.invalidHandler = function(form, validator) {
102    // If there is no container for display then red text will still show next to the invalid fields
103    // but there will be no overall message. Currently the container is only available on backoffice pages.
104    if ($('#crm-notification-container').length) {
105      $.each(validator.errorList, function(k, error) {
106        $(error.element).parents('.crm-custom-accordion.collapsed').crmAccordionToggle();
107        $(error.element).parents('.crm-custom-accordion').prop('open', true);
108        $(error.element).crmError(error.message);
109      });
110    }
111  };
112
113  CRM.validate = {
114    _defaults: params,
115    params: {},
116    functions: []
117  };
118
119})(jQuery);
120

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.