{"version":3,"sources":["webpack:///webpack/bootstrap 56fb83153f548632a0dc","webpack:///./app/scripts/app.js","webpack:///./app/scripts/components/header.js","webpack:///./app/scripts/components/general.js","webpack:///./app/scripts/components/touch-click.js","webpack:///./app/scripts/components/instagram.js","webpack:///./app/scripts/components/api.js","webpack:///./~/rsvp/dist/rsvp.js","webpack:///./~/process/browser.js","webpack:///./~/timers-browserify/main.js","webpack:///(webpack)/buildin/module.js","webpack:///vertx (ignored)","webpack:///(webpack)/buildin/amd-define.js","webpack:///./app/scripts/components/overlay.js","webpack:///./app/scripts/components/read-more.js","webpack:///./app/scripts/components/search.js","webpack:///./app/scripts/components/slideshow.js","webpack:///./app/scripts/components/ares.js","webpack:///./app/scripts/components/map.js","webpack:///./app/scripts/components/filter.js","webpack:///./app/scripts/components/ads.js","webpack:///./app/scripts/components/teaser.js","webpack:///./app/scripts/components/photo-gallery.js","webpack:///./app/scripts/components/meet-the-team.js","webpack:///./app/scripts/components/forms.js","webpack:///./~/validate.js/validate.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;;;ACtCA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEA,GAAE,QAAF,EAAY,KAAZ,CAAkB,YAAY;AAC1B,sBAAO,IAAP;AACA,sBAAO,IAAP;AACA,uBAAQ,IAAR;;AAEA,SAAI,EAAE,SAAF,EAAa,MAAb,GAAsB,CAA1B,EAA6B;AACzB,0BAAO,IAAP;AACH;;AAED,yBAAU,IAAV;;AAEA,SAAI,EAAE,OAAF,EAAW,MAAX,GAAoB,CAAxB,EAA2B;AACvB,wBAAK,IAAL;AACH;AACD,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ACA,UAAS;;AAET,qCAAoC,gBAAgB;AACpD;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAS;;AAET;AACA;AACA,UAAS;;AAET;AACA;AACA;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;;AAEP;AACA;;AAEA;AACA;AACA;AACA,UAAS;;AAET;AACA;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;;AAEP;AACA;;AAEA;AACA,6BAA4B;AAC5B;;AAEA,iCAAgC;;AAEhC;AACA;AACA,iCAAgC;AAChC;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,iCAAgC;;AAEhC;AACA,iCAAgC;AAChC;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB,iBAAgB,SAAS;AACzB;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA,4BAA2B,4BAA4B;AACvD,QAAO;;AAEP;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAS;;AAET,gCAA+B,cAAc;AAC7C;AACA;;AAEA;AACA;AACA;AACA,iBAAgB,OAAO;AACvB,iBAAgB,EAAE;AAClB;AACA;AACA;AACA;;AAEA;AACA;AACA,wBAAuB,oBAAoB;AAC3C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,yDAAwD;AACxD;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,wBAAuB,uCAAuC;AAC9D;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAU;AACV;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,sBAAqB,8DAA8D;AACnF;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,UAAS;AACT,uDAAsD,gBAAgB,EAAE;AACxE;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAqB,8DAA8D;AACnF;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO;;AAEP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA,QAAO;;AAEP;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,gBAAe;AACf;AACA;AACA,kBAAiB;AACjB;AACA;AACA;AACA,cAAa;AACb,YAAW;AACX;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;AACA,eAAc,SAAS;AACvB,eAAc,SAAS;AACvB,eAAc,OAAO;AACrB;AACA,gBAAe;AACf;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA,eAAc,SAAS;AACvB,eAAc,OAAO;AACrB;AACA,gBAAe;AACf;AACA;AACA;AACA,QAAO;;AAEP;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,6BAA4B;AAC5B,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;;AAEA;AACA,eAAc,SAAS;AACvB,eAAc,OAAO;AACrB;AACA,gBAAe;AACf;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA,YAAW;AACX,UAAS;AACT;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,wBAAuB,QAAQ;AAC/B;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT,wBAAuB,QAAQ;AAC/B;;AAEA;AACA,UAAS;;AAET;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,QAAO;AACP;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA,UAAS;AACT;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,4DAA2D,QAAQ;;AAEnE;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA,4DAA2D,QAAQ;AACnE;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,sCAAqC,QAAQ;;AAE7C;;AAEA,sBAAqB,wBAAwB;AAC7C;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;;AAEA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,0BAAyB,QAAQ;AACjC;AACA;AACA,UAAS;AACT,0BAAyB,QAAQ;AACjC;AACA;AACA,UAAS;AACT,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAoC;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,2CAA0C;;AAE1C;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA8B,sBAAsB;;AAEpD;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAqB,wBAAwB;AAC7C;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAO;;AAEP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,wBAAuB,YAAY;AACnC;AACA;;AAEA;AACA;AACA;;AAEA,0BAAyB,YAAY;AACrC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA,UAAS;AACT,QAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;;AAEA;AACA;AACA;;AAEA,sBAAqB,8DAA8D;AACnF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,wBAAuB,YAAY;AACnC;AACA;;AAEA;AACA,QAAO;AACP;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,sBAAqB,YAAY;AACjC;AACA;;AAEA,kBAAiB,0BAA0B;AAC3C;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,sBAAqB,YAAY;AACjC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,wBAAuB,OAAO;AAC9B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;;AAEA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAK;AACL;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,qDAAyB,2BAA2B,EAAE;AACtD,MAAK;AACL;AACA,MAAK;AACL;AACA;AACA,EAAC;;;;;;;;;AC3jDD;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA,EAAC;AACD;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,wBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,4BAA2B;AAC3B;AACA;AACA;AACA,6BAA4B,UAAU;;;;;;;ACnItC;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA2C,iBAAiB;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;;AAEA;AACA;AACA,G;;;;;;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA,gB;;;;;;ACAA,8BAA6B,mDAAmD;;;;;;;;;;;;mBCAjE;AACX,YADW,qBACD;AACN,aAAI,OAAO,IAAX;AACA,aAAI,SAAS,EAAE,MAAF,CAAb;AACA,gBAAO,EAAP,CAAU,OAAV,EAAmB,eAAnB,EAAoC,UAAU,KAAV,EAAiB;AACjD,iBAAI,QAAQ,EAAE,IAAF,CAAZ;AACA,iBAAM,WAAW,MAAM,IAAN,CAAW,MAAX,CAAjB;AACA,iBAAM,SAAS,EAAE,MAAF,EAAU,SAAV,EAAf;AACA,oBAAO,IAAP,CAAY,QAAZ,EAAsB,MAAtB;AACA,oBAAO,GAAP,CAAW;AACP,2BAAU,OADH;AAEP,sBAAQ,SAAS,CAAC,CAAlB,OAFO;AAGP,wBAAO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CAAmB,gBAAnB;AACA,uBAAE,YAAF,EAAgB,OAAhB,CAAwB;AACpB,oCAAe,EAAE,eAAF,EAAmB,MAAnB,GAA4B,GAA5B,GAAkC,YAAjD;AADoB,sBAAxB,EAEG;AACC,mCAAU;AADX,sBAFH;AAKH,kBAVD,MAUO;AACH,4BAAK,kBAAL,CAAwB,QAAxB;AACH;AACJ,cAdD,EAcG,KAdH,CAcS,UAAC,KAAD,EAAW;AAChB,yBAAQ,KAAR,CAAc,KAAd;AACH,cAhBD,EAgBG,OAhBH,CAgBW,YAAM;AACb,sBAAK,SAAL,CAAe,MAAf,CAAsB,kBAAtB;AACA,wBAAK,MAAL,CAAY,IAAZ;AACH,cAnBD;AAoBH;;;;;;;;;;;;AC1OL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAyB;;AAEzB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAkC,MAAM,GAAG,MAAM,GAAG,MAAM;AAC1D;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,cAAa,4DAA4D;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mDAAkD,KAAK,IAAI,oBAAoB;AAC/E;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,sDAAqD,OAAO;AAC5D;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,4BAA2B;;AAE3B;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA,UAAS;AACT,QAAO;AACP,MAAK;;AAEL;AACA,4BAA2B;AAC3B;AACA;AACA,QAAO;AACP,iBAAgB,cAAc,GAAG,oBAAoB;AACrD,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT,QAAO,6BAA6B,KAAK,EAAE,GAAG;AAC9C,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA,uBAAsB,IAAI,IAAI,WAAW;AACzC;AACA,+BAA8B,IAAI;AAClC,4CAA2C,IAAI;AAC/C,oBAAmB,IAAI;AACvB;AACA;AACA;AACA;AACA;AACA;AACA,qBAAoB,WAAW;AAC/B,UAAS;AACT;AACA;AACA,QAAO;AACP,MAAK;AACL,kBAAiB,IAAI;AACrB,8BAA6B,KAAK,KAAK;AACvC,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;;AAEA;AACA,qCAAoC,sBAAsB,EAAE;AAC5D;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA;AACA,MAAK;;AAEL;AACA,gBAAe;AACf,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAiB,oBAAoB;AACrC;AACA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,cAAa;AACb;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,SAAQ;AACR;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA,kBAAiB,mBAAmB;AACpC;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA,YAAW;AACX;AACA;AACA,UAAS;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,kBAAiB,mBAAmB;AACpC;AACA;AACA;AACA;;AAEA;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,QAAO;AACP,MAAK;;AAEL;AACA,UAAS,6BAA6B;AACtC;AACA,UAAS,mBAAmB,GAAG,mBAAmB;AAClD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAgC,UAAU,WAAW;AACrD,YAAW;AACX,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA,MAAK;;AAEL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,UAAS;AACT;AACA;AACA;AACA,kCAAiC,yCAAyC;AAC1E,6BAA4B,cAAc,aAAa;AACvD,QAAO;AACP;AACA,MAAK;;AAEL;AACA,UAAS,kCAAkC;AAC3C;AACA,SAAQ,qBAAqB,kCAAkC;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA,UAAS;AACT;AACA;AACA,QAAO;AACP;AACA,MAAK;;AAEL;AACA,UAAS,0BAA0B,GAAG,0BAA0B;AAChE;AACA;AACA;AACA,0CAAyC,oBAAoB,EAAE;AAC/D,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,4CAA2C;AAC3C;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,8BAA6B;AAC7B;AACA;;AAEA;AACA;;AAEA;AACA;AACA,YAAW;AACX;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,mCAAkC,iBAAiB,EAAE;AACrD;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA,IAAG;;AAEH;AACA;AACA;AACA,4BAA2B;AAC3B;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,4BAA2B;;AAE3B;AACA;AACA;AACA,2DAA0D,YAAY;AACtE;AACA;;AAEA;AACA;AACA;AACA,uCAAsC,KAAK,yCAAyC,gBAAgB;AACpG;AACA;;AAEA;AACA;AACA;AACA;AACA,6CAA4C,MAAM;AAClD,oCAAmC,UAAU;AAC7C;;AAEA;AACA;AACA;AACA,uCAAsC,MAAM;AAC5C,oCAAmC,eAAe;AAClD;;AAEA;AACA;AACA;AACA,sCAAqC,MAAM;AAC3C,oCAAmC,eAAe;AAClD;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,4BAA2B;;AAE3B;AACA;AACA;AACA;AACA,mDAAkD,cAAc,EAAE;AAClE,mDAAkD,eAAe,EAAE;AACnE,mDAAkD,gBAAgB,EAAE;AACpE,mDAAkD,cAAc,EAAE;AAClE,mDAAkD,eAAe,EAAE;AACnE,mDAAkD,oBAAoB;AACtE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6DAA4D,KAAK,GAAG,MAAM;;AAE1E;AACA;AACA;AACA,YAAW;AACX;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,4BAA2B;;AAE3B;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA8B,oBAAoB;AAClD;;AAEA;AACA;AACA;AACA;AACA,sCAAqC,KAAK;AAC1C;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA;AACA,oCAAmC,KAAK;AACxC;AACA;AACA;AACA,UAAS;AACT;AACA;;AAEA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA,MAAK;AACL;AACA,4BAA2B,YAAY,eAAe;AACtD;AACA,MAAK;AACL;AACA;AACA,oBAAmB;AACnB;;AAEA,4BAA2B;;AAE3B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA,aAAY,MAAM;AAClB,iCAAgC,aAAa;AAC7C,MAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,oBAAmB;AACnB;AACA,4BAA2B;AAC3B;AACA;AACA;AACA,4DAA2D,MAAM;AACjE,iCAAgC,aAAa;AAC7C,MAAK;AACL;AACA,4BAA2B;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAK;AACL,sDAAqD,EAAE,6CAA6C,EAAE,mDAAmD,GAAG;AAC5J,MAAK;AACL;AACA;AACA;AACA;;AAEA;AACA,oBAAmB;AACnB;AACA,4BAA2B;AAC3B;AACA;AACA,4BAA2B,UAAU;;AAErC;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mCAAkC,yCAAyC;AAC3E;AACA,MAAK;;AAEL;AACA;AACA;AACA;AACA;AACA;;AAEA,4BAA2B;;AAE3B;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,gDAA+C,GAAG;;AAElD;AACA;AACA;AACA,QAAO;AACP;AACA;AACA,2BAA0B,IAAI,EAAE,EAAE;AAClC,4BAA2B,IAAI,EAAE,EAAE;AACnC,kCAAiC,IAAI,EAAE,EAAE;AACzC,kCAAiC,IAAI,EAAE,EAAE;AACzC;AACA;AACA,sBAAqB,IAAI;AACzB,aAAY,EAAE;AACd;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,2BAA0B,IAAI,qBAAqB,EAAE;AACrD;AACA;AACA;AACA;AACA,oBAAmB,IAAI;AACvB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAC;AACD;AACA;AACA","file":"sdta.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 56fb83153f548632a0dc\n **/","import header from './components/header';\nimport instagram from './components/instagram';\nimport overlay from './components/overlay';\nimport ReadMore from './components/read-more';\nimport search from './components/search';\nimport slideshow from './components/slideshow';\nimport ares from './components/ares';\nimport Map from './components/map';\nimport Filter from './components/filter';\nimport general from './components/general';\nimport teaser from './components/teaser';\nimport Gallery from './components/photo-gallery';\nimport MeetTeam from './components/meet-the-team';\nimport Form from './components/forms';\n\n$(document).ready(function () {\n header.init();\n search.init();\n overlay.init();\n\n if ($('.teaser').length > 0) {\n teaser.init();\n }\n\n slideshow.init();\n\n if ($('.ares').length > 0) {\n ares.init();\n }\n const readMoreComp = document.querySelector('.read-more');\n if (readMoreComp) {\n // eslint-disable-next-line no-unused-vars\n let readMore = new ReadMore('.header-component__content');\n }\n\n if ($('.instagram').length > 0) {\n instagram.init();\n }\n\n if ($('.map__regions').length > 0) {\n let map = new Map(); // eslint-disable-line no-unused-vars\n }\n\n if ($('.filters').length > 0) {\n let filter = new Filter(); // eslint-disable-line no-unused-vars\n }\n\n if ($('.gallery').length > 0) {\n let gallery = new Gallery(); // eslint-disable-line no-unused-vars\n }\n\n if ($('.team').length > 0) {\n let team = new MeetTeam(); // eslint-disable-line no-unused-vars\n }\n\n general.equalHeight();\n\n if ($('.no-pad').length > 0) {\n $('.no-pad:last').removeClass('no-pad');\n }\n const ajaxForms = document.querySelectorAll('.form--ajax');\n if (ajaxForms) {\n for (let i = 0; i < ajaxForms.length; i += 1) {\n // eslint-disable-next-line no-new\n new Form(ajaxForms[i]);\n }\n }\n //Trigger Google Translate\n $('.language__entry--google').on('click', function () {\n let lang = $(this).data('lang'),\n $frame = $('.goog-te-menu-frame');\n $.each($frame.contents().find('.goog-te-menu2-item .text'), function () {\n if (lang === $(this).html()) {\n $(this).closest('.goog-te-menu2-item').get(0).click();\n $('.overlay.is-active .overlay-close').click();\n return false;\n }\n });\n });\n\n const formSelects = $('form').find('select');\n if (formSelects.length > 0) {\n formSelects.niceSelect();\n }\n});\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/app.js\n **/","import general from './general';\nimport isTouch from './touch-click';\n\nexport default {\n navigationWidth() {\n var linkLength,\n secondLevelWidth,\n secondaryLink = $('.main-nav__secondary-link'),\n logoWidth = $('.main-nav__parent-item--logo').outerWidth(true),\n mainSectionWidth = $('.header .main-section').innerWidth(),\n innerWrapperWidth = $('.header .main-section__inner-wrapper').outerWidth(true),\n tertiaryListWidth = $('.main-nav__tertiary-list').outerWidth(),\n dropDownWidth = $('.main-nav__drop-down').outerWidth();\n\n linkLength = (mainSectionWidth - innerWrapperWidth) / 2 + logoWidth - 20;\n secondaryLink.css('margin-left', linkLength + 'px');\n\n secondLevelWidth = dropDownWidth - tertiaryListWidth - linkLength - 20;\n secondaryLink.css('width', secondLevelWidth + 'px');\n },\n\n navigationReset() {\n var secondaryLink = $('.main-nav__secondary-link');\n secondaryLink.css('margin-left', '');\n secondaryLink.css('width', '');\n },\n\n mobileNav() {\n let $_body = $('body');\n $('.mobile-link').on('click', function (event) {\n let $this = $(this);\n const ycoord = $(window).scrollTop();\n event.preventDefault();\n if ($this.hasClass('is-active')) {\n $this.removeClass('is-active');\n $_body.attr('style', '');\n $(window).scrollTop($_body.data('ycoord'));\n } else {\n $this.addClass('is-active');\n $_body.attr('ycoord', ycoord);\n $_body.css({\n position: 'fixed',\n top: `${ycoord * -1}px`,\n right: 0,\n left: 0\n });\n }\n $('.utility-list__item.is-active').removeClass('is-active');\n $('.main-nav').toggleClass('is-active');\n // $(document.body).toggleClass('no-scroll');\n $('.search-bar.is-active').removeClass('is-active');\n });\n },\n\n mobileSecondaryNav() {\n $('.main-nav__secondary-link--mobile').on('click', function (event) {\n var _this = $(this);\n event.preventDefault();\n _this.closest('.main-nav__secondary-item').toggleClass('is-active');\n });\n\n $('.main-nav__tertiary-link--back').on('click', function (event) {\n var _this = $(this);\n event.preventDefault();\n _this.closest('.main-nav__secondary-item').toggleClass('is-active');\n });\n },\n\n mobileUtilityNav() {\n $('.utility-list__link--mobile').on('click', function (event) {\n var _this = $(this);\n event.preventDefault();\n _this.closest('.utility-list__item').toggleClass('is-active');\n });\n\n $('.utility-list__submenu-link--back').on('click', function (event) {\n var _this = $(this);\n event.preventDefault();\n _this.closest('.utility-list__item').toggleClass('is-active');\n });\n },\n\n //Show and hide social icons that is in header of the site.\n socialIcons() {\n $('.main-nav__social-link--dots').on('click', function (evt) {\n evt.preventDefault();\n $('.main-nav__social-icons').toggleClass('is-active');\n });\n },\n\n removeActive(selector) {\n let currentActive = document.querySelector(selector);\n if (currentActive) {\n currentActive.classList.remove('active');\n }\n },\n\n disableClick() {\n const parentLinks = document.querySelectorAll('.main-nav__parent-link');\n // const secondaryLinks = document.querySelectorAll('.main-nav__secondary-link');\n const utilityLinks = document.querySelectorAll('a.utility-list__link');\n const ignoreArr = ['main-nav__parent-item--logo', 'site-logo', 'main-nav__secondary-link', 'main-nav__tertiary-link', 'icon-close'];\n let length = parentLinks.length;\n for (let i = 0; i < length; i += 1) {\n parentLinks[i].addEventListener('click', function (evt) {\n const target = evt.target;\n let preventDefault = true;\n for (let j = 0; j < ignoreArr.length; j += 1) {\n if (target.classList.contains(ignoreArr[j])) {\n preventDefault = false;\n break;\n }\n }\n if (preventDefault) {\n evt.preventDefault();\n }\n });\n }\n // length = secondaryLinks.length;\n // for (let i = 0; i < length; i += 1) {\n // secondaryLinks[i].addEventListener('click', function (evt) {\n // evt.preventDefault();\n // });\n // }\n length = utilityLinks.length;\n for (let i = 0; i < length; i += 1) {\n utilityLinks[i].addEventListener('click', function (evt) {\n evt.preventDefault();\n });\n }\n },\n\n init() {\n const mobileMenu = window.matchMedia('(max-width: 1024px)').matches;\n if (mobileMenu) {\n this.navigationReset();\n } else {\n this.navigationWidth();\n }\n\n const resizeNav = general.debounce(() => {\n if (window.matchMedia('(max-width: 1024px)').matches) {\n this.navigationReset();\n } else {\n this.navigationWidth();\n }\n }, 250);\n\n window.addEventListener('resize', resizeNav);\n if (isTouch()) {\n if (window.matchMedia('(min-width: 768px)').matches) {\n let utilityTouchItems = document.querySelectorAll('.utility-list .show-touch');\n let touchItems = document.querySelectorAll('.main-nav .show-touch');\n for (let i = 0; i < utilityTouchItems.length; i += 1) {\n utilityTouchItems[i].style.display = 'block';\n }\n for (let i = 0; i < touchItems.length; i += 1) {\n touchItems[i].style.display = 'block';\n }\n this.disableClick();\n }\n }\n this.mobileNav();\n this.mobileSecondaryNav();\n this.mobileUtilityNav();\n this.socialIcons();\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/header.js\n **/","export default {\n // Returns a function, that, as long as it continues to be invoked, will not\n // be triggered. The function will be called after it stops being called for\n // N milliseconds. If `immediate` is passed, trigger the function on the\n // leading edge, instead of the trailing.\n // @author David Walsh\n // @link https://davidwalsh.name/javascript-debounce-function\n debounce(func, wait, immediate) {\n var timeout;\n return function () {\n var that = this, args = arguments;\n var later = function () {\n timeout = null;\n if (!immediate) {\n func.apply(that, args);\n }\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) {\n func.apply(that, args);\n }\n };\n },\n\n toggleActiveState(element, otherElements) {\n if (!element.hasClass('is-active')) {\n if (otherElements) {\n //Reset classes\n otherElements.removeClass('is-active');\n }\n //Enable the class on the selected element\n element.addClass('is-active');\n } else {\n element.removeClass('is-active');\n }\n },\n\n slideDown(selector, content) {\n selector.css({'max-height': content.outerHeight() + 'px'});\n },\n\n slideUp(selector) {\n selector.css({'max-height': '0px'});\n },\n\n equalHeight() {\n let $ctaBlock = $('.cta-touts__block'),\n $dealsBlock = $('.deals__block'),\n $eventsBlock = $('.events__block'),\n $tocSection = $('.toc__section'),\n $attributesBlock = $('.attributes__block'),\n $weatherBlock = $('.weather-forecast__entry'),\n $relatedArticles = $('.related-articles .teaser');\n\n if ($ctaBlock.length > 0) {\n $ctaBlock.matchHeight({\n byRow: true,\n property: 'height'\n });\n }\n\n if ($dealsBlock.length > 0) {\n $dealsBlock.matchHeight({\n byRow: true,\n property: 'height'\n });\n }\n\n if ($eventsBlock.length > 0) {\n $eventsBlock.matchHeight({\n byRow: true,\n property: 'height'\n });\n }\n\n if ($tocSection.length > 0) {\n $tocSection.matchHeight({\n byRow: true,\n property: 'height'\n });\n }\n\n if ($attributesBlock.length > 0) {\n $attributesBlock.matchHeight({\n byRow: true,\n property: 'height'\n });\n }\n\n if ($weatherBlock.length > 0) {\n $weatherBlock.matchHeight({\n byRow: true,\n property: 'height'\n });\n }\n if ($relatedArticles.length > 0) {\n $relatedArticles.matchHeight({\n byRow: true,\n property: 'height'\n });\n }\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/general.js\n **/","export default function () {\n return 'ontouchstart' in window;\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/touch-click.js\n **/","import api from './api';\n\nexport default {\n ajaxRequest() {\n const requesting = api('/handler/GetInstagramData', {}, 'GET');\n requesting.then((response) => {\n this.displayPhotos(response);\n }).catch((error) => {\n console.log('Error ------------');\n console.log(error);\n });\n },\n\n displayPhotos(data) {\n let docfrag = document.createDocumentFragment();\n const container = document.querySelector('.instagram__images');\n data.forEach((imgData) => {\n let img = document.createElement('img');\n let anchor = document.createElement('a');\n let hover = document.createElement('span');\n\n img.src = imgData.thumbnailUrl;\n img.className = 'instagram__image';\n\n anchor.href = '#';\n anchor.className = 'instagram__link overlay-link';\n anchor.dataset.id = imgData.id;\n\n hover.className = 'instagram__hoverContent';\n hover.innerHTML = '';\n\n anchor.appendChild(img);\n anchor.appendChild(hover);\n docfrag.appendChild(anchor);\n });\n container.appendChild(docfrag);\n this.clickEvents(data);\n },\n\n clickEvents(data) {\n let that = this,\n instagramLink = document.querySelectorAll('.instagram__link'),\n int;\n\n for (int = 0; int < instagramLink.length; int += 1) {\n instagramLink[int].addEventListener('click', function (event) {\n event.preventDefault();\n that.overlay(data, this.getAttribute('data-id'));\n });\n }\n },\n\n overlay(data, linkDataId) {\n let that = this,\n container = document.querySelector('.instagram__overlay'),\n containerImage = document.querySelector('.instagram__full-image'),\n containerLikes = document.querySelector('.instagram__likes-value'),\n containerPosted = document.querySelector('.instagram__posted-value'),\n containerCaption = document.querySelector('.instagram__caption'),\n containerTag = document.querySelector('.instagram__tag'),\n count,\n instagramData,\n imagePath,\n likes,\n posted,\n caption,\n formatHashtag,\n formatAtSymbol,\n tags = '';\n\n container.className += ' is-active';\n containerImage.innerHTML = '';\n containerLikes.innerHTML = '';\n containerPosted.innerHTML = '';\n containerCaption.innerHTML = '';\n containerTag.innerHTML = '';\n\n for (count = 0; count <= data.length; count += 1) {\n instagramData = data[count];\n if (instagramData.id === linkDataId) {\n caption = instagramData.blurb;\n formatHashtag = caption.replace(/#(\\S*)/g, '#$1');\n formatAtSymbol = formatHashtag.replace(/@(\\S*)/g, '@$1');\n imagePath = instagramData.imageUrl;\n likes = instagramData.likes;\n posted = that.formatTime(instagramData.date);\n if (instagramData.tags) {\n tags = that.formatTags(instagramData.tags.split(',')).join(' ');\n }\n containerImage.innerHTML = '';\n containerLikes.innerHTML = likes;\n containerPosted.innerHTML = posted;\n containerCaption.innerHTML = formatAtSymbol;\n containerTag.innerHTML = tags;\n break;\n }\n }\n },\n\n formatTime(date) {\n return moment.unix(date).startOf('hour').fromNow();\n },\n\n formatTags(tags) {\n let count,\n tag,\n formattedTags = [];\n\n for (count = 0; count < tags.length; count += 1) {\n tag = tags[count];\n formattedTags.push('#' + tag + ' ');\n }\n return formattedTags;\n },\n\n init() {\n this.ajaxRequest();\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/instagram.js\n **/","import RSVP from 'rsvp';\n\nexport default function (url, data = {}, method = 'POST', rType, form = false) {\n return new RSVP.Promise((resolve, reject) => {\n const opts = {\n method,\n url,\n responseType: rType || 'json',\n data,\n };\n if (form) {\n opts.contentType = false;\n opts.processData = false;\n }\n console.log(opts);\n $.ajax(opts).done((response) => {\n // add code to make sure the response is correct\n resolve(response);\n }).fail((error) => {\n reject(error);\n });\n });\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/api.js\n **/","/*!\n * @overview RSVP - a tiny implementation of Promises/A+.\n * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors\n * @license Licensed under MIT license\n * See https://raw.githubusercontent.com/tildeio/rsvp.js/master/LICENSE\n * @version 3.2.1\n */\n\n(function() {\n \"use strict\";\n function lib$rsvp$utils$$objectOrFunction(x) {\n return typeof x === 'function' || (typeof x === 'object' && x !== null);\n }\n\n function lib$rsvp$utils$$isFunction(x) {\n return typeof x === 'function';\n }\n\n function lib$rsvp$utils$$isMaybeThenable(x) {\n return typeof x === 'object' && x !== null;\n }\n\n var lib$rsvp$utils$$_isArray;\n if (!Array.isArray) {\n lib$rsvp$utils$$_isArray = function (x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n } else {\n lib$rsvp$utils$$_isArray = Array.isArray;\n }\n\n var lib$rsvp$utils$$isArray = lib$rsvp$utils$$_isArray;\n\n var lib$rsvp$utils$$now = Date.now || function() { return new Date().getTime(); };\n\n function lib$rsvp$utils$$F() { }\n\n var lib$rsvp$utils$$o_create = (Object.create || function (o) {\n if (arguments.length > 1) {\n throw new Error('Second argument not supported');\n }\n if (typeof o !== 'object') {\n throw new TypeError('Argument must be an object');\n }\n lib$rsvp$utils$$F.prototype = o;\n return new lib$rsvp$utils$$F();\n });\n function lib$rsvp$events$$indexOf(callbacks, callback) {\n for (var i=0, l=callbacks.length; i 0.5) {\n throw new Error();\n }\n return new Author();\n }\n\n try {\n return findAuthor(); // succeed or fail\n } catch(error) {\n return findOtherAuther();\n } finally {\n // always runs\n // doesn't affect the return value\n }\n ```\n\n Asynchronous example:\n\n ```js\n findAuthor().catch(function(reason){\n return findOtherAuther();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n\n @method finally\n @param {Function} callback\n @param {String} label optional string for labeling the promise.\n Useful for tooling.\n @return {Promise}\n */\n 'finally': function(callback, label) {\n var promise = this;\n var constructor = promise.constructor;\n\n return promise.then(function(value) {\n return constructor.resolve(callback()).then(function() {\n return value;\n });\n }, function(reason) {\n return constructor.resolve(callback()).then(function() {\n return constructor.reject(reason);\n });\n }, label);\n }\n };\n function lib$rsvp$$internal$$withOwnPromise() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n\n function lib$rsvp$$internal$$noop() {}\n\n var lib$rsvp$$internal$$PENDING = void 0;\n var lib$rsvp$$internal$$FULFILLED = 1;\n var lib$rsvp$$internal$$REJECTED = 2;\n\n var lib$rsvp$$internal$$GET_THEN_ERROR = new lib$rsvp$$internal$$ErrorObject();\n\n function lib$rsvp$$internal$$getThen(promise) {\n try {\n return promise.then;\n } catch(error) {\n lib$rsvp$$internal$$GET_THEN_ERROR.error = error;\n return lib$rsvp$$internal$$GET_THEN_ERROR;\n }\n }\n\n function lib$rsvp$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n try {\n then.call(value, fulfillmentHandler, rejectionHandler);\n } catch(e) {\n return e;\n }\n }\n\n function lib$rsvp$$internal$$handleForeignThenable(promise, thenable, then) {\n lib$rsvp$config$$config.async(function(promise) {\n var sealed = false;\n var error = lib$rsvp$$internal$$tryThen(then, thenable, function(value) {\n if (sealed) { return; }\n sealed = true;\n if (thenable !== value) {\n lib$rsvp$$internal$$resolve(promise, value, undefined);\n } else {\n lib$rsvp$$internal$$fulfill(promise, value);\n }\n }, function(reason) {\n if (sealed) { return; }\n sealed = true;\n\n lib$rsvp$$internal$$reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n\n if (!sealed && error) {\n sealed = true;\n lib$rsvp$$internal$$reject(promise, error);\n }\n }, promise);\n }\n\n function lib$rsvp$$internal$$handleOwnThenable(promise, thenable) {\n if (thenable._state === lib$rsvp$$internal$$FULFILLED) {\n lib$rsvp$$internal$$fulfill(promise, thenable._result);\n } else if (thenable._state === lib$rsvp$$internal$$REJECTED) {\n thenable._onError = null;\n lib$rsvp$$internal$$reject(promise, thenable._result);\n } else {\n lib$rsvp$$internal$$subscribe(thenable, undefined, function(value) {\n if (thenable !== value) {\n lib$rsvp$$internal$$resolve(promise, value, undefined);\n } else {\n lib$rsvp$$internal$$fulfill(promise, value);\n }\n }, function(reason) {\n lib$rsvp$$internal$$reject(promise, reason);\n });\n }\n }\n\n function lib$rsvp$$internal$$handleMaybeThenable(promise, maybeThenable, then) {\n if (maybeThenable.constructor === promise.constructor &&\n then === lib$rsvp$then$$default &&\n constructor.resolve === lib$rsvp$promise$resolve$$default) {\n lib$rsvp$$internal$$handleOwnThenable(promise, maybeThenable);\n } else {\n if (then === lib$rsvp$$internal$$GET_THEN_ERROR) {\n lib$rsvp$$internal$$reject(promise, lib$rsvp$$internal$$GET_THEN_ERROR.error);\n } else if (then === undefined) {\n lib$rsvp$$internal$$fulfill(promise, maybeThenable);\n } else if (lib$rsvp$utils$$isFunction(then)) {\n lib$rsvp$$internal$$handleForeignThenable(promise, maybeThenable, then);\n } else {\n lib$rsvp$$internal$$fulfill(promise, maybeThenable);\n }\n }\n }\n\n function lib$rsvp$$internal$$resolve(promise, value) {\n if (promise === value) {\n lib$rsvp$$internal$$fulfill(promise, value);\n } else if (lib$rsvp$utils$$objectOrFunction(value)) {\n lib$rsvp$$internal$$handleMaybeThenable(promise, value, lib$rsvp$$internal$$getThen(value));\n } else {\n lib$rsvp$$internal$$fulfill(promise, value);\n }\n }\n\n function lib$rsvp$$internal$$publishRejection(promise) {\n if (promise._onError) {\n promise._onError(promise._result);\n }\n\n lib$rsvp$$internal$$publish(promise);\n }\n\n function lib$rsvp$$internal$$fulfill(promise, value) {\n if (promise._state !== lib$rsvp$$internal$$PENDING) { return; }\n\n promise._result = value;\n promise._state = lib$rsvp$$internal$$FULFILLED;\n\n if (promise._subscribers.length === 0) {\n if (lib$rsvp$config$$config.instrument) {\n lib$rsvp$instrument$$default('fulfilled', promise);\n }\n } else {\n lib$rsvp$config$$config.async(lib$rsvp$$internal$$publish, promise);\n }\n }\n\n function lib$rsvp$$internal$$reject(promise, reason) {\n if (promise._state !== lib$rsvp$$internal$$PENDING) { return; }\n promise._state = lib$rsvp$$internal$$REJECTED;\n promise._result = reason;\n lib$rsvp$config$$config.async(lib$rsvp$$internal$$publishRejection, promise);\n }\n\n function lib$rsvp$$internal$$subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n\n parent._onError = null;\n\n subscribers[length] = child;\n subscribers[length + lib$rsvp$$internal$$FULFILLED] = onFulfillment;\n subscribers[length + lib$rsvp$$internal$$REJECTED] = onRejection;\n\n if (length === 0 && parent._state) {\n lib$rsvp$config$$config.async(lib$rsvp$$internal$$publish, parent);\n }\n }\n\n function lib$rsvp$$internal$$publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (lib$rsvp$config$$config.instrument) {\n lib$rsvp$instrument$$default(settled === lib$rsvp$$internal$$FULFILLED ? 'fulfilled' : 'rejected', promise);\n }\n\n if (subscribers.length === 0) { return; }\n\n var child, callback, detail = promise._result;\n\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n\n if (child) {\n lib$rsvp$$internal$$invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n\n promise._subscribers.length = 0;\n }\n\n function lib$rsvp$$internal$$ErrorObject() {\n this.error = null;\n }\n\n var lib$rsvp$$internal$$TRY_CATCH_ERROR = new lib$rsvp$$internal$$ErrorObject();\n\n function lib$rsvp$$internal$$tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch(e) {\n lib$rsvp$$internal$$TRY_CATCH_ERROR.error = e;\n return lib$rsvp$$internal$$TRY_CATCH_ERROR;\n }\n }\n\n function lib$rsvp$$internal$$invokeCallback(settled, promise, callback, detail) {\n var hasCallback = lib$rsvp$utils$$isFunction(callback),\n value, error, succeeded, failed;\n\n if (hasCallback) {\n value = lib$rsvp$$internal$$tryCatch(callback, detail);\n\n if (value === lib$rsvp$$internal$$TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value = null;\n } else {\n succeeded = true;\n }\n\n if (promise === value) {\n lib$rsvp$$internal$$reject(promise, lib$rsvp$$internal$$withOwnPromise());\n return;\n }\n\n } else {\n value = detail;\n succeeded = true;\n }\n\n if (promise._state !== lib$rsvp$$internal$$PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n lib$rsvp$$internal$$resolve(promise, value);\n } else if (failed) {\n lib$rsvp$$internal$$reject(promise, error);\n } else if (settled === lib$rsvp$$internal$$FULFILLED) {\n lib$rsvp$$internal$$fulfill(promise, value);\n } else if (settled === lib$rsvp$$internal$$REJECTED) {\n lib$rsvp$$internal$$reject(promise, value);\n }\n }\n\n function lib$rsvp$$internal$$initializePromise(promise, resolver) {\n var resolved = false;\n try {\n resolver(function resolvePromise(value){\n if (resolved) { return; }\n resolved = true;\n lib$rsvp$$internal$$resolve(promise, value);\n }, function rejectPromise(reason) {\n if (resolved) { return; }\n resolved = true;\n lib$rsvp$$internal$$reject(promise, reason);\n });\n } catch(e) {\n lib$rsvp$$internal$$reject(promise, e);\n }\n }\n\n function lib$rsvp$all$settled$$AllSettled(Constructor, entries, label) {\n this._superConstructor(Constructor, entries, false /* don't abort on reject */, label);\n }\n\n lib$rsvp$all$settled$$AllSettled.prototype = lib$rsvp$utils$$o_create(lib$rsvp$enumerator$$default.prototype);\n lib$rsvp$all$settled$$AllSettled.prototype._superConstructor = lib$rsvp$enumerator$$default;\n lib$rsvp$all$settled$$AllSettled.prototype._makeResult = lib$rsvp$enumerator$$makeSettledResult;\n lib$rsvp$all$settled$$AllSettled.prototype._validationError = function() {\n return new Error('allSettled must be called with an array');\n };\n\n function lib$rsvp$all$settled$$allSettled(entries, label) {\n return new lib$rsvp$all$settled$$AllSettled(lib$rsvp$promise$$default, entries, label).promise;\n }\n var lib$rsvp$all$settled$$default = lib$rsvp$all$settled$$allSettled;\n function lib$rsvp$all$$all(array, label) {\n return lib$rsvp$promise$$default.all(array, label);\n }\n var lib$rsvp$all$$default = lib$rsvp$all$$all;\n var lib$rsvp$asap$$len = 0;\n var lib$rsvp$asap$$toString = {}.toString;\n var lib$rsvp$asap$$vertxNext;\n function lib$rsvp$asap$$asap(callback, arg) {\n lib$rsvp$asap$$queue[lib$rsvp$asap$$len] = callback;\n lib$rsvp$asap$$queue[lib$rsvp$asap$$len + 1] = arg;\n lib$rsvp$asap$$len += 2;\n if (lib$rsvp$asap$$len === 2) {\n // If len is 1, that means that we need to schedule an async flush.\n // If additional callbacks are queued before the queue is flushed, they\n // will be processed by this flush that we are scheduling.\n lib$rsvp$asap$$scheduleFlush();\n }\n }\n\n var lib$rsvp$asap$$default = lib$rsvp$asap$$asap;\n\n var lib$rsvp$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;\n var lib$rsvp$asap$$browserGlobal = lib$rsvp$asap$$browserWindow || {};\n var lib$rsvp$asap$$BrowserMutationObserver = lib$rsvp$asap$$browserGlobal.MutationObserver || lib$rsvp$asap$$browserGlobal.WebKitMutationObserver;\n var lib$rsvp$asap$$isNode = typeof self === 'undefined' &&\n typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n // test for web worker but not in IE10\n var lib$rsvp$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' &&\n typeof importScripts !== 'undefined' &&\n typeof MessageChannel !== 'undefined';\n\n // node\n function lib$rsvp$asap$$useNextTick() {\n var nextTick = process.nextTick;\n // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // setImmediate should be used instead instead\n var version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n nextTick = setImmediate;\n }\n return function() {\n nextTick(lib$rsvp$asap$$flush);\n };\n }\n\n // vertx\n function lib$rsvp$asap$$useVertxTimer() {\n return function() {\n lib$rsvp$asap$$vertxNext(lib$rsvp$asap$$flush);\n };\n }\n\n function lib$rsvp$asap$$useMutationObserver() {\n var iterations = 0;\n var observer = new lib$rsvp$asap$$BrowserMutationObserver(lib$rsvp$asap$$flush);\n var node = document.createTextNode('');\n observer.observe(node, { characterData: true });\n\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n }\n\n // web worker\n function lib$rsvp$asap$$useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = lib$rsvp$asap$$flush;\n return function () {\n channel.port2.postMessage(0);\n };\n }\n\n function lib$rsvp$asap$$useSetTimeout() {\n return function() {\n setTimeout(lib$rsvp$asap$$flush, 1);\n };\n }\n\n var lib$rsvp$asap$$queue = new Array(1000);\n function lib$rsvp$asap$$flush() {\n for (var i = 0; i < lib$rsvp$asap$$len; i+=2) {\n var callback = lib$rsvp$asap$$queue[i];\n var arg = lib$rsvp$asap$$queue[i+1];\n\n callback(arg);\n\n lib$rsvp$asap$$queue[i] = undefined;\n lib$rsvp$asap$$queue[i+1] = undefined;\n }\n\n lib$rsvp$asap$$len = 0;\n }\n\n function lib$rsvp$asap$$attemptVertex() {\n try {\n var r = require;\n var vertx = r('vertx');\n lib$rsvp$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return lib$rsvp$asap$$useVertxTimer();\n } catch(e) {\n return lib$rsvp$asap$$useSetTimeout();\n }\n }\n\n var lib$rsvp$asap$$scheduleFlush;\n // Decide what async method to use to triggering processing of queued callbacks:\n if (lib$rsvp$asap$$isNode) {\n lib$rsvp$asap$$scheduleFlush = lib$rsvp$asap$$useNextTick();\n } else if (lib$rsvp$asap$$BrowserMutationObserver) {\n lib$rsvp$asap$$scheduleFlush = lib$rsvp$asap$$useMutationObserver();\n } else if (lib$rsvp$asap$$isWorker) {\n lib$rsvp$asap$$scheduleFlush = lib$rsvp$asap$$useMessageChannel();\n } else if (lib$rsvp$asap$$browserWindow === undefined && typeof require === 'function') {\n lib$rsvp$asap$$scheduleFlush = lib$rsvp$asap$$attemptVertex();\n } else {\n lib$rsvp$asap$$scheduleFlush = lib$rsvp$asap$$useSetTimeout();\n }\n function lib$rsvp$defer$$defer(label) {\n var deferred = {};\n\n deferred['promise'] = new lib$rsvp$promise$$default(function(resolve, reject) {\n deferred['resolve'] = resolve;\n deferred['reject'] = reject;\n }, label);\n\n return deferred;\n }\n var lib$rsvp$defer$$default = lib$rsvp$defer$$defer;\n function lib$rsvp$filter$$filter(promises, filterFn, label) {\n return lib$rsvp$promise$$default.all(promises, label).then(function(values) {\n if (!lib$rsvp$utils$$isFunction(filterFn)) {\n throw new TypeError(\"You must pass a function as filter's second argument.\");\n }\n\n var length = values.length;\n var filtered = new Array(length);\n\n for (var i = 0; i < length; i++) {\n filtered[i] = filterFn(values[i]);\n }\n\n return lib$rsvp$promise$$default.all(filtered, label).then(function(filtered) {\n var results = new Array(length);\n var newLength = 0;\n\n for (var i = 0; i < length; i++) {\n if (filtered[i]) {\n results[newLength] = values[i];\n newLength++;\n }\n }\n\n results.length = newLength;\n\n return results;\n });\n });\n }\n var lib$rsvp$filter$$default = lib$rsvp$filter$$filter;\n\n function lib$rsvp$promise$hash$$PromiseHash(Constructor, object, label) {\n this._superConstructor(Constructor, object, true, label);\n }\n\n var lib$rsvp$promise$hash$$default = lib$rsvp$promise$hash$$PromiseHash;\n\n lib$rsvp$promise$hash$$PromiseHash.prototype = lib$rsvp$utils$$o_create(lib$rsvp$enumerator$$default.prototype);\n lib$rsvp$promise$hash$$PromiseHash.prototype._superConstructor = lib$rsvp$enumerator$$default;\n lib$rsvp$promise$hash$$PromiseHash.prototype._init = function() {\n this._result = {};\n };\n\n lib$rsvp$promise$hash$$PromiseHash.prototype._validateInput = function(input) {\n return input && typeof input === 'object';\n };\n\n lib$rsvp$promise$hash$$PromiseHash.prototype._validationError = function() {\n return new Error('Promise.hash must be called with an object');\n };\n\n lib$rsvp$promise$hash$$PromiseHash.prototype._enumerate = function() {\n var enumerator = this;\n var promise = enumerator.promise;\n var input = enumerator._input;\n var results = [];\n\n for (var key in input) {\n if (promise._state === lib$rsvp$$internal$$PENDING && Object.prototype.hasOwnProperty.call(input, key)) {\n results.push({\n position: key,\n entry: input[key]\n });\n }\n }\n\n var length = results.length;\n enumerator._remaining = length;\n var result;\n\n for (var i = 0; promise._state === lib$rsvp$$internal$$PENDING && i < length; i++) {\n result = results[i];\n enumerator._eachEntry(result.entry, result.position);\n }\n };\n\n function lib$rsvp$hash$settled$$HashSettled(Constructor, object, label) {\n this._superConstructor(Constructor, object, false, label);\n }\n\n lib$rsvp$hash$settled$$HashSettled.prototype = lib$rsvp$utils$$o_create(lib$rsvp$promise$hash$$default.prototype);\n lib$rsvp$hash$settled$$HashSettled.prototype._superConstructor = lib$rsvp$enumerator$$default;\n lib$rsvp$hash$settled$$HashSettled.prototype._makeResult = lib$rsvp$enumerator$$makeSettledResult;\n\n lib$rsvp$hash$settled$$HashSettled.prototype._validationError = function() {\n return new Error('hashSettled must be called with an object');\n };\n\n function lib$rsvp$hash$settled$$hashSettled(object, label) {\n return new lib$rsvp$hash$settled$$HashSettled(lib$rsvp$promise$$default, object, label).promise;\n }\n var lib$rsvp$hash$settled$$default = lib$rsvp$hash$settled$$hashSettled;\n function lib$rsvp$hash$$hash(object, label) {\n return new lib$rsvp$promise$hash$$default(lib$rsvp$promise$$default, object, label).promise;\n }\n var lib$rsvp$hash$$default = lib$rsvp$hash$$hash;\n function lib$rsvp$map$$map(promises, mapFn, label) {\n return lib$rsvp$promise$$default.all(promises, label).then(function(values) {\n if (!lib$rsvp$utils$$isFunction(mapFn)) {\n throw new TypeError(\"You must pass a function as map's second argument.\");\n }\n\n var length = values.length;\n var results = new Array(length);\n\n for (var i = 0; i < length; i++) {\n results[i] = mapFn(values[i]);\n }\n\n return lib$rsvp$promise$$default.all(results, label);\n });\n }\n var lib$rsvp$map$$default = lib$rsvp$map$$map;\n\n function lib$rsvp$node$$Result() {\n this.value = undefined;\n }\n\n var lib$rsvp$node$$ERROR = new lib$rsvp$node$$Result();\n var lib$rsvp$node$$GET_THEN_ERROR = new lib$rsvp$node$$Result();\n\n function lib$rsvp$node$$getThen(obj) {\n try {\n return obj.then;\n } catch(error) {\n lib$rsvp$node$$ERROR.value= error;\n return lib$rsvp$node$$ERROR;\n }\n }\n\n\n function lib$rsvp$node$$tryApply(f, s, a) {\n try {\n f.apply(s, a);\n } catch(error) {\n lib$rsvp$node$$ERROR.value = error;\n return lib$rsvp$node$$ERROR;\n }\n }\n\n function lib$rsvp$node$$makeObject(_, argumentNames) {\n var obj = {};\n var name;\n var i;\n var length = _.length;\n var args = new Array(length);\n\n for (var x = 0; x < length; x++) {\n args[x] = _[x];\n }\n\n for (i = 0; i < argumentNames.length; i++) {\n name = argumentNames[i];\n obj[name] = args[i + 1];\n }\n\n return obj;\n }\n\n function lib$rsvp$node$$arrayResult(_) {\n var length = _.length;\n var args = new Array(length - 1);\n\n for (var i = 1; i < length; i++) {\n args[i - 1] = _[i];\n }\n\n return args;\n }\n\n function lib$rsvp$node$$wrapThenable(then, promise) {\n return {\n then: function(onFulFillment, onRejection) {\n return then.call(promise, onFulFillment, onRejection);\n }\n };\n }\n\n function lib$rsvp$node$$denodeify(nodeFunc, options) {\n var fn = function() {\n var self = this;\n var l = arguments.length;\n var args = new Array(l + 1);\n var arg;\n var promiseInput = false;\n\n for (var i = 0; i < l; ++i) {\n arg = arguments[i];\n\n if (!promiseInput) {\n // TODO: clean this up\n promiseInput = lib$rsvp$node$$needsPromiseInput(arg);\n if (promiseInput === lib$rsvp$node$$GET_THEN_ERROR) {\n var p = new lib$rsvp$promise$$default(lib$rsvp$$internal$$noop);\n lib$rsvp$$internal$$reject(p, lib$rsvp$node$$GET_THEN_ERROR.value);\n return p;\n } else if (promiseInput && promiseInput !== true) {\n arg = lib$rsvp$node$$wrapThenable(promiseInput, arg);\n }\n }\n args[i] = arg;\n }\n\n var promise = new lib$rsvp$promise$$default(lib$rsvp$$internal$$noop);\n\n args[l] = function(err, val) {\n if (err)\n lib$rsvp$$internal$$reject(promise, err);\n else if (options === undefined)\n lib$rsvp$$internal$$resolve(promise, val);\n else if (options === true)\n lib$rsvp$$internal$$resolve(promise, lib$rsvp$node$$arrayResult(arguments));\n else if (lib$rsvp$utils$$isArray(options))\n lib$rsvp$$internal$$resolve(promise, lib$rsvp$node$$makeObject(arguments, options));\n else\n lib$rsvp$$internal$$resolve(promise, val);\n };\n\n if (promiseInput) {\n return lib$rsvp$node$$handlePromiseInput(promise, args, nodeFunc, self);\n } else {\n return lib$rsvp$node$$handleValueInput(promise, args, nodeFunc, self);\n }\n };\n\n fn.__proto__ = nodeFunc;\n\n return fn;\n }\n\n var lib$rsvp$node$$default = lib$rsvp$node$$denodeify;\n\n function lib$rsvp$node$$handleValueInput(promise, args, nodeFunc, self) {\n var result = lib$rsvp$node$$tryApply(nodeFunc, self, args);\n if (result === lib$rsvp$node$$ERROR) {\n lib$rsvp$$internal$$reject(promise, result.value);\n }\n return promise;\n }\n\n function lib$rsvp$node$$handlePromiseInput(promise, args, nodeFunc, self){\n return lib$rsvp$promise$$default.all(args).then(function(args){\n var result = lib$rsvp$node$$tryApply(nodeFunc, self, args);\n if (result === lib$rsvp$node$$ERROR) {\n lib$rsvp$$internal$$reject(promise, result.value);\n }\n return promise;\n });\n }\n\n function lib$rsvp$node$$needsPromiseInput(arg) {\n if (arg && typeof arg === 'object') {\n if (arg.constructor === lib$rsvp$promise$$default) {\n return true;\n } else {\n return lib$rsvp$node$$getThen(arg);\n }\n } else {\n return false;\n }\n }\n var lib$rsvp$platform$$platform;\n\n /* global self */\n if (typeof self === 'object') {\n lib$rsvp$platform$$platform = self;\n\n /* global global */\n } else if (typeof global === 'object') {\n lib$rsvp$platform$$platform = global;\n } else {\n throw new Error('no global: `self` or `global` found');\n }\n\n var lib$rsvp$platform$$default = lib$rsvp$platform$$platform;\n function lib$rsvp$race$$race(array, label) {\n return lib$rsvp$promise$$default.race(array, label);\n }\n var lib$rsvp$race$$default = lib$rsvp$race$$race;\n function lib$rsvp$reject$$reject(reason, label) {\n return lib$rsvp$promise$$default.reject(reason, label);\n }\n var lib$rsvp$reject$$default = lib$rsvp$reject$$reject;\n function lib$rsvp$resolve$$resolve(value, label) {\n return lib$rsvp$promise$$default.resolve(value, label);\n }\n var lib$rsvp$resolve$$default = lib$rsvp$resolve$$resolve;\n function lib$rsvp$rethrow$$rethrow(reason) {\n setTimeout(function() {\n throw reason;\n });\n throw reason;\n }\n var lib$rsvp$rethrow$$default = lib$rsvp$rethrow$$rethrow;\n\n // defaults\n lib$rsvp$config$$config.async = lib$rsvp$asap$$default;\n lib$rsvp$config$$config.after = function(cb) {\n setTimeout(cb, 0);\n };\n var lib$rsvp$$cast = lib$rsvp$resolve$$default;\n function lib$rsvp$$async(callback, arg) {\n lib$rsvp$config$$config.async(callback, arg);\n }\n\n function lib$rsvp$$on() {\n lib$rsvp$config$$config['on'].apply(lib$rsvp$config$$config, arguments);\n }\n\n function lib$rsvp$$off() {\n lib$rsvp$config$$config['off'].apply(lib$rsvp$config$$config, arguments);\n }\n\n // Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\n if (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n var lib$rsvp$$callbacks = window['__PROMISE_INSTRUMENTATION__'];\n lib$rsvp$config$$configure('instrument', true);\n for (var lib$rsvp$$eventName in lib$rsvp$$callbacks) {\n if (lib$rsvp$$callbacks.hasOwnProperty(lib$rsvp$$eventName)) {\n lib$rsvp$$on(lib$rsvp$$eventName, lib$rsvp$$callbacks[lib$rsvp$$eventName]);\n }\n }\n }\n\n var lib$rsvp$umd$$RSVP = {\n 'race': lib$rsvp$race$$default,\n 'Promise': lib$rsvp$promise$$default,\n 'allSettled': lib$rsvp$all$settled$$default,\n 'hash': lib$rsvp$hash$$default,\n 'hashSettled': lib$rsvp$hash$settled$$default,\n 'denodeify': lib$rsvp$node$$default,\n 'on': lib$rsvp$$on,\n 'off': lib$rsvp$$off,\n 'map': lib$rsvp$map$$default,\n 'filter': lib$rsvp$filter$$default,\n 'resolve': lib$rsvp$resolve$$default,\n 'reject': lib$rsvp$reject$$default,\n 'all': lib$rsvp$all$$default,\n 'rethrow': lib$rsvp$rethrow$$default,\n 'defer': lib$rsvp$defer$$default,\n 'EventTarget': lib$rsvp$events$$default,\n 'configure': lib$rsvp$config$$configure,\n 'async': lib$rsvp$$async\n };\n\n /* global define:true module:true window: true */\n if (typeof define === 'function' && define['amd']) {\n define(function() { return lib$rsvp$umd$$RSVP; });\n } else if (typeof module !== 'undefined' && module['exports']) {\n module['exports'] = lib$rsvp$umd$$RSVP;\n } else if (typeof lib$rsvp$platform$$default !== 'undefined') {\n lib$rsvp$platform$$default['RSVP'] = lib$rsvp$umd$$RSVP;\n }\n}).call(this);\n\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/rsvp/dist/rsvp.js\n ** module id = 6\n ** module chunks = 0\n **/","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\n(function () {\n try {\n cachedSetTimeout = setTimeout;\n } catch (e) {\n cachedSetTimeout = function () {\n throw new Error('setTimeout is not defined');\n }\n }\n try {\n cachedClearTimeout = clearTimeout;\n } catch (e) {\n cachedClearTimeout = function () {\n throw new Error('clearTimeout is not defined');\n }\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n return setTimeout(fun, 0);\n } else {\n return cachedSetTimeout.call(null, fun, 0);\n }\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n clearTimeout(marker);\n } else {\n cachedClearTimeout.call(null, marker);\n }\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/process/browser.js\n ** module id = 7\n ** module chunks = 0\n **/","var nextTick = require('process/browser.js').nextTick;\nvar apply = Function.prototype.apply;\nvar slice = Array.prototype.slice;\nvar immediateIds = {};\nvar nextImmediateId = 0;\n\n// DOM APIs, for completeness\n\nexports.setTimeout = function() {\n return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);\n};\nexports.setInterval = function() {\n return new Timeout(apply.call(setInterval, window, arguments), clearInterval);\n};\nexports.clearTimeout =\nexports.clearInterval = function(timeout) { timeout.close(); };\n\nfunction Timeout(id, clearFn) {\n this._id = id;\n this._clearFn = clearFn;\n}\nTimeout.prototype.unref = Timeout.prototype.ref = function() {};\nTimeout.prototype.close = function() {\n this._clearFn.call(window, this._id);\n};\n\n// Does not start the time, just sets up the members needed.\nexports.enroll = function(item, msecs) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = msecs;\n};\n\nexports.unenroll = function(item) {\n clearTimeout(item._idleTimeoutId);\n item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function(item) {\n clearTimeout(item._idleTimeoutId);\n\n var msecs = item._idleTimeout;\n if (msecs >= 0) {\n item._idleTimeoutId = setTimeout(function onTimeout() {\n if (item._onTimeout)\n item._onTimeout();\n }, msecs);\n }\n};\n\n// That's not how node.js implements it but the exposed api is the same.\nexports.setImmediate = typeof setImmediate === \"function\" ? setImmediate : function(fn) {\n var id = nextImmediateId++;\n var args = arguments.length < 2 ? false : slice.call(arguments, 1);\n\n immediateIds[id] = true;\n\n nextTick(function onNextTick() {\n if (immediateIds[id]) {\n // fn.call() is faster so we optimize for the common use-case\n // @see http://jsperf.com/call-apply-segu\n if (args) {\n fn.apply(null, args);\n } else {\n fn.call(null);\n }\n // Prevent ids from leaking\n exports.clearImmediate(id);\n }\n });\n\n return id;\n};\n\nexports.clearImmediate = typeof clearImmediate === \"function\" ? clearImmediate : function(id) {\n delete immediateIds[id];\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/timers-browserify/main.js\n ** module id = 8\n ** module chunks = 0\n **/","module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tmodule.children = [];\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n}\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/module.js\n ** module id = 9\n ** module chunks = 0\n **/","/* (ignored) */\n\n\n/*****************\n ** WEBPACK FOOTER\n ** vertx (ignored)\n ** module id = 10\n ** module chunks = 0\n **/","module.exports = function() { throw new Error(\"define cannot be used indirect\"); };\r\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/amd-define.js\n ** module id = 11\n ** module chunks = 0\n **/","export default {\n overlay() {\n let that = this;\n let $_body = $('body');\n $_body.on('click', '.overlay-link', function (event) {\n let $this = $(this);\n const dataName = $this.data('name');\n const ycoord = $(window).scrollTop();\n $_body.data('ycoord', ycoord);\n $_body.css({\n position: 'fixed',\n top: `${ycoord * -1}px`,\n right: 0,\n left: 0\n });\n event.preventDefault();\n // $('body').addClass('no-scroll');\n\n //Triggers for rotator\n if ($this.hasClass('hero__play-button-link') || $this.hasClass('teaser') || $this.hasClass('text-block__link--video')) {\n $('.video__overlay').attr('data-name', dataName);\n that.updateContent(dataName);\n }\n\n $('.overlay[data-name=\"' + dataName + '\"]').addClass('is-active');\n });\n\n $('.overlay-close').on('click', function (event) {\n var _this = $(this),\n videoSrc,\n videoEmbed = _this.parent().find('.video__iframe');\n event.preventDefault();\n // $('body').removeClass('no-scroll');\n $_body.attr('style', '');\n $(window).scrollTop($_body.data('ycoord'));\n _this.closest('.overlay').removeClass('is-active');\n //Ignore all gallery overlay\n if (!_this.closest('.overlay').hasClass('gallery__overlay')) {\n //If there is video in overlay stop video if it is playing\n //copy the src and replace it to \"\" then put it back.\n videoSrc = videoEmbed.attr('src');\n videoEmbed.attr('src', '');\n videoEmbed.attr('src', videoSrc);\n }\n });\n },\n\n updateContent(dataName) {\n let overlay = window[dataName];\n if (overlay.title) {\n document.querySelector('.video__title').innerHTML = overlay.title;\n }\n if (overlay.body) {\n document.querySelector('.video__body').innerHTML = overlay.body;\n }\n if (overlay.location) {\n document.querySelector('.by-line-overlay__location').innerHTML = overlay.location;\n }\n if (overlay.person) {\n document.querySelector('.by-line__person').innerHTML = overlay.person;\n }\n if (overlay.videoEmbed) {\n document.querySelector('.video__embed').innerHTML = overlay.videoEmbed;\n }\n },\n\n init() {\n this.overlay();\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/overlay.js\n **/","/**\n * A class that will expand/collapse a block of text based off the elements height.\n */\nexport default class {\n /**\n * Constructor\n * @param scope - Selector of the element that holds both the hidden element and the trigger.\n * It can be either a css selector or the element itself.\n * @param {number} [height = 0] - The starting height of the hidden element\n * @param {string} [selector = '.hidden'] - Selector of the hidden element\n */\n constructor(scope = '', height = 0, selector = '.hidden') {\n this.scope = (!(scope instanceof HTMLElement)) ? document.querySelector(scope) : scope;\n this.defaultHeight = height;\n this.extra = this.scope.querySelector('.hidden');\n this.readMoreBtn = this.scope.querySelector('.read-more');\n this.bindUI();\n }\n bindUI() {\n this.readMoreBtn.addEventListener('click', (evt) => {\n evt.preventDefault();\n this.toggleHeight();\n });\n }\n getDefaultHeight() {\n const clone = this.extra.cloneNode(true);\n clone.style.height = 'auto';\n this.extra.parentNode.appendChild(clone);\n const height = clone.offsetHeight;\n this.extra.parentNode.removeChild(clone);\n return height;\n }\n open() {\n this.scope.classList.add('opened');\n this.extra.style.height = (this.extra.dataset.defaultHeight || `${this.getDefaultHeight()}px`);\n this.readMoreBtn.classList.add('opened');\n }\n close() {\n this.scope.classList.remove('opened');\n this.extra.style.height = this.defaultHeight;\n this.readMoreBtn.classList.remove('opened');\n }\n toggleHeight() {\n // let autoHeight = this.extra.dataset.defaultHeight;\n // if (typeof autoHeight === 'undefined') {\n // autoHeight = this.getDefaultHeight();\n // this.extra.dataset.defaultHeight = autoHeight;\n // }\n if (this.extra.offsetHeight === this.defaultHeight) {\n this.open();\n } else {\n this.close();\n }\n // this.extra.style.height = (this.extra.offsetHeight === this.defaultHeight) ? `${autoHeight}px` : this.defaultHeight;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/read-more.js\n **/","export default {\n searchBar() {\n let that = this;\n $('.search-link').on('click', function (event) {\n event.preventDefault();\n that.enableSearchBar();\n });\n },\n\n enableSearchBar() {\n $('.search-bar').toggleClass('is-active');\n $('.search-link').toggleClass('is-active');\n $('.main-nav.is-active').removeClass('is-active');\n $('.mobile-link.is-active').removeClass('is-active');\n $('body.no-scroll').removeClass('no-scroll');\n $('.main-nav__secondary-item.is-active').removeClass('is-active');\n $('.search-bar.is-active .text-field').focus();\n },\n\n init() {\n this.searchBar();\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/search.js\n **/","import isTouch from './touch-click';\nimport general from './general';\n\nexport default {\n slideshow() {\n let $mastHead = $('.masthead-slider'),\n $slickActive;\n\n $mastHead.on('init', function (event, slick) {\n $slickActive = $('.slick-active');\n if ($slickActive.find('video').length > 0 && !isTouch()) {\n $slickActive.find('video').get(0).play();\n } else {\n $slickActive.find('.hero__video').hide();\n }\n });\n\n $mastHead.slick({\n dots: true,\n arrows: false,\n infinite: false,\n speed: 300,\n slidesToShow: 1,\n adaptiveHeight: true,\n swipeToSlide: true\n });\n\n $mastHead.on('beforeChange', function (event, slick) {\n $slickActive = $('.slick-active');\n if ($slickActive.find('video').length > 0 && !isTouch()) {\n $slickActive.find('video').get(0).pause();\n } else {\n $slickActive.find('.hero__video').hide();\n }\n });\n\n $mastHead.on('afterChange', function (event, slick) {\n $slickActive = $('.slick-active');\n if ($slickActive.find('video').length > 0 && !isTouch()) {\n $slickActive.find('video').get(0).play();\n } else {\n $slickActive.find('.hero__video').hide();\n }\n });\n },\n\n discoverBoard() {\n // navigation\n let sliderFor = $('.info-slider-for'),\n infoSlide = $('.info-slider-for__slide'),\n infoSlider = $('.info-slider'),\n length = sliderFor.data('length');\n\n //Don't run carousel if there is only one slide\n if (infoSlide.length <= 1) {\n return false;\n }\n\n sliderFor.not('.slick-initialized').slick({\n slidesToShow: length,\n slidesToScroll: 1,\n asNavFor: '.info-slider',\n focusOnSelect: true,\n variableWidth: true,\n adaptiveHeight: true,\n infinite: false,\n });\n\n // slider\n infoSlider.not('.slick-initialized').slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n arrows: false,\n asNavFor: '.info-slider-for',\n adaptiveHeight: true,\n infinite: false,\n });\n },\n\n mobileDiscoverBoard() {\n let mobileSlider = $('.discover-board-mobile .slider');\n\n mobileSlider.not('.slick-initialized').slick({\n infinite: false,\n slidesToShow: 1,\n slidesToScroll: 1,\n adaptiveHeight: true,\n centerMode: true,\n centerPadding: '50px',\n arrows: false,\n });\n },\n\n loadDiscoverBoards() {\n // Only load the discover board slider base on viewport size.\n if (window.matchMedia('(min-width: 768px)').matches && $('.info-slider-for').length > 0) {\n this.discoverBoard();\n } else if ($('.discover-board-mobile .slider').length > 0) {\n this.mobileDiscoverBoard();\n }\n },\n\n init() {\n this.slideshow();\n this.loadDiscoverBoards();\n\n // Load discover board slider on resize to different viewport.\n const discoverBoardSliders = general.debounce(() => {\n this.loadDiscoverBoards();\n }, 250);\n\n window.addEventListener('resize', discoverBoardSliders);\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/slideshow.js\n **/","export default {\n ares() {\n let widget = WidgetManager.createWidget(),\n that = this;\n widget.setTarget('.ares__widget');\n widget.setSiteId(246);\n widget.setDomain('hotels.sandiego.org');\n widget.setAffiliateId(75);\n widget.setTheme('sdta');\n widget.setSource('widget-bare');\n widget.setTierLevel(2);\n widget.generateWidget(function () {\n that.renderForms();\n });\n },\n\n aresKids() {\n let widget = WidgetManager.createWidget(),\n that = this;\n widget.setTarget('#aresKFWidget');\n widget.setSiteId(1159);\n widget.setDomain('hotels.sandiego.org');\n widget.setAffiliateId(75);\n widget.setTheme('sdta');\n widget.setSource('widget-kf-bare');\n widget.setTierLevel(0);\n widget.setMarketingRegion('m24');\n widget.generateWidget(function () {\n that.renderForms();\n });\n },\n\n renderForms() {\n // eslint-disable-next-line no-unused-vars\n let hotelCheckIn = new Pikaday({\n field: document.getElementById('hotelCheckIn'),\n format: moment().format('MM/DD/YYYY'),\n defaultDate: new Date(),\n setDefaultDate: true,\n onSelect: function () {\n let textField = this.getMoment().format('MM/DD/YYYY');\n document.getElementById('hotelCheckIn').value = textField;\n }\n });\n // eslint-disable-next-line no-unused-vars\n let hotelCheckOut = new Pikaday({\n field: document.getElementById('hotelCheckOut'),\n format: moment().format('MM/DD/YYYY'),\n defaultDate: new Date(),\n setDefaultDate: true,\n onSelect: function () {\n let textField = this.getMoment().format('MM/DD/YYYY');\n document.getElementById('hotelCheckOut').value = textField;\n }\n });\n $('#hotelNumberOfRooms').niceSelect();\n $('#hotelNumberOfAdults').niceSelect();\n $('#hotelNumberOfChildren').niceSelect();\n $('.locationID').niceSelect();\n },\n\n init() {\n if ($('#aresKFWidget').length > 0) {\n this.aresKids();\n }\n if ($('#aresBooking').length > 0) {\n this.ares();\n }\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/ares.js\n **/","export default class {\n constructor() {\n this.infoBox = document.getElementById('explore-info-box');\n this.mapRegions = document.querySelectorAll('.region__path');\n this.mapContainer = document.querySelector('.map__regions');\n this.linkHover();\n this.bindEvents();\n\n const activeRegion = this.mapContainer.dataset.activeregion;\n if (typeof activeRegion !== 'undefined' && activeRegion !== '') {\n this.setActiveRegion(this.mapContainer.dataset.activeregion);\n }\n }\n\n /**\n * Sets the active class on the page with map standalone.\n *\n * @param activeRegion\n */\n setActiveRegion(activeRegion) {\n document.querySelector('.' + activeRegion).classList.add('is-active');\n }\n\n linkHover() {\n let regionLink = document.querySelectorAll('.region__link'),\n regionPath = document.querySelectorAll('.region__path'),\n int;\n //Hover over the region text link and highlights the svg map region.\n for (int = 0; int < regionLink.length; int += 1) {\n regionLink[int].addEventListener('mouseover', function () {\n let region = this.dataset.link;\n document.querySelector('.' + region).classList.add('is-hover');\n });\n\n regionLink[int].addEventListener('mouseout', function () {\n let region = this.dataset.link;\n document.querySelector('.' + region).classList.remove('is-hover');\n });\n }\n\n if ($('.map__listings').length > 0) {\n //Hover over the svg map region and highlights the region text link\n for (int = 0; int < regionPath.length; int += 1) {\n regionPath[int].addEventListener('mouseover', function () {\n let region = this.className.baseVal.split(' ')[1];\n if (this.classList.contains('not-active')) {\n return false;\n }\n document.querySelector('[data-link=' + region + ']').classList.add('is-active');\n });\n\n regionPath[int].addEventListener('mouseout', function () {\n let region = this.className.baseVal.split(' ')[1];\n if (this.classList.contains('not-active')) {\n return false;\n }\n document.querySelector('[data-link=' + region + ']').classList.remove('is-active');\n });\n }\n }\n }\n\n /**\n * Update content for the map's info box\n * @param {String} region - name of the region to display information for\n */\n updateInfoBox(region) {\n let regionData = '';\n const length = infoBoxes.length;\n for (let i = 0; i < length; i += 1) {\n if (region === infoBoxes[i].id) {\n regionData = infoBoxes[i];\n break;\n }\n }\n if (regionData.region) {\n this.infoBox.querySelector('.info-box__title').innerHTML = regionData.region;\n }\n if (regionData.image) {\n this.infoBox.querySelector('.info-box__image').src = regionData.image;\n }\n if (regionData.body) {\n this.infoBox.querySelector('.info-box__body').innerHTML = regionData.body;\n }\n if (regionData.cta) {\n this.infoBox.querySelector('.info-box__cta').classList.remove('not-active');\n this.infoBox.querySelector('.info-box__cta-link').href = regionData.cta;\n } else {\n this.infoBox.querySelector('.info-box__cta').classList.add('not-active');\n }\n }\n\n /**\n * Show the map info box for the region that was clicked on\n * @param path - the svg path that was clicked on\n * @param evt - the click event itself\n */\n showInfoBox(path, offset, evt) {\n let top = offset.top,\n left = offset.left;\n\n const headerHeight = document.querySelector('.header').offsetHeight;\n const windowInnerWidth = window.innerWidth;\n const windowInnerHeight = window.innerHeight;\n const pageYOffset = window.pageYOffset;\n const region = path.className.baseVal.split(' ')[1];\n\n this.updateInfoBox(region.replace('region__', ''));\n //Get the correct height and width of infobox once content has been updated.\n const infoBoxWidth = this.infoBox.offsetWidth;\n const infoBoxHeight = this.infoBox.offsetHeight;\n\n top += headerHeight;\n if (top < pageYOffset + headerHeight + (windowInnerHeight / 2 - headerHeight)) {\n top = pageYOffset + headerHeight;\n } else {\n top = top - ((top + infoBoxHeight) - (windowInnerHeight + pageYOffset));\n }\n\n if ((left + infoBoxWidth + 20) > windowInnerWidth) {\n left -= infoBoxWidth;\n }\n\n // remove active class for all elements\n for (let i = 0; i < this.mapRegions.length; i++) {\n this.mapRegions[i].classList.remove('is-hover');\n }\n\n path.classList.add('is-hover');\n this.setRegionLinkClass(path.className.baseVal.split(' ')[1]);\n this.infoBox.classList.add('is-active');\n this.infoBox.style.left = `${left}px`;\n this.infoBox.style.top = `${top}px`;\n }\n\n bindEvents() {\n let regionPath = document.querySelectorAll('.region__path'),\n closeBtn = document.querySelectorAll('.info-box__close'),\n regionLink = document.querySelectorAll('.region__link'),\n int,\n i,\n that = this;\n\n if (window.matchMedia('(min-width: 1024px)').matches) {\n for (int = 0; int < regionLink.length; int += 1) {\n // eslint-disable-next-line no-loop-func\n regionLink[int].addEventListener('click', function (evt) {\n evt.preventDefault();\n const regionSelector = document.querySelector('.' + this.dataset.link);\n const offset = $('.' + this.dataset.link).offset();\n that.showInfoBox(regionSelector, offset, evt);\n for (int = 0; int < regionPath.length; int += 1) {\n regionPath[int].classList.remove('is-active');\n }\n regionSelector.classList.add('is-active');\n });\n }\n }\n\n for (int = 0; int < regionPath.length; int += 1) {\n // eslint-disable-next-line no-loop-func\n regionPath[int].addEventListener('click', function (evt) {\n const offset = $(this).offset();\n //If region has a not-active class tide to it\n //then it doesn't show infobox\n if (this.classList.contains('not-active')) {\n return false;\n }\n for (int = 0; int < regionPath.length; int += 1) {\n regionPath[int].classList.remove('is-active');\n }\n that.showInfoBox(this, offset, evt);\n });\n }\n\n for (int = 0; int < closeBtn.length; int += 1) {\n // eslint-disable-next-line no-loop-func\n closeBtn[int].addEventListener('click', function () {\n for (i = 0; i < regionPath.length; i++) {\n regionPath[i].classList.remove('is-hover');\n regionPath[i].classList.remove('is-active');\n }\n for (i = 0; i < regionLink.length; i++) {\n regionLink[i].classList.remove('is-clicked');\n }\n this.parentNode.classList.remove('is-active');\n });\n }\n }\n\n setRegionLinkClass(className) {\n let regionLink = document.querySelectorAll('.region__link'),\n i;\n for (i = 0; i < regionLink.length; i++) {\n regionLink[i].classList.remove('is-clicked');\n }\n //Check if the map listing view is on the page.\n if ($('.map__listings').length > 0) {\n document.querySelector('[data-link=' + className + ']').classList.add('is-clicked');\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/map.js\n **/","import api from './api';\nimport general from './general';\nimport googleAd from './ads';\n\nexport default class {\n constructor() {\n this.filterSelection = $('.filters__selections');\n this.filterForm = $('.filters-form');\n this.query = document.URL.split('#')[1];\n this.bindUI();\n this.formElementsSlider();\n this.formElementSelect();\n this.formElementsDatePicker();\n this.formCheckboxChild();\n this.updateHash();\n this.urlHandler = this.filterForm.attr('action');\n this.ajaxData = {};\n this.view = 'list-view';\n this.pageCount = this.filterForm.find('.pagecount').val();\n\n //If Hash\n // if (typeof this.query !== 'undefined') {\n // this.query = this.query.split('&');\n // this.updateFilterControls(this.query);\n // }\n this.updatePage(this.urlHandler, this.combineSerialisedFormData(this.filterForm.serialize()), 'POST', true);\n }\n\n bindUI() {\n let that = this;\n\n //Stops the form from just submitting\n $('.filters-form').on('submit', function (event) {\n event.stopPropagation();\n event.preventDefault();\n });\n\n // returning false at the end stops the form elements from being selected. So each if statement needs to\n // return false\n $('.filters').on('click', function (event) {\n let classSelector = event.target.classList;\n /*\n You are lucky this works. The button to open filters and submit filters have the same class .submit-button-primary.\n If the first if statement came after the one for .submit-button-primary then the filters will never open.\n Consider fixing your sass so that the button top open the filters doesn't need the same class as the\n one that submits the filters.\n */\n if (classSelector.contains('result__filter-btn')) {\n general.toggleActiveState(that.filterSelection, that.filterSelection);\n return false;\n }\n if (classSelector.contains('selection__close') || classSelector.contains('icon-close')) {\n general.toggleActiveState(that.filterSelection, that.filterSelection);\n return false;\n }\n if (classSelector.contains('filter-search__submit')) {\n that.filterForm.find('.pagecount').val(1);\n const data = that.compileData();\n that.updatePage(that.urlHandler, data, 'POST', true);\n if (that.view === 'map-view') {\n // Removes original markers\n that.mapClearMakers();\n }\n return false;\n }\n if (classSelector.contains('submit-button__primary')) {\n that.filterForm.find('.pagecount').val(1);\n const data = that.compileData();\n that.updatePage(that.urlHandler, data, 'POST', true);\n $('.result__filter-btn').trigger('click');\n if (that.view === 'map-view') {\n // Removes original markers\n that.mapClearMakers();\n }\n return false;\n }\n });\n\n $('.load-more').on('click', function () {\n that.filterForm.find('.pagecount').val(++that.pageCount);\n that.updatePage(that.urlHandler, that.combineSerialisedFormData(that.filterForm.serialize()), 'POST');\n return false;\n });\n\n //Clear Filter button\n $('.clear-filter').on('click', function (event) {\n event.preventDefault();\n that.filterForm[0].reset();\n that.filterForm.find('.pagecount').val(1);\n that.resetFormElementsSlider();\n if (that.view === 'map-view') {\n // Removes original markers\n that.mapClearMakers();\n }\n const data = that.compileData();\n that.updatePage(that.urlHandler, data, 'POST', true);\n });\n\n // Check which view has been selected (Map or List View)\n $('.filter-search__view').on('click', function (event) {\n let $this = $(this),\n viewContainer = $this.data('filtercontainer');\n event.preventDefault();\n if ($this.hasClass('is-active')) {\n return false;\n }\n general.toggleActiveState($this, $('.filter-search__view'));\n general.toggleActiveState($('.' + viewContainer), $('.filters__view'));\n that.getView();\n });\n\n $('.filters__nav-btn').on('click', function (event) {\n let $this = $(this),\n sideBarContainer = $this.data('sidebar'),\n type = $this.data('type');\n event.preventDefault();\n general.toggleActiveState($this, $('.filters__nav-btn'));\n $('.filter-search__sort-select').removeClass('is-active');\n general.toggleActiveState($('.' + sideBarContainer), $('.filters__wrapper'));\n $('[name=\"sort\"]').prop('disabled', true);\n $('.is-active[name=\"sort\"]').prop('disabled', false);\n $('.nice-select.is-active').removeClass('disabled');\n $('.filter__type').val(type);\n that.filterForm.find('.pagecount').val(1);\n const data = that.compileData();\n that.updatePage(that.urlHandler, data, 'POST', true);\n });\n\n $('.selection__title').on('click', function () {\n let $this = $(this),\n selectionGroup = $(this).next('.selection__group'),\n innerSelectionGroup = selectionGroup.find('.selection__group-inner');\n\n if (!selectionGroup.hasClass('is-active')) {\n general.slideDown(selectionGroup, innerSelectionGroup);\n } else {\n general.slideUp(selectionGroup);\n }\n\n general.toggleActiveState($this);\n general.toggleActiveState(selectionGroup);\n });\n }\n\n compileData(sideBarContainer = false) {\n const selectedTab = document.querySelector('.filters__nav-btn.is-active');\n const serializedData = (sideBarContainer) ? this.serializeData(selectedTab.dataset.sidebar) : this.filterForm.serialize();\n return this.combineSerialisedFormData(serializedData);\n }\n\n serializeData(sideBarContainer) {\n let data = '';\n data += this.filterForm.find('> input:hidden').serialize();\n data += `&${this.filterForm.find('.filters__search input, .filters__search select').serialize()}`;\n data += `&${this.filterForm.find(`.${sideBarContainer} input, .${sideBarContainer} select`).serialize()}`;\n return data;\n }\n\n getView() {\n if (this.view === 'list-view') {\n this.view = 'map-view';\n this.mapInit(this.ajaxData);\n } else if (this.view === 'map-view') {\n this.view = 'list-view';\n if (this.ajaxData.totalResults === 0 || this.ajaxData.totalResults !== this.resultCount) {\n document.querySelector('.filters__results-list').innerHTML = SDTA.templates['app/handlebars/result.hbs'](this.ajaxData);\n }\n }\n }\n\n formElementsDatePicker() {\n if ($('#startDate').length > 0) {\n // eslint-disable-next-line no-unused-vars\n let startDate = new Pikaday({\n field: document.getElementById('startDate'),\n format: 'MM / DD / YYYY',\n });\n }\n if ($('#endDate').length > 0) {\n // eslint-disable-next-line no-unused-vars\n let endDate = new Pikaday({\n field: document.getElementById('endDate'),\n format: 'MM / DD / YYYY',\n });\n }\n }\n\n formCheckboxChild() {\n $('.selection__checkbox').on('change', function () {\n let $this = $(this),\n childCheckbox = $this.closest('.selection__entry').find('.selection__sub-item').children(':checkbox').prop('checked', true);\n if ($(this).is(':checked')) {\n childCheckbox.prop('checked', true);\n } else {\n childCheckbox.prop('checked', false);\n }\n });\n }\n\n resetFormElementsSlider() {\n let slideClass = document.getElementsByClassName('selection__slider'),\n i;\n\n for (i = 0; i < slideClass.length; ++i) {\n let item = slideClass[i],\n id = item.id,\n idSet = document.getElementById(id),\n rangeSliderValueElement = document.getElementById(id + '-value'),\n inputValue = document.getElementById(id + '-input-value'),\n min = parseInt(item.dataset.min, 0);\n idSet.noUiSlider.set(min);\n inputValue.value = -1;\n rangeSliderValueElement.innerHTML = min;\n }\n }\n\n formElementsSlider() {\n let slideClass = document.getElementsByClassName('selection__slider'),\n i;\n\n if ($('.selection__slider').length < 0) {\n return false;\n }\n for (i = 0; i < slideClass.length; ++i) {\n let item = slideClass[i],\n id = item.id,\n idSet = document.getElementById(id),\n rangeSliderValueElement = document.getElementById(id + '-value'),\n inputValue = document.getElementById(id + '-input-value'),\n min = parseInt(item.dataset.min, 0),\n max = parseInt(item.dataset.max, 0);\n\n noUiSlider.create(idSet, {\n start: min,\n step: 1,\n connect: 'lower',\n range: {\n 'min': min,\n 'max': max\n }\n });\n\n idSet.noUiSlider.on('change', function (values, handle) {\n inputValue.value = values[handle].replace('.00', '');\n });\n\n idSet.noUiSlider.on('update', function (values, handle) {\n rangeSliderValueElement.innerHTML = values[handle].replace('.00', '');\n });\n }\n }\n\n formElementSelect() {\n let that = this;\n $('.selection__dropdown').niceSelect();\n $('.filter-search__sort-select').niceSelect();\n $('.selection__entry--calendar').on('click', '.option', function () {\n let $this = $(this);\n if ($this.data('value') === 'select-date-range') {\n $('.selection__dates input').prop('disabled', false);\n $('.selection__dates').addClass('is-active');\n } else {\n $('.selection__dates input').prop('disabled', true);\n $('.selection__dates').removeClass('is-active');\n }\n });\n $('[name=\"sort\"]').on('change', function () {\n //Clear the original markers.\n if (that.view === 'map-view') {\n // Removes original markers\n that.mapClearMakers();\n }\n //Reset the page result to 1 then sort the new data\n that.pageCount = 1;\n that.filterForm.find('.pagecount').val(1);\n that.updatePage(that.urlHandler, that.combineSerialisedFormData(that.filterForm.serialize()), 'POST', true);\n });\n }\n\n combineSerialisedFormData(strEscapedSerialisedFormData) {\n let arrFormData = strEscapedSerialisedFormData.split('&'),\n dictCombinedKeys = {},\n i,\n arrParam,\n strKey,\n strValue,\n arrKeyValuePairs = [],\n key;\n\n for (i = 0; i < arrFormData.length; i++) {\n arrParam = arrFormData[i].split('=');\n strKey = arrParam[0];\n strValue = arrParam[1].replace(/\\+%2F\\+/g, '');\n\n //Clears out the start date and end date default input values\n if (strValue === 'Start+Date' || strValue === 'End+Date' || strValue === 'select-date-range') {\n strValue = '';\n }\n\n if (strKey !== '' && strValue !== '') {\n if (typeof (dictCombinedKeys[strKey]) === 'undefined') {\n dictCombinedKeys[strKey] = strValue;\n } else {\n dictCombinedKeys[strKey] += ',' + strValue;\n }\n }\n }\n\n // { name : \"help\" , rating : \"5,4,3,2,1,0\", test : \"\" }\n // change this object into an array of key value pairs like this\n // [\"name=help\",\"rating=5,4,3,2,1,0\",\"test=\"]\n for (key in dictCombinedKeys) {\n if (dictCombinedKeys.hasOwnProperty(key)) {\n arrKeyValuePairs.push(key + '=' + dictCombinedKeys[key]);\n }\n }\n return arrKeyValuePairs.join('&');\n }\n\n insertAds(response) {\n //Check if it's less than 15\n if (response.length < 15) {\n let totalLength = response.length;\n\n //Only display one ad if less than 4\n if (totalLength < 4) {\n response.push({id: totalLength - 1, displayId: totalLength - 1, adId: 'filter1', ad: true});\n return response;\n }\n\n //Insert first ad to the 4th spot.\n response.splice(2, 0,\n {id: 4, displayId: 4, adId: 'filter1', ad: true}\n );\n\n //Insert last ad to the last spot\n response.push({id: totalLength - 1, displayId: totalLength - 1, adId: 'filter2', ad: true});\n } else {\n //Insert first ad after the 3rd spot\n response.splice(2, 0,\n {id: 4, displayId: 4, adId: 'filter1', ad: true}\n );\n //Insert last ad after the 8th spot\n response.splice(7, 0,\n {id: 9, displayId: 9, adId: 'filter2', ad: true}\n );\n }\n\n return response;\n }\n\n updatePage(url, formData, action, reset = false) {\n let requesting = api(url, formData, action);\n requesting.then((data) => {\n let results;\n if (data.totalResults !== 0 && this.filterForm.find('.pagecount').val() === '1' && data.loadAd) {\n data.results = this.insertAds(data.results);\n }\n results = SDTA.templates['app/handlebars/result.hbs'](data);\n if (reset && this.view === 'list-view') {\n this.resultCount = data.loadedResults;\n $('.filters__results-list').html(results);\n $('.load-value').html(this.resultCount);\n if (data.totalResults === 0 || data.totalResults === this.resultCount) {\n $('.submit-button__secondary.load-more').hide();\n } else {\n $('.submit-button__secondary.load-more').show();\n }\n //Ads\n $('.result--ad').each(function () {\n googleAd($(this).data('adid'));\n });\n } else if (this.view === 'list-view') {\n $('.filters__results-list').append(results);\n this.updateLoadedCount(data);\n } else if (this.view === 'map-view') {\n this.mapInit(data);\n this.updateLoadedCount(data);\n }\n if (data.totalResults === 0 || !data.loadAd) {\n this.adCount = 0;\n } else {\n this.adCount = 2;\n }\n $('.filter-search__result-total').html(data.totalResults - this.adCount);\n $('.filter-search__result-value').html(this.resultCount - this.adCount);\n //Show Display text results if it is not Enter Keyword\n if ($('.filter-search__text-field').val() !== '') {\n $('.filter-search__keyword-value').text($('.filter-search__text-field').val());\n $('.filter-search__keyword').addClass('is-active');\n } else {\n $('.filter-search__keyword').removeClass('is-active');\n }\n this.ajaxData = data;\n }).catch((error) => {\n console.log('Error ------------');\n console.log(error);\n });\n }\n\n updateLoadedCount(data) {\n let loadedResults = data.loadedResults,\n nextCount,\n resultLeft;\n\n this.resultCount = this.resultCount + loadedResults;\n resultLeft = data.totalResults - this.resultCount;\n\n if (resultLeft > data.loadedResults) {\n nextCount = loadedResults;\n } else {\n nextCount = resultLeft;\n }\n\n if (data.totalResults !== 0 && this.resultCount < data.totalResults) {\n $('.load-value').html(nextCount);\n } else {\n $('.submit-button__secondary.load-more').hide();\n }\n }\n\n updateFilterControls(query) {\n let that = this,\n hash,\n name,\n value,\n i;\n\n for (i = 0; i < query.length; i++) {\n hash = query[i].split('=');\n name = hash[0];\n value = hash[1].split(',');\n that.updateSearchField(name, value);\n that.updateSliders(name, value);\n that.updateDropDowns(name, value);\n that.updateCheckboxes(name, value);\n }\n }\n\n updateCheckboxes(name, value) {\n let i;\n\n for (i = 0; i < value.length; i++) {\n $(`input[name='${name}'][value='${value[i]}']`).prop('checked', true);\n }\n }\n\n updateSliders(hash) {\n // console.log(hash);\n }\n\n updateDropDowns(hash) {\n // console.log(hash);\n }\n\n updateSearchField(name, value) {\n let i,\n newValue;\n for (i = 0; i < value.length; i++) {\n newValue = value[i].replace(/\\+/g, ' ');\n $(`input[name='${name}']`).val(newValue);\n }\n }\n\n updateHash() {\n let location = window.location,\n oldURL = location.href,\n oldHash = location.hash,\n newURL,\n newHash;\n\n // exit if the browser implements that event\n if ('onhashchange' in window.document.body) {\n return;\n }\n\n // check the location hash on a 100ms interval\n setInterval(function () {\n newURL = location.href;\n newHash = location.hash;\n\n // if the hash has changed and a handler has been bound...\n if (newHash !== oldHash && typeof window.onhashchange === 'function') {\n // execute the handler\n window.onhashchange({\n type: 'hashchange',\n oldURL: oldURL,\n newURL: newURL\n });\n\n oldURL = newURL;\n oldHash = newHash;\n }\n }, 100);\n }\n\n mapInit(data = {}) {\n let that = this,\n i,\n lat,\n lng,\n zoom,\n publicAddress;\n\n if (data.results !== null) {\n publicAddress = false;\n //Set the lng and lat if the results has it.\n for (i = 0; i < data.results.length; i += 1) {\n if (data.results[i].publicAddress) {\n lat = data.results[i].coordinate.latitude;\n lng = data.results[i].coordinate.longitude;\n break;\n } else {\n publicAddress = true;\n }\n }\n zoom = 20;\n if (publicAddress) {\n lat = 32.7992978;\n lng = -116.9707691;\n zoom = 10;\n }\n } else {\n lat = 32.7992978;\n lng = -116.9707691;\n zoom = 10;\n }\n let myLatLng = {\n lat: lat,\n lng: lng\n };\n let mapOptions = {center: myLatLng, scrollwheel: true, zoom: zoom, styles: [{'featureType': 'all', 'elementType': 'labels.text.fill', 'stylers': [{'saturation': 36}, {'color': '#333333'}, {'lightness': 40}]}, {'featureType': 'all', 'elementType': 'labels.text.stroke', 'stylers': [{'visibility': 'on'}, {'color': '#ffffff'}, {'lightness': 16}]}, {'featureType': 'all', 'elementType': 'labels.icon', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'administrative', 'elementType': 'geometry.fill', 'stylers': [{'color': '#fefefe'}, {'lightness': 20}]}, {'featureType': 'administrative', 'elementType': 'geometry.stroke', 'stylers': [{'color': '#fefefe'}, {'lightness': 17}, {'weight': 1.2}]}, {'featureType': 'administrative', 'elementType': 'labels', 'stylers': [{'visibility': 'simplified'}]}, {'featureType': 'administrative.country', 'elementType': 'labels', 'stylers': [{'visibility': 'simplified'}]}, {'featureType': 'administrative.province', 'elementType': 'labels', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'administrative.locality', 'elementType': 'labels', 'stylers': [{'visibility': 'simplified'}, {'lightness': '36'}]}, {'featureType': 'administrative.neighborhood', 'elementType': 'labels', 'stylers': [{'visibility': 'simplified'}]}, {'featureType': 'administrative.land_parcel', 'elementType': 'labels', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'landscape', 'elementType': 'geometry', 'stylers': [{'color': '#f5f5f5'}, {'lightness': 20}]}, {'featureType': 'landscape', 'elementType': 'geometry.fill', 'stylers': [{'color': '#dbf0ef'}]}, {'featureType': 'poi', 'elementType': 'all', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'poi', 'elementType': 'geometry', 'stylers': [{'color': '#f5f5f5'}, {'lightness': 21}]}, {'featureType': 'poi.park', 'elementType': 'geometry', 'stylers': [{'color': '#dedede'}, {'lightness': 21}]}, {'featureType': 'road', 'elementType': 'labels', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'road.highway', 'elementType': 'geometry.fill', 'stylers': [{'color': '#ffffff'}, {'lightness': 17}]}, {'featureType': 'road.highway', 'elementType': 'geometry.stroke', 'stylers': [{'color': '#ffffff'}, {'lightness': 29}, {'weight': 0.2}]}, {'featureType': 'road.highway', 'elementType': 'labels', 'stylers': [{'visibility': 'on'}]}, {'featureType': 'road.highway.controlled_access', 'elementType': 'labels', 'stylers': [{'visibility': 'simplified'}]}, {'featureType': 'road.highway.controlled_access', 'elementType': 'labels.icon', 'stylers': [{'visibility': 'simplified'}]}, {'featureType': 'road.arterial', 'elementType': 'all', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'road.arterial', 'elementType': 'geometry', 'stylers': [{'color': '#ffffff'}, {'lightness': 18}]}, {'featureType': 'road.local', 'elementType': 'geometry', 'stylers': [{'color': '#ffffff'}, {'lightness': 16}]}, {'featureType': 'transit', 'elementType': 'all', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'transit', 'elementType': 'geometry', 'stylers': [{'color': '#f2f2f2'}, {'lightness': 19}]}, {'featureType': 'water', 'elementType': 'geometry', 'stylers': [{'color': '#ffffff'}, {'lightness': 17}]}, {'featureType': 'water', 'elementType': 'geometry.fill', 'stylers': [{'color': '#ffffff'}]}, {'featureType': 'water', 'elementType': 'labels', 'stylers': [{'visibility': 'off'}]}, {'featureType': 'water', 'elementType': 'labels.text.fill', 'stylers': [{'lightness': '-12'}]}]};\n // Create a map object and specify the DOM element for display.\n if (typeof this.map === 'undefined') {\n this.map = new google.maps.Map(document.getElementById('googleMap'), mapOptions);\n this.markers = {};\n this.infoWindow = new google.maps.InfoWindow();\n this.bounds = new google.maps.LatLngBounds();\n this.locations = {};\n this.markersGroup = [];\n } else {\n this.mapClearMakers();\n }\n\n if (data.results !== null) {\n //Adds the marker\n for (i = 0; i < data.results.length; i += 1) {\n //If it is the ad entry ignore it or make if it is not a public address\n if (data.results[i].ad || !data.results[i].publicAddress) {\n continue;\n }\n\n this.mapAddMakers(data.results[i]);\n }\n\n //Reset icons active state when closing infoWindow\n google.maps.event.addListener(this.infoWindow, 'closeclick', function () {\n let origOptions,\n markersGroup = that.markersGroup;\n for (i = 0; i < markersGroup.length; i++) {\n origOptions = markersGroup[i].getIcon();\n origOptions.fillColor = '#EE5D21';\n origOptions.strokeColor = '#EE5D21';\n markersGroup[i].setIcon(origOptions);\n }\n });\n }\n }\n\n mapAddMakers(place) {\n let that = this,\n marker,\n newLat,\n newLong;\n\n //Generate new marker offset to eliminate overlapping markers.\n newLat = place.coordinate.latitude + (Math.random() - .5) / 1500;\n newLong = place.coordinate.longitude + (Math.random() - .5) / 1500;\n\n // Create a marker and set its position.\n marker = new MarkerWithLabel({\n map: that.map,\n position: {lat: newLat, lng: newLong},\n animation: google.maps.Animation.DROP,\n labelContent: place.displayId,\n labelClass: 'filters__label',\n labelAnchor: new google.maps.Point(15, 52),\n labelInBackground: false,\n icon: {\n path: 'M 0,0 C -2,-20 -10,-22 -10,-30 A 10,10 0 1,1 10,-30 C 10,-22 2,-20 0,0 z',\n fillColor: '#EE5D21',\n fillOpacity: 1,\n strokeColor: '#EE5D21',\n strokeWeight: 2,\n scale: 1.5\n }\n });\n\n //Renders the popup content\n this.mapRenderPopUp(marker, place);\n\n this.markers[place.id] = marker;\n\n //Pushes the lat and lng to find boundaries to center the markers\n this.locations = new google.maps.LatLng(marker.position.lat(), marker.position.lng());\n this.bounds.extend(this.locations);\n\n //Marker click event opens up infor window.\n google.maps.event.addListener(marker, 'click', function () {\n let activeOptions,\n origOptions,\n markersGroup = that.markersGroup,\n i;\n //Resets all icons to original states\n for (i = 0; i < markersGroup.length; i++) {\n origOptions = markersGroup[i].getIcon();\n origOptions.fillColor = '#EE5D21';\n origOptions.strokeColor = '#EE5D21';\n markersGroup[i].setIcon(origOptions);\n }\n //Checks the clicked icon and change active states\n activeOptions = marker.getIcon();\n activeOptions.fillColor = '#aebebc';\n activeOptions.strokeColor = '#aebebc';\n marker.setIcon(activeOptions);\n that.infoWindow.setContent(marker.info_window_content);\n that.infoWindow.open(that.map, this);\n });\n this.markersGroup.push(marker);\n\n //Center the markers\n this.map.fitBounds(this.bounds);\n this.map.panToBounds(this.bounds);\n }\n\n mapRenderPopUp(marker, place) {\n //Piecing the content together for the popup modal\n marker.info_window_content = '
';\n\n if (typeof place.thumbnailImage !== 'undefined') {\n marker.info_window_content += '';\n marker.info_window_content += `\"\"`;\n if (place.featured) {\n marker.info_window_content += 'Featured';\n }\n marker.info_window_content += '';\n }\n\n marker.info_window_content += '
';\n\n if (typeof place.tag !== 'undefined') {\n marker.info_window_content += `
${place.tag}
`;\n }\n\n if (typeof place.title !== 'undefined') {\n marker.info_window_content += `${place.title}`;\n }\n\n if (typeof place.price !== 'undefined') {\n marker.info_window_content += `
${place.price}
`;\n }\n\n if (typeof place.addressLine1 !== 'undefined') {\n marker.info_window_content += `
${place.addressLine1}`;\n if (typeof place.addressLine2 !== 'undefined') {\n marker.info_window_content += `
${place.addressLine2}`;\n }\n marker.info_window_content += '
';\n }\n\n if (typeof place.region !== 'undefined') {\n marker.info_window_content += `
${place.region}
`;\n }\n\n if (place.dates) {\n marker.info_window_content += `
${place.dates}
`;\n }\n\n if (typeof place.linkText !== 'undefined') {\n marker.info_window_content += `${place.linkText}`;\n }\n\n marker.info_window_content += '
';\n }\n\n mapClearMakers() {\n $.each(this.markers, function () {\n this.setMap(null);\n });\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/filter.js\n **/","export default function (adSlot, refresh) {\n googletag.cmd.push(function ()\t{\n googletag.display(`div-gpt-ad-display-${adSlot}`);\n if (refresh) {\n googletag.pubads().refresh(`div-gpt-ad-display-${adSlot}`);\n }\n });\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/ads.js\n **/","export default {\n init() {\n let teaser = $('.teaser');\n teaser.on('mouseover', function () {\n $(this).find('.teaser__content').addClass('active');\n });\n teaser.on('mouseleave', function () {\n $(this).find('.teaser__content').removeClass('active');\n });\n teaser.on('click', function (event) {\n let $this = $(this);\n if (event.target.tagName.toLowerCase() !== 'a' && !$this.hasClass('featured-ad') && !$this.hasClass('overlay-link')) {\n if ($this.data('target') === 'external') {\n window.open($this.data('href'), '_blank');\n } else {\n window.location.href = $this.data('href');\n }\n return false;\n }\n });\n }\n};\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/teaser.js\n **/","import api from './api';\nimport googleAd from './ads';\n\nexport default class {\n constructor() {\n this.gallery = $('.gallery__wrapper');\n this.overlayContainer = $('.gallery__overlay');\n this.overlayContent = $('.gallery__overlay-content');\n this.isLoaded = false;\n this.loadPage(photoGallery, '', 'GET');\n }\n\n loadPage(url, formData, action) {\n let requesting = api(url, formData, action);\n requesting.then((data) => {\n let results;\n results = SDTA.templates['app/handlebars/photo-gallery.hbs'](data);\n $('.gallery__wrapper').html(results);\n this.carousel();\n this.ajaxData = data;\n }).catch((error) => {\n console.log('Error ------------');\n console.log(error);\n });\n }\n\n carousel(length) {\n //Ads to render\n this.gallery.on('init', function (event, slick) {\n $('.slick-active').find('.gallery__entry--ad').each(function () {\n googleAd($(this).data('adid'));\n });\n });\n\n // slider\n this.gallery.slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n arrows: false,\n dots: true,\n slidesPerRow: 3,\n rows: 2,\n infinite: false,\n });\n\n this.hoverCarousel();\n this.bindUI();\n }\n\n hoverCarousel() {\n $('.gallery__entry').on('mouseover', function () {\n $(this).addClass('is-active');\n }).on('mouseleave', function () {\n $(this).removeClass('is-active');\n });\n }\n\n bindUI() {\n let that = this;\n\n $('.gallery__entry').on('click', function (evt) {\n evt.preventDefault();\n that.overlayInfo(that.ajaxData, this.getAttribute('data-id'));\n });\n\n this.overlayContainer.on('click', '.overlay-close', function () {\n that.closeOverlay();\n });\n\n this.overlayContainer.on('click', '.slick-next', function () {\n let currentSlide = $('.gallery__content.slick-active').data('slidenumber');\n if ((currentSlide - 1) % 6 === 0) {\n that.gallery.slick('slickNext');\n }\n });\n\n this.overlayContainer.on('click', '.slick-prev', function () {\n let currentSlide = $('.gallery__content.slick-active').data('slidenumber');\n if (currentSlide % 6 === 0) {\n that.gallery.slick('slickPrev');\n }\n });\n }\n\n overlayInfo(data, id) {\n if (!this.isLoaded) {\n //Render the data\n const results = SDTA.templates['app/handlebars/photo-gallery-overlay.hbs'](data.entry);\n this.overlayContent.html(results);\n }\n\n this.overlayCarousel(id);\n this.isLoaded = true;\n }\n\n openOverlay() {\n this.overlaySlick.find('.slick-list').height('auto');\n this.overlayContainer.addClass('is-active');\n document.body.classList.add('no-scroll');\n }\n\n closeOverlay() {\n document.body.classList.remove('no-scroll');\n this.overlaySlick.slick('unslick');\n }\n\n overlayCarousel(id) {\n //Init the slideshow\n this.overlaySlick = this.overlayContent.slick({\n slidesToShow: 1,\n slidesToScroll: 1,\n arrows: true,\n dots: false,\n adaptiveHeight: true,\n infinite: false,\n initialSlide: parseInt(id, 10) - 1,\n prevArrow: $('.slick-prev'),\n nextArrow: $('.slick-next'),\n centerMode: true,\n centerPadding: '60px',\n });\n\n //Stops the video before switching the next slide\n this.overlaySlick.on('beforeChange', function (event, slick, currentSlide, nextSlide) {\n let videoSrc,\n videoEmbed = $('.slick-current .video__iframe');\n //If there is video in overlay stop video if it is playing\n //copy the src and replace it to \"\" then put it back.\n videoSrc = videoEmbed.attr('src');\n videoEmbed.attr('src', '');\n videoEmbed.attr('src', videoSrc);\n });\n this.openOverlay();\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/photo-gallery.js\n **/","import general from './general';\n\nexport default class {\n constructor() {\n this.bindUI();\n }\n\n bindUI() {\n $('.meet-the-team__nav-btn').on('click', function () {\n let $this = $(this),\n id = $this.data('id'),\n teamSection = $(`#${id}`);\n\n general.toggleActiveState($this, $('.meet-the-team__nav-btn'));\n\n if (id === 'all') {\n $('.team:nth-of-type(2n)').addClass('even');\n $this.addClass('is-active');\n $('.team').addClass('is-active');\n return false;\n }\n\n $('.team').removeClass('is-active').removeClass('even');\n\n teamSection.addClass('is-active');\n });\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/meet-the-team.js\n **/","import api from './api';\nimport validate from '../../../node_modules/validate.js/validate.js';\n\nvalidate.validators.telephone = (value, options, key, attributes) => {\n return (/^\\d{3}-\\d{3}-\\d{4}$/.test(value)) ? null : ['The telephone number should be formatted as xxx-xxx-xxxx'];\n};\n\nvalidate.validators.zipcode = (value, options, key, attributes) => {\n return (/^[0-9]{5}(?:-[0-9]{4})?$/.test(value)) ? null : ['Please enter a valid zip code'];\n};\n\nexport default class {\n constructor(el) {\n this.form = (el instanceof HTMLElement) ? el : document.querySelector(el);\n this.formMessage = this.form.querySelector('.form__message');\n this.actionsContainer = this.form.querySelector('.form__actions');\n this.width = this.actionsContainer.offsetWidth;\n this.formMessage.style.marginLeft = `${this.width}px`;\n this.bindUI();\n this.constraints = {\n select: {\n presence: {\n message: 'Please select an option'\n }\n },\n file: {\n presence: {\n message: 'Please choose a file to upload'\n }\n },\n textarea: {\n presence: {\n message: 'This field cannot be blank'\n }\n },\n text: {\n presence: {\n message: 'This field cannot be blank'\n }\n },\n email: {\n presence: {\n message: 'This field cannot be blank'\n },\n email: {\n message: 'Please enter a valid email address'\n }\n },\n tel: {\n telephone: true\n },\n zipcode: {\n zipcode: true\n },\n number: {\n presence: {\n message: 'This field cannot be blank'\n },\n numericality: {\n message: 'Only numbers are allowed'\n },\n },\n };\n }\n\n bindUI() {\n const that = this;\n // bind form\n this.form.addEventListener('submit', function (evt) {\n evt.preventDefault();\n that.submitForm(this);\n });\n $(this.form).find('select').niceSelect();\n // setup date pickers\n const datePickers = document.querySelectorAll('.form-ctrl__date');\n for (let i = 0; i < datePickers.length; i += 1) {\n // eslint-disable-next-line no-new\n new Pikaday({\n field: datePickers[i],\n format: 'MM / DD / YYYY',\n });\n }\n // setup file upload controls\n const fileUploads = document.querySelectorAll('.form-ctrl__upload');\n for (let i = 0; i < fileUploads.length; i += 1) {\n let label = fileUploads[i].nextElementSibling;\n let value = label.innerHTML;\n fileUploads[i].addEventListener('change', function (evt) {\n let filename = evt.target.value.split('\\\\').pop();\n label.innerHTML = (filename) ? filename : value;\n document.querySelector(`#${this.name}-${this.id}`).value = filename;\n });\n }\n }\n\n enable(form) {\n let submitBtn = form.querySelector('[type=\"submit\"]');\n submitBtn.disabled = false;\n }\n\n disable(form) {\n let submitBtn = form.querySelector('[type=\"submit\"]');\n submitBtn.disabled = true;\n }\n\n clearError(input) {\n let parent = input.parentNode;\n let error = parent.querySelector('.form-ctrl__error');\n parent.classList.remove('form-ctrl--error');\n error.innerHTML = '';\n }\n\n showError(input, message) {\n let parent = input.parentNode;\n let error = parent.querySelector('.form-ctrl__error');\n parent.classList.add('form-ctrl--error');\n error.innerHTML = message;\n }\n\n checkRadioCheckbox(form) {\n const requiredGroups = form.querySelectorAll('[data-required-checkbox], [data-required-radio]');\n let isValid = true;\n if (requiredGroups) {\n for (let i = 0; i < requiredGroups.length; i += 1) {\n const inputs = requiredGroups[i].querySelectorAll('input');\n let selectedCount = 0;\n const errorMsg = (inputs.length > 1) ? 'Please make at least one selection' : 'This checkbox is required';\n for (let j = 0; j < inputs.length; j += 1) {\n if (inputs[j].checked) {\n selectedCount++;\n }\n }\n if (selectedCount === 0) {\n this.showError(inputs[0].parentNode, errorMsg);\n isValid = false;\n } else {\n this.clearError(inputs[0].parentNode);\n }\n }\n }\n return isValid;\n }\n\n validateForm(form) {\n let isValid = true;\n // check radio buttons and checkboxes\n isValid = this.checkRadioCheckbox(form);\n // check input files that are not checkbox or radio buttons\n const inputs = form.querySelectorAll('input[data-required], input[data-validate-as], textarea');\n for (let i = 0; i < inputs.length; i += 1) {\n const input = inputs[i];\n let valid = '';\n const type = (input.dataset.validateAs) ? input.dataset.validateAs : input.type;\n // if (input.dataset.required !== 'undefined') {\n // valid = (input.value !== '');\n // if (valid) {\n // this.clearError(input);\n // } else {\n // this.showError(input, 'This field cannot be blank');\n // isValid = false;\n // }\n // continue;\n // }\n if (type in this.constraints && (input.hasAttribute('data-validate') || input.hasAttribute('data-required'))) {\n // only validate a field if it's type matches a rule in the validation constraints object\n valid = validate.single(input.value, this.constraints[type]);\n if (typeof valid !== 'undefined') {\n this.showError(input, valid[0]);\n isValid = false;\n } else {\n this.clearError(input);\n }\n }\n }\n // check select elements\n const selects = form.querySelectorAll('select[data-required]');\n for (let i = 0; i < selects.length; i += 1) {\n let valid = '';\n valid = validate.single(selects[i].value, this.constraints.select);\n if (typeof valid !== 'undefined') {\n this.showError(selects[i], valid[0]);\n isValid = false;\n } else {\n this.clearError(selects[i]);\n }\n }\n return isValid;\n }\n\n handleServerErrors(response) {\n response['form-element-errors'].forEach((value) => {\n this.showError(document.querySelector(`#i-${value.Key}`), value.Value);\n });\n }\n\n submitForm(form) {\n const url = form.action;\n const isValid = this.validateForm(form);\n // if there is an error don't submit and scroll to the first field with an error\n const heightOffset = document.querySelector('header').offsetHeight + 15;\n if (!isValid) {\n const $_firstError = $('.form-ctrl--error').filter(':first');\n $('html, body').animate({\n scrollTop: `${($_firstError.offset().top - heightOffset)}px`,\n }, {\n duration: 500,\n });\n return false;\n }\n const formData = new FormData(form);\n // let data = $(form).serialize();\n form.classList.add('form--submitting');\n this.disable(form);\n let submitting = api(url, formData, form.method, 'json', true);\n submitting.then((response) => {\n if (response.code === 200) {\n this.formMessage.innerHTML = response.message;\n this.actionsContainer.style.transform = `translateX(-${this.width}px)`;\n this.formMessage.style.transform = `translateX(-${this.width}px)`;\n form.classList.add('form--complete');\n $('html, body').animate({\n scrollTop: `${($('.form__footer').offset().top - heightOffset)}px`,\n }, {\n duration: 500,\n });\n } else {\n this.handleServerErrors(response);\n }\n }).catch((error) => {\n console.error(error);\n }).finally(() => {\n form.classList.remove('form--submitting');\n this.enable(form);\n });\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./app/scripts/components/forms.js\n **/","/*!\n * validate.js 0.10.0\n *\n * (c) 2013-2016 Nicklas Ansman, 2013 Wrapp\n * Validate.js may be freely distributed under the MIT license.\n * For all details and documentation:\n * http://validatejs.org/\n */\n\n(function(exports, module, define) {\n \"use strict\";\n\n // The main function that calls the validators specified by the constraints.\n // The options are the following:\n // - format (string) - An option that controls how the returned value is formatted\n // * flat - Returns a flat array of just the error messages\n // * grouped - Returns the messages grouped by attribute (default)\n // * detailed - Returns an array of the raw validation data\n // - fullMessages (boolean) - If `true` (default) the attribute name is prepended to the error.\n //\n // Please note that the options are also passed to each validator.\n var validate = function(attributes, constraints, options) {\n options = v.extend({}, v.options, options);\n\n var results = v.runValidations(attributes, constraints, options)\n , attr\n , validator;\n\n for (attr in results) {\n for (validator in results[attr]) {\n if (v.isPromise(results[attr][validator])) {\n throw new Error(\"Use validate.async if you want support for promises\");\n }\n }\n }\n return validate.processValidationResults(results, options);\n };\n\n var v = validate;\n\n // Copies over attributes from one or more sources to a single destination.\n // Very much similar to underscore's extend.\n // The first argument is the target object and the remaining arguments will be\n // used as sources.\n v.extend = function(obj) {\n [].slice.call(arguments, 1).forEach(function(source) {\n for (var attr in source) {\n obj[attr] = source[attr];\n }\n });\n return obj;\n };\n\n v.extend(validate, {\n // This is the version of the library as a semver.\n // The toString function will allow it to be coerced into a string\n version: {\n major: 0,\n minor: 10,\n patch: 0,\n metadata: null,\n toString: function() {\n var version = v.format(\"%{major}.%{minor}.%{patch}\", v.version);\n if (!v.isEmpty(v.version.metadata)) {\n version += \"+\" + v.version.metadata;\n }\n return version;\n }\n },\n\n // Below is the dependencies that are used in validate.js\n\n // The constructor of the Promise implementation.\n // If you are using Q.js, RSVP or any other A+ compatible implementation\n // override this attribute to be the constructor of that promise.\n // Since jQuery promises aren't A+ compatible they won't work.\n Promise: typeof Promise !== \"undefined\" ? Promise : /* istanbul ignore next */ null,\n\n EMPTY_STRING_REGEXP: /^\\s*$/,\n\n // Runs the validators specified by the constraints object.\n // Will return an array of the format:\n // [{attribute: \"\", error: \"\"}, ...]\n runValidations: function(attributes, constraints, options) {\n var results = []\n , attr\n , validatorName\n , value\n , validators\n , validator\n , validatorOptions\n , error;\n\n if (v.isDomElement(attributes) || v.isJqueryElement(attributes)) {\n attributes = v.collectFormValues(attributes);\n }\n\n // Loops through each constraints, finds the correct validator and run it.\n for (attr in constraints) {\n value = v.getDeepObjectValue(attributes, attr);\n // This allows the constraints for an attribute to be a function.\n // The function will be called with the value, attribute name, the complete dict of\n // attributes as well as the options and constraints passed in.\n // This is useful when you want to have different\n // validations depending on the attribute value.\n validators = v.result(constraints[attr], value, attributes, attr, options, constraints);\n\n for (validatorName in validators) {\n validator = v.validators[validatorName];\n\n if (!validator) {\n error = v.format(\"Unknown validator %{name}\", {name: validatorName});\n throw new Error(error);\n }\n\n validatorOptions = validators[validatorName];\n // This allows the options to be a function. The function will be\n // called with the value, attribute name, the complete dict of\n // attributes as well as the options and constraints passed in.\n // This is useful when you want to have different\n // validations depending on the attribute value.\n validatorOptions = v.result(validatorOptions, value, attributes, attr, options, constraints);\n if (!validatorOptions) {\n continue;\n }\n results.push({\n attribute: attr,\n value: value,\n validator: validatorName,\n globalOptions: options,\n attributes: attributes,\n options: validatorOptions,\n error: validator.call(validator,\n value,\n validatorOptions,\n attr,\n attributes,\n options)\n });\n }\n }\n\n return results;\n },\n\n // Takes the output from runValidations and converts it to the correct\n // output format.\n processValidationResults: function(errors, options) {\n var attr;\n\n errors = v.pruneEmptyErrors(errors, options);\n errors = v.expandMultipleErrors(errors, options);\n errors = v.convertErrorMessages(errors, options);\n\n switch (options.format || \"grouped\") {\n case \"detailed\":\n // Do nothing more to the errors\n break;\n\n case \"flat\":\n errors = v.flattenErrorsToArray(errors);\n break;\n\n case \"grouped\":\n errors = v.groupErrorsByAttribute(errors);\n for (attr in errors) {\n errors[attr] = v.flattenErrorsToArray(errors[attr]);\n }\n break;\n\n default:\n throw new Error(v.format(\"Unknown format %{format}\", options));\n }\n\n return v.isEmpty(errors) ? undefined : errors;\n },\n\n // Runs the validations with support for promises.\n // This function will return a promise that is settled when all the\n // validation promises have been completed.\n // It can be called even if no validations returned a promise.\n async: function(attributes, constraints, options) {\n options = v.extend({}, v.async.options, options);\n\n var WrapErrors = options.wrapErrors || function(errors) {\n return errors;\n };\n\n // Removes unknown attributes\n if (options.cleanAttributes !== false) {\n attributes = v.cleanAttributes(attributes, constraints);\n }\n\n var results = v.runValidations(attributes, constraints, options);\n\n return new v.Promise(function(resolve, reject) {\n v.waitForResults(results).then(function() {\n var errors = v.processValidationResults(results, options);\n if (errors) {\n reject(new WrapErrors(errors, options, attributes, constraints));\n } else {\n resolve(attributes);\n }\n }, function(err) {\n reject(err);\n });\n });\n },\n\n single: function(value, constraints, options) {\n options = v.extend({}, v.single.options, options, {\n format: \"flat\",\n fullMessages: false\n });\n return v({single: value}, {single: constraints}, options);\n },\n\n // Returns a promise that is resolved when all promises in the results array\n // are settled. The promise returned from this function is always resolved,\n // never rejected.\n // This function modifies the input argument, it replaces the promises\n // with the value returned from the promise.\n waitForResults: function(results) {\n // Create a sequence of all the results starting with a resolved promise.\n return results.reduce(function(memo, result) {\n // If this result isn't a promise skip it in the sequence.\n if (!v.isPromise(result.error)) {\n return memo;\n }\n\n return memo.then(function() {\n return result.error.then(\n function(error) {\n result.error = error || null;\n },\n function(error) {\n if (error instanceof Error) {\n throw error;\n }\n v.error(\"Rejecting promises with the result is deprecated. Please use the resolve callback instead.\");\n result.error = error;\n }\n );\n });\n }, new v.Promise(function(r) { r(); })); // A resolved promise\n },\n\n // If the given argument is a call: function the and: function return the value\n // otherwise just return the value. Additional arguments will be passed as\n // arguments to the function.\n // Example:\n // ```\n // result('foo') // 'foo'\n // result(Math.max, 1, 2) // 2\n // ```\n result: function(value) {\n var args = [].slice.call(arguments, 1);\n if (typeof value === 'function') {\n value = value.apply(null, args);\n }\n return value;\n },\n\n // Checks if the value is a number. This function does not consider NaN a\n // number like many other `isNumber` functions do.\n isNumber: function(value) {\n return typeof value === 'number' && !isNaN(value);\n },\n\n // Returns false if the object is not a function\n isFunction: function(value) {\n return typeof value === 'function';\n },\n\n // A simple check to verify that the value is an integer. Uses `isNumber`\n // and a simple modulo check.\n isInteger: function(value) {\n return v.isNumber(value) && value % 1 === 0;\n },\n\n // Checks if the value is a boolean\n isBoolean: function(value) {\n return typeof value === 'boolean';\n },\n\n // Uses the `Object` function to check if the given argument is an object.\n isObject: function(obj) {\n return obj === Object(obj);\n },\n\n // Simply checks if the object is an instance of a date\n isDate: function(obj) {\n return obj instanceof Date;\n },\n\n // Returns false if the object is `null` of `undefined`\n isDefined: function(obj) {\n return obj !== null && obj !== undefined;\n },\n\n // Checks if the given argument is a promise. Anything with a `then`\n // function is considered a promise.\n isPromise: function(p) {\n return !!p && v.isFunction(p.then);\n },\n\n isJqueryElement: function(o) {\n return o && v.isString(o.jquery);\n },\n\n isDomElement: function(o) {\n if (!o) {\n return false;\n }\n\n if (!o.querySelectorAll || !o.querySelector) {\n return false;\n }\n\n if (v.isObject(document) && o === document) {\n return true;\n }\n\n // http://stackoverflow.com/a/384380/699304\n /* istanbul ignore else */\n if (typeof HTMLElement === \"object\") {\n return o instanceof HTMLElement;\n } else {\n return o &&\n typeof o === \"object\" &&\n o !== null &&\n o.nodeType === 1 &&\n typeof o.nodeName === \"string\";\n }\n },\n\n isEmpty: function(value) {\n var attr;\n\n // Null and undefined are empty\n if (!v.isDefined(value)) {\n return true;\n }\n\n // functions are non empty\n if (v.isFunction(value)) {\n return false;\n }\n\n // Whitespace only strings are empty\n if (v.isString(value)) {\n return v.EMPTY_STRING_REGEXP.test(value);\n }\n\n // For arrays we use the length property\n if (v.isArray(value)) {\n return value.length === 0;\n }\n\n // Dates have no attributes but aren't empty\n if (v.isDate(value)) {\n return false;\n }\n\n // If we find at least one property we consider it non empty\n if (v.isObject(value)) {\n for (attr in value) {\n return false;\n }\n return true;\n }\n\n return false;\n },\n\n // Formats the specified strings with the given values like so:\n // ```\n // format(\"Foo: %{foo}\", {foo: \"bar\"}) // \"Foo bar\"\n // ```\n // If you want to write %{...} without having it replaced simply\n // prefix it with % like this `Foo: %%{foo}` and it will be returned\n // as `\"Foo: %{foo}\"`\n format: v.extend(function(str, vals) {\n if (!v.isString(str)) {\n return str;\n }\n return str.replace(v.format.FORMAT_REGEXP, function(m0, m1, m2) {\n if (m1 === '%') {\n return \"%{\" + m2 + \"}\";\n } else {\n return String(vals[m2]);\n }\n });\n }, {\n // Finds %{key} style patterns in the given string\n FORMAT_REGEXP: /(%?)%\\{([^\\}]+)\\}/g\n }),\n\n // \"Prettifies\" the given string.\n // Prettifying means replacing [.\\_-] with spaces as well as splitting\n // camel case words.\n prettify: function(str) {\n if (v.isNumber(str)) {\n // If there are more than 2 decimals round it to two\n if ((str * 100) % 1 === 0) {\n return \"\" + str;\n } else {\n return parseFloat(Math.round(str * 100) / 100).toFixed(2);\n }\n }\n\n if (v.isArray(str)) {\n return str.map(function(s) { return v.prettify(s); }).join(\", \");\n }\n\n if (v.isObject(str)) {\n return str.toString();\n }\n\n // Ensure the string is actually a string\n str = \"\" + str;\n\n return str\n // Splits keys separated by periods\n .replace(/([^\\s])\\.([^\\s])/g, '$1 $2')\n // Removes backslashes\n .replace(/\\\\+/g, '')\n // Replaces - and - with space\n .replace(/[_-]/g, ' ')\n // Splits camel cased words\n .replace(/([a-z])([A-Z])/g, function(m0, m1, m2) {\n return \"\" + m1 + \" \" + m2.toLowerCase();\n })\n .toLowerCase();\n },\n\n stringifyValue: function(value) {\n return v.prettify(value);\n },\n\n isString: function(value) {\n return typeof value === 'string';\n },\n\n isArray: function(value) {\n return {}.toString.call(value) === '[object Array]';\n },\n\n // Checks if the object is a hash, which is equivalent to an object that\n // is neither an array nor a function.\n isHash: function(value) {\n return v.isObject(value) && !v.isArray(value) && !v.isFunction(value);\n },\n\n contains: function(obj, value) {\n if (!v.isDefined(obj)) {\n return false;\n }\n if (v.isArray(obj)) {\n return obj.indexOf(value) !== -1;\n }\n return value in obj;\n },\n\n unique: function(array) {\n if (!v.isArray(array)) {\n return array;\n }\n return array.filter(function(el, index, array) {\n return array.indexOf(el) == index;\n });\n },\n\n forEachKeyInKeypath: function(object, keypath, callback) {\n if (!v.isString(keypath)) {\n return undefined;\n }\n\n var key = \"\"\n , i\n , escape = false;\n\n for (i = 0; i < keypath.length; ++i) {\n switch (keypath[i]) {\n case '.':\n if (escape) {\n escape = false;\n key += '.';\n } else {\n object = callback(object, key, false);\n key = \"\";\n }\n break;\n\n case '\\\\':\n if (escape) {\n escape = false;\n key += '\\\\';\n } else {\n escape = true;\n }\n break;\n\n default:\n escape = false;\n key += keypath[i];\n break;\n }\n }\n\n return callback(object, key, true);\n },\n\n getDeepObjectValue: function(obj, keypath) {\n if (!v.isObject(obj)) {\n return undefined;\n }\n\n return v.forEachKeyInKeypath(obj, keypath, function(obj, key) {\n if (v.isObject(obj)) {\n return obj[key];\n }\n });\n },\n\n // This returns an object with all the values of the form.\n // It uses the input name as key and the value as value\n // So for example this:\n // \n // would return:\n // {email: \"foo@bar.com\"}\n collectFormValues: function(form, options) {\n var values = {}\n , i\n , input\n , inputs\n , value;\n\n if (v.isJqueryElement(form)) {\n form = form[0];\n }\n\n if (!form) {\n return values;\n }\n\n options = options || {};\n\n inputs = form.querySelectorAll(\"input[name], textarea[name]\");\n for (i = 0; i < inputs.length; ++i) {\n input = inputs.item(i);\n\n if (v.isDefined(input.getAttribute(\"data-ignored\"))) {\n continue;\n }\n\n value = v.sanitizeFormValue(input.value, options);\n if (input.type === \"number\") {\n value = value ? +value : null;\n } else if (input.type === \"checkbox\") {\n if (input.attributes.value) {\n if (!input.checked) {\n value = values[input.name] || null;\n }\n } else {\n value = input.checked;\n }\n } else if (input.type === \"radio\") {\n if (!input.checked) {\n value = values[input.name] || null;\n }\n }\n values[input.name] = value;\n }\n\n inputs = form.querySelectorAll(\"select[name]\");\n for (i = 0; i < inputs.length; ++i) {\n input = inputs.item(i);\n value = v.sanitizeFormValue(input.options[input.selectedIndex].value, options);\n values[input.name] = value;\n }\n\n return values;\n },\n\n sanitizeFormValue: function(value, options) {\n if (options.trim && v.isString(value)) {\n value = value.trim();\n }\n\n if (options.nullify !== false && value === \"\") {\n return null;\n }\n return value;\n },\n\n capitalize: function(str) {\n if (!v.isString(str)) {\n return str;\n }\n return str[0].toUpperCase() + str.slice(1);\n },\n\n // Remove all errors who's error attribute is empty (null or undefined)\n pruneEmptyErrors: function(errors) {\n return errors.filter(function(error) {\n return !v.isEmpty(error.error);\n });\n },\n\n // In\n // [{error: [\"err1\", \"err2\"], ...}]\n // Out\n // [{error: \"err1\", ...}, {error: \"err2\", ...}]\n //\n // All attributes in an error with multiple messages are duplicated\n // when expanding the errors.\n expandMultipleErrors: function(errors) {\n var ret = [];\n errors.forEach(function(error) {\n // Removes errors without a message\n if (v.isArray(error.error)) {\n error.error.forEach(function(msg) {\n ret.push(v.extend({}, error, {error: msg}));\n });\n } else {\n ret.push(error);\n }\n });\n return ret;\n },\n\n // Converts the error mesages by prepending the attribute name unless the\n // message is prefixed by ^\n convertErrorMessages: function(errors, options) {\n options = options || {};\n\n var ret = [];\n errors.forEach(function(errorInfo) {\n var error = v.result(errorInfo.error,\n errorInfo.value,\n errorInfo.attribute,\n errorInfo.options,\n errorInfo.attributes,\n errorInfo.globalOptions);\n\n if (!v.isString(error)) {\n ret.push(errorInfo);\n return;\n }\n\n if (error[0] === '^') {\n error = error.slice(1);\n } else if (options.fullMessages !== false) {\n error = v.capitalize(v.prettify(errorInfo.attribute)) + \" \" + error;\n }\n error = error.replace(/\\\\\\^/g, \"^\");\n error = v.format(error, {value: v.stringifyValue(errorInfo.value)});\n ret.push(v.extend({}, errorInfo, {error: error}));\n });\n return ret;\n },\n\n // In:\n // [{attribute: \"\", ...}]\n // Out:\n // {\"\": [{attribute: \"\", ...}]}\n groupErrorsByAttribute: function(errors) {\n var ret = {};\n errors.forEach(function(error) {\n var list = ret[error.attribute];\n if (list) {\n list.push(error);\n } else {\n ret[error.attribute] = [error];\n }\n });\n return ret;\n },\n\n // In:\n // [{error: \"\", ...}, {error: \"\", ...}]\n // Out:\n // [\"\", \"\"]\n flattenErrorsToArray: function(errors) {\n return errors.map(function(error) { return error.error; });\n },\n\n cleanAttributes: function(attributes, whitelist) {\n function whitelistCreator(obj, key, last) {\n if (v.isObject(obj[key])) {\n return obj[key];\n }\n return (obj[key] = last ? true : {});\n }\n\n function buildObjectWhitelist(whitelist) {\n var ow = {}\n , lastObject\n , attr;\n for (attr in whitelist) {\n if (!whitelist[attr]) {\n continue;\n }\n v.forEachKeyInKeypath(ow, attr, whitelistCreator);\n }\n return ow;\n }\n\n function cleanRecursive(attributes, whitelist) {\n if (!v.isObject(attributes)) {\n return attributes;\n }\n\n var ret = v.extend({}, attributes)\n , w\n , attribute;\n\n for (attribute in attributes) {\n w = whitelist[attribute];\n\n if (v.isObject(w)) {\n ret[attribute] = cleanRecursive(ret[attribute], w);\n } else if (!w) {\n delete ret[attribute];\n }\n }\n return ret;\n }\n\n if (!v.isObject(whitelist) || !v.isObject(attributes)) {\n return {};\n }\n\n whitelist = buildObjectWhitelist(whitelist);\n return cleanRecursive(attributes, whitelist);\n },\n\n exposeModule: function(validate, root, exports, module, define) {\n if (exports) {\n if (module && module.exports) {\n exports = module.exports = validate;\n }\n exports.validate = validate;\n } else {\n root.validate = validate;\n if (validate.isFunction(define) && define.amd) {\n define([], function () { return validate; });\n }\n }\n },\n\n warn: function(msg) {\n if (typeof console !== \"undefined\" && console.warn) {\n console.warn(\"[validate.js] \" + msg);\n }\n },\n\n error: function(msg) {\n if (typeof console !== \"undefined\" && console.error) {\n console.error(\"[validate.js] \" + msg);\n }\n }\n });\n\n validate.validators = {\n // Presence validates that the value isn't empty\n presence: function(value, options) {\n options = v.extend({}, this.options, options);\n if (v.isEmpty(value)) {\n return options.message || this.message || \"can't be blank\";\n }\n },\n length: function(value, options, attribute) {\n // Empty values are allowed\n if (v.isEmpty(value)) {\n return;\n }\n\n options = v.extend({}, this.options, options);\n\n var is = options.is\n , maximum = options.maximum\n , minimum = options.minimum\n , tokenizer = options.tokenizer || function(val) { return val; }\n , err\n , errors = [];\n\n value = tokenizer(value);\n var length = value.length;\n if(!v.isNumber(length)) {\n v.error(v.format(\"Attribute %{attr} has a non numeric value for `length`\", {attr: attribute}));\n return options.message || this.notValid || \"has an incorrect length\";\n }\n\n // Is checks\n if (v.isNumber(is) && length !== is) {\n err = options.wrongLength ||\n this.wrongLength ||\n \"is the wrong length (should be %{count} characters)\";\n errors.push(v.format(err, {count: is}));\n }\n\n if (v.isNumber(minimum) && length < minimum) {\n err = options.tooShort ||\n this.tooShort ||\n \"is too short (minimum is %{count} characters)\";\n errors.push(v.format(err, {count: minimum}));\n }\n\n if (v.isNumber(maximum) && length > maximum) {\n err = options.tooLong ||\n this.tooLong ||\n \"is too long (maximum is %{count} characters)\";\n errors.push(v.format(err, {count: maximum}));\n }\n\n if (errors.length > 0) {\n return options.message || errors;\n }\n },\n numericality: function(value, options) {\n // Empty values are fine\n if (v.isEmpty(value)) {\n return;\n }\n\n options = v.extend({}, this.options, options);\n\n var errors = []\n , name\n , count\n , checks = {\n greaterThan: function(v, c) { return v > c; },\n greaterThanOrEqualTo: function(v, c) { return v >= c; },\n equalTo: function(v, c) { return v === c; },\n lessThan: function(v, c) { return v < c; },\n lessThanOrEqualTo: function(v, c) { return v <= c; },\n divisibleBy: function(v, c) { return v % c === 0; }\n };\n\n // Strict will check that it is a valid looking number\n if (v.isString(value) && options.strict) {\n var pattern = \"^(0|[1-9]\\\\d*)\";\n if (!options.onlyInteger) {\n pattern += \"(\\\\.\\\\d+)?\";\n }\n pattern += \"$\";\n\n if (!(new RegExp(pattern).test(value))) {\n return options.message || options.notValid || this.notValid || \"must be a valid number\";\n }\n }\n\n // Coerce the value to a number unless we're being strict.\n if (options.noStrings !== true && v.isString(value)) {\n value = +value;\n }\n\n // If it's not a number we shouldn't continue since it will compare it.\n if (!v.isNumber(value)) {\n return options.message || options.notValid || this.notValid || \"is not a number\";\n }\n\n // Same logic as above, sort of. Don't bother with comparisons if this\n // doesn't pass.\n if (options.onlyInteger && !v.isInteger(value)) {\n return options.message || options.notInteger || this.notInteger || \"must be an integer\";\n }\n\n for (name in checks) {\n count = options[name];\n if (v.isNumber(count) && !checks[name](value, count)) {\n // This picks the default message if specified\n // For example the greaterThan check uses the message from\n // this.notGreaterThan so we capitalize the name and prepend \"not\"\n var key = \"not\" + v.capitalize(name);\n var msg = options[key] || this[key] || \"must be %{type} %{count}\";\n\n errors.push(v.format(msg, {\n count: count,\n type: v.prettify(name)\n }));\n }\n }\n\n if (options.odd && value % 2 !== 1) {\n errors.push(options.notOdd || this.notOdd || \"must be odd\");\n }\n if (options.even && value % 2 !== 0) {\n errors.push(options.notEven || this.notEven || \"must be even\");\n }\n\n if (errors.length) {\n return options.message || errors;\n }\n },\n datetime: v.extend(function(value, options) {\n if (!v.isFunction(this.parse) || !v.isFunction(this.format)) {\n throw new Error(\"Both the parse and format functions needs to be set to use the datetime/date validator\");\n }\n\n // Empty values are fine\n if (v.isEmpty(value)) {\n return;\n }\n\n options = v.extend({}, this.options, options);\n\n var err\n , errors = []\n , earliest = options.earliest ? this.parse(options.earliest, options) : NaN\n , latest = options.latest ? this.parse(options.latest, options) : NaN;\n\n value = this.parse(value, options);\n\n // 86400000 is the number of seconds in a day, this is used to remove\n // the time from the date\n if (isNaN(value) || options.dateOnly && value % 86400000 !== 0) {\n err = options.notValid ||\n options.message ||\n this.notValid ||\n \"must be a valid date\";\n return v.format(err, {value: arguments[0]});\n }\n\n if (!isNaN(earliest) && value < earliest) {\n err = options.tooEarly ||\n options.message ||\n this.tooEarly ||\n \"must be no earlier than %{date}\";\n err = v.format(err, {\n value: this.format(value, options),\n date: this.format(earliest, options)\n });\n errors.push(err);\n }\n\n if (!isNaN(latest) && value > latest) {\n err = options.tooLate ||\n options.message ||\n this.tooLate ||\n \"must be no later than %{date}\";\n err = v.format(err, {\n date: this.format(latest, options),\n value: this.format(value, options)\n });\n errors.push(err);\n }\n\n if (errors.length) {\n return v.unique(errors);\n }\n }, {\n parse: null,\n format: null\n }),\n date: function(value, options) {\n options = v.extend({}, options, {dateOnly: true});\n return v.validators.datetime.call(v.validators.datetime, value, options);\n },\n format: function(value, options) {\n if (v.isString(options) || (options instanceof RegExp)) {\n options = {pattern: options};\n }\n\n options = v.extend({}, this.options, options);\n\n var message = options.message || this.message || \"is invalid\"\n , pattern = options.pattern\n , match;\n\n // Empty values are allowed\n if (v.isEmpty(value)) {\n return;\n }\n if (!v.isString(value)) {\n return message;\n }\n\n if (v.isString(pattern)) {\n pattern = new RegExp(options.pattern, options.flags);\n }\n match = pattern.exec(value);\n if (!match || match[0].length != value.length) {\n return message;\n }\n },\n inclusion: function(value, options) {\n // Empty values are fine\n if (v.isEmpty(value)) {\n return;\n }\n if (v.isArray(options)) {\n options = {within: options};\n }\n options = v.extend({}, this.options, options);\n if (v.contains(options.within, value)) {\n return;\n }\n var message = options.message ||\n this.message ||\n \"^%{value} is not included in the list\";\n return v.format(message, {value: value});\n },\n exclusion: function(value, options) {\n // Empty values are fine\n if (v.isEmpty(value)) {\n return;\n }\n if (v.isArray(options)) {\n options = {within: options};\n }\n options = v.extend({}, this.options, options);\n if (!v.contains(options.within, value)) {\n return;\n }\n var message = options.message || this.message || \"^%{value} is restricted\";\n return v.format(message, {value: value});\n },\n email: v.extend(function(value, options) {\n options = v.extend({}, this.options, options);\n var message = options.message || this.message || \"is not a valid email\";\n // Empty values are fine\n if (v.isEmpty(value)) {\n return;\n }\n if (!v.isString(value)) {\n return message;\n }\n if (!this.PATTERN.exec(value)) {\n return message;\n }\n }, {\n PATTERN: /^[a-z0-9\\u007F-\\uffff!#$%&'*+\\/=?^_`{|}~-]+(?:\\.[a-z0-9\\u007F-\\uffff!#$%&'*+\\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z]{2,}$/i\n }),\n equality: function(value, options, attribute, attributes) {\n if (v.isEmpty(value)) {\n return;\n }\n\n if (v.isString(options)) {\n options = {attribute: options};\n }\n options = v.extend({}, this.options, options);\n var message = options.message ||\n this.message ||\n \"is not equal to %{attribute}\";\n\n if (v.isEmpty(options.attribute) || !v.isString(options.attribute)) {\n throw new Error(\"The attribute must be a non empty string\");\n }\n\n var otherValue = v.getDeepObjectValue(attributes, options.attribute)\n , comparator = options.comparator || function(v1, v2) {\n return v1 === v2;\n };\n\n if (!comparator(value, otherValue, options, attribute, attributes)) {\n return v.format(message, {attribute: v.prettify(options.attribute)});\n }\n },\n\n // A URL validator that is used to validate URLs with the ability to\n // restrict schemes and some domains.\n url: function(value, options) {\n if (v.isEmpty(value)) {\n return;\n }\n\n options = v.extend({}, this.options, options);\n\n var message = options.message || this.message || \"is not a valid url\"\n , schemes = options.schemes || this.schemes || ['http', 'https']\n , allowLocal = options.allowLocal || this.allowLocal || false;\n\n if (!v.isString(value)) {\n return message;\n }\n\n // https://gist.github.com/dperini/729294\n var regex =\n \"^\" +\n // schemes\n \"(?:(?:\" + schemes.join(\"|\") + \"):\\\\/\\\\/)\" +\n // credentials\n \"(?:\\\\S+(?::\\\\S*)?@)?\";\n\n regex += \"(?:\";\n\n var tld = \"(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,}))\";\n\n // This ia a special case for the localhost hostname\n if (allowLocal) {\n tld += \"?\";\n } else {\n // private & local addresses\n regex +=\n \"(?!10(?:\\\\.\\\\d{1,3}){3})\" +\n \"(?!127(?:\\\\.\\\\d{1,3}){3})\" +\n \"(?!169\\\\.254(?:\\\\.\\\\d{1,3}){2})\" +\n \"(?!192\\\\.168(?:\\\\.\\\\d{1,3}){2})\" +\n \"(?!172\" +\n \"\\\\.(?:1[6-9]|2\\\\d|3[0-1])\" +\n \"(?:\\\\.\\\\d{1,3})\" +\n \"{2})\";\n }\n\n var hostname =\n \"(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)\" +\n \"(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]+-?)*[a-z\\\\u00a1-\\\\uffff0-9]+)*\" +\n tld + \")\";\n\n // reserved addresses\n regex +=\n \"(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])\" +\n \"(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}\" +\n \"(?:\\\\.(?:[1-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))\" +\n \"|\" +\n hostname +\n // port number\n \"(?::\\\\d{2,5})?\" +\n // path\n \"(?:\\\\/[^\\\\s]*)?\" +\n \"$\";\n\n var PATTERN = new RegExp(regex, 'i');\n if (!PATTERN.exec(value)) {\n return message;\n }\n }\n };\n\n validate.exposeModule(validate, this, exports, module, define);\n}).call(this,\n typeof exports !== 'undefined' ? /* istanbul ignore next */ exports : null,\n typeof module !== 'undefined' ? /* istanbul ignore next */ module : null,\n typeof define !== 'undefined' ? /* istanbul ignore next */ define : null);\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/validate.js/validate.js\n ** module id = 24\n ** module chunks = 0\n **/"],"sourceRoot":""}