PageSourceSearch

https://www.kiwicare.co.nz/_resources/vendor/timezoneone/silverstr…/client/dist/favourites.js?m=1788830923

js kiwicare.co.nz collected 2026-09-24 21:46:22 UTC 30,640 bytes, 13 lines download raw bytes

vendor: 8,500 bytes, lines 1-8
1(()=>{function t(t){return t&&t.__esModule?t.default:t}var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},n={},o={},i=e.parcelRequire94c2;null==i&&((i=function(t){if(t in n)return n[t].exports;if(t in o){var e=o[t];delete o[t];var i={id:t,exports:{}};return n[t]=i,e.call(i.exports,i,i.exports),i.exports}var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}).register=function(t,e){o[t]=e},e.parcelRequire94c2=i),i.register("eJpkV",(function(t,e){
2/*!
3 * clipboard.js v2.0.11
4 * https://clipboardjs.com/
5 *
6 * Licensed MIT © Zeno Rocha
7 */
8var n;t.exports,n=function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return E}});var o=n(279),i=n.n(o),r=n(370),a=n.n(r),s=n(817),c=n.n(s);function u(t){try{return document.execCommand(t)}catch(t){return!1}}var f=function(t){var e=c()(t);return u("cut"),e},l=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(o,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var o=c()(n);return u("copy"),n.remove(),o},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof t?n=l(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==t?void 0:t.type)?n=l(t.value,e):(n=c()(t),u("copy")),n};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}var v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,i=t.target,r=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==p(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?d(r,{container:o}):i?"cut"===n?f(i):d(i,{container:o}):void 0};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=b(t);if(e){var i=b(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function j(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(r,t);var e,n,o,i=y(r);function r(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(n=i.call(this)).resolveOptions(e),n.listenClick(t),n}return e=r,n=[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===h(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",o=v({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(o?"success":"error",{action:n,text:o,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return j("action",t)}},{key:"defaultTarget",value:function(t){var e=j("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return j("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],o=[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(t,e)}},{key:"cut",value:function(t){return f(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"==typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}],n&&g(e.prototype,n),o&&g(e,o),r}(i()),E=k},828:function(t){if("undefined"!=typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var o=n(828);function i(t,e,n,o,i){var a=r.apply(this,arguments);return t.addEventListener(n,a,i),{destroy:function(){t.removeEventListener(n,a,i)}}}function r(t,e,n,i){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=function(t,e,n,o,r){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,o,r)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var o=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!o.string(e))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(o.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(o.string(t))return function(t,e,n){return i(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}
8else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function i(){o.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}return n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n(686)}().default},t.exports=n()}));var r={};r=function(){"use strict";
9/*!
10   * mustache.js - Logic-less {{mustache}} templates with JavaScript
11   * http://github.com/janl/mustache.js
12   */var t=Object.prototype.toString,e=Array.isArray||function(e){return"[object Array]"===t.call(e)};function n(t){return"function"==typeof t}function o(t){return e(t)?"array":typeof t}function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function r(t,e){return null!=t&&"object"==typeof t&&e in t}function a(t,e){return null!=t&&"object"!=typeof t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var s=RegExp.prototype.test;function c(t,e){return s.call(t,e)}var u=/\S/;function f(t){return!c(u,t)}var l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function d(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return l[t]}))}var p=/\s*/,v=/\s+/,h=/\s*=/,g=/\s*\}/,m=/#|\^|\/|>|\{|&|=|!/;function y(t,n){if(!t)return[];var o,r,a,s=!1,c=[],u=[],l=[],d=!1,y=!1,k="",E=0;function S(){if(d&&!y)for(;l.length;)delete u[l.pop()];else l=[];d=!1,y=!1}function L(t){if("string"==typeof t&&(t=t.split(v,2)),!e(t)||2!==t.length)throw new Error("Invalid tags: "+t);o=new RegExp(i(t[0])+"\\s*"),r=new RegExp("\\s*"+i(t[1])),a=new RegExp("\\s*"+i("}"+t[1]))}L(n||x.tags);for(var C,O,T,I,_,R,F=new j(t);!F.eos();){if(C=F.pos,T=F.scanUntil(o))for(var A=0,P=T.length;A<P;++A)f(I=T.charAt(A))?(l.push(u.length),k+=I):(y=!0,s=!0,k+=" "),u.push(["text",I,C,C+1]),C+=1,"\n"===I&&(S(),k="",E=0,s=!1);if(!F.scan(o))break;if(d=!0,O=F.scan(m)||"name",F.scan(p),"="===O?(T=F.scanUntil(h),F.scan(h),F.scanUntil(r)):"{"===O?(T=F.scanUntil(a),F.scan(g),F.scanUntil(r),O="&"):T=F.scanUntil(r),!F.scan(r))throw new Error("Unclosed tag at "+F.pos);if(_=">"==O?[O,T,C,F.pos,k,E,s]:[O,T,C,F.pos],E++,u.push(_),"#"===O||"^"===O)c.push(_);else if("/"===O){if(!(R=c.pop()))throw new Error('Unopened section "'+T+'" at '+C);if(R[1]!==T)throw new Error('Unclosed section "'+R[1]+'" at '+C)}else"name"===O||"{"===O||"&"===O?y=!0:"="===O&&L(T)}if(S(),R=c.pop())throw new Error('Unclosed section "'+R[1]+'" at '+F.pos);return b(w(u))}function w(t){for(var e,n,o=[],i=0,r=t.length;i<r;++i)(e=t[i])&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(o.push(e),n=e));return o}function b(t){for(var e,n=[],o=n,i=[],r=0,a=t.length;r<a;++r)switch((e=t[r])[0]){case"#":case"^":o.push(e),i.push(e),o=e[4]=[];break;case"/":i.pop()[5]=e[2],o=i.length>0?i[i.length-1][4]:n;break;default:o.push(e)}return n}function j(t){this.string=t,this.tail=t,this.pos=0}function k(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function E(){this.templateCache={_cache:{},set:function(t,e){this._cache[t]=e},get:function(t){return this._cache[t]},clear:function(){this._cache={}}}}j.prototype.eos=function(){return""===this.tail},j.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},j.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},k.prototype.push=function(t){return new k(t,this)},k.prototype.lookup=function(t){var e,o=this.cache;if(o.hasOwnProperty(t))e=o[t];else{for(var i,s,c,u=this,f=!1;u;){if(t.indexOf(".")>0)for(i=u.view,s=t.split("."),c=0;null!=i&&c<s.length;)c===s.length-1&&(f=r(i,s[c])||a(i,s[c])),i=i[s[c++]];else i=u.view[t],f=r(u.view,t);if(f){e=i;break}u=u.parent}o[t]=e}return n(e)&&(e=e.call(this.view)),e},E.prototype.clearCache=function(){void 0!==this.templateCache&&this.templateCache.clear()},E.prototype.parse=function(t,e){var n=this.templateCache,o=t+":"+(e||x.tags).join(":"),i=void 0!==n,r=i?n.get(o):void 0;return null==r&&(r=y(t,e),i&&n.set(o,r)),r},E.prototype.render=function(t,e,n,o){var i=this.getConfigTags(o),r=this.parse(t,i),a=e instanceof k?e:new k(e,void 0);return this.renderTokens(r,a,n,t,o)},E.prototype.renderTokens=function(t,e,n,o,i){for(var r,a,s,c="",u=0,f=t.length;u<f;++u)s=void 0,"#"===(a=(r=t[u])[0])?s=this.renderSection(r,e,n,o,i):"^"===a?s=this.renderInverted(r,e,n,o,i):">"===a?s=this.renderPartial(r,e,n,i):"&"===a?s=this.unescapedValue(r,e):"name"===a?s=this.escapedValue(r,e,i):"text"===a&&(s=this.rawValue(r)),void 0!==s&&(c+=s);return c},E.prototype.renderSection=function(t,o,i,r,a){var s=this,c="",u=o.lookup(t[1]);function f(t){return s.render(t,o,i,a)}if(u){if(e(u))for(var l=0,d=u.length;l<d;++l)c+=this.renderTokens(t[4],o.push(u[l]),i,r,a);else if("object"==typeof u||"string"==typeof u||"number"==typeof u)c+=this.renderTokens(t[4],o.push(u),i,r,a);else if(n(u)){if("string"!=typeof r)throw new Error("Cannot use higher-order sections without the original template");
12null!=(u=u.call(o.view,r.slice(t[3],t[5]),f))&&(c+=u)}else c+=this.renderTokens(t[4],o,i,r,a);return c}},E.prototype.renderInverted=function(t,n,o,i,r){var a=n.lookup(t[1]);if(!a||e(a)&&0===a.length)return this.renderTokens(t[4],n,o,i,r)},E.prototype.indentPartial=function(t,e,n){for(var o=e.replace(/[^ \t]/g,""),i=t.split("\n"),r=0;r<i.length;r++)i[r].length&&(r>0||!n)&&(i[r]=o+i[r]);return i.join("\n")},E.prototype.renderPartial=function(t,e,o,i){if(o){var r=this.getConfigTags(i),a=n(o)?o(t[1]):o[t[1]];if(null!=a){var s=t[6],c=t[5],u=t[4],f=a;0==c&&u&&(f=this.indentPartial(a,u,s));var l=this.parse(f,r);return this.renderTokens(l,e,o,f,i)}}},E.prototype.unescapedValue=function(t,e){var n=e.lookup(t[1]);if(null!=n)return n},E.prototype.escapedValue=function(t,e,n){var o=this.getConfigEscape(n)||x.escape,i=e.lookup(t[1]);if(null!=i)return"number"==typeof i&&o===x.escape?String(i):o(i)},E.prototype.rawValue=function(t){return t[1]},E.prototype.getConfigTags=function(t){return e(t)?t:t&&"object"==typeof t?t.tags:void 0},E.prototype.getConfigEscape=function(t){return t&&"object"==typeof t&&!e(t)?t.escape:void 0};var x={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(t){S.templateCache=t},get templateCache(){return S.templateCache}},S=new E;return x.clearCache=function(){return S.clearCache()},x.parse=function(t,e){return S.parse(t,e)},x.render=function(t,e,n,i){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+o(t)+'" was given as the first argument for mustache#render(template, view, partials)');return S.render(t,e,n,i)},x.escape=d,x.Scanner=j,x.Context=k,x.Writer=E,x}();var a={};!function(t){if("function"==typeof define&&define.amd&&(define(t),!0),a=t(),!!0){var e=window.Cookies,n=window.Cookies=t();n.noConflict=function(){return window.Cookies=e,n}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function e(n){function o(e,i,r){var a;if("undefined"!=typeof document){if(1<arguments.length){if("number"==typeof(r=t({path:"/"},o.defaults,r)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}r.expires=r.expires?r.expires.toUTCString():"";try{a=JSON.stringify(i),/^[\{\[]/.test(a)&&(i=a)}catch(t){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var c="";for(var u in r)r[u]&&(c+="; "+u,!0!==r[u]&&(c+="="+r[u]));return document.cookie=e+"="+i+c}e||(a={});for(var f=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,d=0;d<f.length;d++){var p=f[d].split("="),v=p.slice(1).join("=");this.json||'"'!==v.charAt(0)||(v=v.slice(1,-1));try{var h=p[0].replace(l,decodeURIComponent);if(v=n.read?n.read(v,h):n(v,h)||v.replace(l,decodeURIComponent),this.json)try{v=JSON.parse(v)}catch(t){}if(e===h){a=v;break}e||(a[h]=v)}catch(t){}}return a}}return(o.set=o).get=function(t){return o.call(o,t)},o.getJSON=function(){return o.apply({json:!0},[].slice.call(arguments))},o.defaults={},o.remove=function(e,n){o(e,"",t(n,{expires:-1}))},o.withConverter=e,o}((function(){}))})),window.messages={deleteOne:"This will delete your favourite. Do you want to proceed?",deleleAll:"This will delete all favourites inside this list. Do you want to proceed?"},function(e){var n=e('<div class="ssf-loader"></div>'),o=e("#favourite-icon-template"),s=i("eJpkV"),c=jQuery("._js-fav-popup"),u=null,f=[],l={Events:{}},d=window.localStorage.getItem("favourite_data");function p(t){const e=new Event(t);document.dispatchEvent(e)}function v(t){if(void 0!==f[t])return f[t]}function h(t){u?g(t):e.getJSON(v("favouriteListLink"),(function(e){u=e,g(t)}))}function g(n){if(n&&e(n).find(".js-fav-icon").length){var i=e(n).find(".js-fav-icon");if(i.length)o.length&&i.each((function(){var n=e(this);if(!n.hasClass("js-init")){var i={FavID:n.data("id"),DefaultFavListID:u.DefaultList,FavLists:u.FavList,ShowFavList:u.FavList.length>1,AddLabel:n.data("addLabel"),RemoveLabel:n.data("removeLabel"),Name:n.data("name")};n.addClass("js-init"),n.html(t(r).render(o.html(),i))}})),function(t,n){var o=t.length,i=n.length;o&&t.each((function(){var t=e(this);m(t);var n=t.find(".js-fav-item");n.off("click"),n.on("click",(function(t){var n=e(this).data("favId"),o=e(this).data("favList");n&&o?j(e(this)):n&&!o?e("body").hasClass("FavouritesPage")?confirm(messages.deleteOne)&&E(e(this)):E(e(this)):i&&(e(this).closest(".
12js-fav-icon").find(".js-fav-popover").toggle(),e(this).parent().toggleClass("active"),t.stopPropagation())}))}));i&&(n.each((function(){var t=e(this);t.on("click",(function(){j(t),e(this).closest(".js-fav-icon").removeClass("active")}))})),e(document.body).click((function(){e(".js-fav-popover").parent().removeClass("active")})));!function(t){var n=v("favIdToAddAfterLoggedIn");if(n&&!w(n)){var o=t.filter((function(){return e(this).data("id")==n}));o.find(".js-fav-popover").length?j(o.find(".js-fav-popover .js-fav-list-item").first()):j(o.find(".js-heart-icon-open"))}}(t)}(i,e(n).find(".js-fav-list-item"))}}function m(t){w(t.data("id"))?(t.find(".js-heart-icon-open").hide(),t.find(".js-heart-icon").show()):(t.find(".js-heart-icon").hide(),t.find(".js-heart-icon-open").show())}function y(){var t=e("body").find(".js-fav-icon");t.length&&t.each((function(){m(e(this))}))}function w(t){for(var e in t=b(t),l.Events)if(l.Events[e]&&e in l.Events&&l.Events[e].indexOf(t)>=0)return!0;return!1}function b(t){if(t&&t.match(/TOPage/g)){var e=window.location.href.split(location.host)[1].replace(/^\//,""),n=e.split("?"),o=n[0],i=n[1];i&&(e=o+"?"+(i=(c=i).substring(c.indexOf("?")+1).split("&").sort().join("&")));var r=t.split("--"),a=r[0],s=r[1];return 3==r.length?t:a+"--"+e+"--"+s}return t;var c}function j(t){if(L(t))return!1;var n=t.data("favId"),o=t.data("favList");console.log(o),console.log(n),console.log(l.Events),console.log(Object.keys(l.Events)),console.log(Object.keys(l.Events)[0]),Object.keys(l.Events)[0]&&(o=Object.keys(l.Events)[0]),console.log(o),o||(o=1),o in l.Events||(l.Events[o]=[]),-1==l.Events[o].indexOf(n)&&(n=b(n),l.Events[o].push(n)),window.localStorage.setItem("favourite_data",JSON.stringify(l));var i=e(t).closest(".js-fav-icon");i.find(".js-heart-icon").show(),i.find(".js-heart-icon-open").hide();var r=t.closest(".js-fav-icon").find(".js-fav-popover");r.length&&r.hide(),y(),k(),S(o)}function k(){e(".js-header-nav-fav").text(function(){var t=0;for(var e in l.Events)l.Events[e]&&(t+=l.Events[e].length);return t}())}function E(t){var n,o=t.data("favId"),i=b(o);for(var r in l.Events)if(r in l.Events&&-1!=l.Events[r].indexOf(i)){x(l.Events[r],i),n=r;break}window.localStorage.setItem("favourite_data",JSON.stringify(l)),(t.hasClass("js-remove-item")||e("body").hasClass("FavouritesPage"))&&function(t){t.closest(".js-fav-result").remove()}(t);var a,s=t.closest(".js-fav-icon");s.find(".js-heart-icon").hide(),s.find(".js-heart-icon-open").show(),y(),k(),S(n),a=o,e(".js-fav-wrapper").html(""),e.post("favorites/deleteEmailItem",{source:a}).done((function(){T(C.data("favRenderLink"))})),p("removeFavItem")}function x(t){for(var e,n,o=arguments,i=o.length;i>1&&t.length;)for(e=o[--i];-1!==(n=t.indexOf(e));)t.splice(n,1);return t}function S(t){if(v("loggedIn")){var n=v("processLink");e.post(n,{ListItems:l.Events[t],ListID:t})}}function L(t){var n=!1,o=v("loggedIn");if(v("isBackEnd")&&(void 0===o||0==o)){var i=new Date;if(i.setMinutes(i.getMinutes()+20),void 0===a.get("show_fb_fav_popup")&&document.getElementById("ssf-facebook")){if(n=!0,e.magnificPopup.open({closeOnBgClick:!1,items:{src:"#ssf-facebook",type:"inline"}}),window.initialFbLoginPopup=e.magnificPopup.instance,t){var r=t.data("favId");e(".js-close-popup").data("favId",r),e(".mfp-close").data("favId",r),a.set("fav_to_be_added_after_logged_in",r,{expires:i})}a.set("show_fb_fav_popup","1",{expires:i})}}return n}d&&(l=JSON.parse(d)),setInterval((function(){(d=window.localStorage.getItem("favourite_data"))&&(l=JSON.parse(d),k())}),500),k(),window.initFavIcon=h,function(){var t=document.getElementById("fav_configs");if(t){var e=t.getAttribute("content"),n=JSON.parse(e);f=n}}(),h(e("body")),e(document).on("click",".js-close-popup, .mfp-close",(function(t){t.preventDefault();var n=e(this).data("favId");if(n){var o=e(".js-fav-item").filter((function(){return e(this).data("favId")==n}));o&&j(o)}return e.magnificPopup.close(),!1}));var C=e(".js-fav-wrapper");function O(t){e.post(t,{Lists:l.Events}).done((function(t){t&&(l=JSON.parse(t),window.localStorage.setItem("favourite_data",t),k(),C.data("favRenderLink")&&(T(C.data("favRenderLink")),L()))}))}function T(t){l=JSON.parse(window.localStorage.getItem("favourite_data"))||{},void 0!==window.location.hash&&""!=window.location.hash&&void 0!==e(".js-page-title")&&(e(".js-share-container").hide(),void 0!==e(".js-page-title")&&""!=e(".js-project-title").data("id")&&void 0!==e(".js-project-title").data("id")&&e(".js-page-title").text(e(".js-project-title").data("id"))),n.appendTo(C),n.show(),e.post(t,{Lists:l.Events,locationHash:window.location.hash}).done((function(t){!function(t){n.hide(),C.append(t),window.setTimeout((()=>{e(".js-fav-result").each(((t,e)=>{window.initFavIcon(e)}))}),200),p("appendFavListResponse")}(t),C.trigger("loadFavItems")}))}function I(t){if(v("isBackEnd")&&v("loggedIn"))return t;var e=[];for(var n in l.Events)if(l.Events[n].length)for(var o in l.Events[n])e.push(l.Events[n][o]);return t+"?e="+e.join(",")}function _(t,n){var o=v("shortnerLink");e.ajax({url:o,data:{URL:t},method:"POST",dataType:"json",success:function(t){n(t)}})}if(C.length&&(C.on("loadFavItems",(function(){m(C)})),C.data("favUpdateLink")?O(C.data("favUpdateLink")):C.data("favRenderLink")&&(T(C.data("favRenderLink")),L())),!F()){var R=new s("._js-copy-clipboard",{text:function(t){var n="",o=v("shortnerLink"),i=I(t.getAttribute("share-link"));return e.ajax({type:"POST",async:!1,url:o,data:{URL:i},success:function(t){n=t}}),n}});R.on("success",(function(t){c.find("div").html("Link copied to clipboard"),
12c.show(),window.setTimeout((function(){c.hide()}),2e3)}))}function F(){var t,e=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e}e(".js-fav-share-item").on("click",(function(){var t=e(this),n=t.closest(".js-fav-share"),o=n.data("shareLink"),i=n.data("title"),r=n.data("description");t.hasClass("js-twitter")?function(t,e,n){_(I(t),(function(t){var o="https://twitter.com/intent/tweet?url="+t+"&text="+e+" | "+n;window.open(o,"","menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=400,width=500")}))}(o,i,r):t.hasClass("js-facebook")?function(t,e,n){_(I(t),(function(t){window.FB&&window.FB.ui({method:"share",href:t,quote:e+" | "+n},(function(t){}))}))}(o,i,r):t.hasClass("js-email")?function(t,e,n){e||(e="My favourites"),_(I(t),(function(t){var o="mailto:?subject="+e+"&body="+n+" "+t;window.location.href=o}))}(o,i,r):F()&&function(t){_(I(t),(function(t){var e='<a href="'+t+'" target="_blank">'+t+"</a>";c.find("div").html(e),c.show()}))}(o)})),c.on("click",(function(){c.hide()})),e(document).ready((function(){var t=e(".js-fav-popup__form"),n=t.closest(".js-fav-wrapper"),o=t.data("process-link");document.getElementById("ssf-facebook")&&e(".js-open-fb-popup").click((function(){e.magnificPopup.open({items:{src:"#ssf-facebook",type:"inline"}})})),e(document).on("click",".js-fav-popup__form",(function(t){t.preventDefault(),e(this).magnificPopup({type:"ajax",mainClass:"mfp-zoom-out",zoom:{enabled:!0,duration:300,easing:"ease-in-out"},closeOnBgClick:!1,removalDelay:500,closeBtnInside:!0,callbacks:{beforeOpen:function(){e(window).width()<700?this.st.focus=!1:this.st.focus="#name"},ajaxContentAdded:function(){var t=e("form#Form_FavouriteListForm"),i=this.st.el,r=n.find(".js-fav-lists-item").last(),a=e(".js-fav-lists");t.submit((function(n){var s=t.find('input[name="Title"]').val(),c=e("#Form_FavouriteListForm_ListID").val();e.ajax({type:"POST",url:o,dataType:"JSON",data:{Title:s,ListID:c},success:function(t){if(t.isEdit&&i.hasClass("js-edit-fav-list"))i.closest(".js-fav-lists-item").find(".js-list-title").text(s),"function"==typeof tzoResetFavListMasonry&&tzoResetFavListMasonry();else if(r&&r.length){var n=r.clone();n.find(".js-list-image").attr("src",n.find(".js-empty-list-image").attr("src")),n.find(".js-list-title").text(s),n.find(".js-list-length").text("(0)"),a.append(n),n.show("slow"),"function"==typeof tzoReloadFavListMasonryOnAdd&&tzoReloadFavListMasonryOnAdd(),n.find(".js-delete-fav-list").attr("data-id",t.id),n.find(".js-edit-fav-list").attr("href",window.location.pathname+"/favouritesEditPopup/"+t.id)}else window.location.reload();e.magnificPopup.close()}}),n.preventDefault()}))}}}).magnificPopup("open")})),e(document).on("click",".js-display-actions",(function(t){e(this).closest(".
12js-fav-lists-item").toggleClass("active"),"function"==typeof tzoResetFavListMasonry&&tzoResetFavListMasonry()})),e(document).on("click",".js-delete-fav-list",(function(t){if(t.preventDefault(),confirm(messages.deleleAll)){var o=e(this);e.ajax({type:"POST",url:o.data("deleteLink"),data:{id:o.data("id"),Lists:{}},dataType:"JSON",success:function(t){t.deleted&&(o.closest(".js-fav-lists-item").fadeOut((function(t){e(this).remove(),"function"==typeof tzoResetFavListMasonry&&tzoResetFavListMasonry()})),n.length&&n.data("favUpdateLink")&&O(n.data("favUpdateLink")))}})}return!1})),e(document).on("click",".js-new-req",(function(t){e.post("favorites/updateTime",{id:e(this).data("id")}).done((function(){}))}));var i=e(".js-fb-popup").data("loginError"),r=e(".js-fb-popup").data("registerError");(i||r)&&(r&&e("#Form_MemberRegisterForm_error").addClass("bad").html(r).show(),document.getElementById("ssf-facebook")&&e.magnificPopup.open({closeOnBgClick:!1,items:{src:"#ssf-facebook",type:"inline"},open:function(){}}))}))}(jQuery)})();
13//# sourceMappingURL=favourites.js.map

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.